diff --git a/_nuxt/158ad79.js b/_nuxt/158ad79.js new file mode 100644 index 0000000000000000000000000000000000000000..d099372f184fd8ed3916de96023e276f42e12a8d --- /dev/null +++ b/_nuxt/158ad79.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[52],{1244:function(t,e,o){"use strict";o(751)},1245:function(t,e,o){var n=o(107)(!1);n.push([t.i,".sidebar[data-v-9368c4de]{position:fixed;right:-2px;bottom:70px;z-index:3;transform:translate(100%);animation:slideIn-9368c4de .3s ease-out .4s forwards}@keyframes slideIn-9368c4de{0%{transform:translateX(100%)}to{transform:translateX(0)}}.tab[data-v-9368c4de]{width:60px;padding:6px 0 3px;display:flex;justify-content:center;align-items:center;background:#ffefd5;cursor:pointer;border:2px solid #472f19;margin-top:-2px;touch-action:manipulation;outline:none}.tab-icon[data-v-9368c4de],.tab-inner[data-v-9368c4de]{text-align:center}.tab-icon[data-v-9368c4de]{width:30px;height:30px;transition:transform .1s ease-out}.tab:hover .tab-icon[data-v-9368c4de]{transform:scale(1.05)}.tab:hover .heart[data-v-9368c4de]{filter:drop-shadow(0 0 3px rgb(226,86,86,.5))}.tab-label[data-v-9368c4de]{font-size:12px;color:#472f19;text-align:center;position:relative;top:-3px}.sidebar .tab[data-v-9368c4de]:first-child{border-top-left-radius:5px}.sidebar .tab[data-v-9368c4de]:last-child{border-bottom-left-radius:5px}.heart-liked[data-v-9368c4de]{animation:liked-9368c4de .34s ease-out forwards;filter:none!important}.heart-liked path[data-v-9368c4de]{transition:fill .15s ease-out}@keyframes liked-9368c4de{30%{transform:scale(1.3)}55%{transform:scale(1)}75%{transform:scale(1.15)}to{transform:scale(1)}}@media screen and (max-width:600px){.sidebar[data-v-9368c4de]{bottom:60px}.tab[data-v-9368c4de]{width:54px;padding:6px 0 2px}.tab-likes[data-v-9368c4de]{display:none}}",""]),t.exports=n},1246:function(t,e,o){"use strict";o(752)},1247:function(t,e,o){var n=o(107)(!1);n.push([t.i,".modal[data-v-72b6d5f5]{position:fixed;z-index:5}.modal[data-v-72b6d5f5],.modal-bg[data-v-72b6d5f5]{top:0;left:0;width:100%;height:100%}.modal-bg[data-v-72b6d5f5]{position:absolute;background:rgba(41,29,17,.8);opacity:0;animation:fadeIn-72b6d5f5 .15s ease-in-out forwards}@keyframes fadeIn-72b6d5f5{0%{opacity:0}to{opacity:1}}.modal-inner[data-v-72b6d5f5]{background:#ffefd5;padding:25px 20px;border-radius:5px;font-size:16px;overflow-y:scroll;will-change:transform;display:flex;flex-direction:column;max-height:calc(100vh - 200px);height:100%;scrollbar-width:none}.modal-inner[data-v-72b6d5f5]::-webkit-scrollbar{display:none}.modal-inner-wrapper[data-v-72b6d5f5]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scaleY(0);max-height:calc(100vh - 200px);max-width:400px;width:calc(100% - 40px);animation:map-72b6d5f5 .25s ease-in-out forwards;border-radius:5px;border:2px solid #472f19}.modal-fade[data-v-72b6d5f5]{position:absolute;bottom:-4px;left:0;width:100%;height:100px;background:linear-gradient(180deg,rgba(255,239,213,0) 0,#ffefd5);pointer-events:none;border-radius:5px;transition:opacity .2s linear}@keyframes map-72b6d5f5{0%{transform:translate(-50%,-50%) scaleY(0)}to{transform:translate(-50%,-50%) scaleY(1)}}.modal-close[data-v-72b6d5f5]{position:absolute;top:5px;right:5px;width:28;height:28px;cursor:pointer}.modal-close[data-v-72b6d5f5]:hover{transform:scale(1.1)}.modal-title[data-v-72b6d5f5]{font-size:24px;margin-bottom:10px;text-align:center}.modal-fade-hide[data-v-72b6d5f5]{opacity:0}.fade-trigger[data-v-72b6d5f5]{width:100%;height:1px}@media screen and (max-width:600px){.modal-close[data-v-72b6d5f5]{width:29px;height:29px}}",""]),t.exports=n},1248:function(t,e,o){"use strict";o(753)},1249:function(t,e,o){var n=o(107)(!1);n.push([t.i,".share-wrapper[data-v-1a7e411c]{width:100%;display:grid;grid-template-columns:1fr 90px;grid-gap:10px;margin-top:15px}.share-input[data-v-1a7e411c]{width:100%;padding:10px;border-radius:5px;border:2px solid #472f19}.share-button[data-v-1a7e411c],.share-input[data-v-1a7e411c]{font-size:17px;touch-action:manipulation}.share-button[data-v-1a7e411c]{background:#472f19;border:none;border-radius:5px;box-shadow:none;color:#ffefd5;cursor:pointer;font-family:Baskerville;padding:0;display:flex;align-items:center;justify-content:center}.share-button[data-v-1a7e411c]:hover{transform:scale(1.03)}.original[data-v-1a7e411c]{margin-top:20px;text-align:center;width:100%}.original a[data-v-1a7e411c]{color:#472f19;text-decoration:underline}",""]),t.exports=n},1250:function(t,e,o){"use strict";o(754)},1251:function(t,e,o){var n=o(107)(!1);n.push([t.i,".like-row[data-v-5a8c3ce0]{display:flex;justify-content:center;grid-gap:10px;padding:5px 0;transition:transform .2s}.like-row[data-v-5a8c3ce0]:hover{transform:scale(1.06);cursor:pointer;background:#dac9af;border-radius:5px}.like-place[data-v-5a8c3ce0]{opacity:.6;font-size:11px;position:relative;top:6px}.like-notice[data-v-5a8c3ce0]{text-align:center}.likes[data-v-5a8c3ce0]{margin-top:20px;padding:0 18px}",""]),t.exports=n},1252:function(t,e,o){"use strict";o(755)},1253:function(t,e,o){var n=o(107)(!1);n.push([t.i,".info-desc[data-v-22dd907c]{line-height:1.5em;text-align:center;padding:0 10px}.info-desc a[data-v-22dd907c]{color:#472f19;text-decoration:underline}.info-created[data-v-22dd907c]{margin-top:15px}",""]),t.exports=n},1254:function(t,e,o){"use strict";o(756)},1255:function(t,e,o){var n=o(107)(!1);n.push([t.i,".splash[data-v-13b9861c]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#ffefd5;z-index:100;pointer-events:none}.splash-loaded[data-v-13b9861c]{animation:fadeOut-13b9861c .42s cubic-bezier(.5,1,.89,1) 1.6s forwards}@keyframes fadeOut-13b9861c{0%{opacity:1}to{opacity:0}}.title[data-v-13b9861c]{position:absolute;top:50%;left:50%;transform:translate(-50%,-75%);width:100%;max-width:420px;padding:0 20px;z-index:100;opacity:0;animation:fadeIn-13b9861c .25s ease-in-out forwards}@keyframes fadeIn-13b9861c{to{opacity:1}}.splash-bottom[data-v-13b9861c]{position:absolute;bottom:0;left:0;width:100%;-o-object-fit:contain;object-fit:contain;-o-object-position:center bottom;object-position:center bottom;transform:translateY(100%);will-change:transform}.splash-loaded .splash-bottom[data-v-13b9861c]{animation:popup-13b9861c .4s cubic-bezier(.76,0,.24,1) .1s forwards}.splash-logo[data-v-13b9861c]{height:32px;display:block;position:absolute;top:18px;left:15px}@keyframes popup-13b9861c{to{transform:translateY(0)}}@media screen and (max-width:600px){.title[data-v-13b9861c]{display:block;max-width:85%;transform:translate(-50%,-50%)}.splash-logo[data-v-13b9861c]{height:30px}}",""]),t.exports=n},1256:function(t,e,o){"use strict";o(757)},1257:function(t,e,o){var n=o(107),r=o(200),d=o(1258),l=o(1259),c=n(!1),f=r(d),h=r(l);c.push([t.i,"@font-face{font-family:Baskerville;src:url("+f+")}@font-face{font-family:SoCold;src:url("+h+")}[data-v-666b8394]::-moz-selection{background:#472f19}[data-v-666b8394]::selection{background:#472f19}.wrapper[data-v-666b8394]{color:#472f19;font-family:Baskerville}.top[data-v-666b8394]{position:fixed;top:0;left:0;width:100%;height:70px;background-color:#ffefd5;display:grid;grid-template-columns:200px 1fr 200px;align-items:center;justify-content:center;z-index:2;border-bottom:2px solid #472f19;text-align:center}.title[data-v-666b8394]{height:28px;margin-left:auto;margin-right:auto}.frame[data-v-666b8394]{position:fixed;top:0;left:0;width:100%;height:100%;border:0;touch-action:manipulation;top:-15px;height:calc(100% + 30px);left:-58px;width:calc(100% + 116px);filter:blur(10px);z-index:0;pointer-events:none;opacity:0;background:#ffefd5}.frame-active[data-v-666b8394]{z-index:1;filter:none;transition:filter .3s ease-out;pointer-events:auto;opacity:1}.random[data-v-666b8394]{height:50px;width:150px;font-size:20px;display:flex;align-items:center;justify-content:center;background:#472f19;border:none;-webkit-appearance:none;color:#ffefd5;cursor:pointer;border-radius:5px;justify-self:flex-end;font-family:Baskerville;margin-right:10px;touch-action:manipulation}.random-pulse[data-v-666b8394]{animation:pulse-666b8394 1s ease-out 3s infinite alternate-reverse}@keyframes pulse-666b8394{0%{transform:scale(1.04)}to{transform:scale(1)}}.random[data-v-666b8394]:first-letter{font-family:SoCold;font-size:30px}.random-icon[data-v-666b8394]{height:23px;margin-right:10px}.random-spin[data-v-666b8394]{transform:rotate(180deg);transition:transform .35s ease-out}.random-loading[data-v-666b8394]{animation:loading-666b8394 1.5s linear infinite}@keyframes loading-666b8394{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.site-logo[data-v-666b8394]{height:32px;display:block;margin-left:15px}.site-logo[data-v-666b8394]:hover{transform:scale(1.04)}.info-wrapper[data-v-666b8394]{position:relative;z-index:2}.info[data-v-666b8394]{position:fixed;top:70px;right:0;padding:12px 22px;display:flex;justify-content:center;align-items:center;background:#ffefd5;border-bottom:2px solid #472f19;border-left:2px solid #472f19;text-align:right;transform-origin:center top;animation:info-666b8394 .4s ease-in-out .05s forwards;border-bottom-left-radius:5px;transform:rotateX(90deg);will-change:transform}.info-location[data-v-666b8394]{font-size:14px}.likes[data-v-666b8394]{height:50px;width:50px;border-radius:5px;background:none;cursor:pointer;border:none;padding:10px;color:rgba(0,0,0,.7)}@keyframes info-666b8394{0%{transform:rotateX(90deg)}to{transform:rotateX(0deg)}}.info-icon[data-v-666b8394]{position:fixed;bottom:15px;left:15px;width:22px;height:22px;border-radius:50%;background:#ffefd5;z-index:2;display:flex;justify-content:center;align-items:center;cursor:pointer}.info-icon[data-v-666b8394]:hover{transform:scale(1.04)}.info-icon img[data-v-666b8394]{width:16px;height:16px}.info-title[data-v-666b8394]{font-size:19px;margin-bottom:5px}.info-location[data-v-666b8394]{opacity:.7}.info-location img[data-v-666b8394]{height:13px;margin-right:6px;position:relative;top:1px}@media (hover:hover){.random[data-v-666b8394]:hover{transform:scale(1.04);background:#372412}}@media screen and (max-width:750px){.random[data-v-666b8394]{margin-right:8px}}@media screen and (max-width:650px){.frame[data-v-666b8394]{top:-15px;height:calc(100% + 30px);left:-60px;width:calc(100% + 120px)}.info-icon[data-v-666b8394]{display:none}.site-logo[data-v-666b8394]{height:30px}.title-wrapper[data-v-666b8394]{display:none}.top[data-v-666b8394]{grid-template-columns:1fr 1fr}.info[data-v-666b8394]{padding:8px 14px 8px 15px}.info-title[data-v-666b8394]{font-size:17px;margin-bottom:2px}.info-location[data-v-666b8394]{font-size:13px}.info-location img[data-v-666b8394]{height:12px}}",""]),t.exports=c},1258:function(t,e,o){t.exports=o.p+"fonts/LibreBaskerville-Regular.715e9ce.ttf"},1259:function(t,e,o){t.exports=o.p+"fonts/SoCold-Regular.b378d65.ttf"},1301:function(t,e,o){"use strict";o.r(e);var n,r,d,l,c,f=o(284),h=o(10),v=(o(60),o(46),o(149),o(62),o(65),o(63),o(110),o(47),o(146),o(15),o(45),o(203),o(337),o(297)),m=o.n(v),w="https://lionfish-app-xxqtp.ondigitalocean.app",x={props:{view:{type:Object,required:!0}},data:function(){return{liked:!1}},watch:{view:function(){this.checkIfLiked()}},mounted:function(){this.checkIfLiked()},methods:{onLikeClick:function(){var t=JSON.parse(localStorage.getItem("wonders-of-street-view-likes"));if(this.liked){if(m.a.post("".concat(w,"/unlike"),{id:this.view.id}),t){var e=t.indexOf(this.view.id);t.splice(e,1),localStorage.setItem("wonders-of-street-view-likes",JSON.stringify(t))}this.$emit("unliked",this.view)}else m.a.post("".concat(w,"/like"),{id:this.view.id}),t?(t.push(this.view.id),localStorage.setItem("wonders-of-street-view-likes",JSON.stringify(t))):localStorage.setItem("wonders-of-street-view-likes",JSON.stringify([this.view.id])),this.$emit("liked",this.view);console.log(localStorage.getItem("wonders-of-street-view-likes")),this.liked=!this.liked},formatLikes:function(t){return t>=1e6?"".concat((t/1e6).toFixed(1),"M"):t>=1e3?"".concat((t/1e3).toFixed(1),"K"):t},checkIfLiked:function(){var t=this,e=JSON.parse(localStorage.getItem("wonders-of-street-view-likes"));e&&e.some((function(e){return e===t.view.id}))?this.liked=!0:this.liked=!1}}},k=(o(1244),o(28)),y=Object(k.a)(x,(function(){var t=this,e=t._self._c;return e("div",{key:t.view.id,staticClass:"sidebar"},[e("div",{staticClass:"tab",on:{click:t.onLikeClick}},[e("div",{staticClass:"tab-inner"},[e("svg",{staticClass:"tab-icon heart",class:{"heart-liked":t.liked},staticStyle:{"fill-rule":"evenodd","clip-rule":"evenodd","stroke-linejoin":"round","stroke-miterlimit":"2"},attrs:{width:"100%",height:"100%",viewBox:"0 0 46 41",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","xml:space":"preserve","xmlns:serif":"http://www.serif.com/"}},[e("g",{attrs:{transform:"matrix(1,0,0,1,-2.00001,-7)"}},[e("g",{attrs:{transform:"matrix(5.12,0,0,5.12,0,0)"}},[e("path",{style:{fill:t.liked?"rgb(226, 86, 86, 1)":"rgba(226, 86, 86, 0)","fill-rule":"nonzero"},attrs:{d:"M4.883,9.238L4.758,9.135C4.52,8.936 4.199,8.721 3.827,8.472C2.377,7.501 0.391,6.172 0.391,3.906C0.391,2.506 1.53,1.367 2.93,1.367C3.69,1.367 4.403,1.706 4.883,2.285C5.363,1.706 6.075,1.367 6.836,1.367C8.236,1.367 9.375,2.506 9.375,3.906C9.375,6.172 7.389,7.501 5.939,8.472C5.566,8.721 5.245,8.936 5.008,9.135L4.883,9.238Z"}}),t._v(" "),e("path",{staticStyle:{fill:"rgb(226, 86, 86)"},attrs:{d:"M4.883,9.238L4.758,9.135C4.52,8.936 4.199,8.721 3.827,8.472C2.377,7.501 0.391,6.172 0.391,3.906C0.391,2.506 1.53,1.367 2.93,1.367C3.69,1.367 4.403,1.706 4.883,2.285C5.363,1.706 6.075,1.367 6.836,1.367C8.236,1.367 9.375,2.506 9.375,3.906C9.375,6.172 7.389,7.501 5.939,8.472C5.566,8.721 5.245,8.936 5.008,9.135L4.883,9.238ZM4.883,8.734C4.655,8.557 4.368,8.364 4.044,8.148C3.342,7.678 2.508,7.124 1.852,6.41C1.239,5.743 0.781,4.932 0.781,3.906C0.781,2.722 1.745,1.758 2.93,1.758C3.573,1.758 4.176,2.044 4.582,2.534C4.656,2.624 4.767,2.676 4.883,2.676C4.999,2.676 5.109,2.624 5.184,2.534C5.59,2.044 6.192,1.758 6.836,1.758C8.021,1.758 8.984,2.722 8.984,3.906C8.984,4.932 8.527,5.743 7.913,6.41C7.257,7.124 6.423,7.678 5.721,8.148C5.398,8.364 5.112,8.556 4.883,8.734Z"}})])])]),t._v(" "),e("div",{staticClass:"tab-label"},[t._v("\n "+t._s(t.formatLikes(t.view.likes+this.liked||0))+"\n ")])])]),t._v(" "),e("div",{staticClass:"tab tab-likes",on:{click:function(e){return t.$emit("showLiked")}}},[t._m(0)]),t._v(" "),e("div",{staticClass:"tab",on:{click:function(e){return t.$emit("showShare")}}},[t._m(1)])])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"tab-inner"},[e("img",{staticClass:"tab-icon",attrs:{src:"/wonders-of-street-view/likes.svg"}}),t._v(" "),e("div",{staticClass:"tab-label"},[t._v("Likes")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"tab-inner"},[e("img",{staticClass:"tab-icon",attrs:{src:"/wonders-of-street-view/share.svg"}}),t._v(" "),e("div",{staticClass:"tab-label"},[t._v("Share")])])}],!1,null,"9368c4de",null).exports,C=(o(381),{props:{title:{type:String,required:!0}},data:function(){return{showFade:!1}},mounted:function(){var t=this;this.$refs.modalInner.scrollHeight>window.innerHeight-200&&(this.showFade=!0),new IntersectionObserver((function(e){t.showFade=!e[0].isIntersecting}),{root:this.$refs.modalInner,threshold:1}).observe(this.$refs.fadeTrigger)}}),_=(o(1246),Object(k.a)(C,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal"},[e("div",{staticClass:"modal-bg",on:{click:function(e){return t.$emit("hide")}}}),t._v(" "),e("div",{staticClass:"modal-inner-wrapper"},[e("div",{ref:"modalInner",staticClass:"modal-inner"},[e("div",{staticClass:"modal-title"},[t._v(t._s(t.title))]),t._v(" "),t._t("default"),t._v(" "),e("div",{ref:"fadeTrigger",staticClass:"fade-trigger"})],2),t._v(" "),e("div",{staticClass:"modal-fade",class:{"modal-fade-hide":!t.showFade}}),t._v(" "),e("img",{staticClass:"modal-close",attrs:{src:"/wonders-of-street-view/close.svg"},on:{click:function(e){return t.$emit("hide")}}})])])}),[],!1,null,"72b6d5f5",null).exports),S={components:{Modal:_},props:{view:{type:Object,required:!0}},data:function(){return{copied:!1}},methods:{onInputClick:function(t){t.target.select()},onCopyClick:function(){var t=this;this.$refs.shareInput.select(),document.execCommand("copy"),this.copied=!0,clearTimeout(n),n=setTimeout((function(){t.copied=!1}),3e3)}}},I=(o(1248),Object(k.a)(S,(function(){var t=this,e=t._self._c;return e("Modal",{attrs:{title:"Share"},on:{hide:function(e){return t.$emit("hide")}}},[e("div",{staticClass:"share-wrapper"},[e("input",{ref:"shareInput",staticClass:"share-input",attrs:{readonly:"readonly"},domProps:{value:"https://neal.fun/wonders-of-street-view/?v=".concat(t.view.id)},on:{click:t.onInputClick}}),t._v(" "),e("button",{staticClass:"share-button",on:{click:t.onCopyClick}},[t._v("\n "+t._s(t.copied?"Copied":"Copy")+"\n ")])]),t._v(" "),e("div",{staticClass:"original"},[e("a",{attrs:{href:t.view.link,target:"_blank"}},[t._v("On Google Street View")])])])}),[],!1,null,"1a7e411c",null).exports),L={components:{Modal:_},props:{likes:{type:Array,required:!0}},computed:{likesReversed:function(){return this.likes.slice().reverse()}}},j=(o(1250),Object(k.a)(L,(function(){var t=this,e=t._self._c;return e("Modal",{attrs:{title:"Your Likes"},on:{hide:function(e){return t.$emit("hide")}}},[e("div",{staticClass:"likes"},[t._l(t.likesReversed,(function(o){return e("div",{key:o.id,staticClass:"like-row",on:{click:function(e){return t.$emit("likeClicked",o)}}},[e("div",{staticClass:"like-title"},[t._v("\n "+t._s(o.title)+"\n ")])])})),t._v(" "),0===t.likes.length?e("div",{staticClass:"like-notice"},[t._v("\n You haven't liked any street views yet.\n ")]):t._e()],2)])}),[],!1,null,"5a8c3ce0",null).exports),M={components:{Modal:_}},O=(o(1252),Object(k.a)(M,(function(){var t=this,e=t._self._c;return e("Modal",{attrs:{title:"Info"},on:{hide:function(e){return t.$emit("hide")}}},[e("div",{staticClass:"info-desc"},[t._v("\n Send your weird and cool street view finds to\n "),e("a",{attrs:{target:"_blank",href:"mailto:streetview@neal.fun"}},[t._v("streetview@neal.fun")]),t._v(" "),e("div",{staticClass:"info-created"},[t._v("Made by Neal Agarwal")])])])}),[],!1,null,"22dd907c",null).exports),V={data:function(){return{splashLoaded:!1,isMobile:window.innerWidth<=600}},methods:{onLoad:function(){this.splashLoaded=!0}}},z=(o(1254),{components:{Sidebar:y,ShareModal:I,LikedModal:j,InfoModal:O,Splash:Object(k.a)(V,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"splash",class:{"splash-loaded":t.splashLoaded}},[e("NuxtLink",{attrs:{to:"/"}},[e("img",{staticClass:"splash-logo",attrs:{src:"/wonders-of-street-view/logo.svg"}})]),t._v(" "),e("img",{staticClass:"splash-bottom",attrs:{src:"/wonders-of-street-view/splash".concat(t.isMobile?"-mobile":"",".png")},on:{load:t.onLoad}}),t._v(" "),e("img",{staticClass:"title",attrs:{src:"/wonders-of-street-view/splash-title.svg"}})],1)}),[],!1,null,"13b9861c",null).exports},data:function(){return{currFrame:0,currView:{title:""},nextView:{title:""},viewIndex:1,views:[],playSpinAnimation:!1,showShare:!1,showLiked:!1,showInfo:!1,hasClickedRandom:!1,loading:!1,initialLoading:!0,preloadBefore:3,likes:[]}},mounted:function(){var t=this;setTimeout((function(){t.initialLoading=!1}),1900)},computed:{firstFrameSrc:function(){var t=0===this.currFrame?this.currView.embed:this.nextView.embed;return t&&t.startsWith("https://www.google.com/maps/embed")?t:""},secondFrameSrc:function(){var t=1===this.currFrame?this.currView.embed:this.nextView.embed;return t&&t.startsWith("https://www.google.com/maps/embed")?t:""}},watch:{currView:function(){if(this.currView){var t=JSON.parse(localStorage.getItem("wonders-of-street-view-seen"));t?t.includes(this.currView.id)||t.push(this.currView.id):t=[this.currView.id],t.length>=200&&(t=t.slice(-200)),localStorage.setItem("wonders-of-street-view-seen",JSON.stringify(t))}}},created:(c=Object(h.a)(regeneratorRuntime.mark((function t(){var e,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.$route.query.v){t.next=10;break}return t.prev=1,t.next=4,m.a.get("".concat(w,"/getViews?id=").concat(this.$route.query.v));case 4:o=t.sent,(e=this.views).push.apply(e,Object(f.a)(o.data.views)),t.next=10;break;case 8:t.prev=8,t.t0=t.catch(1);case 10:this.getRandom(),this.getStoredLikes();case 12:case"end":return t.stop()}}),t,this,[[1,8]])}))),function(){return c.apply(this,arguments)}),methods:{getRandom:(l=Object(h.a)(regeneratorRuntime.mark((function t(){var e,o,n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.next=2;break;case 2:return o=JSON.parse(localStorage.getItem("wonders-of-street-view-seen")),this.views.length>this.preloadBefore&&o.push.apply(o,Object(f.a)(this.views.slice(this.views.length-this.preloadBefore,this.views.length).map((function(t){return t.id})))),n=o?"?seen="+o.join(","):"",t.next=7,m.a.get("".concat(w,"/random").concat(n));case 7:r=t.sent,(e=this.views).push.apply(e,Object(f.a)(r.data.views)),this.loading&&(this.viewIndex++,this.loading=!1),this.currView=this.views[this.viewIndex-1],this.nextView=this.views[this.viewIndex];case 12:case"end":return t.stop()}}),t,this)}))),function(){return l.apply(this,arguments)}),getStoredLikes:(d=Object(h.a)(regeneratorRuntime.mark((function t(){var e,o,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.next=2;break;case 2:return o=JSON.parse(localStorage.getItem("wonders-of-street-view-likes")),t.next=5,m.a.get("".concat(w,"/getViews?id=").concat(o.join(",")));case 5:n=t.sent,(e=this.likes).push.apply(e,Object(f.a)(n.data.views));case 7:case"end":return t.stop()}}),t,this)}))),function(){return d.apply(this,arguments)}),onLiked:function(view){this.likes.some((function(t){return t.id===view.id}))||this.likes.push(view)},onUnliked:function(view){this.likes=this.likes.filter((function(t){return t.id!==view.id}))},goTo:function(view){this.currView=view,this.showLiked=!1},onRandomClick:function(){var t=this;this.initialLoading||this.loading||(this.viewIndex>=this.views.length-1?this.loading=!0:(this.hasClickedRandom=!0,this.viewIndex++,this.currView=this.nextView,this.nextView=this.views[this.viewIndex],this.viewIndex===this.views.length-this.preloadBefore&&this.getRandom(),this.currFrame=0===this.currFrame?1:0,this.playSpinAnimation=!0,clearTimeout(r),r=setTimeout((function(){t.playSpinAnimation=!1}),350)))}}}),R=z,F=(o(1256),Object(k.a)(R,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"wrapper"},[e("Splash"),t._v(" "),t.initialLoading?t._e():e("Sidebar",{attrs:{view:t.currView},on:{showShare:function(e){t.showShare=!0},showLiked:function(e){t.showLiked=!0},liked:t.onLiked,unliked:t.onUnliked}}),t._v(" "),t.showShare?e("ShareModal",{attrs:{view:t.currView},on:{hide:function(e){t.showShare=!1}}}):t._e(),t._v(" "),t.showLiked?e("LikedModal",{attrs:{likes:t.likes},on:{hide:function(e){t.showLiked=!1},likeClicked:t.goTo}}):t._e(),t._v(" "),t.showInfo?e("InfoModal",{on:{hide:function(e){t.showInfo=!1}}}):t._e(),t._v(" "),e("div",{staticClass:"info-icon"},[e("img",{attrs:{src:"/wonders-of-street-view/info.svg"},on:{click:function(e){t.showInfo=!0}}})]),t._v(" "),e("div",{staticClass:"top"},[e("NuxtLink",{attrs:{to:"/"}},[e("img",{staticClass:"site-logo",attrs:{src:"/wonders-of-street-view/logo.svg"}})]),t._v(" "),t._m(0),t._v(" "),e("button",{staticClass:"random",class:{"random-pulse":!t.hasClickedRandom},on:{click:t.onRandomClick}},[e("img",{staticClass:"random-icon",class:{"random-spin":t.playSpinAnimation,"random-loading":t.loading},attrs:{src:"/wonders-of-street-view/refresh.svg"}}),t._v("Random\n ")])],1),t._v(" "),t.initialLoading?t._e():e("div",{staticClass:"info-wrapper"},[e("div",{key:t.currView.id,staticClass:"info"},[e("div",{staticClass:"info-inner"},[e("div",{staticClass:"info-title"},[t._v(t._s(t.currView.title))]),t._v(" "),e("div",{staticClass:"info-location"},[e("img",{attrs:{src:"/wonders-of-street-view/pin.svg"}}),t._v(t._s(t.currView.place)+"\n ")])])])]),t._v(" "),e("iframe",{ref:"frame0",staticClass:"frame",class:{"frame-active":0===t.currFrame},attrs:{src:t.firstFrameSrc,width:"100%",height:"100%",allowfullscreen:""}}),t._v(" "),e("iframe",{ref:"frame1",staticClass:"frame",class:{"frame-active":1===t.currFrame},attrs:{src:t.secondFrameSrc,width:"100%",height:"100%",allowfullscreen:""}})],1)}),[function(){var t=this._self._c;return t("span",{staticClass:"title-wrapper"},[t("img",{staticClass:"title",attrs:{src:"/wonders-of-street-view/title.svg"}})])}],!1,null,"666b8394",null));e.default=F.exports},281:function(t,e,o){var n=o(4);t.exports=n(1..valueOf)},284:function(t,e,o){"use strict";o.d(e,"a",(function(){return l}));var n=o(111);var r=o(137),d=o(82);function l(t){return function(t){if(Array.isArray(t))return Object(n.a)(t)}(t)||Object(r.a)(t)||Object(d.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},321:function(t,e,o){var n=o(4),r=o(24),d=o(13),l=/"/g,c=n("".replace);t.exports=function(t,e,o,n){var f=d(r(t)),h="<"+e;return""!==o&&(h+=" "+o+'="'+c(d(n),l,""")+'"'),h+">"+f+""}},322:function(t,e,o){var n=o(3);t.exports=function(t){return n((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},337:function(t,e,o){"use strict";var n=o(2),r=o(4),d=o(49),l=o(281),c=o(207),f=o(3),h=RangeError,v=String,m=Math.floor,w=r(c),x=r("".slice),k=r(1..toFixed),y=function(t,e,o){return 0===e?o:e%2==1?y(t,e-1,o*t):y(t*t,e/2,o)},C=function(data,t,e){for(var o=-1,n=e;++o<6;)n+=t*data[o],data[o]=n%1e7,n=m(n/1e7)},_=function(data,t){for(var e=6,o=0;--e>=0;)o+=data[e],data[e]=m(o/t),o=o%t*1e7},S=function(data){for(var t=6,s="";--t>=0;)if(""!==s||0===t||0!==data[t]){var e=v(data[t]);s=""===s?e:s+w("0",7-e.length)+e}return s};n({target:"Number",proto:!0,forced:f((function(){return"0.000"!==k(8e-5,3)||"1"!==k(.9,0)||"1.25"!==k(1.255,2)||"1000000000000000128"!==k(0xde0b6b3a7640080,0)}))||!f((function(){k({})}))},{toFixed:function(t){var e,o,n,r,c=l(this),f=d(t),data=[0,0,0,0,0,0],m="",k="0";if(f<0||f>20)throw h("Incorrect fraction digits");if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return v(c);if(c<0&&(m="-",c=-c),c>1e-21)if(o=(e=function(t){for(var e=0,o=t;o>=4096;)e+=12,o/=4096;for(;o>=2;)e+=1,o/=2;return e}(c*y(2,69,1))-69)<0?c*y(2,-e,1):c/y(2,e,1),o*=4503599627370496,(e=52-e)>0){for(C(data,0,o),n=f;n>=7;)C(data,1e7,0),n-=7;for(C(data,y(10,n,1),0),n=e-1;n>=23;)_(data,1<<23),n-=23;_(data,1<0?m+((r=k.length)<=f?"0."+w("0",f-r)+k:x(k,0,r-f)+"."+x(k,r-f)):m+k}})},381:function(t,e,o){"use strict";var n=o(2),r=o(321);n({target:"String",proto:!0,forced:o(322)("link")},{link:function(t){return r(this,"a","href",t)}})},751:function(t,e,o){var content=o(1245);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(108).default)("57d36b32",content,!0,{sourceMap:!1})},752:function(t,e,o){var content=o(1247);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(108).default)("defc27da",content,!0,{sourceMap:!1})},753:function(t,e,o){var content=o(1249);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(108).default)("42ab7b71",content,!0,{sourceMap:!1})},754:function(t,e,o){var content=o(1251);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(108).default)("4b1e7ef6",content,!0,{sourceMap:!1})},755:function(t,e,o){var content=o(1253);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(108).default)("0db36ac1",content,!0,{sourceMap:!1})},756:function(t,e,o){var content=o(1255);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(108).default)("323dcecd",content,!0,{sourceMap:!1})},757:function(t,e,o){var content=o(1257);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(108).default)("ad3eb4b4",content,!0,{sourceMap:!1})}}]); \ No newline at end of file diff --git a/_nuxt/1aa6aa1.js b/_nuxt/1aa6aa1.js new file mode 100644 index 0000000000000000000000000000000000000000..a5749e9aa7be3e78b8b811c9d5f8651e9468a642 --- /dev/null +++ b/_nuxt/1aa6aa1.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[28],{1319:function(e,t,n){"use strict";n.r(t);n(110),n(50),n(43),n(87),n(88);var canvas,o,r,c,d,l=n(10),h=n(33),f=(n(60),n(45),n(15),n(62),n(65),n(34),n(314),n(208),n(46),n(383),n(203),n(303),[]),m=0,v=0,x=[[204,200,241],[50,213,202],[242,187,128]];function w(e,t,n,o,r,c){this.x=e,this.y=t,this.xSpeed=n,this.ySpeed=o,this.radius=r,this.opacity=c,this.color=x[Math.floor(Math.random()*x.length)]}function y(){r=window.innerWidth*d,c=window.innerHeight*d,canvas.width=r,canvas.height=c}var I={drawParticles:function(e,t){var n=Math.min(e-m,30);m=e,f.forEach((function(e){e.x+=e.xSpeed*n,e.y+=e.ySpeed*n,e.x<0&&(e.x=r),e.x>r&&(e.x=10),e.y<0&&(e.y=c),e.y>c&&(e.y=10)})),o.clearRect(0,0,r,c),o.lineWidth=1,f.forEach((function(e,i){o.beginPath(),o.arc(e.x,e.y,e.radius,0,2*Math.PI,!1),o.fillStyle="rgba(0, 0, 0, ".concat(e.opacity,")"),o.fill()})),f.forEach((function(e,i){for(var t=v;t=1150?360:310,this.instances.forEach((function(t){t.width||e.calcInstanceSize(t),t.left+t.width>window.innerWidth-e.sidebarSize&&e.setInstancePosition(t,window.innerWidth-e.sidebarSize-t.width,t.top),t.top+t.height>window.innerHeight&&e.setInstancePosition(t,t.left,window.innerHeight-t.height)}))},dropElement:function(){var e=this;this.mouseDown=!1,!this.selectedInstance||window.innerWidth<800||(this.selectedInstance.left+this.selectedInstance.width>window.innerWidth-this.sidebarSize||!this.selectedInstance.width||!this.selectedInstance.left?(this.instances=this.instances.filter((function(t){return t.id!==e.selectedInstance.id})),this.deleteSound.play()):this.checkIntersections(this.selectedInstance))},clearInstances:function(){this.instances=[],this.deleteSound.play()},setInstancePosition:function(e,t,n){e.left=t,e.top=n,e.elem||(e.elem=document.getElementById("instance-"+e.id)),e.elem.style.translate="".concat(t,"px ").concat(n,"px")},setInstanceZIndex:function(e,t){e.elem.style.zIndex=t},moveInstance:function(e){if(this.mouseDown){var t=this.getEventCoords(e),n=t.x,o=t.y;this.setInstancePosition(this.selectedInstance,n-this.selectedInstance.offsetX*this.selectedInstance.width,o-this.selectedInstance.offsetY*this.selectedInstance.height),this.selectedInstance.isNew&&(this.pinwheelCoords={x:this.selectedInstance.left+this.selectedInstance.width/2,y:this.selectedInstance.top+this.selectedInstance.height/2});var r=this.checkIntersections(this.selectedInstance,!0);this.hoverId=r?r.id:-1}},calcInstanceSize:function(e){var element=document.getElementById("instance-"+e.id);element&&(e.width=element.offsetWidth,e.height=element.offsetHeight)},checkIntersections:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.width&&e.height||this.calcInstanceSize(e);for(var i=0;in.left&&e.topn.top){if(t&&!n.disabled)return n;this.craft(e,n)}}return!1},getCenterOfCraft:function(e,t){var n=e.left+e.width/2,o=e.top+e.height/2;return{x:(n+(t.left+t.width/2))/2,y:(o+(t.top+t.height/2))/2}},getCraftResponse:(E=Object(l.a)(regeneratorRuntime.mark((function e(t,n){var o,r,c,d,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,o=new AbortController,this.$setTimeout((function(){return o.abort()}),12e3),r=[t,n].sort((function(a,b){return a.text.localeCompare(b.text)})),c="https://neal.fun/api/infinite-craft/pair?first=".concat(r[0].text,"&second=").concat(r[1].text),e.next=7,fetch(c,{signal:o.signal});case 7:return d=e.sent,e.next=10,d.json();case 10:return"Pigpen"===(l=e.sent).result&&(l.emoji="🐷"),e.abrupt("return",l);case 15:return e.prev=15,e.t0=e.catch(0),e.abrupt("return",{result:"Nothing"});case 18:case"end":return e.stop()}}),e,this,[[0,15]])}))),function(e,t){return E.apply(this,arguments)}),craftMobile:(z=Object(l.a)(regeneratorRuntime.mark((function e(){var t,n,element,o,r,c,d=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.mobileIsCrafting){e.next=2;break}return e.abrupt("return");case 2:if(this.mobileIsCrafting=!0,this.hasCrafted=!0,!this.firstSelected||!this.secondSelected){e.next=17;break}return t=function e(t){t.target.style="animation: none",t.target.removeEventListener("animationiteration",e)},e.next=8,this.getCraftResponse(this.firstSelected,this.secondSelected);case 8:"Nothing"!==(n=e.sent).result&&((element=this.elements.find((function(element){return element.text===n.result})))?this.playInstanceSound():(element={text:n.result,emoji:n.emoji},this.elements.push(element),this.saveItems(),o=[.9,1],this.rewardSound.rate(o[Math.floor(Math.random()*o.length)]),this.rewardSound.play()),this.mobileCraftedElement=element,j&&clearTimeout(j),j=setTimeout((function(){d.mobileCraftedElement=null}),1700)),r=document.getElementById("item-"+this.firstSelected.text),c=document.getElementById("item-"+this.secondSelected.text),r.addEventListener("animationiteration",t),c.addEventListener("animationiteration",t),this.firstSelected=null,this.secondSelected=null,this.mobileIsCrafting=!1;case 17:case"end":return e.stop()}}),e,this)}))),function(){return z.apply(this,arguments)}),playInstanceSound:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.3;this.instanceSoundRate+=.1,this.instanceSoundRate>1.3&&(this.instanceSoundRate=.9),this.instanceSound.rate(this.instanceSoundRate),this.instanceSound.volume(e),this.instanceSound.play()},toggleSound:function(){this.isMuted=!this.isMuted,this.isMuted?S.Howler.mute(!0):S.Howler.mute(!1)},saveItems:function(){localStorage.setItem("infinite-craft-data",JSON.stringify({elements:this.elements}))},craft:(C=Object(l.a)(regeneratorRuntime.mark((function e(t,n){var o,r,c,d,l,h,f,m=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.hasCrafted=!0,!t.disabled&&!n.disabled){e.next=3;break}return e.abrupt("return");case 3:return this.hoverId=-1,t.disabled=!0,n.disabled=!0,e.next=8,this.getCraftResponse(t,n);case 8:"Nothing"!==(o=e.sent).result?(r=this.getCenterOfCraft(t,n),c=this.instanceId++,d={id:c,text:o.result,emoji:o.emoji,disabled:!1,zIndex:c,discovered:o.isNew},o.isNew&&this.discoveries.push(o.result),this.elements.find((function(element){return element.text===d.text}))?this.playInstanceSound():(this.elements.push({text:d.text,emoji:d.emoji,discovered:o.isNew}),this.saveItems(),this.pinwheelCoords=r,d.isNew=!0,l=[.9,1],this.rewardSound.rate(l[Math.floor(Math.random()*l.length)]),this.rewardSound.play(),this.$setTimeout((function(){d.isNew=!1}),1200)),h=this.instances.findIndex((function(e){return e.id===t.id})),this.instances.splice(h,1),f=this.instances.findIndex((function(e){return e.id===n.id})),this.instances.splice(f,1),this.instances.push(d),this.$nextTick((function(){m.calcInstanceSize(d),m.setInstancePosition(d,r.x-d.width/2,r.y-d.height/2)}))):(t.disabled=!1,n.disabled=!1);case 10:case"end":return e.stop()}}),e,this)}))),function(e,t){return C.apply(this,arguments)})}},M=_,P=(n(985),n(987),n(28)),component=Object(P.a)(M,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"container"},[t("nuxt-link",{attrs:{to:"/"}},[t("img",{staticClass:"site-title",attrs:{src:"/general/logo.svg"}})]),e._v(" "),t("div",{staticClass:"side-controls"},[t("img",{staticClass:"clear",attrs:{src:"/infinite-craft/clear.svg"},on:{click:e.clearInstances}}),e._v(" "),t("img",{staticClass:"sound",attrs:{src:e.isMuted?"/infinite-craft/mute.svg":"/infinite-craft/sound.svg"},on:{click:e.toggleSound}})]),e._v(" "),t("canvas",{ref:"particles",staticClass:"particles"}),e._v(" "),t("div",{staticClass:"sidebar"},[t("div",{staticClass:"items"},[e._l(e.sortedElements,(function(element,i){return t("div",{key:element.text,staticClass:"item",class:{"item-selected":e.firstSelected===element.text||e.secondSelected===element.text},on:{mousedown:function(t){return e.selectElement(t,element)},touchstart:function(t){return e.selectElement(t,element)}}},[t("span",{staticClass:"item-emoji"},[e._v(e._s(element.emoji||"⬜"))]),e._v("\n "+e._s(element.text)+"\n ")])})),e._v(" "),e.hasCrafted?e._e():t("div",{staticClass:"instruction"},[e._v("Drag elements to craft")])],2),e._v(" "),t("div",{staticClass:"sidebar-controls"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.searchQuery,expression:"searchQuery"}],staticClass:"sidebar-input",attrs:{placeholder:"Search items..."},domProps:{value:e.searchQuery},on:{input:function(t){t.target.composing||(e.searchQuery=t.target.value)}}})])]),e._v(" "),t("div",{staticClass:"instances"},[t("transition-group",{attrs:{name:"instance-anim",tag:"div"}},e._l(e.instances,(function(n,i){return t("div",{key:n.id,staticClass:"item instance",class:{"instance-disabled":n.disabled,"instance-hover":e.hoverId===n.id||-1!==e.hoverId&&e.selectedInstance.id===n.id,"instance-new":n.isNew,"instance-hide":n.hide,"instance-discovered":n.discovered},attrs:{id:"instance-"+n.id},on:{mousedown:function(t){return e.selectInstance(t,n)},touchstart:function(t){return e.selectInstance(t,n)}}},[t("span",{staticClass:"instance-emoji"},[e._v(e._s(n.emoji||"⬜"))]),e._v("\n "+e._s(n.text)+"\n "),n.discovered?t("div",{staticClass:"instance-discovered-text"},[e._v("\n First Discovery\n ")]):e._e()])})),0)],1),e._v(" "),t("transition",{attrs:{name:"pinwheel-animation"}},[e.showPinwheel?t("img",{staticClass:"pinwheel",style:{translate:"calc(".concat(e.pinwheelCoords.x,"px - 48%) calc(").concat(e.pinwheelCoords.y,"px - 50%)")},attrs:{src:"/infinite-craft/pinwheel.png"}}):e._e()]),e._v(" "),t("div",{staticClass:"mobile-sound",on:{click:e.toggleSound}},[t("img",{staticClass:"sound",attrs:{src:e.isMuted?"/infinite-craft/mute.svg":"/infinite-craft/sound.svg"}})]),e._v(" "),t("img",{staticClass:"logo",attrs:{src:"/infinite-craft/logo.svg"}}),e._v(" "),t("div",{staticClass:"reset",on:{click:e.reset}},[e._v("Reset")]),e._v(" "),t("transition-group",{staticClass:"mobile-items",attrs:{name:"list",tag:"div"}},e._l(e.sortedElements,(function(element,i){var n,o,r;return t("div",{key:element.text,staticClass:"mobile-item"},[t("div",{staticClass:"item",class:{"item-selected-mobile":(null===(n=e.firstSelected)||void 0===n?void 0:n.text)===element.text||(null===(o=e.secondSelected)||void 0===o?void 0:o.text)===element.text,"item-crafted-mobile":(null===(r=e.mobileCraftedElement)||void 0===r?void 0:r.text)===element.text,"mobile-is-crafting":e.mobileIsCrafting},attrs:{id:"item-"+element.text},on:{click:function(t){return e.mobileSelect(t,element)}}},[t("span",{staticClass:"item-emoji-mobile"},[e._v(e._s(element.emoji||"⬜"))]),e._v("\n "+e._s(element.text)+"\n ")])])})),0),e._v(" "),e.hasCrafted?e._e():t("div",{staticClass:"mobile-instruction"},[e._v("\n Tap two elements to craft\n ")])],1)}),[],!1,null,"66a45730",null);t.default=component.exports},303:function(e,t,n){var o=n(2),r=n(304),c=n(112);o({target:"Array",proto:!0},{fill:r}),c("fill")},304:function(e,t,n){"use strict";var o=n(25),r=n(84),c=n(31);e.exports=function(e){for(var t=o(this),n=c(t),d=arguments.length,l=r(d>1?arguments[1]:void 0,n),h=d>2?arguments[2]:void 0,f=void 0===h?n:r(h,n);f>l;)t[l++]=e;return t}},311:function(e,t,n){var o=n(61).match(/firefox\/(\d+)/i);e.exports=!!o&&+o[1]},312:function(e,t,n){var o=n(61);e.exports=/MSIE|Trident/.test(o)},313:function(e,t,n){var o=n(61).match(/AppleWebKit\/(\d+)\./);e.exports=!!o&&+o[1]},314:function(e,t,n){"use strict";var o=n(2),r=n(4),c=n(35),d=n(25),l=n(31),h=n(206),f=n(13),m=n(3),v=n(205),x=n(141),w=n(311),y=n(312),I=n(85),S=n(313),k=[],C=r(k.sort),z=r(k.push),E=m((function(){k.sort(void 0)})),j=m((function(){k.sort(null)})),_=x("sort"),M=!m((function(){if(I)return I<70;if(!(w&&w>3)){if(y)return!0;if(S)return S<603;var code,e,t,n,o="";for(code=65;code<76;code++){switch(e=String.fromCharCode(code),code){case 66:case 69:case 70:case 72:t=3;break;case 68:case 71:t=4;break;default:t=2}for(n=0;n<47;n++)k.push({k:e+n,v:t})}for(k.sort((function(a,b){return b.v-a.v})),n=0;nf(n)?1:-1}}(e)),n=l(r),o=0;o1?arguments[1]:void 0)}}),c(d)},506:function(e,t,n){var content=n(986);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,n(108).default)("7519f0a4",content,!0,{sourceMap:!1})},507:function(e,t,n){var content=n(988);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,n(108).default)("7c5267a0",content,!0,{sourceMap:!1})},985:function(e,t,n){"use strict";n(506)},986:function(e,t,n){var o=n(107)(!1);o.push([e.i,"@keyframes itemMobileJiggle{0%{transform:rotate(0deg)}25%{transform:rotate(2deg)}50%{transform:rotate(0deg)}75%{transform:rotate(-2deg)}to{transform:rotate(0deg)}}",""]),e.exports=o},987:function(e,t,n){"use strict";n(507)},988:function(e,t,n){var o=n(107)(!1);o.push([e.i,'.container[data-v-66a45730]{left:0;width:100%;height:100%;font-family:"Roboto",sans-serif;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:#040404}.container[data-v-66a45730],.sidebar[data-v-66a45730]{position:fixed;top:0}.sidebar[data-v-66a45730]{right:0;width:305px;height:100vh;background:hsla(0,0%,100%,.93);z-index:10;overflow-y:scroll;overflow-x:visible;border-left:1px solid #c8c8c8}.logo[data-v-66a45730]{position:fixed;top:10px;right:320px;width:80px;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}.mobile-items[data-v-66a45730]{display:none}.items[data-v-66a45730]{max-width:900px;margin-left:auto;margin-right:auto;padding:9px;min-height:calc(100svh - 40px)}.item[data-v-66a45730]{margin:4px;cursor:pointer;padding:8px 8px 7px;border-radius:5px;display:inline-block;-webkit-user-select:none;-moz-user-select:none;user-select:none;border:1px solid #c8c8c8;transition:background .15s linear;background:#fff;line-height:1em}.item[data-v-66a45730],.item-emoji[data-v-66a45730]{font-size:15.4px}.instance[data-v-66a45730]{position:fixed;font-size:18px;z-index:11;left:0;top:0;padding:11px 10px 10px;transition:scale .15s ease-in;border-radius:5px;transform-origin:center center;display:flex;align-items:center;contain:layout;border:1px solid #91a8c1;background:linear-gradient(0deg,#f7feff,#fff 70%)}.instance[data-v-66a45730],.instance-discovered-text[data-v-66a45730]{-webkit-user-select:none;-moz-user-select:none;user-select:none}.instance-discovered-text[data-v-66a45730]{position:absolute;bottom:-3px;transform:translate(-50%,100%);left:50%;width:100%;text-align:center;font-size:12px;width:100px}.pinwheel[data-v-66a45730]{position:fixed;top:0;left:0;width:130px;height:130px;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1;animation:pinwheelSpin-66a45730 2s linear infinite;transition:scale .4s ease-in-out,opacity .4s ease-in-out;scale:0;opacity:0;transform-origin:center center}.pinwheel-animation-enter-active[data-v-66a45730],.pinwheel-animation-leave-active[data-v-66a45730]{scale:1;opacity:1}.pinwheel-animation-enter-from[data-v-66a45730],.pinwheel-animation-leave-to[data-v-66a45730]{scale:0;opacity:0}@keyframes pinwheelSpin-66a45730{to{rotate:90deg}}@keyframes scaleIn-66a45730{0%{scale:.5}to{scale:1}}@media (hover:hover){.item[data-v-66a45730]:hover{background:linear-gradient(0deg,#d6fcff,#fff 90%);border:1px solid #91a8c1}}.item-selected[data-v-66a45730]{background:#e3e3e3}.instruction[data-v-66a45730]{font-size:15px;text-align:center;margin-top:25px;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}.instance-disabled[data-v-66a45730]{pointer-events:none;opacity:.7;transition:.15s linear;animation:pulse-66a45730 .8s ease-in-out .15s infinite alternate-reverse}@keyframes pulse-66a45730{0%{opacity:.2}to{opacity:.7}}.instance-disabled[data-v-66a45730]:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.instance-hover[data-v-66a45730]{scale:1.04;background:linear-gradient(0deg,#d6fcff,#fff 90%);border:1px solid #91a8c1}.site-title[data-v-66a45730]{position:fixed;top:13px;left:13px;width:110px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.site-title[data-v-66a45730]:hover{transform:scale(1.03)}.side-controls[data-v-66a45730]{position:fixed;right:314px;bottom:7px;-webkit-user-select:none;-moz-user-select:none;user-select:none;display:flex;grid-gap:19px}.clear[data-v-66a45730],.sound[data-v-66a45730]{width:21px;cursor:pointer;opacity:.8;-webkit-user-select:none;-moz-user-select:none;user-select:none}.sound[data-v-66a45730]{transform:scale(.92)}.coffee[data-v-66a45730]{width:15px}.coffee-link[data-v-66a45730]{line-height:0}.clear[data-v-66a45730]:hover,.coffee[data-v-66a45730]:hover,.sound[data-v-66a45730]:hover{transform:scale(1.05)}.mobile-sound[data-v-66a45730]{position:fixed;bottom:10px;right:10px;width:40px;height:40px;border-radius:5px;background:#fff;z-index:10;display:flex;align-items:center;justify-content:center;border:1px solid #9f9f9f;display:none}.sidebar-controls[data-v-66a45730]{position:sticky;bottom:0;left:0;width:100%;font-size:13px;text-align:right;-webkit-user-select:none;-moz-user-select:none;user-select:none;display:flex;align-items:center;justify-content:right;height:40px}.sidebar-input[data-v-66a45730]{width:100%;font-size:16px;border:none;border-top:1px solid #c8c8c8;outline:none;padding:0 20px 0 40px;height:40px;line-height:18px;position:relative;background:url(/infinite-craft/search.svg) no-repeat 22px 22px;background-size:21px 21px;background-position:10px 10px}.sidebar-input[data-v-66a45730]::-moz-placeholder{opacity:.5}.sidebar-input[data-v-66a45730]::placeholder{opacity:.5}.sidebar-input[data-v-66a45730]:after{content:"";position:absolute;left:10px;top:50%;transform:translateY(-50%);font-size:20px;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.sort[data-v-66a45730]{cursor:pointer;padding:2px;opacity:.9;font-size:14px}.sort-img[data-v-66a45730]{height:15px;top:2px;padding:2px;-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative}.instance-emoji[data-v-66a45730]{font-size:21px;margin-right:5px}.instance-hide[data-v-66a45730]{display:none!important;pointer-events:none!important}.mobile-instruction[data-v-66a45730]{display:none}.list-enter[data-v-66a45730],.list-leave-to[data-v-66a45730]{transform:scale(0)}.particles[data-v-66a45730]{position:fixed;top:0;left:0;width:100%;height:100%;pointer-events:none}.instance-anim-enter-active[data-v-66a45730]{animation:scaleIn-66a45730 .13s ease-in 1 forwards}.instance-anim-leave-to[data-v-66a45730]{opacity:0;scale:0}.instance-anim-leave-active[data-v-66a45730]{transition:opacity .16s linear,scale .16s linear}.reset[data-v-66a45730]{position:fixed;left:10px;bottom:10px;cursor:pointer;opacity:.7;font-size:15px}@media screen and (min-width:1150px){.sidebar[data-v-66a45730]{width:350px}.logo[data-v-66a45730]{right:362px;width:85px}.item[data-v-66a45730]{font-size:16.4px;padding:9px 10px 8px}.items[data-v-66a45730]{min-height:calc(100svh - 45px)}.item-emoji[data-v-66a45730]{font-size:16.4px}.instance[data-v-66a45730]{font-size:19.5px;padding:11px 11px 10px}.instruction[data-v-66a45730]{font-size:16px}.pinwheel[data-v-66a45730]{width:145px;height:145px}.instance-discovered-text[data-v-66a45730]{font-size:13px}.side-controls[data-v-66a45730]{right:361px}.clear[data-v-66a45730],.sound[data-v-66a45730]{width:23px}.coffee[data-v-66a45730]{width:16px}.sidebar-input[data-v-66a45730]{background-size:23px 23px;background-position:11px 12px;height:45px;font-size:17px;line-height:21px;padding-left:43px;padding-top:2px}}@media screen and (max-width:800px){.container[data-v-66a45730]{position:static}.site-title[data-v-66a45730]{position:absolute}.sidebar[data-v-66a45730]{display:none}.mobile-items[data-v-66a45730]{display:flex;flex-wrap:wrap;margin-top:105px;justify-content:center;grid-gap:5px 5px;margin-bottom:20px;padding:0 5px;position:relative;z-index:2}.instance[data-v-66a45730]{display:none}.mobile-item[data-v-66a45730]{transition:transform .4s ease}.item[data-v-66a45730]{display:flex;align-items:center;min-height:37px;grid-gap:5px;line-height:0;font-size:15.5px;padding:1px 9px 0;border:1px solid #9f9f9f;color:#000;transition:background .1s linear}.item-selected-mobile[data-v-66a45730]{top:5px}.item-crafted-mobile[data-v-66a45730],.item-selected-mobile[data-v-66a45730]{background-color:#fffae6;border-color:#877f64;position:sticky;bottom:5px}.item-crafted-mobile[data-v-66a45730]{z-index:10;transition:background .2s linear}.item-emoji-mobile[data-v-66a45730]{margin-right:1px}.particles[data-v-66a45730]{z-index:1}.side-controls[data-v-66a45730],.sidebar-controls[data-v-66a45730]{display:none}.logo[data-v-66a45730]{position:absolute;right:10px;left:auto;top:10px}.mobile-instruction[data-v-66a45730]{display:block;max-width:200px;text-align:center;border:1px solid #c8c8c8;background-color:#fffae6;padding:7px;margin-left:auto;margin-right:auto;font-size:15px;border-radius:5px}.mobile-sound[data-v-66a45730]{display:flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:transparent}}',""]),e.exports=o}}]); \ No newline at end of file diff --git a/_nuxt/2576758.js b/_nuxt/2576758.js new file mode 100644 index 0000000000000000000000000000000000000000..dd217c0243ef3f10317a244f4f9f382bcd7c7e89 --- /dev/null +++ b/_nuxt/2576758.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[37,10,11,12,14],{1150:function(t,e,r){"use strict";r(577)},1151:function(t,e,r){var n=r(107)(!1);n.push([t.i,".modal[data-v-34cad25a]{z-index:10}.modal-bg[data-v-34cad25a]{position:fixed;top:0;left:0;width:100%;height:100%;background:transparent;z-index:9;animation:bg-34cad25a .2s linear forwards}@keyframes bg-34cad25a{0%{background:transparent}to{background:rgba(0,0,0,.7)}}.modal-inner[data-v-34cad25a]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);max-width:350px;padding:20px 20px 18px;border:1px solid #ccc;border-radius:10px;background:#fff;z-index:10;animation:fadeIn-34cad25a .2s linear forwards}@keyframes fadeIn-34cad25a{0%{opacity:0;transform:translate(-50%,-20%)}to{opacity:1;transform:translate(-50%,-50%)}}.modal-text[data-v-34cad25a]{font-size:16px;text-align:center}.modal-close[data-v-34cad25a]{position:absolute;top:-10px;right:-10px;width:25px;cursor:pointer}.modal-close[data-v-34cad25a]:hover{transform:scale(1.06)}",""]),t.exports=n},1152:function(t,e,r){"use strict";r(578)},1153:function(t,e,r){var n=r(107),o=r(200),d=r(1154),c=r(1155),l=n(!1),f=o(d),h=o(c);l.push([t.i,'@font-face{font-family:"pixelWeb";src:url(/perfect-circle/disposable-digi.woff)}@font-face{font-family:"comicWeb";src:url('+f+')}@font-face{font-family:"comicWeb";font-weight:700;src:url('+h+')}@-o-viewport{width:100vw;zoom:1;user-zoom:fixed}@viewport{width:100vw;zoom:1;user-zoom:fixed}.container[data-v-568d841e]{position:fixed;left:0;top:0;--font-size:9vh;-webkit-backface-visibility:hidden}.container[data-v-568d841e],main[data-v-568d841e]{width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none}main[data-v-568d841e]{position:relative;overflow:hidden;background:#101010 url(/perfect-circle/main.jpg) 50%;background-size:120% 100%;color:#f4f4f4;text-align:center;cursor:default;-webkit-touch-callout:none}header h1[data-v-568d841e]{font-weight:400;position:absolute;left:calc(50% - 3rem);width:6rem;bottom:calc(50% + 20px + .75rem);opacity:0;text-shadow:.05rem .05rem 0 #101010,-.03rem .05rem 0 #101010,-.03rem -.03rem 0 #101010,.05rem -.03rem 0 #101010,0 0 .2rem #101010,0 0 .4rem #101010;transition:transform .75s,opacity .75s;transform:translateY(-.75rem);z-index:3;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}header h1.on[data-v-568d841e]{transform:translateY(0);opacity:1}header h1 span[data-v-568d841e]:first-child{display:block;font-size:.45rem}header h1 span[data-v-568d841e]:nth-child(2){display:block;font-size:.5rem;text-transform:uppercase}header h1 strong[data-v-568d841e]{font-size:.925em;display:inline-block;vertical-align:top;margin:.01rem -.07rem 0 0}header h1 strong[data-v-568d841e]:nth-child(2){margin:.01rem 0 0 .12rem}header button[data-v-568d841e]{position:absolute;top:calc(50% - .5rem - 20px);left:calc(50% - .5rem);width:1rem;height:1rem;border-radius:50%;background:#f4f4f4;font-weight:700;font-size:.4rem;z-index:3;transform:scale(.2);transition:transform .5s,color .5s;color:#f4f4f4;pointer-events:none;text-transform:uppercase;text-decoration:none;border:none;outline:none;cursor:pointer;display:flex;align-items:center;justify-content:center}header button.on[data-v-568d841e]{pointer-events:auto;transform:scale(1);color:#101010}section[data-v-568d841e]{position:absolute;width:100vh;height:100vh;top:calc(50% - 20px);left:50%;margin:-50vh 0 0 -50vh;z-index:2}section h2[data-v-568d841e]{font-weight:400;font-size:.35rem;position:absolute;left:0;right:0;top:50%;margin:-.7rem 0 0;opacity:0;transition:opacity .5s;text-shadow:2px 2px 0 #101010;pointer-events:none}section h2.on[data-v-568d841e]{opacity:1}section h2 span[data-v-568d841e]{display:block;height:1rem}section div[data-v-568d841e],section svg[data-v-568d841e]{position:absolute;top:0;left:0;width:100%;height:100%;contain:layout}section svg[data-v-568d841e]{fill:none}section div[data-v-568d841e]{cursor:crosshair}section p[data-v-568d841e]{font-family:"pixelWeb",sans-serif;position:absolute;left:0;right:0;bottom:calc(50% - .36rem);font-size:1rem;color:#c00;text-shadow:2px 2px 0 #101010;contain:layout}section p span[data-v-568d841e]{display:inline-block}section p span[data-v-568d841e]:first-child{width:.4rem}section p span[data-v-568d841e]:nth-child(2),section p span[data-v-568d841e]:nth-child(3){width:.6rem}section p span[data-v-568d841e]:nth-child(4){width:.35rem}section p span[data-v-568d841e]:nth-child(5){width:.5rem;font-size:.85rem}section p span[data-v-568d841e]:nth-child(6){width:1.08rem;font-size:.85rem;text-align:left}footer[data-v-568d841e]{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}footer[data-v-568d841e]:before{content:"";position:absolute;top:calc(50% - .1rem - 20px);left:calc(50% - .1rem);width:.2rem;height:.2rem;border-radius:50%;background:#f4f4f4}footer ul[data-v-568d841e]{list-style:none}footer li[data-v-568d841e]{display:none;margin:.4rem 0 0}footer li[data-v-568d841e],footer p[data-v-568d841e]{position:absolute;left:.1rem;right:0;top:calc(50% - 20px);font-size:.4rem;text-shadow:2px 2px 0 #101010}footer p[data-v-568d841e]{margin:.35rem 0 0;z-index:5}footer p span[data-v-568d841e]{font-family:"pixelWeb",sans-serif;font-size:.45rem;margin:0 0 0 .08rem;color:#c00}#share[data-v-568d841e]{display:none;position:absolute;left:50%;transform:translateX(-50%);bottom:60px;white-space:nowrap}#share button[data-v-568d841e]{font-family:inherit;font-size:18px;font-weight:700;border-radius:6px;padding:14px 7px 16px;min-width:95px;border:2px solid #101010;color:#fff;text-shadow:-1px -1px 10px rgba(0,0,0,.25),1px 2px 0 #101010;cursor:pointer}#share button+button[data-v-568d841e]{margin-left:-2px}#share button[data-v-568d841e]:first-child{border-radius:16px 6px 6px 16px}#share button[data-v-568d841e]:last-child{border-radius:6px 16px 16px 6px}#share button#shareTwitter[data-v-568d841e]{background:#1da1f2}#share button#shareCopy[data-v-568d841e]{background:#7676ea}#share button#shareCopy.shareCopyDone[data-v-568d841e]{position:relative;color:transparent;background:#5b5b99;text-shadow:none}#share button#shareCopy.shareCopyDone[data-v-568d841e]:after{content:"Done!";position:absolute;top:11px;left:10px;font-size:22px;transform:rotate(-20deg);color:#fff;text-shadow:1px 2px 0 #101010}#share button#shareWhatsApp[data-v-568d841e]{background:#1ebea5;letter-spacing:-1px}#share button#shareMore[data-v-568d841e]{background:grey;min-width:0}#sound[data-v-568d841e]{position:absolute;top:0;right:0;font-size:16px;opacity:.5}#sound label[data-v-568d841e]{display:inline-block;cursor:pointer;padding:6px 8px 6px 6px}#sound input[data-v-568d841e]{accent-color:grey;cursor:pointer;margin:0 4px 0 0}#loading[data-v-568d841e]{position:absolute;top:50%;left:50%;transform:translate(-50%,-100%);font-family:sans-serif;font-size:16px;text-transform:uppercase;letter-spacing:.4em;opacity:.5}#loading[data-v-568d841e]:before{content:"Loading"}.blink[data-v-568d841e]{animation:blink-animation-568d841e .6s steps(2,start) 3}.blink-grow[data-v-568d841e]{animation:blink-grow-568d841e 1s ease-in-out infinite}@keyframes blink-animation-568d841e{to{visibility:hidden}}@keyframes blink-grow-568d841e{0%{transform:scale(1)}50%{transform:scale(1.2)}to{transform:scale(1)}}.site-title[data-v-568d841e]{position:fixed;top:13px;left:13px;max-width:140px;width:100%;filter:invert(100%);z-index:6;font-size:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.site-title[data-v-568d841e]:hover{transform:scale(1.04)}.controls-icon[data-v-568d841e]{height:27px;cursor:pointer}.controls-icon[data-v-568d841e]:hover{transform:scale(1.08)}.controls[data-v-568d841e]{position:fixed;top:10px;right:14px;z-index:2;line-height:0;opacity:.7;display:grid;grid-template-columns:1fr 1fr;grid-gap:20px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.controls[data-v-568d841e] :first-child{padding:3px;opacity:.55}.tweet[data-v-568d841e]{background:#1da1f2;width:90px}.copy[data-v-568d841e]{background:#b780ff;width:90px}.share[data-v-568d841e]{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);grid-gap:15px;opacity:0;animation:shareFade-568d841e .4s ease-in-out .3s forwards;z-index:4}.share[data-v-568d841e],.share-btn[data-v-568d841e]{display:flex;justify-content:center}.share-btn[data-v-568d841e]{font-size:18px;align-items:center;height:40px;border-radius:10px;color:#fff;text-decoration:none;line-height:0;z-index:5;border:none;font-family:comicWeb;cursor:pointer;transition:transform .2s ease-in-out,opacity .2s ease-in-out}.share-btn[data-v-568d841e]:disabled{opacity:.7;pointer-events:none}.share button[data-v-568d841e]:hover{transform:scale(1.08)}.shirt-desktop[data-v-568d841e],.shirt-mobile[data-v-568d841e]{background:#ff2525}.shirt-desktop[data-v-568d841e]{width:165px}.shirt-mobile[data-v-568d841e]{display:none;width:90px}@keyframes shareFade-568d841e{0%{opacity:0;transform:translate(-50%,20px)}to{opacity:1;transform:translate(-50%)}}.pinwheel[data-v-568d841e]{position:fixed;top:calc(50% - .25rem);left:50%;width:max(100vh,100vw);animation:pinwheelFade-568d841e 1s ease-in-out forwards,spin-568d841e 20s linear infinite;pointer-events:none;opacity:.1;z-index:0}.pinwheel-fast[data-v-568d841e]{animation:pinwheelFade-568d841e 1s ease-in-out forwards,spin-568d841e 10s linear infinite}.vignette[data-v-568d841e]{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1;background:radial-gradient(circle,hsla(0,0%,100%,.2) 0,transparent 50%,transparent 100%);animation:vignetteFade-568d841e 1s ease-in-out forwards;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vignette-legendary[data-v-568d841e]{background:radial-gradient(circle,hsla(0,0%,100%,.5) 0,transparent 60%,transparent 100%)}.divine[data-v-568d841e]{background:#101010 url(/perfect-circle/space.jpg) 50%;background-size:900px auto;background-repeat:repeat;animation:divine-568d841e 20s linear infinite}.best-score[data-v-568d841e]{filter:drop-shadow(0 0 15px var(--score-color))}@keyframes flash-568d841e{0%{opacity:0}to{opacity:1}}@keyframes divine-568d841e{0%{background-position:0 0}to{background-position:900px 0}}@keyframes pinwheelFade-568d841e{0%{opacity:0;transform:translate(-50%,-50%) scale(0)}to{opacity:.1;transform:translate(-50%,-50%) scale(1)}}@keyframes vignetteFade-568d841e{0%{opacity:0}to{opacity:.5}}@keyframes spin-568d841e{0%{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}.svg-container-spin[data-v-568d841e]{animation:spinSvg-568d841e 10s linear infinite}@keyframes spinSvg-568d841e{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@media screen and (max-width:900px){.site-title[data-v-568d841e]{max-width:120px}.controls[data-v-568d841e]{right:10px;grid-gap:18px}}@media screen and (max-width:500px){.shirt-desktop[data-v-568d841e]{display:none}.shirt-mobile[data-v-568d841e]{display:block}}',""]),t.exports=l},1154:function(t,e,r){t.exports=r.p+"fonts/sunday-comics.5447a95.woff2"},1155:function(t,e,r){t.exports=r.p+"fonts/sunday-comics-bold.1caf923.woff2"},1156:function(t,e,r){"use strict";r(579)},1157:function(t,e,r){var n=r(107)(!1);n.push([t.i,'.perfect-circle{position:fixed;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:rgba(0,0,0,0);overflow:hidden;font-family:"comicWeb","Verdana",sans-serif;line-height:1.2;background:#101010;font-size:9vh;word-spacing:0}@media (min-aspect-ratio:1/1){.perfect-circle{font-size:10.8vh}.perfect-circle main{background-size:100% 120%}.perfect-circle section{width:120vh;height:120vh;margin:-60vh 0 0 -60vh}}',""]),t.exports=n},1314:function(t,e,r){"use strict";r.r(e);var n,o,d,c,l,f,h,m,v,x=r(10),w=(r(60),r(63),r(337),r(15),r(46),r(110),r(336)),y={},k=(r(1150),r(28)),_=Object(k.a)(y,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal"},[e("div",{staticClass:"modal-bg",on:{click:function(e){return t.$emit("close")}}}),t._v(" "),e("div",{staticClass:"modal-inner"},[e("img",{staticClass:"modal-close",attrs:{src:"/perfect-circle/close.svg"},on:{click:function(e){return t.$emit("close")}}}),t._v(" "),e("div",{staticClass:"modal-text"},[t._v("Originally created by Matt Round")])])])}),[],!1,null,"34cad25a",null).exports,C={x:500,y:500},z={};function M(t){var e=480*(t-.75);return e=Math.min(e,120),"hsl("+(e=Math.max(e,0))+", 100%, "+(40+.2*e)+"%)"}var S,A,E={components:{Modal:_},data:function(){return{isDrawing:!1,start:!1,score:0,hasDrawn:!1,best:0,showBest:!1,newBestScore:!1,scoreColor:"",message:"",sound:!0,showInfo:!1,copied:!1,valid:!1,loadingShirt:!1}},head:function(){return{htmlAttrs:{class:"perfect-circle"},link:[{rel:"preload",href:"/perfect-circle/disposable-digi.woff",as:"font",type:"font/woff",crossorigin:!0}]}},mounted:function(){n={count:2e3,angle:-2.5,lastX:0,lastY:0,stroke:20,radiusCorrect:0,message:"",sound:!0},C={x:500,y:500},z={},m=new w.Howl({src:["/perfect-circle/fx.mp3"],volume:.3,sprite:{error:[473,303],best:[1243,809],drawing:[2539,10450]}}),v=new w.Howl({src:["/perfect-circle/ahh.mp3"],volume:.3}),this.demoAnim()},computed:{scoreString:function(){return 0===this.score?" XXX":(" "+this.score).slice(-4)},bestString:function(){return(100*this.best).toFixed(1)+"%"}},watch:{sound:function(t){Howler.mute(!t)}},methods:{setupDrawContainer:function(){var t=this;["mousedown","touchstart"].forEach((function(e){return t.$refs.drawContainer.addEventListener(e,t.onDrawStart,!1)})),["mousemove","touchmove"].forEach((function(e){return t.$refs.drawContainer.addEventListener(e,t.onDrawMove,!1)})),["mouseup","mouseout","touchend","touchcancel"].forEach((function(e){return t.$refs.drawContainer.addEventListener(e,t.onDrawEnd,!1)}))},onDrawStart:function(t){var e=this;if(this.isDrawing)return!1;this.hasDrawn=!0,this.showBest=!1,this.newBestScore=!1,this.isDrawing=!0,this.copied=!1,this.valid=!1;var r=this.coords(t);return z.x=r.x,z.y=r.y,z.time=Date.now(),z.speed=0,z.accuracy=1,z.dx=0,z.dy=0,z.angle=180+180*Math.atan2(r.y-C.y,r.x-C.x)/Math.PI,z.radius=Math.sqrt(Math.pow(r.x-C.x,2)+Math.pow(r.y-C.y,2)),z.distance=0,z.stroke=20,o=z.radius,l=0,d=0,c=0,this.$refs.svgContainer.replaceChildren(),this.isDrawing=!0,f=setTimeout((function(){e.$refs.drawContainer.dispatchEvent(new Event("mouseup")),e.message="Too slow"}),7e3),h=m.play("drawing"),m.volume(0,h),o<100&&(this.$refs.drawContainer.dispatchEvent(new Event("mouseup")),this.message="Too close to dot"),!1},onDrawMove:function(t){if(!this.isDrawing)return!1;var time=Date.now(),e=this.coords(t),r=e.x-z.x,n=e.y-z.y,f=Math.sqrt(Math.pow(r,2)+Math.pow(n,2));if(f<6)return m.volume(0,h),!1;var v=f/(.001+time-z.time);0==z.distance&&(z.distance=f),0==z.speed&&(z.speed=v);var x=1.5+2/(.05+v);x=(3*z.stroke+x)/4,x=Math.min(x,20);var w=180+180*Math.atan2(e.y-C.y,e.x-C.x)/Math.PI,y=w-z.angle;y<-180?y+=360:y>180&&(y-=360);var k=y<0?-1:1;if(0==l){if(Math.abs(y)<.1)return!1;l=k}var _=Math.sqrt(Math.pow(e.x-C.x,2)+Math.pow(e.y-C.y,2)),S=1-Math.abs((_+z.radius)/2-o)/o;S=Math.max(S,0);var A=z.dx*f/z.distance,E=z.dy*f/z.distance,I=r+(r-A),D=n+(n-E);return this.draw("path",{d:"M"+z.x+" "+z.y+" C"+(z.x+A/3.5)+" "+(z.y+E/3.5)+","+(e.x-I/3.5)+" "+(e.y-D/3.5)+","+e.x+" "+e.y,style:"stroke: "+M(S)+"; stroke-width:"+x+"px;"}),m.volume(Math.min(S*v/75,.15),h),k!=l?(this.$refs.drawContainer.dispatchEvent(new Event("mouseup")),this.message="Wrong way",!1):_<30?(this.$refs.drawContainer.dispatchEvent(new Event("mouseup")),this.message="Too close to dot",!1):(z.x=e.x,z.y=e.y,z.time=time,z.speed=v,z.accuracy=S,z.dx=r,z.dy=n,z.angle=w,z.radius=_,z.distance=f,z.stroke=x,y=Math.abs(y),(c+=y)>360&&(y-=c-360,c=360),d+=y*S,this.score=Math.min(Math.round(1e3*d/c),999),this.scoreColor=M(d/c),360==c&&this.onComplete(),!1)},onComplete:function(){if(m.stop(h),this.isDrawing=!1,this.valid=!0,0==this.best?this.message="Have another go!":this.showBest=!0,clearTimeout(f),this.score>Math.round(1e3*this.best)){if(this.best=d/c,this.bestColor=M(this.best),this.score>=950&&v.play(),m.play("best"),0==this.best)return!1;this.newBestScore=!0,this.showBest=!1,999===this.score?this.message="Perfect circle":this.score>=990?this.message="Divine circle":this.score>=980?this.message="Legendary circle":this.message="New best score"}},onDrawEnd:function(t){return!!this.isDrawing&&(c>335?this.onComplete():(this.isDrawing=!1,m.stop(h),m.play("error"),this.score=0,this.scoreColor=M(0),this.message="Draw a full circle",clearTimeout(f)),!1)},onGoClick:function(){this.start=!0,this.setupDrawContainer(),setTimeout((function(){n.count=0}),500)},coords:function(t){this.$refs.svgContainer.classList.remove("svg-container-spin");var e=this.$refs.svgContainer.getBoundingClientRect(),r=1e3/e.width,n={};return 0===t.type.indexOf("touch")?(n.x=r*(t.touches[0].pageX-e.left),n.y=r*(t.touches[0].pageY-e.top)):(n.x=r*(t.pageX-e.left),n.y=r*(t.pageY-e.top)),n},draw:function(t,e){var r=document.createElementNS("http://www.w3.org/2000/svg",t);for(var a in e)r.setAttribute(a,e[a]);this.$refs.svgContainer.appendChild(r)},demoAnim:function(){if(!(this.hasDrawn||(n.count--,n.count<491))){var t=.04+.01*Math.cos(2+n.count/47);n.angle+=t;var e=280+85*Math.sin(4+n.count/66),r=C.x+e*Math.cos(n.angle)+50*Math.sin(1+n.count/29),o=C.y+e*Math.sin(n.angle)+50*Math.cos(5+n.count/17);e=Math.sqrt(Math.pow(r-C.x,2)+Math.pow(o-C.y,2)),0==n.radiusCorrect&&(n.radiusCorrect=e);var d=1-Math.abs(e-n.radiusCorrect)/n.radiusCorrect;0==n.lastX&&(n.lastX=r,n.lastY=o,requestAnimationFrame(this.demoAnim)),this.draw("path",{d:"M"+n.lastX+" "+n.lastY+" L"+r+" "+o,style:"stroke: "+M(d)+"; stroke-width:"+n.stroke+"px;"}),n.lastX=r,n.lastY=o;var c=16-300*t;n.stroke=(9*n.stroke+c)/10,requestAnimationFrame(this.demoAnim)}},copy:(A=Object(x.a)(regeneratorRuntime.mark((function t(){var text;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return text="My circle is ".concat((this.score/10).toFixed(1),"% perfect, can you beat that? https://neal.fun/perfect-circle/"),this.copied=!0,t.prev=2,t.next=5,navigator.clipboard.writeText(text);case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(2),console.error("Failed to copy: ",t.t0);case 10:case"end":return t.stop()}}),t,this,[[2,7]])}))),function(){return A.apply(this,arguments)}),getTshirtLink:(S=Object(x.a)(regeneratorRuntime.mark((function t(){var e,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,this.loadingShirt=!0,t.next=4,fetch("https://perfect-circle.neal.fun/?accuracy=".concat((this.score/10).toFixed(1)),{method:"POST",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"text/plain"},body:this.$refs.svgContainer.outerHTML});case 4:return e=t.sent,t.next=7,e.json();case 7:r=t.sent,this.loadingShirt=!1,r.storeLink&&(window.location.href=r.storeLink),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(0),this.loadingShirt=!1;case 15:case"end":return t.stop()}}),t,this,[[0,12]])}))),function(){return S.apply(this,arguments)}),tweet:function(){var t="⭕️ My circle is ".concat((this.score/10).toFixed(1),"% perfect, can you beat that?"),e="https://twitter.com/intent/tweet?text=".concat(encodeURIComponent(t),"&url=").concat(encodeURIComponent("https://neal.fun/perfect-circle/"));window.open(e,"_blank")}},beforeDestroy:function(){Howler.unload(),this.hasDrawn=!0}},I=E,D=(r(1152),r(1156),Object(k.a)(I,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("NuxtLink",{staticClass:"site-title",attrs:{to:"/"}},[e("img",{attrs:{src:"/general/logo.svg"}})]),t._v(" "),t.showInfo?e("Modal",{on:{close:function(e){t.showInfo=!1}}}):t._e(),t._v(" "),e("main",{class:{divine:t.score>=990&&t.valid}},[e("header",[e("h1",{class:{on:!t.start}},[e("span",[t._v("Can you draw a")]),t._v(" "),t._m(0)]),t._v(" "),e("button",{class:{on:!t.start},on:{click:t.onGoClick}},[t._v("Go")])]),t._v(" "),e("section",{class:{"best-score":t.newBestScore},style:{"--score-color":t.scoreColor}},[e("h2",{class:{on:!t.hasDrawn&&t.start}},[e("span",[t._v("Draw a circle")]),t._v(" "),e("span",[t._v("around this")])]),t._v(" "),e("svg",{ref:"svgContainer",class:{"svg-container-spin":t.score>=970&&t.valid},attrs:{"stroke-linecap":"round",fill:"none",viewBox:"0 0 1000 1000",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}}),t._v(" "),e("p",{directives:[{name:"show",rawName:"v-show",value:t.hasDrawn,expression:"hasDrawn"}],ref:"score",style:{color:t.scoreColor}},[e("span",[t._v(t._s(t.scoreString.charAt(0)))]),e("span",[t._v(t._s(t.scoreString.charAt(1)))]),e("span",[t._v(t._s(t.scoreString.charAt(2)))]),e("span"),e("span",[t._v(t._s(t.scoreString.charAt(3)))]),e("span",[t._v("%")])]),t._v(" "),e("div",{ref:"drawContainer"})]),t._v(" "),e("footer",{directives:[{name:"show",rawName:"v-show",value:!t.isDrawing,expression:"!isDrawing"}]},[t.showBest?e("p",[t._v("\n Best:"),e("span",{style:{color:t.bestColor}},[t._v(t._s(t.bestString))])]):e("p",{class:{blink:t.newBestScore,"blink-grow":t.newBestScore&&t.score>=960}},[t._v("\n "+t._s(t.message)+"\n ")])]),t._v(" "),e("div",{staticClass:"controls"},[e("img",{staticClass:"controls-icon",attrs:{src:"/perfect-circle/info.svg"},on:{click:function(e){t.showInfo=!0}}}),t._v(" "),e("img",{staticClass:"controls-icon",attrs:{src:"/perfect-circle/".concat(t.sound?"un":"","muted.svg")},on:{click:function(e){t.sound=!t.sound}}})])]),t._v(" "),t.valid?e("div",{staticClass:"share"},[e("button",{staticClass:"share-btn tweet",on:{click:t.tweet}},[t._v("Tweet")]),t._v(" "),e("button",{staticClass:"share-btn copy",on:{click:t.copy}},[t._v("\n "+t._s(t.copied?"Copied":"Copy")+"\n ")])]):t._e(),t._v(" "),e("img",{directives:[{name:"show",rawName:"v-show",value:t.score>=950&&t.valid,expression:"score >= 950 && valid"}],staticClass:"pinwheel",class:{"pinwheel-fast":t.score>=970},attrs:{src:"/perfect-circle/pinwheel.svg"}}),t._v(" "),t.score>=960&&t.valid?e("div",{staticClass:"vignette",class:{"vignette-legendary":t.score>=960&&t.valid}}):t._e()],1)}),[function(){var t=this,e=t._self._c;return e("span",[e("strong",[t._v("perfect")]),t._v(" circle"),e("strong",[t._v("?")])])}],!1,null,"568d841e",null));e.default=D.exports;installComponents(D,{Header:r(301).default,Footer:r(295).default})},276:function(t,e,r){"use strict";var n=r(2),o=r(19),d=r(9),c=r(6),path=r(204),l=r(4),f=r(109),h=r(12),m=r(201),v=r(39),x=r(81),w=r(202),y=r(3),k=r(80).f,_=r(29).f,C=r(21).f,z=r(281),M=r(282).trim,S="Number",A=c[S],E=path[S],I=A.prototype,D=c.TypeError,N=l("".slice),L=l("".charCodeAt),F=function(t){var e=w(t,"number");return"bigint"==typeof e?e:R(e)},R=function(t){var e,r,n,o,d,c,l,code,f=w(t,"number");if(x(f))throw D("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=M(f),43===(e=L(f,0))||45===e){if(88===(r=L(f,2))||120===r)return NaN}else if(48===e){switch(L(f,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+f}for(c=(d=N(f,2)).length,l=0;lo)return NaN;return parseInt(d,n)}return+f},j=f(S,!A(" 0o1")||!A("0b1")||A("+0x1")),T=function(t){return v(I,t)&&y((function(){z(t)}))},$=function(t){var e=arguments.length<1?0:A(F(t));return T(this)?m(Object(e),this,$):e};$.prototype=I,j&&!o&&(I.constructor=$),n({global:!0,constructor:!0,wrap:!0,forced:j},{Number:$});var W=function(t,source){for(var e,r=d?k(source):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),n=0;r.length>n;n++)h(source,e=r[n])&&!h(t,e)&&C(t,e,_(source,e))};o&&E&&W(path[S],E),(j||o)&&W(path[S],A)},277:function(t,e,r){var content=r(286);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(108).default)("f68e4eaa",content,!0,{sourceMap:!1})},278:function(t,e,r){var content=r(291);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(108).default)("db35a8f0",content,!0,{sourceMap:!1})},279:function(t,e,r){var content=r(294);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(108).default)("c9434642",content,!0,{sourceMap:!1})},280:function(t,e,r){"use strict";r.r(e);r(276);var n={props:{slotId:{type:String,required:!0},adFormat:{type:String,required:!0},isResponsive:{type:Boolean,required:!1,default:!1},adStyle:{type:String,required:!0},minWidth:{type:Number,required:!1,default:-1},maxWidth:{type:Number,required:!1,default:-1}},data:function(){return{hideAd:!1,shouldShow:this.shouldShowAd()}},mounted:function(){var t=this;this.createAds(),this.$addEventListener("resize",(function(){t.hideAd=!t.shouldShowAd()}))},watch:{$route:function(){this.firstLoad=!1,this.createAds()}},methods:{createAds:function(){var t=this;this.$nextTick((function(){t.shouldShowAd()&&(window.adsbygoogle=window.adsbygoogle||[],adsbygoogle.push({}))}))},shouldShowAd:function(){return(-1===this.minWidth||window.innerWidth>=this.minWidth)&&(-1===this.maxWidth||window.innerWidth254)return!1;if(!n.test(t))return!1;var e=t.split("@");return!(e[0].length>64)&&!e[1].split(".").some((function(t){return t.length>63}))}},290:function(t,e,r){"use strict";r(278)},291:function(t,e,r){var n=r(107)(!1);n.push([t.i,".link{border-radius:19px;aspect-ratio:391/145;display:block;position:relative;z-index:2}.link-img{max-width:100%;cursor:pointer;transition:transform .07s linear,filter .1s ease-out,opacity .15s linear;opacity:0}.link-img:hover{transform:scale(1.02);filter:drop-shadow(3px 3px 5px rgba(0,0,0,.17))}",""]),t.exports=n},292:function(t,e,r){"use strict";r.r(e);var n={props:{title:{required:!0,type:String},path:{required:!0,type:String},preload:{required:!1,type:Boolean,default:!1}},data:function(){return{imageLoaded:!1}}},o=(r(290),r(28)),component=Object(o.a)(n,(function(){var t=this,e=t._self._c;return e("nuxt-link",{staticClass:"link",style:{background:t.imageLoaded?"none":"#f1f2f6"},attrs:{prefetch:t.preload,to:"/".concat(t.path,"/")}},[e("img",{staticClass:"link-img",style:{opacity:t.imageLoaded?1:0},attrs:{onload:t.imageLoaded=!0,alt:t.title,src:"/link-images/".concat(t.path,".svg"),loading:"lazy"}})])}),[],!1,null,null,null);e.default=component.exports},293:function(t,e,r){"use strict";r(279)},294:function(t,e,r){var n=r(107),o=r(200),d=r(288),c=n(!1),l=o(d);c.push([t.i,"@font-face{font-family:RobotoCondensedLight;src:url("+l+")}.footer-wrapper[data-v-2b1aca38]{margin-top:15px;padding:30px 20px 45px;text-align:center;font-size:22px;font-family:RobotoCondensedLight,sans-serif}.related-text[data-v-2b1aca38]{font-size:22px}.site-title[data-v-2b1aca38]{margin-top:18px;max-width:140px}.related-posts[data-v-2b1aca38],.site-title[data-v-2b1aca38]{margin-left:auto;margin-right:auto}.related-posts[data-v-2b1aca38]{display:grid;max-width:870px;grid-template-columns:repeat(2,1fr);grid-gap:16px 18px;margin-top:15px;font-size:0}.made-by[data-v-2b1aca38]{font-size:16px;margin-top:15px;opacity:.6;display:none}.made-by a[data-v-2b1aca38]{color:#000}.heart[data-v-2b1aca38]{width:17px;height:17px;position:relative;top:4px}.site-title-logo[data-v-2b1aca38]{height:25px}.newsletter-text[data-v-2b1aca38]{font-size:19px;margin-bottom:8px}.newsletter-img[data-v-2b1aca38]{height:16px;position:relative;top:3px;margin-right:7px}.newsletter-input[data-v-2b1aca38]{font-size:17px;padding:7px 5px 7px 40px;border-radius:5px;border:1px solid #000;max-width:220px;width:100%;background-color:#fff;background-image:url(/general/mail.svg);background-repeat:no-repeat;background-size:auto 15px;background-position:10px;font-family:RobotoCondensedLight;outline:none;color:#000}.newsletter-input[data-v-2b1aca38]::-moz-placeholder{color:rgba(0,0,0,.8)}.newsletter-input[data-v-2b1aca38]::placeholder{color:rgba(0,0,0,.8)}.newsletter-subscribe[data-v-2b1aca38]{background:#fff5d9;font-size:17px;-webkit-appearance:none;-moz-appearance:none;appearance:none;box-shadow:none;border:1px solid #000;border-radius:5px;padding:7px 12px;margin-left:5px;height:100%;cursor:pointer;color:#000;font-family:RobotoCondensedLight}.newsletter-subscribe[data-v-2b1aca38]:hover{transform:scale(1.03)}.newsletter-box[data-v-2b1aca38]{padding:20px 10px;border-radius:5px;margin-left:auto;margin-right:auto;margin-top:10px}.newsletter-inner[data-v-2b1aca38]{display:flex;justify-content:center;height:42px}@media only screen and (max-width:700px){.footer-wrapper[data-v-2b1aca38]{padding-left:12px;padding-right:12px}.related-posts[data-v-2b1aca38]{grid-template-columns:repeat(1,1fr)}.site-title[data-v-2b1aca38]{max-width:145px;margin-top:25px}}",""]),t.exports=c},295:function(t,e,r){"use strict";r.r(e);var n,o=r(284),d=r(10),c=(r(45),r(15),r(203),r(60),r(297)),l=r.n(c),f=r(289),h={props:{color:{type:String,required:!1,default:"black"},bg:{type:String,required:!1,default:"white"}},data:function(){return{related:[],submittedEmail:!1,email:""}},mounted:function(){this.getRelated()},computed:{isValidEmail:function(){return f.validate(this.email)}},methods:{onEmailSubmit:(n=Object(d.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isValidEmail){t.next=4;break}return this.submittedEmail=!0,t.next=4,l()({url:"https://neal.fun/api/newsletter/subscribe",method:"POST",data:{email:this.email}});case 4:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)}),getRelated:function(){var t=window.innerWidth>500?4:3,e=Object(o.a)(this.$store.state.posts),r=this.$route.path;e=e.filter((function(t){return"/".concat(t.path,"/")!==r&&!t.hidden&&!t.hideInRecommended}));for(var n=[],d=0;d=900?e("Ad",{attrs:{slotId:"8007340466",adStyle:"display: block; width: 728px; height: 90px; margin-left: auto;",adFormat:"none",isResponsive:!1,minWidth:960}}):t._e()],1)])}),[],!1,null,"d53c391a",null);e.default=component.exports;installComponents(component,{Logo:r(287).default,Ad:r(280).default})},337:function(t,e,r){"use strict";var n=r(2),o=r(4),d=r(49),c=r(281),l=r(207),f=r(3),h=RangeError,m=String,v=Math.floor,x=o(l),w=o("".slice),y=o(1..toFixed),k=function(t,e,r){return 0===e?r:e%2==1?k(t,e-1,r*t):k(t*t,e/2,r)},_=function(data,t,e){for(var r=-1,n=e;++r<6;)n+=t*data[r],data[r]=n%1e7,n=v(n/1e7)},C=function(data,t){for(var e=6,r=0;--e>=0;)r+=data[e],data[e]=v(r/t),r=r%t*1e7},z=function(data){for(var t=6,s="";--t>=0;)if(""!==s||0===t||0!==data[t]){var e=m(data[t]);s=""===s?e:s+x("0",7-e.length)+e}return s};n({target:"Number",proto:!0,forced:f((function(){return"0.000"!==y(8e-5,3)||"1"!==y(.9,0)||"1.25"!==y(1.255,2)||"1000000000000000128"!==y(0xde0b6b3a7640080,0)}))||!f((function(){y({})}))},{toFixed:function(t){var e,r,n,o,l=c(this),f=d(t),data=[0,0,0,0,0,0],v="",y="0";if(f<0||f>20)throw h("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return m(l);if(l<0&&(v="-",l=-l),l>1e-21)if(r=(e=function(t){for(var e=0,r=t;r>=4096;)e+=12,r/=4096;for(;r>=2;)e+=1,r/=2;return e}(l*k(2,69,1))-69)<0?l*k(2,-e,1):l/k(2,e,1),r*=4503599627370496,(e=52-e)>0){for(_(data,0,r),n=f;n>=7;)_(data,1e7,0),n-=7;for(_(data,k(10,n,1),0),n=e-1;n>=23;)C(data,1<<23),n-=23;C(data,1<0?v+((o=y.length)<=f?"0."+x("0",f-o)+y:w(y,0,o-f)+"."+w(y,o-f)):v+y}})},577:function(t,e,r){var content=r(1151);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(108).default)("526956df",content,!0,{sourceMap:!1})},578:function(t,e,r){var content=r(1153);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(108).default)("81f5e0fa",content,!0,{sourceMap:!1})},579:function(t,e,r){var content=r(1157);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(108).default)("c453da0e",content,!0,{sourceMap:!1})}}]); \ No newline at end of file diff --git a/_nuxt/417f0f7.js b/_nuxt/417f0f7.js new file mode 100644 index 0000000000000000000000000000000000000000..d10fa9553b0348722f0dd05ee5abd5e8257642c5 --- /dev/null +++ b/_nuxt/417f0f7.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[45],{1188:function(t,e,r){"use strict";r(726)},1189:function(t,e,r){var o=r(107)(!1);o.push([t.i,".bg[data-v-fcf5069e]{position:fixed;top:0;left:0;width:100%;height:100%}.bg-placeholder[data-v-fcf5069e]{background:linear-gradient(180deg,#24a5f8,#bef0ff)!important}",""]),t.exports=o},1190:function(t,e,r){"use strict";r(727)},1191:function(t,e,r){var o=r(107)(!1);o.push([t.i,":root{--cloud-speed:1}@media only screen and (max-width:1100px){:root{--cloud-speed:0.75}}@media only screen and (max-width:900px){:root{--cloud-speed:0.6}}@media only screen and (max-width:700px){:root{--cloud-speed:0.4}}",""]),t.exports=o},1192:function(t,e,r){"use strict";r(728)},1193:function(t,e,r){var o=r(107)(!1);o.push([t.i,".cloud[data-v-48115f6a]{position:absolute;left:50%;transform:translateX(-50%);pointer-events:none}.cloud-animated[data-v-48115f6a]{--anim-duration:190s;--anim-offset:-150s;animation-name:move-48115f6a;animation-duration:calc(var(--anim-duration)*var(--cloud-speed));animation-delay:calc(var(--anim-offset)*var(--cloud-speed));animation-timing-function:linear;animation-iteration-count:infinite;animation-direction:alternate-reverse;animation-play-state:paused}.play-anim[data-v-48115f6a]{animation-play-state:running}.cumulus[data-v-48115f6a]{--anim-duration:190s;--anim-offset:-150s;top:calc(var(--page-height) - 800px);width:80vw;max-width:1400px}.cumulus[data-v-48115f6a],.stratus[data-v-48115f6a]{--start-x:calc(-50% - 20vw);--end-x:calc(-50% + 20vw);--offset-y:-100%}.stratus[data-v-48115f6a]{--anim-duration:200s;--anim-offset:-300s;top:calc(var(--page-height) - 1500px);width:75vw}.altostratus[data-v-48115f6a]{--anim-duration:190s;--anim-offset:-350s;top:calc(var(--page-height) - 2920px);max-width:1100px}.altostratus[data-v-48115f6a],.altostratus2[data-v-48115f6a]{--start-x:calc(-50% - 20vw);--end-x:calc(-50% + 20vw);--offset-y:-100%;width:90vw;transform:translate(-50%,var(--offset-y))}.altostratus2[data-v-48115f6a]{--anim-duration:250s;top:calc(var(--page-height) - 2900px)}.altocumulus[data-v-48115f6a],.altostratus2[data-v-48115f6a]{--anim-offset:-150s;max-width:1300px}.altocumulus[data-v-48115f6a]{--start-x:calc(-50% - 20vw);--end-x:-50%;--offset-y:-50%;--anim-duration:70s;top:calc(var(--page-height) - 4900px);width:90vw;transform:translate(-50%,var(--offset-y))}.cirrus[data-v-48115f6a]{--start-x:-50%;top:calc(var(--page-height) - 7000px);max-width:1300px;min-width:1000px;transform:translate(-20%,var(--offset-y))}.cirrus[data-v-48115f6a],.cirrus2[data-v-48115f6a]{--end-x:calc(-50% + 20vw);--offset-y:-100%;width:100vw;opacity:.85}.cirrus2[data-v-48115f6a]{--start-x:calc(-50% - 20vw);--anim-duration:170s;--anim-offset:0s;top:calc(var(--page-height) - 6000px);max-width:1500px;min-width:1300px;transform:translate(-50%,var(--offset-y))}.cirrus3[data-v-48115f6a]{--anim-duration:100s;--anim-offset:-100s;top:calc(var(--page-height) - 5600px);width:140vw;max-width:1700px;min-width:1500px;transform:translate(-50%,var(--offset-y))}.cirrus3[data-v-48115f6a],.cirrus4[data-v-48115f6a]{--start-x:calc(-50% - 20vw);--end-x:calc(-50% + 20vw);--offset-y:-100%}.cirrus4[data-v-48115f6a]{top:calc(var(--page-height) - 6900px);width:100vw;max-width:1300px;min-width:1100px;transform:translate(-80%,var(--offset-y));opacity:.6}.nimbostratus[data-v-48115f6a]{top:calc(var(--page-height) - 2370px);width:75vw;transform:translate(-79vw,-60%)}.nimbostratus2[data-v-48115f6a]{transform:translate(-50%,-60%)}.nimbostratus2[data-v-48115f6a],.nimbostratus3[data-v-48115f6a]{top:calc(var(--page-height) - 2370px);width:80vw}.nimbostratus3[data-v-48115f6a]{transform:translateY(-60%)}.cumulonimbus[data-v-48115f6a]{top:calc(var(--page-height) - 3350px);width:100vw;max-width:1600px;transform:translateY(-100%);left:auto;right:0}.cirrostratus[data-v-48115f6a]{--start-x:calc(-50% - 20vw);--end-x:calc(-50% + 20vw);--offset-y:-100%;--anim-duration:100s;--anim-offset:-100s;top:calc(var(--page-height) - 9100px);width:140vw;min-width:2300px;transform:translate(-50%,var(--offset-y));opacity:.9}.cirrostratus2[data-v-48115f6a]{--anim-offset:-200s;top:calc(var(--page-height) - 9200px)}.cirrostratus2[data-v-48115f6a],.cirrostratus3[data-v-48115f6a]{--start-x:calc(-50% - 20vw);--end-x:calc(-50% + 20vw);--offset-y:-100%;--anim-duration:100s;width:140vw;min-width:2300px;transform:translate(-50%,var(--offset-y));opacity:.75}.cirrostratus3[data-v-48115f6a]{--anim-offset:10s;top:calc(var(--page-height) - 8500px)}.cirrostratus4[data-v-48115f6a]{--offset-y:-100%;--anim-duration:100s;top:calc(var(--page-height) - 10200px);opacity:.5;min-width:2000px}.cirrostratus4[data-v-48115f6a],.cirrostratus5[data-v-48115f6a]{--start-x:calc(-50% - 20vw);--end-x:calc(-50% + 20vw);--anim-offset:-100s;width:140vw;transform:translate(-50%,var(--offset-y))}.cirrostratus5[data-v-48115f6a]{--offset-y:-50%;--anim-duration:110s;top:calc(var(--page-height) - 5500px);opacity:.4;min-width:1000px}.cirrostratus6[data-v-48115f6a]{--offset-y:-50%;--anim-duration:300s;top:calc(var(--page-height) - 6600px);opacity:.4;width:160vw;min-width:1200px;transform:translate(-50%,var(--offset-y))}.cirrostratus6[data-v-48115f6a],.noctilucent[data-v-48115f6a]{--start-x:-50%;--end-x:calc(-50% + 20vw);--anim-offset:-100s}.noctilucent[data-v-48115f6a]{--anim-duration:10s;top:calc(var(--page-height) - 76700px);width:120vw;max-width:2000px;min-width:1900px;opacity:.9}.noctilucent2[data-v-48115f6a]{top:calc(var(--page-height) - 76900px);width:130vw;max-width:2200px;min-width:1800px;opacity:.85}.nacreous[data-v-48115f6a]{--start-x:calc(-50% - 20vw);--end-x:calc(-50% + 20vw);--offset-y:-50%;--anim-duration:200s;--anim-offset:-175s;top:calc(var(--page-height) - 20300px);min-width:1400px;width:90vw;transform:translate(-50%,var(--offset-y))}.mount-everest[data-v-48115f6a]{top:calc(var(--page-height) - 8820px);width:100vw;animation-duration:0s;transform:translateX(-50vw)}.sprite[data-v-48115f6a]{top:calc(var(--page-height) - 70800px);width:50vw;max-width:800px;min-width:730px;left:50%;transform:translateX(-50%)}.blue-jet[data-v-48115f6a]{top:calc(var(--page-height) - 49500px);height:1100px;left:30%}.marker[data-v-48115f6a]{height:1px;width:100%;opacity:0;pointer-events:none}@keyframes move-48115f6a{0%{transform:translate(var(--start-x),var(--offset-y))}to{transform:translate(var(--end-x),var(--offset-y))}}@media only screen and (max-width:1500px){.nimbostratus[data-v-48115f6a],.nimbostratus2[data-v-48115f6a],.nimbostratus3[data-v-48115f6a]{top:calc(var(--page-height) - 2450px)}}@media only screen and (max-width:1300px){.nimbostratus[data-v-48115f6a],.nimbostratus2[data-v-48115f6a],.nimbostratus3[data-v-48115f6a]{top:calc(var(--page-height) - 2500px)}}@media only screen and (max-width:1250px){.sprite[data-v-48115f6a]{width:60vw;transform:translate(-50%,-8%)}}@media only screen and (max-width:1100px){.sprite[data-v-48115f6a]{width:67vw;transform:translate(-50%,-5%)}.nimbostratus[data-v-48115f6a],.nimbostratus2[data-v-48115f6a],.nimbostratus3[data-v-48115f6a]{top:calc(var(--page-height) - 2600px)}}@media only screen and (max-width:1000px){.sprite[data-v-48115f6a]{width:75vw}}@media only screen and (max-width:700px){.altocumulus[data-v-48115f6a],.altostratus[data-v-48115f6a],.cirrostratus[data-v-48115f6a],.cirrostratus2[data-v-48115f6a],.cirrostratus3[data-v-48115f6a],.cirrostratus4[data-v-48115f6a],.cirrostratus5[data-v-48115f6a],.cirrostratus6[data-v-48115f6a],.cirrus2[data-v-48115f6a],.cirrus3[data-v-48115f6a],.cirrus4[data-v-48115f6a]{animation:none}.cumulus[data-v-48115f6a]{width:250vw}.cumulus3[data-v-48115f6a]{width:200vw}.nimbostratus[data-v-48115f6a],.nimbostratus2[data-v-48115f6a],.nimbostratus3[data-v-48115f6a]{width:110vw;top:calc(var(--page-height) - 2700px)}.altostratus[data-v-48115f6a],.altostratus2[data-v-48115f6a],.stratus[data-v-48115f6a]{width:250vw}.cumulonimbus[data-v-48115f6a]{width:200vw;transform:translate(15%,-110%)}.cirrus[data-v-48115f6a]{width:220vw}.cirrus2[data-v-48115f6a],.cirrus3[data-v-48115f6a]{width:250vw}.cirrus3[data-v-48115f6a]{top:calc(var(--page-height) - 5500px)}.altocumulus[data-v-48115f6a]{top:calc(var(--page-height) - 5050px);opacity:.5}.altocumulus2[data-v-48115f6a]{width:250vw}.nacreous[data-v-48115f6a]{width:280vw;top:calc(var(--page-height) - 20000px)}.cirrostratus[data-v-48115f6a]{width:200vw;top:calc(var(--page-height) - 10000px)}.cirrostratus2[data-v-48115f6a]{width:200vw;top:calc(var(--page-height) - 9000px)}.noctilucent[data-v-48115f6a],.noctilucent2[data-v-48115f6a]{width:250vw;min-width:1700px}.sprite[data-v-48115f6a]{min-width:auto;width:130vw;transform:translate(-50%,5%)}}",""]),t.exports=o},1194:function(t,e,r){"use strict";r(729)},1195:function(t,e,r){var o=r(107)(!1);o.push([t.i,".character-wrapper[data-v-7907fb68]{position:absolute;width:30px;bottom:7px;left:50%;transform:translateX(-50%)}.scarf[data-v-7907fb68]{position:absolute;top:25px;left:4px;width:28px;z-index:3}.has-suit .scarf[data-v-7907fb68]{top:28px}.suit[data-v-7907fb68]{position:absolute;top:-2px;left:-4px;width:38px}.space-suit-2[data-v-7907fb68]{top:-3px}@media only screen and (max-width:800px){.character-wrapper[data-v-7907fb68]{width:22px;bottom:5px}.suit[data-v-7907fb68]{left:-3px;width:28px}.scarf[data-v-7907fb68]{top:19px;width:19px}.has-suit .scarf[data-v-7907fb68]{top:21px}}",""]),t.exports=o},1196:function(t,e,r){"use strict";r(730)},1197:function(t,e,r){var o=r(107)(!1);o.push([t.i,":root{--elevator-bottom-scale:0%;--elevator-top-scale:800%}",""]),t.exports=o},1198:function(t,e,r){"use strict";r(731)},1199:function(t,e,r){var o=r(107)(!1);o.push([t.i,'.elevator-container[data-v-4144d7dd]{position:fixed;top:0;left:15px;width:70px;height:100%;z-index:15;pointer-events:none;contain:layout}.elevator-section[data-v-4144d7dd]{position:absolute;left:50%;transform:translate(-50%,-60px);width:100%;bottom:0;transition:transform .2s ease-out}.elevator-section[data-v-4144d7dd]:before{top:0;background:linear-gradient(0deg,#000,transparent 85%);transform:translate(-50%,-100%) scaleY(var(--elevator-top-scale));transform-origin:bottom center}.elevator-section[data-v-4144d7dd]:after,.elevator-section[data-v-4144d7dd]:before{content:"";position:absolute;left:50%;width:1px;height:100px;z-index:10;transition:filter .4s ease-in-out;contain:layout}.elevator-section[data-v-4144d7dd]:after{top:100%;background:linear-gradient(180deg,#000,transparent);transform:translate(-50%,-5px) scaleY(var(--elevator-bottom-scale));transform-origin:top center}.elevator-img[data-v-4144d7dd]{width:100%;image-rendering:crisp-edges}.is-space .elevator-section[data-v-4144d7dd]:after,.is-space .elevator-section[data-v-4144d7dd]:before{filter:invert(1)}.shake[data-v-4144d7dd]{animation:shake-4144d7dd 1s ease-in-out infinite}.glass[data-v-4144d7dd]{top:10px;left:0;width:100%;height:calc(100% - 20px);background:hsla(0,0%,100%,.2);z-index:-1}.glass[data-v-4144d7dd],.light[data-v-4144d7dd]{position:absolute}.light[data-v-4144d7dd]{top:4px;left:50%;width:10px;height:4px;background-color:#fff;transform:translateX(-50%);border-radius:5px}.rain-drops[data-v-4144d7dd]{position:absolute;top:-9px;left:0;width:93%;left:3.5%;height:9px;background:url(/space-elevator/icons/rain-drops.svg);background-size:14px 9px;background-repeat:repeat-x}.is-end .light[data-v-4144d7dd]{background-color:#ffeda5;filter:drop-shadow(0 0 3px rgb(255,237,165))}@keyframes shakeCable-4144d7dd{0%{rotate:0deg}50%{rotate:.4deg}to{rotate:0deg}}@keyframes shake-4144d7dd{0%{rotate:0deg}50%{rotate:4deg}to{rotate:0deg}}@keyframes shakeSmall-4144d7dd{0%{rotate:0deg}50%{rotate:2deg}to{rotate:0deg}}@keyframes unshake-4144d7dd{to{transform:translate(-50%,50%) rotate(0deg)}}@media only screen and (max-width:800px){.elevator-container[data-v-4144d7dd]{left:8px;width:52px}.cable[data-v-4144d7dd]{width:1px}.light[data-v-4144d7dd]{top:3px}}',""]),t.exports=o},1200:function(t,e,r){"use strict";r(732)},1201:function(t,e,r){var o=r(107)(!1);o.push([t.i,".selection-wrapper[data-v-03caf5b2]{position:absolute;display:flex;grid-gap:16px;grid-template-columns:1fr;z-index:10}.option-wrapper[data-v-03caf5b2]{display:flex;align-items:center;justify-content:center;height:60px;width:60px;border:1px solid #000;border-radius:10px;cursor:pointer;box-shadow:3px 3px 0 2px rgba(71,155,232,.6);background:#fff;touch-action:manipulation}.option-img[data-v-03caf5b2]{width:40px;pointer-events:none}.scarf .option-img[data-v-03caf5b2]{padding:2px}.scarf[data-v-03caf5b2]{top:96375px;left:calc(7% + 39px)}.suit[data-v-03caf5b2]{top:88229px;left:calc(50% - 75px);transform:translateX(-50%)}.suit .option-wrapper[data-v-03caf5b2]{height:100px;width:60px}@media (hover:hover){.option-wrapper[data-v-03caf5b2]:hover{transform:scale(1.05)}.option-wrapper[data-v-03caf5b2]:active{box-shadow:none;transform:translate(3px,3px)}}@media (hover:none){.option-selected[data-v-03caf5b2]{box-shadow:none!important;transform:translate(2px,2px);opacity:.65}}@media only screen and (max-width:1100px){.scarf[data-v-03caf5b2]{left:calc(5% + 39px)}}@media only screen and (max-width:700px){.selection-wrapper[data-v-03caf5b2]{grid-gap:9px}.option-wrapper[data-v-03caf5b2]{box-shadow:2px 2px 0 2px rgba(71,155,232,.6)}.suit .option-wrapper[data-v-03caf5b2]{height:90px;width:50px}.option-img[data-v-03caf5b2]{width:30px}.suit[data-v-03caf5b2]{top:88130px}.scarf[data-v-03caf5b2],.suit[data-v-03caf5b2]{left:calc(50% - 4px)}.scarf[data-v-03caf5b2]{transform:translateX(-50%)}.scarf .option-img[data-v-03caf5b2]{padding:0}}",""]),t.exports=o},1202:function(t,e,r){"use strict";r(733)},1203:function(t,e,r){var o=r(107)(!1);o.push([t.i,".clouds[data-v-77983da6]{position:absolute;left:0;width:100vw;height:var(--page-height);overflow-x:hidden;z-index:1;pointer-events:none}",""]),t.exports=o},1204:function(t,e,r){"use strict";r(734)},1205:function(t,e,r){var o=r(107)(!1);o.push([t.i,'.instruments[data-v-7bbdcafe]{font-family:"HandWide",sans-serif}.altitude[data-v-7bbdcafe]{position:fixed;bottom:0;left:50%;transform:translate(-50%,100%);z-index:100;background:#1c1c1c;border-top-left-radius:8px;border-top-right-radius:8px;grid-gap:1px;border-left:1px solid #1c1c1c;border-right:1px solid #1c1c1c;border-top:1px solid #1c1c1c;overflow:hidden;transition:transform .3s ease-in-out}.altitude[data-v-7bbdcafe],.altitude-digit[data-v-7bbdcafe]{display:flex;contain:layout}.altitude-digit[data-v-7bbdcafe]{background:#fff;width:32px;font-size:23px;color:#1c1c1c;height:36px;justify-content:center;align-items:center;padding-top:5px;font-weight:700}.altitude-digit-disabled[data-v-7bbdcafe]{color:rgba(0,0,0,.1)}.show-altitude[data-v-7bbdcafe]{transform:translateX(-50%)}.temperature[data-v-7bbdcafe]{position:fixed;top:12px;right:27px;z-index:100;font-size:21px;contain:layout;color:#000;transition:color .3s ease-in-out;cursor:pointer;touch-action:manipulation}.is-space .temperature[data-v-7bbdcafe]{color:#fff}.temperature-icon[data-v-7bbdcafe]{height:21px;position:relative;top:3px;right:3px;transition:filter .3s ease-in-out}.temperature-number[data-v-7bbdcafe]{contain:layout}.is-space .temperature-icon[data-v-7bbdcafe]{filter:invert(1)}@media only screen and (max-width:700px){.altitude-digit[data-v-7bbdcafe]{font-size:21px;width:28px;height:32px}.temperature[data-v-7bbdcafe]{right:15px}}',""]),t.exports=o},1206:function(t,e,r){"use strict";r(735)},1207:function(t,e,r){var o=r(107)(!1);o.push([t.i,":root{--scale-factor:1}@media only screen and (max-width:1200px){:root{--scale-factor:0.97}}@media only screen and (max-width:1100px){:root{--scale-factor:0.95}}@media only screen and (max-width:975px){:root{--scale-factor:0.93}}@media only screen and (max-width:800px){:root{--scale-factor:0.79}}@media only screen and (max-width:500px){:root{--scale-factor:0.73}}",""]),t.exports=o},1208:function(t,e,r){"use strict";r(736)},1209:function(t,e,r){var o=r(107)(!1);o.push([t.i,'.line[data-v-1682085a]{position:absolute;transform:translateY(-100%);font-size:19px;text-align:center;line-height:1.3em;z-index:4}.heading .line-caption[data-v-1682085a]{font-size:28px;padding:13px 8px 12px;border-radius:10px;max-width:245px;margin-left:auto;margin-right:auto;text-transform:uppercase;background:#fff;color:#1c1c1c;border:1px solid #1c1c1c;letter-spacing:.6px}.heading.line-space .line-caption[data-v-1682085a]{border:none;box-shadow:0 0 7px 0 hsla(0,0%,100%,.8)}.heading.line[data-v-1682085a]{width:100vw;right:0}.heading.line[data-v-1682085a]:before{position:absolute;content:"";display:block;width:100%;height:1px;background-image:linear-gradient(90deg,#1c1c1c 40%,hsla(0,0%,100%,0) 0);background-position:bottom;background-size:12px 1px;background-repeat:repeat-x;left:0;top:50%;z-index:-1;transform:translateY(-50%)}.heading.line-space[data-v-1682085a]:before{background-image:linear-gradient(90deg,#fff 40%,hsla(0,0%,100%,0) 0);filter:drop-shadow(0 0 3px rgba(255,255,255,1)) drop-shadow(0 0 2px rgba(255,255,255,.6))}.line-subcaption[data-v-1682085a]{font-size:15px;opacity:.5;max-width:200px;line-height:1.1em}.line-icon[data-v-1682085a],.line-subcaption[data-v-1682085a]{margin-left:auto;margin-right:auto}.line-icon[data-v-1682085a]{--width:150px;margin-bottom:10px;display:block;width:calc(var(--width)*var(--scale-factor));z-index:4}.caption[data-v-1682085a]{color:#000;background:#fff;padding:5px 15px 6px;border-radius:10px;line-height:1.2em;border:1px solid #000;box-shadow:2px 2px 4px 1px rgba(0,0,0,.05)}.caption.line-space[data-v-1682085a]{border:none;box-shadow:0 0 10px 0 hsla(0,0%,100%,.6)}.line-space .line-caption[data-v-1682085a]{text-shadow:0 0 6px hsla(0,0%,100%,.65)}.center[data-v-1682085a]{left:calc(50% - 75px);transform:translateX(-50%)}.fireworks[data-v-1682085a]{right:9%;transform:translateY(-250px)}.mallard-migrate[data-v-1682085a]{left:7%;transform:translateY(-50px)}.pterodactyl[data-v-1682085a]{right:13%;transform:translateY(-170px)}.cumulus-desc[data-v-1682085a]{left:5%;max-width:450px}.mil-v-12[data-v-1682085a]{right:15%}.hang-gliding[data-v-1682085a]{right:10%;transform:translateY(-250px)}.pigeon[data-v-1682085a]{left:10%;transform:translateY(-300px)}.skydiving[data-v-1682085a]{right:15%;transform:translateY(50px)}.white-stork[data-v-1682085a]{right:24%}.cessna[data-v-1682085a]{right:30%}.eagle[data-v-1682085a]{left:30%;transform:translateY(-400px)}.lizard[data-v-1682085a]{right:20%;transform:translateY(0)}.zeppelin[data-v-1682085a]{right:25%;transform:translateY(-120px)}.spider[data-v-1682085a]{left:20%;transform:translateY(-180px)}.vega-5b[data-v-1682085a]{left:25%;transform:translateY(50px)}.bell-47[data-v-1682085a]{right:20%;transform:translateY(-300px)}.bell-47 .line-subcaption[data-v-1682085a]{max-width:120px}.godwid[data-v-1682085a]{left:35%;transform:translateY(-50px)}.sandwort[data-v-1682085a]{right:15%;transform:translateY(-150px)}.highest-mouse[data-v-1682085a]{right:15%}.military-parachute[data-v-1682085a]{left:50%}.whooper-swan[data-v-1682085a]{left:40%}.yak[data-v-1682085a]{left:11%;transform:translateY(-85px)}.oxygen[data-v-1682085a]{left:50%}.passenger-jet[data-v-1682085a]{right:25%;transform:translateY(110px)}.mountain-goat[data-v-1682085a]{right:10%;transform:translateY(140px)}.mount-everest-peak[data-v-1682085a]{right:39.3%;max-width:160px;transform:translateY(-28px)}.highest-ejection[data-v-1682085a]{left:25%}.concorde[data-v-1682085a]{right:20%}.f-22[data-v-1682085a]{left:10%;transform:translateY(100%)}.an-225[data-v-1682085a]{right:20%;transform:translateY(-160px)}.spitfire[data-v-1682085a]{left:25%;transform:translateY(-50px)}.stratosphere-ozone[data-v-1682085a],.stratosphere-temperature[data-v-1682085a]{max-width:325px}.in-trophosphere[data-v-1682085a],.water-vapor[data-v-1682085a]{left:50%;transform:translateX(-50%);max-width:270px}.bald-eagle[data-v-1682085a]{left:50%}.alpine-chough[data-v-1682085a]{left:5%}.cumolonimbus-desc[data-v-1682085a]{left:6%;max-width:340px}.altocumulus-desc[data-v-1682085a]{left:30%;max-width:300px}.bumblebee[data-v-1682085a]{left:40%;transform:translateY(-50px)}.mallard[data-v-1682085a]{left:20%}.cirrus-desc[data-v-1682085a]{left:25%}.bearded-vulture[data-v-1682085a]{left:30%}.box-kite[data-v-1682085a]{right:37%;transform:translateY(120px)}.cirrostratus-desc[data-v-1682085a]{left:30%;max-width:240px}.crane[data-v-1682085a]{left:15%;transform:translateY(450px)}.sa-315[data-v-1682085a]{left:25%}.f-15-eagle[data-v-1682085a]{left:20%;transform:translateY(0)}.jet-stream-desc[data-v-1682085a]{max-width:400px}.jet-stream-worry[data-v-1682085a]{max-width:460px}.caproni[data-v-1682085a]{right:26%}.armstrong[data-v-1682085a]{max-width:400px;right:31%}.zephyr[data-v-1682085a]{left:50%}.perlan[data-v-1682085a]{right:30%}.douglas[data-v-1682085a]{left:20%}.douglas-dc-3[data-v-1682085a]{right:13%}.castle-romeo[data-v-1682085a],.mesosphere-first[data-v-1682085a]{left:50%}.mesosphere-air[data-v-1682085a]{max-width:360px}.blue-jet[data-v-1682085a]{left:50%}.nasa-x-43[data-v-1682085a]{left:50%;transform:translateY(200px)}.pressure[data-v-1682085a]{max-width:400px}.tsar-bomba[data-v-1682085a]{max-width:360px}.mil-mi-8[data-v-1682085a]{left:25%;transform:translateY(-200px)}.nimbostratus-desc[data-v-1682085a]{left:20%;max-width:clamp(200px,50vw,450px)}.nacreous-desc[data-v-1682085a]{max-width:445px;left:23%}.pompeii[data-v-1682085a]{max-width:330px}.freefall-desc[data-v-1682085a]{max-width:410px;left:35%}.felix[data-v-1682085a]{left:15%;transform:translateY(-100px)}.hummingbird[data-v-1682085a]{left:10%;transform:translateY(-120px)}.oxygen-desc[data-v-1682085a]{right:30%;max-width:225px}.pick-scarf[data-v-1682085a]{left:7%;max-width:292px}.bell-x-2-desc[data-v-1682085a]{left:35%;max-width:550px}.bell-x-2[data-v-1682085a]{left:15%}.russia-meteor[data-v-1682085a]{right:30%;max-width:500px}.noctilucent-desc[data-v-1682085a]{max-width:450px}.mesosphere-temperature[data-v-1682085a]{left:calc(50% - 125px);transform:translate(-50%)}.sound[data-v-1682085a]{max-width:340px}.sounding-rocket[data-v-1682085a]{left:20%}.sounding-rocket-desc[data-v-1682085a]{right:25%;max-width:420px}.first-hydrogen[data-v-1682085a]{right:20%}.sprite-desc[data-v-1682085a]{left:5%;max-width:360px}.sprite-desc2[data-v-1682085a]{right:11%;max-width:330px}.blue-jet-desc[data-v-1682085a]{left:calc(30% + 250px);max-width:300px}.ussr-1[data-v-1682085a]{left:17%;transform:translateY(-150px)}.bell-x-1[data-v-1682085a]{right:25%;transform:translateY(-80px)}.sr-71[data-v-1682085a]{right:22%;transform:translateY(100px)}.f-35[data-v-1682085a]{left:10%;transform:translateY(0)}.paratrooper[data-v-1682085a]{right:30%;transform:translateY(-200px)}.hotair-balloon[data-v-1682085a]{right:12%;transform:translateY(-50px)}.bleriot-xi[data-v-1682085a]{right:30%;transform:translateY(-200px)}.flamingo[data-v-1682085a]{left:10%;transform:translateY(0)}.learjet-45[data-v-1682085a]{right:20%;transform:translateY(500px)}.paper-airplane-desc[data-v-1682085a]{left:40%;max-width:300px}.paper-airplane[data-v-1682085a]{left:10%;transform:translateY(0)}.weather-balloon[data-v-1682085a]{left:15%}.space-shuttle[data-v-1682085a]{left:15%;transform:translateY(-300px)}.ruppell-bird[data-v-1682085a]{right:20%}.party-balloon-desc[data-v-1682085a]{left:16%;max-width:370px}.music-desc[data-v-1682085a]{left:21%;max-width:273px}.monarch-butterfly[data-v-1682085a]{left:20%}.bar-goose[data-v-1682085a]{left:10%}.p-80[data-v-1682085a]{right:28%}.airbus-a380[data-v-1682085a]{left:20%}.andean-condor[data-v-1682085a]{left:45%;transform:translateY(-50px)}.p-51[data-v-1682085a]{right:27%}.v-2[data-v-1682085a]{left:30%}.meteors-desc[data-v-1682085a]{max-width:420px}.boeing-247[data-v-1682085a]{left:20%}.welcome-desc[data-v-1682085a]{max-width:255px;left:7%}.sky-black[data-v-1682085a]{max-width:350px;left:50%;transform:translateX(-100%)}.sr-71-desc[data-v-1682085a]{left:15%;max-width:350px}.castle-bravo[data-v-1682085a],.mesosphere-welcome[data-v-1682085a]{max-width:310px}.coldest[data-v-1682085a]{max-width:450px}.sopwith-camel[data-v-1682085a]{left:10%}.explorer-2[data-v-1682085a]{left:15%;transform:translateY(0)}.u-2[data-v-1682085a]{left:30%}.helios[data-v-1682085a]{left:10%}.project-excelsior[data-v-1682085a]{right:30%;transform:translateY(50px)}.alan[data-v-1682085a]{right:30%}.elevator-cheaper[data-v-1682085a],.elevator-feasible[data-v-1682085a],.elevator-hard[data-v-1682085a]{max-width:320px}.space-shuttle-eject[data-v-1682085a]{left:20%}.space-shuttle-heat[data-v-1682085a]{left:30%;transform:translateY(-450px)}.space-shuttle[data-v-1682085a]{transform:translateY(calc(-100% - 140px))}.space-shuttle-icon[data-v-1682085a]{transform:translateY(calc(100% + 65px))}.space-shuttle-heat-icon[data-v-1682085a]{margin-bottom:-18px}.sutter[data-v-1682085a]{right:30%;transform:translateY(20px)}.aurora-desc[data-v-1682085a],.aurora-desc2[data-v-1682085a]{max-width:320px}.vampire-mk-I[data-v-1682085a]{left:10%;transform:translateY(230px)}.sud-ouest[data-v-1682085a]{left:10%}.f-104[data-v-1682085a]{right:30%}.falcon-9[data-v-1682085a],.saturn-v[data-v-1682085a]{left:30%}.x-15[data-v-1682085a]{left:20%}.su-9[data-v-1682085a]{left:10%}.death-zone[data-v-1682085a]{max-width:375px}.karman-desc[data-v-1682085a]{max-width:310px}.thermosphere-temp[data-v-1682085a]{max-width:410px}.thermosphere-reach[data-v-1682085a]{max-width:300px}.highest-hot-air[data-v-1682085a]{left:15%}.project-excelsior-desc[data-v-1682085a]{max-width:360px;left:calc(50% - 360px)}.osprey[data-v-1682085a]{left:18%}.bu60[data-v-1682085a]{left:20%}.party-balloons[data-v-1682085a]{right:calc(50% - 160px)}.thermosphere-welcome[data-v-1682085a]{max-width:290px}.vss-unity[data-v-1682085a]{left:20%}.karman-line[data-v-1682085a]{transform:translateY(10px)}.vostok-1[data-v-1682085a]{right:25%}.elevator-speed[data-v-1682085a]{max-width:435px}@media only screen and (max-width:1500px){.mount-everest-peak[data-v-1682085a]{right:36.5%}}@media only screen and (max-width:1350px){.cirrus-desc[data-v-1682085a],.mil-mi-8[data-v-1682085a]{left:20%}.sounding-rocket-desc[data-v-1682085a]{right:20%}.sprite-desc[data-v-1682085a]{left:2%}}@media only screen and (max-width:1250px){.bald-eagle[data-v-1682085a]{transform:translateY(-150px)}.skydiving[data-v-1682085a]{right:10%}.oxygen-desc[data-v-1682085a]{right:30%;transform:translateY(-80px)}.mil-mi-8[data-v-1682085a]{left:18%;transform:translateY(-180px)}.andean-condor[data-v-1682085a]{left:37%}.bearded-vulture[data-v-1682085a]{left:15%;transform:translateY(-150px)}.sr-71[data-v-1682085a]{right:10%}.sr-71-desc[data-v-1682085a],.yak[data-v-1682085a]{left:10%}.zeppelin[data-v-1682085a]{transform:translateY(-105px)}.caproni[data-v-1682085a]{transform:translateY(-160px)}.nacreous-desc[data-v-1682085a]{transform:translateY(-150px)}.sounding-rocket-desc[data-v-1682085a]{right:15%}.fireworks[data-v-1682085a]{right:5%}.hotair-balloon[data-v-1682085a]{right:8%}}@media only screen and (max-width:1150px){.monarch-butterfly[data-v-1682085a]{transform:translateY(-50px)}.box-kite[data-v-1682085a]{transform:translateY(150px)}.focke[data-v-1682085a]{left:18%;transform:translateY(-120px)}.alpine-chough[data-v-1682085a]{transform:translateY(-50px)}.lizard[data-v-1682085a]{right:15%}.space-shuttle[data-v-1682085a]{left:10%}.p-51[data-v-1682085a]{right:20%}.blue-jet-desc[data-v-1682085a]{left:auto;right:10%}}@media only screen and (max-width:1100px){.mallard-migrate[data-v-1682085a]{left:14%}.bleriot-xi[data-v-1682085a]{right:20%;transform:translateY(-350px)}.cessna[data-v-1682085a]{right:25%;transform:translateY(-90px)}.mil-mi-8[data-v-1682085a]{left:14%}.bell-47[data-v-1682085a]{right:12%}.highest-mouse[data-v-1682085a]{transform:translateY(-100px)}.vega-5b[data-v-1682085a]{left:15%}.sr-71[data-v-1682085a]{transform:translateY(225px)}.pick-scarf[data-v-1682085a]{left:5%}.zeppelin[data-v-1682085a]{transform:translateY(-100px)}.cirrus-desc[data-v-1682085a]{transform:translateY(0)}.mount-everest-peak[data-v-1682085a]{right:37.5%}.sounding-rocket[data-v-1682085a]{left:13%}.party-balloons[data-v-1682085a]{right:calc(50% - 220px)}}@media only screen and (max-width:1000px){.focke[data-v-1682085a]{left:10%}.sandwort[data-v-1682085a]{right:10%}.bar-goose[data-v-1682085a],.flamingo[data-v-1682085a]{left:5%}.spider[data-v-1682085a]{left:10%}.an-225[data-v-1682085a]{right:15%}.thermosphere-temp[data-v-1682085a]{max-width:335px}.fireworks[data-v-1682085a]{transform:translateY(-180px)}}@media only screen and (max-width:900px){.box-kite[data-v-1682085a]{right:25%;transform:translateY(200px)}.mil-mi-8[data-v-1682085a]{left:10%}.zeppelin[data-v-1682085a]{right:10%}.space-shuttle[data-v-1682085a]{left:5%}.sounding-rocket[data-v-1682085a]{left:12%}.project-excelsior-desc[data-v-1682085a]{transform:translateY(-170px);left:10%}}@media only screen and (max-width:800px){.line-icon[data-v-1682085a]{width:calc(var(--mobile-width)*var(--scale-factor))}.zeppelin[data-v-1682085a]{width:100%;left:2%;right:auto;transform:translateY(-20px)}.zeppelin[data-v-1682085a],.zeppelin-icon[data-v-1682085a]{max-width:95%}.nasa-x-43[data-v-1682085a]{left:auto;right:10%}.bleriot-xi[data-v-1682085a]{right:15%}.party-balloons[data-v-1682085a]{right:20%;transform:translateY(-150px)}}@media only screen and (max-height:880px){.hummingbird[data-v-1682085a]{left:3%}}@media only screen and (max-height:750px){.hummingbird[data-v-1682085a]{left:-2%}}@media only screen and (max-width:700px){.line-caption[data-v-1682085a]{font-size:16px;line-height:1.18em}.line-subcaption[data-v-1682085a]{font-size:13px;line-height:1.2em;margin-top:4px}.heading .line-caption[data-v-1682085a]{width:200px;padding:10px 6px 8px;font-size:26px}.caption[data-v-1682085a]{line-height:1.3em;width:90%;left:calc(50% - 4px);transform:translateX(-50%);max-width:250px}.caption .line-caption[data-v-1682085a]{font-size:17px}.line-icon[data-v-1682085a]{margin-bottom:5px}.alpine-chough[data-v-1682085a]{right:20%}.alpine-chough[data-v-1682085a],.bald-eagle[data-v-1682085a]{left:auto;transform:translateY(-50px)}.bald-eagle[data-v-1682085a]{right:0}.white-stork[data-v-1682085a]{transform:translateY(-250px);right:auto;left:9%}.first-hydrogen[data-v-1682085a]{transform:translateY(-150px)}.hang-gliding[data-v-1682085a]{transform:translateY(-200px)}.bleriot-xi[data-v-1682085a]{right:20%;transform:translateY(-340px)}.yak[data-v-1682085a]{transform:translateY(-30px)}.mil-mi-8[data-v-1682085a]{left:5%;transform:translateY(-180px)}.sandwort[data-v-1682085a]{transform:translateY(-100px);right:10%}.andean-condor[data-v-1682085a]{transform:translateY(30px);left:16%}.godwid[data-v-1682085a]{left:10%;transform:translateY(10px)}.passenger-jet[data-v-1682085a]{transform:translateY(75px);right:15%}.an-225[data-v-1682085a]{right:10%;transform:translateY(115px)}.f-15-eagle[data-v-1682085a]{transform:translateY(150px)}.cumolonimbus-desc[data-v-1682085a]{transform:translate(-50%);max-width:220px}.mount-everest-peak[data-v-1682085a]{left:auto;right:30.5%;transform:translateY(-23px);max-width:143px}.mallard-migrate[data-v-1682085a]{transform:translateY(150px)}.skydiving[data-v-1682085a]{right:50%;transform:translateY(120px)}.bald-eagle[data-v-1682085a]{left:50%;transform:translateY(0)}.vega-5b[data-v-1682085a]{left:7%;transform:translateY(40px)}.focke[data-v-1682085a]{left:10%;transform:translateY(-150px)}.box-kite[data-v-1682085a]{left:auto;right:25%;transform:translateY(290px)}.altostratus-desc[data-v-1682085a]{transform:translateY(0)}.nimbostratus-desc[data-v-1682085a]{transform:translate(-50%,30px)}.flamingo[data-v-1682085a]{transform:translateY(-25px);left:5%}.cessna[data-v-1682085a]{left:auto;right:12%;transform:translateY(-45px)}.spider[data-v-1682085a]{left:auto;right:15%;transform:translateY(-25px)}.ruppell-bird[data-v-1682085a]{right:15%;transform:translateY(-300px)}.space-shuttle[data-v-1682085a]{left:0}.hummingbird[data-v-1682085a],.pigeon[data-v-1682085a]{left:10%}.pigeon[data-v-1682085a]{transform:translateY(-450px)}.monarch-butterfly[data-v-1682085a]{left:10%;transform:translateY(-130px)}.hotair-balloon[data-v-1682085a]{transform:translateY(-85px)}.pterodactyl[data-v-1682085a]{right:10%;transform:translateY(50px)}.lizard[data-v-1682085a]{right:15%;transform:translateY(135px)}.music-desc[data-v-1682085a]{transform:translate(-50%,-45px);max-width:190px}.cirrus-desc[data-v-1682085a]{transform:translate(-50%);max-width:210px}.paratrooper[data-v-1682085a]{transform:translateY(-170px)}.bar-goose[data-v-1682085a]{left:5%;transform:translateY(-180px)}.bell-x-1[data-v-1682085a]{transform:translateY(0)}.nacreous-desc[data-v-1682085a]{transform:translate(-50%,-110px);max-width:215px}.in-trophosphere[data-v-1682085a],.welcome-desc[data-v-1682085a]{max-width:240px}.welcome-desc[data-v-1682085a]{transform:translate(-50%,-40px)}.nimbostratus-desc[data-v-1682085a]{max-width:185px}.oxygen-desc[data-v-1682085a]{max-width:205px;transform:translate(-50%,-36px)}.bumblebee[data-v-1682085a]{transform:translateY(30px);left:auto;right:15%}.sopwith-camel[data-v-1682085a]{left:5%;transform:translateY(0)}.bell-47[data-v-1682085a]{right:10%;transform:translateY(-260px)}.pick-scarf[data-v-1682085a]{max-width:200px;transform:translate(-50%,-50px)}.water-vapor[data-v-1682085a]{max-width:240px}.mountain-goat[data-v-1682085a]{right:15%;transform:translateY(120px)}.boeing-247[data-v-1682085a]{transform:translateY(-200px)}.cirrostratus-desc[data-v-1682085a]{max-width:210px;transform:translate(-50%,-100px)}.mil-v-12[data-v-1682085a]{right:5%;transform:translateY(-250px)}.welcome-strat[data-v-1682085a]{max-width:195px}.zephyr[data-v-1682085a]{left:auto;right:15%}.perlan[data-v-1682085a]{right:25%}.u-2[data-v-1682085a]{left:10%}.suit-desc[data-v-1682085a]{transform:translate(-50%,-100px);max-width:200px}.pressure[data-v-1682085a]{max-width:250px;transform:translate(-50%,-50px)}.jet-stream-desc[data-v-1682085a]{max-width:236px}.jet-stream-worry[data-v-1682085a]{max-width:185px;transform:translate(-50%,-50px)}.concorde[data-v-1682085a]{transform:translateY(-150px)}.paper-airplane[data-v-1682085a]{transform:translateY(100px)}.freefall-desc[data-v-1682085a]{transform:translate(-50%,-225px);max-width:210px}.felix[data-v-1682085a]{left:30%}.sounding-rocket-desc[data-v-1682085a]{transform:translate(-50%,-200px)}.space-shuttle-heat[data-v-1682085a]{left:5%}.x-15[data-v-1682085a]{left:15%}.party-balloon-desc[data-v-1682085a]{transform:translate(-50%,-110px)}.stratosphere-ozone[data-v-1682085a]{max-width:208px}.stratosphere-temperature[data-v-1682085a]{max-width:215px}.blue-jet-desc[data-v-1682085a],.to-moon[data-v-1682085a]{max-width:190px}.mesosphere-welcome[data-v-1682085a]{max-width:195px}.tsar-bomba[data-v-1682085a]{max-width:225px}.sprite-desc[data-v-1682085a]{max-width:235px}.sprite-desc2[data-v-1682085a]{max-width:205px}.sound[data-v-1682085a]{max-width:225px}.meteors-desc[data-v-1682085a]{max-width:270px}.coldest[data-v-1682085a]{max-width:180px}.aurora-desc[data-v-1682085a]{max-width:190px}.aurora-desc2[data-v-1682085a]{max-width:205px}.karman-desc[data-v-1682085a]{max-width:200px}.spitfire[data-v-1682085a]{left:15%;transform:translateY(10px)}.highest-mouse[data-v-1682085a]{right:auto;left:10%}.armstrong[data-v-1682085a]{max-width:245px}.bell-x-1 .line-subcaption[data-v-1682085a]{max-width:130px}.sky-black[data-v-1682085a]{max-width:218px}.sr-71-desc[data-v-1682085a]{transform:translate(-50%,-60px);max-width:220px}.f-104[data-v-1682085a]{left:auto;right:10%}.paper-airplane-desc[data-v-1682085a]{max-width:236px}.castle-bravo[data-v-1682085a]{max-width:190px}.elevator-hard[data-v-1682085a]{max-width:215px}.space-shuttle-eject[data-v-1682085a]{left:5%}.mesosphere-air[data-v-1682085a]{max-width:225px}.noctilucent-desc[data-v-1682085a]{max-width:225px;transform:translate(-50%,-300px)}.thermosphere-welcome[data-v-1682085a]{max-width:230px}.thermosphere-temp[data-v-1682085a]{max-width:225px}.thermosphere-reach[data-v-1682085a]{max-width:240px}.thermosphere-leaving[data-v-1682085a]{max-width:145px}.project-excelsior-desc[data-v-1682085a]{max-width:215px;transform:translate(-50%,-200px)}.elevator-speed[data-v-1682085a]{max-width:225px}}@media only screen and (max-width:800px) and (max-height:600px){.hummingbird[data-v-1682085a]{transform:translateY(-90px)}.fireworks[data-v-1682085a]{transform:translateY(-100px)}}',""]),t.exports=o},1210:function(t,e,r){"use strict";r(737)},1211:function(t,e,r){var o=r(107)(!1);o.push([t.i,".body-space-elevator{position:fixed;width:100%;height:100%}:root{--page-height:100000px;--full-height:calc(100000px + 100vh)}",""]),t.exports=o},1212:function(t,e,r){"use strict";r(738)},1213:function(t,e,r){var o=r(107),n=r(200),d=r(1214),l=r(1215),c=o(!1),h=n(d),m=n(l);c.push([t.i,'@font-face{font-family:"HandWide";src:url('+h+')}@font-face{font-family:"HandWide";font-weight:700;src:url('+m+')}#scroll-wrapper[data-v-b78d9752]{position:fixed;width:100%;height:100%;overflow-x:hidden;overflow-y:scroll;scroll-behavior:smooth;overscroll-behavior:none}.container[data-v-b78d9752]{height:var(--full-height);width:100vw;overflow-x:hidden;color:#1c1c1c;transition:color .3s ease-in-out;font-family:"HandWide",sans-serif;letter-spacing:.2px}.container-graphics[data-v-b78d9752]{position:absolute;top:100vh;left:0;width:100vw;height:var(--page-height)}.container-inner[data-v-b78d9752]{position:absolute;top:0;right:0;width:calc(100% - 150px);height:100%}.site-title[data-v-b78d9752]{position:fixed;left:12px;top:12px;max-width:125px;z-index:1000;transition:filter .4s ease-in-out}.site-title[data-v-b78d9752]:hover{transform:scale(1.05)}.is-space .site-title[data-v-b78d9752]{filter:invert(1)}.space-trigger[data-v-b78d9752]{top:0;height:calc(var(--full-height) - 23725px)}.space-trigger[data-v-b78d9752],.start-trigger[data-v-b78d9752]{position:absolute;left:0;width:100%;pointer-events:none;opacity:0}.start-trigger[data-v-b78d9752]{top:calc(var(--page-height));height:100vh}.thermosphere-music-trigger[data-v-b78d9752]{top:calc(100vh + 90000px);height:10000px}.stratosphere-music-trigger[data-v-b78d9752],.thermosphere-music-trigger[data-v-b78d9752]{position:absolute;left:0;width:100%;pointer-events:none;opacity:0}.stratosphere-music-trigger[data-v-b78d9752]{top:calc(100vh + 75000px);height:15000px}.mesosphere-music-trigger[data-v-b78d9752]{height:calc(75000px + 100vh)}.mesosphere-music-trigger[data-v-b78d9752],.show-sound-trigger[data-v-b78d9752]{position:absolute;top:0;left:0;width:100%;pointer-events:none;opacity:0}.show-sound-trigger[data-v-b78d9752]{height:94000px}.elevator-ease-area[data-v-b78d9752]{top:calc(97000px + 100vh);height:3000px}.elevator-ease-area[data-v-b78d9752],.elevator-shake-area[data-v-b78d9752]{position:absolute;width:100%;pointer-events:none;opacity:0}.elevator-shake-area[data-v-b78d9752]{top:calc(84500px + 100vh);height:2350px}.elevator-rain-area[data-v-b78d9752]{top:calc(97300px + 100vh);height:1100px}.elevator-rain-area[data-v-b78d9752],.end-trigger[data-v-b78d9752]{position:absolute;width:100%;pointer-events:none;opacity:0}.end-trigger[data-v-b78d9752]{top:0;left:0;height:400px}.play-music[data-v-b78d9752]{position:absolute;top:94614px;max-width:200px;display:block;width:100%;padding:10px;border-radius:10px;font-family:"HandWide",sans-serif;font-size:19px;border:1px solid #000;cursor:pointer;left:calc(21% + 35px);background:#fff;box-shadow:4px 4px 0 1px rgba(71,155,232,.6);color:#000;background:#d8ecff;z-index:5}.play-music-icon[data-v-b78d9752]{height:15px;position:relative;top:1px;left:-5px;animation:none}.play-music-icon-anim[data-v-b78d9752]{animation:musicRotate-b78d9752 .44s ease-in-out infinite alternate}@keyframes musicRotate-b78d9752{0%{transform:rotate(-5deg)}to{transform:rotate(6deg)}}.play-music[data-v-b78d9752]:hover{transform:scale(1.05)}.grid[data-v-b78d9752]{top:0;left:0;width:100%;height:var(--full-height);background:url(/space-elevator/images/textures/grid-750.webp);background-size:210px 210px;opacity:.15}.grass[data-v-b78d9752],.grid[data-v-b78d9752]{position:absolute;pointer-events:none}.grass[data-v-b78d9752]{top:99830px;left:-150px;width:calc(100% + 170px);height:170px;background-image:url(/space-elevator/images/textures/grass-1400.webp);background-size:100% 170px;z-index:100;background-position:50%}.noise[data-v-b78d9752]{top:0;left:0;width:100%;height:100%;background:url(/space-elevator/images/textures/noise.jpeg);background-size:400px 400px;opacity:.12;mix-blend-mode:overlay;z-index:10000;pointer-events:none}.noise[data-v-b78d9752],.sound[data-v-b78d9752]{position:fixed}.sound[data-v-b78d9752]{top:15px;right:105px;height:21px;z-index:1000;cursor:pointer;transition:transform .6s ease-in-out,opacity .6s ease-in-out,filter .4s ease-in-out;touch-action:manipulation}.sound[data-v-b78d9752]:hover{transform:scale(1.05)}.sound-muted[data-v-b78d9752]{opacity:.5}.sound-hide[data-v-b78d9752]{opacity:0;transform:scale(1.2);pointer-events:none}.is-space .sound[data-v-b78d9752]{filter:invert(1)}.title[data-v-b78d9752]{top:calc(100000px - 81vh);position:absolute;left:calc(50% - 75px);transform:translateX(-50%);display:block}.title-img[data-v-b78d9752]{height:450px;width:95vw;-o-object-fit:contain;object-fit:contain;display:block;margin-left:auto;margin-right:auto;animation:none}.is-start .title-img[data-v-b78d9752]{animation:rotate-b78d9752 3s ease-in-out infinite alternate}@keyframes rotate-b78d9752{0%{transform:rotate(-1deg)}to{transform:rotate(1deg)}}.end-screen[data-v-b78d9752]{position:absolute;top:-100vh;left:-75px;height:100vh;width:100%;display:flex;justify-content:center;align-items:center}.end-screen-inner[data-v-b78d9752]{text-align:center;color:#fff}.end-credits[data-v-b78d9752]{text-shadow:0 0 10px #000}.end-credit[data-v-b78d9752]{font-size:30px;margin-top:10px;margin-bottom:8px}.end-credit-2[data-v-b78d9752]{font-size:18px;opacity:.75}.end-screen[data-v-b78d9752]{opacity:0;transition:opacity 1.3s ease-in-out .1s}.is-end .end-screen[data-v-b78d9752]{opacity:1}.end-title[data-v-b78d9752]{width:100%;height:375px;filter:drop-shadow(0 0 10px rgb(0,0,0,.9))}.scroll-up[data-v-b78d9752]{text-align:center;color:#000;margin-top:15px;font-size:32px}.bmc[data-v-b78d9752]{display:flex;width:164px;height:44px;justify-content:center;align-items:center;border-radius:5px;background:#fff;color:#000;font-size:20px;text-decoration:none;margin:80px auto 20px;filter:drop-shadow(0 0 10px rgb(0,0,0,.9))}.bmc-icon[data-v-b78d9752]{height:25px;margin-right:4px;position:relative;top:-3px;left:-2px}.end-browse[data-v-b78d9752]{display:block;color:#fff;font-size:20px;text-shadow:0 0 10px #000}.bmc[data-v-b78d9752]:hover,.end-browse[data-v-b78d9752]:hover{transform:scale(1.05)}.scroll-up-icon[data-v-b78d9752]{height:24px;position:relative;animation:none}.is-start .scroll-up-icon[data-v-b78d9752]{animation:scrollUp-b78d9752 .6s ease-in-out infinite alternate}@keyframes scrollUp-b78d9752{0%{transform:translateY(2px)}to{transform:translateY(-2px)}}.scroll-up-text[data-v-b78d9752]{padding:0 5px}@media only screen and (max-width:1200px){.grass[data-v-b78d9752]{background-image:url(/space-elevator/images/textures/grass-1200.webp)}}@media only screen and (max-width:950px){.title-img[data-v-b78d9752]{max-width:600px}.scroll-up[data-v-b78d9752]{font-size:30px;margin-top:10px}.grass[data-v-b78d9752]{background-image:url(/space-elevator/images/textures/grass-1000.webp)}}@media only screen and (max-height:950px){.title-img[data-v-b78d9752]{height:445px}.title[data-v-b78d9752]{top:calc(100000px - 85vh)}}@media only screen and (max-height:880px){.title-img[data-v-b78d9752]{height:410px}.title[data-v-b78d9752]{top:calc(100000px - 88vh)}}@media only screen and (max-height:820px){.title-img[data-v-b78d9752]{height:400px}.title[data-v-b78d9752]{top:calc(100000px - 92vh)}.bmc[data-v-b78d9752]{margin-top:50px}}@media only screen and (max-height:700px){.title-img[data-v-b78d9752]{height:310px}.end-title[data-v-b78d9752]{height:340px}.end-credits[data-v-b78d9752]{text-shadow:0 0 4px #000}.end-credit[data-v-b78d9752]{font-size:27px;margin-top:8px;margin-bottom:6px}.end-credit-2[data-v-b78d9752]{font-size:17px}.bmc[data-v-b78d9752],.end-browse[data-v-b78d9752]{font-size:19px}.grass[data-v-b78d9752]{background-image:url(/space-elevator/images/textures/grass-900.webp)}}@media only screen and (max-width:800px){.title[data-v-b78d9752]{left:calc(50% - 37.5px);transform:translate(-50%)}.title-img[data-v-b78d9752]{max-width:min(90vw,550px);height:auto}.scroll-up[data-v-b78d9752]{font-size:28px}.container-inner[data-v-b78d9752]{width:calc(100% - 70px)}.grid[data-v-b78d9752]{background-size:142px 142px;opacity:.15}.site-title[data-v-b78d9752]{max-width:105px}.end-screen[data-v-b78d9752]{left:-35px}.end-title[data-v-b78d9752]{margin-top:-20vh;height:auto;width:calc(100vw - 70px)}.sound[data-v-b78d9752]{right:90px}.elevator-rain-area[data-v-b78d9752]{top:calc(97200px + 100vh);height:1200px}}@media only screen and (max-width:700px){.play-music[data-v-b78d9752]{top:94618px;max-width:190px;font-size:16px;left:calc(50% - 99px);background:#c9e5ff}}@media only screen and (max-width:500px){.title[data-v-b78d9752]{top:99380px}}@media only screen and (max-width:800px) and (max-height:700px){.title[data-v-b78d9752]{top:99410px}}@media only screen and (max-width:800px) and (max-height:600px){.title[data-v-b78d9752]{top:99450px}.grass[data-v-b78d9752]{height:120px;top:99880px;background-size:100% 120px}}@media only screen and (max-width:800px) and (max-height:550px){.title[data-v-b78d9752]{top:99500px}}',""]),t.exports=c},1214:function(t,e,r){t.exports=r.p+"fonts/HandWide-Extrablack.ec7558e.woff2"},1215:function(t,e,r){t.exports=r.p+"fonts/HandWide-Heavy.1693acc.woff2"},1300:function(t,e,r){"use strict";r.r(e);r(46),r(15),r(34),r(110);var o,n,d,l,c,h,m,f,v,x,w,y=r(356),k=1e5,z=0,Y=0,_=0,C=!1,O=!1,S=!1,T=!1,M=!1,A={data:function(){return{bufferInfo:null,programInfo:null,gl:null,horizonLoaded:!1}},mounted:function(){var t=this;this.scrollWrapper=document.getElementById("scroll-wrapper");var e=this.$refs.renderer.getContext("webgl",{premultipliedAlpha:!0,alpha:!0,powerPreference:"high-performance"});e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);var r=y.c(e,["vs-bg","fs-bg"]),o=y.a(e,{position:[-1,-1,0,1,-1,0,-1,1,0,-1,1,0,1,-1,0,1,1,0]});e.useProgram(r.program),y.i(e,r,o),this.gl=e,this.bufferInfo=o,this.programInfo=r;var n,d=function(t,e){return"/space-elevator/images/textures/".concat(t,"-").concat(e,".webp")};n=window.innerWidth>1200?1200:window.innerWidth>1e3?1e3:900,this.horizonTexture=y.d(e,{src:d("horizon",n)},(function(){t.horizonLoaded=!0,t.render()})),this.horizon2Texture=y.d(e,{src:d("horizon2",n)}),this.horizon3Texture=y.d(e,{src:d("horizon3",n)}),this.horizon4Texture=y.d(e,{src:d("horizon4",n)}),this.airglowTexture=y.d(e,{src:d("airglow",n)}),this.rainTexture=y.d(e,{src:d("rain",700)}),this.windTexture=y.d(e,{src:d("wind",700)}),this.auroraTexture=y.d(e,{src:d("aurora",n)}),this.aurora2Texture=y.d(e,{src:d("aurora2",n)}),this.starsTexture=y.d(e,{src:d("stars",1e3)}),this.meteorTexture=y.d(e,{src:d("meteor",600)}),this.resize(),this.$addEventListener("resize",this.resize),this.$nextTick((function(){t.scrollWrapper.addEventListener("scroll",t.onScroll)}))},methods:{onScroll:function(){var t=this.scrollWrapper.scrollTop;O=t<88e3&&t>84e3,S=t<18e3,T=t<24500&&t>12200;var e=(C=t<99700&&t>97e3)||O||S||T;e&&!M?(M=!0,this.startAnimLoop()):!e&&M?(M=!1,f&&(f(),f=null)):this.horizonLoaded&&!M&&requestAnimationFrame(this.render)},startAnimLoop:function(){var t=this;f&&f(),M=!0;var e=!1;!function animate(){e||(t.render(),requestAnimationFrame(animate))}(),f=function(){e=!0}},resize:function(){var t=this.gl;n=window.innerHeight/window.innerWidth,d=Math.min(window.devicePixelRatio,2),y.g(t.canvas,d),t.viewport(0,0,t.canvas.width,t.canvas.height),o=[t.canvas.width,t.canvas.height],l=window.innerHeight/k,c=window.innerWidth/(window.innerWidth<=800?950:1200),h=window.innerWidth/(window.innerWidth<=800?800:950),_=window.innerWidth<=800?.4:0,window.innerWidth<=800?(m=.4,z=.2,Y=1.1):window.innerWidth<=1300?(m=.77,z=.1,Y=.2):(m=.87,z=.05,Y=0),this.horizonLoaded&&requestAnimationFrame(this.render)},render:function(){var time=performance.now(),t=this.gl,e=this.programInfo,r=this.bufferInfo,f=this.scrollWrapper.scrollTop,v={time:.001*time,resolution:o,pageAspectRatio:n,scrollPos:1-f/k,scrollHeight:k,windowHeight:l,airglowTexture:this.airglowTexture,rainTexture:this.rainTexture,windTexture:this.windTexture,horizonTexture:this.horizonTexture,horizon2Texture:this.horizon2Texture,horizon3Texture:this.horizon3Texture,horizon4Texture:this.horizon4Texture,auroraTexture:this.auroraTexture,aurora2Texture:this.aurora2Texture,starsTexture:this.starsTexture,meteorTexture:this.meteorTexture,rainScale:c,starScale:h,auroraScale:m,auroraXOffset:z,auroraYOffset:Y,meteorMobileOffset:_,showRain:C,showWind:O,showAuroras:S,showMeteors:T,pixelRatio:d};y.j(e,v),y.f(t,r)}},beforeDestroy:function(){f&&f()}},B=(r(1188),r(28)),I=Object(B.a)(A,(function(){var t=this,e=t._self._c;return e("div",[e("canvas",{ref:"renderer",staticClass:"bg",class:{"bg-placeholder":!t.horizonLoaded}}),t._v(" "),e("script",{attrs:{id:"vs-bg",type:"notjs"}},[t._v("\n precision highp float;\n\n attribute vec4 position;\n\n void main() {\n gl_Position = position;\n }\n ")]),t._v(" "),e("script",{attrs:{id:"fs-bg",type:"notjs"}},[t._v("\n precision highp float;\n\n uniform vec2 resolution;\n uniform float time;\n uniform float scrollPos;\n uniform float scrollHeight;\n uniform float windowHeight;\n uniform float rainScale;\n uniform float auroraScale;\n uniform float starScale;\n uniform float auroraXOffset;\n uniform float auroraYOffset;\n uniform float pageAspectRatio;\n uniform float pixelRatio;\n uniform float meteorMobileOffset;\n uniform sampler2D airglowTexture;\n uniform sampler2D rainTexture;\n uniform sampler2D windTexture;\n uniform sampler2D horizonTexture;\n uniform sampler2D horizon2Texture;\n uniform sampler2D horizon3Texture;\n uniform sampler2D horizon4Texture;\n uniform sampler2D auroraTexture;\n uniform sampler2D aurora2Texture;\n uniform sampler2D starsTexture;\n uniform sampler2D meteorTexture;\n uniform bool showRain;\n uniform bool showWind;\n uniform bool showAuroras;\n uniform bool showMeteors;\n\n float invLerp(float from, float to, float value){\n return (value - from) / (to - from);\n }\n\n float blendDarken(float base, float blend) {\n return min(blend,base);\n }\n\n vec3 blendDarken(vec3 base, vec3 blend) {\n return vec3(blendDarken(base.r,blend.r),blendDarken(base.g,blend.g),blendDarken(base.b,blend.b));\n }\n\n vec3 blendDarken(vec3 base, vec3 blend, float opacity) {\n return (blendDarken(base, blend) * opacity + base * (1.0 - opacity));\n }\n\n void main() {\n vec2 uv = gl_FragCoord.xy / resolution;\n\n vec4 color = texture2D(horizonTexture, vec2(uv.x, 1.0 - uv.y));\n\n float scaledUvY = uv.y * windowHeight;\n\n float horizonOffset = smoothstep(0.172, 1.0, scrollPos + scaledUvY) * 1.0;\n float horizonUvY = 1.0 - (uv.y + horizonOffset);\n\n float horizon4Opacity = smoothstep(0.09 - .008, 0.1 - .008, scrollPos + scaledUvY);\n vec4 horizon4 = texture2D(horizon4Texture, vec2(uv.x, horizonUvY));\n color.rgb = mix(color.rgb, horizon4.rgb, horizon4.a * horizon4Opacity);\n\n float horizon2Opacity = smoothstep(0.1 - .008, 0.11 - .008, scrollPos + scaledUvY);\n vec4 horizon2 = texture2D(horizon2Texture, vec2(uv.x, horizonUvY));\n color.rgb = mix(color.rgb, horizon2.rgb, horizon2.a * horizon2Opacity);\n\n float horizon3Opacity = smoothstep(0.157 - .008, 0.17 - .008, scrollPos + scaledUvY);\n vec4 horizon3 = texture2D(horizon3Texture, vec2(uv.x, horizonUvY));\n color.rgb = mix(color.rgb, horizon3.rgb, horizon3.a * horizon3Opacity);\n\n float airglowOpacity = smoothstep(0.23 - .008, 0.27 - .008, scrollPos + scaledUvY);\n vec4 airglow = texture2D(airglowTexture, vec2(uv.x, horizonUvY));\n color.rgb = blendDarken(color.rgb, airglow.rgb, airglow.a * airglowOpacity);\n\n float starsOpacity = smoothstep(0.23, 0.27, scrollPos + scaledUvY) * step(0.37, horizonOffset + uv.y);\n vec4 stars = texture2D(starsTexture, mod(vec2(uv.x * starScale, uv.y * starScale * pageAspectRatio * 1.3 + scrollPos), 1.0));\n color = mix(color, stars, (1.0 - step(stars.r, .55)) * starsOpacity * .85);\n\n if (showRain) {\n float rainOpacity = (1.0 - smoothstep(0.025, 0.0285, scrollPos + scaledUvY)) * smoothstep(0.013, 0.024, scrollPos + scaledUvY);\n vec4 rain = texture2D(rainTexture, mod(5.0 * vec2(rainScale * uv.x, 80.0 * (scrollPos + scaledUvY) + time * .2), 1.0));\n vec4 rain2 = texture2D(rainTexture, mod(4.5 * vec2(rainScale * uv.x, 80.0 * (scrollPos + scaledUvY) + time * .3), 1.0));\n\n color = mix(color, rain, rain.a * rainOpacity * .1);\n color = mix(color, rain2, rain2.a * rainOpacity * .25);\n }\n\n if (showWind) {\n float windOpacity = (1.0 - smoothstep(0.142, 0.162, scrollPos + scaledUvY)) * smoothstep(0.127, 0.135, scrollPos + scaledUvY);\n vec4 wind = texture2D(windTexture, vec2(mod(uv.x + time * .3 * clamp(1500.0 / resolution.x * pixelRatio, .5, 2.5), 1.0), mod(200.0 * (scrollPos + scaledUvY * pageAspectRatio) + sin(uv.x * 10.0) * .06 / clamp(pageAspectRatio, .5, 1.0), 1.0)));\n color = mix(color, wind, wind.a * .85 * windOpacity);\n }\n\n if (showAuroras) {\n float wiggle = .15 * sin(time * .1 + uv.y * 1.5 + uv.x * 10.0);\n float auroraRedMultiplier = sin(time + uv.y * .5 + uv.x * 10.0);\n\n float auroraOffset = (1.6 / auroraScale) * invLerp(.85, 1.0, scrollPos) + uv.y * 1.7 * pageAspectRatio - 2.0 * pageAspectRatio * auroraScale - auroraYOffset;\n vec4 aurora = texture2D(auroraTexture, vec2(uv.x * .8 * auroraScale + auroraXOffset, auroraScale * (auroraOffset + wiggle)));\n aurora.r += .1;\n aurora.b -= .1;\n aurora.r *= max(aurora.r, aurora.r * auroraRedMultiplier + .3);\n\n color = mix(color, aurora, aurora.a);\n\n float aurora2Offset = (.9 / auroraScale) * invLerp(.89, 1.0, scrollPos) + uv.y * 1.5 * pageAspectRatio - 2.4 * pageAspectRatio * auroraScale - auroraYOffset;\n vec4 aurora2 = texture2D(aurora2Texture, vec2(uv.x * auroraScale + auroraXOffset - .1, auroraScale * (aurora2Offset + wiggle)));\n aurora2.r += .15;\n aurora2.b -= .1;\n aurora2.r *= max(aurora2.r, aurora2.r * auroraRedMultiplier + .5);\n\n color = mix(color, aurora2, aurora2.a);\n }\n\n if (showMeteors) {\n float meteorYOffsets[5];\n\n meteorYOffsets[0] = -.6;\n meteorYOffsets[1] = -.8;\n meteorYOffsets[2] = -0.4;\n meteorYOffsets[3] = -.2;\n meteorYOffsets[4] = -.1;\n\n float meteorSizes[5];\n\n meteorSizes[0] = .7;\n meteorSizes[1] = .5;\n meteorSizes[2] = .9;\n meteorSizes[3] = .8;\n meteorSizes[4] = .6;\n\n float allMeteorOpacity = (1.0 - smoothstep(.852, 0.872, scrollPos + scaledUvY)) * smoothstep(0.772, 0.792, scrollPos + scaledUvY);\n float meteorSpacing = resolution.x / 200.0 / pixelRatio;\n\n for (int x = 0; x < 5; x++) {\n float meteorTime = mod(time - float(x) * 2.5, 11.0);\n float meteorOpacity = smoothstep(5.0, 8.0, meteorTime) * (1.0 - smoothstep(8.0, 10.0, meteorTime));\n vec4 meteor = texture2D(meteorTexture, vec2(uv.x - meteorTime * .11 + float(x) / 7.0 + .2, uv.y * pageAspectRatio + meteorTime * .11 - 1.0 + meteorYOffsets[x] - meteorMobileOffset) * (meteorSpacing / meteorSizes[x]));\n color = mix(color, meteor, allMeteorOpacity * clamp(meteor.a - (1.0 - meteorOpacity), 0.0, 1.0));\n }\n }\n\n color.rgb *= color.a;\n\n gl_FragColor = color;\n }\n ")])])}),[],!1,null,"fcf5069e",null).exports,W=r(33),j=(r(30),{props:{name:{required:!0,type:String},img:{required:!1,type:String},isAnimated:{required:!1,default:!1,type:Boolean},sizes:{required:!0,type:Array}},data:function(){return{observer:null,showObserver:null,showCloud:!1}},computed:{defaultSize:function(){return this.sizes[this.sizes.length-1]}},mounted:function(){var t=this;this.showObserver=new IntersectionObserver((function(e){e[0].isIntersecting&&(t.showCloud=!0,t.showObserver.disconnect(),t.isAnimated&&t.$nextTick((function(){t.setupAnimatedObserver()})))}),{root:document.querySelector("#scroll-wrapper"),rootMargin:"4000px",threshold:0}),this.showObserver.observe(this.$refs.marker)},methods:{setupAnimatedObserver:function(){var t=this;this.observer=new IntersectionObserver((function(e){var r=e[0].isIntersecting;t.$refs.cloud&&(t.$refs.cloud.style.animationPlayState=r?"running":"paused")}),{root:null,rootMargin:"0px",threshold:.01}),this.observer.observe(this.$refs.cloud)},invLerp:function(t,e,r){return(r-t)/(e-t)}},beforeDestroy:function(){this.observer&&this.observer.disconnect()}}),H=(r(1190),r(1192),Object(B.a)(j,(function(){var t,e=this,r=e._self._c;return r("div",{ref:"cloudWrapper",staticClass:"cloud-wrapper"},[r("div",{ref:"marker",staticClass:"cloud marker",class:Object(W.a)({},e.name,!0)}),e._v(" "),e.showCloud?r("picture",[e._l(e.sizes,(function(t){return r("source",{key:e.name+t.breakpoint,attrs:{media:"(min-width:".concat(t.breakpoint,"px)"),srcset:"/space-elevator/images/clouds/".concat(t.img?t.img:e.img?e.img:e.name,"-").concat(t.width,".webp")}})})),e._v(" "),r("img",{ref:"cloud",staticClass:"cloud",class:(t={},Object(W.a)(t,e.name,!0),Object(W.a)(t,"cloud-animated",e.isAnimated),t),attrs:{src:"/space-elevator/images/clouds/".concat(e.defaultSize.img?e.defaultSize.img:e.img?e.img:e.name,"-").concat(e.defaultSize.width,".webp")}})],2):e._e()])}),[],!1,null,"48115f6a",null).exports),E={props:{selectedItems:{required:!0,type:Object}}},D=(r(1194),Object(B.a)(E,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"character-wrapper",class:{"has-suit":t.selectedItems.suit}},[e("img",{attrs:{src:"/space-elevator/icons/character.svg"}}),t._v(" "),t.selectedItems.scarf?e("img",{staticClass:"scarf",attrs:{src:"/space-elevator/images/textures/".concat(t.selectedItems.scarf,"-120.webp")}}):t._e(),t._v(" "),t.selectedItems.suit?e("img",{staticClass:"suit",class:Object(W.a)({},t.selectedItems.suit,!0),attrs:{src:"/space-elevator/images/textures/".concat(t.selectedItems.suit,"-120.webp")}}):t._e()])}),[],!1,null,"7907fb68",null).exports),P=0,R=0,L=!1,$=!1,U=0,F={components:{Character:D},props:{selectedItems:{required:!0,type:Object}},data:function(){return{strokeColor:"black",fillColor:"rgb(135, 172, 206)",playShake:!1,scrollWrapper:null,showRainDrops:!1}},mounted:function(){var t=this;this.scrollWrapper=document.getElementById("scroll-wrapper"),new IntersectionObserver((function(e){e[0].isIntersecting?t.addEaseScrollListener():t.removeEaseScrollListener()}),{root:this.scrollWrapper,rootMargin:"0px",threshold:0}).observe(this.$parent.$refs.easeArea),new IntersectionObserver((function(e){(L=e[0].isIntersecting)&&!$&&t.shake()}),{root:this.scrollWrapper,rootMargin:"0px",threshold:0}).observe(this.$parent.$refs.shakeArea),new IntersectionObserver((function(e){t.showRainDrops=e[0].isIntersecting}),{root:this.scrollWrapper,rootMargin:"-50%",threshold:0}).observe(this.$parent.$refs.rainArea),this.$addEventListener("resize",this.onEaseScroll),U=this.scrollWrapper.scrollHeight-window.innerHeight-1e5},methods:{removeEaseScrollListener:function(){this.scrollWrapper.removeEventListener("scroll",this.onEaseScroll)},addEaseScrollListener:function(){this.scrollWrapper.addEventListener("scroll",this.onEaseScroll)},onEaseScroll:function(){var t=1e5-this.scrollWrapper.scrollTop,e=this.invLerp(0,2.4*window.innerHeight,t),r=Math.max(60,Math.min(window.innerHeight/2-60,e*(window.innerHeight/2)));this.$refs.elevator.style.transform="translate(-50%, -".concat(r,"px)"),document.documentElement.style.setProperty("--elevator-bottom-scale",Math.round(Math.min(window.innerHeight/2,t+U))+"%"),document.documentElement.style.setProperty("--elevator-top-scale",Math.max(window.innerHeight/2,window.innerHeight-r)+"%")},invLerp:function(t,e,r){var o=(r-t)/(e-t);return Math.max(0,Math.min(1,o))},shake:function(){$=!0,L&&(R=.3),P+=Math.sin(performance.now()/140)*R,R=Math.max(0,R-.002),this.$refs.elevatorShake&&(this.$refs.elevatorShake.style.transform="rotate(".concat(P,"deg)")),0===R&&(P*=.95),R>0||Math.abs(P)>.001||L?requestAnimationFrame(this.shake):$=!1}},beforeDestroy:function(){this.removeEaseScrollListener(),$=!1,L=!1,P=0,R=0}},X=(r(1196),r(1198),Object(B.a)(F,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"elevator-container"},[e("div",{ref:"elevator",staticClass:"elevator-section"},[t.showRainDrops?e("div",{staticClass:"rain-drops"}):t._e(),t._v(" "),e("div",{ref:"elevatorShake"},[e("Character",{attrs:{selectedItems:t.selectedItems}}),t._v(" "),e("img",{staticClass:"elevator-img",attrs:{src:"/space-elevator/images/textures/elevator-250.webp"}}),t._v(" "),e("div",{staticClass:"glass"}),t._v(" "),e("div",{staticClass:"light"})],1)])])])}),[],!1,null,"4144d7dd",null).exports),V={props:{options:{required:!0,type:Array},type:{required:!0,type:String},selected:{required:!0,type:String}}},N=(r(1200),Object(B.a)(V,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"selection-wrapper",class:Object(W.a)({},t.type,!0)},t._l(t.options,(function(option,i){return e("button",{key:i,staticClass:"option-wrapper",class:{"option-selected":option===t.selected},on:{click:function(e){return t.$emit("selected",option,t.type)}}},[e("img",{staticClass:"option-img",attrs:{src:"/space-elevator/images/textures/".concat(option,"-120.webp")}})])})),0)}),[],!1,null,"03caf5b2",null).exports),G={components:{Cloud:H},data:function(){return{spriteBreakpoints:[{breakpoint:1200,width:1e3},{breakpoint:800,width:950},{breakpoint:500,width:750}],bluejetBreakpoints:[{breakpoint:1200,width:1100},{breakpoint:1e3,width:1e3},{breakpoint:700,width:800}],everestBreakpoints:[{breakpoint:1500,width:2e3},{breakpoint:1400,width:1700,img:"mount-everest-xl"},{breakpoint:1100,width:1400,img:"mount-everest-l"},{breakpoint:900,width:1200,img:"mount-everest-m"},{breakpoint:700,width:1e3,img:"mount-everest-s"},{breakpoint:500,width:800,img:"mount-everest-s"}],nacreousBreakpoints:[{breakpoint:1200,width:1100},{breakpoint:700,width:1e3}],cumulonimbusBreakpoints:[{breakpoint:1200,width:1100},{breakpoint:1100,width:1e3},{breakpoint:650,width:900},{breakpoint:500,width:850}],altocumulusBreakpoints:[{breakpoint:1e3,width:900},{breakpoint:800,width:800},{breakpoint:500,width:700}],altostratusBreakpoints:[{breakpoint:1200,width:1e3},{breakpoint:900,width:900},{breakpoint:600,width:700},{breakpoint:400,width:500}],cumulusBreakpoints:[{breakpoint:1200,width:1100},{breakpoint:900,width:950}],stratusBreakpoints:[{breakpoint:1200,width:1e3},{breakpoint:900,width:900}],cirrusBreakpoints:[{breakpoint:1200,width:1e3},{breakpoint:1e3,width:900},{breakpoint:800,width:800},{breakpoint:500,width:700}],nimbostratusBreakpoints:[{breakpoint:1200,width:850},{breakpoint:900,width:750}],cirrostratusBreakpoints:[{breakpoint:1200,width:1100},{breakpoint:1e3,width:950}],nocticullentBreakpoints:[{breakpoint:1200,width:1200},{breakpoint:1e3,width:1100},{breakpoint:900,width:1e3}]}}},J=(r(1202),Object(B.a)(G,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"clouds"},[e("Cloud",{attrs:{name:"cumulus",sizes:t.cumulusBreakpoints,isAnimated:!0}}),t._v(" "),e("Cloud",{attrs:{name:"stratus",isAnimated:!0,sizes:t.stratusBreakpoints}}),t._v(" "),e("Cloud",{attrs:{name:"altostratus",isAnimated:!0,sizes:t.altostratusBreakpoints}}),t._v(" "),e("Cloud",{attrs:{name:"altocumulus",isAnimated:!0,sizes:t.altocumulusBreakpoints}}),t._v(" "),e("Cloud",{attrs:{name:"cirrus",sizes:t.cirrusBreakpoints}}),t._v(" "),e("Cloud",{attrs:{name:"cirrus4",img:"cirrus",sizes:t.cirrusBreakpoints}}),t._v(" "),e("Cloud",{attrs:{name:"cirrus2",isAnimated:!0,sizes:t.cirrusBreakpoints}}),t._v(" "),e("Cloud",{attrs:{name:"cirrus3",isAnimated:!0,sizes:t.cirrusBreakpoints}}),t._v(" "),e("Cloud",{attrs:{name:"nimbostratus",sizes:t.nimbostratusBreakpoints}}),t._v(" "),e("Cloud",{attrs:{name:"nimbostratus2",img:"nimbostratus",sizes:t.nimbostratusBreakpoints}}),t._v(" "),e("Cloud",{attrs:{name:"nimbostratus3",img:"nimbostratus",sizes:t.nimbostratusBreakpoints}}),t._v(" "),e("Cloud",{attrs:{name:"cumulonimbus",sizes:t.cumulonimbusBreakpoints}}),t._v(" "),e("Cloud",{attrs:{name:"cirrostratus",isAnimated:!0,sizes:t.cirrostratusBreakpoints}}),t._v(" "),e("Cloud",{attrs:{name:"cirrostratus2",isAnimated:!0,sizes:t.cirrostratusBreakpoints}}),t._v(" "),e("Cloud",{attrs:{name:"cirrostratus3",img:"cirrostratus",sizes:t.cirrostratusBreakpoints}}),t._v(" "),e("Cloud",{attrs:{name:"cirrostratus4",img:"cirrostratus2",isAnimated:!0,sizes:t.cirrostratusBreakpoints}}),t._v(" "),e("Cloud",{attrs:{name:"cirrostratus5",img:"cirrostratus3",isAnimated:!0,sizes:t.cirrostratusBreakpoints}}),t._v(" "),e("Cloud",{attrs:{name:"cirrostratus6",img:"cirrostratus2",isAnimated:!0,sizes:t.cirrostratusBreakpoints}}),t._v(" "),e("Cloud",{attrs:{name:"noctilucent",sizes:t.nocticullentBreakpoints}}),t._v(" "),e("Cloud",{attrs:{name:"noctilucent2",sizes:t.nocticullentBreakpoints}}),t._v(" "),e("Cloud",{attrs:{name:"nacreous",isAnimated:!0,sizes:t.nacreousBreakpoints}}),t._v(" "),e("Cloud",{attrs:{name:"mount-everest",sizes:t.everestBreakpoints}}),t._v(" "),e("Cloud",{attrs:{name:"sprite",sizes:t.spriteBreakpoints}}),t._v(" "),e("Cloud",{attrs:{name:"blue-jet",sizes:t.bluejetBreakpoints}})],1)}),[],!1,null,"77983da6",null).exports),K=(r(113),r(331),0),Z={props:{useCelsius:{required:!0,type:Boolean}},data:function(){return{altitude:0,temp:0,showAltitude:!1}},mounted:function(){var t=this;this.scrollWrapper=document.getElementById("scroll-wrapper"),this.scrollWrapper.addEventListener("scroll",(function(){var e=t.scrollWrapper.scrollTop;Math.abs(e-K)>5&&(t.getAltitude(e),K=e)}))},methods:{getAltitude:function(t){var e=1e5-t,r=this.invLerp(0,2.4*window.innerHeight,e),o=Math.max(0,Math.round(1e5-t+window.innerHeight/2*r));o>99e3&&(o+=50),this.showAltitude=o>100&&o<100200,this.altitude=Math.min(1e5,o),this.updateTemp(this.altitude)},updateTemp:function(t){this.temp=t<=11e3?15.04-.00649*t:t<=2e4?-56.46:t<=32e3?.001*(t-2e4)-56.46:t<=47e3?.0028*(t-32e3)-44.5:t<=51e3?-2.5:t<=71e3?-2.5-.0028*(t-51e3):t<=85e3?Math.max(-84,-58.5-.002*(t-71e3)):t<=9e4?-84:.001*(t-9e4)-84},invLerp:function(t,e,r){var o=(r-t)/(e-t);return Math.max(0,Math.min(1,o))}},computed:{altitudeDigits:function(){return this.altitude.toString().padStart(6,"0").split("")},tempFormatted:function(){return this.useCelsius?Math.round(this.temp)+"°C":Math.round(1.8*this.temp+32)+"°F"}}},Q=(r(1204),Object(B.a)(Z,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"instruments"},[e("div",{staticClass:"altitude",class:{"show-altitude":t.showAltitude}},[t._l(6,(function(i){return e("div",{key:i,staticClass:"altitude-digit",class:{"altitude-digit-disabled":6-t.altitude.toString().length>=i}},[t._v("\n "+t._s(t.altitudeDigits[i-1])+"\n ")])})),t._v(" "),e("div",{key:"m",staticClass:"altitude-digit"},[t._v("m")])],2),t._v(" "),e("div",{staticClass:"temperature",on:{click:function(e){return t.$emit("tempClick")}}},[e("span",{staticClass:"temperature-number"},[t._v(t._s(t.tempFormatted))]),t._v(" "),e("img",{staticClass:"temperature-icon",attrs:{src:"/space-elevator/icons/thermometer.svg"}})])])}),[],!1,null,"7bbdcafe",null).exports);function tt(t){return.3048*t}v="en-US"===window.navigator.language,x="en-GB"===window.navigator.language,w=v||x;var at,et=[{name:"fireworks",caption:"Fireworks",altitude:150,width:150},{name:"mallard-migrate",caption:"Mallard",subcaption:"Migration altitude",altitude:tt(3e3),width:110},{name:"welcome-desc",caption:"Welcome to the space elevator, the only elevator that goes to space.",captionOnly:!0,altitude:1100},{name:"oxygen-desc",caption:"As you climb, the temperature will continue to drop.",captionOnly:!0,altitude:3330},{name:"cirrus-desc",caption:"Cirrus clouds are wispy clouds made out of ice crystals.",altitude:7010,captionOnly:!0},{name:"cirrostratus-desc",caption:"Cirrocumulus are patchy clouds that can blanket the sky.",altitude:10050,captionOnly:!0},{name:"cumolonimbus-desc",caption:"Cumulonimbus are tall, towering clouds that can produce lightning, tornadoes, and hail.",altitude:4090,captionOnly:!0},{name:"pigeon",caption:"Pigeon",altitude:1828,width:90},{name:"mil-v-12",caption:"Mil V-12",subcaption:"Largest helicopter ever built",altitude:tt(7700),width:325,mobileWidth:350},{name:"hang-gliding",caption:"Hang Gliding",subcaption:"Typical altitude",altitude:1900,width:170},{name:"helios",caption:"NASA Helios HP01",subcaption:"Winged aircraft altitude record",altitude:29524,width:200},{name:"nimbostratus-desc",caption:"Nimbostratus clouds are responsible for rainy days.",captionOnly:!0,altitude:2800},{name:"vampire-mk-I",caption:"de Havilland Vampire",subcaption:"1948 altitude record",altitude:18119,width:210},{name:"bell-x-1",caption:"Bell X-1",subcaption:"First aircraft to break the sound barrier",altitude:21500,width:280},{name:"vostok-1",caption:"Vostok 1",subcaption:"On the way to space",altitude:89500,width:140},{name:"learjet-45",caption:"Learjet 45",altitude:15e3,width:240},{name:"douglas-dc-3",caption:"Douglas DC-3",altitude:7100,width:270,mobileWidth:290},{name:"bleriot-xi",caption:"Blériot XI",subcaption:"First plane to cross the English Channel",altitude:1e3,width:180},{name:"alpine-chough",caption:"Alpine Chough",altitude:3200,width:80},{name:"skydiving",caption:"Skydiver",subcaption:"Typical altitude",altitude:tt(1e4),width:140},{name:"white-stork",caption:"White Stork",altitude:3962.4,width:105,mobileWidth:100},{name:"cessna",caption:"Cessna 172",altitude:4267,width:210,mobileWidth:200},{name:"party-balloons",caption:"Party Balloons",altitude:9030,width:85},{name:"lizard",caption:"Liolaemus Lizard",subcaption:"Highest-dwelling reptile",altitude:5400,width:95},{name:"mil-mi-8",caption:"Mil Mi-8",altitude:4500,width:300,mobileWidth:310},{name:"pterodactyl",caption:"Pterodactyl",altitude:4572,width:160},{name:"bald-eagle",caption:"Bald Eagle",altitude:tt(1e4),width:115},{name:"zeppelin",caption:"Zeppelin",altitude:4876.8,width:430},{name:"yak",caption:"Wild Yak",altitude:5100,width:115,mobileWidth:108},{name:"spider",caption:"Himalayan Jumping Spider",subcaption:"Highest-dwelling spider",altitude:6600,width:70},{name:"vega-5b",caption:"Vega 5b",subcaption:"Amelia Earhart's plane",altitude:4e3,width:180},{name:"bumblebee",caption:"Bumblebee",subcaption:"Highest observed flight",altitude:5600,width:45},{name:"bell-47",caption:"Bell 47",subcaption:"First helicopter to fly over the Alps",altitude:5638.8,width:195},{name:"bell-x-2",caption:"Bell X-2",altitude:38465,width:340,mobileWidth:330},{name:"godwid",caption:"Bar-Tailed Godwit",altitude:6096,width:105},{name:"sandwort",caption:"Flycatcher Sandwort",subcaption:"Himalayan flowering plant",altitude:6180,width:80},{name:"highest-mouse",caption:"Yellow-Rumped Leaf-Eared Mouse",subcaption:"Highest-dwelling mammal",altitude:6740,width:90},{name:"bearded-vulture",caption:"Bearded Vulture",altitude:7315,width:150},{name:"paratrooper",caption:"Paratrooper",subcaption:"Max altitude",altitude:7620,width:150},{name:"death-zone",caption:'Above this altitude is known as the "death zone", because there isn\'t enough oxygen for human life.',altitude:8050,captionOnly:!0,center:!0},{name:"whooper-swan",caption:"Whooper Swan",altitude:8229.6,width:107},{name:"mount-everest-peak",caption:"Mount Everest Peak",altitude:8848,captionOnly:!0},{name:"box-kite",caption:"Box Kite",subcaption:"Highest flying kite",altitude:3801,width:88},{name:"andean-condor",caption:"Andean Condor",altitude:6500,width:170},{name:"bar-goose",caption:"Bar-headed Goose",altitude:8839,width:103},{name:"sopwith-camel",caption:"Sopwith Camel",subcaption:"WWI fighter plane",altitude:5700,width:190},{name:"p-80",caption:"P-80 Shooting Star",altitude:13650,width:215,mobileWidth:220},{name:"p-51",caption:"P-51 Mustang",subcaption:"WWII fighter plane",altitude:12800,width:200},{name:"f-35",caption:"F-35",altitude:15e3,width:200,mobileWidth:225},{name:"passenger-jet",caption:"Passenger Jet",subcaption:"Typical cruising altitude",altitude:1e4,width:320,mobileWidth:350},{name:"crane",caption:"Common Crane",altitude:10058.4,width:125},{name:"osprey",caption:"Osprey",altitude:1600,width:115},{name:"spitfire",caption:"Spitfire",altitude:10363.2,width:185},{name:"an-225",caption:"An-225 Mriya",subcaption:"Heaviest plane ever built",altitude:10750.296,width:300,mobileWidth:330},{name:"ruppell-bird",caption:"Ruppell's Griffon Vulture",subcaption:"Highest flying bird",altitude:11277.6,width:95},{name:"sa-315",caption:"SA 315B Lama",subcaption:"Highest flying helicopter",altitude:12441.936000000002,width:250},{name:"mountain-goat",caption:"Mountain Goat",altitude:tt(13e3),width:110},{name:"welcome-strat",caption:"Welcome to the stratosphere.",altitude:16200,captionOnly:!0,center:!0},{name:"stratosphere-temperature",caption:"Unlike the troposphere, the temperature in the stratosphere increases the higher you go.",altitude:17500,captionOnly:!0,center:!0},{name:"stratosphere-ozone",caption:"The stratosphere is home to the ozone layer, which protects us from harmful UV rays.",altitude:16600,captionOnly:!0,center:!0},{name:"in-trophosphere",caption:"You are currently in the troposphere, the lowest layer of the atmosphere.",altitude:1500,captionOnly:!0},{name:"water-vapor",caption:"The troposphere contains 99% of the water vapor in the atmosphere.",altitude:1900,captionOnly:!0},{name:"stratosphere",caption:"Stratosphere",altitude:15500,isHeader:!0},{name:"music-desc",caption:"This elevator ride needs some music...",altitude:5398,captionOnly:!0},{name:"jet-stream-desc",caption:"Jet streams are bands of strong winds in the atmosphere. They can reach speeds of up to ".concat(w?"275 mph":"450 km/h","."),altitude:13460,captionOnly:!0,center:!0},{name:"jet-stream-worry",caption:"Don't worry, the elevator is pretty strong... I think.",altitude:14080,captionOnly:!0,center:!0},{name:"mesosphere",caption:"Mesosphere",altitude:5e4,isHeader:!0},{name:"mesosphere-air",caption:"The air in the mesosphere is very thin. It has less than 1% of the pressure as the air at sea level.",altitude:51500,captionOnly:!0,center:!0},{name:"mesosphere-welcome",caption:"Congratulations! You have reached the mesosphere and are now halfway to space.",captionOnly:!0,altitude:50500,center:!0},{name:"sounding-rocket",caption:"Sounding Rocket",altitude:58e3,width:55},{name:"v-2",caption:"V-2 Rocket",subcaption:"Peak altitude",altitude:80467,width:100},{name:"coldest",caption:"This is the coldest part of Earth's atmosphere.",captionOnly:!0,altitude:84e3,center:!0},{name:"sounding-rocket-desc",caption:"Since weather balloons can't reach this height, rockets with sensors are used to learn more about the mesosphere.",captionOnly:!0,altitude:58100},{name:"thermosphere",caption:"Thermosphere",altitude:85e3,isHeader:!0},{name:"thermosphere-welcome",caption:"Welcome to the thermosphere, the final layer on our journey to space.",altitude:85500,captionOnly:!0,center:!0},{name:"karman-desc",caption:"At 100 km high, the Kármán line is usually accepted as the start of outer space.",altitude:86200,captionOnly:!0,center:!0},{name:"thermosphere-reach",caption:"You are about to reach a place fewer than 1,000 humans have ever been.",altitude:98e3,captionOnly:!0,center:!0},{name:"thermosphere-leaving",caption:"Now leaving Earth.",altitude:99e3,captionOnly:!0,center:!0},{name:"thermosphere-temp",dynamicCaption:function(t){return"Temperatures in the thermosphere can reach ".concat(t?"2,500°C":"4,500°F",", but molecules are so far apart that you wouldn't even feel it.")},altitude:87e3,captionOnly:!0,center:!0},{name:"highest-ejection",caption:"Highest Aircraft Ejection",altitude:23774,width:60},{name:"concorde",caption:"Concorde",altitude:18e3,width:260,mobileWidth:275},{name:"armstrong",caption:"This is the Armstrong limit - above this altitude your saliva and tears will boil if you don't have a pressure suit.",altitude:19030,captionOnly:!0},{name:"nacreous-desc",caption:"Nacreous clouds are rare clouds found in polar regions. They are made of small ice particles that scatter light in colorful ways.",altitude:19800,captionOnly:!0},{name:"ussr-1",caption:"USSR-1",subcaption:"1933 balloon altitude record",altitude:18500,width:130},{name:"hotair-balloon",caption:"Hot Air Balloon",altitude:914.4,width:150,mobileWidth:160},{name:"zephyr",caption:"Airbus Zephyr",subcaption:"High-altitude platform station",altitude:tt(73e3),width:220},{name:"monarch-butterfly",caption:"Monarch Butterfly",altitude:3e3,width:60},{name:"pressure",dynamicCaption:function(t){return"As air pressure drops, so does the temperature needed to boil water. At this altitude, water boils at just ".concat(t?"54°C":"129°F",".")},altitude:tt(40100),captionOnly:!0,center:!0},{name:"sky-black",caption:"As the air gets thinner, there are fewer molecules to scatter light. So the sky starts getting darker.",altitude:22700,captionOnly:!0},{name:"sr-71-desc",caption:"The SR-71 is one of the fastest planes ever made. It can fly at over 3 times the speed of sound.",altitude:25750,captionOnly:!0},{name:"suit-desc",caption:"Now would be a good time to pick out your space suit.",altitude:11830,captionOnly:!0,center:!0},{name:"pick-scarf",caption:"It's a bit chilly, pick a scarf to stay warm.",altitude:tt(11930),captionOnly:!0},{name:"perlan",caption:"Perlan II",subcaption:"Highest altitude glider",altitude:23e3,width:250},{name:"sud-ouest",caption:"Sud-Ouest Trident II",subcaption:"1958 rocket plane altitude record",altitude:26300,width:280},{name:"f-104",caption:"F-104 Starfighter",altitude:27813,width:300},{name:"space-shuttle-heat",caption:"Space Shuttle Re-entry",subcaption:"Maximum heat",altitude:71e3,width:360},{name:"tsar-bomba",caption:"The mushroom cloud from the largest ever nuclear test, the Tsar Bomba, reached this altitude.",altitude:64373,captionOnly:!0,center:!0},{name:"weather-balloon",caption:"Weather Balloon",altitude:31500,width:150},{name:"nasa-x-43",caption:"NASA X-43",subcaption:"Experimental hypersonic aircraft",altitude:30300,width:230},{name:"pompeii",caption:"The ash cloud from the eruption that destroyed Pompeii reached this height.",altitude:33e3,captionOnly:!0,center:!0},{name:"party-balloon-desc",caption:"If you've ever wondered where your lost balloons went, at this height a typical party balloon will pop.",altitude:9200,captionOnly:!0},{name:"paper-airplane",caption:"Highest paper airplane flight",altitude:35e3,width:70},{name:"paper-airplane-desc",caption:"Launched from a balloon, this is the highest a paper airplane has flown.",captionOnly:!0,altitude:35e3},{name:"felix",caption:"Felix Freefall",altitude:36300,width:87},{name:"freefall-desc",caption:"Felix Baumgartner was the first person to break the sound barrier in freefall. He reached a top speed of ".concat(w?"843 mph":"1,356 km/h","."),altitude:36300,captionOnly:!0},{name:"to-moon",caption:"Congratulations! You have made it 0.01% to the moon.",captionOnly:!0,center:!0,altitude:38e3},{name:"space-shuttle",caption:"Space Shuttle",subcaption:"Reaches max aerodynamic pressure",altitude:tt(36500),width:225,mobileWidth:250},{name:"castle-bravo",caption:"The mushroom cloud from the Castle Bravo nuclear test reached this altitude.",altitude:39600,captionOnly:!0,center:!0},{name:"russia-meteor",caption:"Chelyabinsk Meteor",subcaption:"Airburst altitude",altitude:45e3,width:200},{name:"elevator-feasible",caption:"Space elevators are actually a possible idea being considered by scientists.",captionOnly:!0,altitude:42500,center:!0},{name:"elevator-cheaper",caption:"They could potentially offer a cheaper and safer way of getting to space.",captionOnly:!0,altitude:43200,center:!0},{name:"elevator-hard",caption:"The hard part is making a strong enough cable. And finding enough elevator music...",captionOnly:!0,altitude:43900,center:!0},{name:"sutter",caption:"Sutter's Mill Meteor",subcaption:"Breakup altitude",altitude:48e3,width:150},{name:"sprite-desc",caption:"Sprites are a rare form of lightning spotted over thunderstorms that only last a fraction of a second.",altitude:69500,captionOnly:!0},{name:"sprite-desc2",caption:"While normal lightning is around 4 km long, sprites can reach lengths of up to 50 km.",altitude:7e4,captionOnly:!0},{name:"sound",caption:"Since the speed of sound depends on the temperature, sound travels 15% slower up here.",altitude:73e3,captionOnly:!0,center:!0},{name:"elevator-speed",caption:"The world's fastest elevator travels at ".concat(w?"46 mph":"74 km/h",". A space elevator with the same speed would take 80 minutes to reach space."),altitude:56e3,captionOnly:!0,center:!0},{name:"blue-jet-desc",caption:"Blue jets are a rare form of lightning that arc upward in a brilliant blue flash.",altitude:49e3,captionOnly:!0},{name:"u-2",caption:"U-2",subcaption:"Spy plane",altitude:24400,width:300},{name:"noctilucent-desc",caption:"Noctilucent clouds are the highest altitude clouds in the atmosphere. They are only visible at night and at higher latitudes.",altitude:75730,captionOnly:!0,center:!0},{name:"meteors-desc",caption:"Most meteors burn up in the mesosphere. It's estimated that over 48 tons of meteors hit the atmosphere every day.",altitude:79500,captionOnly:!0,center:!0},{name:"sr-71",caption:"SR-71 Blackbird",altitude:tt(85e3),width:350,subcaption:"1976 altitude record"},{name:"caproni",caption:"Caproni Ca.161",subcaption:"1938 altitude record",altitude:17083,width:220},{name:"project-excelsior",caption:"Project Excelsior",subcaption:"1960 skydive altitude record",altitude:31089,width:135},{name:"project-excelsior-desc",caption:"With nothing but a duct-taped pressure suit, Joseph Kittinger jumped from an open gondola and set a record that would last more than 50 years.",altitude:31e3,captionOnly:!0},{name:"su-9",caption:"Sukhoi Su-9",altitude:16760,width:265},{name:"explorer-2",caption:"Explorer II",altitude:22066,subcaption:"1935 balloon altitude record",width:120},{name:"douglas",caption:"Douglas Skyrocket",subcaption:"First aircraft to reach Mach 2",altitude:25e3,width:310},{name:"saturn-v",caption:"Saturn V",subcaption:"First stage separation",altitude:61155,width:125},{name:"bu60",caption:"BU60-1",subcaption:"High altitude balloon record",altitude:53e3,width:145},{name:"aurora-desc",caption:"As particles from the sun hit the atmosphere, they excite the atoms in the air.",altitude:90200,captionOnly:!0,center:!0},{name:"aurora-desc2",caption:"These excited atoms start to glow, creating brilliant displays of light called auroras.",altitude:90900,captionOnly:!0,center:!0},{name:"x-15",caption:"X-15",subcaption:"Highest flying rocket plane",altitude:95e3,width:210},{name:"karman-line",caption:"Kármán line",altitude:1e5,isHeader:!0},{name:"hummingbird",caption:"Hummingbird",altitude:tt(500),width:70},{name:"flamingo",caption:"Chilean Flamingo",altitude:4400,width:150},{name:"alan",caption:"Alan Eustace's Skydive",subcaption:"Current record for highest skydive",altitude:tt(135889),width:98},{name:"space-shuttle-eject",caption:"Space Shuttle",subcaption:"Boosters eject",altitude:tt(15e4),width:375,mobileWidth:370},{name:"vss-unity",caption:"VSS Unity",altitude:89e3,width:220},{name:"falcon-9",caption:"Falcon 9",subcaption:"First stage separation",altitude:82e3,width:125}],it={props:{useCelsius:{required:!0,type:Boolean},isSpace:{required:!0,type:Boolean}},data:function(){return{lines:et}},methods:{getSrcset:function(t,e){return"/space-elevator/images/sprites/".concat(t,"-").concat(e,".webp")}}},content=(r(1206),r(1208),Object(B.a)(it,(function(){var t=this,e=t._self._c;return e("div",t._l(t.lines,(function(line,i){var r;return e("div",{key:i,staticClass:"line",class:(r={},Object(W.a)(r,line.name,!0),Object(W.a)(r,"heading",line.isHeader),Object(W.a)(r,"caption",line.captionOnly),Object(W.a)(r,"center",line.center),Object(W.a)(r,"line-space",line.altitude>23400),r),style:{top:"calc(".concat(1e5-line.altitude,"px)"),color:line.altitude<23400||line.captionOnly?"#1c1c1c":"white"}},[line.captionOnly||line.isHeader||!(t.isSpace||line.altitude<26e3)?t._e():e("picture",[e("source",{attrs:{srcset:t.getSrcset(line.name,"lg"),media:"(min-width:500px)"}}),t._v(" "),e("img",{staticClass:"line-icon",class:Object(W.a)({},line.name+"-icon",!0),style:{"--width":line.width+"px","--mobile-width":(line.mobileWidth||line.width)+"px"},attrs:{srcset:t.getSrcset(line.name,"sm")}})]),t._v(" "),e("div",{staticClass:"line-caption"},[t._v("\n "+t._s(line.caption||line.dynamicCaption(t.useCelsius))+"\n ")]),t._v(" "),line.subcaption?e("div",{staticClass:"line-subcaption"},[t._v("\n "+t._s(line.subcaption)+"\n ")]):t._e()])})),0)}),[],!1,null,"1682085a",null).exports),ot=r(336),st={components:{Bg:I,Cloud:H,Elevator:X,Character:D,Selection:N,Clouds:J,Instruments:Q,Content:content},head:{bodyAttrs:{class:"body-space-elevator"}},data:function(){return{isStart:!0,isSpace:!1,isAtEnd:!1,useCelsius:!0,altitude:0,pageHeight:window.innerHeight,currFrame:1,selectedItems:{scarf:"",suit:""},scarfOptions:["scarf-red","scarf-yellow","scarf-blue"],spaceSuitOptions:["space-suit-1","space-suit-2","space-suit-3"],musicVolumes:[.14*1.3,.27*1.3,.195],music:[],soundEffects:[],playMusic:!1,muted:!0,showMusicIcon:!1,musicBtnShowing:!1,currTrack:0}},mounted:function(){this.$refs.scrollWrapper.scrollTo({top:1e5+window.innerHeight,left:0,behavior:"instant"}),this.useCelsius="en-US"!==window.navigator.language,this.soundEffects=[new ot.Howl({src:["/space-elevator/sound/bell.mp3"],loop:!1,autoplay:!1,volume:.15,rate:1,preload:!1})],this.music=[new ot.Howl({src:["/space-elevator/sound/trophosphere.mp3"],loop:!0,autoplay:!1,volume:this.musicVolumes[0],rate:.85,preload:!1}),new ot.Howl({src:["/space-elevator/sound/stratosphere.mp3"],loop:!0,autoplay:!1,volume:this.musicVolumes[1],rate:1,preload:!1}),new ot.Howl({src:["/space-elevator/sound/mesosphere.mp3"],loop:!0,autoplay:!1,volume:this.musicVolumes[2],rate:.9,preload:!1})],this.setupStartTrigger(),this.setupSpaceTrigger(),this.setupMusicTriggers(),this.setupMusicBtnTrigger(),this.setupSoundTriggers(),this.setupEndTrigger()},methods:{onSoundClick:function(){this.playMusic?(this.muted=!this.muted,ot.Howler.mute(this.muted)):this.startMusic()},stopMusic:function(){var t=this;this.music[this.currTrack].fade(this.musicVolumes[this.currTrack],0,1e3),clearTimeout(at),at=setTimeout((function(){t.music.forEach((function(track,i){i!==t.currTrack&&track.stop()}))}),1e3)},startMusic:function(){this.playMusic||(this.showMusicIcon=!0,this.music[this.currTrack].play(),this.muted=!1,this.playMusic=!0,this.loadAllTracks())},loadAllTracks:function(){this.music.forEach((function(track,i){"unloaded"===track.state()&&track.load()}))},setupEndTrigger:function(){var t=this;new IntersectionObserver((function(e){e[0].isIntersecting&&t.playMusic&&t.soundEffects[0].play(),t.isAtEnd=e[0].isIntersecting}),{root:this.$refs.scrollWrapper,rootMargin:"0px",threshold:.8}).observe(this.$refs.endTrigger)},setupSoundTriggers:function(){var t=this;new IntersectionObserver((function(e){e[0].isIntersecting&&(t.showMusicIcon=!0)}),{root:this.$refs.scrollWrapper,rootMargin:"0px",threshold:0}).observe(this.$refs.showSoundTrigger)},setupMusicTriggers:function(){var t=this;[this.$refs.thermosphereMusicTrigger,this.$refs.stratosphereMusicTrigger,this.$refs.mesosphereMusicTrigger].forEach((function(e,i){new IntersectionObserver((function(e){e.forEach((function(e){e.isIntersecting&&(t.playMusic&&(t.music[i].playing()||(t.music[i].seek(0),t.music[i].play()),t.stopMusic(),t.music[i].fade(0,t.musicVolumes[i],1e3)),t.currTrack=i)}))}),{root:t.$refs.scrollWrapper,rootMargin:"-50% 0px",threshold:0}).observe(e)}))},setupStartTrigger:function(){var t=this,e={root:this.$refs.scrollWrapper,rootMargin:"0px",threshold:0};new IntersectionObserver((function(e){t.isStart=e[0].isIntersecting}),e).observe(this.$refs.startTrigger)},setupMusicBtnTrigger:function(){var t=this,e={root:this.$refs.scrollWrapper,rootMargin:"0px",threshold:0};new IntersectionObserver((function(e){t.musicBtnShowing=e[0].isIntersecting,t.musicBtnShowing&&t.loadAllTracks()}),e).observe(this.$refs.musicBtn)},setupSpaceTrigger:function(){var t=this,e={root:this.$refs.scrollWrapper,rootMargin:"0px",threshold:0};new IntersectionObserver((function(e){t.isSpace=e[0].isIntersecting,t.isSpace&&t.soundEffects[0].load(),t.isSpace&&!t.selectedItems.suit&&(t.selectedItems.suit=t.spaceSuitOptions[0])}),e).observe(this.$refs.spaceTrigger)},onItemSelect:function(t,e){this.selectedItems[e]=t}},beforeDestroy:function(){ot.Howler.unload()}},nt=(r(1210),r(1212),Object(B.a)(st,(function(){var t=this,e=t._self._c;return e("div",{class:{"is-space":t.isSpace,"is-end":t.isAtEnd,"is-start":t.isStart}},[e("Bg"),t._v(" "),e("Instruments",{attrs:{useCelsius:t.useCelsius,altitude:t.altitude},on:{tempClick:function(e){t.useCelsius=!t.useCelsius}}}),t._v(" "),e("Elevator",{attrs:{selectedItems:t.selectedItems}}),t._v(" "),e("div",{staticClass:"noise"}),t._v(" "),e("nuxt-link",{attrs:{to:"/"}},[e("img",{staticClass:"site-title",attrs:{src:"/general/logo.svg"}})]),t._v(" "),e("img",{staticClass:"sound",class:{"sound-muted":t.muted,"sound-hide":!t.showMusicIcon},attrs:{src:"/space-elevator/icons/note.svg"},on:{click:t.onSoundClick}}),t._v(" "),e("div",{ref:"scrollWrapper",attrs:{id:"scroll-wrapper"}},[e("div",{staticClass:"container"},[e("div",{staticClass:"grid"}),t._v(" "),e("div",{ref:"startTrigger",staticClass:"start-trigger"}),t._v(" "),e("div",{ref:"easeArea",staticClass:"elevator-ease-area"}),t._v(" "),e("div",{ref:"shakeArea",staticClass:"elevator-shake-area"}),t._v(" "),e("div",{ref:"rainArea",staticClass:"elevator-rain-area"}),t._v(" "),e("div",{ref:"spaceTrigger",staticClass:"space-trigger"}),t._v(" "),e("div",{ref:"thermosphereMusicTrigger",staticClass:"thermosphere-music-trigger"}),t._v(" "),e("div",{ref:"stratosphereMusicTrigger",staticClass:"stratosphere-music-trigger"}),t._v(" "),e("div",{ref:"mesosphereMusicTrigger",staticClass:"mesosphere-music-trigger"}),t._v(" "),e("div",{ref:"showSoundTrigger",staticClass:"show-sound-trigger"}),t._v(" "),e("div",{ref:"endTrigger",staticClass:"end-trigger"}),t._v(" "),e("div",{staticClass:"container-graphics"},[e("Clouds"),t._v(" "),e("div",{staticClass:"container-inner"},[e("Selection",{attrs:{type:"scarf",options:t.scarfOptions,selected:t.selectedItems.scarf},on:{selected:t.onItemSelect}}),t._v(" "),e("Selection",{attrs:{type:"suit",options:t.spaceSuitOptions,selected:t.selectedItems.suit},on:{selected:t.onItemSelect}}),t._v(" "),e("div",{staticClass:"grass"}),t._v(" "),e("Content",{attrs:{useCelsius:t.useCelsius,isSpace:t.isSpace}}),t._v(" "),t.playMusic?t._e():e("button",{ref:"musicBtn",staticClass:"play-music",on:{click:t.startMusic}},[e("img",{staticClass:"play-music-icon",class:{"play-music-icon-anim":t.musicBtnShowing},attrs:{src:"/space-elevator/icons/note.svg"}}),t._v("\n Play Elevator Music\n ")]),t._v(" "),t._m(0),t._v(" "),t._m(1)],1)],1)])])],1)}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"title"},[e("img",{staticClass:"title-img",attrs:{src:"/space-elevator/icons/title.svg"}}),t._v(" "),e("div",{staticClass:"scroll-up"},[e("img",{staticClass:"scroll-up-icon",attrs:{src:"/space-elevator/icons/chevron.svg"}}),t._v(" "),e("span",{staticClass:"scroll-up-text"},[t._v("Scroll Up!")]),t._v(" "),e("img",{staticClass:"scroll-up-icon",attrs:{src:"/space-elevator/icons/chevron.svg"}})])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"end-screen"},[e("div",{staticClass:"end-screen-inner"},[e("img",{staticClass:"end-title",attrs:{src:"/space-elevator/icons/title-end.svg"}}),t._v(" "),e("div",{staticClass:"end-credits"},[e("div",{staticClass:"end-credit"},[t._v("Created by Neal Agarwal")]),t._v(" "),e("div",{staticClass:"end-credit-2"},[t._v("Birds & planes by Cindy Nhi")])]),t._v(" "),e("a",{staticClass:"bmc",attrs:{target:"_blank",href:"https://www.buymeacoffee.com/neal"}},[e("img",{staticClass:"bmc-icon",attrs:{src:"/space-elevator/icons/coffee.svg"}}),t._v("Buy Me a Coffee")]),t._v(" "),e("a",{staticClass:"end-browse",attrs:{href:"/"}},[t._v("Browse more projects on Neal.fun")])])])}],!1,null,"b78d9752",null));e.default=nt.exports},331:function(t,e,r){"use strict";var o=r(2),n=r(348).start;o({target:"String",proto:!0,forced:r(349)},{padStart:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}})},348:function(t,e,r){var o=r(4),n=r(64),d=r(13),l=r(207),c=r(24),h=o(l),m=o("".slice),f=Math.ceil,v=function(t){return function(e,r,o){var l,v,x=d(c(e)),w=n(r),y=x.length,k=void 0===o?" ":d(o);return w<=y||""==k?x:((v=h(k,f((l=w-y)/k.length))).length>l&&(v=m(v,0,l)),t?x+v:v+x)}};t.exports={start:v(!1),end:v(!0)}},349:function(t,e,r){var o=r(61);t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(o)},726:function(t,e,r){var content=r(1189);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(108).default)("19d354ad",content,!0,{sourceMap:!1})},727:function(t,e,r){var content=r(1191);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(108).default)("20d036e0",content,!0,{sourceMap:!1})},728:function(t,e,r){var content=r(1193);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(108).default)("6012ac28",content,!0,{sourceMap:!1})},729:function(t,e,r){var content=r(1195);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(108).default)("b03f169c",content,!0,{sourceMap:!1})},730:function(t,e,r){var content=r(1197);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(108).default)("112406f8",content,!0,{sourceMap:!1})},731:function(t,e,r){var content=r(1199);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(108).default)("501478ec",content,!0,{sourceMap:!1})},732:function(t,e,r){var content=r(1201);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(108).default)("5a2a286b",content,!0,{sourceMap:!1})},733:function(t,e,r){var content=r(1203);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(108).default)("33e79550",content,!0,{sourceMap:!1})},734:function(t,e,r){var content=r(1205);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(108).default)("7fece555",content,!0,{sourceMap:!1})},735:function(t,e,r){var content=r(1207);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(108).default)("644b76f3",content,!0,{sourceMap:!1})},736:function(t,e,r){var content=r(1209);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(108).default)("3d2bf87f",content,!0,{sourceMap:!1})},737:function(t,e,r){var content=r(1211);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(108).default)("062508dc",content,!0,{sourceMap:!1})},738:function(t,e,r){var content=r(1213);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(108).default)("8daab530",content,!0,{sourceMap:!1})}}]); \ No newline at end of file diff --git a/_nuxt/69040cc.js b/_nuxt/69040cc.js new file mode 100644 index 0000000000000000000000000000000000000000..b8d093976c3ba2379e6ef4213b3e04f3b4e5d8f5 --- /dev/null +++ b/_nuxt/69040cc.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[36,14],{1112:function(e,t,r){"use strict";r(563)},1113:function(e,t,r){var o=r(107)(!1);o.push([e.i,".captcha-img[data-v-23a0f4d4]{width:200px;border-radius:5px;border:1px solid #000;display:block;pointer-events:none}.captcha-wrapper[data-v-23a0f4d4]{display:grid;grid-template-columns:auto 40px;width:250px;justify-items:center;align-items:center;margin-top:10px;margin-left:auto;margin-right:auto}.captcha-refresh[data-v-23a0f4d4]{display:block;width:25px;cursor:pointer;touch-action:manipulation}.captcha-refresh[data-v-23a0f4d4]:hover{transform:scale(1.06)}",""]),e.exports=o},1114:function(e,t,r){"use strict";r(564)},1115:function(e,t,r){var o=r(107)(!1);o.push([e.i,".chess-wrapper[data-v-f5286d7c]{margin-top:10px}.move[data-v-f5286d7c]{text-align:center;font-style:italic}.chess-img[data-v-f5286d7c]{border-radius:15px;pointer-events:none}.guesses[data-v-f5286d7c]{display:flex;grid-gap:0 25px;flex-wrap:wrap;justify-content:center;display:none;margin-bottom:15px}.rule-error .guesses[data-v-f5286d7c]{display:flex}.guess-icon[data-v-f5286d7c]{width:20px;margin-right:3px;position:relative;top:4px}",""]),e.exports=o},1116:function(e,t,r){"use strict";r(565)},1117:function(e,t,r){var o=r(107)(!1);o.push([e.i,".letters[data-v-5ed0912a]{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;grid-gap:5px}.sacrafice-area[data-v-5ed0912a]{margin-top:13px;max-width:400px;margin-left:auto;margin-right:auto}.letter[data-v-5ed0912a]{width:38px;height:38px;border-radius:5px;cursor:pointer;transition:background .2s ease-in-out,opacity .2s ease-in-out;border:1px solid #b3b3b3;background:#fff;color:#000;font-family:Arial;font-size:13px}.letter[data-v-5ed0912a],.sacrafice-btn[data-v-5ed0912a]{box-shadow:2px 2px 2px 0 rgba(0,0,0,.05)}.letter[data-v-5ed0912a]:hover{transform:scale(1.05)}.letter[data-v-5ed0912a]:disabled{cursor:auto}.letter[data-v-5ed0912a]:disabled:hover{transform:none}.letter-selected[data-v-5ed0912a]{background:#000;color:#fff;border-color:#000;box-shadow:none;position:relative}.sacrafice-btn[data-v-5ed0912a]{text-align:center;font-size:18px;border-radius:5px;padding:10px 20px;cursor:pointer;display:block;margin:18px auto 5px;transition:background .3s ease-in-out,opacity .3s ease-in-out;background:#000;color:#fff;border:1px solid #000}.sacrafice-btn[data-v-5ed0912a]:hover{transform:scale(1.04)}.sacrafice-btn[data-v-5ed0912a]:disabled{border-color:#000;color:#fff;pointer-events:none;opacity:.5}.sacrafice-made .letter-selected[data-v-5ed0912a]{animation:sacrafice-5ed0912a .5s ease-in-out forwards}.sacrafice-icon[data-v-5ed0912a]{height:17px;position:relative;top:2px;margin-right:2px}.sacrafice-made .sacrafice-icon[data-v-5ed0912a]{filter:invert(100%)}@keyframes sacrafice-5ed0912a{0%{opacity:1}to{opacity:0;transform:translateY(-20px)}}.sacrafice-made .sacrafice-btn[data-v-5ed0912a]{background:#fff;color:#000;border:1px solid #000;box-shadow:none}",""]),e.exports=o},1118:function(e,t,r){"use strict";r(566)},1119:function(e,t,r){var o=r(107)(!1);o.push([e.i,".rand-color[data-v-79833e4e]{width:100%;height:150px;pointer-events:none;margin-top:15px;border-radius:15px;position:relative}.rand-color[data-v-79833e4e],.refresh[data-v-79833e4e]{-webkit-user-select:none;-moz-user-select:none;user-select:none}.refresh[data-v-79833e4e]{position:absolute;bottom:5px;right:5px;background:#fff;padding:5px;border-radius:15px;width:36px;cursor:pointer;z-index:3;pointer-events:auto;box-shadow:2px 2px 2px 0 rgba(0,0,0,.05);border:1px solid #b3b3b3}.refresh[data-v-79833e4e]:hover{transform:scale(1.04)}",""]),e.exports=o},1120:function(e,t,r){"use strict";r(567)},1121:function(e,t,r){var o=r(107)(!1);o.push([e.i,".geo-wrapper[data-v-490deea8]{width:100%;height:100%;aspect-ratio:1/1;overflow:hidden;border-radius:15px;margin-top:12px;isolation:isolate}.geo[data-v-490deea8]{width:100%;height:calc(100% + 85px);border:none;margin-top:-70px}.guesses[data-v-490deea8]{margin-top:10px;display:flex;grid-gap:0 25px;flex-wrap:wrap;justify-content:center;display:none}.rule-error .guesses[data-v-490deea8]{display:flex}.guess-icon[data-v-490deea8]{width:20px;margin-right:3px;position:relative;top:4px}",""]),e.exports=o},1122:function(e,t,r){"use strict";r(568)},1123:function(e,t,r){var o=r(107)(!1);o.push([e.i,".strength[data-v-c15cedce]{width:100%;margin-top:10px}.bars[data-v-c15cedce]{width:100%;height:22px;border-radius:100%;display:grid;grid-template-columns:repeat(4,1fr);border-radius:15px;overflow:hidden;background:#fff;border:1px solid #464646}.bar[data-v-c15cedce]{width:100%;height:100%;transform:scaleX(0);transform-origin:center left;transition:transform .4s ease-in-out;border-right:1px solid #464646}.bar.active[data-v-c15cedce]{transform:scaleX(1)}.bar-red[data-v-c15cedce]{background:#ff4141}.bar-orange[data-v-c15cedce]{background:#ffa54c}.bar-yellow[data-v-c15cedce]{background:#ffff59}.bar-green[data-v-c15cedce]{background:#5aff5a;border-right:none}",""]),e.exports=o},1124:function(e,t,r){"use strict";r(569)},1125:function(e,t,r){var o=r(107)(!1);o.push([e.i,".sponsors[data-v-290ad9f2]{margin-top:15px;display:flex;justify-content:center;align-items:center}.sponsor[data-v-290ad9f2]{margin-left:17px;margin-right:17px;pointer-events:none}.sponsor.pepsi[data-v-290ad9f2],.sponsor.shell[data-v-290ad9f2],.sponsor.starbucks[data-v-290ad9f2]{height:85px}",""]),e.exports=o},1126:function(e,t,r){"use strict";r(570)},1127:function(e,t,r){var o=r(107)(!1);o.push([e.i,"#youtube-player{width:100%;border-radius:15px}",""]),e.exports=o},1128:function(e,t,r){"use strict";r(571)},1129:function(e,t,r){var o=r(107)(!1);o.push([e.i,"#youtube-player-wrapper.active[data-v-68e67607]{margin-top:15px}",""]),e.exports=o},1130:function(e,t,r){"use strict";r(572)},1131:function(e,t,r){var o=r(107)(!1);o.push([e.i,".rule[data-v-520e375b]{background-color:#e3ffe3;border:1px solid #267b30;box-shadow:3px 3px 5px 2px rgba(60,155,71,.2);color:#000;padding:0;width:100%;line-height:1.53em;text-align:left;margin:22px auto;border-radius:10px;transition:background-color .7s ease-in-out;font-size:18px;opacity:0;animation:fadeIn-520e375b .5s ease-in-out forwards;position:relative;word-spacing:0;overflow:hidden}@keyframes fadeIn-520e375b{0%{opacity:0}to{opacity:1}}.rule-error[data-v-520e375b]{background-color:#ffecec;border:1px solid red;color:#000;box-shadow:2px 2px 5px 2px rgba(255,0,0,.12)}.rule-top[data-v-520e375b]{display:block;padding:8px 16px 5px;background-color:#aef3ae;transition:background-color .7s ease-in-out}.rule-error .rule-top[data-v-520e375b]{background-color:#ffc7c7}.rule-desc[data-v-520e375b]{padding:11px 17px 15px}.rule-icon[data-v-520e375b]{position:relative;width:19px;height:19px;top:3px;left:-1px;pointer-events:none}.final .rule-top[data-v-520e375b]{display:none}.final.rule[data-v-520e375b]{padding-top:3px}.affirmation-list[data-v-520e375b]{margin-top:7px}.final-password[data-v-520e375b]{margin-top:10px;display:flex;grid-gap:8px}.final-password button[data-v-520e375b]{background:#fff;font-size:16px;padding:5px 11px;border-radius:5px;cursor:pointer;border:1px solid #b3b3b3;box-shadow:2px 2px 2px 0 rgba(0,0,0,.05);color:#000}.final-password button[data-v-520e375b]:hover{transform:scale(1.05)}.final-hide[data-v-520e375b]{display:none}@media screen and (max-width:600px){.rule[data-v-520e375b]{margin:20px 0}}",""]),e.exports=o},1141:function(e,t,r){"use strict";r(574)},1142:function(e,t,r){var o=r(107)(!1);o.push([e.i,".list-move{transition:transform .5s ease-in-out}.list-enter-active,.list-leave-active{transition:opacity .5s ease-in-out}.list-enter,.list-leave-to{opacity:0}",""]),e.exports=o},1144:function(e,t,r){"use strict";r(575)},1145:function(e,t,r){var o=r(107)(!1);o.push([e.i,".ProseMirror{width:100%;padding:15px;font-size:28px;border:1px solid #9d9d9d;border-radius:10px;resize:none;overflow:hidden;word-break:break-all;font-family:monospace;min-height:64px;outline:none;background:none;transition:border-color .15s ease-in-out,border-radius .1s ease-in-out;contain:layout}.has-toolbar .ProseMirror{border-bottom-left-radius:0;border-bottom-right-radius:0}.ProseMirror:focus{border-color:#000}.error-highlight{background:#ffd9d9}.password-game-body{background-color:#fffae9!important}",""]),e.exports=o},1146:function(e,t,r){"use strict";r(576)},1147:function(e,t,r){var o=r(107),n=r(200),l=r(1148),c=r(1149),d=o(!1),f=n(l),m=n(c);d.push([e.i,"@font-face{font-family:Wingdings;src:url("+f+')}@font-face{font-family:"Comic Sans";src:url('+m+')}.wrapper[data-v-56b284df]{font-size:16px;padding:15px;font-family:Arial,Helvetica,sans-serif;background-attachment:fixed}.password-box[data-v-56b284df]{width:100%;margin-left:auto;margin-right:auto}.password-box-inner.complete[data-v-56b284df],.password-final[data-v-56b284df]{background:#fff;opacity:.8}.password-final[data-v-56b284df]{border-radius:10px!important;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;margin-bottom:40px}.title[data-v-56b284df]{position:absolute;top:80px;left:50%;transform:translateX(-50%);z-index:10;height:22px;display:block}.site-title[data-v-56b284df]{max-width:125px;position:absolute;top:15px;left:15px}.password-bg[data-v-56b284df]{position:absolute;top:0;left:0;height:100%;width:100%;padding:15px;font-size:28px;border-radius:10px;font-family:monospace;background:#fff;color:transparent;border:1px solid transparent;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;word-break:break-all;white-space:break-spaces;word-wrap:break-word;font-variant-ligatures:none;font-feature-settings:"liga" 0,none}.password-bg-loading[data-v-56b284df]{border-color:#000}.password-box-inner[data-v-56b284df]{position:relative;min-height:64px}.password-length[data-v-56b284df]{position:absolute;top:50%;right:-15px;font-size:18px;transform:translate(100%,-50%);opacity:0;transition:opacity .5s ease-in-out}.show-password-length[data-v-56b284df]{opacity:1}.password-wrapper[data-v-56b284df]{max-width:485px;margin:167px auto 60px}.password-label[data-v-56b284df]{text-align:left;margin-bottom:8px;font-size:16px}.toolbar[data-v-56b284df]{background:#fff;border:1px solid #000;border-top:none;padding:10px;border-radius:10px;border-top-left-radius:0;border-top-right-radius:0;display:flex;flex-wrap:wrap;grid-gap:8px;transform:scaleY(0);transform-origin:center top;animation:showToolbar-56b284df .4s ease-in-out forwards}.death-screen[data-v-56b284df]{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.8);-webkit-backdrop-filter:saturate(0);backdrop-filter:saturate(0);z-index:100;animation:fadeInDeath-56b284df .5s ease-in-out forwards;opacity:0;text-align:center}@keyframes fadeInDeath-56b284df{to{opacity:1}}.death-screen-strip[data-v-56b284df]{position:absolute;top:50%;transform:translateY(-50%);left:0;width:100%;height:100px;background:rgba(0,0,0,.95);color:red;display:flex;justify-content:center;align-items:center;font-size:48px;font-family:"Georgia",Times,serif;text-transform:uppercase;box-shadow:0 0 80px 50px rgba(0,0,0,.7)}@keyframes showToolbar-56b284df{to{transform:none}}.error-match[data-v-56b284df]{margin:15px 0;background-color:#ffecec;border:1px solid red;box-shadow:2px 2px 5px 2px rgba(255,0,0,.12);padding:15px;width:100%;border-radius:10px}.end-screen[data-v-56b284df],.error-match[data-v-56b284df]{text-align:center;color:#000;line-height:1.5em}.end-screen[data-v-56b284df]{margin-top:15px;font-size:18px;background-color:#daffda;border:1px solid #267b30;box-shadow:3px 3px 5px 2px rgba(60,155,71,.2);padding:14px 20px;border-radius:10px;animation:endPopup-56b284df .4s ease-in-out forwards}@keyframes endPopup-56b284df{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:none}}.toolbar button[data-v-56b284df]{background:#fff;font-size:16px;padding:5px 11px;border-radius:5px;cursor:pointer;border:1px solid #b3b3b3;box-shadow:2px 2px 2px 0 rgba(0,0,0,.05);transition:background .15s linear;color:#000;opacity:0;animation:showButton-56b284df .4s ease-in-out forwards;touch-action:manipulation}@keyframes showButton-56b284df{to{opacity:1}}.toolbar button.is-active[data-v-56b284df]{background:#000;border-color:#000;color:#fff;box-shadow:none}.toolbar select[data-v-56b284df]{color:#000;background:#fff;font-size:16px;padding:5px 35px 5px 12px;border-radius:5px;cursor:pointer;border:1px solid #b3b3b3;box-shadow:2px 2px 2px 0 rgba(0,0,0,.05);-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url(/password-game/chevron.svg);background-size:12px 12px;background-repeat:no-repeat;background-position:calc(100% - 10px) 9px}.bomb[data-v-56b284df]{margin-bottom:50px;position:relative}.bomb-img[data-v-56b284df]{width:100px}.bomb-fuse[data-v-56b284df]{width:100%;height:2px;background:#ff712f;border-radius:3px;animation:bombFuse-56b284df 90s linear forwards;transform-origin:center left;position:absolute;top:calc(100% - 6px);left:0}.bomb-fuse-pause[data-v-56b284df]{animation-play-state:paused}.bomb-fuse[data-v-56b284df]:after{content:"";width:50px;height:50px;background-image:url(/password-game/sparkle.gif);background-size:contain;background-position:50%;position:absolute;right:-25px;top:-24px;z-index:10}.bomb-fuse-pause.bomb-fuse[data-v-56b284df]:after{display:none}@keyframes bombFuse-56b284df{to{width:100px}}.list-item[data-v-56b284df]{display:inline-block}.banner[data-v-56b284df]{background:#ff2b2b;color:#fff;position:absolute;top:0;right:0;padding:10px;font-size:14px;border-bottom-left-radius:5px}@media screen and (max-width:600px){.wrapper[data-v-56b284df]{padding:20px}.password-length[data-v-56b284df]{right:5px;top:-25px;font-size:16px;transform:none}.password-wrapper[data-v-56b284df]{margin-top:120px}.site-title[data-v-56b284df]{max-width:95px;opacity:.75}.death-screen-strip[data-v-56b284df]{font-size:36px}.title[data-v-56b284df]{top:102px;height:20px}.password-label[data-v-56b284df]{margin-bottom:6px}.password-wrapper[data-v-56b284df]{margin-top:160px}}',""]),e.exports=d},1148:function(e,t,r){e.exports=r.p+"fonts/Wingdings.2c01544.woff2"},1149:function(e,t,r){e.exports=r.p+"fonts/Comic-Sans.633e967.woff2"},1296:function(e,t,r){"use strict";r.r(t);var o=r(284),n=r(10),l=(r(60),r(15),r(113),r(32),r(562),r(62),r(65),r(110),r(46),r(30),r(208),r(34),r(146),r(63),r(83),r(343),r(363),r(40),r(364),r(365),r(366),r(368),r(369),r(370),r(371),r(372),r(373),r(374),r(375),r(376),r(377),r(378),r(379),r(380),r(41),r(47),r(331),r(209),r(45),r(211),r(69),[{num:"1",symbol:"H"},{num:"2",symbol:"He"},{num:"3",symbol:"Li"},{num:"4",symbol:"Be"},{num:"5",symbol:"B"},{num:"6",symbol:"C"},{num:"7",symbol:"N"},{num:"8",symbol:"O"},{num:"9",symbol:"F"},{num:"10",symbol:"Ne"},{num:"11",symbol:"Na"},{num:"12",symbol:"Mg"},{num:"13",symbol:"Al"},{num:"14",symbol:"Si"},{num:"15",symbol:"P"},{num:"16",symbol:"S"},{num:"17",symbol:"Cl"},{num:"18",symbol:"Ar"},{num:"19",symbol:"K"},{num:"20",symbol:"Ca"},{num:"21",symbol:"Sc"},{num:"22",symbol:"Ti"},{num:"23",symbol:"V"},{num:"24",symbol:"Cr"},{num:"25",symbol:"Mn"},{num:"26",symbol:"Fe"},{num:"27",symbol:"Co"},{num:"28",symbol:"Ni"},{num:"29",symbol:"Cu"},{num:"30",symbol:"Zn"},{num:"31",symbol:"Ga"},{num:"32",symbol:"Ge"},{num:"33",symbol:"As"},{num:"34",symbol:"Se"},{num:"35",symbol:"Br"},{num:"36",symbol:"Kr"},{num:"37",symbol:"Rb"},{num:"38",symbol:"Sr"},{num:"39",symbol:"Y"},{num:"40",symbol:"Zr"},{num:"41",symbol:"Nb"},{num:"42",symbol:"Mo"},{num:"43",symbol:"Tc"},{num:"44",symbol:"Ru"},{num:"45",symbol:"Rh"},{num:"46",symbol:"Pd"},{num:"47",symbol:"Ag"},{num:"48",symbol:"Cd"},{num:"49",symbol:"In"},{num:"50",symbol:"Sn"},{num:"51",symbol:"Sb"},{num:"52",symbol:"Te"},{num:"53",symbol:"I"},{num:"54",symbol:"Xe"},{num:"55",symbol:"Cs"},{num:"56",symbol:"Ba"},{num:"57",symbol:"La"},{num:"58",symbol:"Ce"},{num:"59",symbol:"Pr"},{num:"60",symbol:"Nd"},{num:"61",symbol:"Pm"},{num:"62",symbol:"Sm"},{num:"63",symbol:"Eu"},{num:"64",symbol:"Gd"},{num:"65",symbol:"Tb"},{num:"66",symbol:"Dy"},{num:"67",symbol:"Ho"},{num:"68",symbol:"Er"},{num:"69",symbol:"Tm"},{num:"70",symbol:"Yb"},{num:"71",symbol:"Lu"},{num:"72",symbol:"Hf"},{num:"73",symbol:"Ta"},{num:"74",symbol:"W"},{num:"75",symbol:"Re"},{num:"76",symbol:"Os"},{num:"77",symbol:"Ir"},{num:"78",symbol:"Pt"},{num:"79",symbol:"Au"},{num:"80",symbol:"Hg"},{num:"81",symbol:"Tl"},{num:"82",symbol:"Pb"},{num:"83",symbol:"Bi"},{num:"84",symbol:"Po"},{num:"85",symbol:"At"},{num:"86",symbol:"Rn"},{num:"87",symbol:"Fr"},{num:"88",symbol:"Ra"},{num:"89",symbol:"Ac"},{num:"90",symbol:"Th"},{num:"91",symbol:"Pa"},{num:"92",symbol:"U"},{num:"93",symbol:"Np"},{num:"94",symbol:"Pu"},{num:"95",symbol:"Am"},{num:"96",symbol:"Cm"},{num:"97",symbol:"Bk"},{num:"98",symbol:"Cf"},{num:"99",symbol:"Es"},{num:"100",symbol:"Fm"},{num:"101",symbol:"Md"},{num:"102",symbol:"No"},{num:"103",symbol:"Lr"},{num:"104",symbol:"Rf"},{num:"105",symbol:"Db"},{num:"106",symbol:"Sg"},{num:"107",symbol:"Bh"},{num:"108",symbol:"Hs"},{num:"109",symbol:"Mt"},{num:"110",symbol:"Ds"},{num:"111",symbol:"Rg"},{num:"112",symbol:"Cn"},{num:"113",symbol:"Nh"},{num:"114",symbol:"Fl"},{num:"115",symbol:"Mc"},{num:"116",symbol:"Lv"},{num:"117",symbol:"Ts"},{num:"118",symbol:"Og"}]),c=r(1110),d=r.n(c),f=r(1111),m=f.DateTime.now().setZone("America/New_York").startOf("day").toJSDate(),h=f.DateTime.now().setZone("America/New_York").startOf("day").plus({days:1}).toJSDate(),P=/M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})/g,w=l.filter((function(e){return 1===e.symbol.length})),v=l.filter((function(e){return 2===e.symbol.length}));function y(e){if(!e.includes)return 1;var t={I:1,V:5,X:10,L:50,C:100,D:500,M:1e3},r=0;e.includes("CM")&&(r-=200),e.includes("CD")&&(r-=200),e.includes("XC")&&(r-=20),e.includes("XL")&&(r-=20),e.includes("IX")&&(r-=2),e.includes("IV")&&(r-=2);for(var i=0;i0})))||[]}var C=[{desc:"Your password must be at least 5 characters.",test:function(e,t){return{isValid:t.passwordLength>=5}},id:"min-length"},{desc:"Your password must include a number.",test:function(e){return{isValid:/\d/.test(e)}},id:"number"},{desc:"Your password must include an uppercase letter.",test:function(e){return{isValid:/[A-Z]/.test(e)}},id:"uppercase"},{desc:"Your password must include a special character.",test:function(e){return{isValid:/[^a-zA-Z0-9]/.test(e)}},id:"special"},{desc:"The digits in your password must add up to 25.",test:function(e){var t=function(e){var t=e.match(/\d/g)||[],r=t.map((function(e){return parseInt(e)}));return{strArr:t,numArr:r}}(e),r=(t.strArr,t.numArr);return 0!==r.length&&{isValid:25===r.reduce((function(a,b){return a+b}))}},highlight:x,id:"digits"},{desc:"Your password must include a month of the year.",test:function(e){var t=e.toLowerCase();return{isValid:["january","february","march","april","may","june","july","august","september","october","november","december"].some((function(e){return t.includes(e)})),explain:""}},id:"month"},{desc:"Your password must include a roman numeral.",test:function(e){return{isValid:R(e).length>0}},id:"roman"},{desc:"Your password must include one of our sponsors:",test:function(e){var t=e.toLowerCase();return{isValid:["pepsi","starbucks","shell"].some((function(e){return t.includes(e)}))}},id:"sponsors"},{desc:"The roman numerals in your password should multiply to 35.",test:function(e){var t=R(e);if(0===t.length)return!1;for(var r=y(t[0])||0,i=1;i=.25?["🌓","🌗","🌛","🌜"]:t<=.5&&r>=.5?["🌕","🌝"]:t<=.75&&r>=.75?["🌓","🌗","🌛","🌜"]:t>=r?["🌑","🌚"]:t<=.25?["🌒","🌘"]:t<=.5||t<=.75?["🌔","🌖"]:["🌒","🌘"]).some((function(t){return e.includes(t)}))}},id:"moon-phase"},{desc:"Your password must include the name of this country.",test:function(e,t){var r=t.currPlace,o=e.toLowerCase().replaceAll(" ",""),n=r.title.toLowerCase().replaceAll(" ","");return{isValid:o.includes(n)}},id:"geo"},{desc:"Your password must include a leap year.",test:function(e){var t=function(e){var t=[],r=[],n=e.match(/(\d+)/g)||[];t.push.apply(t,Object(o.a)(n)),r.push.apply(r,Object(o.a)(n.map((function(e){return parseInt(e)}))));var l=R(e);return t.push.apply(t,Object(o.a)(l)),r.push.apply(r,Object(o.a)(l.map((function(e){return y(e)})))),{strArr:t,numArr:r}}(e).numArr;return{isValid:t.some((function(e){return e%4==0&&e%100!=0||e%400==0}))}},id:"leap-year"},{desc:"Your password must include the best move in algebraic chess notation.",test:function(e,t){var r=t.currChessPuzzle;return{isValid:e.includes(r.sol)}},id:"chess"},{desc:"🥚 ← This is my chicken Paul. He hasn't hatched yet, please put him in your password and keep him safe.",test:function(e,t){var r=t.eggPlaced,o=t.triggerDeathAnimation,n=t.paulHatched,l=e.includes("🥚")||n&&e.includes("🐔");return r&&!l&&o("Paul has been slain"),{isValid:l}},id:"egg"},{desc:"The elements in your password must have atomic numbers that add up to 200.",test:function(e){var t=0;return[v,w].forEach((function(r){r.forEach((function(r){e=e.replaceAll(r.symbol,(function(e){return t+=parseInt(r.num),""}))}))})),{isValid:200===t,explain:""}},id:"atomic-number",highlight:function(e){for(var t=[],r=0;r-1;)t.push(n),t.push(n+1),n=(e=e.replace(o.symbol," ".repeat(2))).indexOf(o.symbol);for(var l=0;l-1;)t.push(d),d=(e=e.replace(c.symbol," ")).indexOf(c.symbol);return t}},{desc:"All the vowels in your password must be bolded.",test:function(e,t){var r=t.doc,n=!0,l=[];return r.descendants((function(e,t){e.text&&e.text.match(/[aeiouy]/gi)&&(e.marks.some((function(mark){return"bold"===mark.type.name}))||(n=!1,Object(o.a)(e.text.matchAll(/[aeiouy]/gi)).forEach((function(e){l.push(t+e.index-1)}))))})),{isValid:n,highlights:l}},id:"bold-vowels"},{desc:"Oh no! Your password is on fire. Quick, put it out!",test:function(e,t){var r=t.fireStarted;return{isValid:!e.includes("🔥")&&r}},id:"fire"},{desc:"Your password is not strong enough 🏋️‍♂️",test:function(e){return Object(o.a)(e.matchAll("🏋️‍♂️")).length>=3?{isValid:!0}:{isValid:!1}},id:"strength",hasDelay:!0},{desc:"Your password must contain one of the following affirmations:",test:function(e){var t=["i am loved","i am worthy","i am enough"],r=e.toLowerCase();return{isValid:t.some((function(e){return r.includes(e)}))||t.some((function(e){return r.includes(e.replaceAll(" ",""))}))}},id:"affirmation"},{desc:"Paul has hatched! Please don't forget to feed him, he eats three 🐛 every minute.",test:function(e,t){var r=t.paulEating;return{isValid:e.includes("🐛")||r}},id:"hatch"},{desc:function(e){var t=e.randomYoutubeDuration,r=Math.floor(t/60),o=t-60*r,n=!1,l="";return r>0&&(l+="".concat(r," minute")),o>0?l+=" ".concat(o," second"):n=!0,"Your password must include the URL of a".concat(n?"n exactly":""," ").concat(l," long YouTube video.")},test:function(e,t){var r=t.currYoutubeDuration,o=t.randomYoutubeDuration;return{isValid:Math.abs(o-r)<=1}},id:"youtube",hasDelay:!0},{desc:"A sacrifice must be made. Pick 2 letters that you will no longer be able to use.",test:function(e,t){var r=t.sacraficedLetters;if(e=e.toUpperCase(),2!==r.length)return{isValid:!1};for(var i=0;i=2*n}},id:"twice-italic"},{desc:"At least 30% of your password must be in the Wingdings font.",test:function(e,t){var r=t.doc,n=t.passwordLength,l=0;return r.descendants((function(e,t){e.text&&e.marks.some((function(mark){return"textStyle"===mark.type.name&&"Wingdings"===mark.attrs.fontFamily}))&&(l+=Object(o.a)(e.text).length)})),{isValid:l/n>=.3}},id:"wingdings"},{desc:"Your password must include this color in hex.",test:function(e,t){var r=t.randomColor,o=e.match(/#[0-9A-Fa-f]{6}/g);if(!o)return{isValid:!1};for(var n=parseInt(r.replace("#",""),16),i=0;i1}},id:"prime-length"},{desc:"Uhhh let's skip this one.",test:function(e){return{isValid:!0}},id:"skip"},{desc:"Your password must include the current time.",test:function(e){var time=(new Date).toLocaleString("en-US",{hour:"numeric",minute:"numeric",hour12:!0}).split(" ")[0];return{isValid:e.includes(time)}},id:"time"},{desc:"Is this your final password?",test:function(e){return{isValid:!1}},id:"final"}],Q=r(33),F=(r(276),{props:{captcha:{type:String,required:!0}}}),N=(r(1112),r(28)),_=Object(N.a)(F,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"captcha-wrapper"},[t("img",{staticClass:"captcha-img",attrs:{src:"/password-game/captchas/".concat(e.captcha,".png")}}),e._v(" "),t("img",{staticClass:"captcha-refresh",attrs:{src:"/password-game/refresh.svg"},on:{click:function(t){return e.$emit("captchaRefresh")}}})])}),[],!1,null,"23a0f4d4",null).exports,B=[{sol:"Nf6+",black:!1,fen:"r2qkb1r/pp2nppp/3p4/2pNN1B1/2BnP3/3P4/PPP2PPP/R2bK2R w KQkq - 1 0"},{sol:"Qd5+",black:!1,fen:"1rb4r/pkPp3p/1b1P3n/1Q6/N3Pp2/8/P1P3PP/7K w - - 1 0"},{sol:"Qb8+",black:!1,fen:"4kb1r/p2n1ppp/4q3/4p1B1/4P3/1Q6/PPP2PPP/2KR4 w k - 1 0"},{sol:"Qd8+",black:!1,fen:"r1b2k1r/ppp1bppp/8/1B1Q4/5q2/2P5/PPP2PPP/R3R1K1 w - - 1 0"},{sol:"Qxg6+",black:!1,fen:"5rkr/pp2Rp2/1b1p1Pb1/3P2Q1/2n3P1/2p5/P4P2/4R1K1 w - - 1 0"},{sol:"Qxd7+",black:!1,fen:"1r1kr3/Nbppn1pp/1b6/8/6Q1/3B1P2/Pq3P1P/3RR1K1 w - - 1 0"},{sol:"Qxf8+",black:!1,fen:"5rk1/1p1q2bp/p2pN1p1/2pP2Bn/2P3P1/1P6/P4QKP/5R2 w - - 1 0"},{sol:"Qd7+",black:!1,fen:"r1nk3r/2b2ppp/p3b3/3NN3/Q2P3q/B2B4/P4PPP/4R1K1 w - - 1 0"},{sol:"Qg6+",black:!1,fen:"r4br1/3b1kpp/1q1P4/1pp1RP1N/p7/6Q1/PPB3PP/2KR4 w - - 1 0"},{sol:"Qxh6+",black:!1,fen:"r1b2k1r/ppppq3/5N1p/4P2Q/4PP2/1B6/PP5P/n2K2R1 w - - 1 0"},{sol:"Qg4+",black:!1,fen:"r2q1b1r/1pN1n1pp/p1n3k1/4Pb2/2BP4/8/PPP3PP/R1BQ1RK1 w - - 1 0"},{sol:"Qxh6+",black:!1,fen:"3q2r1/4n2k/p1p1rBpp/PpPpPp2/1P3P1Q/2P3R1/7P/1R5K w - - 1 0"},{sol:"Qg6+",black:!1,fen:"r2qk2r/pb4pp/1n2Pb2/2B2Q2/p1p5/2P5/2B2PPP/RN2R1K1 w - - 1 0"},{sol:"Rg1+",black:!0,fen:"6k1/pp4p1/2p5/2bp4/8/P5Pb/1P3rrP/2BRRN1K b - - 0 1"},{sol:"Qxh5+",black:!1,fen:"rnbqkbn1/ppppp3/7r/6pp/3P1p2/3BP1B1/PPP2PPP/RN1QK1NR w - - 1 0"},{sol:"Ne7",black:!1,fen:"r2qrb2/p1pn1Qp1/1p4Nk/4PR2/3n4/7N/P5PP/R6K w - - 1 0"},{sol:"Qc3+",black:!0,fen:"8/2r5/1k5p/1pp4P/8/K2P4/PR2QB2/2q5 b - - 0 1"},{sol:"Qf5+",black:!1,fen:"r1b3nr/ppqk1Bbp/2pp4/4P1B1/3n4/3P4/PPP2QPP/R4RK1 w - - 1 0"},{sol:"Bf6+",black:!1,fen:"3k1r1r/pb3p2/1p4p1/1B2B3/3qn3/6QP/P4RP1/2R3K1 w - - 1 0"},{sol:"Qc8+",black:!1,fen:"rn2kb1r/1pQbpppp/1p6/qp1N4/6n1/8/PPP3PP/2KR2NR w - - 1 0"},{sol:"Re8+",black:!1,fen:"r2k2nr/pp1b1Q1p/2n4b/3N4/3q4/3P4/PPP3PP/4RR1K w - - 1 0"},{sol:"Rc1+",black:!0,fen:"7k/1p4p1/p4b1p/3N3P/2p5/2rb4/PP2r3/K2R2R1 b - - 0 1"},{sol:"Bf4+",black:!1,fen:"r2q2nr/5p1p/p1Bp3b/1p1NkP2/3pP1p1/2PP2P1/PP5P/R1Bb1RK1 w - - 1 0"},{sol:"Ne6+",black:!1,fen:"r2q1k1r/ppp1bB1p/2np4/6N1/3PP1bP/8/PPP5/RNB2RK1 w - - 1 0"},{sol:"Qf8+",black:!1,fen:"6k1/1p1r1pp1/p1r3b1/3pPqB1/2pP4/Q1P4R/P3P2K/6R1 w - - 1 0"},{sol:"Bf5+",black:!0,fen:"r1b3k1/ppp3pp/8/3pB3/1P1P4/3K1P2/PP1n1q1P/R2Q3R b - - 0 1"},{sol:"Qxc6+",black:!1,fen:"2kr1b1r/pp3ppp/2p1b2q/4B3/4Q3/2PB2R1/PPP2PPP/3R2K1 w - - 1 0"},{sol:"Qxb8+",black:!1,fen:"rn2kb1r/pp3ppp/4p1qn/1p4B1/2B5/3P2QP/PPP2PP1/R3K2R w - - 1 0"},{sol:"Qxd6+",black:!1,fen:"rnb2b1r/p3kBp1/3pNn1p/2pQN3/1p2PP2/4B3/Pq5P/4K3 w - - 1 0"},{sol:"Rd8+",black:!1,fen:"r1b1k2r/ppQ1q2n/2p2p2/P3p2p/N3P1pP/1B4P1/1PP2P2/3R1NK1 w - - 1 0"},{sol:"Nd3+",black:!0,fen:"r6k/pp4pp/1b1P4/8/1n4Q1/2N1RP2/PPq3p1/1RB1K3 b - - 0 1"},{sol:"Rxb6+",black:!1,fen:"8/1r5p/kpQ3p1/p3rp2/P6P/8/4bPPK/1R6 w - - 1 0"},{sol:"Qxf7+",black:!1,fen:"r1b2rk1/2p2ppp/p7/1p6/3P3q/1BP3bP/PP3QP1/RNB1R1K1 w - - 1 0"},{sol:"Nf6+",black:!1,fen:"r2qkb1r/2p1nppp/p2p4/np1NN3/4P3/1BP5/PP1P1PPP/R1B1K2R w - - 1 0"},{sol:"Qe7+",black:!1,fen:"rnbkn2r/pppp1Qpp/5b2/3NN3/3Pp3/8/PPP1KP1P/R1B4q w - - 1 0"},{sol:"Rg8+",black:!1,fen:"4rk2/2pQn2p/p4p2/1p2pN1P/4q3/2P3R1/5PPK/8 w - - 1 0"},{sol:"Qxf7+",black:!1,fen:"r1b2rk1/pp3ppp/3p4/3Q1nq1/2B1R3/8/PP3PPP/R5K1 w - - 1 0"},{sol:"Be3+",black:!0,fen:"7r/p3ppk1/3p4/2p1P1Kp/2Pb4/3P1QPq/PP5P/R6R b - - 0 1"},{sol:"Nh4+",black:!0,fen:"rn2kb1r/ppp1pppp/8/8/4q3/3P1N1b/PPP1BPnP/RNBQ1K1R b kq - 0 1"},{sol:"Qxe6+",black:!1,fen:"r1b1kb1r/pp1n1pp1/1qp1p2p/6B1/2PPQ3/3B1N2/P4PPP/R4RK1 w - - 1 0"},{sol:"Qf8+",black:!1,fen:"6k1/5p2/1p5p/p4Np1/5q2/Q6P/PPr5/3R3K w - - 1 0"},{sol:"Qf6+",black:!1,fen:"r3q3/ppp3k1/3p3R/5b2/2PR3Q/2P1PrP1/P7/4K3 w - - 1 0"},{sol:"Nb5+",black:!0,fen:"r3k2r/1Bp2ppp/8/4q1b1/pP1n4/P1KP3P/1BP5/R2Q3R b - - 0 1"},{sol:"Qxh7+",black:!1,fen:"r1bq2rk/pp3pbp/2p1p1pQ/7P/3P4/2PB1N2/PP3PPR/2KR4 w - - 1 0"},{sol:"Qxb7+",black:!1,fen:"k1n3rr/Pp3p2/3q4/3N4/3Pp2p/1Q2P1p1/3B1PP1/R4RK1 w - - 1 0"},{sol:"Qg1+",black:!0,fen:"8/1p3k2/4p1rp/p3Pp1Q/3qnP2/1P6/P6P/2R2R1K b - - 0 1"},{sol:"Bh6+",black:!1,fen:"r1bq3r/ppp1b1kp/2n3p1/3B3Q/3p4/8/PPP2PPP/RNB2RK1 w - - 1 0"},{sol:"Rxf6+",black:!1,fen:"4r3/pbpn2n1/1p1prp1k/8/2PP2PB/P5N1/2B2R1P/R5K1 w - - 1 0"},{sol:"Qxh6+",black:!1,fen:"1q5r/1b1r1p1k/2p1pPpb/p1Pp4/3B1P1Q/1P4P1/P4KB1/2RR4 w - - 1 0"},{sol:"h5+",black:!1,fen:"r4R2/1b2n1pp/p2Np1k1/1pn5/4pP1P/8/PPP1B1P1/2K4R w - - 1 0"},{sol:"Nxd7+",black:!1,fen:"r1bqk2r/bppp1ppp/8/PB2N3/3n4/B7/2PPQnPP/RN2K2R w KQkq - 1 0"},{sol:"Rxh2+",black:!0,fen:"1r4k1/3b2pp/1b1pP2r/pp1P4/4q3/8/PP4RP/2Q2R1K b - - 0 1"},{sol:"Bb5+",black:!0,fen:"8/2k2p2/2b3p1/P1p1Np2/1p3b2/1P1K4/5r2/R3R3 b - - 0 1"},{sol:"Rg8+",black:!1,fen:"r4r1k/2qb3p/p2p1p2/1pnPN3/2p1Pn2/2P1N3/PPB1QPR1/6RK w - - 1 0"},{sol:"Qh8+",black:!1,fen:"1r2q3/1R6/3p1kp1/1ppBp1b1/p3Pp2/2PP4/PP3P2/5K1Q w - - 1 0"},{sol:"Bh5+",black:!1,fen:"r3kb1r/pb6/2p2p1p/1p2pq2/2pQ3p/2N2B2/PP3PPP/3RR1K1 w - - 1 0"},{sol:"Qh7+",black:!1,fen:"4r3/2q1rpk1/p3bN1p/2p3p1/4QP2/2N4P/PP4P1/5RK1 w - - 1 0"},{sol:"Qxh7+",black:!1,fen:"r5rk/pp1np1bn/2pp2q1/3P1bN1/2P1N2Q/1P6/PB2PPBP/3R1RK1 w - - 1 0"},{sol:"Ne5+",black:!1,fen:"rn1qkb1r/4p2p/2p2nN1/p4p1Q/PpBP4/8/1P3PPP/R1B1K2R w - - 1 0"},{sol:"Qxg7+",black:!1,fen:"r1b2rk1/ppppbpp1/7p/4R3/6Qq/2BB4/PPP2PPP/R5K1 w - - 1 0"},{sol:"Rh8+",black:!1,fen:"1r3k2/2n1p1b1/3p2QR/p1pq1pN1/bp6/7P/2P2PP1/4RBK1 w - - 1 0"},{sol:"Rxh6+",black:!1,fen:"5b2/1p3rpk/p1b3Rp/4B1RQ/3P1p1P/7q/5P2/6K1 w - - 1 0"},{sol:"Qxe8+",black:!1,fen:"r2Rnk1r/1p2q1b1/7p/6pQ/4Ppb1/1BP5/PP3BPP/2K4R w - - 1 0"},{sol:"Rxe8+",black:!1,fen:"r2qr2k/pp1b3p/2nQ4/2pB1p1P/3n1PpR/2NP2P1/PPP5/2K1R1N1 w - - 1 0"},{sol:"Qxh6+",black:!1,fen:"4r3/p2r1p1k/3q1Bpp/4P3/1PppR3/P5P1/5P1P/2Q3K1 w - - 1 0"},{sol:"Qxh7+",black:!1,fen:"r3n1rk/q3NQ1p/p2pbP2/1p4p1/1P1pP1P1/3R4/P1P4P/3B2K1 w - - 1 0"},{sol:"Kh6",black:!0,fen:"8/2r2pk1/3p2p1/3Pb3/2P1P2K/6r1/1R2B3/1R6 b - - 0 1"},{sol:"Be1+",black:!1,fen:"8/8/p3p3/3b1pR1/1B3P1k/8/4r1PK/8 w - - 1 0"},{sol:"Rxg7+",black:!1,fen:"Q7/2r2rpk/2p4p/7N/3PpN2/1p2P3/1K4R1/5q2 w - - 1 0"},{sol:"Qxg7+",black:!1,fen:"r3rknQ/1p1R1pb1/p3pqBB/2p5/8/6P1/PPP2P1P/4R1K1 w - - 1 0"},{sol:"Rg7",black:!1,fen:"4rr2/1p5R/3p1p2/p2Bp3/P2bPkP1/1P5R/1P2K3/8 w - - 1 0"},{sol:"Bd6+",black:!1,fen:"r4kr1/pbNn1q1p/1p6/2p2BPQ/5B2/8/P6P/b4RK1 w - - 1 0"},{sol:"Ng6+",black:!1,fen:"6rk/6pp/5p2/p7/P2Q1N2/4P1P1/2r2n1P/6K1 w - - 1 0"},{sol:"Qh3+",black:!1,fen:"1n6/p3q2p/2pNk3/1pP1p3/1P2P2Q/2P3P1/6K1/8 w - - 1 0"},{sol:"Rg1+",black:!0,fen:"6rk/p3p2p/1p2Pp2/2p2P2/2P1nBr1/1P6/P6P/3R1R1K b - - 0 1"},{sol:"Qg1+",black:!0,fen:"3rk3/1p3p2/2p5/7P/1P1qpp1R/P5P1/2Q5/3BK3 b - - 0 1"},{sol:"Rh8+",black:!1,fen:"2QR4/6b1/1p4pk/7p/5n1P/4rq2/5P2/5BK1 w - - 1 0"},{sol:"Rf6",black:!1,fen:"r3q1k1/5p2/3P2pQ/Ppp5/1pnbN2R/8/1P4PP/5R1K w - - 1 0"},{sol:"Re7+",black:!1,fen:"5b2/R4p1p/1r2kp2/1p2pN2/2r1P3/P1P3P1/1PK4P/3R4 w - - 1 0"},{sol:"Qh6+",black:!1,fen:"r3q1r1/1p2bNkp/p3n3/2PN1B1Q/PP1P1p2/7P/5PP1/6K1 w - - 1 0"},{sol:"Qxh7+",black:!1,fen:"1r2q2k/4N2p/3p1Pp1/2p1n1P1/2P5/p2P2KQ/P3R3/8 w - - 1 0"},{sol:"Rf6+",black:!1,fen:"5R2/4r1r1/1p4k1/p1pB2Bp/P1P4K/2P1p3/1P6/8 w - - 1 0"},{sol:"Qf7+",black:!1,fen:"2bq1rk1/r1p1b1pn/p2pP1Np/1p1B1Q2/4P3/2P4P/PP3PP1/R1B1R1K1 w - - 1 0"},{sol:"Bb6+",black:!1,fen:"1nbk1b1r/1r6/p2P2pp/1B2PpN1/2p2P2/2P1B3/7P/R3K2R w - - 1 0"},{sol:"Rxg6+",black:!1,fen:"3r2k1/p1p2p2/bp2p1nQ/4PB1P/2pr3q/6R1/PP3PP1/3R2K1 w - - 1 0"},{sol:"Qh8+",black:!1,fen:"6k1/3r3p/p1q3pP/1p1p4/3Q4/4R1P1/P4PK1/8 w - - 1 0"},{sol:"Rxh3+",black:!0,fen:"2k4r/ppp5/4bqp1/3p2Q1/6n1/2NB3P/PPP2bP1/R1B2R1K b - - 0 1"},{sol:"Rxh7+",black:!1,fen:"r2r3k/b1qn2pp/1p2Bp2/2p2P2/PP1pQ3/7R/1B3PPP/5RK1 w - - 1 0"},{sol:"Nf5+",black:!1,fen:"8/1p3Qb1/p5pk/P1p1p1p1/1P2P1P1/2P1N2n/5P1P/4qB1K w - - 1 0"},{sol:"Rxf7+",black:!1,fen:"3rrk2/2p2pR1/p4n2/1p1PpP2/2p2q1P/3P1BQ1/PPP5/6RK w - - 1 0"},{sol:"Rf7+",black:!1,fen:"r4kr1/1b2R1n1/pq4p1/4Q3/1p4P1/5P2/PPP4P/1K2R3 w - - 1 0"},{sol:"f5+",black:!1,fen:"3n4/1R6/p5k1/2B5/1P3PK1/r7/8/8 w - - 1 0"},{sol:"Rh8+",black:!1,fen:"1r3rk1/1pnnq1bR/p1pp2B1/P2P1p2/1PP1pP2/2B3P1/5PK1/2Q4R w - - 1 0"},{sol:"Qxf2+",black:!0,fen:"b3r1k1/5ppp/p2p4/p4qN1/Q2b4/6R1/5PPP/5RK1 b - - 0 1"},{sol:"Qxf8+",black:!1,fen:"5r1k/pp1n1p1p/5n1Q/3p1pN1/3P4/1P4RP/P1r1qPP1/R5K1 w - - 1 0"},{sol:"Re8+",black:!1,fen:"5k2/p3Rr2/1p4pp/q4p2/1nbQ1P2/6P1/5N1P/3R2K1 w - - 1 0"},{sol:"Rxf6+",black:!1,fen:"4rk2/pp2N1bQ/5p2/8/2q5/P7/3r2PP/4RR1K w - - 1 0"},{sol:"Qh3+",black:!0,fen:"r4rk1/4bp2/1Bppq1p1/4p1n1/2P1Pn2/3P2N1/P2Q1PBK/1R5R b - - 0 1"},{sol:"Nf3",black:!1,fen:"2q1r3/4pR2/3rQ1pk/p1pnN2p/Pn5B/8/1P4PP/3R3K w - - 1 0"},{sol:"Qxe6+",black:!1,fen:"q2br1k1/1b4pp/3Bp3/p6n/1p3R2/3B1N2/PP2QPPP/6K1 w - - 1 0"},{sol:"Rg8+",black:!1,fen:"5r1k/p2n1p1p/5P1N/1p1p4/2pP3P/8/PP4RK/8 w - - 1 0"},{sol:"Qe8+",black:!1,fen:"8/7p/5pk1/3n2pq/3N1nR1/1P3P2/P6P/4QK2 w - - 1 0 "},{sol:"Rxf5+",black:!1,fen:"2Q5/pp2rk1p/3p2pq/2bP1r2/5RR1/1P2P3/PB3P1P/7K w - - 1 0"},{sol:"Qxh2+",black:!0,fen:"4r1k1/pQ3pp1/7p/4q3/4r3/P7/1P2nPPP/2BR1R1K b - - 0 1"},{sol:"Rxf8+",black:!1,fen:"3R1rk1/1pp2pp1/1p6/8/8/P7/1q4BP/3Q2K1 w - - 1 0"},{sol:"Rxg6+",black:!1,fen:"6k1/5p2/p3bRpQ/4q3/2r3P1/6NP/P1p2R1K/1r6 w - - 1 0"},{sol:"Bf2+",black:!0,fen:"rnb1k2r/pp3ppp/1qp2B2/2bPp3/4P3/2N5/PPP3PP/R2QKBNR b KQkq - 0 1"},{sol:"Qxc3+",black:!0,fen:"r2r4/pp2ppkp/2P3p1/q1p5/4PQ2/2P2b2/P4PPP/2R1KB1R b - - 0 1"},{sol:"Nd4+",black:!1,fen:"8/8/2N1P3/1P6/4Q3/4b2K/4k3/4q3 w - - 1 0"},{sol:"Qxh3+",black:!0,fen:"1b2r1k1/3n2p1/p3p2p/1p3r2/3PNp1q/3BnP1P/PP1BQP1K/R6R b - - 0 1"},{sol:"Nf4+",black:!1,fen:"5b2/q4r1p/p3k1p1/2pNppP1/1P6/3Q1P1P/P7/1K1R4 w - - 1 0"},{sol:"Qg2+",black:!0,fen:"8/2p5/Q4pk1/p1Pp4/5n2/PP3PK1/2q4N/8 b - - 0 1"},{sol:"Qxh7+",black:!1,fen:"r3nr1k/1b2Nppp/pn6/q3p1P1/P1p4Q/R7/1P2PP1P/2B2RK1 w - - 1 0"},{sol:"Qh2+",black:!0,fen:"r1b3nr/ppp1kB1p/3p4/8/3PPBnb/1Q3p2/PPP2q2/RN4RK b - - 0 1"},{sol:"Qh1+",black:!0,fen:"q5k1/5rb1/r6p/1Np1n1p1/3p1Pn1/1N4P1/PP5P/R1BQRK2 b - - 0 1"},{sol:"Qxh3+",black:!0,fen:"8/2P2pk1/3Q4/4pq2/7p/6pP/2r3P1/6RK b - - 0 1"},{sol:"Rxg7+",black:!1,fen:"8/p1R3p1/4p1kn/3p3N/3Pr2P/6P1/PP3K2/8 w - - 1 0"},{sol:"Qd8+",black:!1,fen:"r1b1k2r/1p2bppp/p3q3/1p2p1B1/8/3Q1N2/PPP2PPP/3R1RK1 w kq - 1 0"},{sol:"Rd8+",black:!1,fen:"rn2k2r/pp2b2p/2p1Q1p1/5B2/1q3B2/8/PPP3PP/3RR2K w kq - 1 0"},{sol:"Rd8+",black:!1,fen:"r1b1k2r/pp3ppp/2n1p3/6B1/2p1q3/Q7/PP2PPPP/3RKB1R w Kkq - 1 0"},{sol:"Nd5+",black:!0,fen:"2k4r/1pp1n1pp/p1pr1pb1/4p3/Nq2P1P1/1P1PKN1P/2P1QP2/3R3R b - - 0 1"},{sol:"Rc8+",black:!1,fen:"5k1r/4npp1/p3p2p/3nP2P/3P3Q/3N4/qB2KPP1/2R5 w - - 1 0"},{sol:"g5+",black:!1,fen:"2r5/2R5/3npkpp/3bN3/p4PP1/4K3/P1B4P/8 w - - 1 0"},{sol:"Rh4+",black:!1,fen:"5r1r/1p6/p1p2p2/2P1bPpk/4R3/6PP/P2B2K1/3R4 w - - 1 0"},{sol:"Ng6+",black:!1,fen:"5qrk/5p1n/pp3p1Q/2pPp3/2P1P1rN/2P4R/P5P1/2B3K1 w - - 1 0"},{sol:"Qxe6+",black:!1,fen:"3rk2r/p1qn1pp1/1p2pb1p/7P/2Pp4/B1P1QP2/P1B1KP2/3R3R w k - 1 0"},{sol:"Bf7+",black:!1,fen:"r3kb1r/q5pp/p1p1Bnn1/1p2Q3/8/2N2PBP/PPP5/2KRR3 w - - 1 0"},{sol:"Ne7+",black:!1,fen:"rq3rk1/3n1pp1/pb4n1/3N2P1/1pB1QP2/4B3/PP6/2KR3R w - - 1 0"},{sol:"Nh8+",black:!1,fen:"3q2r1/p2b1k2/1pnBp1N1/3p1pQP/6P1/5R2/2r2P2/4RK2 w - - 1 0"},{sol:"Rxf1+",black:!0,fen:"8/p4pk1/6p1/3R4/3nqN1P/2Q3P1/5P2/3r1BK1 b - - 0 1"},{sol:"Bxg6+",black:!1,fen:"2r5/3nbkp1/2q1p1p1/1p1n2P1/3P4/2p1P1NQ/1P1B1P2/1B4KR w - - 1 0"},{sol:"Nxf7+",black:!1,fen:"r1bq1rkb/ppp2n1p/5n2/4p1NN/5pQ1/1BP5/PP3PPP/R1B1K2R w KQ - 1 0"},{sol:"Re5+",black:!1,fen:"4r3/1b2r2p/p2p2k1/P1pP1R1N/3b4/1P1B3P/3n2P1/5R1K w - - 1 0"},{sol:"Rf8+",black:!1,fen:"2b3k1/1p5p/2p1n1pQ/3qB3/3P4/3B3P/r5P1/5RK1 w - - 1 0"},{sol:"Rxe6+",black:!1,fen:"3rk2r/1pR2p2/b2BpPp1/p2p4/8/1P6/P4PPP/4R1K1 w - - 1 0"},{sol:"Rxh7+",black:!1,fen:"4nr1k/1bq3pp/5p2/1p2pNQ1/3pP3/1B1P3R/1PP3PP/6K1 w - - 1 0"},{sol:"Nxb7+",black:!1,fen:"r1bk1r2/pp1n2pp/3NQ3/1P6/8/2n2PB1/q1B3PP/3R1RK1 w - - 1 0"},{sol:"Qg8+",black:!1,fen:"1rb2k2/pp3ppQ/7q/2p1n1N1/2p5/2N5/P3BP1P/K2R4 w - - 1 0"},{sol:"Qxh6+",black:!1,fen:"4r3/5p1k/2p1nBpp/q2p4/P1bP4/2P1R2Q/2B2PPP/6K1 w - - 1 0"},{sol:"Ra1+",black:!0,fen:"2r3k1/6pp/4pp2/3bp3/1Pq5/3R1P2/r1PQ2PP/1K1RN3 b - - 0 1"},{sol:"Rh8+",black:!1,fen:"6R1/5r1k/p6b/1pB1p2q/1P6/5rQP/5P1K/6R1 w - - 1 0"},{sol:"Bg6+",black:!1,fen:"r5q1/pp1b1kr1/2p2p2/2Q5/2PpB3/1P4NP/P4P2/4RK2 w - - 1 0"},{sol:"Qd8+",black:!1,fen:"2r1kb1r/p2b1ppp/3p4/Q2Np1B1/4P2P/8/PP4P1/4KB1n w k - 1 0"},{sol:"Qh5+",black:!0,fen:"5rk1/ppp2pbp/3p2p1/1q6/4r1P1/1NP1B3/PP2nPP1/R2QR2K b - - 0 1"},{sol:"Qxg6+",black:!1,fen:"r2q1bk1/5n1p/2p3pP/p7/3Br3/1P3PQR/P5P1/2KR4 w - - 1 0"},{sol:"Qxa3+",black:!0,fen:"2b5/k2n1p2/p2q4/5R1B/2p4P/P1b5/KPQ1R3/6r1 b - - 0 1"},{sol:"Bg6+",black:!1,fen:"4Q3/r4ppk/3p3p/4pPbB/2P1P3/1q5P/6P1/3R3K w - - 1 0"},{sol:"Nf4+",black:!1,fen:"rn5r/p4pp1/3n3p/qB1k4/3P4/4P3/PP2NPPP/R4K1R w - - 1 0"},{sol:"Qxc3+",black:!0,fen:"r2r2k1/pp2bppp/2p1p3/4qb1P/8/1BP1BQ2/PP3PP1/2KR3R b - - 0 1"},{sol:"Ne6+",black:!1,fen:"5R2/6k1/3K4/p6r/1p1NB3/1P4r1/8/8 w - - 1 0"},{sol:"Nxf7+",black:!1,fen:"5r2/1qp2pp1/bnpk3p/4NQ2/2P5/1P5P/5PP1/4R1K1 w - - 1 0"},{sol:"Rxd8+",black:!1,fen:"3nk1r1/1pq4p/p3PQpB/5p2/2r5/8/P4PPP/3RR1K1 w - - 1 0"},{sol:"Ng3+",black:!0,fen:"5rk1/5ppp/pq6/1r3n2/2Q2P2/1P1N4/P1P1R1PP/4R2K b - - 0 1"},{sol:"Re8+",black:!1,fen:"1k3r2/4R1Q1/p2q1r2/8/2p1Bb2/5R2/pP5P/K7 w - - 1 0"},{sol:"Bxf3+",black:!0,fen:"2k1r2r/ppp3p1/3b4/3pq2b/7p/2NP1P2/PPP2Q1P/R5RK b - - 0 1"},{sol:"Rh2+",black:!0,fen:"3k4/1p3Bp1/p5r1/2b5/P3P1N1/5Pp1/1P1r4/2R4K b - - 0 1"},{sol:"Re8+",black:!1,fen:"6k1/1r4np/pp1p1R1B/2pP2p1/P1P5/1n5P/6P1/4R2K w - - 1 0"},{sol:"Bh6",black:!1,fen:"8/p2q1p1k/4pQp1/1p1b2Bp/7P/8/5PP1/6K1 w - - 1 0"},{sol:"Qb5+",black:!1,fen:"r7/6R1/ppkqrn1B/2pp3p/P6n/2N5/8/1Q1R1K2 w - - 1 0"},{sol:"Qh6+",black:!1,fen:"r2q1k1r/3bnp2/p1n1pNp1/3pP1Qp/Pp1P4/2PB4/5PPP/R1B2RK1 w - - 1 0"},{sol:"Rxh7+",black:!1,fen:"6rk/1r2pR1p/3pP1pB/2p1p3/P6Q/P1q3P1/7P/5BK1 w - - 1 0"},{sol:"Rxf7+",black:!1,fen:"1r2Rr2/3P1p1k/5Rpp/qp6/2pQ4/7P/5PPK/8 w - - 1 0"},{sol:"Rxf8+",black:!1,fen:"r4rk1/5Rbp/p1qN2p1/P1n1P3/8/1Q3N1P/5PP1/5RK1 w - - 1 0"},{sol:"Rh6",black:!1,fen:"7R/3r4/8/3pkp1p/5N1P/b3PK2/5P2/8 w - - 1 0"},{sol:"Bf5+",black:!1,fen:"8/1R3p2/3rk2p/p2p2p1/P2P2P1/3B1PN1/5K1P/r7 w - - 1 0"},{sol:"Rxh6+",black:!1,fen:"8/5prk/p5rb/P3N2R/1p1PQ2p/7P/1P3RPq/5K2 w - - 1 0"},{sol:"Qe6+",black:!1,fen:"rqb2bk1/3n2pr/p1pp2Qp/1p6/3BP2N/2N4P/PPP3P1/2KR3R w - - 1 0"},{sol:"Rxa7+",black:!1,fen:"1Q6/r3R2p/k2p2pP/p1q5/Pp4P1/5P2/1PP3K1/8 w - - 1 0"},{sol:"Rg2+",black:!0,fen:"N5k1/5p2/6p1/6Pp/4bb1P/P5r1/7K/2R3R1 b - - 0 1"},{sol:"Qg4+",black:!1,fen:"3R4/3Q1p2/q1rn2kp/4p3/4P3/2N3P1/5P1P/6K1 w - - 1 0"},{sol:"Qh1+",black:!0,fen:"6R1/2k2P2/1n5r/3p1p2/3P3b/1QP2p1q/3R4/6K1 b - - 0 1"},{sol:"g4+",black:!1,fen:"5r2/7p/3R4/p3pk2/1p2N2p/1P2BP2/6PK/4r3 w - - 1 0"},{sol:"Qc6+",black:!1,fen:"7r/3kbp1p/1Q3R2/3p3q/p2P3B/1P5K/P6P/8 w - - 1 0"},{sol:"Rg8+",black:!1,fen:"r4r1k/p2p3p/bp1Np3/4P3/2P2nR1/3B1q2/P1PQ4/2K3R1 w - - 1 0"},{sol:"Bf6+",black:!1,fen:"1r3b2/1bp2pkp/p1q4N/1p1n1pBn/8/2P3QP/PPB2PP1/4R1K1 w - - 1 0"},{sol:"Qc6",black:!1,fen:"8/k1p1q3/Pp5Q/4p3/2P1P2p/3P4/4K3/8 w - - 1 0"},{sol:"f2+",black:!0,fen:"8/pp2k3/7r/2P1p1p1/4P3/5pq1/2R3N1/1R3BK1 b - - 0 1"},{sol:"Ne2+",black:!0,fen:"7k/p5b1/1p4Bp/2q1p1p1/1P1n1r2/P2Q2N1/6P1/3R2K1 b - - 0 1"},{sol:"Rh6+",black:!1,fen:"8/p4q2/6k1/1p3rP1/3Q4/8/PPP5/K6R w - - 1 0"},{sol:"Rc1+",black:!0,fen:"2r3k1/1p3ppp/p3p3/7P/P4P2/1R2QbP1/6q1/1B2K3 b - - 0 1"},{sol:"Ne4+",black:!0,fen:"6r1/p6k/Bp3n1r/2pP1P2/P4q1P/2P2Q2/5K2/2R2R2 b - - 0 1"},{sol:"Ng4",black:!0,fen:"8/8/8/5P2/R2p1N2/4n1r1/PP6/5k1K b - - 0 1"},{sol:"Rf7+",black:!1,fen:"r7/4k1Pp/2n1p2P/q2pp1N1/1p4P1/1P6/P4R2/1K1R4 w - - 1 0"},{sol:"Qd8+",black:!1,fen:"2Q5/1p3p2/3b1k1p/3Pp3/4B1R1/4q1P1/r4PK1/8 w - - 1 0"},{sol:"Rxh6+",black:!1,fen:"8/5Qpk/p1R4p/P2p4/6P1/2rq4/5PPK/8 w - - 1 0"},{sol:"Qg7+",black:!1,fen:"3n1k2/5p2/2p1bb2/1p2pN1q/1P2P3/2P3Q1/5PB1/3R2K1 w - - 1 0"},{sol:"Be5+",black:!1,fen:"rnR5/p3p1kp/4p1pn/bpP5/5BP1/5N1P/2P2P2/2K5 w - - 1 0"},{sol:"Rxh6+",black:!1,fen:"6rk/6p1/4R2p/p2pP2b/5Q2/2P2PB1/1q4PK/8 w - - 1 0"},{sol:"Re4+",black:!0,fen:"1Q6/8/3p1pk1/2pP4/1p3K2/5R2/5qP1/4r3 b - - 0 1"},{sol:"Nf7+",black:!1,fen:"r4r1k/pp5p/n5p1/1q2Np1n/1Pb5/6P1/PQ2PPBP/1RB3K1 w - - 1 0"},{sol:"Rxh6+",black:!1,fen:"7k/p1p2bp1/3q1N1p/4rP2/4pQ2/2P4R/P2r2PP/4R2K w - - 1 0"},{sol:"Rf1+",black:!0,fen:"7k/2p3pp/p7/1p1p4/PP2pr2/B1P3qP/4N1B1/R1Qn2K1 b - - 0 1"},{sol:"Rg8+",black:!1,fen:"r1b2k2/1p1p1r1B/n4p2/p1qPp3/2P4N/4P1R1/PPQ3PP/R5K1 w - - 1 0"}],S={props:{chessPuzzle:{type:Number,required:!0},currChessGuess:{type:Array,required:!0}},computed:{blackToMove:function(){return B[this.chessPuzzle].black}}},A=(r(1114),Object(N.a)(S,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"chess-wrapper"},[e.currChessGuess.length>0?t("div",{staticClass:"guesses"},e._l(e.currChessGuess,(function(r){return t("div",{key:r},[t("img",{staticClass:"guess-icon",attrs:{src:"/password-game/error.svg"}}),e._v(e._s(r)+"\n ")])})),0):e._e(),e._v(" "),t("img",{staticClass:"chess-img",attrs:{src:"/password-game/chess/puzzle".concat(e.chessPuzzle,".svg")}}),e._v(" "),t("div",{staticClass:"move"},[e._v("\n "+e._s(e.blackToMove?"Black to move":"White to move")+"\n ")])])}),[],!1,null,"f5286d7c",null).exports),K={data:function(){return{letters:"ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),selected:[],sacraficeMade:!1}},methods:{makeSacrifice:function(){this.sacraficeMade||(this.sacraficeMade=!0,this.$emit("sacrafice",this.selected))},toggle:function(e){this.selected.includes(e)?this.selected=this.selected.filter((function(t){return t!==e})):(this.selected.length<2||this.selected.pop(),this.selected.push(e))}}},D=(r(1116),Object(N.a)(K,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"sacrafice-area",class:{"sacrafice-made":e.sacraficeMade}},[t("div",{staticClass:"letters"},e._l(e.letters,(function(r){return t("button",{key:r,staticClass:"letter",class:{"letter-selected":e.selected.includes(r)},attrs:{disabled:e.sacraficeMade},on:{click:function(t){return e.toggle(r)}}},[e._v("\n "+e._s(r)+"\n ")])})),0),e._v(" "),t("button",{staticClass:"sacrafice-btn",attrs:{disabled:2!==e.selected.length||e.sacraficeMade},on:{click:e.makeSacrifice}},[t("img",{staticClass:"sacrafice-icon",attrs:{src:"/password-game/fire.svg"}}),e._v(" Sacrifice\n ")])])}),[],!1,null,"5ed0912a",null).exports),E={props:{randomColor:{type:String,required:!0}}},M=(r(1118),Object(N.a)(E,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"rand-color",style:{background:e.randomColor}},[t("img",{staticClass:"refresh",attrs:{src:"/password-game/refresh.svg"},on:{click:function(t){return e.$emit("refreshColor")}}})])}),[],!1,null,"79833e4e",null).exports),I={props:{place:{type:Object,required:!0},currPlaceGuess:{type:Array,required:!0}},computed:{isCorrect:function(){return console.log(this.currPlaceGuess,this.place.title),this.currPlaceGuess.includes(this.place.title)}}},z=(r(1120),Object(N.a)(I,(function(){var e=this,t=e._self._c;return t("div",[e.currPlaceGuess.length>0?t("div",{staticClass:"guesses"},e._l(e.currPlaceGuess,(function(r){return t("div",{key:r},[t("img",{staticClass:"guess-icon",attrs:{src:"/password-game/error.svg"}}),e._v(e._s(r)+"\n ")])})),0):e._e(),e._v(" "),t("div",{staticClass:"geo-wrapper"},[t("iframe",{staticClass:"geo",attrs:{"data-v-666b8394":"",src:e.place.embed,width:"100%",height:"100%"}})])])}),[],!1,null,"490deea8",null).exports),T={props:{passwordStrength:{type:Number,required:!0}}},L=(r(1122),Object(N.a)(T,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"strength"},[t("div",{staticClass:"bars"},[t("div",{staticClass:"bar bar-red active"}),e._v(" "),t("div",{staticClass:"bar bar-orange",class:{active:e.passwordStrength>=1}}),e._v(" "),t("div",{staticClass:"bar bar-yellow",class:{active:e.passwordStrength>=2}}),e._v(" "),t("div",{staticClass:"bar bar-green",class:{active:e.passwordStrength>=3}})])])}),[],!1,null,"c15cedce",null).exports),j=(r(1124),Object(N.a)({},(function(){this._self._c;return this._m(0)}),[function(){var e=this,t=e._self._c;return t("div",{staticClass:"sponsors"},[t("img",{staticClass:"sponsor pepsi",attrs:{src:"/password-game/sponsors/pepsi.svg"}}),e._v(" "),t("img",{staticClass:"sponsor starbucks",attrs:{src:"/password-game/sponsors/starbucks.svg"}}),e._v(" "),t("img",{staticClass:"sponsor shell",attrs:{src:"/password-game/sponsors/shell.svg"}})])}],!1,null,"290ad9f2",null).exports),O={props:{currYoutubeId:{type:String,required:!0}}},V=(r(1126),r(1128),{components:{Captcha:_,ChessPuzzle:A,Sacrafice:D,RandomColor:M,Geo:z,Strength:L,Sponsors:j,YoutubePlayer:Object(N.a)(O,(function(){var e=this._self._c;return e("div",{class:{active:""!==this.currYoutubeId},attrs:{id:"youtube-player-wrapper"}},[e("div",{key:"youtube-player",attrs:{id:"youtube-player"}})])}),[],!1,null,"68e67607",null).exports},data:function(){return{showNo:!0}},props:{ruleNum:{type:Number,required:!0},rule:{type:Object,required:!0},hasError:{type:Boolean,required:!1,default:!1},captcha:{type:String,required:!0},chessPuzzle:{type:Number,required:!0},randomColor:{type:String,required:!0},passwordStrength:{type:Number,required:!0},currYoutubeId:{type:String,required:!0},randomYoutubeDuration:{type:Number,required:!0},currPlace:{type:Object,required:!0},currPlaceGuess:{type:Array,required:!0},currChessGuess:{type:Array,required:!0},numErrors:{type:Number,required:!0}}}),G=(r(1130),Object(N.a)(V,(function(){var e,t=this,r=t._self._c;return r("div",{staticClass:"rule",class:(e={"rule-error":t.hasError},Object(Q.a)(e,t.rule.id,!0),Object(Q.a)(e,"final-hide","final"===t.rule.id&&t.numErrors>1),e)},[r("div",{staticClass:"rule-inner"},[r("span",{staticClass:"rule-top"},[r("img",{staticClass:"rule-icon",attrs:{src:"/password-game/".concat(t.hasError?"error":"checkmark",".svg")}}),t._v("\n Rule\n "+t._s(t.ruleNum)+"\n ")]),t._v(" "),r("div",{staticClass:"rule-desc"},[r("div",{domProps:{innerHTML:t._s("function"==typeof t.rule.desc?t.rule.desc({randomYoutubeDuration:t.randomYoutubeDuration}):t.rule.desc)}}),t._v(" "),"captcha"===t.rule.id?r("Captcha",{attrs:{captcha:t.captcha},on:{captchaRefresh:function(e){return t.$emit("captchaRefresh")}}}):t._e(),t._v(" "),"chess"===t.rule.id?r("ChessPuzzle",{attrs:{chessPuzzle:t.chessPuzzle,currChessGuess:t.currChessGuess}}):t._e(),t._v(" "),"sacrafice"===t.rule.id?r("Sacrafice",{on:{sacrafice:function(e){return t.$emit("sacrafice",e)}}}):t._e(),t._v(" "),"hex"===t.rule.id?r("RandomColor",{attrs:{randomColor:t.randomColor},on:{refreshColor:function(e){return t.$emit("refreshColor")}}}):t._e(),t._v(" "),"geo"===t.rule.id?r("Geo",{attrs:{place:t.currPlace,currPlaceGuess:t.currPlaceGuess}}):t._e(),t._v(" "),"strength"===t.rule.id?r("Strength",{attrs:{passwordStrength:t.passwordStrength}}):t._e(),t._v(" "),"sponsors"===t.rule.id?r("Sponsors"):t._e(),t._v(" "),"youtube"===t.rule.id?r("YoutubePlayer",{attrs:{currYoutubeId:t.currYoutubeId}}):t._e(),t._v(" "),"affirmation"===t.rule.id?r("div",{staticClass:"affirmation-list"},[t._m(0)]):t._e(),t._v(" "),"final"===t.rule.id?r("div",{staticClass:"final-password"},[r("button",{on:{click:function(e){return t.$emit("done")}}},[t._v("Yes")]),t._v(" "),t.showNo?r("button",{on:{click:function(e){t.showNo=!1}}},[t._v("No")]):t._e()]):t._e()],1)])])}),[function(){var e=this,t=e._self._c;return t("ul",[t("li",[e._v("I am loved")]),e._v(" "),t("li",[e._v("I am worthy")]),e._v(" "),t("li",[e._v("I am enough")])])}],!1,null,"520e375b",null).exports),Y=["2b827","2cg58","2g783","2x7bm","2ycn8","3bd8f","3bfnd","3den6","3ebnn","3nw7w","3ny45","3p4nn","3pe4g","3w2bw","4cn7b","4dgf7","5n245","5ng6e","6dd2y","6e6pn","6gnm3","6p7gx","6xxdx","7gmf3","7wnpm","7wyp4","7xd5m","7y2x4","8c23f","8gecm","8n5pn","8pfxx","8w754","8y63f","25egp","28x47","33p4e","34pcn","44xe8","47e4p","53wb8","58b5m","64m82","66wp5","73mnx","74eyg","75pfw","77n6g","88y52","264m5","387g2","573d8","52447","b5nmm","b6f2p","b28g8","b84xc","bbymy","bdg84","be3bp","bgd4m","bnc2f","bny4w","bw6n6","bw44w","c2fb7","c2pg6","c86md","cdcb3","cen55","cfc56","cffp4","cgcgb","cnwyc","cpc8c","d6fcn","d22bd","d378n","dbex3","dbfen","dd5w5","de45x","dn5df","dn26n","dpbyd","e7x45","ebcbx","ec6pm","ecd4w","en4n4","f6ne5","f75cx","fc6xb","g78gn","gc277","gfp54","ggd7m","gnc3n","gny6b","gw53m","m67b3","m3588","mgw3n","mm3nn","mp7wp","myc3c","n2by7","n3ffn","n373n","nbcgb","nbf8m","nbfx5","nbp3e","nc4yg","ndyfe","nf8b8","ng2gw","nnfx3","nnn5p","nnn57","ny8np","p2m6n","p4pde","pcede","pdyc8","pf5ng","pm363","pmf5w","w8f36","w52fn","wc2bd","wce5n","wg625","x3fwf","x4f7g","x4gg5","x6b5m","x38fn","xbcbx","xe8xm","xgcxy","xngxc","y4n6m","y5dpp","y5w28","y7mnm","y7x8p","yd755","yf424"],U=r(1277),W=r(1132),J=r(1133),Z=r(1134),H=r(395),X=r(1279),$=r(307),ee=["0px","1px","4px","9px","12px","16px","25px","28px","32px","36px","42px","49px","64px","81px"],te=$.b.create({name:"fontSize",addOptions:function(){return{types:["textStyle"],getStyle:function(e){return"font-size: ".concat(e)}}},addGlobalAttributes:function(){var e=this;return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:function(element){return element.style.fontSize.replace(/['"]+/g,"")},renderHTML:function(t){return t.fontSize?ee.includes(t.fontSize)?{style:e.options.getStyle(t.fontSize||"28px")}:(t.fontSize="28px",{style:e.options.getStyle("28px")}):{style:e.options.getStyle("28px")}}}}}]},addCommands:function(){return{setFontSize:function(e){return function(t){return(0,t.chain)().setMark("textStyle",{fontSize:e}).run()}},unsetFontSize:function(){return function(e){return(0,e.chain)().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()}}}}}),re=["Monospace","Comic Sans","Wingdings","Times New Roman"],ae=$.b.create({name:"fontFamily",addOptions:function(){return{types:["textStyle"]}},addGlobalAttributes:function(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:function(element){var e;return null===(e=element.style.fontFamily)||void 0===e?void 0:e.replace(/['"]+/g,"")},renderHTML:function(e){return e.fontFamily?re.includes(e.fontFamily)?{style:"font-family: ".concat(e.fontFamily)}:(e.fontFamily="Monospace",{style:"font-family: Monospace"}):{style:"font-family: Monospace"}}}}}]},addCommands:function(){return{setFontFamily:function(e){return function(t){return(0,t.chain)().setMark("textStyle",{fontFamily:e}).run()}},unsetFontFamily:function(){return function(e){return(0,e.chain)().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}}}}}),oe=r(1135),ne=r(1136),se=[{title:"Australia",link:"https://www.google.com/maps/@-25.350684,131.0463223,3a,75y,264.26h,94.34t/data=!3m8!1e1!3m6!1sAF1QipN34Kq9DNXau2fsEX2pXDLZfCICnWaQPku-7FQu!2e10!3e11!6shttps:%2F%2Flh5.googleusercontent.com%2Fp%2FAF1QipN34Kq9DNXau2fsEX2pXDLZfCICnWaQPku-7FQu%3Dw203-h100-k-no-pi-12.154341-ya290.7717-ro-0-fo100!7i10600!8i5300?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332510022!6m8!1m7!1sCAoSLEFGMVFpcE4zNEtxOUROWGF1MmZzRVgycFhETFpmQ0lDbldhUVBrdS03RlF1!2m2!1d-25.35068396746521!2d131.0463222711639!3f264.26!4f4.340000000000003!5f0.7820865974627469"},{title:"Belarus",link:"https://www.google.com/maps/place/Muzey+Istorii+Teatral'noy+I+Muzykal'noy+Kul'tury/@53.9054798,27.5601444,3a,90y,49.35h,96.51t/data=!3m6!1e1!3m4!1ss88rdBq5UiYKvp6ojwA7_Q!2e0!7i13312!8i6656!4m17!1m9!3m8!1s0x46da2584e2ad4881:0xa1d181ec8c10!2sBelarus!3b1!8m2!3d53.709807!4d27.953389!10e5!16zL20vMDE2M3Y!3m6!1s0x46dbcfeab3ddf76b:0x4102441cff9e1bc1!8m2!3d53.9051914!4d27.5595092!10e5!16s%2Fg%2F1hc54q1j2?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332520258!6m8!1m7!1ss88rdBq5UiYKvp6ojwA7_Q!2m2!1d53.90547982613528!2d27.56014437433606!3f49.35!4f6.510000000000005!5f0.4000000000000002"},{title:"Belgium",link:"https://www.google.com/maps/@51.2180796,4.4150183,3a,75y,286.45h,100.66t/data=!3m6!1e1!3m4!1srkFY-BkTJ0-2z2hWjwMHLg!2e0!7i13312!8i6656?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332523961!6m8!1m7!1srkFY-BkTJ0-2z2hWjwMHLg!2m2!1d51.21807961391364!2d4.41501826373772!3f286.45!4f10.659999999999997!5f0.7820865974627469"},{title:"Bulgaria",link:"https://www.google.com/maps/@42.1494591,24.7477184,3a,90y,296.84h,97.19t/data=!3m7!1e1!3m5!1sncjaflFhux3cCQ9oVdgzTg!2e0!6shttps:%2F%2Fstreetviewpixels-pa.googleapis.com%2Fv1%2Fthumbnail%3Fpanoid%3DncjaflFhux3cCQ9oVdgzTg%26cb_client%3Dmaps_sv.tactile.gps%26w%3D203%26h%3D100%26yaw%3D359.54242%26pitch%3D0%26thumbfov%3D100!7i13312!8i6656?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332538942!6m8!1m7!1sncjaflFhux3cCQ9oVdgzTg!2m2!1d42.14945905626361!2d24.74771841789687!3f296.84!4f7.189999999999998!5f0.4000000000000002"},{title:"Cambodia",link:"https://www.google.com/maps/@11.5566079,104.9353968,3a,90y,258.58h,101.78t/data=!3m8!1e1!3m6!1sAF1QipMzT_CJp2TIuk4O2ke9ghUioKfm7ccGBuSJk7ub!2e10!3e11!6shttps:%2F%2Flh5.googleusercontent.com%2Fp%2FAF1QipMzT_CJp2TIuk4O2ke9ghUioKfm7ccGBuSJk7ub%3Dw203-h100-k-no-pi-0-ya152.46721-ro-0-fo100!7i6080!8i3040?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332542719!6m8!1m7!1sCAoSLEFGMVFpcE16VF9DSnAyVEl1azRPMmtlOWdoVWlvS2ZtN2NjR0J1U0prN3Vi!2m2!1d11.5566079!2d104.9353968!3f258.58!4f11.780000000000001!5f0.4000000000000002"},{title:"Canada",link:"https://www.google.com/maps/@60.1872492,-134.6889013,3a,75y,125.82h,79.67t/data=!3m8!1e1!3m6!1sAF1QipNvWQOsqWlXPBfQjb3nZyw7BLWeyWUgKrSA8DIl!2e10!3e11!6shttps:%2F%2Flh5.googleusercontent.com%2Fp%2FAF1QipNvWQOsqWlXPBfQjb3nZyw7BLWeyWUgKrSA8DIl%3Dw203-h100-k-no-pi-0.112540185-ya59.915157-ro-0-fo100!7i13970!8i6985?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332551821!6m8!1m7!1sCAoSLEFGMVFpcE52V1FPc3FXbFhQQmZRamIzblp5dzdCTFdleVdVZ0tyU0E4REls!2m2!1d60.18724916!2d-134.6889013!3f125.82!4f-10.329999999999998!5f0.7820865974627469"},{title:"Chile",link:"https://www.google.com/maps/@-42.3318332,-73.3751597,2a,75y,350.28h,110.42t/data=!3m6!1e1!3m4!1sqIYR4B95XigAAAQpm86PUg!2e0!7i13312!8i6656?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332554989!6m8!1m7!1sqIYR4B95XigAAAQpm86PUg!2m2!1d-42.33183318859179!2d-73.37515973422785!3f350.28!4f20.42!5f0.7820865974627469"},{title:"Colombia",link:"https://www.google.com/maps/@4.5985391,-74.0681066,3a,75y,280.78h,87.12t/data=!3m7!1e1!3m5!1sZbG88ECu5M1YVxcm7pp78A!2e0!6shttps:%2F%2Fstreetviewpixels-pa.googleapis.com%2Fv1%2Fthumbnail%3Fpanoid%3DZbG88ECu5M1YVxcm7pp78A%26cb_client%3Dmaps_sv.tactile.gps%26w%3D203%26h%3D100%26yaw%3D343.3648%26pitch%3D0%26thumbfov%3D100!7i13312!8i6656?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332561586!6m8!1m7!1sZbG88ECu5M1YVxcm7pp78A!2m2!1d4.598539130476504!2d-74.06810659286658!3f280.78!4f-2.8799999999999955!5f0.7820865974627469"},{title:"Croatia",link:"https://www.google.com/maps/@45.0819259,13.6347638,3a,90y,95.03h,90.52t/data=!3m8!1e1!3m6!1sAF1QipOg1gfcv3mZuo3c1EL38zFiBOosvH7a-Luk2tni!2e10!3e11!6shttps:%2F%2Flh5.googleusercontent.com%2Fp%2FAF1QipOg1gfcv3mZuo3c1EL38zFiBOosvH7a-Luk2tni%3Dw203-h100-k-no-pi-0-ya47.37348-ro-0-fo100!7i7500!8i3750?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332568377!6m8!1m7!1sCAoSLEFGMVFpcE9nMWdmY3YzbVp1bzNjMUVMMzh6RmlCT29zdkg3YS1MdWsydG5p!2m2!1d45.08192591163372!2d13.63476375882529!3f95.03!4f0.519999999999996!5f0.4000000000000002"},{title:"Denmark",link:"https://www.google.com/maps/@56.6525516,8.5262593,3a,75y,69.18h,93.33t/data=!3m6!1e1!3m4!1sJo2m04ymc8xFmGFYNH2Tyw!2e0!7i16384!8i8192?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332575021!6m8!1m7!1sJo2m04ymc8xFmGFYNH2Tyw!2m2!1d56.65255161375055!2d8.52625930536295!3f69.18!4f3.3299999999999983!5f0.7820865974627469"},{title:"Finland",link:"https://www.google.com/maps/@60.1378835,24.990532,3a,75y,265.93h,93.25t/data=!3m8!1e1!3m6!1sAF1QipNjv6f1smybA4dP0uRoIyw_GIbnReVkALNVG3I!2e10!3e11!6shttps:%2F%2Flh5.googleusercontent.com%2Fp%2FAF1QipNjv6f1smybA4dP0uRoIyw_GIbnReVkALNVG3I%3Dw203-h100-k-no-pi-0-ya131.89162-ro-0-fo100!7i12000!8i6000?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332601363!6m8!1m7!1sCAoSK0FGMVFpcE5qdjZmMXNteWJBNGRQMHVSb0l5d19HSWJuUmVWa0FMTlZHM0k.!2m2!1d60.1378835301528!2d24.99053198844194!3f265.93!4f3.25!5f0.7820865974627469"},{title:"Georgia",link:"https://www.google.com/maps/@41.673687,44.7001648,3a,90y,273.65h,94.23t/data=!3m8!1e1!3m6!1sAF1QipP7zxCvlgC4OSmyogVOtTIcpywfxMb1SEJ_u5AI!2e10!3e11!6shttps:%2F%2Flh5.googleusercontent.com%2Fp%2FAF1QipP7zxCvlgC4OSmyogVOtTIcpywfxMb1SEJ_u5AI%3Dw203-h100-k-no-pi-0-ya181-ro-0-fo100!7i8704!8i4352?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332608703!6m8!1m7!1sCAoSLEFGMVFpcFA3enhDdmxnQzRPU215b2dWT3RUSWNweXdmeE1iMVNFSl91NUFJ!2m2!1d41.673687!2d44.7001648!3f273.65!4f4.230000000000004!5f0.4000000000000002"},{title:"Germany",link:"https://www.google.com/maps/@47.737947,7.6892312,3a,75y,226.36h,109.5t/data=!3m8!1e1!3m6!1sAF1QipMPKawADsqR1qnoUutccjsFqV5458Fo6pNZQl0!2e10!3e11!6shttps:%2F%2Flh5.googleusercontent.com%2Fp%2FAF1QipMPKawADsqR1qnoUutccjsFqV5458Fo6pNZQl0%3Dw203-h100-k-no-pi-0-ya324.57867-ro-0-fo100!7i8704!8i4352?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332611797!6m8!1m7!1sCAoSK0FGMVFpcE1QS2F3QURzcVIxcW5vVXV0Y2Nqc0ZxVjU0NThGbzZwTlpRbDA.!2m2!1d47.737947!2d7.689231200000001!3f226.36!4f19.5!5f0.7820865974627469"},{title:"Hungary",link:"https://www.google.com/maps/@47.1917777,18.4107785,3a,90y,230.2h,79.11t/data=!3m8!1e1!3m6!1sAF1QipPv-pCjLbZrWV1hu0oP69sTqvgV9pTZqjtV48tj!2e10!3e11!6shttps:%2F%2Flh5.googleusercontent.com%2Fp%2FAF1QipPv-pCjLbZrWV1hu0oP69sTqvgV9pTZqjtV48tj%3Dw203-h100-k-no-pi-0-ya103.78106-ro-0-fo100!7i9000!8i4500?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332628469!6m8!1m7!1sCAoSLEFGMVFpcFB2LXBDakxiWnJXVjFodTBvUDY5c1RxdmdWOXBUWnFqdFY0OHRq!2m2!1d47.19177768270664!2d18.4107785381816!3f230.2!4f-10.89!5f0.4000000000000002"},{title:"Indonesia",link:"https://www.google.com/maps/@-3.8433943,122.0486517,3a,90y,290.41h,80.33t/data=!3m6!1e1!3m4!1svvtoiual62rn1U6c2NvRnQ!2e0!7i13312!8i6656?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332634720!6m8!1m7!1svvtoiual62rn1U6c2NvRnQ!2m2!1d-3.843394332539138!2d122.0486517430776!3f290.41!4f-9.670000000000002!5f0.4000000000000002"},{title:"Israel",link:"https://www.google.com/maps/@32.056203,34.750012,3a,75y,138.82h,83.17t/data=!3m8!1e1!3m6!1sAF1QipMXWMsEgekhu28ctRhoPtxtV_3dXbRjJ-ADf-r1!2e10!3e11!6shttps:%2F%2Flh5.googleusercontent.com%2Fp%2FAF1QipMXWMsEgekhu28ctRhoPtxtV_3dXbRjJ-ADf-r1%3Dw203-h100-k-no-pi-0-ya20.689228-ro-0-fo100!7i12000!8i6000?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332638968!6m8!1m7!1sCAoSLEFGMVFpcE1YV01zRWdla2h1MjhjdFJob1B0eHRWXzNkWGJSakotQURmLXIx!2m2!1d32.056203!2d34.750012!3f138.82!4f-6.829999999999998!5f0.7820865974627469"},{title:"Japan",link:"https://www.google.com/maps/@36.9026466,138.1437857,3a,90y,79.75h,70.67t/data=!3m8!1e1!3m6!1sAF1QipM44e6BIfnxByujTufJIHJaB7S-Uuy26YRF5bHx!2e10!3e11!6shttps:%2F%2Flh5.googleusercontent.com%2Fp%2FAF1QipM44e6BIfnxByujTufJIHJaB7S-Uuy26YRF5bHx%3Dw203-h100-k-no-pi-0.112540185-ya359.88745-ro-0-fo100!7i8704!8i4352?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332645455!6m8!1m7!1sCAoSLEFGMVFpcE00NGU2QklmbnhCeXVqVHVmSklISmFCN1MtVXV5MjZZUkY1Ykh4!2m2!1d36.9026466!2d138.1437857!3f79.75!4f-19.33!5f0.4000000000000002"},{title:"Kenya",link:"https://www.google.com/maps/@-3.9941269,39.6959344,3a,75y,165.56h,89.86t/data=!3m6!1e1!3m4!1s5U9Rh5BRuFrCA5dOBChIJQ!2e0!7i16384!8i8192?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332651820!6m8!1m7!1s5U9Rh5BRuFrCA5dOBChIJQ!2m2!1d-3.994126918268447!2d39.69593443016079!3f165.56!4f-0.14000000000000057!5f0.7820865974627469"},{title:"Kuwait",link:"https://www.google.com/maps/@29.3495474,48.0892503,3a,75y,312.41h,88.53t/data=!3m8!1e1!3m6!1sAF1QipPfgkHJK-z2dUnXwvtrOQAW0OrKaCCaNx8o1YQ2!2e10!3e11!6shttps:%2F%2Flh5.googleusercontent.com%2Fp%2FAF1QipPfgkHJK-z2dUnXwvtrOQAW0OrKaCCaNx8o1YQ2%3Dw203-h100-k-no-pi-10-ya320-ro-0-fo100!7i8192!8i4096?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332655952!6m8!1m7!1sCAoSLEFGMVFpcFBmZ2tISkstejJkVW5Yd3Z0ck9RQVcwT3JLYUNDYU54OG8xWVEy!2m2!1d29.3495474!2d48.0892503!3f312.41!4f-1.4699999999999989!5f0.7820865974627469"},{title:"Liberia",link:"https://www.google.com/maps/@6.3172542,-10.8066699,3a,90y,50.26h,96.11t/data=!3m7!1e1!3m5!1sAF1QipOPpDjxiVsIlqxYoQ_CrtotKJkhfbZOfbyJStR9!2e10!3e11!7i7680!8i3840?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332662148!6m8!1m7!1sCAoSLEFGMVFpcE9QcERqeGlWc0lscXhZb1FfQ3J0b3RLSmtoZmJaT2ZieUpTdFI5!2m2!1d6.317254223164158!2d-10.80666989120235!3f50.26!4f6.109999999999999!5f0.4000000000000002"},{title:"Madagascar",link:"https://www.google.com/maps/@-18.9234437,47.5319465,2a,75y,72.19h,100.77t/data=!3m7!1e1!3m5!1sYohII4q3A6QYAaDyJI_-KQ!2e0!6shttps:%2F%2Fstreetviewpixels-pa.googleapis.com%2Fv1%2Fthumbnail%3Fpanoid%3DYohII4q3A6QYAaDyJI_-KQ%26cb_client%3Dmaps_sv.tactile.gps%26w%3D203%26h%3D100%26yaw%3D279.88742%26pitch%3D-20.11257%26thumbfov%3D100!7i13312!8i6656?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332669517!6m8!1m7!1sYohII4q3A6QYAaDyJI_-KQ!2m2!1d-18.92344366752726!2d47.53194652035273!3f72.19!4f10.769999999999996!5f0.7820865974627469"},{title:"Nepal",link:"https://www.google.com/maps/@28.7616414,83.6368122,3a,90y,147.07h,91.39t/data=!3m8!1e1!3m6!1sAF1QipNV1GayRarrJR3VIg_FQUFVNI-d0b-nrwhhpK_U!2e10!3e11!6shttps:%2F%2Flh5.googleusercontent.com%2Fp%2FAF1QipNV1GayRarrJR3VIg_FQUFVNI-d0b-nrwhhpK_U%3Dw203-h100-k-no-pi-0-ya56.000004-ro-0-fo100!7i10240!8i5120?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332693221!6m8!1m7!1sCAoSLEFGMVFpcE5WMUdheVJhcnJKUjNWSWdfRlFVRlZOSS1kMGItbnJ3aGhwS19V!2m2!1d28.76164139999999!2d83.6368122!3f147.07!4f1.3900000000000006!5f0.4000000000000002"},{title:"New Zealand",link:"https://www.google.com/maps/@-37.8717785,175.6828837,3a,75y,142h,87.82t/data=!3m6!1e1!3m4!1sZafOzmzIQnx7u7CnD0dMkg!2e0!7i13312!8i6656?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332696468!6m8!1m7!1sZafOzmzIQnx7u7CnD0dMkg!2m2!1d-37.87177853802388!2d175.682883726137!3f142!4f-2.180000000000007!5f0.7820865974627469"},{title:"Norway",link:"https://www.google.com/maps/@58.721475,9.235935,3a,75y,184.68h,81.84t/data=!3m6!1e1!3m4!1sflanBzb_7quSGyG9vP9DmA!2e0!7i16384!8i8192?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332700135!6m8!1m7!1sflanBzb_7quSGyG9vP9DmA!2m2!1d58.72147503485372!2d9.235934985588043!3f184.68!4f-8.159999999999997!5f0.7820865974627469"},{title:"Peru",link:"https://www.google.com/maps/@-13.3299509,-72.1971049,3a,90y,136.39h,84.52t/data=!3m8!1e1!3m6!1sAF1QipNG62Q7pKXw4-wX4xblhRYXjcNp8tT9ytv2a0wL!2e10!3e11!6shttps:%2F%2Flh5.googleusercontent.com%2Fp%2FAF1QipNG62Q7pKXw4-wX4xblhRYXjcNp8tT9ytv2a0wL%3Dw203-h100-k-no-pi0-ya1.3773088-ro-0-fo100!7i6656!8i3328?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332707150!6m8!1m7!1sCAoSLEFGMVFpcE5HNjJRN3BLWHc0LXdYNHhibGhSWVhqY05wOHRUOXl0djJhMHdM!2m2!1d-13.3299509!2d-72.1971049!3f136.39!4f-5.480000000000004!5f0.4000000000000002"},{title:"Philippines",link:"https://www.google.com/maps/@14.6296075,121.0964071,3a,90y,152.33h,94.9t/data=!3m6!1e1!3m4!1shDbmXwkTQv1NYH36K6Vr2A!2e0!7i16384!8i8192?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332710402!6m8!1m7!1shDbmXwkTQv1NYH36K6Vr2A!2m2!1d14.62960745037837!2d121.0964071307574!3f152.33!4f4.900000000000006!5f0.4000000000000002"},{title:"Portugal",link:"https://www.google.com/maps/@38.709765,-9.1335375,3a,90y,46.68h,103.28t/data=!3m7!1e1!3m5!1sSZ1ENOyWibCarEvBdMM_lg!2e0!6shttps:%2F%2Fstreetviewpixels-pa.googleapis.com%2Fv1%2Fthumbnail%3Fpanoid%3DSZ1ENOyWibCarEvBdMM_lg%26cb_client%3Dmaps_sv.tactile.gps%26w%3D203%26h%3D100%26yaw%3D66.14479%26pitch%3D0%26thumbfov%3D100!7i16384!8i8192?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332713772!6m8!1m7!1sSZ1ENOyWibCarEvBdMM_lg!2m2!1d38.70976500817227!2d-9.133537484566608!3f46.68!4f13.280000000000001!5f0.4000000000000002"},{title:"Romania",link:"https://www.google.com/maps/@44.4268929,26.1029659,3a,90y,242.94h,79.39t/data=!3m7!1e1!3m5!1sV8CqZprZitaQJynaUAjEAw!2e0!6shttps:%2F%2Fstreetviewpixels-pa.googleapis.com%2Fv1%2Fthumbnail%3Fpanoid%3DV8CqZprZitaQJynaUAjEAw%26cb_client%3Dmaps_sv.tactile.gps%26w%3D203%26h%3D100%26yaw%3D232.60112%26pitch%3D0%26thumbfov%3D100!7i16384!8i8192?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332719970!6m8!1m7!1sV8CqZprZitaQJynaUAjEAw!2m2!1d44.42689291919224!2d26.10296593559447!3f242.94!4f-10.61!5f0.4000000000000002"},{title:"Russia",link:"https://www.google.com/maps/@55.7317335,37.50607,3a,90y,268.32h,109.04t/data=!3m8!1e1!3m6!1sAF1QipPF0nkb1BphX6nNlCFBbGPGGQpV2e0b0R1qAPAS!2e10!3e11!6shttps:%2F%2Flh5.googleusercontent.com%2Fp%2FAF1QipPF0nkb1BphX6nNlCFBbGPGGQpV2e0b0R1qAPAS%3Dw203-h100-k-no-pi-7.990353-ya159.14302-ro0-fo100!7i6000!8i3000?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332723639!6m8!1m7!1sCAoSLEFGMVFpcFBGMG5rYjFCcGhYNm5ObENGQmJHUEdHUXBWMmUwYjBSMXFBUEFT!2m2!1d55.73173347549965!2d37.50606995075941!3f268.32!4f19.040000000000006!5f0.4000000000000002"},{title:"Slovenia",link:"https://www.google.com/maps/@46.5602916,15.6494557,3a,90y,120.87h,108.58t/data=!3m6!1e1!3m4!1ssNFPSsrlsNTIDAcHLasCIw!2e0!7i13312!8i6656?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332731147!6m8!1m7!1ssNFPSsrlsNTIDAcHLasCIw!2m2!1d46.56029155259352!2d15.64945569779819!3f120.87!4f18.58!5f0.4000000000000002"},{title:"Venezuela",link:"https://www.google.com/maps/@10.5132439,-66.9125697,3a,90y,172.89h,96.27t/data=!3m6!1e1!3m4!1sAF1QipMbqPPfLC_S0tN8EfzjYT7E1MZx__mHgL_4g4XM!2e10!7i8000!8i4000?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1686332761420!6m8!1m7!1sCAoSLEFGMVFpcE1icVBQZkxDX1MwdE44RWZ6allUN0UxTVp4X19tSGdMXzRnNFhN!2m2!1d10.5132439351186!2d-66.9125697389245!3f172.89!4f6.269999999999996!5f0.4000000000000002"},{title:"Albania",link:"https://www.google.com/maps/@41.7848555,19.6466145,3a,75y,349.04h,83.42t/data=!3m8!1e1!3m6!1sAF1QipNinVjWOad3Rxb7XNBtV-RuosgnwYaI24bVQgn1!2e10!3e11!6shttps:%2F%2Flh5.googleusercontent.com%2Fp%2FAF1QipNinVjWOad3Rxb7XNBtV-RuosgnwYaI24bVQgn1%3Dw203-h100-k-no-pi-0-ya291.11536-ro0-fo100!7i12000!8i6000?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1687119136328!6m8!1m7!1sCAoSLEFGMVFpcE5pblZqV09hZDNSeGI3WE5CdFYtUnVvc2dud1lhSTI0YlZRZ24x!2m2!1d41.784855531691!2d19.646614490124!3f349.04!4f-6.579999999999998!5f0.7820865974627469"},{title:"Belgium",link:"https://www.google.com/maps/@51.2089881,2.8846616,3a,75y,77.68h,86.15t/data=!3m7!1e1!3m5!1sjT026m8Nhnp7aQIXqudXeQ!2e0!6shttps:%2F%2Fstreetviewpixels-pa.googleapis.com%2Fv1%2Fthumbnail%3Fpanoid%3DjT026m8Nhnp7aQIXqudXeQ%26cb_client%3Dmaps_sv.tactile.gps%26w%3D203%26h%3D100%26yaw%3D335.1454%26pitch%3D0%26thumbfov%3D100!7i13312!8i6656?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1687119150490!6m8!1m7!1sjT026m8Nhnp7aQIXqudXeQ!2m2!1d51.20898806548806!2d2.884661580230813!3f77.68!4f-3.8499999999999943!5f0.7820865974627469"},{title:"Botswana",link:"https://www.google.com/maps/@-20.5000325,25.1290002,3a,75y,252.33h,85.04t/data=!3m8!1e1!3m6!1sAF1QipMDuc5f1dsCAzL9Cq4ESTWWjJCRmiztQydJ4_cq!2e10!3e11!6shttps:%2F%2Flh5.googleusercontent.com%2Fp%2FAF1QipMDuc5f1dsCAzL9Cq4ESTWWjJCRmiztQydJ4_cq%3Dw203-h100-k-no-pi-0.37066647-ya234.55408-ro-0.0015957364-fo100!7i8192!8i4096?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1687119154762!6m8!1m7!1sCAoSLEFGMVFpcE1EdWM1ZjFkc0NBekw5Q3E0RVNUV1dqSkNSbWl6dFF5ZEo0X2Nx!2m2!1d-20.5000325!2d25.1290002!3f252.33!4f-4.959999999999994!5f0.7820865974627469"},{title:"Colombia",link:"https://www.google.com/maps/@3.8597977,-76.5402389,3a,89.6y,268.63h,93.31t/data=!3m7!1e1!3m5!1s0owHJBDb2iocP6zfIwfe4w!2e0!6shttps:%2F%2Fstreetviewpixels-pa.googleapis.com%2Fv1%2Fthumbnail%3Fpanoid%3D0owHJBDb2iocP6zfIwfe4w%26cb_client%3Dmaps_sv.tactile.gps%26w%3D203%26h%3D100%26yaw%3D321.72473%26pitch%3D0%26thumbfov%3D100!7i16384!8i8192?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1687119182731!6m8!1m7!1s0owHJBDb2iocP6zfIwfe4w!2m2!1d3.859797749837747!2d-76.5402388588541!3f268.63!4f3.3100000000000023!5f0.41007199324273763"},{title:"Croatia",link:"https://www.google.com/maps/@45.0818662,13.6344663,3a,75y,28.73h,90.79t/data=!3m8!1e1!3m6!1sAF1QipNxu5Kc6xxdunr1xW0Sq-mKCDb927to-swDSb4q!2e10!3e11!6shttps:%2F%2Flh5.googleusercontent.com%2Fp%2FAF1QipNxu5Kc6xxdunr1xW0Sq-mKCDb927to-swDSb4q%3Dw203-h100-k-no-pi1.7888254-ya287.53204-ro-0.705416-fo100!7i7680!8i3840?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1687119196042!6m8!1m7!1sCAoSLEFGMVFpcE54dTVLYzZ4eGR1bnIxeFcwU3EtbUtDRGI5Mjd0by1zd0RTYjRx!2m2!1d45.08186619968883!2d13.63446634306079!3f28.73!4f0.7900000000000063!5f0.7820865974627469"},{title:"Germany",link:"https://www.google.com/maps/@47.9951764,7.8529328,3a,74.5y,326.02h,114.9t/data=!3m8!1e1!3m6!1sAF1QipM7l-6U8Z7w57_nCeqbllh1hShZ1Tb7KatMH1OH!2e10!3e11!6shttps:%2F%2Flh5.googleusercontent.com%2Fp%2FAF1QipM7l-6U8Z7w57_nCeqbllh1hShZ1Tb7KatMH1OH%3Dw203-h100-k-no-pi-17.10611-ya346.90536-ro-0-fo100!7i13312!8i6656?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1687119232778!6m8!1m7!1sCAoSLEFGMVFpcE03bC02VThaN3c1N19uQ2VxYmxsaDFoU2haMVRiN0thdE1IMU9I!2m2!1d47.99517639017938!2d7.852932849698391!3f326.02!4f24.900000000000006!5f0.7951360383703611"},{title:"Ghana",link:"https://www.google.com/maps/@6.6957825,-1.6165838,3a,90y,257.8h,81.84t/data=!3m7!1e1!3m5!1ss2jaeN-KjhsrQLbcMiGrpQ!2e0!6shttps:%2F%2Fstreetviewpixels-pa.googleapis.com%2Fv1%2Fthumbnail%3Fpanoid%3Ds2jaeN-KjhsrQLbcMiGrpQ%26cb_client%3Dmaps_sv.tactile.gps%26w%3D203%26h%3D100%26yaw%3D326.98788%26pitch%3D0%26thumbfov%3D100!7i13312!8i6656?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1687119235842!6m8!1m7!1ss2jaeN-KjhsrQLbcMiGrpQ!2m2!1d6.695782542655994!2d-1.616583768625464!3f257.8!4f-8.159999999999997!5f0.4000000000000002"},{title:"India",link:"https://www.google.com/maps/@26.923828,75.8270749,3a,75y,285.54h,105.75t/data=!3m6!1e1!3m4!1s1Axyv3l_iqt9yWzC4gIdqg!2e0!7i13312!8i6656?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1687119247070!6m8!1m7!1s1Axyv3l_iqt9yWzC4gIdqg!2m2!1d26.9238280486489!2d75.82707492149625!3f285.54!4f15.75!5f0.7820865974627469"},{title:"Indonesia",link:"https://www.google.com/maps/@-3.0825232,119.9169088,3a,75y,228.56h,98.57t/data=!3m6!1e1!3m4!1s26jryH9JuOBs4IO9Y1QmOw!2e0!7i16384!8i8192?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1687119250014!6m8!1m7!1s26jryH9JuOBs4IO9Y1QmOw!2m2!1d-3.082523173064316!2d119.9169088254661!3f228.56!4f8.569999999999993!5f0.7820865974627469"},{title:"Iran",link:"https://www.google.com/maps/@30.4325525,56.057296,3a,75y,151.04h,95.09t/data=!3m8!1e1!3m6!1sAF1QipO3JLTtHCK62IXs7Ja_EfxD9wlU_Ge8jPPKMCZW!2e10!3e11!6shttps:%2F%2Flh5.googleusercontent.com%2Fp%2FAF1QipO3JLTtHCK62IXs7Ja_EfxD9wlU_Ge8jPPKMCZW%3Dw203-h100-k-no-pi-10-ya189.07047-ro-0-fo100!7i5940!8i2970?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1687119253733!6m8!1m7!1sCAoSLEFGMVFpcE8zSkxUdEhDSzYySVhzN0phX0VmeEQ5d2xVX0dlOGpQUEtNQ1pX!2m2!1d30.43255247853044!2d56.05729599476224!3f151.04!4f5.090000000000003!5f0.7820865974627469"},{title:"Italy",link:"https://www.google.com/maps/@41.8982242,12.4731588,3a,90y,175.69h,83.45t/data=!3m8!1e1!3m6!1sAF1QipPaNur2R3fJWzM5XCDlEPK7i9CQ7asIMgjjJO6L!2e10!3e11!6shttps:%2F%2Flh5.googleusercontent.com%2Fp%2FAF1QipPaNur2R3fJWzM5XCDlEPK7i9CQ7asIMgjjJO6L%3Dw203-h100-k-no-pi-0-ya248.70602-ro-0-fo100!7i6528!8i3264?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1687119265815!6m8!1m7!1sCAoSLEFGMVFpcFBhTnVyMlIzZkpXek01WENEbEVQSzdpOUNRN2FzSU1nampKTzZM!2m2!1d41.898224225052!2d12.47315876255!3f175.69!4f-6.549999999999997!5f0.4000000000000002"},{title:"Japan",link:"https://www.google.com/maps/@36.7326326,138.4621769,2a,75y,132.59h,75.21t/data=!3m7!1e1!3m5!1s-_0l0tU3lKz0JtaEsqJk7w!2e0!6shttps:%2F%2Fstreetviewpixels-pa.googleapis.com%2Fv1%2Fthumbnail%3Fpanoid%3D-_0l0tU3lKz0JtaEsqJk7w%26cb_client%3Dmaps_sv.tactile.gps%26w%3D203%26h%3D100%26yaw%3D294.00262%26pitch%3D0%26thumbfov%3D100!7i13312!8i6656?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1687119273227!6m8!1m7!1s-_0l0tU3lKz0JtaEsqJk7w!2m2!1d36.732632613848!2d138.4621769294279!3f132.59!4f-14.790000000000006!5f0.7820865974627469"},{title:"Jordan",link:"https://www.google.com/maps/@31.9516112,35.9393884,2a,75y,308.12h,83.76t/data=!3m7!1e1!3m5!1siUBbBTb3yDoFEFhUe4GnCg!2e0!6shttps:%2F%2Fstreetviewpixels-pa.googleapis.com%2Fv1%2Fthumbnail%3Fpanoid%3DiUBbBTb3yDoFEFhUe4GnCg%26cb_client%3Dmaps_sv.tactile.gps%26w%3D203%26h%3D100%26yaw%3D126.0864%26pitch%3D0%26thumbfov%3D100!7i13312!8i6656?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1687119276293!6m8!1m7!1siUBbBTb3yDoFEFhUe4GnCg!2m2!1d31.95161115368211!2d35.93938839552868!3f308.12!4f-6.239999999999995!5f0.7820865974627469"},{title:"Kenya",link:"https://www.google.com/maps/@-1.2839794,36.8208278,3a,90y,336.57h,88.24t/data=!3m6!1e1!3m4!1sGwPdUdRZdv9AXcFndU_EOQ!2e0!7i16384!8i8192?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1687119279399!6m8!1m7!1sGwPdUdRZdv9AXcFndU_EOQ!2m2!1d-1.283979405927672!2d36.82082780827069!3f336.57!4f-1.7600000000000051!5f0.4000000000000002"},{title:"Latvia",link:"https://www.google.com/maps/@56.9474378,24.1063499,3a,90y,91.94h,96.81t/data=!3m6!1e1!3m4!1s-36m3Um4REUCCCjuzfjYaA!2e0!7i13312!8i6656?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1687119286097!6m8!1m7!1s-36m3Um4REUCCCjuzfjYaA!2m2!1d56.9474378136615!2d24.10634993779821!3f91.94!4f6.810000000000002!5f0.4000000000000002"},{title:"Lithuania",link:"https://www.google.com/maps/@55.798336,21.0670862,3a,75y,334.07h,87.38t/data=!3m8!1e1!3m6!1sAF1QipNSDdBQRgxfsZ-7vVIbXh7OvjiZldscjXjuxsII!2e10!3e11!6shttps:%2F%2Flh5.googleusercontent.com%2Fp%2FAF1QipNSDdBQRgxfsZ-7vVIbXh7OvjiZldscjXjuxsII%3Dw203-h100-k-no-pi-0-ya9.096276-ro-0-fo100!7i9204!8i4602?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1687119299805!6m8!1m7!1sCAoSLEFGMVFpcE5TRGRCUVJneGZzWi03dlZJYlhoN092amlabGRzY2pYanV4c0lJ!2m2!1d55.79833599951167!2d21.06708616018295!3f334.07!4f-2.6200000000000045!5f0.7820865974627469"},{title:"Malaysia",link:"https://www.google.com/maps/@3.2375917,101.684043,3a,90y,7.13h,116.58t/data=!3m8!1e1!3m6!1sAF1QipNCtfgdaFJRxi3C4YPLoBPdwp3ba8gYPG_UHoHd!2e10!3e11!6shttps:%2F%2Flh5.googleusercontent.com%2Fp%2FAF1QipNCtfgdaFJRxi3C4YPLoBPdwp3ba8gYPG_UHoHd%3Dw203-h100-k-no-pi-0-ya290.8275-ro0-fo100!7i8704!8i4352?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1687119309719!6m8!1m7!1sCAoSLEFGMVFpcE5DdGZnZGFGSlJ4aTNDNFlQTG9CUGR3cDNiYThnWVBHX1VIb0hk!2m2!1d3.2375917!2d101.684043!3f7.13!4f26.58!5f0.4000000000000002"},{title:"Netherlands",link:"https://www.google.com/maps/@52.113111,4.2802872,3a,90y,199.78h,96.26t/data=!3m6!1e1!3m4!1sj1uAVlzaTU4GQyduJYzjuA!2e0!7i16384!8i8192?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1687119343452!6m8!1m7!1sj1uAVlzaTU4GQyduJYzjuA!2m2!1d52.11311104606541!2d4.28028724851124!3f199.78!4f6.260000000000005!5f0.4000000000000002"},{title:"New Zealand",link:"https://www.google.com/maps/@-39.5010522,176.9184996,3a,90y,68.64h,88.81t/data=!3m6!1e1!3m4!1sJCSiYBxjbDe_EPTZw_7gDQ!2e0!7i16384!8i8192?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1687119346564!6m8!1m7!1sJCSiYBxjbDe_EPTZw_7gDQ!2m2!1d-39.5010521533879!2d176.918499552169!3f68.64!4f-1.1899999999999977!5f0.4000000000000002"},{title:"Nigeria",link:"https://www.google.com/maps/@9.0809615,7.5243988,2a,90y,84.34h,85.05t/data=!3m6!1e1!3m4!1sINHBz4HdSwMAAAQrBnftjg!2e0!7i13312!8i6656?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1687119352692!6m8!1m7!1sINHBz4HdSwMAAAQrBnftjg!2m2!1d9.080961517214682!2d7.524398838108427!3f84.34!4f-4.950000000000003!5f0.4000000000000002"},{title:"Poland",link:"https://www.google.com/maps/@52.2494052,20.9923145,3a,90y,99.76h,104.25t/data=!3m6!1e1!3m4!1seXEScTe7gqoljTOV4M_1PA!2e0!7i16384!8i8192?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1687119378940!6m8!1m7!1seXEScTe7gqoljTOV4M_1PA!2m2!1d52.24940517758763!2d20.99231454742342!3f99.76!4f14.25!5f0.4000000000000002"},{title:"Singapore",link:"https://www.google.com/maps/@1.2806527,103.8642833,2a,90y,41.99h,89.35t/data=!3m7!1e1!3m5!1sb7tYegC8sOpQiSgx9CjtNA!2e0!6shttps:%2F%2Fstreetviewpixels-pa.googleapis.com%2Fv1%2Fthumbnail%3Fpanoid%3Db7tYegC8sOpQiSgx9CjtNA%26cb_client%3Dmaps_sv.tactile.gps%26w%3D203%26h%3D100%26yaw%3D84.62819%26pitch%3D0%26thumbfov%3D100!7i13312!8i6656?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1687119382058!6m8!1m7!1sb7tYegC8sOpQiSgx9CjtNA!2m2!1d1.280652667541553!2d103.8642833171509!3f41.99!4f-0.6500000000000057!5f0.4000000000000002"},{title:"Spain",link:"https://www.google.com/maps/@37.1760783,-3.5881413,3a,90y,12.6h,91.86t/data=!3m8!1e1!3m6!1sAF1QipP9qAD3ssenWODwqFLIT6VbwAD4FzlXgKbgmht7!2e10!3e11!6shttps:%2F%2Flh5.googleusercontent.com%2Fp%2FAF1QipP9qAD3ssenWODwqFLIT6VbwAD4FzlXgKbgmht7%3Dw203-h100-k-no-pi-0-ya139.54929-ro0-fo100!7i6144!8i3072?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1687119386122!6m8!1m7!1sCAoSLEFGMVFpcFA5cUFEM3NzZW5XT0R3cUZMSVQ2VmJ3QUQ0RnpsWGdLYmdtaHQ3!2m2!1d37.1760783!2d-3.5881413!3f12.6!4f1.8599999999999994!5f0.4000000000000002"},{title:"Sweden",link:"https://www.google.com/maps/@65.8055012,21.678883,3a,90y,202.99h,90.85t/data=!3m7!1e1!3m5!1sO7gt2w-yxeZI97e82gkunQ!2e0!6shttps:%2F%2Fstreetviewpixels-pa.googleapis.com%2Fv1%2Fthumbnail%3Fpanoid%3DO7gt2w-yxeZI97e82gkunQ%26cb_client%3Dmaps_sv.tactile.gps%26w%3D203%26h%3D100%26yaw%3D194.25218%26pitch%3D0%26thumbfov%3D100!7i16384!8i8192?entry=ttu",embed:"https://www.google.com/maps/embed?pb=!4v1687119389195!6m8!1m7!1sO7gt2w-yxeZI97e82gkunQ!2m2!1d65.80550118091678!2d21.67888296764118!3f202.99!4f0.8499999999999943!5f0.4000000000000002"}],ie=["Afghanistan","Albania","Algeria","Andorra","Angola","Antigua","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia","Botswana","Brazil","Brunei","Bulgaria","Burkina","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Chad","Chile","China","Colombia","Comoros","Congo","Congo","Costa Rica","Croatia","Cuba","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","East Timor","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Fiji","Finland","France","Gabon","Gambia","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Ivory Coast","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Korea North","Korea South","Kosovo","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macedonia","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","Norway","Oman","Pakistan","Palau","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","St Lucia","Samoa","San Marino","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Swaziland","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Togo","Tonga","Trinidad & Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","America","Uruguay","Uzbekistan","Vanuatu","Vatican City","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe","England","United States","Britain"],pe=r(1137),le=r.n(pe),ce={components:{Rule:G},props:Object(Q.a)({numErrors:{type:Number,required:!0},errorRulesIndex:{type:Number,required:!0},rulesOrder:{type:Array,required:!0},currCaptcha:{type:String,required:!0},currChessPuzzle:{type:Number,required:!0},randomColor:{type:String,required:!0},passwordStrength:{type:Number,required:!0},currYoutubeId:{type:String,required:!0},randomYoutubeDuration:{type:Number,required:!0},currPlace:{type:Object,required:!0},currPlaceGuess:{type:Array,required:!0},currChessGuess:{type:Array,required:!0}},"numErrors",{type:Number,required:!0}),data:function(){return{rules:C}}},ue=(r(1141),Object(N.a)(ce,(function(){var e=this,t=e._self._c;return t("TransitionGroup",{attrs:{name:"list",tag:"div",css:!0}},e._l(e.rulesOrder.length,(function(i,r){return t("div",{key:e.rules[e.rulesOrder[i-1]].id},[t("Rule",{staticClass:"rule",attrs:{ruleNum:e.rulesOrder[i-1]+1,rule:e.rules[e.rulesOrder[i-1]],hasError:i<=e.errorRulesIndex,captcha:e.currCaptcha,chessPuzzle:e.currChessPuzzle,randomColor:e.randomColor,passwordStrength:e.passwordStrength,randomYoutubeDuration:e.randomYoutubeDuration,currYoutubeId:e.currYoutubeId,currPlace:e.currPlace,currPlaceGuess:e.currPlaceGuess,currChessGuess:e.currChessGuess,numErrors:e.numErrors},on:{refreshColor:function(t){return e.$emit("refreshColor")},captchaRefresh:function(t){return e.$emit("captchaRefresh")},sacrafice:function(t){return e.$emit("sacrafice",t)},done:function(t){return e.$emit("done")}}})],1)})),0)}),[],!1,null,null,null).exports),de=(r(43),r(71),r(72),r(20));r(344),r(1143),r(214),r(355),r(149),r(215),r(50);function fe(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return me(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return me(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,l=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return l=e.done,e},e:function(e){c=!0,n=e},f:function(){try{l||null==r.return||r.return()}finally{if(c)throw n}}}}function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,r=new Array(t);i="a"&&t<="h"){if(e.match(/[a-h]\d.*[a-h]\d/))return;return Oe}return"o"===(t=t.toLowerCase())?Ge:t}function Qe(e){return e.replace(/=/,"").replace(/[+#]?[?!]*$/,"")}function Fe(i){return i>>4}function Ne(i){return 15&i}function _e(i){var e=Ne(i),t=Fe(i);return"abcdefgh".substring(e,e+1)+"87654321".substring(t,t+1)}function Be(e){return e===Le?Te:Le}function Se(e){var t=e instanceof Array?[]:{};for(var r in e)"object"===Object(de.a)(r)?t[r]=Se(e[r]):t[r]=e[r];return t}function Ae(e){return e.replace(/^\s+|\s+$/g,"")}var qe,Ke,De,Ee,Me,Ie,ze,Te="b",Le="w",je=-1,Oe="p",Ve="b",Ge="k",Ye=(function(){for(var e=[],i=xe.a8;i<=xe.h1;i++)136&i?i+=7:e.push(_e(i))}(),{NORMAL:"n",CAPTURE:"c",BIG_PAWN:"b",EP_CAPTURE:"e",PROMOTION:"p",KSIDE_CASTLE:"k",QSIDE_CASTLE:"q"}),Ue=function(e){var t=new Array(128),r={w:je,b:je},o=Le,n={w:0,b:0},l=je,c=0,d=1,f=[],header={},m={};function h(e){void 0===e&&(e=!1),t=new Array(128),r={w:je,b:je},o=Le,n={w:0,b:0},l=je,c=0,d=1,f=[],e||(header={}),m={},x(y())}function P(){for(var e=[],t={},r=function(e){e in m&&(t[e]=m[e])};f.length>0;)e.push(I());for(r(y());e.length>0;)M(e.pop()),r(y());m=t}function w(){v(be)}function v(e,t){void 0===t&&(t=!1);var r=e.split(/\s+/),f=r[0],m=0;h(t);for(var i=0;i-1&&(n.w|=ke.KSIDE_CASTLE),r[2].indexOf("Q")>-1&&(n.w|=ke.QSIDE_CASTLE),r[2].indexOf("k")>-1&&(n.b|=ke.KSIDE_CASTLE),r[2].indexOf("q")>-1&&(n.b|=ke.QSIDE_CASTLE),l="-"===r[3]?je:xe[r[3]],c=parseInt(r[4],10),d=parseInt(r[5],10),x(y()),!0}function y(){for(var e=0,r="",i=xe.a8;i<=xe.h1;i++){if(null==t[i])e++;else{e>0&&(r+=e,e=0);var f=t[i].color,m=t[i].type;r+=f===Le?m.toUpperCase():m.toLowerCase()}i+1&136&&(e>0&&(r+=e),i!==xe.h1&&(r+="/"),e=0,i+=8)}var h="";n[Le]&ke.KSIDE_CASTLE&&(h+="K"),n[Le]&ke.QSIDE_CASTLE&&(h+="Q"),n[Te]&ke.KSIDE_CASTLE&&(h+="k"),n[Te]&ke.QSIDE_CASTLE&&(h+="q"),h=h||"-";var P=l===je?"-":_e(l);return[r,o,h,P,c,d].join(" ")}function k(e){for(var i=0;i0||(e!==be?(header.SetUp="1",header.FEN=e):(delete header.SetUp,delete header.FEN))}function R(e){var r=t[xe[e]];return r?{type:r.type,color:r.color}:null}function C(e,o){if(!("type"in e)||!("color"in e))return!1;if(-1==="pnbrqkPNBRQK".indexOf(e.type.toLowerCase()))return!1;if(!(o in xe))return!1;var n=xe[o];return(e.type!=Ge||r[e.color]==je||r[e.color]==n)&&(t[n]={type:e.type,color:e.color},e.type===Ge&&(r[e.color]=n),x(y()),!0)}function Q(e,t,r,n,l){var c={color:o,from:t,to:r,flags:n,piece:e[t].type};return l&&(c.flags|=ke.PROMOTION,c.promotion=l),e[r]?c.captured=e[r].type:n&ke.EP_CAPTURE&&(c.captured=Oe),c}function F(e){function c(e,t,r,o,n){if(e[r].type!==Oe||0!==Fe(o)&&7!==Fe(o))t.push(Q(e,r,o,n));else for(var l=["q","r",Ve,"n"],i=0,c=l.length;i0?c>0&&d>0?_e(r):d>0?_e(r).charAt(1):_e(r).charAt(0):""}(e,t);output+=e.piece.toUpperCase()+r}e.flags&(ke.CAPTURE|ke.EP_CAPTURE)&&(e.piece===Oe&&(output+=_e(e.from)[0]),output+="x"),output+=_e(e.to),e.flags&ke.PROMOTION&&(output+="="+e.promotion.toUpperCase())}return M(e),S()&&(A()?output+="#":output+="+"),I(),output}function _(e,r){for(var i=xe.a8;i<=xe.h1;i++)if(136&i)i+=7;else if(null!=t[i]&&t[i].color===e){var o=t[i],n=i-r,l=n+119;if(we[l]&1<0){if(o.color===Le)return!0}else if(o.color===Te)return!0;continue}if("n"===o.type||"k"===o.type)return!0;for(var c=ve[l],d=i+c,f=!1;d!==r;){if(null!=t[d]){f=!0;break}d+=c}if(!f)return!0}}return!1}function B(e){return _(Be(e),r[e])}function S(){return B(o)}function A(){return S()&&0===F().length}function K(){return!S()&&0===F().length}function D(){for(var e={},r=[],o=0,n=0,i=xe.a8;i<=xe.h1;i++)if(n=(n+1)%2,136&i)i+=7;else{var l=t[i];l&&(e[l.type]=l.type in e?e[l.type]+1:1,l.type===Ve&&r.push(n),o++)}if(2===o)return!0;if(3===o&&(1===e[Ve]||1===e.n))return!0;if(o===e[Ve]+2){var c=0,d=r.length;for(i=0;i=3&&(r=!0),!e.length)break;M(e.pop())}return r}function M(e){var m=o,h=Be(m);if(function(e){f.push({move:e,kings:{b:r.b,w:r.w},turn:o,castling:{b:n.b,w:n.w},ep_square:l,half_moves:c,move_number:d})}(e),t[e.to]=t[e.from],t[e.from]=null,e.flags&ke.EP_CAPTURE&&(o===Te?t[e.to-16]=null:t[e.to+16]=null),e.flags&ke.PROMOTION&&(t[e.to]={type:e.promotion,color:m}),t[e.to].type===Ge){if(r[t[e.to].color]=e.to,e.flags&ke.KSIDE_CASTLE){var P=e.to-1,w=e.to+1;t[P]=t[w],t[w]=null}else if(e.flags&ke.QSIDE_CASTLE){P=e.to+1,w=e.to-2;t[P]=t[w],t[w]=null}n[m]=""}if(n[m])for(var i=0,v=Re[m].length;i0)r+=L(e-1);else r++;I()}return r}return v(void 0===e?be:e),{load:function(e){return v(e)},reset:function(){return w()},moves:function(e){for(var t=F(e),r=[],i=0,o=t.length;i=100||K()||D()||E()},insufficient_material:function(){return D()},in_threefold_repetition:function(){return E()},game_over:function(){return c>=100||A()||K()||D()||E()},validate_fen:function(e){return function(e){var t="No errors.",r="FEN string must contain six space-delimited fields.",o="6th field (move number) must be a positive integer.",n="5th field (half move counter) must be a non-negative integer.",l="4th field (en-passant square) is invalid.",c="3rd field (castling availability) is invalid.",d="2nd field (side to move) is invalid.",f="1st field (piece positions) does not contain 8 '/'-delimited rows.",m="1st field (piece positions) is invalid [consecutive numbers].",h="1st field (piece positions) is invalid [invalid piece].",P="1st field (piece positions) is invalid [row too large].",w="Illegal en-passant square",v=e.split(/\s+/);if(6!==v.length)return{valid:!1,error_number:1,error:r};if(isNaN(parseInt(v[5]))||parseInt(v[5],10)<=0)return{valid:!1,error_number:2,error:o};if(isNaN(parseInt(v[4]))||parseInt(v[4],10)<0)return{valid:!1,error_number:3,error:n};if(!/^(-|[abcdefgh][36])$/.test(v[3]))return{valid:!1,error_number:4,error:l};if(!/^(KQ?k?q?|Qk?q?|kq?|q|-)$/.test(v[2]))return{valid:!1,error_number:5,error:c};if(!/^(w|b)$/.test(v[1]))return{valid:!1,error_number:6,error:d};var y=v[0].split("/");if(8!==y.length)return{valid:!1,error_number:7,error:f};for(var i=0;i0?" ":"";e="".concat(e).concat(r,"{").concat(t,"}")}return e},c=[];f.length>0;)c.push(I());var h=[],P="";for(0===c.length&&h.push(l(""));c.length>0;){P=l(P);var w=c.pop();if(f.length||"b"!==w.color)"w"===w.color&&(P.length&&h.push(P),P=d+".");else{var v="".concat(d,". ...");P=P?"".concat(P," ").concat(v):v}P=P+" "+N(w,F({legal:!0})),M(w)}if(P.length&&h.push(l(P)),void 0!==header.Result&&h.push(header.Result),0===r)return o.join("")+h.join(" ");var k=function(){return o.length>0&&" "===o[o.length-1]&&(o.pop(),!0)},x=function(e,n){var l,c=fe(n.split(" "));try{for(c.s();!(l=c.n()).done;){var d=l.value;if(d){if(e+d.length>r){for(;k();)e--;o.push(t),e=0}o.push(d),e+=d.length,o.push(" "),e++}}}catch(e){c.e(e)}finally{c.f()}return k()&&e--,e},R=0;for(i=0;ir&&h[i].includes("{")?R=x(R,h[i]):(R+h[i].length>r&&0!==i?(" "===o[o.length-1]&&o.pop(),o.push(t),R=0):0!==i&&(o.push(" "),R++),o.push(h[i]),R+=h[i].length);return o.join("")},load_pgn:function(e,t){var r=void 0!==t&&"sloppy"in t&&t.sloppy;function mask(e){return e.replace(/\\/g,"\\")}e=e.trim();var o="object"===Object(de.a)(t)&&"string"==typeof t.newline_char?t.newline_char:"\r?\n",n=new RegExp("^(\\[((?:"+mask(o)+")|.)*\\])(?:\\s*"+mask(o)+"){2}"),l=n.test(e)?n.exec(e)[1]:"";w();var c=function(header,e){for(var t="object"===Object(de.a)(e)&&"string"==typeof e.newline_char?e.newline_char:"\r?\n",r={},o=header.split(new RegExp(mask(t))),n="",l="",i=0;i0&&(r[n]=l)}return r}(l,t),d="";for(var f in c)"fen"===f.toLowerCase()&&(d=c[f]),k([f,c[f]]);if(r){if(d&&!v(d,!0))return!1}else if(!("1"!==c.SetUp||"FEN"in c&&v(c.FEN,!0)))return!1;for(var h=function(e){return e=e.replace(new RegExp(mask(o),"g")," "),"{".concat(function(e){return Array.from(e).map((function(e){return e.charCodeAt(0)<128?e.charCodeAt(0).toString(16):encodeURIComponent(e).replace(/\%/g,"").toLowerCase()})).join("")}(e.slice(1,e.length-1)),"}")},P=function(e){if(e.startsWith("{")&&e.endsWith("}"))return function(e){return 0==e.length?"":decodeURIComponent("%"+e.match(/.{1,2}/g).join("%"))}(e.slice(1,e.length-1))},x=e.replace(l,"").replace(new RegExp("({[^}]*})+?|;([^".concat(mask(o),"]*)"),"g"),(function(e,t,r){return void 0!==t?h(t):" "+h("{".concat(r.slice(1),"}"))})).replace(new RegExp(mask(o),"g")," "),R=/(\([^\(\)]+\))+?/g;R.test(x);)x=x.replace(R,"");var C=Ae(x=(x=(x=x.replace(/\d+\.(\.\.)?/g,"")).replace(/\.\.\./g,"")).replace(/\$\d+/g,"")).split(new RegExp(/\s+/));C=C.join(",").replace(/,,+/g,",").split(",");for(var Q="",F="",N=0;N-1))return!1;F=C[N]}else F="",M(Q);else m[y()]=_}return F&&Object.keys(header).length&&!header.Result&&k(["Result",F]),!0},header:function(){return k(arguments)},turn:function(){return o},move:function(e,t){var r=void 0!==t&&"sloppy"in t&&t.sloppy,o=null;if("string"==typeof e)o=z(e,r);else if("object"===Object(de.a)(e))for(var n=F(),i=0,l=n.length;i0;)t.push(I());for(;t.length>0;){var n=t.pop();o?r.push(T(n)):r.push(N(n,F({legal:!0}))),M(n)}return r},get_comment:function(){return m[y()]},set_comment:function(e){m[y()]=e.replace("{","[").replace("}","]")},delete_comment:function(){var e=m[y()];return delete m[y()],e},get_comments:function(){return P(),Object.keys(m).map((function(e){return{fen:e,comment:m[e]}}))},delete_comments:function(){return P(),Object.keys(m).map((function(e){var t=m[e];return delete m[e],{fen:e,comment:t}}))}}},We=new le.a,Je={components:{Rule:G,EditorContent:U.b,RuleList:ue},head:function(){return{script:[{type:"text/javascript",async:!0,src:"https://www.youtube.com/iframe_api"}],bodyAttrs:{class:"password-game-body"},htmlAttrs:{class:"password-game-body"}}},props:{value:{type:String,default:""}},data:function(){return{rules:C,rulesOrder:[],password:"",currRuleIndex:0,errorRulesIndex:0,errorRules:[],ruleReached:1,currCaptcha:this.getRandomCaptcha(),currChessPuzzle:this.getRandomChessPuzzle(),randomColor:this.generateRandomColor(),randomYoutubeDuration:Math.floor(2e3*Math.random())+180,currYoutubeDuration:0,currPlace:se[Math.floor(Math.random()*se.length)],currYoutubeId:"",currPlaceGuess:[],currChessGuess:[],editor:null,highlights:[],fonts:["Monospace","Comic Sans"],fontSizes:["0px","1px","4px","9px","12px","16px","25px","28px","32px","36px","42px","49px","64px","81px"],sacraficedLetters:[],wordleAnswer:"",tomorrowWordleAnswer:"",fireStarted:!1,isComplete:!1,finalPasswordDoc:null,finalPasswordHtml:"",showBold:!1,showItalic:!1,showFont:!1,showFontSize:!1,showToolbar:!1,eggPlaced:!1,paulDied:!1,paulHatched:!1,paulEating:!1,passwordsMatch:!1,deathScreenText:"",ChessHelper:null,possibleChessMoves:null,cleanedPossibleChessMoves:null}},mounted:(ze=Object(n.a)(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ae.configure({types:["textStyle"]}),X.a.configure({depth:20}),this.editor=new U.a({content:this.value,extensions:[W.a,J.a,Z.a,H.a,ae,te,X.a,oe.a,ne.a],autofocus:!0,onUpdate:function(){t.password=t.editor.state.doc.textContent,""===t.password&&t.setDefaultStyle(),t.checkPassword()},editorProps:{handlePaste:function(view,e,text){return!t.isComplete&&t.checkForDisabledChars(text.toString())}}}),this.setDefaultStyle(),this.getWordleAnswer();case 5:case"end":return e.stop()}}),e,this)}))),function(){return ze.apply(this,arguments)}),computed:{passwordLength:function(){return We.splitGraphemes(this.password).length},passwordStrength:function(){return Object(o.a)(this.password.matchAll("🏋️‍♂️")).length}},methods:{toggleBold:function(){this.editor.chain().focus().toggleBold().run(),this.checkPassword()},toggleItalic:function(){this.editor.chain().focus().toggleItalic().run(),this.checkPassword()},applyFontSize:function(e){this.editor.chain().focus().setFontSize(e.target.value).run(),this.checkPassword()},applyFont:function(e){this.editor.chain().focus().setFontFamily(e.target.value).run(),this.checkPassword()},setDefaultStyle:function(){this.editor.chain().focus().setFontFamily(this.fonts[0]).run(),this.editor.chain().focus().setFontSize("28px").run()},checkPassword:function(){var e=this;if(this.isComplete)return this.passwordsMatch=this.checkIfPasswordsMatch(),this.addDecorations(),this.passwordsMatch&&(this.editor.setOptions({editable:!1}),this.showToolbar=!1),void clearInterval(Ke);for(var t=[],r=[],o={},n=!0,l=!1,c={currCaptcha:this.currCaptcha,currChessPuzzle:B[this.currChessPuzzle],passwordLength:this.passwordLength,json:this.editor.getJSON(),doc:this.editor.state.doc,sacraficedLetters:this.sacraficedLetters,randomColor:this.randomColor,wordleAnswer:this.wordleAnswer,tomorrowWordleAnswer:this.tomorrowWordleAnswer,fireStarted:this.fireStarted,currYoutubeDuration:this.currYoutubeDuration,randomYoutubeDuration:this.randomYoutubeDuration,eggPlaced:this.eggPlaced,triggerDeathAnimation:this.triggerDeathAnimation,paulHatched:this.paulHatched,paulEating:this.paulEating,currPlace:this.currPlace},d=0;d1&&this.checkCompletionTriggers(this.rules[d].id),d===this.ruleReached-1&&n&&d"===l[c])r=!1,o+=l[c];else if(r)o+=l[c];else{if("&"===l[c]){for(e.includes(n)&&(o+=''));";"!==l[c];)o+=l[c],c++;o+=";",e.includes(n)&&(o+="")}else e.includes(n)?o+='').concat(l[c],""):o+=l[c];n++}return o},getRule:function(e){return this.rules[this.rulesOrder[e-1]]},checkCompletionTriggers:function(e){"egg"!==e||this.eggPlaced||(this.eggPlaced=!0),"hatch"!==e||this.paulEating||this.startPaulEating()},checkTriggers:function(e){"fire"===e&&this.startFire(),"bold-vowels"===e&&(this.showBold=!0,this.showToolbar=!0),"twice-italic"===e&&(this.showItalic=!0),"digit-font-size"===e&&(this.showFontSize=!0),"wingdings"===e&&(this.fonts.push("Wingdings"),this.showFont=!0),"times-new-roman"===e&&(this.fonts.push("Times New Roman"),this.showFont=!0),"hatch"===e&&this.hatchEgg()},getRandomChessPuzzle:function(){return Math.floor(Math.random()*B.length)},getRandomCaptcha:function(){return Y[Math.floor(Math.random()*Y.length)]},generateRandomColor:function(){for(var e="",t=0;t>10||""===e;)t=(e="#000000".replace(/0/g,(function(){return(~~(16*Math.random())).toString(16)}))).split("").reduce((function(a,b){return(parseInt(a)||0)+(parseInt(b)||0)}));return e},refreshColor:function(){this.randomColor=this.generateRandomColor()},checkForPlaceGuess:function(){var e=this.password.toLowerCase().replaceAll(" ",""),t=[];ie.forEach((function(r){e.includes(r.toLowerCase().replaceAll(" ",""))&&t.push(r)})),this.currPlaceGuess=Object(o.a)(new Set(t))},checkForChessGuess:function(){this.ChessHelper||(this.ChessHelper=new Ue(B[this.currChessPuzzle].fen)),this.possibleChessMoves||(this.possibleChessMoves=this.ChessHelper.moves(),this.cleanedPossibleChessMoves=this.possibleChessMoves.map((function(e){return e.replaceAll("+","").replaceAll("x","")})));var e=Object(o.a)(this.password.matchAll(/((?:[KQNBR]?x?|[a-h]x)[a-h][1-8]\+?)/g)),t=[];if(e){e.forEach((function(e){t.push(e[0])})),t=Object(o.a)(new Set(t));for(var r=0;r700?1100:1350;De=setInterval((function(){for(var e=We.splitGraphemes(r.password),t=We.splitGraphemes(r.password),o=0;o=0&&e<=this.password.length){var r=this.editor.view.state.selection;this.editor.chain().focus().insertContentAt({from:e+1,to:e+t+1},"🔥",{updateSelection:!1}).setMeta("addToHistory",!1).run(),this.checkPassword(),this.editor.commands.setTextSelection(r)}},sacrafice:function(e){this.sacraficedLetters=e,this.checkPassword()},setComplete:function(){this.isComplete=!0,this.finalPasswordDoc=this.editor.state.doc,this.finalPasswordHtml=this.editor.getHTML(),this.finalPasswordNormal=this.getNormalizedPassword(this.editor.state.doc),this.editor.commands.clearContent(!0),this.setDefaultStyle()},triggerDeathAnimation:function(e){this.paulDied||(this.deathScreenText=e,this.editor.setOptions({editable:!1}),this.paulDied=!0)},checkYoutubeURL:(Me=Object(n.a)(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(t=/youtube\.com\/watch\?v=(.{11})/.exec(this.password)||/youtu\.be\/(.{11})/.exec(this.password))&&t[1]?(r=t[1])!==this.currYoutubeId&&(this.currYoutubeId=r,this.getYoutubeInfo(r)):""!==this.currYoutubeId&&(qe&&qe.destroy(),this.currYoutubeId="",this.currYoutubeDuration=0,this.checkPassword());case 2:case"end":return e.stop()}}),e,this)}))),function(){return Me.apply(this,arguments)}),hatchEgg:function(){this.paulHatched=!0;var e=this.editor.getText().indexOf("🥚");this.editor.chain().focus().deleteRange({from:e+1,to:e+3}).insertContentAt(e+1,"🐔",{updateSelection:!1}).run()},startPaulEating:function(){var e=this;this.paulEating=!0,setTimeout((function(){e.eatBug(),Ke=setInterval(e.eatBug,15e3)}),3e3)},checkForDisabledChars:function(text){return!(!this.eggPlaced||!text.includes("🥚"))||(!(!this.paulHatched||!text.includes("🐔"))||void 0)},eatBug:function(){if(!this.isComplete){var e=this.password.match(/🐛/g),t=this.editor.getText().indexOf("🐛");if(!e||e.length>=9){var r=this.editor.getText().indexOf("🐔");return this.triggerDeathAnimation(e?"Paul was overfed":"Paul has starved"),this.editor.chain().focus().deleteRange({from:r+1,to:r+3}).insertContentAt(r+1,"🪦",{updateSelection:!1}).run(),void clearInterval(Ke)}this.editor.commands.deleteRange({from:t+1,to:t+3})}},getYoutubeInfo:(Ee=Object(n.a)(regeneratorRuntime.mark((function e(t){var r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.$nextTick((function(){qe&&qe.destroy(),r.currYoutubeDuration=0,r.checkPassword();var e=!1;qe=new YT.Player("youtube-player",{height:"250px",width:"100%",videoId:t,playerVars:{autoplay:0,controls:1},events:{onReady:function(){e||(r.currYoutubeDuration=qe.getDuration(),r.checkPassword(),e=!0)}}})}));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return Ee.apply(this,arguments)})},watch:{currCaptcha:function(){this.checkPassword()},password:function(){var e=this;this.rulesOrder.some((function(t){return"youtube"===e.rules[t].id}))&&this.checkYoutubeURL(),this.errorRules.some((function(t){return"geo"===e.rules[t].id}))&&this.checkForPlaceGuess(),this.errorRules.some((function(t){return"chess"===e.rules[t].id}))&&this.checkForChessGuess()}},beforeDestroy:function(){qe&&qe.destroy(),clearInterval(Ke),clearInterval(De)}},Ze=Je,He=(r(1144),r(1146),Object(N.a)(Ze,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"wrapper"},[t("div",{staticClass:"site-title"},[t("nuxt-link",{attrs:{to:"/"}},[t("logo",{attrs:{color:"black"}})],1)],1),e._v(" "),t("img",{staticClass:"title",attrs:{src:"/password-game/title.svg"}}),e._v(" "),t("div",{staticClass:"password-wrapper",class:{"has-toolbar":e.showToolbar}},[e.isComplete?t("div",{staticClass:"password-box"},[t("div",{staticClass:"password-label"},[e._v("Your password")]),e._v(" "),t("div",{ref:"passwordCopy",staticClass:"ProseMirror password-final",domProps:{innerHTML:e._s(e.finalPasswordHtml)}})]):e._e(),e._v(" "),t("div",{staticClass:"password-box"},[t("div",{staticClass:"password-label"},[e._v("\n "+e._s(e.isComplete?"Please re-type your password":"Please choose a password")+"\n ")]),e._v(" "),t("div",{staticClass:"password-box-inner",class:{complete:e.isComplete}},[t("div",{ref:"passwordBg",staticClass:"password-bg",class:{"password-bg-loading":null===e.editor}}),e._v(" "),t("editor-content",{attrs:{editor:e.editor,spellcheck:"false"}}),e._v(" "),t("div",{staticClass:"password-length",class:{"show-password-length":0!==e.passwordLength&&!e.passwordsMatch}},[e._v("\n "+e._s(e.passwordLength)+"\n ")])],1)]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showToolbar,expression:"showToolbar"}],staticClass:"toolbar"},[e.showBold?t("button",{class:{"is-active":e.editor&&e.editor.isActive("bold")},on:{click:e.toggleBold}},[e._v("\n Bold\n ")]):e._e(),e._v(" "),e.showItalic?t("button",{class:{"is-active":e.editor&&e.editor.isActive("italic")},on:{click:e.toggleItalic}},[e._v("\n Italic\n ")]):e._e(),e._v(" "),e.showFontSize?t("select",{on:{change:e.applyFontSize}},e._l(e.fontSizes,(function(r){return t("option",{key:r,domProps:{value:r,selected:e.editor&&(e.editor.isActive("textStyle",{fontSize:r})||!e.editor.isActive("textStyle")&&"28px"===r)}},[e._v("\n "+e._s(r)+"\n ")])})),0):e._e(),e._v(" "),e.showFont?t("select",{on:{change:e.applyFont}},e._l(e.fonts,(function(r){return t("option",{key:r,domProps:{value:r,selected:e.editor&&e.editor.isActive("textStyle",{fontFamily:r})}},[e._v("\n "+e._s(r)+"\n ")])})),0):e._e()]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.passwordsMatch&&e.finalPasswordDoc,expression:"!passwordsMatch && finalPasswordDoc"}],staticClass:"error-match"},[e._v("\n Your passwords must match\n ")]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.passwordsMatch&&e.finalPasswordDoc,expression:"passwordsMatch && finalPasswordDoc"}],staticClass:"end-screen"},[t("b",[e._v("Congratulations!")]),e._v(" You have sucessfully chosen a password in\n "+e._s(e.passwordLength)+" characters.\n ")]),e._v(" "),e.paulDied?t("div",{staticClass:"death-screen"},[t("div",{staticClass:"death-screen-strip"},[e._v(e._s(e.deathScreenText))])]):e._e(),e._v(" "),e.isComplete?e._e():t("div",[t("RuleList",{attrs:{errorRulesIndex:e.errorRulesIndex,rulesOrder:e.rulesOrder,currCaptcha:e.currCaptcha,currChessPuzzle:e.currChessPuzzle,randomColor:e.randomColor,passwordStrength:e.passwordStrength,randomYoutubeDuration:e.randomYoutubeDuration,currYoutubeId:e.currYoutubeId,currPlace:e.currPlace,currPlaceGuess:e.currPlaceGuess,currChessGuess:e.currChessGuess,numErrors:e.errorRules.length},on:{refreshColor:e.refreshColor,captchaRefresh:e.refreshCaptcha,sacrafice:e.sacrafice,done:e.setComplete}})],1)]),e._v(" "),e.ruleReached>5&&!e.isComplete?t("Footer",{attrs:{bg:"none",color:"black"}}):e._e()],1)}),[],!1,null,"56b284df",null));t.default=He.exports;installComponents(He,{Logo:r(287).default,Footer:r(295).default})},277:function(e,t,r){var content=r(286);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(108).default)("f68e4eaa",content,!0,{sourceMap:!1})},278:function(e,t,r){var content=r(291);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(108).default)("db35a8f0",content,!0,{sourceMap:!1})},279:function(e,t,r){var content=r(294);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(108).default)("c9434642",content,!0,{sourceMap:!1})},280:function(e,t,r){"use strict";r.r(t);r(276);var o={props:{slotId:{type:String,required:!0},adFormat:{type:String,required:!0},isResponsive:{type:Boolean,required:!1,default:!1},adStyle:{type:String,required:!0},minWidth:{type:Number,required:!1,default:-1},maxWidth:{type:Number,required:!1,default:-1}},data:function(){return{hideAd:!1,shouldShow:this.shouldShowAd()}},mounted:function(){var e=this;this.createAds(),this.$addEventListener("resize",(function(){e.hideAd=!e.shouldShowAd()}))},watch:{$route:function(){this.firstLoad=!1,this.createAds()}},methods:{createAds:function(){var e=this;this.$nextTick((function(){e.shouldShowAd()&&(window.adsbygoogle=window.adsbygoogle||[],adsbygoogle.push({}))}))},shouldShowAd:function(){return(-1===this.minWidth||window.innerWidth>=this.minWidth)&&(-1===this.maxWidth||window.innerWidth500?4:3,t=Object(n.a)(this.$store.state.posts),r=this.$route.path;t=t.filter((function(e){return"/".concat(e.path,"/")!==r&&!e.hidden&&!e.hideInRecommended}));for(var o=[],l=0;l1?1:c,o=.5*(1-Math.cos(Math.PI*d)),r=e.startX+(e.x-e.startX)*o,n=e.startY+(e.y-e.startY)*o,e.method.call(e.scrollable,r,n),r===e.x&&n===e.y||t.requestAnimationFrame(w.bind(t,e))}function y(o,r,d){var f,h,m,v,x=l();o===e.body?(f=t,h=t.scrollX||t.pageXOffset,m=t.scrollY||t.pageYOffset,v=n.scroll):(f=o,h=o.scrollLeft,m=o.scrollTop,v=c),w({scrollable:f,method:v,startTime:x,startX:h,startY:m,x:r,y:d})}}}}()},1178:function(t,e,o){"use strict";o(721)},1179:function(t,e,o){var r=o(107)(!1);r.push([t.i,".container[data-v-765197ce]{background:linear-gradient(90deg,#d9a7c7,#fffcdc);overflow-x:hidden}.sell-right[data-v-765197ce]{animation:moveSellRight-765197ce 3s linear infinite}.sell-left[data-v-765197ce],.sell-right[data-v-765197ce]{width:calc(100% + 100px);height:26px;background-image:url(/sell-sell-sell/sell-back.png);background-size:100px auto}.sell-left[data-v-765197ce]{animation:moveSellLeft-765197ce 3s linear infinite}.desc[data-v-765197ce]{max-width:min(475px,90%);font-size:22px;line-height:150%;margin:100px auto 20px;border-radius:10px;padding:0 20px;color:#1f1f1f;text-align:center}.site-title[data-v-765197ce]{max-width:140px;color:#fff;position:absolute;top:15px;left:15px;text-decoration:none;z-index:2;filter:drop-shadow(0 0 5px rgba(0,0,0,.5))}.first-desc[data-v-765197ce]{max-width:min(500px,70%);font-size:22px;line-height:150%;margin:40px auto -20px;border-radius:10px;padding:25px 20px;color:#1f1f1f;text-align:center;background:hsla(0,0%,100%,.5)}.header[data-v-765197ce]{height:100vh;overflow:hidden}.jeff[data-v-765197ce]{display:block;max-width:200px;margin:70px auto;animation:jeffMove-765197ce .08s ease-in-out infinite alternate-reverse}@keyframes arrowMove-765197ce{0%{transform:translateX(-50%) translateY(0)}0%{transform:translateX(-50%) translateY(4px)}}@keyframes jeffMove-765197ce{0%{transform:translateX(-5px)}0%{transform:translateX(5px)}}@keyframes moveSellRight-765197ce{0%{transform:translateX(0)}to{transform:translateX(-100px)}}@keyframes moveSellLeft-765197ce{0%{transform:translateX(-100px)}to{transform:translateX(0)}}.arrow[data-v-765197ce]{width:40px;bottom:50px;transform:translateX(-50%);opacity:.75;cursor:pointer;animation:arrowMove-765197ce 1s ease-in-out infinite alternate-reverse}.arrow[data-v-765197ce],.header-img[data-v-765197ce]{position:absolute;left:50%;z-index:2}.header-img[data-v-765197ce]{max-width:min(500px,90%,65vh);top:50%;transform:translate(-50%,-50%)}@media only screen and (max-width:600px){.desc[data-v-765197ce]{font-size:20px;line-height:27px;margin-bottom:20px;margin-top:90px;max-width:83%}.site-title[data-v-765197ce]{max-width:115px}.first-desc[data-v-765197ce]{font-size:18px;margin-bottom:-20px;margin-top:45px}}",""]),t.exports=r},1315:function(t,e,o){"use strict";o.r(e);var r={props:{width:{type:String,required:!0},height:{type:String,required:!0},speed:{type:String,required:!0},img:{type:String,required:!0},stat:{type:String,required:!0}}},n=(o(1175),o(28)),l=Object(n.a)(r,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"belt",style:{width:"calc(100% + ".concat(t.width,")"),height:t.height,backgroundImage:"url(".concat(t.img,")"),backgroundSize:"".concat(t.width," auto"),"--width":t.width,"--speed":t.speed}}),t._v(" "),e("div",{staticClass:"belt-info-wrapper"},[t.stat?e("div",{staticClass:"belt-info"},[t._v(t._s(t.stat))]):t._e()])])}),[],!1,null,"ce57eb84",null).exports,d=o(1177),c=o.n(d),f={components:{Product:l},mounted:function(){c.a.polyfill()},methods:{scrollDown:function(){window.scrollTo({top:window.innerHeight,left:0,behavior:"smooth"})}}},h=(o(1178),Object(n.a)(f,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("nuxt-link",{staticClass:"site-title",attrs:{to:"/"}},[e("logo",{attrs:{color:"white"}})],1),t._v(" "),e("img",{staticClass:"arrow",attrs:{src:"/sell-sell-sell/arrow.svg"},on:{click:t.scrollDown}}),t._v(" "),e("div",{staticClass:"header"},[e("img",{staticClass:"header-img",attrs:{src:"/sell-sell-sell/sell-title.svg"}}),t._v(" "),t._l(20,(function(o,i){return e("div",{key:i},[e("div",{staticClass:"sell-right"}),t._v(" "),e("div",{staticClass:"sell-left"})])}))],2),t._v(" "),t._m(0),t._v(" "),e("div",{staticClass:"desc"},[t._v("\n Toyota is king of the automobile world with 11 million cars sold per year.\n ")]),t._v(" "),e("product",{attrs:{img:"/sell-sell-sell/minified/toyota.png",height:"100px",width:"300px",speed:"3s",title:"Toyota",stat:"20 Toyotas sold/min"}}),t._v(" "),e("div",{staticClass:"desc"},[t._v("\n First released in 2009, Minecraft is still one of the best selling video\n games.\n ")]),t._v(" "),e("product",{attrs:{img:"/sell-sell-sell/minified/minecraft.png",height:"150px",width:"125px",speed:"1.3s",title:"M",stat:"45 Minecraft copies sold/min"}}),t._v(" "),e("div",{staticClass:"desc"},[t._v("Samsung sells over 40 million TVs a year.")]),t._v(" "),e("product",{attrs:{img:"/sell-sell-sell/minified/samsung-tv.png",height:"145px",width:"230px",speed:".73s",stat:"81 Samsung TVs sold/min"}}),t._v(" "),e("div",{staticClass:"desc"},[t._v("\n Remember when everyone was making fun of AirPods? Whoops.\n ")]),t._v(" "),e("product",{attrs:{img:"/sell-sell-sell/minified/airpods.png",height:"140px",width:"120px",speed:".52s",stat:"114 AirPods sold/min"}}),t._v(" "),t._m(1),t._v(" "),e("product",{attrs:{img:"/sell-sell-sell/minified/advil.png",height:"150px",width:"100px",speed:".47s",stat:"2 Advils sold/sec"}}),t._v(" "),e("div",{staticClass:"desc"},[t._v("\n Cheerios is the most popular cereal with over 100 million boxes sold per\n year.\n ")]),t._v(" "),e("product",{attrs:{img:"/sell-sell-sell/minified/cheerios.png",height:"520px",width:"100px",speed:".9s",stat:"4 Cheerios boxes sold/sec"}}),t._v(" "),e("div",{staticClass:"desc"},[t._v("\n Campbell's Soup has owned the soup market since the 1800s.\n ")]),t._v(" "),e("product",{attrs:{img:"/sell-sell-sell/minified/cambell.png",height:"510px",width:"80px",speed:".63s",stat:"6 Campbell's Chicken Noodle Soups sold/sec"}}),t._v(" "),e("div",{staticClass:"desc"},[t._v("Here is Apple printing money again.")]),t._v(" "),e("product",{attrs:{img:"/sell-sell-sell/minified/iphone.png",height:"678px",width:"90px",speed:".57s",stat:"7 iPhones sold/sec"}}),t._v(" "),e("div",{staticClass:"desc"},[t._v("Adidas produces more than 400 million shoes a year.")]),t._v(" "),e("product",{attrs:{img:"/sell-sell-sell/minified/shoes.png",height:"553px",width:"160px",speed:".49s",stat:"14 pairs of Adidas sold/sec"}}),t._v(" "),t._m(2),t._v(" "),e("product",{attrs:{img:"/sell-sell-sell/minified/pizza.png",height:"880px",width:"90px",speed:".29s",stat:"34 Domino's pizzas sold/sec"}}),t._v(" "),e("div",{staticClass:"desc"},[t._v("\n Wow the pizzas don't look healthy. At least that's the worst thing we\n consume.\n ")]),t._v(" "),e("product",{attrs:{img:"/sell-sell-sell/minified/big-mac.png",height:"1190px",width:"70px",speed:".26s",stat:"75 McDonald's burgers sold/sec"}}),t._v(" "),e("div",{staticClass:"desc"},[t._v("\n Oh well, anyway those are some of the products that have won capitalism.\n ")]),t._v(" "),e("div",{staticClass:"desc"},[t._v("Congratulations to the winners.")]),t._v(" "),e("div",{staticClass:"desc"},[t._v("Wait, what's that? Oh no...")]),t._v(" "),e("img",{staticClass:"jeff",attrs:{src:"/sell-sell-sell/jeff.png"}}),t._v(" "),e("product",{attrs:{img:"/sell-sell-sell/minified/amazon.png",height:"1452px",width:"90px",speed:".24s",stat:""}}),t._v(" "),e("product",{attrs:{img:"/sell-sell-sell/minified/amazon.png",height:"1452px",width:"90px",speed:".24s",stat:"222 Amazon packages delivered/sec"}}),t._v(" "),e("Footer",{attrs:{bg:"none"}})],1)}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"first-desc"},[t._v("\n Capitalism ramped up in the 21st century, and if you're not selling,\n you're\n "),e("i",[t._v("losing")]),t._v(". Here are some products that won capitalism.\n ")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"desc"},[t._v("\n Is capitalism giving you a headache?"),e("br"),e("br"),t._v("\n Buy some Advil!\n ")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"desc"},[t._v("\n The world "),e("i",[t._v("really")]),t._v(" loves pizza, and Domino's is happy to oblige.\n ")])}],!1,null,"765197ce",null));e.default=h.exports;installComponents(h,{Logo:o(287).default,Footer:o(295).default})},276:function(t,e,o){"use strict";var r=o(2),n=o(19),l=o(9),d=o(6),path=o(204),c=o(4),f=o(109),h=o(12),m=o(201),v=o(39),x=o(81),w=o(202),y=o(3),_=o(80).f,k=o(29).f,C=o(21).f,S=o(281),A=o(282).trim,z="Number",T=d[z],E=path[z],I=T.prototype,M=d.TypeError,L=c("".slice),j=c("".charCodeAt),X=function(t){var e=w(t,"number");return"bigint"==typeof e?e:N(e)},N=function(t){var e,o,r,n,l,d,c,code,f=w(t,"number");if(x(f))throw M("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=A(f),43===(e=j(f,0))||45===e){if(88===(o=j(f,2))||120===o)return NaN}else if(48===e){switch(j(f,1)){case 66:case 98:r=2,n=49;break;case 79:case 111:r=8,n=55;break;default:return+f}for(d=(l=L(f,2)).length,c=0;cn)return NaN;return parseInt(l,r)}return+f},O=f(z,!T(" 0o1")||!T("0b1")||T("+0x1")),R=function(t){return v(I,t)&&y((function(){S(t)}))},Y=function(t){var e=arguments.length<1?0:T(X(t));return R(this)?m(Object(e),this,Y):e};Y.prototype=I,O&&!n&&(I.constructor=Y),r({global:!0,constructor:!0,wrap:!0,forced:O},{Number:Y});var W=function(t,source){for(var e,o=l?_(source):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),r=0;o.length>r;r++)h(source,e=o[r])&&!h(t,e)&&C(t,e,k(source,e))};n&&E&&W(path[z],E),(O||n)&&W(path[z],T)},277:function(t,e,o){var content=o(286);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(108).default)("f68e4eaa",content,!0,{sourceMap:!1})},278:function(t,e,o){var content=o(291);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(108).default)("db35a8f0",content,!0,{sourceMap:!1})},279:function(t,e,o){var content=o(294);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(108).default)("c9434642",content,!0,{sourceMap:!1})},280:function(t,e,o){"use strict";o.r(e);o(276);var r={props:{slotId:{type:String,required:!0},adFormat:{type:String,required:!0},isResponsive:{type:Boolean,required:!1,default:!1},adStyle:{type:String,required:!0},minWidth:{type:Number,required:!1,default:-1},maxWidth:{type:Number,required:!1,default:-1}},data:function(){return{hideAd:!1,shouldShow:this.shouldShowAd()}},mounted:function(){var t=this;this.createAds(),this.$addEventListener("resize",(function(){t.hideAd=!t.shouldShowAd()}))},watch:{$route:function(){this.firstLoad=!1,this.createAds()}},methods:{createAds:function(){var t=this;this.$nextTick((function(){t.shouldShowAd()&&(window.adsbygoogle=window.adsbygoogle||[],adsbygoogle.push({}))}))},shouldShowAd:function(){return(-1===this.minWidth||window.innerWidth>=this.minWidth)&&(-1===this.maxWidth||window.innerWidth254)return!1;if(!r.test(t))return!1;var e=t.split("@");return!(e[0].length>64)&&!e[1].split(".").some((function(t){return t.length>63}))}},290:function(t,e,o){"use strict";o(278)},291:function(t,e,o){var r=o(107)(!1);r.push([t.i,".link{border-radius:19px;aspect-ratio:391/145;display:block;position:relative;z-index:2}.link-img{max-width:100%;cursor:pointer;transition:transform .07s linear,filter .1s ease-out,opacity .15s linear;opacity:0}.link-img:hover{transform:scale(1.02);filter:drop-shadow(3px 3px 5px rgba(0,0,0,.17))}",""]),t.exports=r},292:function(t,e,o){"use strict";o.r(e);var r={props:{title:{required:!0,type:String},path:{required:!0,type:String},preload:{required:!1,type:Boolean,default:!1}},data:function(){return{imageLoaded:!1}}},n=(o(290),o(28)),component=Object(n.a)(r,(function(){var t=this,e=t._self._c;return e("nuxt-link",{staticClass:"link",style:{background:t.imageLoaded?"none":"#f1f2f6"},attrs:{prefetch:t.preload,to:"/".concat(t.path,"/")}},[e("img",{staticClass:"link-img",style:{opacity:t.imageLoaded?1:0},attrs:{onload:t.imageLoaded=!0,alt:t.title,src:"/link-images/".concat(t.path,".svg"),loading:"lazy"}})])}),[],!1,null,null,null);e.default=component.exports},293:function(t,e,o){"use strict";o(279)},294:function(t,e,o){var r=o(107),n=o(200),l=o(288),d=r(!1),c=n(l);d.push([t.i,"@font-face{font-family:RobotoCondensedLight;src:url("+c+")}.footer-wrapper[data-v-2b1aca38]{margin-top:15px;padding:30px 20px 45px;text-align:center;font-size:22px;font-family:RobotoCondensedLight,sans-serif}.related-text[data-v-2b1aca38]{font-size:22px}.site-title[data-v-2b1aca38]{margin-top:18px;max-width:140px}.related-posts[data-v-2b1aca38],.site-title[data-v-2b1aca38]{margin-left:auto;margin-right:auto}.related-posts[data-v-2b1aca38]{display:grid;max-width:870px;grid-template-columns:repeat(2,1fr);grid-gap:16px 18px;margin-top:15px;font-size:0}.made-by[data-v-2b1aca38]{font-size:16px;margin-top:15px;opacity:.6;display:none}.made-by a[data-v-2b1aca38]{color:#000}.heart[data-v-2b1aca38]{width:17px;height:17px;position:relative;top:4px}.site-title-logo[data-v-2b1aca38]{height:25px}.newsletter-text[data-v-2b1aca38]{font-size:19px;margin-bottom:8px}.newsletter-img[data-v-2b1aca38]{height:16px;position:relative;top:3px;margin-right:7px}.newsletter-input[data-v-2b1aca38]{font-size:17px;padding:7px 5px 7px 40px;border-radius:5px;border:1px solid #000;max-width:220px;width:100%;background-color:#fff;background-image:url(/general/mail.svg);background-repeat:no-repeat;background-size:auto 15px;background-position:10px;font-family:RobotoCondensedLight;outline:none;color:#000}.newsletter-input[data-v-2b1aca38]::-moz-placeholder{color:rgba(0,0,0,.8)}.newsletter-input[data-v-2b1aca38]::placeholder{color:rgba(0,0,0,.8)}.newsletter-subscribe[data-v-2b1aca38]{background:#fff5d9;font-size:17px;-webkit-appearance:none;-moz-appearance:none;appearance:none;box-shadow:none;border:1px solid #000;border-radius:5px;padding:7px 12px;margin-left:5px;height:100%;cursor:pointer;color:#000;font-family:RobotoCondensedLight}.newsletter-subscribe[data-v-2b1aca38]:hover{transform:scale(1.03)}.newsletter-box[data-v-2b1aca38]{padding:20px 10px;border-radius:5px;margin-left:auto;margin-right:auto;margin-top:10px}.newsletter-inner[data-v-2b1aca38]{display:flex;justify-content:center;height:42px}@media only screen and (max-width:700px){.footer-wrapper[data-v-2b1aca38]{padding-left:12px;padding-right:12px}.related-posts[data-v-2b1aca38]{grid-template-columns:repeat(1,1fr)}.site-title[data-v-2b1aca38]{max-width:145px;margin-top:25px}}",""]),t.exports=d},295:function(t,e,o){"use strict";o.r(e);var r,n=o(284),l=o(10),d=(o(45),o(15),o(203),o(60),o(297)),c=o.n(d),f=o(289),h={props:{color:{type:String,required:!1,default:"black"},bg:{type:String,required:!1,default:"white"}},data:function(){return{related:[],submittedEmail:!1,email:""}},mounted:function(){this.getRelated()},computed:{isValidEmail:function(){return f.validate(this.email)}},methods:{onEmailSubmit:(r=Object(l.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isValidEmail){t.next=4;break}return this.submittedEmail=!0,t.next=4,c()({url:"https://neal.fun/api/newsletter/subscribe",method:"POST",data:{email:this.email}});case 4:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)}),getRelated:function(){var t=window.innerWidth>500?4:3,e=Object(n.a)(this.$store.state.posts),o=this.$route.path;e=e.filter((function(t){return"/".concat(t.path,"/")!==o&&!t.hidden&&!t.hideInRecommended}));for(var r=[],l=0;l=0&&(R=c-(S=Math.sqrt(E)/(2*Math.abs(a))),T=c+S,Math.abs(R)<=1&&m++,Math.abs(T)<=1&&m++,R<-1&&(R=T)),1===m?L<0?l=i+R:f=i+R:2===m&&(l=i+(h<0?T:R),f=i+(h<0?R:T)),!l||!f);i+=2)L=h2;var y={};return l&&(y.rise=M(o,l)),f&&(y.set=M(o,f)),l||f||(y[h>0?"alwaysUp":"alwaysDown"]=!0),y},e.exports=w}()},1111:function(e,t,n){"use strict";function r(e,t){for(var i=0;i=0||(n[t]=source[t]);return n}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(t,"__esModule",{value:!0});var C=function(e){function t(){return e.apply(this,arguments)||this}return f(t,e),t}(m(Error)),L=function(e){function t(t){return e.call(this,"Invalid DateTime: "+t.toMessage())||this}return f(t,e),t}(C),y=function(e){function t(t){return e.call(this,"Invalid Interval: "+t.toMessage())||this}return f(t,e),t}(C),A=function(e){function t(t){return e.call(this,"Invalid Duration: "+t.toMessage())||this}return f(t,e),t}(C),v=function(e){function t(){return e.apply(this,arguments)||this}return f(t,e),t}(C),B=function(e){function t(t){return e.call(this,"Invalid unit "+t)||this}return f(t,e),t}(C),_=function(e){function t(){return e.apply(this,arguments)||this}return f(t,e),t}(C),K=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return f(t,e),t}(C),w="numeric",s="short",U="long",N={year:w,month:w,day:w},D={year:w,month:s,day:w},k={year:w,month:s,day:w,weekday:s},O={year:w,month:U,day:w},x={year:w,month:U,day:w,weekday:U},M={hour:w,minute:w},V={hour:w,minute:w,second:w},I={hour:w,minute:w,second:w,timeZoneName:s},P={hour:w,minute:w,second:w,timeZoneName:U},X={hour:w,minute:w,hourCycle:"h23"},j={hour:w,minute:w,second:w,hourCycle:"h23"},z={hour:w,minute:w,second:w,hourCycle:"h23",timeZoneName:s},G={hour:w,minute:w,second:w,hourCycle:"h23",timeZoneName:U},F={year:w,month:w,day:w,hour:w,minute:w},H={year:w,month:w,day:w,hour:w,minute:w,second:w},$={year:w,month:s,day:w,hour:w,minute:w},W={year:w,month:s,day:w,hour:w,minute:w,second:w},J={year:w,month:s,day:w,weekday:s,hour:w,minute:w},Z={year:w,month:U,day:w,hour:w,minute:w,timeZoneName:s},Y={year:w,month:U,day:w,hour:w,minute:w,second:w,timeZoneName:s},Q={year:w,month:U,day:w,weekday:U,hour:w,minute:w,timeZoneName:U},ee={year:w,month:U,day:w,weekday:U,hour:w,minute:w,second:w,timeZoneName:U},te=function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new K},t.formatOffset=function(e,t){throw new K},t.offset=function(e){throw new K},t.equals=function(e){throw new K},o(e,[{key:"type",get:function(){throw new K}},{key:"name",get:function(){throw new K}},{key:"ianaName",get:function(){return this.name}},{key:"isUniversal",get:function(){throw new K}},{key:"isValid",get:function(){throw new K}}]),e}(),ne=null,re=function(e){function t(){return e.apply(this,arguments)||this}f(t,e);var n=t.prototype;return n.offsetName=function(e,t){return Ze(e,t.format,t.locale)},n.formatOffset=function(e,t){return tt(this.offset(e),t)},n.offset=function(e){return-new Date(e).getTimezoneOffset()},n.equals=function(e){return"system"===e.type},o(t,[{key:"type",get:function(){return"system"}},{key:"name",get:function(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===ne&&(ne=new t),ne}}]),t}(te),ie={};var se={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};var oe={},le=function(e){function t(n){var r;return(r=e.call(this)||this).zoneName=n,r.valid=t.isValidZone(n),r}f(t,e),t.create=function(e){return oe[e]||(oe[e]=new t(e)),oe[e]},t.resetCache=function(){oe={},ie={}},t.isValidSpecifier=function(s){return this.isValidZone(s)},t.isValidZone=function(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}};var n=t.prototype;return n.offsetName=function(e,t){return Ze(e,t.format,t.locale,this.name)},n.formatOffset=function(e,t){return tt(this.offset(e),t)},n.offset=function(e){var t=new Date(e);if(isNaN(t))return NaN;var n,r=(n=this.name,ie[n]||(ie[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),ie[n]),o=r.formatToParts?function(e,t){for(var n=e.formatToParts(t),r=[],i=0;i=0?T:1e3+T))/6e4},n.equals=function(e){return"iana"===e.type&&e.name===this.name},o(t,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),t}(te),ae=["base"],ue=["padTo","floor"],fe={};var ce={};function de(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=ce[n];return r||(r=new Intl.DateTimeFormat(e,t),ce[n]=r),r}var he={};var pe={};var Ee=null;function me(e,t,n,r,o){var l=e.listingMode(n);return"error"===l?null:"en"===l?r(t):o(t)}var Re=function(){function e(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1,n.padTo,n.floor;var r=R(n,ue);if(!t||Object.keys(r).length>0){var o=l({useGrouping:!1},n);n.padTo>0&&(o.minimumIntegerDigits=n.padTo),this.inf=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=he[n];return r||(r=new Intl.NumberFormat(e,t),he[n]=r),r}(e,o)}}return e.prototype.format=function(i){if(this.inf){var e=this.floor?Math.floor(i):i;return this.inf.format(e)}return Pe(this.floor?Math.floor(i):Ge(i,3),this.padTo)},e}(),Te=function(){function e(dt,e,t){this.opts=t,this.originalZone=void 0;var n=void 0;if(this.opts.timeZone)this.dt=dt;else if("fixed"===dt.zone.type){var r=dt.offset/60*-1,o=r>=0?"Etc/GMT+"+r:"Etc/GMT"+r;0!==dt.offset&&le.create(o).valid?(n=o,this.dt=dt):(n="UTC",this.dt=0===dt.offset?dt:dt.setZone("UTC").plus({minutes:dt.offset}),this.originalZone=dt.zone)}else"system"===dt.zone.type?this.dt=dt:"iana"===dt.zone.type?(this.dt=dt,n=dt.zone.name):(n="UTC",this.dt=dt.setZone("UTC").plus({minutes:dt.offset}),this.originalZone=dt.zone);var f=l({},this.opts);f.timeZone=f.timeZone||n,this.dtf=de(e,f)}var t=e.prototype;return t.format=function(){return this.originalZone?this.formatToParts().map((function(e){return e.value})).join(""):this.dtf.format(this.dt.toJSDate())},t.formatToParts=function(){var e=this,t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map((function(t){return"timeZoneName"===t.type?l({},t,{value:e.originalZone.offsetName(e.dt.ts,{locale:e.dt.locale,format:e.opts.timeZoneName})}):t})):t},t.resolvedOptions=function(){return this.dtf.resolvedOptions()},e}(),ge=function(){function e(e,t,n){this.opts=l({style:"long"},n),!t&&xe()&&(this.rtf=function(e,t){void 0===t&&(t={});var n=t;n.base;var r=R(n,ae),o=JSON.stringify([e,r]),l=pe[o];return l||(l=new Intl.RelativeTimeFormat(e,t),pe[o]=l),l}(e,n))}var t=e.prototype;return t.format=function(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n,r){void 0===n&&(n="always");void 0===r&&(r=!1);var o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},l=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&l){var f="days"===e;switch(t){case 1:return f?"tomorrow":"next "+o[e][0];case-1:return f?"yesterday":"last "+o[e][0];case 0:return f?"today":"this "+o[e][0]}}var c=Object.is(t,-0)||t<0,d=Math.abs(t),h=1===d,E=o[e],m=r?h?E[1]:E[2]||E[1]:h?o[e][0]:e;return c?d+" "+m+" ago":"in "+d+" "+m}(t,e,this.opts.numeric,"long"!==this.opts.style)},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e}(),Se=function(){function e(e,t,n,r){var o=function(e){var t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));var n,r,o=e.indexOf("-u-");if(-1===o)return[e];try{n=de(e).resolvedOptions(),r=e}catch(t){var l=e.substring(0,o);n=de(l).resolvedOptions(),r=l}var f=n;return[r,f.numberingSystem,f.calendar]}(e),l=o[0],f=o[1],c=o[2];this.locale=l,this.numberingSystem=t||f||null,this.outputCalendar=n||c||null,this.intl=function(e,t,n){return n||t?(e.includes("-u-")||(e+="-u"),n&&(e+="-ca-"+n),t&&(e+="-nu-"+t),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}e.fromOpts=function(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)},e.create=function(t,n,r,o){void 0===o&&(o=!1);var l=t||Ne.defaultLocale;return new e(l||(o?"en-US":Ee||(Ee=(new Intl.DateTimeFormat).resolvedOptions().locale)),n||Ne.defaultNumberingSystem,r||Ne.defaultOutputCalendar,l)},e.resetCache=function(){Ee=null,ce={},he={},pe={}},e.fromObject=function(t){var n=void 0===t?{}:t,r=n.locale,o=n.numberingSystem,l=n.outputCalendar;return e.create(r,o,l)};var t=e.prototype;return t.listingMode=function(){var e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"},t.clone=function(t){return t&&0!==Object.getOwnPropertyNames(t).length?e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this},t.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(l({},e,{defaultToEN:!0}))},t.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(l({},e,{defaultToEN:!1}))},t.months=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),me(this,e,n,lt,(function(){var n=t?{month:e,day:"numeric"}:{month:e},o=t?"format":"standalone";return r.monthsCache[o][e]||(r.monthsCache[o][e]=function(e){for(var t=[],i=1;i<=12;i++){var dt=Br.utc(2016,i,1);t.push(e(dt))}return t}((function(dt){return r.extract(dt,n,"month")}))),r.monthsCache[o][e]}))},t.weekdays=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),me(this,e,n,ct,(function(){var n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},o=t?"format":"standalone";return r.weekdaysCache[o][e]||(r.weekdaysCache[o][e]=function(e){for(var t=[],i=1;i<=7;i++){var dt=Br.utc(2016,11,13+i);t.push(e(dt))}return t}((function(dt){return r.extract(dt,n,"weekday")}))),r.weekdaysCache[o][e]}))},t.meridiems=function(e){var t=this;return void 0===e&&(e=!0),me(this,void 0,e,(function(){return ht}),(function(){if(!t.meridiemCache){var e={hour:"numeric",hourCycle:"h12"};t.meridiemCache=[Br.utc(2016,11,13,9),Br.utc(2016,11,13,19)].map((function(dt){return t.extract(dt,e,"dayperiod")}))}return t.meridiemCache}))},t.eras=function(e,t){var n=this;return void 0===t&&(t=!0),me(this,e,t,Rt,(function(){var t={era:e};return n.eraCache[e]||(n.eraCache[e]=[Br.utc(-40,1,1),Br.utc(2017,1,1)].map((function(dt){return n.extract(dt,t,"era")}))),n.eraCache[e]}))},t.extract=function(dt,e,t){var n=this.dtFormatter(dt,e).formatToParts().find((function(e){return e.type.toLowerCase()===t}));return n?n.value:null},t.numberFormatter=function(e){return void 0===e&&(e={}),new Re(this.intl,e.forceSimple||this.fastNumbers,e)},t.dtFormatter=function(dt,e){return void 0===e&&(e={}),new Te(dt,this.intl,e)},t.relFormatter=function(e){return void 0===e&&(e={}),new ge(this.intl,this.isEnglish(),e)},t.listFormatter=function(e){return void 0===e&&(e={}),function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=fe[n];return r||(r=new Intl.ListFormat(e,t),fe[n]=r),r}(this.intl,e)},t.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},t.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},o(e,[{key:"fastNumbers",get:function(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),e}(),Ce=null,Le=function(e){function t(t){var n;return(n=e.call(this)||this).fixed=t,n}f(t,e),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(s){if(s){var e=s.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new t(Ye(e[1],e[2]))}return null};var n=t.prototype;return n.offsetName=function(){return this.name},n.formatOffset=function(e,t){return tt(this.fixed,t)},n.offset=function(){return this.fixed},n.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},o(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+tt(this.fixed,"narrow")}},{key:"ianaName",get:function(){return 0===this.fixed?"Etc/UTC":"Etc/GMT"+tt(-this.fixed,"narrow")}},{key:"isUniversal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}],[{key:"utcInstance",get:function(){return null===Ce&&(Ce=new t(0)),Ce}}]),t}(te),ye=function(e){function t(t){var n;return(n=e.call(this)||this).zoneName=t,n}f(t,e);var n=t.prototype;return n.offsetName=function(){return null},n.formatOffset=function(){return""},n.offset=function(){return NaN},n.equals=function(){return!1},o(t,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),t}(te);function Ae(input,e){if(De(input)||null===input)return e;if(input instanceof te)return input;if("string"==typeof input){var t=input.toLowerCase();return"default"===t?e:"local"===t||"system"===t?re.instance:"utc"===t||"gmt"===t?Le.utcInstance:Le.parseSpecifier(t)||le.create(input)}return ke(input)?Le.instance(input):"object"==typeof input&&input.offset&&"number"==typeof input.offset?input:new ye(input)}var ve,Be=function(){return Date.now()},_e="system",Ke=null,we=null,Ue=null,be=60,Ne=function(){function e(){}return e.resetCaches=function(){Se.resetCache(),le.resetCache()},o(e,null,[{key:"now",get:function(){return Be},set:function(e){Be=e}},{key:"defaultZone",get:function(){return Ae(_e,re.instance)},set:function(e){_e=e}},{key:"defaultLocale",get:function(){return Ke},set:function(e){Ke=e}},{key:"defaultNumberingSystem",get:function(){return we},set:function(e){we=e}},{key:"defaultOutputCalendar",get:function(){return Ue},set:function(e){Ue=e}},{key:"twoDigitCutoffYear",get:function(){return be},set:function(e){be=e%100}},{key:"throwOnInvalid",get:function(){return ve},set:function(e){ve=e}}]),e}();function De(e){return void 0===e}function ke(e){return"number"==typeof e}function Oe(e){return"number"==typeof e&&e%1==0}function xe(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function Me(e,t,n){if(0!==e.length)return e.reduce((function(e,r){var o=[t(r),r];return e&&n(e[0],o[0])===e[0]?e:o}),null)[1]}function Ve(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ie(e,t,n){return Oe(e)&&e>=t&&e<=n}function Pe(input,e){return void 0===e&&(e=2),input<0?"-"+(""+-input).padStart(e,"0"):(""+input).padStart(e,"0")}function Xe(e){return De(e)||null===e||""===e?void 0:parseInt(e,10)}function je(e){return De(e)||null===e||""===e?void 0:parseFloat(e)}function ze(e){if(!De(e)&&null!==e&&""!==e){var t=1e3*parseFloat("0."+e);return Math.floor(t)}}function Ge(e,t,n){void 0===n&&(n=!1);var r=Math.pow(10,t);return(n?Math.trunc:Math.round)(e*r)/r}function Fe(e){return e%4==0&&(e%100!=0||e%400==0)}function He(e){return Fe(e)?366:365}function $e(e,t){var n=function(e,t){return e-t*Math.floor(e/t)}(t-1,12)+1;return 2===n?Fe(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function qe(e){var t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t)).setUTCFullYear(e.year,e.month-1,e.day),+t}function We(e){var t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===t||3===r?53:52}function Je(e){return e>99?e:e>Ne.twoDigitCutoffYear?1900+e:2e3+e}function Ze(e,t,n,r){void 0===r&&(r=null);var o=new Date(e),f={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(f.timeZone=r);var c=l({timeZoneName:t},f),d=new Intl.DateTimeFormat(n,c).formatToParts(o).find((function(e){return"timezonename"===e.type.toLowerCase()}));return d?d.value:null}function Ye(e,t){var n=parseInt(e,10);Number.isNaN(n)&&(n=0);var r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function Qe(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new _("Invalid unit value "+e);return t}function et(e,t){var n={};for(var u in e)if(Ve(e,u)){var r=e[u];if(null==r)continue;n[t(u)]=Qe(r)}return n}function tt(e,t){var n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),o=e>=0?"+":"-";switch(t){case"short":return""+o+Pe(n,2)+":"+Pe(r,2);case"narrow":return""+o+n+(r>0?":"+r:"");case"techie":return""+o+Pe(n,2)+Pe(r,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function nt(e){return function(e,t){return t.reduce((function(a,t){return a[t]=e[t],a}),{})}(e,["hour","minute","second","millisecond"])}var it=["January","February","March","April","May","June","July","August","September","October","November","December"],st=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ot=["J","F","M","A","M","J","J","A","S","O","N","D"];function lt(e){switch(e){case"narrow":return[].concat(ot);case"short":return[].concat(st);case"long":return[].concat(it);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var at=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ut=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ft=["M","T","W","T","F","S","S"];function ct(e){switch(e){case"narrow":return[].concat(ft);case"short":return[].concat(ut);case"long":return[].concat(at);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var ht=["AM","PM"],pt=["Before Christ","Anno Domini"],Et=["BC","AD"],mt=["B","A"];function Rt(e){switch(e){case"narrow":return[].concat(mt);case"short":return[].concat(Et);case"long":return[].concat(pt);default:return null}}function Tt(e,t){for(var n,s="",r=S(e);!(n=r()).done;){var o=n.value;o.literal?s+=o.val:s+=t(o.val)}return s}var gt={D:N,DD:D,DDD:O,DDDD:x,t:M,tt:V,ttt:I,tttt:P,T:X,TT:j,TTT:z,TTTT:G,f:F,ff:$,fff:Z,ffff:Q,F:H,FF:W,FFF:Y,FFFF:ee},St=function(){function e(e,t){this.opts=t,this.loc=e,this.systemLoc=null}e.create=function(t,n){return void 0===n&&(n={}),new e(t,n)},e.parseFormat=function(e){for(var t=null,n="",r=!1,o=[],i=0;i0&&o.push({literal:r||/^\s+$/.test(n),val:n}),t=null,n="",r=!r):r||l===t?n+=l:(n.length>0&&o.push({literal:/^\s+$/.test(n),val:n}),n=l,t=l)}return n.length>0&&o.push({literal:r||/^\s+$/.test(n),val:n}),o},e.macroTokenToFormatOpts=function(e){return gt[e]};var t=e.prototype;return t.formatWithSystemDefault=function(dt,e){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(dt,l({},this.opts,e)).format()},t.formatDateTime=function(dt,e){return void 0===e&&(e={}),this.loc.dtFormatter(dt,l({},this.opts,e)).format()},t.formatDateTimeParts=function(dt,e){return void 0===e&&(e={}),this.loc.dtFormatter(dt,l({},this.opts,e)).formatToParts()},t.formatInterval=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e.start,l({},this.opts,t)).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())},t.resolvedOptions=function(dt,e){return void 0===e&&(e={}),this.loc.dtFormatter(dt,l({},this.opts,e)).resolvedOptions()},t.num=function(e,p){if(void 0===p&&(p=0),this.opts.forceSimple)return Pe(e,p);var t=l({},this.opts);return p>0&&(t.padTo=p),this.loc.numberFormatter(t).format(e)},t.formatDateTimeFromString=function(dt,t){var n=this,r="en"===this.loc.listingMode(),o=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,l=function(e,t){return n.loc.extract(dt,e,t)},f=function(e){return dt.isOffsetFixed&&0===dt.offset&&e.allowZ?"Z":dt.isValid?dt.zone.formatOffset(dt.ts,e.format):""},c=function(){return r?function(dt){return ht[dt.hour<12?0:1]}(dt):l({hour:"numeric",hourCycle:"h12"},"dayperiod")},d=function(e,t){return r?function(dt,e){return lt(e)[dt.month-1]}(dt,e):l(t?{month:e}:{month:e,day:"numeric"},"month")},h=function(e,t){return r?function(dt,e){return ct(e)[dt.weekday-1]}(dt,e):l(t?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},E=function(e){return r?function(dt,e){return Rt(e)[dt.year<0?0:1]}(dt,e):l({era:e},"era")};return Tt(e.parseFormat(t),(function(t){switch(t){case"S":return n.num(dt.millisecond);case"u":case"SSS":return n.num(dt.millisecond,3);case"s":return n.num(dt.second);case"ss":return n.num(dt.second,2);case"uu":return n.num(Math.floor(dt.millisecond/10),2);case"uuu":return n.num(Math.floor(dt.millisecond/100));case"m":return n.num(dt.minute);case"mm":return n.num(dt.minute,2);case"h":return n.num(dt.hour%12==0?12:dt.hour%12);case"hh":return n.num(dt.hour%12==0?12:dt.hour%12,2);case"H":return n.num(dt.hour);case"HH":return n.num(dt.hour,2);case"Z":return f({format:"narrow",allowZ:n.opts.allowZ});case"ZZ":return f({format:"short",allowZ:n.opts.allowZ});case"ZZZ":return f({format:"techie",allowZ:n.opts.allowZ});case"ZZZZ":return dt.zone.offsetName(dt.ts,{format:"short",locale:n.loc.locale});case"ZZZZZ":return dt.zone.offsetName(dt.ts,{format:"long",locale:n.loc.locale});case"z":return dt.zoneName;case"a":return c();case"d":return o?l({day:"numeric"},"day"):n.num(dt.day);case"dd":return o?l({day:"2-digit"},"day"):n.num(dt.day,2);case"c":case"E":return n.num(dt.weekday);case"ccc":return h("short",!0);case"cccc":return h("long",!0);case"ccccc":return h("narrow",!0);case"EEE":return h("short",!1);case"EEEE":return h("long",!1);case"EEEEE":return h("narrow",!1);case"L":return o?l({month:"numeric",day:"numeric"},"month"):n.num(dt.month);case"LL":return o?l({month:"2-digit",day:"numeric"},"month"):n.num(dt.month,2);case"LLL":return d("short",!0);case"LLLL":return d("long",!0);case"LLLLL":return d("narrow",!0);case"M":return o?l({month:"numeric"},"month"):n.num(dt.month);case"MM":return o?l({month:"2-digit"},"month"):n.num(dt.month,2);case"MMM":return d("short",!1);case"MMMM":return d("long",!1);case"MMMMM":return d("narrow",!1);case"y":return o?l({year:"numeric"},"year"):n.num(dt.year);case"yy":return o?l({year:"2-digit"},"year"):n.num(dt.year.toString().slice(-2),2);case"yyyy":return o?l({year:"numeric"},"year"):n.num(dt.year,4);case"yyyyyy":return o?l({year:"numeric"},"year"):n.num(dt.year,6);case"G":return E("short");case"GG":return E("long");case"GGGGG":return E("narrow");case"kk":return n.num(dt.weekYear.toString().slice(-2),2);case"kkkk":return n.num(dt.weekYear,4);case"W":return n.num(dt.weekNumber);case"WW":return n.num(dt.weekNumber,2);case"o":return n.num(dt.ordinal);case"ooo":return n.num(dt.ordinal,3);case"q":return n.num(dt.quarter);case"qq":return n.num(dt.quarter,2);case"X":return n.num(Math.floor(dt.ts/1e3));case"x":return n.num(dt.ts);default:return function(t){var r=e.macroTokenToFormatOpts(t);return r?n.formatWithSystemDefault(dt,r):t}(t)}}))},t.formatDurationFromString=function(t,n){var r,o=this,l=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},f=e.parseFormat(n),c=f.reduce((function(e,t){var n=t.literal,r=t.val;return n?e:e.concat(r)}),[]),d=t.shiftTo.apply(t,c.map(l).filter((function(e){return e})));return Tt(f,(r=d,function(e){var t=l(e);return t?o.num(r.get(t),e.length):e}))},e}(),Ct=function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e}(),Lt=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function yt(){for(var e=arguments.length,t=new Array(e),n=0;n1?e-1:0),n=1;n3?at.indexOf(e)+1:ut.indexOf(e)+1),c}var Gt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Ft(e){var t,n=e[1],r=e[2],o=e[3],l=e[4],f=e[5],c=e[6],d=e[7],h=e[8],E=e[9],m=e[10],R=e[11],T=zt(n,l,o,r,f,c,d);return t=h?jt[h]:E?0:Ye(m,R),[T,new Le(t)]}var Ht=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,$t=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,qt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Wt(e){var t=e[1],n=e[2],r=e[3];return[zt(t,e[4],r,n,e[5],e[6],e[7]),Le.utcInstance]}function Jt(e){var t=e[1],n=e[2],r=e[3],o=e[4],l=e[5],f=e[6];return[zt(t,e[7],n,r,o,l,f),Le.utcInstance]}var Zt=yt(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Ut),Yt=yt(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Ut),Qt=yt(/(\d{4})-?(\d{3})/,Ut),en=yt(wt),tn=At((function(e,cursor){return[{year:Ot(e,cursor),month:Ot(e,cursor+1,1),day:Ot(e,cursor+2,1)},null,cursor+3]}),xt,Mt,Vt),nn=At(bt,xt,Mt,Vt),rn=At(Nt,xt,Mt,Vt),sn=At(xt,Mt,Vt);var on=At(xt);var ln=yt(/(\d{4})-(\d\d)-(\d\d)/,kt),an=yt(Dt),un=At(xt,Mt,Vt);var fn={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},cn=l({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},fn),dn=365.2425,hn=30.436875,pn=l({years:{quarters:4,months:12,weeks:52.1775,days:dn,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:hn,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},fn),En=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],mn=En.slice(0).reverse();function Rn(e,t,n){void 0===n&&(n=!1);var r={values:n?t.values:l({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new gn(r)}function Tn(e,t,n,r,o){var l=e[o][n],f=t[n]/l,c=!(Math.sign(f)===Math.sign(r[o]))&&0!==r[o]&&Math.abs(f)<=1?function(e){return e<0?Math.floor(e):Math.ceil(e)}(f):Math.trunc(f);r[o]+=c,t[n]-=c*l}var gn=function(){function e(e){var t="longterm"===e.conversionAccuracy||!1,n=t?pn:cn;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||Se.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}e.fromMillis=function(t,n){return e.fromObject({milliseconds:t},n)},e.fromObject=function(t,n){if(void 0===n&&(n={}),null==t||"object"!=typeof t)throw new _("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new e({values:et(t,e.normalizeUnit),loc:Se.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})},e.fromDurationLike=function(t){if(ke(t))return e.fromMillis(t);if(e.isDuration(t))return t;if("object"==typeof t)return e.fromObject(t);throw new _("Unknown duration argument "+t+" of type "+typeof t)},e.fromISO=function(text,t){var n=function(s){return vt(s,[Pt,Xt])}(text),r=n[0];return r?e.fromObject(r,t):e.invalid("unparsable",'the input "'+text+"\" can't be parsed as ISO 8601")},e.fromISOTime=function(text,t){var n=function(s){return vt(s,[It,on])}(text),r=n[0];return r?e.fromObject(r,t):e.invalid("unparsable",'the input "'+text+"\" can't be parsed as ISO 8601")},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new _("need to specify a reason the Duration is invalid");var r=t instanceof Ct?t:new Ct(t,n);if(Ne.throwOnInvalid)throw new A(r);return new e({invalid:r})},e.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new B(e);return t},e.isDuration=function(e){return e&&e.isLuxonDuration||!1};var t=e.prototype;return t.toFormat=function(e,t){void 0===t&&(t={});var n=l({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?St.create(this.loc,n).formatDurationFromString(this,e):"Invalid Duration"},t.toHuman=function(e){var t=this;void 0===e&&(e={});var n=En.map((function(n){var r=t.values[n];return De(r)?null:t.loc.numberFormatter(l({style:"unit",unitDisplay:"long"},e,{unit:n.slice(0,-1)})).format(r)})).filter((function(e){return e}));return this.loc.listFormatter(l({type:"conjunction",style:e.listStyle||"narrow"},e)).format(n)},t.toObject=function(){return this.isValid?l({},this.values):{}},t.toISO=function(){if(!this.isValid)return null;var s="P";return 0!==this.years&&(s+=this.years+"Y"),0===this.months&&0===this.quarters||(s+=this.months+3*this.quarters+"M"),0!==this.weeks&&(s+=this.weeks+"W"),0!==this.days&&(s+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(s+="T"),0!==this.hours&&(s+=this.hours+"H"),0!==this.minutes&&(s+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(s+=Ge(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===s&&(s+="T0S"),s},t.toISOTime=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var t=this.toMillis();if(t<0||t>=864e5)return null;e=l({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e);var n=this.shiftTo("hours","minutes","seconds","milliseconds"),r="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===n.seconds&&0===n.milliseconds||(r+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===n.milliseconds||(r+=".SSS"));var o=n.toFormat(r);return e.includePrefix&&(o="T"+o),o},t.toJSON=function(){return this.toISO()},t.toString=function(){return this.toISO()},t.toMillis=function(){return this.as("milliseconds")},t.valueOf=function(){return this.toMillis()},t.plus=function(t){if(!this.isValid)return this;for(var n=e.fromDurationLike(t),r={},o=0,l=En;o=0){o=E;var m=0;for(var R in f)m+=this.matrix[R][E]*f[R],f[R]=0;ke(c[E])&&(m+=c[E]);var i=Math.trunc(m);for(var T in l[E]=i,f[E]=(1e3*m-1e3*i)/1e3,c)En.indexOf(T)>En.indexOf(E)&&Tn(this.matrix,c,T,l,E)}else ke(c[E])&&(f[E]=c[E])}for(var S in f)0!==f[S]&&(l[o]+=S===o?f[S]:f[S]/this.matrix[o][S]);return Rn(this,{values:l},!0).normalize()},t.shiftToAll=function(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this},t.negate=function(){if(!this.isValid)return this;for(var e={},t=0,n=Object.keys(this.values);te},t.isBefore=function(e){return!!this.isValid&&this.e<=e},t.contains=function(e){return!!this.isValid&&(this.s<=e&&this.e>e)},t.set=function(t){var n=void 0===t?{}:t,r=n.start,o=n.end;return this.isValid?e.fromDateTimes(r||this.s,o||this.e):this},t.splitAt=function(){var t=this;if(!this.isValid)return[];for(var n=arguments.length,r=new Array(n),o=0;o+this.e?this.e:c;f.push(e.fromDateTimes(s,d)),s=d,i+=1}return f},t.splitBy=function(t){var n=gn.fromDurationLike(t);if(!this.isValid||!n.isValid||0===n.as("milliseconds"))return[];for(var r,s=this.s,o=1,l=[];s+this.e?this.e:f,l.push(e.fromDateTimes(s,r)),s=r,o+=1}return l},t.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},t.overlaps=function(e){return this.e>e.s&&this.s=e.e)},t.equals=function(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))},t.intersection=function(t){if(!this.isValid)return this;var s=this.s>t.s?this.s:t.s,n=this.e=n?null:e.fromDateTimes(s,n)},t.union=function(t){if(!this.isValid)return this;var s=this.st.e?this.e:t.e;return e.fromDateTimes(s,n)},e.merge=function(e){var t=e.sort((function(a,b){return a.s-b.s})).reduce((function(e,t){var n=e[0],r=e[1];return r?r.overlaps(t)||r.abutsStart(t)?[n,r.union(t)]:[n.concat([r]),t]:[n,t]}),[[],null]),n=t[0],r=t[1];return r&&n.push(r),n},e.xor=function(t){for(var n,r,o=null,l=0,f=[],c=t.map((function(i){return[{time:i.s,type:"s"},{time:i.e,type:"e"}]})),d=S((n=Array.prototype).concat.apply(n,c).sort((function(a,b){return a.time-b.time})));!(r=d()).done;){var i=r.value;1===(l+="s"===i.type?1:-1)?o=i.time:(o&&+o!=+i.time&&f.push(e.fromDateTimes(o,i.time)),o=null)}return e.merge(f)},t.difference=function(){for(var t=this,n=arguments.length,r=new Array(n),o=0;o=0&&(n=h,o[h]=E(cursor,e),(r=l.plus(o))>e?(o[h]--,cursor=l.plus(o)):cursor=r)}return[cursor,o,r,n]}(e,t,n),cursor=o[0],l=o[1],f=o[2],c=o[3],d=t-cursor,h=n.filter((function(u){return["hours","minutes","seconds","milliseconds"].indexOf(u)>=0}));if(0===h.length){var E;if(f0?(m=gn.fromMillis(d,r)).shiftTo.apply(m,h).plus(R):R}var Bn={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},_n={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Kn=Bn.hanidec.replace(/[\[|\]]/g,"").split("");function wn(e,t){var n=e.numberingSystem;return void 0===t&&(t=""),new RegExp(""+Bn[n||"latn"]+t)}function Un(e,t){return void 0===t&&(t=function(i){return i}),{regex:e,deser:function(e){var s=e[0];return t(function(e){var t=parseInt(e,10);if(isNaN(t)){t="";for(var i=0;i=o&&code<=l&&(t+=code-o)}}return parseInt(t,10)}return t}(s))}}}var bn="[ "+String.fromCharCode(160)+"]",Nn=new RegExp(bn,"g");function Dn(s){return s.replace(/\./g,"\\.?").replace(Nn,bn)}function kn(s){return s.replace(/\./g,"").replace(Nn," ").toLowerCase()}function On(e,t){return null===e?null:{regex:RegExp(e.map(Dn).join("|")),deser:function(n){var s=n[0];return e.findIndex((function(i){return kn(s)===kn(i)}))+t}}}function xn(e,t){return{regex:e,deser:function(e){return Ye(e[1],e[2])},groups:t}}function Mn(e){return{regex:e,deser:function(e){return e[0]}}}var Vn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};var In=null;function Pn(e,t){var n;return(n=Array.prototype).concat.apply(n,e.map((function(e){return function(e,t){if(e.literal)return e;var n=jn(St.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(void 0)?e:n}(e,t)})))}function Xn(e,input,t){var n=Pn(St.parseFormat(t),e),r=n.map((function(t){return n=t,o=wn(r=e),l=wn(r,"{2}"),f=wn(r,"{3}"),c=wn(r,"{4}"),d=wn(r,"{6}"),h=wn(r,"{1,2}"),E=wn(r,"{1,3}"),m=wn(r,"{1,6}"),R=wn(r,"{1,9}"),T=wn(r,"{2,4}"),S=wn(r,"{4,6}"),C=function(e){return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(e){return e[0]},literal:!0};var t},L=function(e){if(n.literal)return C(e);switch(e.val){case"G":return On(r.eras("short",!1),0);case"GG":return On(r.eras("long",!1),0);case"y":return Un(m);case"yy":case"kk":return Un(T,Je);case"yyyy":case"kkkk":return Un(c);case"yyyyy":return Un(S);case"yyyyyy":return Un(d);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Un(h);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Un(l);case"MMM":return On(r.months("short",!0,!1),1);case"MMMM":return On(r.months("long",!0,!1),1);case"LLL":return On(r.months("short",!1,!1),1);case"LLLL":return On(r.months("long",!1,!1),1);case"o":case"S":return Un(E);case"ooo":case"SSS":return Un(f);case"u":return Mn(R);case"uu":return Mn(h);case"uuu":case"E":case"c":return Un(o);case"a":return On(r.meridiems(),0);case"EEE":return On(r.weekdays("short",!1,!1),1);case"EEEE":return On(r.weekdays("long",!1,!1),1);case"ccc":return On(r.weekdays("short",!0,!1),1);case"cccc":return On(r.weekdays("long",!0,!1),1);case"Z":case"ZZ":return xn(new RegExp("([+-]"+h.source+")(?::("+l.source+"))?"),2);case"ZZZ":return xn(new RegExp("([+-]"+h.source+")("+l.source+")?"),2);case"z":return Mn(/[a-z_+-/]{1,256}?/i);case" ":return Mn(/[^\S\n\r]/);default:return C(e)}}(n)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"},L.token=n,L;var n,r,o,l,f,c,d,h,E,m,R,T,S,C,L})),o=r.find((function(e){return e.invalidReason}));if(o)return{input:input,tokens:n,invalidReason:o.invalidReason};var l=function(e){return["^"+e.map((function(u){return u.regex})).reduce((function(e,t){return e+"("+t.source+")"}),"")+"$",e]}(r),f=l[0],c=l[1],d=RegExp(f,"i"),h=function(input,e,t){var n=input.match(e);if(n){var r={},o=1;for(var i in t)if(Ve(t,i)){var l=t[i],f=l.groups?l.groups+1:1;!l.literal&&l.token&&(r[l.token.val[0]]=l.deser(n.slice(o,o+f))),o+=f}return[n,r]}return[n,{}]}(input,d,c),E=h[0],m=h[1],R=m?function(e){var t,n=null;return De(e.z)||(n=le.create(e.z)),De(e.Z)||(n||(n=new Le(e.Z)),t=e.Z),De(e.q)||(e.M=3*(e.q-1)+1),De(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),De(e.u)||(e.S=ze(e.u)),[Object.keys(e).reduce((function(t,n){var r=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(n);return r&&(t[r]=e[n]),t}),{}),n,t]}(m):[null,null,void 0],T=R[0],S=R[1],C=R[2];if(Ve(m,"a")&&Ve(m,"H"))throw new v("Can't include meridiem when specifying 24-hour format");return{input:input,tokens:n,regex:d,rawMatches:E,matches:m,result:T,zone:S,specificOffset:C}}function jn(e,t){return e?St.create(t,e).formatDateTimeParts((In||(In=Br.fromMillis(1555555555555)),In)).map((function(p){return function(e,t){var n=e.type,r=e.value;if("literal"===n){var o=/^\s+$/.test(r);return{literal:!o,val:o?" ":r}}var style=t[n],l=Vn[n];if("object"==typeof l&&(l=l[style]),l)return{literal:!1,val:l}}(p,e)})):null}var zn=[0,31,59,90,120,151,181,212,243,273,304,334],Gn=[0,31,60,91,121,152,182,213,244,274,305,335];function Fn(e,t){return new Ct("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function Hn(e,t,n){var r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);var o=r.getUTCDay();return 0===o?7:o}function $n(e,t,n){return n+(Fe(e)?Gn:zn)[t-1]}function qn(e,t){var table=Fe(e)?Gn:zn,n=table.findIndex((function(i){return iWe(n)?(t=n+1,d=1):t=n,l({weekYear:t,weekNumber:d,weekday:c},nt(e))}function Jn(e){var t,n=e.weekYear,r=e.weekNumber,o=e.weekday,f=Hn(n,1,4),c=He(n),d=7*r+o-f-3;d<1?d+=He(t=n-1):d>c?(t=n+1,d-=He(n)):t=n;var h=qn(t,d);return l({year:t,month:h.month,day:h.day},nt(e))}function Zn(e){var t=e.year;return l({year:t,ordinal:$n(t,e.month,e.day)},nt(e))}function Yn(e){var t=e.year,n=qn(t,e.ordinal);return l({year:t,month:n.month,day:n.day},nt(e))}function Qn(e){var t=Oe(e.year),n=Ie(e.month,1,12),r=Ie(e.day,1,$e(e.year,e.month));return t?n?!r&&Fn("day",e.day):Fn("month",e.month):Fn("year",e.year)}function er(e){var t=e.hour,n=e.minute,r=e.second,o=e.millisecond,l=Ie(t,0,23)||24===t&&0===n&&0===r&&0===o,f=Ie(n,0,59),c=Ie(r,0,59),d=Ie(o,0,999);return l?f?c?!d&&Fn("millisecond",o):Fn("second",r):Fn("minute",n):Fn("hour",t)}var nr="Invalid DateTime",rr=864e13;function ir(e){return new Ct("unsupported zone",'the zone "'+e.name+'" is not supported')}function sr(dt){return null===dt.weekData&&(dt.weekData=Wn(dt.c)),dt.weekData}function or(e,t){var n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Br(l({},n,t,{old:n}))}function lr(e,t,n){var r=e-60*t*1e3,o=n.offset(r);if(t===o)return[r,t];r-=60*(o-t)*1e3;var l=n.offset(r);return o===l?[r,o]:[e-60*Math.min(o,l)*1e3,Math.max(o,l)]}function ar(e,t){var n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function ur(e,t,n){return lr(qe(e),t,n)}function fr(e,t){var n=e.o,r=e.c.year+Math.trunc(t.years),o=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),f=l({},e.c,{year:r,month:o,day:Math.min(e.c.day,$e(r,o))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),c=gn.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),d=lr(qe(f),n,e.zone),h=d[0],E=d[1];return 0!==c&&(h+=c,E=e.zone.offset(h)),{ts:h,o:E}}function cr(e,t,n,r,text,o){var f=n.setZone,c=n.zone;if(e&&0!==Object.keys(e).length||t){var d=t||c,h=Br.fromObject(e,l({},n,{zone:d,specificOffset:o}));return f?h:h.setZone(c)}return Br.invalid(new Ct("unparsable",'the input "'+text+"\" can't be parsed as "+r))}function dr(dt,e,t){return void 0===t&&(t=!0),dt.isValid?St.create(Se.create("en-US"),{allowZ:t,forceSimple:!0}).formatDateTimeFromString(dt,e):null}function pr(e,t){var n=e.c.year>9999||e.c.year<0,r="";return n&&e.c.year>=0&&(r+="+"),r+=Pe(e.c.year,n?6:4),t?(r+="-",r+=Pe(e.c.month),r+="-",r+=Pe(e.c.day)):(r+=Pe(e.c.month),r+=Pe(e.c.day)),r}function Er(e,t,n,r,o,l){var f=Pe(e.c.hour);return t?(f+=":",f+=Pe(e.c.minute),0===e.c.second&&n||(f+=":")):f+=Pe(e.c.minute),0===e.c.second&&n||(f+=Pe(e.c.second),0===e.c.millisecond&&r||(f+=".",f+=Pe(e.c.millisecond,3))),o&&(e.isOffsetFixed&&0===e.offset&&!l?f+="Z":e.o<0?(f+="-",f+=Pe(Math.trunc(-e.o/60)),f+=":",f+=Pe(Math.trunc(-e.o%60))):(f+="+",f+=Pe(Math.trunc(e.o/60)),f+=":",f+=Pe(Math.trunc(e.o%60)))),l&&(f+="["+e.zone.ianaName+"]"),f}var mr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Rr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Tr={ordinal:1,hour:0,minute:0,second:0,millisecond:0},gr=["year","month","day","hour","minute","second","millisecond"],Sr=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Cr=["year","ordinal","hour","minute","second","millisecond"];function Lr(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new B(e);return t}function yr(e,t){var n,r,o=Ae(t.zone,Ne.defaultZone),l=Se.fromObject(t),f=Ne.now();if(De(e.year))n=f;else{for(var c=0,d=gr;c=1)return o(h,d)}return o(e>t?-0:0,n.units[n.units.length-1])}function vr(e){var t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}var Br=function(){function e(e){var t=e.zone||Ne.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new Ct("invalid input"):null)||(t.isValid?null:ir(t));this.ts=De(e.ts)?Ne.now():e.ts;var r=null,o=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t)){var l=[e.old.c,e.old.o];r=l[0],o=l[1]}else{var f=t.offset(this.ts);r=ar(this.ts,f),r=(n=Number.isNaN(r.year)?new Ct("invalid input"):null)?null:r,o=n?null:f}this._zone=t,this.loc=e.loc||Se.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=o,this.isLuxonDateTime=!0}e.now=function(){return new e({})},e.local=function(){var e=vr(arguments),t=e[0],n=e[1],r=n[0],o=n[1],l=n[2],f=n[3],c=n[4],d=n[5],h=n[6];return yr({year:r,month:o,day:l,hour:f,minute:c,second:d,millisecond:h},t)},e.utc=function(){var e=vr(arguments),t=e[0],n=e[1],r=n[0],o=n[1],l=n[2],f=n[3],c=n[4],d=n[5],h=n[6];return t.zone=Le.utcInstance,yr({year:r,month:o,day:l,hour:f,minute:c,second:d,millisecond:h},t)},e.fromJSDate=function(t,n){void 0===n&&(n={});var r,o=(r=t,"[object Date]"===Object.prototype.toString.call(r)?t.valueOf():NaN);if(Number.isNaN(o))return e.invalid("invalid input");var l=Ae(n.zone,Ne.defaultZone);return l.isValid?new e({ts:o,zone:l,loc:Se.fromObject(n)}):e.invalid(ir(l))},e.fromMillis=function(t,n){if(void 0===n&&(n={}),ke(t))return t<-rr||t>rr?e.invalid("Timestamp out of range"):new e({ts:t,zone:Ae(n.zone,Ne.defaultZone),loc:Se.fromObject(n)});throw new _("fromMillis requires a numerical input, but received a "+typeof t+" with value "+t)},e.fromSeconds=function(t,n){if(void 0===n&&(n={}),ke(t))return new e({ts:1e3*t,zone:Ae(n.zone,Ne.defaultZone),loc:Se.fromObject(n)});throw new _("fromSeconds requires a numerical input")},e.fromObject=function(t,n){void 0===n&&(n={}),t=t||{};var r=Ae(n.zone,Ne.defaultZone);if(!r.isValid)return e.invalid(ir(r));var o=Ne.now(),l=De(n.specificOffset)?r.offset(o):n.specificOffset,f=et(t,Lr),c=!De(f.ordinal),d=!De(f.year),h=!De(f.month)||!De(f.day),E=d||h,m=f.weekYear||f.weekNumber,R=Se.fromObject(n);if((E||c)&&m)throw new v("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&c)throw new v("Can't mix ordinal dates with month/day");var T,C,L=m||f.weekday&&!E,y=ar(o,l);L?(T=Sr,C=Rr,y=Wn(y)):c?(T=Cr,C=Tr,y=Zn(y)):(T=gr,C=mr);for(var A,B=!1,_=S(T);!(A=_()).done;){var u=A.value;De(f[u])?f[u]=B?C[u]:y[u]:B=!0}var K=L?function(e){var t=Oe(e.weekYear),n=Ie(e.weekNumber,1,We(e.weekYear)),r=Ie(e.weekday,1,7);return t?n?!r&&Fn("weekday",e.weekday):Fn("week",e.week):Fn("weekYear",e.weekYear)}(f):c?function(e){var t=Oe(e.year),n=Ie(e.ordinal,1,He(e.year));return t?!n&&Fn("ordinal",e.ordinal):Fn("year",e.year)}(f):Qn(f),w=K||er(f);if(w)return e.invalid(w);var U=ur(L?Jn(f):c?Yn(f):f,l,r),N=new e({ts:U[0],zone:r,o:U[1],loc:R});return f.weekday&&E&&t.weekday!==N.weekday?e.invalid("mismatched weekday","you can't specify both a weekday of "+f.weekday+" and a date of "+N.toISO()):N},e.fromISO=function(text,e){void 0===e&&(e={});var t=function(s){return vt(s,[Zt,tn],[Yt,nn],[Qt,rn],[en,sn])}(text);return cr(t[0],t[1],e,"ISO 8601",text)},e.fromRFC2822=function(text,e){void 0===e&&(e={});var t=function(s){return vt(function(s){return s.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(s),[Gt,Ft])}(text);return cr(t[0],t[1],e,"RFC 2822",text)},e.fromHTTP=function(text,e){void 0===e&&(e={});var t=function(s){return vt(s,[Ht,Wt],[$t,Wt],[qt,Jt])}(text);return cr(t[0],t[1],e,"HTTP",e)},e.fromFormat=function(text,t,n){if(void 0===n&&(n={}),De(text)||De(t))throw new _("fromFormat requires an input string and a format");var r=n,o=r.locale,l=void 0===o?null:o,f=r.numberingSystem,c=void 0===f?null:f,d=function(e,input,t){var n=Xn(e,input,t);return[n.result,n.zone,n.specificOffset,n.invalidReason]}(Se.fromOpts({locale:l,numberingSystem:c,defaultToEN:!0}),text,t),h=d[0],E=d[1],m=d[2],R=d[3];return R?e.invalid(R):cr(h,E,n,"format "+t,text,m)},e.fromString=function(text,t,n){return void 0===n&&(n={}),e.fromFormat(text,t,n)},e.fromSQL=function(text,e){void 0===e&&(e={});var t=function(s){return vt(s,[ln,tn],[an,un])}(text);return cr(t[0],t[1],e,"SQL",text)},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new _("need to specify a reason the DateTime is invalid");var r=t instanceof Ct?t:new Ct(t,n);if(Ne.throwOnInvalid)throw new L(r);return new e({invalid:r})},e.isDateTime=function(e){return e&&e.isLuxonDateTime||!1},e.parseFormatForOpts=function(e,t){void 0===t&&(t={});var n=jn(e,Se.fromObject(t));return n?n.map((function(e){return e?e.val:null})).join(""):null},e.expandFormat=function(e,t){return void 0===t&&(t={}),Pn(St.parseFormat(e),Se.fromObject(t)).map((function(e){return e.val})).join("")};var t=e.prototype;return t.get=function(e){return this[e]},t.resolvedLocaleOptions=function(e){void 0===e&&(e={});var t=St.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},t.toUTC=function(e,t){return void 0===e&&(e=0),void 0===t&&(t={}),this.setZone(Le.instance(e),t)},t.toLocal=function(){return this.setZone(Ne.defaultZone)},t.setZone=function(t,n){var r=void 0===n?{}:n,o=r.keepLocalTime,l=void 0!==o&&o,f=r.keepCalendarTime,c=void 0!==f&&f;if((t=Ae(t,Ne.defaultZone)).equals(this.zone))return this;if(t.isValid){var d=this.ts;if(l||c){var h=t.offset(this.ts);d=ur(this.toObject(),h,t)[0]}return or(this,{ts:d,zone:t})}return e.invalid(ir(t))},t.reconfigure=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.numberingSystem,o=t.outputCalendar;return or(this,{loc:this.loc.clone({locale:n,numberingSystem:r,outputCalendar:o})})},t.setLocale=function(e){return this.reconfigure({locale:e})},t.set=function(e){if(!this.isValid)return this;var t,n=et(e,Lr),r=!De(n.weekYear)||!De(n.weekNumber)||!De(n.weekday),o=!De(n.ordinal),f=!De(n.year),c=!De(n.month)||!De(n.day),d=f||c,h=n.weekYear||n.weekNumber;if((d||o)&&h)throw new v("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&o)throw new v("Can't mix ordinal dates with month/day");r?t=Jn(l({},Wn(this.c),n)):De(n.ordinal)?(t=l({},this.toObject(),n),De(n.day)&&(t.day=Math.min($e(t.year,t.month),t.day))):t=Yn(l({},Zn(this.c),n));var E=ur(t,this.o,this.zone);return or(this,{ts:E[0],o:E[1]})},t.plus=function(e){return this.isValid?or(this,fr(this,gn.fromDurationLike(e))):this},t.minus=function(e){return this.isValid?or(this,fr(this,gn.fromDurationLike(e).negate())):this},t.startOf=function(e){if(!this.isValid)return this;var t={},n=gn.normalizeUnit(e);switch(n){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===n&&(t.weekday=1),"quarters"===n){var q=Math.ceil(this.month/3);t.month=3*(q-1)+1}return this.set(t)},t.endOf=function(e){var t;return this.isValid?this.plus((t={},t[e]=1,t)).startOf(e).minus(1):this},t.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?St.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):nr},t.toLocaleString=function(e,t){return void 0===e&&(e=N),void 0===t&&(t={}),this.isValid?St.create(this.loc.clone(t),e).formatDateTime(this):nr},t.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?St.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},t.toISO=function(e){var t=void 0===e?{}:e,n=t.format,r=void 0===n?"extended":n,o=t.suppressSeconds,l=void 0!==o&&o,f=t.suppressMilliseconds,c=void 0!==f&&f,d=t.includeOffset,h=void 0===d||d,E=t.extendedZone,m=void 0!==E&&E;if(!this.isValid)return null;var R="extended"===r,T=pr(this,R);return T+="T",T+=Er(this,R,l,c,h,m)},t.toISODate=function(e){var t=(void 0===e?{}:e).format,n=void 0===t?"extended":t;return this.isValid?pr(this,"extended"===n):null},t.toISOWeekDate=function(){return dr(this,"kkkk-'W'WW-c")},t.toISOTime=function(e){var t=void 0===e?{}:e,n=t.suppressMilliseconds,r=void 0!==n&&n,o=t.suppressSeconds,l=void 0!==o&&o,f=t.includeOffset,c=void 0===f||f,d=t.includePrefix,h=void 0!==d&&d,E=t.extendedZone,m=void 0!==E&&E,R=t.format,T=void 0===R?"extended":R;return this.isValid?(h?"T":"")+Er(this,"extended"===T,l,r,c,m):null},t.toRFC2822=function(){return dr(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},t.toHTTP=function(){return dr(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},t.toSQLDate=function(){return this.isValid?pr(this,!0):null},t.toSQLTime=function(e){var t=void 0===e?{}:e,n=t.includeOffset,r=void 0===n||n,o=t.includeZone,l=void 0!==o&&o,f=t.includeOffsetSpace,c="HH:mm:ss.SSS";return(l||r)&&((void 0===f||f)&&(c+=" "),l?c+="z":r&&(c+="ZZ")),dr(this,c,!0)},t.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},t.toString=function(){return this.isValid?this.toISO():nr},t.valueOf=function(){return this.toMillis()},t.toMillis=function(){return this.isValid?this.ts:NaN},t.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},t.toUnixInteger=function(){return this.isValid?Math.floor(this.ts/1e3):NaN},t.toJSON=function(){return this.toISO()},t.toBSON=function(){return this.toJSDate()},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var base=l({},this.c);return e.includeConfig&&(base.outputCalendar=this.outputCalendar,base.numberingSystem=this.loc.numberingSystem,base.locale=this.loc.locale),base},t.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},t.diff=function(e,t,n){if(void 0===t&&(t="milliseconds"),void 0===n&&(n={}),!this.isValid||!e.isValid)return gn.invalid("created by diffing an invalid DateTime");var r,o=l({locale:this.locale,numberingSystem:this.numberingSystem},n),f=(r=t,Array.isArray(r)?r:[r]).map(gn.normalizeUnit),c=e.valueOf()>this.valueOf(),d=vn(c?this:e,c?e:this,f,o);return c?d.negate():d},t.diffNow=function(t,n){return void 0===t&&(t="milliseconds"),void 0===n&&(n={}),this.diff(e.now(),t,n)},t.until=function(e){return this.isValid?Ln.fromDateTimes(this,e):this},t.hasSame=function(e,t){if(!this.isValid)return!1;var n=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t)<=n&&n<=r.endOf(t)},t.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},t.toRelative=function(t){if(void 0===t&&(t={}),!this.isValid)return null;var base=t.base||e.fromObject({},{zone:this.zone}),n=t.padding?thisthis.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return Fe(this.year)}},{key:"daysInMonth",get:function(){return $e(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?He(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?We(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return N}},{key:"DATE_MED",get:function(){return D}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return k}},{key:"DATE_FULL",get:function(){return O}},{key:"DATE_HUGE",get:function(){return x}},{key:"TIME_SIMPLE",get:function(){return M}},{key:"TIME_WITH_SECONDS",get:function(){return V}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return I}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return P}},{key:"TIME_24_SIMPLE",get:function(){return X}},{key:"TIME_24_WITH_SECONDS",get:function(){return j}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return z}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return G}},{key:"DATETIME_SHORT",get:function(){return F}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return H}},{key:"DATETIME_MED",get:function(){return $}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return W}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return J}},{key:"DATETIME_FULL",get:function(){return Z}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return Y}},{key:"DATETIME_HUGE",get:function(){return Q}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return ee}}]),e}();function _r(e){if(Br.isDateTime(e))return e;if(e&&e.valueOf&&ke(e.valueOf()))return Br.fromJSDate(e);if(e&&"object"==typeof e)return Br.fromObject(e);throw new _("Unknown datetime argument: "+e+", of type "+typeof e)}t.DateTime=Br,t.Duration=gn,t.FixedOffsetZone=Le,t.IANAZone=le,t.Info=yn,t.Interval=Ln,t.InvalidZone=ye,t.Settings=Ne,t.SystemZone=re,t.VERSION="3.3.0",t.Zone=te},1132:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=n(307).d.create({name:"doc",topNode:!0,content:"block+"})},1133:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(307);const o=r.d.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:e}){return["p",Object(r.k)(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}})},1134:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=n(307).d.create({name:"text",group:"inline"})},1135:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(307);const o=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,l=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,f=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,c=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,d=r.c.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!==e.style.fontWeight&&null},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],renderHTML({HTMLAttributes:e}){return["strong",Object(r.k)(this.options.HTMLAttributes,e),0]},addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Object(r.i)({find:o,type:this.type}),Object(r.i)({find:f,type:this.type})]},addPasteRules(){return[Object(r.j)({find:l,type:this.type}),Object(r.j)({find:c,type:this.type})]}})},1136:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(307);const o=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,l=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,f=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,c=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,d=r.c.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"em"},{tag:"i",getAttrs:e=>"normal"!==e.style.fontStyle&&null},{style:"font-style=italic"}],renderHTML({HTMLAttributes:e}){return["em",Object(r.k)(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Object(r.i)({find:o,type:this.type}),Object(r.i)({find:f,type:this.type})]},addPasteRules(){return[Object(r.j)({find:l,type:this.type}),Object(r.j)({find:c,type:this.type})]}})},1137:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(1138));t.default=o.default},1138:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(573),l=r(n(1139)),f=r(n(1140));class c{static nextBreak(e,t){if(void 0===t&&(t=0),t<0)return 0;if(t>=e.length-1)return e.length;const n=l.default.codePointAt(e,t),r=c.getGraphemeBreakProperty(n),o=c.getEmojiProperty(n),f=[],d=[];for(let i=t+1;i=1){const n=e.charCodeAt(t-1);return 55296<=n&&n<=56319?1024*(n-55296)+(code-56320)+65536:code}return code}static shouldBreak(e,t,n,o,l,f){const c=[e].concat(t).concat([n]),d=[o].concat(l).concat([f]),h=c[c.length-2],E=n,m=f,R=c.lastIndexOf(r.CLUSTER_BREAK.REGIONAL_INDICATOR);if(R>0&&c.slice(1,R).every((function(e){return e===r.CLUSTER_BREAK.REGIONAL_INDICATOR}))&&-1===[r.CLUSTER_BREAK.PREPEND,r.CLUSTER_BREAK.REGIONAL_INDICATOR].indexOf(h))return c.filter((function(e){return e===r.CLUSTER_BREAK.REGIONAL_INDICATOR})).length%2==1?3:4;if(h===r.CLUSTER_BREAK.CR&&E===r.CLUSTER_BREAK.LF)return 0;if(h===r.CLUSTER_BREAK.CONTROL||h===r.CLUSTER_BREAK.CR||h===r.CLUSTER_BREAK.LF)return 1;if(E===r.CLUSTER_BREAK.CONTROL||E===r.CLUSTER_BREAK.CR||E===r.CLUSTER_BREAK.LF)return 1;if(h===r.CLUSTER_BREAK.L&&(E===r.CLUSTER_BREAK.L||E===r.CLUSTER_BREAK.V||E===r.CLUSTER_BREAK.LV||E===r.CLUSTER_BREAK.LVT))return 0;if(!(h!==r.CLUSTER_BREAK.LV&&h!==r.CLUSTER_BREAK.V||E!==r.CLUSTER_BREAK.V&&E!==r.CLUSTER_BREAK.T))return 0;if((h===r.CLUSTER_BREAK.LVT||h===r.CLUSTER_BREAK.T)&&E===r.CLUSTER_BREAK.T)return 0;if(E===r.CLUSTER_BREAK.EXTEND||E===r.CLUSTER_BREAK.ZWJ)return 0;if(E===r.CLUSTER_BREAK.SPACINGMARK)return 0;if(h===r.CLUSTER_BREAK.PREPEND)return 0;const T=d.slice(0,-1).lastIndexOf(r.EXTENDED_PICTOGRAPHIC);return-1!==T&&d[T]===r.EXTENDED_PICTOGRAPHIC&&c.slice(T+1,-2).every((function(e){return e===r.CLUSTER_BREAK.EXTEND}))&&h===r.CLUSTER_BREAK.ZWJ&&m===r.EXTENDED_PICTOGRAPHIC?0:-1!==t.indexOf(r.CLUSTER_BREAK.REGIONAL_INDICATOR)?2:h===r.CLUSTER_BREAK.REGIONAL_INDICATOR&&E===r.CLUSTER_BREAK.REGIONAL_INDICATOR?0:1}}},1140:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(e,t){this._index=0,this._str=e,this._nextBreak=t}[Symbol.iterator](){return this}next(){let e;if((e=this._nextBreak(this._str,this._index))0&&m(n.width)/element.offsetWidth||1,o=element.offsetHeight>0&&m(n.height)/element.offsetHeight||1);var d=(f(element)?l(element):window).visualViewport,h=!T()&&t,E=(n.left+(h&&d?d.offsetLeft:0))/r,R=(n.top+(h&&d?d.offsetTop:0))/o,S=n.width/r,C=n.height/o;return{width:S,height:C,top:R,right:E+S,bottom:R+C,left:E,x:E,y:R}}function C(e){var t=l(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function L(element){return element?(element.nodeName||"").toLowerCase():null}function y(element){return((f(element)?element.ownerDocument:element.document)||window.document).documentElement}function A(element){return S(y(element)).left+C(element).scrollLeft}function v(element){return l(element).getComputedStyle(element)}function B(element){var e=v(element),t=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+r+n)}function _(e,t,n){void 0===n&&(n=!1);var r,element,o=c(t),f=c(t)&&function(element){var rect=element.getBoundingClientRect(),e=m(rect.width)/element.offsetWidth||1,t=m(rect.height)/element.offsetHeight||1;return 1!==e||1!==t}(t),d=y(t),rect=S(e,f,n),h={scrollLeft:0,scrollTop:0},E={x:0,y:0};return(o||!o&&!n)&&(("body"!==L(t)||B(d))&&(h=(r=t)!==l(r)&&c(r)?{scrollLeft:(element=r).scrollLeft,scrollTop:element.scrollTop}:C(r)),c(t)?((E=S(t,!0)).x+=t.clientLeft,E.y+=t.clientTop):d&&(E.x=A(d))),{x:rect.left+h.scrollLeft-E.x,y:rect.top+h.scrollTop-E.y,width:rect.width,height:rect.height}}function K(element){var e=S(element),t=element.offsetWidth,n=element.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:element.offsetLeft,y:element.offsetTop,width:t,height:n}}function w(element){return"html"===L(element)?element:element.assignedSlot||element.parentNode||(d(element)?element.host:null)||y(element)}function U(e){return["html","body","#document"].indexOf(L(e))>=0?e.ownerDocument.body:c(e)&&B(e)?e:U(w(e))}function N(element,e){var t;void 0===e&&(e=[]);var n=U(element),r=n===(null==(t=element.ownerDocument)?void 0:t.body),o=l(n),f=r?[o].concat(o.visualViewport||[],B(n)?n:[]):n,c=e.concat(f);return r?c:c.concat(N(w(f)))}function D(element){return["table","td","th"].indexOf(L(element))>=0}function k(element){return c(element)&&"fixed"!==v(element).position?element.offsetParent:null}function O(element){for(var e=l(element),t=k(element);t&&D(t)&&"static"===v(t).position;)t=k(t);return t&&("html"===L(t)||"body"===L(t)&&"static"===v(t).position)?e:t||function(element){var e=/firefox/i.test(R());if(/Trident/i.test(R())&&c(element)&&"fixed"===v(element).position)return null;var t=w(element);for(d(t)&&(t=t.host);c(t)&&["html","body"].indexOf(L(t))<0;){var n=v(t);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return t;t=t.parentNode}return null}(element)||e}var x="top",M="bottom",V="right",I="left",P="auto",X=[x,M,V,I],j="start",z="end",G="viewport",F="popper",H=X.reduce((function(e,t){return e.concat([t+"-"+j,t+"-"+z])}),[]),$=[].concat(X,[P]).reduce((function(e,t){return e.concat([t,t+"-"+j,t+"-"+z])}),[]),W=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function J(e){var map=new Map,t=new Set,n=[];function r(e){t.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!t.has(e)){var n=map.get(e);n&&r(n)}})),n.push(e)}return e.forEach((function(e){map.set(e.name,e)})),e.forEach((function(e){t.has(e.name)||r(e)})),n}var Z={placement:"bottom",modifiers:[],strategy:"absolute"};function Y(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function ie(e){var t,n=e.reference,element=e.element,r=e.placement,o=r?te(r):null,l=r?ne(r):null,f=n.x+n.width/2-element.width/2,c=n.y+n.height/2-element.height/2;switch(o){case x:t={x:f,y:n.y-element.height};break;case M:t={x:f,y:n.y+n.height};break;case V:t={x:n.x+n.width,y:c};break;case I:t={x:n.x-element.width,y:c};break;default:t={x:n.x,y:n.y}}var d=o?re(o):null;if(null!=d){var h="y"===d?"height":"width";switch(l){case j:t[d]=t[d]-(n[h]/2-element[h]/2);break;case z:t[d]=t[d]+(n[h]/2-element[h]/2)}}return t}var se={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oe(e){var t,n=e.popper,r=e.popperRect,o=e.placement,f=e.variation,c=e.offsets,d=e.position,h=e.gpuAcceleration,E=e.adaptive,R=e.roundOffsets,T=e.isFixed,S=c.x,C=void 0===S?0:S,L=c.y,A=void 0===L?0:L,B="function"==typeof R?R({x:C,y:A}):{x:C,y:A};C=B.x,A=B.y;var _=c.hasOwnProperty("x"),K=c.hasOwnProperty("y"),w=I,U=x,N=window;if(E){var D=O(n),k="clientHeight",P="clientWidth";if(D===l(n)&&"static"!==v(D=y(n)).position&&"absolute"===d&&(k="scrollHeight",P="scrollWidth"),o===x||(o===I||o===V)&&f===z)U=M,A-=(T&&D===N&&N.visualViewport?N.visualViewport.height:D[k])-r.height,A*=h?1:-1;if(o===I||(o===x||o===M)&&f===z)w=V,C-=(T&&D===N&&N.visualViewport?N.visualViewport.width:D[P])-r.width,C*=h?1:-1}var X,j=Object.assign({position:d},E&&se),G=!0===R?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:m(n*o)/o||0,y:m(r*o)/o||0}}({x:C,y:A},l(n)):{x:C,y:A};return C=G.x,A=G.y,h?Object.assign({},j,((X={})[U]=K?"0":"",X[w]=_?"0":"",X.transform=(N.devicePixelRatio||1)<=1?"translate("+C+"px, "+A+"px)":"translate3d("+C+"px, "+A+"px, 0)",X)):Object.assign({},j,((t={})[U]=K?A+"px":"",t[w]=_?C+"px":"",t.transform="",t))}var le={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var style=t.styles[e]||{},n=t.attributes[e]||{},element=t.elements[e];c(element)&&L(element)&&(Object.assign(element.style,style),Object.keys(n).forEach((function(e){var t=n[e];!1===t?element.removeAttribute(e):element.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var element=t.elements[e],r=t.attributes[e]||{},style=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(style,e){return style[e]="",style}),{});c(element)&&L(element)&&(Object.assign(element.style,style),Object.keys(r).forEach((function(e){element.removeAttribute(e)})))}))}},requires:["computeStyles"]};var ae={left:"right",right:"left",bottom:"top",top:"bottom"};function ue(e){return e.replace(/left|right|bottom|top/g,(function(e){return ae[e]}))}var fe={start:"end",end:"start"};function ce(e){return e.replace(/start|end/g,(function(e){return fe[e]}))}function de(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&d(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function he(rect){return Object.assign({},rect,{left:rect.x,top:rect.y,right:rect.x+rect.width,bottom:rect.y+rect.height})}function pe(element,e,t){return e===G?he(function(element,e){var t=l(element),html=y(element),n=t.visualViewport,r=html.clientWidth,o=html.clientHeight,f=0,c=0;if(n){r=n.width,o=n.height;var d=T();(d||!d&&"fixed"===e)&&(f=n.offsetLeft,c=n.offsetTop)}return{width:r,height:o,x:f+A(element),y:c}}(element,t)):f(e)?function(element,e){var rect=S(element,!1,"fixed"===e);return rect.top=rect.top+element.clientTop,rect.left=rect.left+element.clientLeft,rect.bottom=rect.top+element.clientHeight,rect.right=rect.left+element.clientWidth,rect.width=element.clientWidth,rect.height=element.clientHeight,rect.x=rect.left,rect.y=rect.top,rect}(e,t):he(function(element){var e,html=y(element),t=C(element),body=null==(e=element.ownerDocument)?void 0:e.body,n=h(html.scrollWidth,html.clientWidth,body?body.scrollWidth:0,body?body.clientWidth:0),r=h(html.scrollHeight,html.clientHeight,body?body.scrollHeight:0,body?body.clientHeight:0),o=-t.scrollLeft+A(element),l=-t.scrollTop;return"rtl"===v(body||html).direction&&(o+=h(html.clientWidth,body?body.clientWidth:0)-n),{width:n,height:r,x:o,y:l}}(y(element)))}function Ee(element,e,t,n){var r="clippingParents"===e?function(element){var e=N(w(element)),t=["absolute","fixed"].indexOf(v(element).position)>=0&&c(element)?O(element):element;return f(t)?e.filter((function(e){return f(e)&&de(e,t)&&"body"!==L(e)})):[]}(element):[].concat(e),o=[].concat(r,[t]),l=o[0],d=o.reduce((function(e,t){var rect=pe(element,t,n);return e.top=h(rect.top,e.top),e.right=E(rect.right,e.right),e.bottom=E(rect.bottom,e.bottom),e.left=h(rect.left,e.left),e}),pe(element,l,n));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function me(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Re(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Te(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,l=n.strategy,c=void 0===l?e.strategy:l,d=n.boundary,h=void 0===d?"clippingParents":d,E=n.rootBoundary,m=void 0===E?G:E,R=n.elementContext,T=void 0===R?F:R,C=n.altBoundary,L=void 0!==C&&C,A=n.padding,v=void 0===A?0:A,B=me("number"!=typeof v?v:Re(v,X)),_=T===F?"reference":F,K=e.rects.popper,element=e.elements[L?_:T],w=Ee(f(element)?element:element.contextElement||y(e.elements.popper),h,m,c),U=S(e.elements.reference),N=ie({reference:U,element:K,strategy:"absolute",placement:o}),D=he(Object.assign({},K,N)),k=T===F?D:U,O={top:w.top-k.top+B.top,bottom:k.bottom-w.bottom+B.bottom,left:w.left-k.left+B.left,right:k.right-w.right+B.right},I=e.modifiersData.offset;if(T===F&&I){var P=I[o];Object.keys(O).forEach((function(e){var t=[V,M].indexOf(e)>=0?1:-1,n=[x,M].indexOf(e)>=0?"y":"x";O[e]+=P[n]*t}))}return O}function ge(e,t,n){return h(e,E(t,n))}function Se(e,rect,t){return void 0===t&&(t={x:0,y:0}),{top:e.top-rect.height-t.y,right:e.right-rect.width+t.x,bottom:e.bottom-rect.height+t.y,left:e.left-rect.width-t.x}}function Ce(e){return[x,V,M,I].some((function(t){return e[t]>=0}))}var Le=Q({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,f=void 0===o||o,c=r.resize,d=void 0===c||c,h=l(t.elements.popper),E=[].concat(t.scrollParents.reference,t.scrollParents.popper);return f&&E.forEach((function(e){e.addEventListener("scroll",n.update,ee)})),d&&h.addEventListener("resize",n.update,ee),function(){f&&E.forEach((function(e){e.removeEventListener("scroll",n.update,ee)})),d&&h.removeEventListener("resize",n.update,ee)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ie({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,l=n.adaptive,f=void 0===l||l,c=n.roundOffsets,d=void 0===c||c,h={placement:te(t.placement),variation:ne(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,oe(Object.assign({},h,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:f,roundOffsets:d})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,oe(Object.assign({},h,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},le,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,l=void 0===o?[0,0]:o,data=$.reduce((function(e,n){return e[n]=function(e,t,n){var r=te(e),o=[I,x].indexOf(r)>=0?-1:1,l="function"==typeof n?n(Object.assign({},t,{placement:e})):n,f=l[0],c=l[1];return f=f||0,c=(c||0)*o,[I,V].indexOf(r)>=0?{x:c,y:f}:{x:f,y:c}}(n,t.rects,l),e}),{}),f=data[t.placement],c=f.x,d=f.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=data}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,l=void 0===o||o,f=n.altAxis,c=void 0===f||f,d=n.fallbackPlacements,h=n.padding,E=n.boundary,m=n.rootBoundary,R=n.altBoundary,T=n.flipVariations,S=void 0===T||T,C=n.allowedAutoPlacements,L=t.options.placement,y=te(L),A=d||(y===L||!S?[ue(L)]:function(e){if(te(e)===P)return[];var t=ue(e);return[ce(e),t,ce(t)]}(L)),v=[L].concat(A).reduce((function(e,n){return e.concat(te(n)===P?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,l=n.rootBoundary,f=n.padding,c=n.flipVariations,d=n.allowedAutoPlacements,h=void 0===d?$:d,E=ne(r),m=E?c?H:H.filter((function(e){return ne(e)===E})):X,R=m.filter((function(e){return h.indexOf(e)>=0}));0===R.length&&(R=m);var T=R.reduce((function(t,n){return t[n]=Te(e,{placement:n,boundary:o,rootBoundary:l,padding:f})[te(n)],t}),{});return Object.keys(T).sort((function(a,b){return T[a]-T[b]}))}(t,{placement:n,boundary:E,rootBoundary:m,padding:h,flipVariations:S,allowedAutoPlacements:C}):n)}),[]),B=t.rects.reference,_=t.rects.popper,K=new Map,w=!0,U=v[0],i=0;i=0,z=O?"width":"height",G=Te(t,{placement:N,boundary:E,rootBoundary:m,altBoundary:R,padding:h}),F=O?k?V:I:k?M:x;B[z]>_[z]&&(F=ue(F));var W=ue(F),J=[];if(l&&J.push(G[D]<=0),c&&J.push(G[F]<=0,G[W]<=0),J.every((function(e){return e}))){U=N,w=!1;break}K.set(N,J)}if(w)for(var Z=function(e){var t=v.find((function(t){var n=K.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return U=t,"break"},Y=S?3:1;Y>0;Y--){if("break"===Z(Y))break}t.placement!==U&&(t.modifiersData[r]._skip=!0,t.placement=U,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,l=void 0===o||o,f=n.altAxis,c=void 0!==f&&f,d=n.boundary,m=n.rootBoundary,R=n.altBoundary,T=n.padding,S=n.tether,C=void 0===S||S,L=n.tetherOffset,y=void 0===L?0:L,A=Te(t,{boundary:d,rootBoundary:m,padding:T,altBoundary:R}),v=te(t.placement),B=ne(t.placement),_=!B,w=re(v),U="x"===w?"y":"x",N=t.modifiersData.popperOffsets,D=t.rects.reference,k=t.rects.popper,P="function"==typeof y?y(Object.assign({},t.rects,{placement:t.placement})):y,X="number"==typeof P?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,data={x:0,y:0};if(N){if(l){var G,F="y"===w?x:I,H="y"===w?M:V,$="y"===w?"height":"width",W=N[w],J=W+A[F],Z=W-A[H],Y=C?-k[$]/2:0,Q=B===j?D[$]:k[$],ee=B===j?-k[$]:-D[$],ie=t.elements.arrow,se=C&&ie?K(ie):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},le=oe[F],ae=oe[H],ue=ge(0,D[$],se[$]),fe=_?D[$]/2-Y-ue-le-X.mainAxis:Q-ue-le-X.mainAxis,ce=_?-D[$]/2+Y+ue+ae+X.mainAxis:ee+ue+ae+X.mainAxis,de=t.elements.arrow&&O(t.elements.arrow),he=de?"y"===w?de.clientTop||0:de.clientLeft||0:0,pe=null!=(G=null==z?void 0:z[w])?G:0,Ee=W+ce-pe,me=ge(C?E(J,W+fe-pe-he):J,W,C?h(Z,Ee):Z);N[w]=me,data[w]=me-W}if(c){var Re,Se="x"===w?x:I,Ce="x"===w?M:V,Le=N[U],ye="y"===U?"height":"width",Ae=Le+A[Se],ve=Le-A[Ce],Be=-1!==[x,I].indexOf(v),_e=null!=(Re=null==z?void 0:z[U])?Re:0,Ke=Be?Ae:Le-D[ye]-k[ye]-_e+X.altAxis,we=Be?Le+D[ye]+k[ye]-_e-X.altAxis:ve,Ue=C&&Be?function(e,t,n){var r=ge(e,t,n);return r>n?n:r}(Ke,Le,we):ge(C?Ke:Ae,Le,C?we:ve);N[U]=Ue,data[U]=Ue-Le}t.modifiersData[r]=data}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,l=n.elements.arrow,f=n.modifiersData.popperOffsets,c=te(n.placement),d=re(c),h=[I,V].indexOf(c)>=0?"height":"width";if(l&&f){var E=function(e,t){return me("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Re(e,X))}(o.padding,n),m=K(l),R="y"===d?x:I,T="y"===d?M:V,S=n.rects.reference[h]+n.rects.reference[d]-f[d]-n.rects.popper[h],C=f[d]-n.rects.reference[d],L=O(l),y=L?"y"===d?L.clientHeight||0:L.clientWidth||0:0,A=S/2-C/2,v=E[R],B=y-m[h]-E[T],_=y/2-m[h]/2+A,w=ge(v,_,B),U=d;n.modifiersData[r]=((t={})[U]=w,t.centerOffset=w-_,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&de(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,l=t.modifiersData.preventOverflow,f=Te(t,{elementContext:"reference"}),c=Te(t,{altBoundary:!0}),d=Se(f,r),h=Se(c,o,l),E=Ce(d),m=Ce(h);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:h,isReferenceHidden:E,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":E,"data-popper-escaped":m})}}]}),ye="tippy-content",Ae="tippy-backdrop",ve="tippy-arrow",Be="tippy-svg-arrow",_e={passive:!0,capture:!0},Ke=function(){return document.body};function we(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function Ue(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function be(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Ne(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function De(e){return[].concat(e)}function ke(e,t){-1===e.indexOf(t)&&e.push(t)}function Oe(e){return e.split("-")[0]}function xe(e){return[].slice.call(e)}function Me(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function div(){return document.createElement("div")}function Ve(e){return["Element","Fragment"].some((function(t){return Ue(e,t)}))}function Ie(e){return Ue(e,"MouseEvent")}function Pe(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function Xe(e){return Ve(e)?[e]:function(e){return Ue(e,"NodeList")}(e)?xe(e):Array.isArray(e)?e:xe(document.querySelectorAll(e))}function je(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function ze(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Ge(e){var t,element=De(e)[0];return null!=element&&null!=(t=element.ownerDocument)&&t.body?element.ownerDocument:document}function Fe(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function He(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var $e={isTouch:!1},qe=0;function We(){$e.isTouch||($e.isTouch=!0,window.performance&&document.addEventListener("mousemove",Je))}function Je(){var e=performance.now();e-qe<20&&($e.isTouch=!1,document.removeEventListener("mousemove",Je)),qe=e}function Ze(){var e=document.activeElement;if(Pe(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var Ye=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var Qe={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},et=Object.assign({appendTo:Ke,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Qe,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),tt=Object.keys(et);function nt(e){var t=(e.plugins||[]).reduce((function(t,n){var r,o=n.name,l=n.defaultValue;o&&(t[o]=void 0!==e[o]?e[o]:null!=(r=et[o])?r:l);return t}),{});return Object.assign({},e,t)}function it(e,t){var n=Object.assign({},t,{content:be(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(nt(Object.assign({},et,{plugins:t}))):tt).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},et.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function st(element,html){element.innerHTML=html}function ot(e){var t=div();return!0===e?t.className=ve:(t.className=Be,Ve(e)?t.appendChild(e):st(t,e)),t}function lt(content,e){Ve(e.content)?(st(content,""),content.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?st(content,e.content):content.textContent=e.content)}function at(e){var t=e.firstElementChild,n=xe(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(ye)})),arrow:n.find((function(e){return e.classList.contains(ve)||e.classList.contains(Be)})),backdrop:n.find((function(e){return e.classList.contains(Ae)}))}}function ut(e){var t=div(),n=div();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var content=div();function r(n,r){var o=at(t),l=o.box,content=o.content,f=o.arrow;r.theme?l.setAttribute("data-theme",r.theme):l.removeAttribute("data-theme"),"string"==typeof r.animation?l.setAttribute("data-animation",r.animation):l.removeAttribute("data-animation"),r.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?l.setAttribute("role",r.role):l.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||lt(content,e.props),r.arrow?f?n.arrow!==r.arrow&&(l.removeChild(f),l.appendChild(ot(r.arrow))):l.appendChild(ot(r.arrow)):f&&l.removeChild(f)}return content.className=ye,content.setAttribute("data-state","hidden"),lt(content,e.props),t.appendChild(n),n.appendChild(content),r(e.props,e.props),{popper:t,onUpdate:r}}ut.$$tippy=!0;var ft=1,ct=[],ht=[];function pt(e,t){var n,r,o,l,f,c,d,h,E=it(e,Object.assign({},et,nt(Me(t)))),m=!1,R=!1,T=!1,S=!1,C=[],L=Ne(te,E.interactiveDebounce),y=ft++,A=(h=E.plugins).filter((function(e,t){return h.indexOf(e)===t})),v={id:y,reference:e,popper:div(),popperInstance:null,props:E,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:A,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(o)},setProps:function(t){0;if(v.state.isDestroyed)return;P("onBeforeUpdate",[v,t]),Q();var n=v.props,r=it(e,Object.assign({},n,Me(t),{ignoreAttributes:!0}));v.props=r,Y(),n.interactiveDebounce!==r.interactiveDebounce&&(z(),L=Ne(te,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?De(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");j(),I(),K&&K(n,r);v.popperInstance&&(se(),le().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));P("onAfterUpdate",[v,t])},setContent:function(content){v.setProps({content:content})},show:function(){0;var e=v.state.isVisible,t=v.state.isDestroyed,n=!v.state.isEnabled,r=$e.isTouch&&!v.props.touch,o=we(v.props.duration,0,et.duration);if(e||t||n||r)return;if(O().hasAttribute("disabled"))return;if(P("onShow",[v],!1),!1===v.props.onShow(v))return;v.state.isVisible=!0,k()&&(_.style.visibility="visible");I(),$(),v.state.isMounted||(_.style.transition="none");if(k()){var l=M();je([l.box,l.content],0)}c=function(){var e;if(v.state.isVisible&&!S){if(S=!0,_.offsetHeight,_.style.transition=v.props.moveTransition,k()&&v.props.animation){var t=M(),n=t.box,r=t.content;je([n,r],o),ze([n,r],"visible")}X(),j(),ke(ht,v),null==(e=v.popperInstance)||e.forceUpdate(),P("onMount",[v]),v.props.animation&&k()&&function(e,t){J(e,t)}(o,(function(){v.state.isShown=!0,P("onShown",[v])}))}},function(){var e,t=v.props.appendTo,n=O();e=v.props.interactive&&t===Ke||"parent"===t?n.parentNode:be(t,[n]);e.contains(_)||e.appendChild(_);v.state.isMounted=!0,se(),!1}()},hide:function(){0;var e=!v.state.isVisible,t=v.state.isDestroyed,n=!v.state.isEnabled,r=we(v.props.duration,1,et.duration);if(e||t||n)return;if(P("onHide",[v],!1),!1===v.props.onHide(v))return;v.state.isVisible=!1,v.state.isShown=!1,S=!1,m=!1,k()&&(_.style.visibility="hidden");if(z(),W(),I(!0),k()){var o=M(),l=o.box,content=o.content;v.props.animation&&(je([l,content],r),ze([l,content],"hidden"))}X(),j(),v.props.animation?k()&&function(e,t){J(e,(function(){!v.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&t()}))}(r,v.unmount):v.unmount()},hideWithInteractivity:function(e){0;x().addEventListener("mousemove",L),ke(ct,L),L(e)},enable:function(){v.state.isEnabled=!0},disable:function(){v.hide(),v.state.isEnabled=!1},unmount:function(){0;v.state.isVisible&&v.hide();if(!v.state.isMounted)return;oe(),le().forEach((function(e){e._tippy.unmount()})),_.parentNode&&_.parentNode.removeChild(_);ht=ht.filter((function(i){return i!==v})),v.state.isMounted=!1,P("onHidden",[v])},destroy:function(){0;if(v.state.isDestroyed)return;v.clearDelayTimeouts(),v.unmount(),Q(),delete e._tippy,v.state.isDestroyed=!0,P("onDestroy",[v])}};if(!E.render)return v;var B=E.render(v),_=B.popper,K=B.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+v.id,v.popper=_,e._tippy=v,_._tippy=v;var w=A.map((function(e){return e.fn(v)})),U=e.hasAttribute("aria-expanded");return Y(),j(),I(),P("onCreate",[v]),E.showOnCreate&&ae(),_.addEventListener("mouseenter",(function(){v.props.interactive&&v.state.isVisible&&v.clearDelayTimeouts()})),_.addEventListener("mouseleave",(function(){v.props.interactive&&v.props.trigger.indexOf("mouseenter")>=0&&x().addEventListener("mousemove",L)})),v;function N(){var e=v.props.touch;return Array.isArray(e)?e:[e,0]}function D(){return"hold"===N()[0]}function k(){var e;return!(null==(e=v.props.render)||!e.$$tippy)}function O(){return d||e}function x(){var e=O().parentNode;return e?Ge(e):document}function M(){return at(_)}function V(e){return v.state.isMounted&&!v.state.isVisible||$e.isTouch||l&&"focus"===l.type?0:we(v.props.delay,e?0:1,et.delay)}function I(e){void 0===e&&(e=!1),_.style.pointerEvents=v.props.interactive&&!e?"":"none",_.style.zIndex=""+v.props.zIndex}function P(e,t,n){var r;(void 0===n&&(n=!0),w.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(r=v.props)[e].apply(r,t)}function X(){var t=v.props.aria;if(t.content){var n="aria-"+t.content,r=_.id;De(v.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(v.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function j(){!U&&v.props.aria.expanded&&De(v.props.triggerTarget||e).forEach((function(e){v.props.interactive?e.setAttribute("aria-expanded",v.state.isVisible&&e===O()?"true":"false"):e.removeAttribute("aria-expanded")}))}function z(){x().removeEventListener("mousemove",L),ct=ct.filter((function(e){return e!==L}))}function G(t){if(!$e.isTouch||!T&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!v.props.interactive||!He(_,n)){if(De(v.props.triggerTarget||e).some((function(e){return He(e,n)}))){if($e.isTouch)return;if(v.state.isVisible&&v.props.trigger.indexOf("click")>=0)return}else P("onClickOutside",[v,t]);!0===v.props.hideOnClick&&(v.clearDelayTimeouts(),v.hide(),R=!0,setTimeout((function(){R=!1})),v.state.isMounted||W())}}}function F(){T=!0}function H(){T=!1}function $(){var e=x();e.addEventListener("mousedown",G,!0),e.addEventListener("touchend",G,_e),e.addEventListener("touchstart",H,_e),e.addEventListener("touchmove",F,_e)}function W(){var e=x();e.removeEventListener("mousedown",G,!0),e.removeEventListener("touchend",G,_e),e.removeEventListener("touchstart",H,_e),e.removeEventListener("touchmove",F,_e)}function J(e,t){var n=M().box;function r(e){e.target===n&&(Fe(n,"remove",r),t())}if(0===e)return t();Fe(n,"remove",f),Fe(n,"add",r),f=r}function Z(t,n,r){void 0===r&&(r=!1),De(v.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),C.push({node:e,eventType:t,handler:n,options:r})}))}function Y(){var e;D()&&(Z("touchstart",ee,{passive:!0}),Z("touchend",ne,{passive:!0})),(e=v.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(Z(e,ee),e){case"mouseenter":Z("mouseleave",ne);break;case"focus":Z(Ye?"focusout":"blur",re);break;case"focusin":Z("focusout",re)}}))}function Q(){C.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),C=[]}function ee(e){var t,n=!1;if(v.state.isEnabled&&!ie(e)&&!R){var r="focus"===(null==(t=l)?void 0:t.type);l=e,d=e.currentTarget,j(),!v.state.isVisible&&Ie(e)&&ct.forEach((function(t){return t(e)})),"click"===e.type&&(v.props.trigger.indexOf("mouseenter")<0||m)&&!1!==v.props.hideOnClick&&v.state.isVisible?n=!0:ae(e),"click"===e.type&&(m=!n),n&&!r&&ue(e)}}function te(e){var t=e.target,n=O().contains(t)||_.contains(t);if("mousemove"!==e.type||!n){var r=le().concat(_).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:E}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,l=e.props.interactiveBorder,f=Oe(o.placement),c=o.modifiersData.offset;if(!c)return!0;var d="bottom"===f?c.top.y:0,h="top"===f?c.bottom.y:0,E="right"===f?c.left.x:0,m="left"===f?c.right.x:0,R=t.top-r+d>l,T=r-t.bottom-h>l,S=t.left-n+E>l,C=n-t.right-m>l;return R||T||S||C}))})(r,e)&&(z(),ue(e))}}function ne(e){ie(e)||v.props.trigger.indexOf("click")>=0&&m||(v.props.interactive?v.hideWithInteractivity(e):ue(e))}function re(e){v.props.trigger.indexOf("focusin")<0&&e.target!==O()||v.props.interactive&&e.relatedTarget&&_.contains(e.relatedTarget)||ue(e)}function ie(e){return!!$e.isTouch&&D()!==e.type.indexOf("touch")>=0}function se(){oe();var t=v.props,n=t.popperOptions,r=t.placement,o=t.offset,l=t.getReferenceClientRect,f=t.moveTransition,d=k()?at(_).arrow:null,h=l?{getBoundingClientRect:l,contextElement:l.contextElement||O()}:e,E={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(k()){var n=M().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},m=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!f}},E];k()&&d&&m.push({name:"arrow",options:{element:d,padding:3}}),m.push.apply(m,(null==n?void 0:n.modifiers)||[]),v.popperInstance=Le(h,_,Object.assign({},n,{placement:r,onFirstUpdate:c,modifiers:m}))}function oe(){v.popperInstance&&(v.popperInstance.destroy(),v.popperInstance=null)}function le(){return xe(_.querySelectorAll("[data-tippy-root]"))}function ae(e){v.clearDelayTimeouts(),e&&P("onTrigger",[v,e]),$();var t=V(!0),r=N(),o=r[0],l=r[1];$e.isTouch&&"hold"===o&&l&&(t=l),t?n=setTimeout((function(){v.show()}),t):v.show()}function ue(e){if(v.clearDelayTimeouts(),P("onUntrigger",[v,e]),v.state.isVisible){if(!(v.props.trigger.indexOf("mouseenter")>=0&&v.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&m)){var t=V(!1);t?r=setTimeout((function(){v.state.isVisible&&v.hide()}),t):o=requestAnimationFrame((function(){v.hide()}))}}else W()}}function Et(e,t){void 0===t&&(t={});var n=et.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",We,_e),window.addEventListener("blur",Ze);var r=Object.assign({},t,{plugins:n}),o=Xe(e).reduce((function(e,t){var n=t&&pt(t,r);return n&&e.push(n),e}),[]);return Ve(e)?o[0]:o}Et.defaultProps=et,Et.setDefaultProps=function(e){Object.keys(e).forEach((function(t){et[t]=e[t]}))},Et.currentInput=$e;Object.assign({},le,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});Et.setDefaultProps({render:ut});var mt=Et;class Rt{constructor({editor:e,element:element,view:view,tippyOptions:t={},updateDelay:n=250,shouldShow:o}){this.preventHide=!1,this.shouldShow=({view:view,state:e,from:t,to:n})=>{const{doc:o,selection:l}=e,{empty:f}=l,c=!o.textBetween(t,n).length&&Object(r.h)(e.selection),d=this.element.contains(document.activeElement);return!(!view.hasFocus()&&!d||f||c||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout((()=>this.update(this.editor.view)))},this.blurHandler=({event:e})=>{var t;this.preventHide?this.preventHide=!1:(null==e?void 0:e.relatedTarget)&&(null===(t=this.element.parentNode)||void 0===t?void 0:t.contains(e.relatedTarget))||this.hide()},this.tippyBlurHandler=e=>{this.blurHandler({event:e})},this.handleDebouncedUpdate=(view,e)=>{const t=!(null==e?void 0:e.selection.eq(view.state.selection)),n=!(null==e?void 0:e.doc.eq(view.state.doc));(t||n)&&(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout((()=>{this.updateHandler(view,t,n,e)}),this.updateDelay))},this.updateHandler=(view,e,t,n)=>{var o,l,f;const{state:c,composing:d}=view,{selection:h}=c;if(d||!e&&!t)return;this.createTooltip();const{ranges:E}=h,m=Math.min(...E.map((e=>e.$from.pos))),R=Math.max(...E.map((e=>e.$to.pos)));(null===(o=this.shouldShow)||void 0===o?void 0:o.call(this,{editor:this.editor,view:view,state:c,oldState:n,from:m,to:R}))?(null===(l=this.tippy)||void 0===l||l.setProps({getReferenceClientRect:(null===(f=this.tippyOptions)||void 0===f?void 0:f.getReferenceClientRect)||(()=>{if(Object(r.g)(c.selection)){let e=view.nodeDOM(m);const t=e.dataset.nodeViewWrapper?e:e.querySelector("[data-node-view-wrapper]");if(t&&(e=t.firstChild),e)return e.getBoundingClientRect()}return Object(r.l)(view,m,R)})}),this.show()):this.hide()},this.editor=e,this.element=element,this.view=view,this.updateDelay=n,o&&(this.shouldShow=o),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=t,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;!this.tippy&&t&&(this.tippy=mt(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(view,e){const{state:t}=view,n=t.selection.$from.pos!==t.selection.$to.pos;if(this.updateDelay>0&&n)return void this.handleDebouncedUpdate(view,e);const r=!(null==e?void 0:e.selection.eq(view.state.selection)),o=!(null==e?void 0:e.doc.eq(view.state.doc));this.updateHandler(view,r,o,e)}show(){var e;null===(e=this.tippy)||void 0===e||e.show()}hide(){var e;null===(e=this.tippy)||void 0===e||e.hide()}destroy(){var e,t;(null===(e=this.tippy)||void 0===e?void 0:e.popper.firstChild)&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),null===(t=this.tippy)||void 0===t||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const Tt=e=>new o.c({key:"string"==typeof e.pluginKey?new o.d(e.pluginKey):e.pluginKey,view:view=>new Rt({view:view,...e})});r.b.create({name:"bubbleMenu",addOptions:()=>({element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}),addProseMirrorPlugins(){return this.options.element?[Tt({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class gt{constructor({editor:e,element:element,view:view,tippyOptions:t={},shouldShow:n}){this.preventHide=!1,this.shouldShow=({view:view,state:e})=>{const{selection:t}=e,{$anchor:n,empty:r}=t,o=1===n.depth,l=n.parent.isTextblock&&!n.parent.type.spec.code&&!n.parent.textContent;return!!(view.hasFocus()&&r&&o&&l&&this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout((()=>this.update(this.editor.view)))},this.blurHandler=({event:e})=>{var t;this.preventHide?this.preventHide=!1:(null==e?void 0:e.relatedTarget)&&(null===(t=this.element.parentNode)||void 0===t?void 0:t.contains(e.relatedTarget))||this.hide()},this.tippyBlurHandler=e=>{this.blurHandler({event:e})},this.editor=e,this.element=element,this.view=view,n&&(this.shouldShow=n),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=t,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;!this.tippy&&t&&(this.tippy=mt(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(view,e){var t,n,o;const{state:l}=view,{doc:f,selection:c}=l,{from:d,to:h}=c;if(e&&e.doc.eq(f)&&e.selection.eq(c))return;this.createTooltip();(null===(t=this.shouldShow)||void 0===t?void 0:t.call(this,{editor:this.editor,view:view,state:l,oldState:e}))?(null===(n=this.tippy)||void 0===n||n.setProps({getReferenceClientRect:(null===(o=this.tippyOptions)||void 0===o?void 0:o.getReferenceClientRect)||(()=>Object(r.l)(view,d,h))}),this.show()):this.hide()}show(){var e;null===(e=this.tippy)||void 0===e||e.show()}hide(){var e;null===(e=this.tippy)||void 0===e||e.hide()}destroy(){var e,t;(null===(e=this.tippy)||void 0===e?void 0:e.popper.firstChild)&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),null===(t=this.tippy)||void 0===t||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const St=e=>new o.c({key:"string"==typeof e.pluginKey?new o.d(e.pluginKey):e.pluginKey,view:view=>new gt({view:view,...e})});r.b.create({name:"floatingMenu",addOptions:()=>({element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}),addProseMirrorPlugins(){return this.options.element?[St({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}});n(1);class Ct extends r.a{constructor(){super(...arguments),this.contentComponent=null}}const Lt={name:"EditorContent",props:{editor:{default:null,type:Object}},watch:{editor:{immediate:!0,handler(e){e&&e.options.element&&this.$nextTick((()=>{const element=this.$el;element&&e.options.element.firstChild&&(element.append(...e.options.element.childNodes),e.contentComponent=this,e.setOptions({element:element}),e.createNodeViews())}))}}},render:e=>e("div"),beforeDestroy(){const{editor:e}=this;if(!e)return;if(e.isDestroyed||e.view.setProps({nodeViews:{}}),e.contentComponent=null,!e.options.element.firstChild)return;const t=document.createElement("div");t.append(...e.options.element.childNodes),e.setOptions({element:t})}};Boolean;class yt extends r.e{mount(){var e,t;const n={editor:this.editor,node:this.node,decorations:this.decorations,selected:!1,extension:this.extension,getPos:()=>this.getPos(),updateAttributes:(e={})=>this.updateAttributes(e),deleteNode:()=>this.deleteNode()},r=this.onDragStart.bind(this);this.decorationClasses=vue_runtime_esm.default.observable({value:this.getDecorationClasses()});const o=(null!==(null===this.editor.contentComponent||void 0===e?void 0:e.$options._base)&&void 0!==t?t:vue_runtime_esm.default).extend(this.component).extend({props:Object.keys(n),provide:()=>({onDragStart:r,decorationClasses:this.decorationClasses})});this.renderer=new dist_VueRenderer(o,{parent:this.editor.contentComponent,propsData:n})}get dom(){if(!this.renderer.element.hasAttribute("data-node-view-wrapper"))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){if(this.node.isLeaf)return null;return this.dom.querySelector("[data-node-view-content]")||this.dom}update(e,t){const n=e=>{this.decorationClasses.value=this.getDecorationClasses(),this.renderer.updateProps(e)};if("function"==typeof this.options.update){const r=this.node,o=this.decorations;return this.node=e,this.decorations=t,this.options.update({oldNode:r,oldDecorations:o,newNode:e,newDecorations:t,updateProps:()=>n({node:e,decorations:t})})}return e.type===this.node.type&&(e===this.node&&this.decorations===t||(this.node=e,this.decorations=t,n({node:e,decorations:t})),!0)}selectNode(){this.renderer.updateProps({selected:!0})}deselectNode(){this.renderer.updateProps({selected:!1})}getDecorationClasses(){return this.decorations.map((e=>e.type.attrs.class)).flat().join(" ")}destroy(){this.renderer.destroy()}}},1279:function(e,t,n){"use strict";n.d(t,"a",(function(){return D}));var r=n(307),o=200,l=function(){};l.prototype.append=function(e){return e.length?(e=l.from(e),!this.length&&e||e.length=t?l.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},l.prototype.get=function(i){if(!(i<0||i>=this.length))return this.getInner(i)},l.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},l.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var r=[];return this.forEach((function(t,i){return r.push(e(t,i))}),t,n),r},l.from=function(e){return e instanceof l?e:e&&e.length?new f(e):l.empty};var f=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(i){return this.values[i]},t.prototype.forEachInner=function(e,t,n,r){for(var i=t;i=n;i--)if(!1===e(this.values[i],r+i))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=o)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=o)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(l);l.empty=new f([]);var c=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(i){return io&&!1===this.right.forEachInner(e,Math.max(t-o,0),Math.min(this.length,n)-o,r+o))&&void 0)},t.prototype.forEachInvertedInner=function(e,t,n,r){var o=this.left.length;return!(t>o&&!1===this.right.forEachInvertedInner(e,t-o,Math.max(n,o)-o,r+o))&&(!(n=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(l),d=l,h=n(333),E=n(332);class m{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){if(0==this.eventCount)return null;let n,r,o=this.items.length;for(;;o--){if(this.items.get(o-1).selection){--o;break}}t&&(n=this.remapping(o,this.items.length),r=n.maps.length);let l,f,c=e.tr,d=[],h=[];return this.items.forEach(((e,i)=>{if(!e.step)return n||(n=this.remapping(o,i+1),r=n.maps.length),r--,void h.push(e);if(n){h.push(new R(e.map));let map,t=e.step.map(n.slice(r));t&&c.maybeStep(t).doc&&(map=c.mapping.maps[c.mapping.maps.length-1],d.push(new R(map,void 0,void 0,d.length+h.length))),r--,map&&n.appendMap(map,r)}else c.maybeStep(e.step);return e.selection?(l=n?e.selection.map(n.slice(r)):e.selection,f=new m(this.items.slice(0,o).append(h.reverse().concat(d)),this.eventCount-1),!1):void 0}),this.items.length,0),{remaining:f,transform:c,selection:l}}addTransform(e,t,n,r){let o=[],l=this.eventCount,f=this.items,c=!r&&f.length?f.get(f.length-1):null;for(let i=0;iS&&(f=function(e,t){let n;return e.forEach(((e,i)=>{if(e.selection&&0==t--)return n=i,!1})),e.slice(n)}(f,d),l-=d),new m(f.append(o),l)}remapping(e,t){let n=new h.a;return this.items.forEach(((t,i)=>{let r=null!=t.mirrorOffset&&i-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,r)}),e,t),n}addMaps(e){return 0==this.eventCount?this:new m(this.items.append(e.map((map=>new R(map)))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-t),o=e.mapping,l=e.steps.length,f=this.eventCount;this.items.forEach((e=>{e.selection&&f--}),r);let c=t;this.items.forEach((t=>{let r=o.getMirror(--c);if(null==r)return;l=Math.min(l,r);let map=o.maps[r];if(t.step){let l=e.steps[r].invert(e.docs[r]),d=t.selection&&t.selection.map(o.slice(c+1,r));d&&f++,n.push(new R(map,l,d))}else n.push(new R(map))}),r);let d=[];for(let i=t;i500&&(E=E.compress(this.items.length-n.length)),E}emptyItemCount(){let e=0;return this.items.forEach((t=>{t.step||e++})),e}compress(e=this.items.length){let t=this.remapping(0,e),n=t.maps.length,r=[],o=0;return this.items.forEach(((l,i)=>{if(i>=e)r.push(l),l.selection&&o++;else if(l.step){let e=l.step.map(t.slice(n)),map=e&&e.getMap();if(n--,map&&t.appendMap(map,n),e){let f=l.selection&&l.selection.map(t.slice(n));f&&o++;let c,d=new R(map.invert(),e,f),h=r.length-1;(c=r.length&&r[h].merge(d))?r[h]=c:r.push(d)}}else l.map&&n--}),this.items.length,0),new m(d.from(r.reverse()),o)}}m.empty=new m(d.empty,0);class R{constructor(map,e,t,n){this.map=map,this.step=e,this.selection=t,this.mirrorOffset=n}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new R(t.getMap().invert(),t,this.selection)}}}class T{constructor(e,t,n,r,o){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=o}}const S=20;function C(map){let e=[];return map.forEach(((t,n,r,o)=>e.push(r,o))),e}function L(e,t){if(!e)return null;let n=[];for(let i=0;inew T(m.empty,m.empty,null,0,-1),apply:(tr,t,n)=>function(e,t,tr,n){let r,o=tr.getMeta(_);if(o)return o.historyState;tr.getMeta(K)&&(e=new T(e.done,e.undone,null,0,-1));let l=tr.getMeta("appendedTransaction");if(0==tr.steps.length)return e;if(l&&l.getMeta(_))return l.getMeta(_).redo?new T(e.done.addTransform(tr,void 0,n,B(t)),e.undone,C(tr.mapping.maps[tr.steps.length-1]),e.prevTime,e.prevComposition):new T(e.done,e.undone.addTransform(tr,void 0,n,B(t)),null,e.prevTime,e.prevComposition);if(!1===tr.getMeta("addToHistory")||l&&!1===l.getMeta("addToHistory"))return(r=tr.getMeta("rebased"))?new T(e.done.rebased(tr,r),e.undone.rebased(tr,r),L(e.prevRanges,tr.mapping),e.prevTime,e.prevComposition):new T(e.done.addMaps(tr.mapping.maps),e.undone.addMaps(tr.mapping.maps),L(e.prevRanges,tr.mapping),e.prevTime,e.prevComposition);{let r=tr.getMeta("composition"),o=0==e.prevTime||!l&&e.prevComposition!=r&&(e.prevTime<(tr.time||0)-n.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach(((e,r)=>{for(let i=0;i=t[i]&&(n=!0)})),n}(tr,e.prevRanges)),f=l?L(e.prevRanges,tr.mapping):C(tr.mapping.maps[tr.steps.length-1]);return new T(e.done.addTransform(tr,o?t.selection.getBookmark():void 0,n,B(t)),m.empty,f,tr.time,null==r?e.prevComposition:r)}}(t,n,tr,e)},config:e,props:{handleDOMEvents:{beforeinput(view,e){let t=e.inputType,n="historyUndo"==t?U:"historyRedo"==t?N:null;return!!n&&(e.preventDefault(),n(view.state,view.dispatch))}}}})}const U=(e,t)=>{let n=_.getState(e);return!(!n||0==n.done.eventCount)&&(t&&y(n,e,t,!1),!0)},N=(e,t)=>{let n=_.getState(e);return!(!n||0==n.undone.eventCount)&&(t&&y(n,e,t,!0),!0)};const D=r.b.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:e,dispatch:t})=>U(e,t),redo:()=>({state:e,dispatch:t})=>N(e,t)}),addProseMirrorPlugins(){return[w(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}})},289:function(e,t,n){"use strict";var r=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;t.validate=function(e){if(!e)return!1;if(e.length>254)return!1;if(!r.test(e))return!1;var t=e.split("@");return!(t[0].length>64)&&!t[1].split(".").some((function(e){return e.length>63}))}},307:function(e,t,n){"use strict";n.d(t,"a",(function(){return Ki})),n.d(t,"b",(function(){return Pr})),n.d(t,"c",(function(){return Ui})),n.d(t,"d",(function(){return bi})),n.d(t,"e",(function(){return Ni})),n.d(t,"f",(function(){return fi})),n.d(t,"g",(function(){return mi})),n.d(t,"h",(function(){return Wr})),n.d(t,"i",(function(){return wi})),n.d(t,"j",(function(){return Di})),n.d(t,"k",(function(){return Sr})),n.d(t,"l",(function(){return Ri}));var r=n(394),o=n(332),l=n(335),f=n(333);const c=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},d=function(e){let t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t};let h=null;const E=function(e,t,n){let r=h||(h=document.createRange());return r.setEnd(e,null==n?e.nodeValue.length:n),r.setStart(e,t||0),r},m=function(e,t,n,r){return n&&(T(e,t,n,r,-1)||T(e,t,n,r,1))},R=/^(img|br|input|textarea|hr)$/i;function T(e,t,n,r,o){for(;;){if(e==n&&t==r)return!0;if(t==(o<0?0:S(e))){let n=e.parentNode;if(!n||1!=n.nodeType||C(e)||R.test(e.nodeName)||"false"==e.contentEditable)return!1;t=c(e)+(o<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if("false"==(e=e.childNodes[t+(o<0?-1:0)]).contentEditable)return!1;t=o<0?S(e):0}}}function S(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function C(e){let desc;for(let t=e;t&&!(desc=t.pmViewDesc);t=t.parentNode);return desc&&desc.node&&desc.node.isBlock&&(desc.dom==e||desc.contentDOM==e)}const L=function(e){return e.focusNode&&m(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function y(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}const nav="undefined"!=typeof navigator?navigator:null,A="undefined"!=typeof document?document:null,v=nav&&nav.userAgent||"",B=/Edge\/(\d+)/.exec(v),_=/MSIE \d/.exec(v),K=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(v),w=!!(_||K||B),U=_?document.documentMode:K?+K[1]:B?+B[1]:0,N=!w&&/gecko\/(\d+)/i.test(v);N&&(/Firefox\/(\d+)/.exec(v)||[0,0])[1];const D=!w&&/Chrome\/(\d+)/.exec(v),k=!!D,O=D?+D[1]:0,x=!w&&!!nav&&/Apple Computer/.test(nav.vendor),M=x&&(/Mobile\/\w+/.test(v)||!!nav&&nav.maxTouchPoints>2),V=M||!!nav&&/Mac/.test(nav.platform),I=!!nav&&/Win/.test(nav.platform),P=/Android \d/.test(v),X=!!A&&"webkitFontSmoothing"in A.documentElement.style,j=X?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function z(e){return{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function G(e,t){return"number"==typeof e?e:e[t]}function F(e){let rect=e.getBoundingClientRect(),t=rect.width/e.offsetWidth||1,n=rect.height/e.offsetHeight||1;return{left:rect.left,right:rect.left+e.clientWidth*t,top:rect.top,bottom:rect.top+e.clientHeight*n}}function H(view,rect,e){let t=view.someProp("scrollThreshold")||0,n=view.someProp("scrollMargin")||5,r=view.dom.ownerDocument;for(let o=e||view.dom;o;o=d(o)){if(1!=o.nodeType)continue;let e=o,l=e==r.body,f=l?z(r):F(e),c=0,d=0;if(rect.topf.bottom-G(t,"bottom")&&(d=rect.bottom-f.bottom+G(n,"bottom")),rect.leftf.right-G(t,"right")&&(c=rect.right-f.right+G(n,"right")),c||d)if(l)r.defaultView.scrollBy(c,d);else{let t=e.scrollLeft,n=e.scrollTop;d&&(e.scrollTop+=d),c&&(e.scrollLeft+=c);let r=e.scrollLeft-t,o=e.scrollTop-n;rect={left:rect.left-r,top:rect.top-o,right:rect.right-r,bottom:rect.bottom-o}}if(l)break}}function $(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=d(r));return t}function W(e,t){for(let i=0;i=h){d=Math.max(rect.bottom,d),h=Math.min(rect.top,h);let e=rect.left>t.left?rect.left-t.left:rect.right=(rect.left+rect.right)/2?1:0));continue}}else rect.top>t.top&&!o&&rect.left<=t.left&&rect.right>=t.left&&(o=m,l={left:Math.max(rect.left,Math.min(rect.right,t.left)),top:rect.top});!n&&(t.left>=rect.right&&t.top>=rect.top||t.left>=rect.left&&t.top>=rect.bottom)&&(c=R+1)}}return!n&&o&&(n=o,r=l,f=0),n&&3==n.nodeType?function(e,t){let n=e.nodeValue.length,r=document.createRange();for(let i=0;i=(rect.left+rect.right)/2?1:0)}}return{node:e,offset:0}}(n,r):!n||f&&1==n.nodeType?{node:e,offset:c}:Z(n,r)}function Y(e,rect){return e.left>=rect.left-1&&e.left<=rect.right+1&&e.top>=rect.top-1&&e.top<=rect.bottom+1}function Q(element,e,t){let n=element.childNodes.length;if(n&&t.tope.top&&r++}t==view.dom&&r==t.childNodes.length-1&&1==t.lastChild.nodeType&&e.top>t.lastChild.getBoundingClientRect().bottom?l=view.state.doc.content.size:0!=r&&1==t.nodeType&&"BR"==t.childNodes[r-1].nodeName||(l=function(view,e,t,n){let r=-1;for(let t=e,o=!1;t!=view.dom;){let desc=view.docView.nearestDesc(t,!0);if(!desc)return null;if(1==desc.dom.nodeType&&(desc.node.isBlock&&desc.parent&&!o||!desc.contentDOM)){let rect=desc.dom.getBoundingClientRect();if(desc.node.isBlock&&desc.parent&&!o&&(o=!0,rect.left>n.left||rect.top>n.top?r=desc.posBefore:(rect.right-1?r:view.docView.posFromDOM(e,t,-1)}(view,t,r,e))}null==l&&(l=function(view,e,t){let{node:n,offset:r}=Z(e,t),o=-1;if(1==n.nodeType&&!n.firstChild){let rect=n.getBoundingClientRect();o=rect.left!=rect.right&&t.left>(rect.left+rect.right)/2?1:-1}return view.docView.posFromDOM(n,r,o)}(view,f,e));let desc=view.docView.nearestDesc(f,!0);return{pos:l,inside:desc?desc.posAtStart-desc.border:-1}}function te(rect){return rect.top=0&&r==n.nodeValue.length?(e--,l=1):t<0?e--:o++,se(ne(E(n,e,o),l),l<0)}{let rect=ne(E(n,r,r),t);if(N&&r&&/\s/.test(n.nodeValue[r-1])&&r=0)}if(null==o&&r&&(t<0||r==S(n))){let e=n.childNodes[r-1],t=3==e.nodeType?E(e,S(e)-(l?0:1)):1!=e.nodeType||"BR"==e.nodeName&&e.nextSibling?null:e;if(t)return se(ne(t,1),!1)}if(null==o&&r=0)}function se(rect,e){if(0==rect.width)return rect;let t=e?rect.left:rect.right;return{top:rect.top,bottom:rect.bottom,left:t,right:t}}function oe(rect,e){if(0==rect.height)return rect;let t=e?rect.top:rect.bottom;return{top:t,bottom:t,left:rect.left,right:rect.right}}function le(view,e,t){let n=view.state,r=view.root.activeElement;n!=e&&view.updateState(e),r!=view.dom&&view.focus();try{return t()}finally{n!=e&&view.updateState(n),r!=view.dom&&r&&r.focus()}}const ae=/[\u0590-\u08ac]/;let ue=null,fe=null,ce=!1;function de(view,e,t){return ue==e&&fe==t?ce:(ue=e,fe=t,ce="up"==t||"down"==t?function(view,e,t){let n=e.selection,r="up"==t?n.$from:n.$to;return le(view,e,(()=>{let{node:e}=view.docView.domFromPos(r.pos,"up"==t?-1:1);for(;;){let t=view.docView.nearestDesc(e,!0);if(!t)break;if(t.node.isBlock){e=t.contentDOM||t.dom;break}e=t.dom.parentNode}let n=ie(view,r.pos,1);for(let r=e.firstChild;r;r=r.nextSibling){let e;if(1==r.nodeType)e=r.getClientRects();else{if(3!=r.nodeType)continue;e=E(r,0,r.nodeValue.length).getClientRects()}for(let i=0;ir.top+1&&("up"==t?n.top-r.top>2*(r.bottom-n.top):r.bottom-n.bottom>2*(n.bottom-r.top)))return!1}}return!0}))}(view,e,t):function(view,e,t){let{$head:n}=e.selection;if(!n.parent.isTextblock)return!1;let r=n.parentOffset,o=!r,l=r==n.parent.content.size,f=view.domSelection();return ae.test(n.parent.textContent)&&f.modify?le(view,e,(()=>{let{focusNode:e,focusOffset:r,anchorNode:o,anchorOffset:l}=view.domSelectionRange(),c=f.caretBidiLevel;f.modify("move",t,"character");let d=n.depth?view.docView.domAfterPos(n.before()):view.dom,{focusNode:h,focusOffset:E}=view.domSelectionRange(),m=h&&!d.contains(1==h.nodeType?h:h.parentNode)||e==h&&r==E;try{f.collapse(o,l),e&&(e!=o||r!=l)&&f.extend&&f.extend(e,r)}catch(e){}return null!=c&&(f.caretBidiLevel=c),m})):"left"==t||"backward"==t?o:l}(view,e,t))}class he{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,this.contentDOM=r,this.dirty=0,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(mark){return!1}matchesNode(e,t,n){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let i=0;ic(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!1;break}if(t.previousSibling)break}if(null==r&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!0;break}if(t.nextSibling)break}}return(null==r?n>0:r)?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let n=!0,r=e;r;r=r.parentNode){let o,desc=this.getDesc(r);if(desc&&(!t||desc.node)){if(!n||!(o=desc.nodeDOM)||(1==o.nodeType?o.contains(1==e.nodeType?e:e.parentNode):o==e))return desc;n=!1}}}getDesc(e){let desc=e.pmViewDesc;for(let e=desc;e;e=e.parent)if(e==this)return desc}posFromDOM(e,t,n){for(let r=e;r;r=r.parentNode){let desc=this.getDesc(r);if(desc)return desc.localPosFromDOM(e,t,n)}return-1}descAt(e){for(let i=0,t=0;ie||n instanceof Se){r=e-t;break}t=o}if(r)return this.children[i].domFromPos(r-this.children[i].border,t);for(;i&&!(n=this.children[i-1]).size&&n instanceof pe&&n.side>=0;i--);if(t<=0){let e,n=!0;for(;e=i?this.children[i-1]:null,e&&e.dom.parentNode!=this.contentDOM;i--,n=!1);return e&&t&&n&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?c(e.dom)+1:0}}{let e,n=!0;for(;e=i=r&&t<=f-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,t,r);e=o;for(let t=i;t>0;t--){let r=this.children[t-1];if(r.size&&r.dom.parentNode==this.contentDOM&&!r.emptyChildAt(1)){n=c(r.dom)+1;break}e-=r.size}-1==n&&(n=0)}if(n>-1&&(f>t||i==this.children.length-1)){t=f;for(let e=i+1;el&&ohead){let e=l;l=f,f=e}let t=document.createRange();t.setEnd(f.node,f.offset),t.setStart(l.node,l.offset),c.removeAllRanges(),c.addRange(t)}}ignoreMutation(e){return!this.contentDOM&&"selection"!=e.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let n=0,i=0;i=n:en){let l=n+r.border,f=o-r.border;if(e>=l&&t<=f)return this.dirty=e==n||t==o?2:1,void(e!=l||t!=f||!r.contentLost&&r.dom.parentNode==this.contentDOM?r.markDirty(e-l,t-l):r.dirty=3);r.dirty=r.dom!=r.contentDOM||r.dom.parentNode!=this.contentDOM||r.children.length?3:2}n=o}this.dirty=2}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=1==e?2:1;t.dirtyr?r.parent?r.parent.posBeforeChild(r):void 0:n))),!t.type.spec.raw){if(1!=o.nodeType){let e=document.createElement("span");e.appendChild(o),o=e}o.contentEditable="false",o.classList.add("ProseMirror-widget")}super(e,[],o,null),this.widget=t,this.widget=t,r=this}matchesWidget(e){return 0==this.dirty&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return!!t&&t(e)}ignoreMutation(e){return"selection"!=e.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class Ee extends he{constructor(e,t,n,text){super(e,[],t,null),this.textDOM=n,this.text=text}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue}}class me extends he{constructor(e,mark,t,n){super(e,[],t,n),this.mark=mark}static create(e,mark,t,view){let n=view.nodeViews[mark.type.name],r=n&&n(mark,view,t);return r&&r.dom||(r=l.b.renderSpec(document,mark.type.spec.toDOM(mark,t))),new me(e,mark,r.dom,r.contentDOM||r.dom)}parseRule(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM||void 0}}matchesMark(mark){return 3!=this.dirty&&this.mark.eq(mark)}markDirty(e,t){if(super.markDirty(e,t),0!=this.dirty){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty0&&(r=De(r,0,e,view));for(let i=0;if?f.parent?f.parent.posBeforeChild(f):void 0:o),n,r),h=d&&d.dom,E=d&&d.contentDOM;if(t.isText)if(h){if(3!=h.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else h=document.createTextNode(t.text);else h||({dom:h,contentDOM:E}=l.b.renderSpec(document,t.type.spec.toDOM(t)));E||t.isText||"BR"==h.nodeName||(h.hasAttribute("contenteditable")||(h.contentEditable="false"),t.type.spec.draggable&&(h.draggable=!0));let m=h;return h=Ke(h,n,t),d?f=new Ce(e,t,n,r,h,E||null,m,d,view,o+1):t.isText?new ge(e,t,n,r,h,m,view):new Re(e,t,n,r,h,E||null,m,view,o+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(e.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let i=this.children.length-1;i>=0;i--){let t=this.children[i];if(this.dom.contains(t.dom.parentNode)){e.contentElement=t.dom.parentNode;break}}e.contentElement||(e.getContent=()=>l.c.empty)}else e.contentElement=this.contentDOM;else e.getContent=()=>this.node.content;return e}matchesNode(e,t,n){return 0==this.dirty&&e.eq(this.node)&&we(t,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(view,e){let t=this.node.inlineContent,n=e,r=view.composing?this.localCompositionInfo(view,e):null,o=r&&r.pos>-1?r:null,f=r&&r.pos<0,c=new be(this,o&&o.node,view);!function(e,t,n,r){let o=t.locals(e),l=0;if(0==o.length){for(let i=0;il;)c.push(o[f++]);let R=l+E.nodeSize;if(E.isText){let e=R;f!e.inline)):c.slice(),t.forChild(l,E),m),l=R}}(this.node,this.innerDeco,((e,i,r)=>{e.spec.marks?c.syncToMarks(e.spec.marks,t,view):e.type.side>=0&&!r&&c.syncToMarks(i==this.node.childCount?l.d.none:this.node.child(i).marks,t,view),c.placeWidget(e,view,n)}),((e,o,l,i)=>{let d;c.syncToMarks(e.marks,t,view),c.findNodeMatch(e,o,l,i)||f&&view.state.selection.from>n&&view.state.selection.to-1&&c.updateNodeAt(e,o,l,d,view)||c.updateNextNode(e,o,l,view,i,n)||c.addNode(e,o,l,view,n),n+=e.nodeSize})),c.syncToMarks([],t,view),this.node.isTextblock&&c.addTextblockHacks(),c.destroyRest(),(c.changed||2==this.dirty)&&(o&&this.protectLocalComposition(view,o),Le(this.contentDOM,this.children,view),M&&function(e){if("UL"==e.nodeName||"OL"==e.nodeName){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}(this.dom))}localCompositionInfo(view,e){let{from:t,to:n}=view.state.selection;if(!(view.state.selection instanceof o.g)||te+this.node.content.size)return null;let r=view.domSelectionRange(),l=function(e,t){for(;;){if(3==e.nodeType)return e;if(1==e.nodeType&&t>0){if(e.childNodes.length>t&&3==e.childNodes[t].nodeType)return e.childNodes[t];t=S(e=e.childNodes[t-1])}else{if(!(1==e.nodeType&&t=t){let e=l=0&&e+text.length+l>=t)return l+e;if(t==n&&f.length>=n+text.length-l&&f.slice(n-l,n-l+text.length)==text)return n}}return-1}(this.node.content,text,t-e,n-e);return r<0?null:{node:l,pos:r,text:text}}return{node:l,pos:-1,text:""}}protectLocalComposition(view,{node:e,pos:t,text:text}){if(this.getDesc(e))return;let n=e;for(;n.parentNode!=this.contentDOM;n=n.parentNode){for(;n.previousSibling;)n.parentNode.removeChild(n.previousSibling);for(;n.nextSibling;)n.parentNode.removeChild(n.nextSibling);n.pmViewDesc&&(n.pmViewDesc=void 0)}let desc=new Ee(this,n,e,text);view.input.compositionNodes.push(desc),this.children=De(this.children,t,t+text.length,view,desc)}update(e,t,n,view){return!(3==this.dirty||!e.sameMarkup(this.node))&&(this.updateInner(e,t,n,view),!0)}updateInner(e,t,n,view){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(view,this.posAtStart),this.dirty=0}updateOuterDeco(e){if(we(e,this.outerDeco))return;let t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=Be(this.dom,this.nodeDOM,ve(this.outerDeco,this.node,t),ve(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.dom.draggable=!0)}deselectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function Te(e,t,n,r,view){Ke(r,t,e);let o=new Re(void 0,e,t,n,r,r,r,view,0);return o.contentDOM&&o.updateChildren(view,0),o}class ge extends Re{constructor(e,t,n,r,o,l,view){super(e,t,n,r,o,null,l,view,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,n,view){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!e.sameMarkup(this.node))&&(this.updateOuterDeco(t),0==this.dirty&&e.text==this.node.text||e.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=e.text,view.trackWrites==this.nodeDOM&&(view.trackWrites=null)),this.node=e,this.dirty=0,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,n){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,n)}ignoreMutation(e){return"characterData"!=e.type&&"selection"!=e.type}slice(e,t,view){let n=this.node.cut(e,t),r=document.createTextNode(n.text);return new ge(this.parent,n,this.outerDeco,this.innerDeco,r,r,view)}markDirty(e,t){super.markDirty(e,t),this.dom==this.nodeDOM||0!=e&&t!=this.nodeDOM.nodeValue.length||(this.dirty=3)}get domAtom(){return!1}}class Se extends he{parseRule(){return{ignore:!0}}matchesHack(e){return 0==this.dirty&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class Ce extends Re{constructor(e,t,n,r,o,l,f,c,view,d){super(e,t,n,r,o,l,f,view,d),this.spec=c}update(e,t,n,view){if(3==this.dirty)return!1;if(this.spec.update){let r=this.spec.update(e,t,n);return r&&this.updateInner(e,t,n,view),r}return!(!this.contentDOM&&!e.isLeaf)&&super.update(e,t,n,view)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,head,t,n){this.spec.setSelection?this.spec.setSelection(e,head,t):super.setSelection(e,head,t,n)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function Le(e,t,view){let n=e.firstChild,r=!1;for(let i=0;i0;){let desc;for(;;)if(r){let e=n.children[r-1];if(!(e instanceof me)){desc=e,r--;break}n=e,r=e.children.length}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let c=desc.node;if(c){if(c!=e.child(o-1))break;--o,l.set(desc,o),f.push(desc)}}return{index:o,matched:l,matches:f.reverse()}}(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let i=e;i>1,o=Math.min(r,e.length);for(;n-1)n>this.index&&(this.changed=!0,this.destroyBetween(this.index,n)),this.top=this.top.children[this.index];else{let n=me.create(this.top,e[r],t,view);this.top.children.splice(this.index,0,n),this.top=n,this.changed=!0}this.index=0,r++}}findNodeMatch(e,t,n,r){let o,l=-1;if(r>=this.preMatch.index&&(o=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&o.matchesNode(e,t,n))l=this.top.children.indexOf(o,this.index);else for(let i=this.index,r=Math.min(this.top.children.length,i+5);i=n||d<=t?o.push(f):(cn&&o.push(f.slice(n-c,f.size,view)))}return o}function ke(view,e=null){let t=view.domSelectionRange(),n=view.state.doc;if(!t.focusNode)return null;let r=view.docView.nearestDesc(t.focusNode),l=r&&0==r.size,head=view.docView.posFromDOM(t.focusNode,t.focusOffset,1);if(head<0)return null;let f,d,h=n.resolve(head);if(L(t)){for(f=h;r&&!r.node;)r=r.parent;let e=r.node;if(r&&e.isAtom&&o.c.isSelectable(e)&&r.parent&&(!e.isInline||!function(e,t,n){for(let r=0==t,o=t==S(e);r||o;){if(e==n)return!0;let t=c(e);if(!(e=e.parentNode))return!1;r=r&&0==t,o=o&&t==S(e)}}(t.focusNode,t.focusOffset,r.dom))){let e=r.posBefore;d=new o.c(head==e?h:n.resolve(e))}}else{let e=view.docView.posFromDOM(t.anchorNode,t.anchorOffset,1);if(e<0)return null;f=n.resolve(e)}if(!d){d=ze(view,f,h,"pointer"==e||view.state.selection.head{t.anchorNode==n&&t.anchorOffset==r||(e.removeEventListener("selectionchange",view.input.hideSelectionGuard),setTimeout((()=>{Oe(view)&&!view.state.selection.visible||view.dom.classList.remove("ProseMirror-hideselection")}),20))})}(view))}view.domObserver.setCurSelection(),view.domObserver.connectSelection()}}const Me=x||k&&O<63;function Ve(view,e){let{node:t,offset:n}=view.docView.domFromPos(e,0),r=nn(view,e,t)))||o.g.between(e,t,n)}function Ge(view){return!(view.editable&&!view.hasFocus())&&Fe(view)}function Fe(view){let e=view.domSelectionRange();if(!e.anchorNode)return!1;try{return view.dom.contains(3==e.anchorNode.nodeType?e.anchorNode.parentNode:e.anchorNode)&&(view.editable||view.dom.contains(3==e.focusNode.nodeType?e.focusNode.parentNode:e.focusNode))}catch(e){return!1}}function He(e,t){let{$anchor:n,$head:r}=e.selection,l=t>0?n.max(r):n.min(r),f=l.parent.inlineContent?l.depth?e.doc.resolve(t>0?l.after():l.before()):null:l;return f&&o.f.findFrom(f,t)}function $e(view,e){return view.dispatch(view.state.tr.setSelection(e).scrollIntoView()),!0}function qe(view,e,t){let n=view.state.selection;if(!(n instanceof o.g)){if(n instanceof o.c&&n.node.isInline)return $e(view,new o.g(e>0?n.$to:n.$from));{let t=He(view.state,e);return!!t&&$e(view,t)}}if(!n.empty||t.indexOf("s")>-1)return!1;if(view.endOfTextblock(e>0?"forward":"backward")){let t=He(view.state,e);return!!(t&&t instanceof o.c)&&$e(view,t)}if(!(V&&t.indexOf("m")>-1)){let desc,t=n.$head,r=t.textOffset?null:e<0?t.nodeBefore:t.nodeAfter;if(!r||r.isText)return!1;let l=e<0?t.pos-r.nodeSize:t.pos;return!!(r.isAtom||(desc=view.docView.descAt(l))&&!desc.contentDOM)&&(o.c.isSelectable(r)?$e(view,new o.c(e<0?view.state.doc.resolve(t.pos-r.nodeSize):t)):!!X&&$e(view,new o.g(view.state.doc.resolve(e<0?l:l+r.nodeSize))))}}function We(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Je(e){let desc=e.pmViewDesc;return desc&&0==desc.size&&(e.nextSibling||"BR"!=e.nodeName)}function Ze(view,e){return e<0?function(view){let e=view.domSelectionRange(),t=e.focusNode,n=e.focusOffset;if(!t)return;let r,o,l=!1;N&&1==t.nodeType&&n0){if(1!=t.nodeType)break;{let e=t.childNodes[n-1];if(Je(e))r=t,o=--n;else{if(3!=e.nodeType)break;t=e,n=t.nodeValue.length}}}else{if(Qe(t))break;{let e=t.previousSibling;for(;e&&Je(e);)r=t.parentNode,o=c(e),e=e.previousSibling;if(e)t=e,n=We(t);else{if(t=t.parentNode,t==view.dom)break;n=0}}}l?et(view,t,n):r&&et(view,r,o)}(view):Ye(view)}function Ye(view){let e=view.domSelectionRange(),t=e.focusNode,n=e.focusOffset;if(!t)return;let r,o,l=We(t);for(;;)if(n{view.state==r&&xe(view)}),50)}function tt(view,e){let t=view.state.doc.resolve(e);if(!k&&!I&&t.parent.inlineContent){let n=view.coordsAtPos(e);if(e>t.start()){let t=view.coordsAtPos(e-1),r=(t.top+t.bottom)/2;if(r>n.top&&r1)return t.leftn.top&&r1)return t.left>n.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(view.dom).direction?"rtl":"ltr"}function nt(view,e,t){let n=view.state.selection;if(n instanceof o.g&&!n.empty||t.indexOf("s")>-1)return!1;if(V&&t.indexOf("m")>-1)return!1;let{$from:r,$to:l}=n;if(!r.parent.inlineContent||view.endOfTextblock(e<0?"up":"down")){let t=He(view.state,e);if(t&&t instanceof o.c)return $e(view,t)}if(!r.parent.inlineContent){let t=e<0?r:l,f=n instanceof o.a?o.f.near(t,e):o.f.findFrom(t,e);return!!f&&$e(view,f)}return!1}function it(view,e){if(!(view.state.selection instanceof o.g))return!0;let{$head:t,$anchor:n,empty:r}=view.state.selection;if(!t.sameParent(n))return!0;if(!r)return!1;if(view.endOfTextblock(e>0?"forward":"backward"))return!0;let l=!t.textOffset&&(e<0?t.nodeBefore:t.nodeAfter);if(l&&!l.isText){let tr=view.state.tr;return e<0?tr.delete(t.pos-l.nodeSize,t.pos):tr.delete(t.pos,t.pos+l.nodeSize),view.dispatch(tr),!0}return!1}function st(view,e,t){view.domObserver.stop(),e.contentEditable=t,view.domObserver.start()}function ot(view,e){let code=e.keyCode,t=function(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}(e);if(8==code||V&&72==code&&"c"==t)return it(view,-1)||Ze(view,-1);if(46==code||V&&68==code&&"c"==t)return it(view,1)||Ze(view,1);if(13==code||27==code)return!0;if(37==code||V&&66==code&&"c"==t){let e=37==code?"ltr"==tt(view,view.state.selection.from)?-1:1:-1;return qe(view,e,t)||Ze(view,e)}if(39==code||V&&70==code&&"c"==t){let e=39==code?"ltr"==tt(view,view.state.selection.from)?1:-1:1;return qe(view,e,t)||Ze(view,e)}return 38==code||V&&80==code&&"c"==t?nt(view,-1,t)||Ze(view,-1):40==code||V&&78==code&&"c"==t?function(view){if(!x||view.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:t}=view.domSelectionRange();if(e&&1==e.nodeType&&0==t&&e.firstChild&&"false"==e.firstChild.contentEditable){let t=e.firstChild;st(view,t,"true"),setTimeout((()=>st(view,t,"false")),20)}return!1}(view)||nt(view,1,t)||Ye(view):t==(V?"m":"c")&&(66==code||73==code||89==code||90==code)}function lt(view,e){view.someProp("transformCopied",(t=>{e=t(e,view)}));let t=[],{content:content,openStart:n,openEnd:r}=e;for(;n>1&&r>1&&1==content.childCount&&1==content.firstChild.childCount;){n--,r--;let e=content.firstChild;t.push(e.type.name,e.attrs!=e.type.defaultAttrs?e.attrs:null),content=e.content}let o=view.someProp("clipboardSerializer")||l.b.fromSchema(view.state.schema),f=Tt(),c=f.createElement("div");c.appendChild(o.serializeFragment(content,{document:f}));let d,h=c.firstChild,E=0;for(;h&&1==h.nodeType&&(d=mt[h.nodeName.toLowerCase()]);){for(let i=d.length-1;i>=0;i--){let e=f.createElement(d[i]);for(;c.firstChild;)e.appendChild(c.firstChild);c.appendChild(e),E++}h=c.firstChild}return h&&1==h.nodeType&&h.setAttribute("data-pm-slice",`${n} ${r}${E?` -${E}`:""} ${JSON.stringify(t)}`),{dom:c,text:view.someProp("clipboardTextSerializer",(t=>t(e,view)))||e.content.textBetween(0,e.content.size,"\n\n")}}function at(view,text,html,e,t){let n,r,o=t.parent.type.spec.code;if(!html&&!text)return null;let f=text&&(e||o||!html);if(f){if(view.someProp("transformPastedText",(t=>{text=t(text,o||e,view)})),o)return text?new l.j(l.c.from(view.state.schema.text(text.replace(/\r\n?/g,"\n"))),0,0):l.j.empty;let f=view.someProp("clipboardTextParser",(n=>n(text,t,e,view)));if(f)r=f;else{let e=t.marks(),{schema:r}=view.state,o=l.b.fromSchema(r);n=document.createElement("div"),text.split(/(?:\r\n?|\n)+/).forEach((t=>{let p=n.appendChild(document.createElement("p"));t&&p.appendChild(o.serializeNode(r.text(t,e)))}))}}else view.someProp("transformPastedHTML",(e=>{html=e(html,view)})),n=function(html){let e=/^(\s*]*>)*/.exec(html);e&&(html=html.slice(e[0].length));let t,n=Tt().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(html);(t=r&&mt[r[1].toLowerCase()])&&(html=t.map((e=>"<"+e+">")).join("")+html+t.map((e=>"")).reverse().join(""));if(n.innerHTML=html,t)for(let i=0;i0;i--){let e=n.firstChild;for(;e&&1!=e.nodeType;)e=e.nextSibling;if(!e)break;n=e}if(!r){let e=view.someProp("clipboardParser")||view.someProp("domParser")||l.a.fromSchema(view.state.schema);r=e.parseSlice(n,{preserveWhitespace:!(!f&&!d),context:t,ruleFromNode:e=>"BR"!=e.nodeName||e.nextSibling||!e.parentNode||ut.test(e.parentNode.nodeName)?null:{ignore:!0}})}if(d)r=function(e,t){if(!e.size)return e;let n,r=e.content.firstChild.type.schema;try{n=JSON.parse(t)}catch(t){return e}let{content:content,openStart:o,openEnd:f}=e;for(let i=n.length-2;i>=0;i-=2){let e=r.nodes[n[i]];if(!e||e.hasRequiredAttrs())break;content=l.c.from(e.create(n[i+1],content)),o++,f++}return new l.j(content,o,f)}(Et(r,+d[1],+d[2]),d[4]);else if(r=l.j.maxOpen(function(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r,o=t.node(n).contentMatchAt(t.index(n)),f=[];if(e.forEach((e=>{if(!f)return;let t,n=o.findWrapping(e.type);if(!n)return f=null;if(t=f.length&&r.length&&ct(n,r,e,f[f.length-1],0))f[f.length-1]=t;else{f.length&&(f[f.length-1]=ht(f[f.length-1],r.length));let t=ft(e,n);f.push(t),o=o.matchType(t.type),r=n}})),f)return l.c.from(f)}return e}(r.content,t),!0),r.openStart||r.openEnd){let e=0,t=0;for(let t=r.content.firstChild;e{r=e(r,view)})),r}const ut=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function ft(e,t,n=0){for(let i=t.length-1;i>=n;i--)e=t[i].create(null,l.c.from(e));return e}function ct(e,t,n,r,o){if(o1&&(f=0),o=n&&(d=t<0?c.contentMatchAt(0).fillBefore(d,f<=o).append(d):d.append(c.contentMatchAt(c.childCount).fillBefore(l.c.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,c.copy(d))}function Et(e,t,n){return t{for(let t in e)view.input.eventHandlers[t]||view.dom.addEventListener(t,view.input.eventHandlers[t]=e=>vt(view,e))}))}function vt(view,e){return view.someProp("handleDOMEvents",(t=>{let n=t[e.type];return!!n&&(n(view,e)||e.defaultPrevented)}))}function Bt(view,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target;t!=view.dom;t=t.parentNode)if(!t||11==t.nodeType||t.pmViewDesc&&t.pmViewDesc.stopEvent(e))return!1;return!0}function _t(e){return{left:e.clientX,top:e.clientY}}function Kt(view,e,t,n,r){if(-1==n)return!1;let o=view.state.doc.resolve(n);for(let i=o.depth+1;i>0;i--)if(view.someProp(e,(e=>i>o.depth?e(view,t,o.nodeAfter,o.before(i),r,!0):e(view,t,o.node(i),o.before(i),r,!1))))return!0;return!1}function wt(view,e,t){view.focused||view.focus();let tr=view.state.tr.setSelection(e);"pointer"==t&&tr.setMeta("pointer",!0),view.dispatch(tr)}function Ut(view,e,t,n,r){return Kt(view,"handleClickOn",e,t,n)||view.someProp("handleClick",(t=>t(view,e,n)))||(r?function(view,e){if(-1==e)return!1;let t,n,r=view.state.selection;r instanceof o.c&&(t=r.node);let l=view.state.doc.resolve(e);for(let i=l.depth+1;i>0;i--){let e=i>l.depth?l.nodeAfter:l.node(i);if(o.c.isSelectable(e)){n=t&&r.$from.depth>0&&i>=r.$from.depth&&l.before(r.$from.depth+1)==r.$from.pos?l.before(r.$from.depth):l.before(i);break}}return null!=n&&(wt(view,o.c.create(view.state.doc,n),"pointer"),!0)}(view,t):function(view,e){if(-1==e)return!1;let t=view.state.doc.resolve(e),n=t.nodeAfter;return!!(n&&n.isAtom&&o.c.isSelectable(n))&&(wt(view,new o.c(t),"pointer"),!0)}(view,t))}function bt(view,e,t,n){return Kt(view,"handleDoubleClickOn",e,t,n)||view.someProp("handleDoubleClick",(t=>t(view,e,n)))}function Nt(view,e,t,n){return Kt(view,"handleTripleClickOn",e,t,n)||view.someProp("handleTripleClick",(t=>t(view,e,n)))||function(view,e,t){if(0!=t.button)return!1;let n=view.state.doc;if(-1==e)return!!n.inlineContent&&(wt(view,o.g.create(n,0,n.content.size),"pointer"),!0);let r=n.resolve(e);for(let i=r.depth+1;i>0;i--){let e=i>r.depth?r.nodeAfter:r.node(i),t=r.before(i);if(e.inlineContent)wt(view,o.g.create(n,t+1,t+1+e.content.size),"pointer");else{if(!o.c.isSelectable(e))continue;wt(view,o.c.create(n,t),"pointer")}return!0}}(view,t,n)}function Dt(view){return Pt(view)}St.keydown=(view,e)=>{let t=e;if(view.input.shiftKey=16==t.keyCode||t.shiftKey,!xt(view,t)&&(view.input.lastKeyCode=t.keyCode,view.input.lastKeyCodeTime=Date.now(),!P||!k||13!=t.keyCode))if(229!=t.keyCode&&view.domObserver.forceFlush(),!M||13!=t.keyCode||t.ctrlKey||t.altKey||t.metaKey)view.someProp("handleKeyDown",(e=>e(view,t)))||ot(view,t)?t.preventDefault():yt(view,"key");else{let e=Date.now();view.input.lastIOSEnter=e,view.input.lastIOSEnterFallbackTimeout=setTimeout((()=>{view.input.lastIOSEnter==e&&(view.someProp("handleKeyDown",(e=>e(view,y(13,"Enter")))),view.input.lastIOSEnter=0)}),200)}},St.keyup=(view,e)=>{16==e.keyCode&&(view.input.shiftKey=!1)},St.keypress=(view,e)=>{let t=e;if(xt(view,t)||!t.charCode||t.ctrlKey&&!t.altKey||V&&t.metaKey)return;if(view.someProp("handleKeyPress",(e=>e(view,t))))return void t.preventDefault();let n=view.state.selection;if(!(n instanceof o.g&&n.$from.sameParent(n.$to))){let text=String.fromCharCode(t.charCode);/[\r\n]/.test(text)||view.someProp("handleTextInput",(e=>e(view,n.$from.pos,n.$to.pos,text)))||view.dispatch(view.state.tr.insertText(text).scrollIntoView()),t.preventDefault()}};const kt=V?"metaKey":"ctrlKey";gt.mousedown=(view,e)=>{let t=e;view.input.shiftKey=t.shiftKey;let n=Dt(view),r=Date.now(),o="singleClick";r-view.input.lastClick.time<500&&function(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}(t,view.input.lastClick)&&!t[kt]&&("singleClick"==view.input.lastClick.type?o="doubleClick":"doubleClick"==view.input.lastClick.type&&(o="tripleClick")),view.input.lastClick={time:r,x:t.clientX,y:t.clientY,type:o};let l=view.posAtCoords(_t(t));l&&("singleClick"==o?(view.input.mouseDown&&view.input.mouseDown.done(),view.input.mouseDown=new Ot(view,l,t,!!n)):("doubleClick"==o?bt:Nt)(view,l.pos,l.inside,t)?t.preventDefault():yt(view,"pointer"))};class Ot{constructor(view,e,t,n){let r,l;if(this.view=view,this.pos=e,this.event=t,this.flushed=n,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=view.state.doc,this.selectNode=!!t[kt],this.allowDefault=t.shiftKey,e.inside>-1)r=view.state.doc.nodeAt(e.inside),l=e.inside;else{let t=view.state.doc.resolve(e.pos);r=t.parent,l=t.depth?t.before():0}const f=n?null:t.target,c=f?view.docView.nearestDesc(f,!0):null;this.target=c?c.dom:null;let{selection:d}=view.state;(0==t.button&&r.type.spec.draggable&&!1!==r.type.spec.selectable||d instanceof o.c&&d.from<=l&&d.to>l)&&(this.mightDrag={node:r,pos:l,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!N||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout((()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")}),20),this.view.domObserver.start()),view.root.addEventListener("mouseup",this.up=this.up.bind(this)),view.root.addEventListener("mousemove",this.move=this.move.bind(this)),yt(view,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout((()=>xe(this.view))),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(_t(e))),this.updateAllowDefault(e),this.allowDefault||!t?yt(this.view,"pointer"):Ut(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||x&&this.mightDrag&&!this.mightDrag.node.isAtom||k&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(wt(this.view,o.f.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):yt(this.view,"pointer")}move(e){this.updateAllowDefault(e),yt(this.view,"pointer"),0==e.buttons&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}function xt(view,e){return!!view.composing||!!(x&&Math.abs(e.timeStamp-view.input.compositionEndedAt)<500)&&(view.input.compositionEndedAt=-2e8,!0)}gt.touchstart=view=>{view.input.lastTouch=Date.now(),Dt(view),yt(view,"pointer")},gt.touchmove=view=>{view.input.lastTouch=Date.now(),yt(view,"pointer")},gt.contextmenu=view=>Dt(view);const Mt=P?5e3:-1;function Vt(view,e){clearTimeout(view.input.composingTimeout),e>-1&&(view.input.composingTimeout=setTimeout((()=>Pt(view)),e))}function It(view){for(view.composing&&(view.input.composing=!1,view.input.compositionEndedAt=function(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}());view.input.compositionNodes.length>0;)view.input.compositionNodes.pop().markParentsDirty()}function Pt(view,e=!1){if(!(P&&view.domObserver.flushingSoon>=0)){if(view.domObserver.forceFlush(),It(view),e||view.docView&&view.docView.dirty){let e=ke(view);return e&&!e.eq(view.state.selection)?view.dispatch(view.state.tr.setSelection(e)):view.updateState(view.state),!0}return!1}}St.compositionstart=St.compositionupdate=view=>{if(!view.composing){view.domObserver.flush();let{state:e}=view,t=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!t.textOffset&&t.parentOffset&&t.nodeBefore.marks.some((e=>!1===e.type.spec.inclusive))))view.markCursor=view.state.storedMarks||t.marks(),Pt(view,!0),view.markCursor=null;else if(Pt(view),N&&e.selection.empty&&t.parentOffset&&!t.textOffset&&t.nodeBefore.marks.length){let e=view.domSelectionRange();for(let t=e.focusNode,n=e.focusOffset;t&&1==t.nodeType&&0!=n;){let e=n<0?t.lastChild:t.childNodes[n-1];if(!e)break;if(3==e.nodeType){view.domSelection().collapse(e,e.nodeValue.length);break}t=e,n=-1}}view.input.composing=!0}Vt(view,Mt)},St.compositionend=(view,e)=>{view.composing&&(view.input.composing=!1,view.input.compositionEndedAt=e.timeStamp,view.input.compositionID++,Vt(view,20))};const Xt=w&&U<15||M&&j<604;function jt(view,text,html,e,t){let n=at(view,text,html,e,view.state.selection.$from);if(view.someProp("handlePaste",(e=>e(view,t,n||l.j.empty))))return!0;if(!n)return!1;let r=function(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}(n),tr=r?view.state.tr.replaceSelectionWith(r,view.input.shiftKey):view.state.tr.replaceSelection(n);return view.dispatch(tr.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}gt.copy=St.cut=(view,e)=>{let t=e,n=view.state.selection,r="cut"==t.type;if(n.empty)return;let data=Xt?null:t.clipboardData,o=n.content(),{dom:l,text:text}=lt(view,o);data?(t.preventDefault(),data.clearData(),data.setData("text/html",l.innerHTML),data.setData("text/plain",text)):function(view,e){if(!view.dom.parentNode)return;let t=view.dom.parentNode.appendChild(document.createElement("div"));t.appendChild(e),t.style.cssText="position: fixed; left: -10000px; top: 10px";let n=getSelection(),r=document.createRange();r.selectNodeContents(e),view.dom.blur(),n.removeAllRanges(),n.addRange(r),setTimeout((()=>{t.parentNode&&t.parentNode.removeChild(t),view.focus()}),50)}(view,l),r&&view.dispatch(view.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},St.paste=(view,e)=>{let t=e;if(view.composing&&!P)return;let data=Xt?null:t.clipboardData;data&&jt(view,data.getData("text/plain"),data.getData("text/html"),view.input.shiftKey,t)?t.preventDefault():function(view,e){if(!view.dom.parentNode)return;let t=view.input.shiftKey||view.state.selection.$from.parent.type.spec.code,n=view.dom.parentNode.appendChild(document.createElement(t?"textarea":"div"));t||(n.contentEditable="true"),n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout((()=>{view.focus(),n.parentNode&&n.parentNode.removeChild(n),t?jt(view,n.value,null,view.input.shiftKey,e):jt(view,n.textContent,n.innerHTML,view.input.shiftKey,e)}),50)}(view,t)};class zt{constructor(e,t){this.slice=e,this.move=t}}const Gt=V?"altKey":"ctrlKey";gt.dragstart=(view,e)=>{let t=e,n=view.input.mouseDown;if(n&&n.done(),!t.dataTransfer)return;let r=view.state.selection,l=r.empty?null:view.posAtCoords(_t(t));if(l&&l.pos>=r.from&&l.pos<=(r instanceof o.c?r.to-1:r.to));else if(n&&n.mightDrag)view.dispatch(view.state.tr.setSelection(o.c.create(view.state.doc,n.mightDrag.pos)));else if(t.target&&1==t.target.nodeType){let desc=view.docView.nearestDesc(t.target,!0);desc&&desc.node.type.spec.draggable&&desc!=view.docView&&view.dispatch(view.state.tr.setSelection(o.c.create(view.state.doc,desc.posBefore)))}let f=view.state.selection.content(),{dom:c,text:text}=lt(view,f);t.dataTransfer.clearData(),t.dataTransfer.setData(Xt?"Text":"text/html",c.innerHTML),t.dataTransfer.effectAllowed="copyMove",Xt||t.dataTransfer.setData("text/plain",text),view.dragging=new zt(f,!t[Gt])},gt.dragend=view=>{let e=view.dragging;window.setTimeout((()=>{view.dragging==e&&(view.dragging=null)}),50)},St.dragover=St.dragenter=(e,t)=>t.preventDefault(),St.drop=(view,e)=>{let t=e,n=view.dragging;if(view.dragging=null,!t.dataTransfer)return;let r=view.posAtCoords(_t(t));if(!r)return;let c=view.state.doc.resolve(r.pos),d=n&&n.slice;d?view.someProp("transformPasted",(e=>{d=e(d,view)})):d=at(view,t.dataTransfer.getData(Xt?"Text":"text/plain"),Xt?null:t.dataTransfer.getData("text/html"),!1,c);let h=!(!n||t[Gt]);if(view.someProp("handleDrop",(e=>e(view,t,d||l.j.empty,h))))return void t.preventDefault();if(!d)return;t.preventDefault();let E=d?Object(f.g)(view.state.doc,c.pos,d):c.pos;null==E&&(E=c.pos);let tr=view.state.tr;h&&tr.deleteSelection();let m=tr.mapping.map(E),R=0==d.openStart&&0==d.openEnd&&1==d.content.childCount,T=tr.doc;if(R?tr.replaceRangeWith(m,m,d.content.firstChild):tr.replaceRange(m,m,d),tr.doc.eq(T))return;let S=tr.doc.resolve(m);if(R&&o.c.isSelectable(d.content.firstChild)&&S.nodeAfter&&S.nodeAfter.sameMarkup(d.content.firstChild))tr.setSelection(new o.c(S));else{let e=tr.mapping.map(E);tr.mapping.maps[tr.mapping.maps.length-1].forEach(((t,n,r,o)=>e=o)),tr.setSelection(ze(view,S,tr.doc.resolve(e)))}view.focus(),view.dispatch(tr.setMeta("uiEvent","drop"))},gt.focus=view=>{view.input.lastFocus=Date.now(),view.focused||(view.domObserver.stop(),view.dom.classList.add("ProseMirror-focused"),view.domObserver.start(),view.focused=!0,setTimeout((()=>{view.docView&&view.hasFocus()&&!view.domObserver.currentSelection.eq(view.domSelectionRange())&&xe(view)}),20))},gt.blur=(view,e)=>{let t=e;view.focused&&(view.domObserver.stop(),view.dom.classList.remove("ProseMirror-focused"),view.domObserver.start(),t.relatedTarget&&view.dom.contains(t.relatedTarget)&&view.domObserver.currentSelection.clear(),view.focused=!1)},gt.beforeinput=(view,e)=>{if(k&&P&&"deleteContentBackward"==e.inputType){view.domObserver.flushSoon();let{domChangeCount:e}=view.input;setTimeout((()=>{if(view.input.domChangeCount!=e)return;if(view.dom.blur(),view.focus(),view.someProp("handleKeyDown",(e=>e(view,y(8,"Backspace")))))return;let{$cursor:t}=view.state.selection;t&&t.pos>0&&view.dispatch(view.state.tr.delete(t.pos-1,t.pos).scrollIntoView())}),50)}};for(let e in St)gt[e]=St[e];function Ft(a,b){if(a==b)return!0;for(let p in a)if(a[p]!==b[p])return!1;for(let p in b)if(!(p in a))return!1;return!0}class Ht{constructor(e,t){this.toDOM=e,this.spec=t||Zt,this.side=this.spec.side||0}map(e,span,t,n){let{pos:r,deleted:o}=e.mapResult(span.from+n,this.side<0?-1:1);return o?null:new Wt(r-t,r-t,this)}valid(){return!0}eq(e){return this==e||e instanceof Ht&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Ft(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class $t{constructor(e,t){this.attrs=e,this.spec=t||Zt}map(e,span,t,n){let r=e.map(span.from+n,this.spec.inclusiveStart?-1:1)-t,o=e.map(span.to+n,this.spec.inclusiveEnd?1:-1)-t;return r>=o?null:new Wt(r,o,this)}valid(e,span){return span.from=e&&(!o||o(span.spec))&&n.push(span.copy(span.from+r,span.to+r))}for(let i=0;ie){let l=this.children[i]+1;this.children[i+2].findInner(e-l,t-l,n,r+l,o)}}map(e,t,n){return this==Qt||0==e.maps.length?this:this.mapInner(e,t,0,0,n||Zt)}mapInner(e,t,n,r,o){let l;for(let i=0;i{let d=f-l-(r-n);for(let i=0;if+e-t)continue;let h=c[i]+e-t;r>=h?c[i+1]=n<=h?-2:-1:l>=o&&d&&(c[i]+=d,c[i+1]+=d)}t+=d})),e=n.maps[i].map(e,-1)}let d=!1;for(let i=0;i=r.content.size){d=!0;continue}let E=n.map(e[i+1]+l,-1)-o,{index:m,offset:R}=r.content.findIndex(h),T=r.maybeChild(m);if(T&&R==h&&R+T.nodeSize==E){let r=c[i+2].mapInner(n,T,t+1,e[i]+l+1,f);r!=Qt?(c[i]=h,c[i+1]=E,c[i+2]=r):(c[i+1]=-2,d=!0)}else d=!0}if(d){let d=function(e,t,n,r,o,l,f){function c(e,t){for(let i=0;i{let f,c=l+n;if(f=nn(t,e,c)){for(r||(r=this.children.slice());oo&&span.to=e){this.children[i]==e&&(n=this.children[i+2]);break}let o=e+1,l=o+t.content.size;for(let i=0;io&&e.type instanceof $t){let t=Math.max(o,e.from)-o,n=Math.min(l,e.to)-o;tn.map(e,t,Zt)));return en.from(n)}forChild(e,t){if(t.isLeaf)return Yt.empty;let n=[];for(let i=0;ie instanceof Yt))?e:e.reduce(((e,t)=>e.concat(t instanceof Yt?t:t.members)),[]))}}}function tn(e,t){if(!t||!e.length)return e;let n=[];for(let i=0;in&&span.to{let c=nn(e,t,f+n);if(c){l=!0;let e=sn(c,t,n+f+1,r);e!=Qt&&o.push(f,f+t.nodeSize,e)}}));let f=tn(l?rn(e):e,-n).sort(on);for(let i=0;i0;)i++;e.splice(i,0,t)}function un(view){let e=[];return view.someProp("decorations",(t=>{let n=t(view.state);n&&n!=Qt&&e.push(n)})),view.cursorWrapper&&e.push(Yt.create(view.state.doc,[view.cursorWrapper.deco])),en.from(e)}const fn={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},cn=w&&U<=11;class dn{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class hn{constructor(view,e){this.view=view,this.handleDOMChange=e,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new dn,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver((e=>{for(let i=0;i"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))?this.flushSoon():this.flush()})),cn&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout((()=>{this.flushingSoon=-1,this.flush()}),20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,fn)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let i=0;ithis.flush()),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout((()=>this.suppressingSelectionUpdates=!1),50)}onSelectionChange(){if(Ge(this.view)){if(this.suppressingSelectionUpdates)return xe(this.view);if(w&&U<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&m(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t,n=new Set;for(let t=e.focusNode;t;t=d(t))n.add(t);for(let r=e.anchorNode;r;r=d(r))if(n.has(r)){t=r;break}let desc=t&&this.view.docView.nearestDesc(t);return desc&&desc.ignoreMutation({type:"selection",target:3==t.nodeType?t.parentNode:t})?(this.setCurSelection(),!0):void 0}flush(){let{view:view}=this;if(!view.docView||this.flushingSoon>-1)return;let e=this.observer?this.observer.takeRecords():[];this.queue.length&&(e=this.queue.concat(e),this.queue.length=0);let t=view.domSelectionRange(),n=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(t)&&Ge(view)&&!this.ignoreSelectionChange(t),r=-1,l=-1,f=!1,c=[];if(view.editable)for(let i=0;i1){let e=c.filter((e=>"BR"==e.nodeName));if(2==e.length){let a=e[0],b=e[1];a.parentNode&&a.parentNode.parentNode==b.parentNode?b.remove():a.remove()}}let d=null;r<0&&n&&view.input.lastFocus>Date.now()-200&&Math.max(view.input.lastTouch,view.input.lastClick.time)-1||n)&&(r>-1&&(view.docView.markDirty(r,l),function(view){if(pn.has(view))return;if(pn.set(view,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(view.dom).whiteSpace)){if(view.requiresGeckoHackNode=N,En)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),En=!0}}(view)),this.handleDOMChange(r,l,f,c),view.docView&&view.docView.dirty?view.updateState(view.state):this.currentSelection.eq(t)||xe(view),this.currentSelection.set(t))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let desc=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(desc==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!desc||desc.ignoreMutation(e))return null;if("childList"==e.type){for(let i=0;iDate.now()-50?view.input.lastSelectionOrigin:null,t=ke(view,e);if(t&&!view.state.selection.eq(t)){if(k&&P&&13===view.input.lastKeyCode&&Date.now()-100e(view,y(13,"Enter")))))return;let tr=view.state.tr.setSelection(t);"pointer"==e?tr.setMeta("pointer",!0):"key"==e&&tr.scrollIntoView(),view.composing&&tr.setMeta("composition",view.input.compositionID),view.dispatch(tr)}return}let f=view.state.doc.resolve(e),c=f.sharedDepth(t);e=f.before(c+1),t=view.state.doc.resolve(t).after(c+1);let d,h,E=view.state.selection,m=function(view,e,t){let n,{node:r,fromOffset:o,toOffset:f,from:c,to:d}=view.docView.parseRange(e,t),h=view.domSelectionRange(),E=h.anchorNode;if(E&&view.dom.contains(1==E.nodeType?E:E.parentNode)&&(n=[{node:E,offset:h.anchorOffset}],L(h)||n.push({node:h.focusNode,offset:h.focusOffset})),k&&8===view.input.lastKeyCode)for(let e=f;e>o;e--){let t=r.childNodes[e-1],desc=t.pmViewDesc;if("BR"==t.nodeName&&!desc){f=e;break}if(!desc||desc.size)break}let m=view.state.doc,R=view.someProp("domParser")||l.a.fromSchema(view.state.schema),T=m.resolve(c),S=null,C=R.parse(r,{topNode:T.parent,topMatch:T.parent.contentMatchAt(T.index()),topOpen:!0,from:o,to:f,preserveWhitespace:"pre"!=T.parent.type.whitespace||"full",findPositions:n,ruleFromNode:mn,context:T});if(n&&null!=n[0].pos){let e=n[0].pos,head=n[1]&&n[1].pos;null==head&&(head=e),S={anchor:e+c,head:head+c}}return{doc:C,sel:S,from:c,to:d}}(view,e,t),R=view.state.doc,T=R.slice(m.from,m.to);8===view.input.lastKeyCode&&Date.now()-100=o?r-t:0,l=r+(l-o),o=r}else if(l=l?r-t:0,o=r+(o-l),l=r}return{start:r,endA:o,endB:l}}(T.content,m.doc.content,m.from,d,h);if((M&&view.input.lastIOSEnter>Date.now()-225||P)&&r.some((e=>1==e.nodeType&&!Rn.test(e.nodeName)))&&(!S||S.endA>=S.endB)&&view.someProp("handleKeyDown",(e=>e(view,y(13,"Enter")))))return void(view.input.lastIOSEnter=0);if(!S){if(!(n&&E instanceof o.g&&!E.empty&&E.$head.sameParent(E.$anchor))||view.composing||m.sel&&m.sel.anchor!=m.sel.head){if(m.sel){let e=gn(view,view.state.doc,m.sel);if(e&&!e.eq(view.state.selection)){let tr=view.state.tr.setSelection(e);view.composing&&tr.setMeta("composition",view.input.compositionID),view.dispatch(tr)}}return}S={start:E.from,endA:E.to,endB:E.to}}if(k&&view.cursorWrapper&&m.sel&&m.sel.anchor==view.cursorWrapper.deco.from&&m.sel.head==m.sel.anchor){let e=S.endB-S.start;m.sel={anchor:m.sel.anchor+e,head:m.sel.anchor+e}}view.input.domChangeCount++,view.state.selection.fromview.state.selection.from&&S.start<=view.state.selection.from+2&&view.state.selection.from>=m.from?S.start=view.state.selection.from:S.endA=view.state.selection.to-2&&view.state.selection.to<=m.to&&(S.endB+=view.state.selection.to-S.endA,S.endA=view.state.selection.to)),w&&U<=11&&S.endB==S.start+1&&S.endA==S.start&&S.start>m.from&&"  "==m.doc.textBetween(S.start-m.from-1,S.start-m.from+1)&&(S.start--,S.endA--,S.endB--);let C,A=m.doc.resolveNoCache(S.start-m.from),v=m.doc.resolveNoCache(S.endB-m.from),B=R.resolve(S.start),_=A.sameParent(v)&&A.parent.inlineContent&&B.end()>=S.endA;if((M&&view.input.lastIOSEnter>Date.now()-225&&(!_||r.some((e=>"DIV"==e.nodeName||"P"==e.nodeName)))||!_&&A.pose(view,y(13,"Enter")))))return void(view.input.lastIOSEnter=0);if(view.state.selection.anchor>S.start&&function(e,t,n,r,o){if(!r.parent.isTextblock||n-t<=o.pos-r.pos||Sn(r,!0,!1)n||Sn(f,!0,!1)e(view,y(8,"Backspace")))))return void(P&&k&&view.domObserver.suppressSelectionUpdates());k&&P&&S.endB==S.start&&(view.input.lastAndroidDelete=Date.now()),P&&!_&&A.start()!=v.start()&&0==v.parentOffset&&A.depth==v.depth&&m.sel&&m.sel.anchor==m.sel.head&&m.sel.head==S.endA&&(S.endB-=2,v=m.doc.resolveNoCache(S.endB-m.from),setTimeout((()=>{view.someProp("handleKeyDown",(function(e){return e(view,y(13,"Enter"))}))}),20));let tr,K,N,D=S.start,O=S.endA;if(_)if(A.pos==v.pos)w&&U<=11&&0==A.parentOffset&&(view.domObserver.suppressSelectionUpdates(),setTimeout((()=>xe(view)),20)),tr=view.state.tr.delete(D,O),K=R.resolve(S.start).marksAcross(R.resolve(S.endA));else if(S.endA==S.endB&&(N=function(e,t){let n,mark,r,o=e.firstChild.marks,f=t.firstChild.marks,c=o,d=f;for(let i=0;ie.mark(mark.addToSet(e.marks));else{if(0!=c.length||1!=d.length)return null;mark=d[0],n="remove",r=e=>e.mark(mark.removeFromSet(e.marks))}let h=[];for(let i=0;ie(view,D,O,text))))return;tr=view.state.tr.insertText(text,D,O)}if(tr||(tr=view.state.tr.replace(D,O,m.doc.slice(S.start-m.from,S.endB-m.from))),m.sel){let e=gn(view,tr.doc,m.sel);e&&!(k&&P&&view.composing&&e.empty&&(S.start!=S.endB||view.input.lastAndroidDeletee.content.size?null:ze(view,e.resolve(t.anchor),e.resolve(t.head))}function Sn(e,t,n){let r=e.depth,o=t?e.end():e.pos;for(;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,o++,t=!1;if(n){let t=e.node(r).maybeChild(e.indexAfter(r));for(;t&&!t.isLeaf;)t=t.firstChild,o++}return o}class Cn{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new Lt,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(Bn),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):"function"==typeof e?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=An(this),yn(this),this.nodeViews=vn(this),this.docView=Te(this.state.doc,Ln(this),un(this),this.dom,this),this.domObserver=new hn(this,((e,t,n,r)=>Tn(this,e,t,n,r))),this.domObserver.start(),function(view){for(let e in gt){let t=gt[e];view.dom.addEventListener(e,view.input.eventHandlers[e]=e=>{!Bt(view,e)||vt(view,e)||!view.editable&&e.type in St||t(view,e)},Ct[e]?{passive:!0}:void 0)}x&&view.dom.addEventListener("input",(()=>null)),At(view)}(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&At(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Bn),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let e in this._props)t[e]=this._props[e];t.state=this.state;for(let n in e)t[n]=e[n];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){let n=this.state,r=!1,o=!1;e.storedMarks&&this.composing&&(It(this),o=!0),this.state=e;let l=n.plugins!=e.plugins||this._props.plugins!=t.plugins;if(l||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let e=vn(this);(function(a,b){let e=0,t=0;for(let t in a){if(a[t]!=b[t])return!0;e++}for(let e in b)t++;return e!=t})(e,this.nodeViews)&&(this.nodeViews=e,r=!0)}(l||t.handleDOMEvents!=this._props.handleDOMEvents)&&At(this),this.editable=An(this),yn(this);let f=un(this),c=Ln(this),d=n.plugins==e.plugins||n.doc.eq(e.doc)?e.scrollToSelection>n.scrollToSelection?"to selection":"preserve":"reset",h=r||!this.docView.matchesNode(e.doc,c,f);!h&&e.selection.eq(n.selection)||(o=!0);let E="preserve"==d&&o&&null==this.dom.style.overflowAnchor&&function(view){let e,t,rect=view.dom.getBoundingClientRect(),n=Math.max(0,rect.top);for(let r=(rect.left+rect.right)/2,o=n+1;o=n-20){e=l,t=f.top;break}}return{refDOM:e,refTop:t,stack:$(view.dom)}}(this);if(o){this.domObserver.stop();let t=h&&(w||k)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&function(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}(n.selection,e.selection);if(h){let n=k?this.trackWrites=this.domSelectionRange().focusNode:null;!r&&this.docView.update(e.doc,c,f,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=Te(e.doc,c,f,this.dom,this)),n&&!this.trackWrites&&(t=!0)}t||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&function(view){let e=view.docView.domFromPos(view.state.selection.anchor,0),t=view.domSelectionRange();return m(e.node,e.offset,t.anchorNode,t.anchorOffset)}(this))?xe(this,t):(Xe(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(n),"reset"==d?this.dom.scrollTop=0:"to selection"==d?this.scrollToSelection():E&&function({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;W(n,0==r?0:r-t)}(E)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(this.someProp("handleScrollToSelection",(e=>e(this))));else if(this.state.selection instanceof o.c){let t=this.docView.domAfterPos(this.state.selection.from);1==t.nodeType&&H(this,t.getBoundingClientRect(),e)}else H(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let view;for(;view=this.pluginViews.pop();)view.destroy&&view.destroy()}updatePluginViews(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let i=0;ie.ownerDocument.getSelection()),this._root=e;return e||document}posAtCoords(e){return ee(this,e)}coordsAtPos(e,t=1){return ie(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let desc=this.docView.descAt(e);return desc?desc.nodeDOM:null}posAtDOM(e,t,n=-1){let r=this.docView.posFromDOM(e,t,n);if(null==r)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(e,t){return de(this,t||this.state,e)}pasteHTML(html,e){return jt(this,"",html,!1,e||new ClipboardEvent("paste"))}pasteText(text,e){return jt(this,text,null,!0,e||new ClipboardEvent("paste"))}destroy(){this.docView&&(!function(view){view.domObserver.stop();for(let e in view.input.eventHandlers)view.dom.removeEventListener(e,view.input.eventHandlers[e]);clearTimeout(view.input.composingTimeout),clearTimeout(view.input.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],un(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return null==this.docView}dispatchEvent(e){return function(view,e){vt(view,e)||!gt[e.type]||!view.editable&&e.type in St||gt[e.type](view,e)}(this,e)}dispatch(tr){let e=this._props.dispatchTransaction;e?e.call(this,tr):this.updateState(this.state.apply(tr))}domSelectionRange(){return x&&11===this.root.nodeType&&function(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom?function(view){let e;function t(t){t.preventDefault(),t.stopImmediatePropagation(),e=t.getTargetRanges()[0]}view.dom.addEventListener("beforeinput",t,!0),document.execCommand("indent"),view.dom.removeEventListener("beforeinput",t,!0);let n=e.startContainer,r=e.startOffset,o=e.endContainer,l=e.endOffset,f=view.domAtPos(view.state.selection.anchor);return m(f.node,f.offset,o,l)&&([n,r,o,l]=[o,l,n,r]),{anchorNode:n,anchorOffset:r,focusNode:o,focusOffset:l}}(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function Ln(view){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(view.editable),view.someProp("attributes",(t=>{if("function"==typeof t&&(t=t(view.state)),t)for(let n in t)"class"==n?e.class+=" "+t[n]:"style"==n?e.style=(e.style?e.style+";":"")+t[n]:e[n]||"contenteditable"==n||"nodeName"==n||(e[n]=String(t[n]))})),e.translate||(e.translate="no"),[Wt.node(0,view.state.doc.content.size,e)]}function yn(view){if(view.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),view.cursorWrapper={dom:e,deco:Wt.widget(view.state.selection.head,e,{raw:!0,marks:view.markCursor})}}else view.cursorWrapper=null}function An(view){return!view.someProp("editable",(e=>!1===e(view.state)))}function vn(view){let e=Object.create(null);function t(t){for(let n in t)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t[n])}return view.someProp("nodeViews",t),view.someProp("markViews",t),e}function Bn(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var base={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},_n={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Kn="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),wn=("undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)),Un="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),bn=wn||Kn&&+Kn[1]<57,Nn=0;Nn<10;Nn++)base[48+Nn]=base[96+Nn]=String(Nn);for(Nn=1;Nn<=24;Nn++)base[Nn+111]="F"+Nn;for(Nn=65;Nn<=90;Nn++)base[Nn]=String.fromCharCode(Nn+32),_n[Nn]=String.fromCharCode(Nn);for(var code in base)_n.hasOwnProperty(code)||(_n[code]=base[code]);const Dn="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function kn(e){let t,n,r,meta,o=e.split(/-(?!$)/),l=o[o.length-1];"Space"==l&&(l=" ");for(let i=0;i127)&&(t=base[e.keyCode])&&t!=n){let n=map[On(t,e)];if(n&&n(view.state,view.dispatch,view))return!0}}return!1}}const Mn=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function Vn(e,view){let{$cursor:t}=e.selection;return!t||(view?!view.endOfTextblock("backward",e):t.parentOffset>0)?null:t}const In=(e,t,view)=>{let n=Vn(e,view);if(!n)return!1;let r=jn(n);if(!r){let r=n.blockRange(),o=r&&Object(f.j)(r);return null!=o&&(t&&t(e.tr.lift(r,o).scrollIntoView()),!0)}let c=r.nodeBefore;if(!c.type.spec.isolating&&er(e,r,t))return!0;if(0==n.parent.content.size&&(Pn(c,"end")||o.c.isSelectable(c))){let d=Object(f.k)(e.doc,n.before(),n.after(),l.j.empty);if(d&&d.slice.size{let{$head:n,empty:r}=e.selection,l=n;if(!r)return!1;if(n.parent.isTextblock){if(view?!view.endOfTextblock("backward",e):n.parentOffset>0)return!1;l=jn(n)}let f=l&&l.nodeBefore;return!(!f||!o.c.isSelectable(f))&&(t&&t(e.tr.setSelection(o.c.create(e.doc,l.pos-f.nodeSize)).scrollIntoView()),!0)};function jn(e){if(!e.parent.type.spec.isolating)for(let i=e.depth-1;i>=0;i--){if(e.index(i)>0)return e.doc.resolve(e.before(i+1));if(e.node(i).type.spec.isolating)break}return null}function zn(e,view){let{$cursor:t}=e.selection;return!t||(view?!view.endOfTextblock("forward",e):t.parentOffset{let n=zn(e,view);if(!n)return!1;let r=Hn(n);if(!r)return!1;let c=r.nodeAfter;if(er(e,r,t))return!0;if(0==n.parent.content.size&&(Pn(c,"start")||o.c.isSelectable(c))){let d=Object(f.k)(e.doc,n.before(),n.after(),l.j.empty);if(d&&d.slice.size{let{$head:n,empty:r}=e.selection,l=n;if(!r)return!1;if(n.parent.isTextblock){if(view?!view.endOfTextblock("forward",e):n.parentOffset=0;i--){let t=e.node(i);if(e.index(i)+1{let{$head:n,$anchor:r}=e.selection;return!(!n.parent.type.spec.code||!n.sameParent(r))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function qn(e){for(let i=0;i{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let l=n.node(-1),f=n.indexAfter(-1),c=qn(l.contentMatchAt(f));if(!c||!l.canReplaceWith(f,f,c))return!1;if(t){let r=n.after(),tr=e.tr.replaceWith(r,r,c.createAndFill());tr.setSelection(o.f.near(tr.doc.resolve(r),1)),t(tr.scrollIntoView())}return!0},Jn=(e,t)=>{let n=e.selection,{$from:r,$to:l}=n;if(n instanceof o.a||r.parent.inlineContent||l.parent.inlineContent)return!1;let f=qn(l.parent.contentMatchAt(l.indexAfter()));if(!f||!f.isTextblock)return!1;if(t){let n=(!r.parentOffset&&l.index(){let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if(Object(f.f)(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),o=r&&Object(f.j)(r);return null!=o&&(t&&t(e.tr.lift(r,o).scrollIntoView()),!0)};const Yn=(e,t)=>{let{$from:n,$to:r}=e.selection;if(e.selection instanceof o.c&&e.selection.node.isBlock)return!(!n.parentOffset||!Object(f.f)(e.doc,n.pos)||(t&&t(e.tr.split(n.pos).scrollIntoView()),0));if(!n.parent.isBlock)return!1;if(t){let l=r.parentOffset==r.parent.content.size,tr=e.tr;(e.selection instanceof o.g||e.selection instanceof o.a)&&tr.deleteSelection();let c=0==n.depth?null:qn(n.node(-1).contentMatchAt(n.indexAfter(-1))),d=Qn&&Qn(r.parent,l),h=d?[d]:l&&c?[{type:c}]:void 0,E=Object(f.f)(tr.doc,tr.mapping.map(n.pos),1,h);if(h||E||!Object(f.f)(tr.doc,tr.mapping.map(n.pos),1,c?[{type:c}]:void 0)||(c&&(h=[{type:c}]),E=!0),E&&(tr.split(tr.mapping.map(n.pos),1,h),!l&&!n.parentOffset&&n.parent.type!=c)){let e=tr.mapping.map(n.before()),t=tr.doc.resolve(e);c&&n.node(-1).canReplaceWith(t.index(),t.index()+1,c)&&tr.setNodeMarkup(tr.mapping.map(n.before()),c)}t(tr.scrollIntoView())}return!0};var Qn;function er(e,t,n){let r,c,d=t.nodeBefore,h=t.nodeAfter;if(d.type.spec.isolating||h.type.spec.isolating)return!1;if(function(e,t,n){let r=t.nodeBefore,o=t.nodeAfter,l=t.index();return!(!(r&&o&&r.type.compatibleContent(o.type))||(!r.content.size&&t.parent.canReplace(l-1,l)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),0):!t.parent.canReplace(l,l+1)||!o.isTextblock&&!Object(f.e)(e.doc,t.pos)||(n&&n(e.tr.clearIncompatible(t.pos,r.type,r.contentMatchAt(r.childCount)).join(t.pos).scrollIntoView()),0)))}(e,t,n))return!0;let E=t.parent.canReplace(t.index(),t.index()+1);if(E&&(r=(c=d.contentMatchAt(d.childCount)).findWrapping(h.type))&&c.matchType(r[0]||h.type).validEnd){if(n){let o=t.pos+h.nodeSize,c=l.c.empty;for(let i=r.length-1;i>=0;i--)c=l.c.from(r[i].create(null,c));c=l.c.from(d.copy(c));let tr=e.tr.step(new f.b(t.pos-1,o,t.pos,o,new l.j(c,1,0),r.length,!0)),E=o+2*r.length;Object(f.e)(tr.doc,E)&&tr.join(E),n(tr.scrollIntoView())}return!0}let m=o.f.findFrom(t,1),R=m&&m.$from.blockRange(m.$to),T=R&&Object(f.j)(R);if(null!=T&&T>=t.depth)return n&&n(e.tr.lift(R,T).scrollIntoView()),!0;if(E&&Pn(h,"start",!0)&&Pn(d,"end")){let r=d,o=[];for(;o.push(r),!r.isTextblock;)r=r.lastChild;let c=h,E=1;for(;!c.isTextblock;c=c.firstChild)E++;if(r.canReplace(r.childCount,r.childCount,c.content)){if(n){let r=l.c.empty;for(let i=o.length-1;i>=0;i--)r=l.c.from(o[i].copy(r));n(e.tr.step(new f.b(t.pos-o.length,t.pos+h.nodeSize,t.pos+E,t.pos+h.nodeSize-E,new l.j(r,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function nr(e){return function(t,n){let r=t.selection,l=e<0?r.$from:r.$to,f=l.depth;for(;l.node(f).isInline;){if(!f)return!1;f--}return!!l.node(f).isTextblock&&(n&&n(t.tr.setSelection(o.g.create(t.doc,e<0?l.start(f):l.end(f)))),!0)}}const rr=nr(-1),ir=nr(1);function sr(e,t=null){return function(n,r){let o=!1;for(let i=0;i{if(o)return!1;if(r.isTextblock&&!r.hasMarkup(e,t))if(r.type==e)o=!0;else{let t=n.doc.resolve(l),r=t.index();o=t.parent.canReplaceWith(r,r+1,e)}}))}if(!o)return!1;if(r){let tr=n.tr;for(let i=0;i(t&&t(e.tr.setSelection(new o.a(e.doc))),!0)},ur={"Ctrl-h":ar.Backspace,"Alt-Backspace":ar["Mod-Backspace"],"Ctrl-d":ar.Delete,"Ctrl-Alt-Backspace":ar["Mod-Delete"],"Alt-Delete":ar["Mod-Delete"],"Alt-d":ar["Mod-Delete"],"Ctrl-a":rr,"Ctrl-e":ir};for(let e in ar)ur[e]=ar[e];"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!("undefined"==typeof os||!os.platform)&&os.platform();function fr(e,t=null){return function(n,r){let{$from:o,$to:c}=n.selection,d=o.blockRange(c),h=!1,E=d;if(!d)return!1;if(d.depth>=2&&o.node(d.depth-1).type.compatibleContent(e)&&0==d.startIndex){if(0==o.index(d.depth-1))return!1;let e=n.doc.resolve(d.start-2);E=new l.g(e,e,d.depth),d.endIndex=0;i--)content=l.c.from(t[i].type.create(t[i].attrs,content));tr.step(new f.b(e.start-(n?2:0),e.end,e.start,e.end,new l.j(content,0,0),t.length,!0));let o=0;for(let i=0;it.childCount>0&&t.firstChild.type==e));return!!c&&(!n||(r.node(c.depth-1).type==e?function(e,t,n,r){let tr=e.tr,o=r.end,c=r.$to.end(r.depth);ot;i--)e-=r.child(i).nodeSize,tr.delete(e-1,e+1);let o=tr.doc.resolve(n.start),c=o.nodeAfter;if(tr.mapping.map(n.end)!=n.start+o.nodeAfter.nodeSize)return!1;let d=0==n.startIndex,h=n.endIndex==r.childCount,E=o.node(-1),m=o.index(-1);if(!E.canReplace(m+(d?0:1),m+1,c.content.append(h?l.c.empty:l.c.from(r))))return!1;let R=o.pos,T=R+c.nodeSize;return tr.step(new f.b(R-(d?1:0),T+(h?1:0),R+1,T-1,new l.j((d?l.c.empty:l.c.from(r.copy(l.c.empty))).append(h?l.c.empty:l.c.from(r.copy(l.c.empty))),d?0:1,h?0:1),d?0:1)),t(tr.scrollIntoView()),!0}(t,n,c)))}}function dr(e){const{state:t,transaction:n}=e;let{selection:r}=n,{doc:o}=n,{storedMarks:l}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),filterTransaction:t.filterTransaction,plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return l},get selection(){return r},get doc(){return o},get tr(){return r=n.selection,o=n.doc,l=n.storedMarks,n}}}class pr{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:t,state:n}=this,{view:view}=t,{tr:tr}=n,r=this.buildProps(tr);return Object.fromEntries(Object.entries(e).map((([e,t])=>[e,(...e)=>{const n=t(...e)(r);return tr.getMeta("preventDispatch")||this.hasCustomState||view.dispatch(tr),n}])))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){const{rawCommands:n,editor:r,state:o}=this,{view:view}=r,l=[],f=!!e,tr=e||o.tr,c={...Object.fromEntries(Object.entries(n).map((([e,n])=>[e,(...e)=>{const r=this.buildProps(tr,t),o=n(...e)(r);return l.push(o),c}]))),run:()=>(f||!t||tr.getMeta("preventDispatch")||this.hasCustomState||view.dispatch(tr),l.every((e=>!0===e)))};return c}createCan(e){const{rawCommands:t,state:n}=this,tr=e||n.tr,r=this.buildProps(tr,false),o=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,(...e)=>t(...e)({...r,dispatch:void 0})])));return{...o,chain:()=>this.createChain(tr,false)}}buildProps(tr,e=!0){const{rawCommands:t,editor:n,state:r}=this,{view:view}=n;r.storedMarks&&tr.setStoredMarks(r.storedMarks);const o={tr:tr,editor:n,view:view,state:dr({state:r,transaction:tr}),dispatch:e?()=>{}:void 0,chain:()=>this.createChain(tr),can:()=>this.createCan(tr),get commands(){return Object.fromEntries(Object.entries(t).map((([e,t])=>[e,(...e)=>t(...e)(o)])))}};return o}}class Er{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const n=this.callbacks[e];return n&&n.forEach((e=>e.apply(this,t))),this}off(e,t){const n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter((e=>e!==t)):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}}function mr(e,t,n){if(void 0===e.config[t]&&e.parent)return mr(e.parent,t,n);if("function"==typeof e.config[t]){return e.config[t].bind({...n,parent:e.parent?mr(e.parent,t,n):null})}return e.config[t]}function Rr(e){return{baseExtensions:e.filter((e=>"extension"===e.type)),nodeExtensions:e.filter((e=>"node"===e.type)),markExtensions:e.filter((e=>"mark"===e.type))}}function Tr(e){const t=[],{nodeExtensions:n,markExtensions:r}=Rr(e),o=[...n,...r],l={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach((e=>{const n=mr(e,"addGlobalAttributes",{name:e.name,options:e.options,storage:e.storage});if(!n)return;n().forEach((e=>{e.types.forEach((n=>{Object.entries(e.attributes).forEach((([e,r])=>{t.push({type:n,name:e,attribute:{...l,...r}})}))}))}))})),o.forEach((e=>{const n={name:e.name,options:e.options,storage:e.storage},r=mr(e,"addAttributes",n);if(!r)return;const o=r();Object.entries(o).forEach((([n,r])=>{const o={...l,...r};"function"==typeof(null==o?void 0:o.default)&&(o.default=o.default()),(null==o?void 0:o.isRequired)&&void 0===(null==o?void 0:o.default)&&delete o.default,t.push({type:e.name,name:n,attribute:o})}))})),t}function gr(e,t){if("string"==typeof e){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}function Sr(...e){return e.filter((e=>!!e)).reduce(((e,t)=>{const n={...e};return Object.entries(t).forEach((([e,t])=>{n[e]?n[e]="class"===e?[n[e],t].join(" "):"style"===e?[n[e],t].join("; "):t:n[e]=t})),n}),{})}function Cr(e,t){return t.filter((e=>e.attribute.rendered)).map((t=>t.attribute.renderHTML?t.attribute.renderHTML(e.attrs)||{}:{[t.name]:e.attrs[t.name]})).reduce(((e,t)=>Sr(e,t)),{})}function Lr(e){return"function"==typeof e}function yr(e,t,...n){return Lr(e)?t?e.bind(t)(...n):e(...n):e}function Ar(e,t){return e.style?e:{...e,getAttrs:n=>{const r=e.getAttrs?e.getAttrs(n):e.attrs;if(!1===r)return!1;const o=t.reduce(((e,t)=>{const r=t.attribute.parseHTML?t.attribute.parseHTML(n):function(e){return"string"!=typeof e?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):"true"===e||"false"!==e&&e}(n.getAttribute(t.name));return null==r?e:{...e,[t.name]:r}}),{});return{...r,...o}}}}function vr(data){return Object.fromEntries(Object.entries(data).filter((([e,t])=>("attrs"!==e||!function(e={}){return 0===Object.keys(e).length&&e.constructor===Object}(t))&&null!=t)))}function Br(e,t){var n;const r=Tr(e),{nodeExtensions:o,markExtensions:f}=Rr(e),c=null===(n=o.find((e=>mr(e,"topNode"))))||void 0===n?void 0:n.name,d=Object.fromEntries(o.map((n=>{const o=r.filter((e=>e.type===n.name)),l={name:n.name,options:n.options,storage:n.storage,editor:t},f=vr({...e.reduce(((e,t)=>{const r=mr(t,"extendNodeSchema",l);return{...e,...r?r(n):{}}}),{}),content:yr(mr(n,"content",l)),marks:yr(mr(n,"marks",l)),group:yr(mr(n,"group",l)),inline:yr(mr(n,"inline",l)),atom:yr(mr(n,"atom",l)),selectable:yr(mr(n,"selectable",l)),draggable:yr(mr(n,"draggable",l)),code:yr(mr(n,"code",l)),defining:yr(mr(n,"defining",l)),isolating:yr(mr(n,"isolating",l)),attrs:Object.fromEntries(o.map((e=>{var t;return[e.name,{default:null===(t=null==e?void 0:e.attribute)||void 0===t?void 0:t.default}]})))}),c=yr(mr(n,"parseHTML",l));c&&(f.parseDOM=c.map((e=>Ar(e,o))));const d=mr(n,"renderHTML",l);d&&(f.toDOM=e=>d({node:e,HTMLAttributes:Cr(e,o)}));const h=mr(n,"renderText",l);return h&&(f.toText=h),[n.name,f]}))),h=Object.fromEntries(f.map((n=>{const o=r.filter((e=>e.type===n.name)),l={name:n.name,options:n.options,storage:n.storage,editor:t},f=vr({...e.reduce(((e,t)=>{const r=mr(t,"extendMarkSchema",l);return{...e,...r?r(n):{}}}),{}),inclusive:yr(mr(n,"inclusive",l)),excludes:yr(mr(n,"excludes",l)),group:yr(mr(n,"group",l)),spanning:yr(mr(n,"spanning",l)),code:yr(mr(n,"code",l)),attrs:Object.fromEntries(o.map((e=>{var t;return[e.name,{default:null===(t=null==e?void 0:e.attribute)||void 0===t?void 0:t.default}]})))}),c=yr(mr(n,"parseHTML",l));c&&(f.parseDOM=c.map((e=>Ar(e,o))));const d=mr(n,"renderHTML",l);return d&&(f.toDOM=mark=>d({mark:mark,HTMLAttributes:Cr(mark,o)})),[n.name,f]})));return new l.i({topNode:c,nodes:d,marks:h})}function _r(e,t){return t.nodes[e]||t.marks[e]||null}function Kr(e,t){return Array.isArray(t)?t.some((t=>("string"==typeof t?t:t.name)===e.name)):t}function wr(e){return"[object RegExp]"===Object.prototype.toString.call(e)}class Ur{constructor(e){this.find=e.find,this.handler=e.handler}}function Nr(e){var t;const{editor:n,from:r,to:o,text:text,rules:l,plugin:f}=e,{view:view}=n;if(view.composing)return!1;const c=view.state.doc.resolve(r);if(c.parent.type.spec.code||(null===(t=c.nodeBefore||c.nodeAfter)||void 0===t?void 0:t.marks.find((mark=>mark.type.spec.code))))return!1;let d=!1;const h=((e,t=500)=>{let n="";const r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,((e,t,o,l)=>{var f,c;const d=(null===(c=(f=e.type.spec).toText)||void 0===c?void 0:c.call(f,{node:e,pos:t,parent:o,index:l}))||e.textContent||"%leaf%";n+=d.slice(0,Math.max(0,r-t))})),n})(c)+text;return l.forEach((e=>{if(d)return;const t=((text,e)=>{if(wr(e))return e.exec(text);const t=e(text);if(!t)return null;const n=[t.text];return n.index=t.index,n.input=text,n.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),n.push(t.replaceWith)),n})(h,e.find);if(!t)return;const tr=view.state.tr,l=dr({state:view.state,transaction:tr}),c={from:r-(t[0].length-text.length),to:o},{commands:E,chain:m,can:R}=new pr({editor:n,state:l});null!==e.handler({state:l,range:c,match:t,commands:E,chain:m,can:R})&&tr.steps.length&&(tr.setMeta(f,{transform:tr,from:r,to:o,text:text}),view.dispatch(tr),d=!0)})),d}function Dr(e){const{editor:t,rules:n}=e,o=new r.c({state:{init:()=>null,apply(tr,e){const t=tr.getMeta(o);return t||(tr.selectionSet||tr.docChanged?null:e)}},props:{handleTextInput:(view,e,r,text)=>Nr({editor:t,from:e,to:r,text:text,rules:n,plugin:o}),handleDOMEvents:{compositionend:view=>(setTimeout((()=>{const{$cursor:e}=view.state.selection;e&&Nr({editor:t,from:e.pos,to:e.pos,text:"",rules:n,plugin:o})})),!1)},handleKeyDown(view,e){if("Enter"!==e.key)return!1;const{$cursor:r}=view.state.selection;return!!r&&Nr({editor:t,from:r.pos,to:r.pos,text:"\n",rules:n,plugin:o})}},isInputRules:!0});return o}class kr{constructor(e){this.find=e.find,this.handler=e.handler}}function Or(e){const{editor:t,state:n,from:r,to:o,rule:l}=e,{commands:f,chain:c,can:d}=new pr({editor:t,state:n}),h=[];n.doc.nodesBetween(r,o,((e,t)=>{if(!e.isTextblock||e.type.spec.code)return;const E=Math.max(r,t),m=Math.min(o,t+e.content.size);((text,e)=>{if(wr(e))return[...text.matchAll(e)];const t=e(text);return t?t.map((e=>{const t=[e.text];return t.index=e.index,t.input=text,t.data=e.data,e.replaceWith&&(e.text.includes(e.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),t.push(e.replaceWith)),t})):[]})(e.textBetween(E-t,m-t,void 0,""),l.find).forEach((e=>{if(void 0===e.index)return;const t=E+e.index+1,r=t+e[0].length,o={from:n.tr.mapping.map(t),to:n.tr.mapping.map(r)},m=l.handler({state:n,range:o,match:e,commands:f,chain:c,can:d});h.push(m)}))}));return h.every((e=>null!==e))}function xr(e){const{editor:t,rules:n}=e;let o=null,l=!1,f=!1;return n.map((e=>new r.c({view(view){const e=e=>{var t;o=(null===(t=view.dom.parentElement)||void 0===t?void 0:t.contains(e.target))?view.dom.parentElement:null};return window.addEventListener("dragstart",e),{destroy(){window.removeEventListener("dragstart",e)}}},props:{handleDOMEvents:{drop:view=>(f=o===view.dom.parentElement,!1),paste:(view,e)=>{var t;const html=null===(t=e.clipboardData)||void 0===t?void 0:t.getData("text/html");return l=!!(null==html?void 0:html.includes("data-pm-slice")),!1}}},appendTransaction:(n,r,o)=>{const c=n[0],d="paste"===c.getMeta("uiEvent")&&!l,h="drop"===c.getMeta("uiEvent")&&!f;if(!d&&!h)return;const E=r.doc.content.findDiffStart(o.doc.content),m=r.doc.content.findDiffEnd(o.doc.content);if("number"!=typeof E||!m||E===m.b)return;const tr=o.tr,R=dr({state:o,transaction:tr});return Or({editor:t,state:R,from:Math.max(E-1,0),to:m.b-1,rule:e})&&tr.steps.length?tr:void 0}})))}class Mr{constructor(e,t){this.splittableMarks=[],this.editor=t,this.extensions=Mr.resolve(e),this.schema=Br(this.extensions,t),this.extensions.forEach((e=>{var t;this.editor.extensionStorage[e.name]=e.storage;const n={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:_r(e.name,this.schema)};if("mark"===e.type){(null===(t=yr(mr(e,"keepOnSplit",n)))||void 0===t||t)&&this.splittableMarks.push(e.name)}const r=mr(e,"onBeforeCreate",n);r&&this.editor.on("beforeCreate",r);const o=mr(e,"onCreate",n);o&&this.editor.on("create",o);const l=mr(e,"onUpdate",n);l&&this.editor.on("update",l);const f=mr(e,"onSelectionUpdate",n);f&&this.editor.on("selectionUpdate",f);const c=mr(e,"onTransaction",n);c&&this.editor.on("transaction",c);const d=mr(e,"onFocus",n);d&&this.editor.on("focus",d);const h=mr(e,"onBlur",n);h&&this.editor.on("blur",h);const E=mr(e,"onDestroy",n);E&&this.editor.on("destroy",E)}))}static resolve(e){const t=Mr.sort(Mr.flatten(e)),n=function(e){const t=e.filter(((t,n)=>e.indexOf(t)!==n));return[...new Set(t)]}(t.map((e=>e.name)));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map((e=>`'${e}'`)).join(", ")}]. This can lead to issues.`),t}static flatten(e){return e.map((e=>{const t=mr(e,"addExtensions",{name:e.name,options:e.options,storage:e.storage});return t?[e,...this.flatten(t())]:e})).flat(10)}static sort(e){return e.sort(((a,b)=>{const e=mr(a,"priority")||100,t=mr(b,"priority")||100;return e>t?-1:e{const n=mr(t,"addCommands",{name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:_r(t.name,this.schema)});return n?{...e,...n()}:e}),{})}get plugins(){const{editor:e}=this,t=Mr.sort([...this.extensions].reverse()),n=[],r=[],l=t.map((t=>{const l={name:t.name,options:t.options,storage:t.storage,editor:e,type:_r(t.name,this.schema)},f=[],c=mr(t,"addKeyboardShortcuts",l);let d={};if("mark"===t.type&&t.config.exitable&&(d.ArrowRight=()=>Ui.handleExit({editor:e,mark:t})),c){const t=Object.fromEntries(Object.entries(c()).map((([t,n])=>[t,()=>n({editor:e})])));d={...d,...t}}const h=(E=d,new o.d({props:{handleKeyDown:xn(E)}}));var E;f.push(h);const m=mr(t,"addInputRules",l);Kr(t,e.options.enableInputRules)&&m&&n.push(...m());const R=mr(t,"addPasteRules",l);Kr(t,e.options.enablePasteRules)&&R&&r.push(...R());const T=mr(t,"addProseMirrorPlugins",l);if(T){const e=T();f.push(...e)}return f})).flat();return[Dr({editor:e,rules:n}),...xr({editor:e,rules:r}),...l]}get attributes(){return Tr(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:t}=Rr(this.extensions);return Object.fromEntries(t.filter((e=>!!mr(e,"addNodeView"))).map((t=>{const n=this.attributes.filter((e=>e.type===t.name)),r={name:t.name,options:t.options,storage:t.storage,editor:e,type:gr(t.name,this.schema)},o=mr(t,"addNodeView",r);if(!o)return[];return[t.name,(r,view,l,f)=>{const c=Cr(r,n);return o()({editor:e,node:r,getPos:l,decorations:f,HTMLAttributes:c,extension:t})}]})))}}function Vr(e){return"Object"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)&&(e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype)}function Ir(e,source){const output={...e};return Vr(e)&&Vr(source)&&Object.keys(source).forEach((t=>{Vr(source[t])?t in e?output[t]=Ir(e[t],source[t]):Object.assign(output,{[t]:source[t]}):Object.assign(output,{[t]:source[t]})})),output}class Pr{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=yr(mr(this,"addOptions",{name:this.name}))),this.storage=yr(mr(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Pr(e)}configure(e={}){const t=this.extend();return t.options=Ir(this.options,e),t.storage=yr(mr(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new Pr(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=yr(mr(t,"addOptions",{name:t.name})),t.storage=yr(mr(t,"addStorage",{name:t.name,options:t.options})),t}}function Xr(e,t,n){const{from:r,to:o}=t,{blockSeparator:l="\n\n",textSerializers:f={}}=n||{};let text="",c=!0;return e.nodesBetween(r,o,((e,n,d,h)=>{var E;const m=null==f?void 0:f[e.type.name];m?(e.isBlock&&!c&&(text+=l,c=!0),d&&(text+=m({node:e,pos:n,parent:d,index:h,range:t}))):e.isText?(text+=null===(E=null==e?void 0:e.text)||void 0===E?void 0:E.slice(Math.max(r,n)-n,o-n),c=!1):e.isBlock&&!c&&(text+=l,c=!0)})),text}function jr(e){return Object.fromEntries(Object.entries(e.nodes).filter((([,e])=>e.spec.toText)).map((([e,t])=>[e,t.spec.toText])))}const zr=Pr.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new r.c({key:new r.d("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:o}=t,{ranges:l}=o,f=Math.min(...l.map((e=>e.$from.pos))),c=Math.max(...l.map((e=>e.$to.pos)));return Xr(r,{from:f,to:c},{textSerializers:jr(n)})}}})]}});function Gr(e,t,n={strict:!0}){const r=Object.keys(t);return!r.length||r.every((r=>n.strict?t[r]===e[r]:wr(t[r])?t[r].test(e[r]):t[r]===e[r]))}function Fr(e,t,n={}){return e.find((e=>e.type===t&&Gr(e.attrs,n)))}function Hr(e,t,n={}){return!!Fr(e,t,n)}function $r(e,t,n={}){if(!e||!t)return;let r=e.parent.childAfter(e.parentOffset);if(e.parentOffset===r.offset&&0!==r.offset&&(r=e.parent.childBefore(e.parentOffset)),!r.node)return;const mark=Fr([...r.node.marks],t,n);if(!mark)return;let o=r.index,l=e.start()+r.offset,f=o+1,c=l+r.node.nodeSize;for(Fr([...r.node.marks],t,n);o>0&&mark.isInSet(e.parent.child(o-1).marks);)o-=1,l-=e.parent.child(o).nodeSize;for(;f${e}`;return(new window.DOMParser).parseFromString(t,"text/html").body}function ei(content,e,t){if(t={slice:!0,parseOptions:{},...t},"object"==typeof content&&null!==content)try{return Array.isArray(content)&&content.length>0?l.c.fromArray(content.map((t=>e.nodeFromJSON(t)))):e.nodeFromJSON(content)}catch(n){return console.warn("[tiptap warn]: Invalid content.","Passed value:",content,"Error:",n),ei("",e,t)}if("string"==typeof content){const n=l.a.fromSchema(e);return t.slice?n.parseSlice(Qr(content),t.parseOptions).content:n.parse(Qr(content),t.parseOptions)}return ei("",e,t)}function ti(){return"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)}function ni(e,t,n={}){const{from:r,to:o,empty:l}=e.selection,f=t?gr(t,e.schema):null,c=[];e.doc.nodesBetween(r,o,((e,t)=>{if(e.isText)return;const n=Math.max(r,t),l=Math.min(o,t+e.nodeSize);c.push({node:e,from:n,to:l})}));const d=o-r,h=c.filter((e=>!f||f.name===e.node.type.name)).filter((e=>Gr(e.node.attrs,n,{strict:!1})));if(l)return!!h.length;return h.reduce(((e,t)=>e+t.to-t.from),0)>=d}function ri(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function ii(e,t){const n="string"==typeof t?[t]:t;return Object.keys(e).reduce(((t,r)=>(n.includes(r)||(t[r]=e[r]),t)),{})}function si(content,e,t={}){return ei(content,e,{slice:!1,parseOptions:t})}function oi(e){return t=>function(e,t){for(let i=e.depth;i>0;i-=1){const n=e.node(i);if(t(n))return{pos:i>0?e.before(i):0,start:e.start(i),depth:i,node:n}}}(t.$from,e)}function ai(e,t){const n=l.b.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}function ui(e,t){return Xr(e,{from:0,to:e.content.size},t)}function fi(e,t){const n=qr(t,e.schema),{from:r,to:o,empty:l}=e.selection,f=[];l?(e.storedMarks&&f.push(...e.storedMarks),f.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,o,(e=>{f.push(...e.marks)}));const mark=f.find((e=>e.type.name===n.name));return mark?{...mark.attrs}:{}}function ci(e,t){const n=ri("string"==typeof t?t:t.name,e.schema);return"node"===n?function(e,t){const n=gr(t,e.schema),{from:r,to:o}=e.selection,l=[];e.doc.nodesBetween(r,o,(e=>{l.push(e)}));const f=l.reverse().find((e=>e.type.name===n.name));return f?{...f.attrs}:{}}(e,t):"mark"===n?fi(e,t):{}}function di(e,t,n){const r=[];return e===t?n.resolve(e).marks().forEach((mark=>{const t=$r(n.resolve(e-1),mark.type);t&&r.push({mark:mark,...t})})):n.nodesBetween(e,t,((e,t)=>{r.push(...e.marks.map((mark=>({from:t,to:t+e.nodeSize,mark:mark}))))})),r}function hi(e,t,n){return Object.fromEntries(Object.entries(n).filter((([n])=>{const r=e.find((e=>e.type===t&&e.name===n));return!!r&&r.attribute.keepOnSplit})))}function pi(e,t,n={}){const{empty:r,ranges:o}=e.selection,l=t?qr(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter((mark=>!l||l.name===mark.type.name)).find((mark=>Gr(mark.attrs,n,{strict:!1})));let f=0;const c=[];if(o.forEach((({$from:t,$to:n})=>{const r=t.pos,o=n.pos;e.doc.nodesBetween(r,o,((e,t)=>{if(!e.isText&&!e.marks.length)return;const n=Math.max(r,t),l=Math.min(o,t+e.nodeSize);f+=l-n,c.push(...e.marks.map((mark=>({mark:mark,from:n,to:l}))))}))})),0===f)return!1;const d=c.filter((e=>!l||l.name===e.mark.type.name)).filter((e=>Gr(e.mark.attrs,n,{strict:!1}))).reduce(((e,t)=>e+t.to-t.from),0),h=c.filter((e=>!l||e.mark.type!==l&&e.mark.type.excludes(l))).reduce(((e,t)=>e+t.to-t.from),0);return(d>0?d+h:d)>=f}function Ei(e,t){const{nodeExtensions:n}=Rr(t),r=n.find((t=>t.name===e));if(!r)return!1;const o=yr(mr(r,"group",{name:r.name,options:r.options,storage:r.storage}));return"string"==typeof o&&o.split(" ").includes("list")}function mi(e){return e instanceof r.b}function Ri(view,e,t){const n=view.state.doc.content.size,r=Jr(e,0,n),o=Jr(t,0,n),l=view.coordsAtPos(r),f=view.coordsAtPos(o,-1),c=Math.min(l.top,f.top),d=Math.max(l.bottom,f.bottom),h=Math.min(l.left,f.left),E=Math.max(l.right,f.right),data={top:c,bottom:d,left:h,right:E,width:E-h,height:d-c,x:h,y:c};return{...data,toJSON:()=>data}}function Ti(e,t){const n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){const r=n.filter((mark=>null==t?void 0:t.includes(mark.type.name)));e.tr.ensureMarks(r)}}const gi=(tr,e)=>{const t=oi((t=>t.type===e))(tr.selection);if(!t)return!0;const n=tr.doc.resolve(Math.max(0,t.pos-1)).before(t.depth);if(void 0===n)return!0;const r=tr.doc.nodeAt(n);return t.node.type!==(null==r?void 0:r.type)||!Object(f.e)(tr.doc,t.pos)||(tr.join(t.pos),!0)},Si=(tr,e)=>{const t=oi((t=>t.type===e))(tr.selection);if(!t)return!0;const n=tr.doc.resolve(t.start).after(t.depth);if(void 0===n)return!0;const r=tr.doc.nodeAt(n);return t.node.type!==(null==r?void 0:r.type)||!Object(f.e)(tr.doc,n)||(tr.join(n),!0)};var Ci=Object.freeze({__proto__:null,blur:()=>({editor:e,view:view})=>(requestAnimationFrame((()=>{var t;e.isDestroyed||(view.dom.blur(),null===(t=null===window||void 0===window?void 0:window.getSelection())||void 0===t||t.removeAllRanges())})),!0),clearContent:(e=!1)=>({commands:t})=>t.setContent("",e),clearNodes:()=>({state:e,tr:tr,dispatch:t})=>{const{selection:n}=tr,{ranges:r}=n;return!t||(r.forEach((({$from:t,$to:n})=>{e.doc.nodesBetween(t.pos,n.pos,((e,t)=>{if(e.type.isText)return;const{doc:n,mapping:r}=tr,o=n.resolve(r.map(t)),l=n.resolve(r.map(t+e.nodeSize)),c=o.blockRange(l);if(!c)return;const d=Object(f.j)(c);if(e.type.isTextblock){const{defaultType:e}=o.parent.contentMatchAt(o.index());tr.setNodeMarkup(c.start,e)}(d||0===d)&&tr.lift(c,d)}))})),!0)},command:e=>t=>e(t),createParagraphNear:()=>({state:e,dispatch:t})=>Jn(e,t),deleteCurrentNode:()=>({tr:tr,dispatch:e})=>{const{selection:t}=tr,n=t.$anchor.node();if(n.content.size>0)return!1;const r=tr.selection.$anchor;for(let t=r.depth;t>0;t-=1){if(r.node(t).type===n.type){if(e){const e=r.before(t),n=r.after(t);tr.delete(e,n).scrollIntoView()}return!0}}return!1},deleteNode:e=>({tr:tr,state:t,dispatch:n})=>{const r=gr(e,t.schema),o=tr.selection.$anchor;for(let e=o.depth;e>0;e-=1){if(o.node(e).type===r){if(n){const t=o.before(e),n=o.after(e);tr.delete(t,n).scrollIntoView()}return!0}}return!1},deleteRange:e=>({tr:tr,dispatch:t})=>{const{from:n,to:r}=e;return t&&tr.delete(n,r),!0},deleteSelection:()=>({state:e,dispatch:t})=>Mn(e,t),enter:()=>({commands:e})=>e.keyboardShortcut("Enter"),exitCode:()=>({state:e,dispatch:t})=>Wn(e,t),extendMarkRange:(e,t={})=>({tr:tr,state:n,dispatch:o})=>{const l=qr(e,n.schema),{doc:f,selection:c}=tr,{$from:d,from:h,to:E}=c;if(o){const e=$r(d,l,t);if(e&&e.from<=h&&e.to>=E){const t=r.f.create(f,e.from,e.to);tr.setSelection(t)}}return!0},first:e=>t=>{const n="function"==typeof e?e(t):e;for(let i=0;i({editor:n,view:view,tr:tr,dispatch:r})=>{t={scrollIntoView:!0,...t};const o=()=>{Yr()&&view.dom.focus(),requestAnimationFrame((()=>{n.isDestroyed||(view.focus(),(null==t?void 0:t.scrollIntoView)&&n.commands.scrollIntoView())}))};if(view.hasFocus()&&null===e||!1===e)return!0;if(r&&null===e&&!Wr(n.state.selection))return o(),!0;const l=Zr(tr.doc,e)||n.state.selection,f=n.state.selection.eq(l);return r&&(f||tr.setSelection(l),f&&tr.storedMarks&&tr.setStoredMarks(tr.storedMarks),o()),!0},forEach:(e,t)=>n=>e.every(((e,r)=>t(e,{...n,index:r}))),insertContent:(e,t)=>({tr:tr,commands:n})=>n.insertContentAt({from:tr.selection.from,to:tr.selection.to},e,t),insertContentAt:(e,t,n)=>({tr:tr,dispatch:o,editor:l})=>{if(o){n={parseOptions:{},updateSelection:!0,...n};const content=ei(t,l.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions}});if("<>"===content.toString())return!0;let{from:o,to:c}="number"==typeof e?{from:e,to:e}:e,d=!0,h=!0;if((content.toString().startsWith("<")?content:[content]).forEach((e=>{e.check(),d=!!d&&(e.isText&&0===e.marks.length),h=!!h&&e.isBlock})),o===c&&h){const{parent:e}=tr.doc.resolve(o);e.isTextblock&&!e.type.spec.code&&!e.childCount&&(o-=1,c+=1)}d?Array.isArray(t)?tr.insertText(t.map((e=>e.text||"")).join(""),o,c):"object"==typeof t&&t&&t.text?tr.insertText(t.text,o,c):tr.insertText(t,o,c):tr.replaceWith(o,c,content),n.updateSelection&&function(tr,e,t){const n=tr.steps.length-1;if(n{0===l&&(l=r)})),tr.setSelection(r.e.near(tr.doc.resolve(l),t))}(tr,tr.steps.length-1,-1)}return!0},joinUp:()=>({state:e,dispatch:t})=>((e,t)=>{let n,r=e.selection,l=r instanceof o.c;if(l){if(r.node.isTextblock||!Object(f.e)(e.doc,r.from))return!1;n=r.from}else if(n=Object(f.i)(e.doc,r.from,-1),null==n)return!1;if(t){let tr=e.tr.join(n);l&&tr.setSelection(o.c.create(tr.doc,n-e.doc.resolve(n).nodeBefore.nodeSize)),t(tr.scrollIntoView())}return!0})(e,t),joinDown:()=>({state:e,dispatch:t})=>((e,t)=>{let n,r=e.selection;if(r instanceof o.c){if(r.node.isTextblock||!Object(f.e)(e.doc,r.to))return!1;n=r.to}else if(n=Object(f.i)(e.doc,r.to,1),null==n)return!1;return t&&t(e.tr.join(n).scrollIntoView()),!0})(e,t),joinBackward:()=>({state:e,dispatch:t})=>In(e,t),joinForward:()=>({state:e,dispatch:t})=>Gn(e,t),keyboardShortcut:e=>({editor:t,view:view,tr:tr,dispatch:n})=>{const r=function(e){const t=e.split(/-(?!$)/);let n,r,o,meta,l=t[t.length-1];"Space"===l&&(l=" ");for(let i=0;i!["Alt","Ctrl","Meta","Shift"].includes(e))),l=new KeyboardEvent("keydown",{key:"Space"===o?" ":o,altKey:r.includes("Alt"),ctrlKey:r.includes("Ctrl"),metaKey:r.includes("Meta"),shiftKey:r.includes("Shift"),bubbles:!0,cancelable:!0}),f=t.captureTransaction((()=>{view.someProp("handleKeyDown",(e=>e(view,l)))}));return null==f||f.steps.forEach((e=>{const t=e.map(tr.mapping);t&&n&&tr.maybeStep(t)})),!0},lift:(e,t={})=>({state:n,dispatch:r})=>!!ni(n,gr(e,n.schema),t)&&((e,t)=>{let{$from:n,$to:r}=e.selection,o=n.blockRange(r),l=o&&Object(f.j)(o);return null!=l&&(t&&t(e.tr.lift(o,l).scrollIntoView()),!0)})(n,r),liftEmptyBlock:()=>({state:e,dispatch:t})=>Zn(e,t),liftListItem:e=>({state:t,dispatch:n})=>cr(gr(e,t.schema))(t,n),newlineInCode:()=>({state:e,dispatch:t})=>$n(e,t),resetAttributes:(e,t)=>({tr:tr,state:n,dispatch:r})=>{let o=null,l=null;const f=ri("string"==typeof e?e:e.name,n.schema);return!!f&&("node"===f&&(o=gr(e,n.schema)),"mark"===f&&(l=qr(e,n.schema)),r&&tr.selection.ranges.forEach((e=>{n.doc.nodesBetween(e.$from.pos,e.$to.pos,((e,n)=>{o&&o===e.type&&tr.setNodeMarkup(n,void 0,ii(e.attrs,t)),l&&e.marks.length&&e.marks.forEach((mark=>{l===mark.type&&tr.addMark(n,n+e.nodeSize,l.create(ii(mark.attrs,t)))}))}))})),!0)},scrollIntoView:()=>({tr:tr,dispatch:e})=>(e&&tr.scrollIntoView(),!0),selectAll:()=>({tr:tr,commands:e})=>e.setTextSelection({from:0,to:tr.doc.content.size}),selectNodeBackward:()=>({state:e,dispatch:t})=>Xn(e,t),selectNodeForward:()=>({state:e,dispatch:t})=>Fn(e,t),selectParentNode:()=>({state:e,dispatch:t})=>((e,t)=>{let n,{$from:r,to:l}=e.selection,f=r.sharedDepth(l);return 0!=f&&(n=r.before(f),t&&t(e.tr.setSelection(o.c.create(e.doc,n))),!0)})(e,t),selectTextblockEnd:()=>({state:e,dispatch:t})=>ir(e,t),selectTextblockStart:()=>({state:e,dispatch:t})=>rr(e,t),setContent:(content,e=!1,t={})=>({tr:tr,editor:n,dispatch:r})=>{const{doc:o}=tr,l=si(content,n.schema,t);return r&&tr.replaceWith(0,o.content.size,l).setMeta("preventUpdate",!e),!0},setMark:(e,t={})=>({tr:tr,state:n,dispatch:r})=>{const{selection:o}=tr,{empty:l,ranges:f}=o,c=qr(e,n.schema);if(r)if(l){const e=fi(n,c);tr.addStoredMark(c.create({...e,...t}))}else f.forEach((e=>{const r=e.$from.pos,o=e.$to.pos;n.doc.nodesBetween(r,o,((e,n)=>{const l=Math.max(n,r),f=Math.min(n+e.nodeSize,o);e.marks.find((mark=>mark.type===c))?e.marks.forEach((mark=>{c===mark.type&&tr.addMark(l,f,c.create({...mark.attrs,...t}))})):tr.addMark(l,f,c.create(t))}))}));return function(e,tr,t){var n;const{selection:r}=tr;let cursor=null;if(Wr(r)&&(cursor=r.$cursor),cursor){const r=null!==(n=e.storedMarks)&&void 0!==n?n:cursor.marks();return!!t.isInSet(r)||!r.some((mark=>mark.type.excludes(t)))}const{ranges:o}=r;return o.some((({$from:n,$to:r})=>{let o=0===n.depth&&e.doc.inlineContent&&e.doc.type.allowsMarkType(t);return e.doc.nodesBetween(n.pos,r.pos,((e,n,r)=>{if(o)return!1;if(e.isInline){const n=!r||r.type.allowsMarkType(t),l=!!t.isInSet(e.marks)||!e.marks.some((e=>e.type.excludes(t)));o=n&&l}return!o})),o}))}(n,tr,c)},setMeta:(e,t)=>({tr:tr})=>(tr.setMeta(e,t),!0),setNode:(e,t={})=>({state:n,dispatch:r,chain:o})=>{const l=gr(e,n.schema);return l.isTextblock?o().command((({commands:e})=>!!sr(l,t)(n)||e.clearNodes())).command((({state:e})=>sr(l,t)(e,r))).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},setNodeSelection:e=>({tr:tr,dispatch:t})=>{if(t){const{doc:t}=tr,n=Jr(e,0,t.content.size),o=r.b.create(t,n);tr.setSelection(o)}return!0},setTextSelection:e=>({tr:tr,dispatch:t})=>{if(t){const{doc:t}=tr,{from:n,to:o}="number"==typeof e?{from:e,to:e}:e,l=r.f.atStart(t).from,f=r.f.atEnd(t).to,c=Jr(n,l,f),d=Jr(o,l,f),h=r.f.create(t,c,d);tr.setSelection(h)}return!0},sinkListItem:e=>({state:t,dispatch:n})=>{const r=gr(e,t.schema);return(o=r,function(e,t){let{$from:n,$to:r}=e.selection,c=n.blockRange(r,(e=>e.childCount>0&&e.firstChild.type==o));if(!c)return!1;let d=c.startIndex;if(0==d)return!1;let h=c.parent,E=h.child(d-1);if(E.type!=o)return!1;if(t){let n=E.lastChild&&E.lastChild.type==h.type,r=l.c.from(n?o.create():null),d=new l.j(l.c.from(o.create(null,l.c.from(h.type.create(null,r)))),n?3:1,0),m=c.start,R=c.end;t(e.tr.step(new f.b(m-(n?3:1),R,m,R,d,1,!0)).scrollIntoView())}return!0})(t,n);var o},splitBlock:({keepMarks:e=!0}={})=>({tr:tr,state:t,dispatch:n,editor:o})=>{const{selection:l,doc:c}=tr,{$from:d,$to:h}=l,E=hi(o.extensionManager.attributes,d.node().type.name,d.node().attrs);if(l instanceof r.b&&l.node.isBlock)return!(!d.parentOffset||!Object(f.f)(c,d.pos))&&(n&&(e&&Ti(t,o.extensionManager.splittableMarks),tr.split(d.pos).scrollIntoView()),!0);if(!d.parent.isBlock)return!1;if(n){const n=h.parentOffset===h.parent.content.size;l instanceof r.f&&tr.deleteSelection();const c=0===d.depth?void 0:function(e){for(let i=0;i({tr:tr,state:t,dispatch:n,editor:o})=>{var c;const d=gr(e,t.schema),{$from:h,$to:E}=t.selection,m=t.selection.node;if(m&&m.isBlock||h.depth<2||!h.sameParent(E))return!1;const R=h.node(-1);if(R.type!==d)return!1;const T=o.extensionManager.attributes;if(0===h.parent.content.size&&h.node(-1).childCount===h.indexAfter(-1)){if(2===h.depth||h.node(-3).type!==d||h.index(-2)!==h.node(-2).childCount-1)return!1;if(n){let e=l.c.empty;const t=h.index(-1)?1:h.index(-2)?2:3;for(let n=h.depth-t;n>=h.depth-3;n-=1)e=l.c.from(h.node(n).copy(e));const n=h.indexAfter(-1){if(m>-1)return!1;e.isTextblock&&0===e.content.size&&(m=t+1)})),m>-1&&tr.setSelection(r.f.near(tr.doc.resolve(m))),tr.scrollIntoView()}return!0}const S=E.pos===h.end()?R.contentMatchAt(0).defaultType:null,C=hi(T,R.type.name,R.attrs),L=hi(T,h.node().type.name,h.node().attrs);tr.delete(h.pos,E.pos);const y=S?[{type:d,attrs:C},{type:S,attrs:L}]:[{type:d,attrs:C}];if(!Object(f.f)(tr.doc,h.pos,2))return!1;if(n){const{selection:e,storedMarks:r}=t,{splittableMarks:l}=o.extensionManager,f=r||e.$to.parentOffset&&e.$from.marks();if(tr.split(h.pos,2,y).scrollIntoView(),!f||!n)return!0;const c=f.filter((mark=>l.includes(mark.type.name)));tr.ensureMarks(c)}return!0},toggleList:(e,t,n,r={})=>({editor:o,tr:tr,state:l,dispatch:f,chain:c,commands:d,can:h})=>{const{extensions:E,splittableMarks:m}=o.extensionManager,R=gr(e,l.schema),T=gr(t,l.schema),{selection:S,storedMarks:C}=l,{$from:L,$to:y}=S,A=L.blockRange(y),v=C||S.$to.parentOffset&&S.$from.marks();if(!A)return!1;const B=oi((e=>Ei(e.type.name,E)))(S);if(A.depth>=1&&B&&A.depth-B.depth<=1){if(B.node.type===R)return d.liftListItem(T);if(Ei(B.node.type.name,E)&&R.validContent(B.node.content)&&f)return c().command((()=>(tr.setNodeMarkup(B.pos,R),!0))).command((()=>gi(tr,R))).command((()=>Si(tr,R))).run()}return n&&v&&f?c().command((()=>{const e=h().wrapInList(R,r),t=v.filter((mark=>m.includes(mark.type.name)));return tr.ensureMarks(t),!!e||d.clearNodes()})).wrapInList(R,r).command((()=>gi(tr,R))).command((()=>Si(tr,R))).run():c().command((()=>!!h().wrapInList(R,r)||d.clearNodes())).wrapInList(R,r).command((()=>gi(tr,R))).command((()=>Si(tr,R))).run()},toggleMark:(e,t={},n={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:l=!1}=n,f=qr(e,r.schema);return pi(r,f,t)?o.unsetMark(f,{extendEmptyMarkRange:l}):o.setMark(f,t)},toggleNode:(e,t,n={})=>({state:r,commands:o})=>{const l=gr(e,r.schema),f=gr(t,r.schema);return ni(r,l,n)?o.setNode(f):o.setNode(l,n)},toggleWrap:(e,t={})=>({state:n,commands:r})=>{const o=gr(e,n.schema);return ni(n,o,t)?r.lift(o):r.wrapIn(o,t)},undoInputRule:()=>({state:e,dispatch:t})=>{const n=e.plugins;for(let i=0;i=0;e-=1)tr.step(t.steps[e].invert(t.docs[e]));if(o.text){const t=tr.doc.resolve(o.from).marks();tr.replaceWith(o.from,o.to,e.schema.text(o.text,t))}else tr.delete(o.from,o.to)}return!0}}return!1},unsetAllMarks:()=>({tr:tr,dispatch:e})=>{const{selection:t}=tr,{empty:n,ranges:r}=t;return n||e&&r.forEach((e=>{tr.removeMark(e.$from.pos,e.$to.pos)})),!0},unsetMark:(e,t={})=>({tr:tr,state:n,dispatch:r})=>{var o;const{extendEmptyMarkRange:l=!1}=t,{selection:f}=tr,c=qr(e,n.schema),{$from:d,empty:h,ranges:E}=f;if(!r)return!0;if(h&&l){let{from:e,to:t}=f;const n=null===(o=d.marks().find((mark=>mark.type===c)))||void 0===o?void 0:o.attrs,r=$r(d,c,n);r&&(e=r.from,t=r.to),tr.removeMark(e,t,c)}else E.forEach((e=>{tr.removeMark(e.$from.pos,e.$to.pos,c)}));return tr.removeStoredMark(c),!0},updateAttributes:(e,t={})=>({tr:tr,state:n,dispatch:r})=>{let o=null,l=null;const f=ri("string"==typeof e?e:e.name,n.schema);return!!f&&("node"===f&&(o=gr(e,n.schema)),"mark"===f&&(l=qr(e,n.schema)),r&&tr.selection.ranges.forEach((e=>{const r=e.$from.pos,f=e.$to.pos;n.doc.nodesBetween(r,f,((e,n)=>{o&&o===e.type&&tr.setNodeMarkup(n,void 0,{...e.attrs,...t}),l&&e.marks.length&&e.marks.forEach((mark=>{if(l===mark.type){const o=Math.max(n,r),c=Math.min(n+e.nodeSize,f);tr.addMark(o,c,l.create({...mark.attrs,...t}))}}))}))})),!0)},wrapIn:(e,t={})=>({state:n,dispatch:r})=>function(e,t=null){return function(n,r){let{$from:o,$to:l}=n.selection,c=o.blockRange(l),d=c&&Object(f.h)(c,e,t);return!!d&&(r&&r(n.tr.wrap(c,d).scrollIntoView()),!0)}}(gr(e,n.schema),t)(n,r),wrapInList:(e,t={})=>({state:n,dispatch:r})=>fr(gr(e,n.schema),t)(n,r)});const Li=Pr.create({name:"commands",addCommands:()=>({...Ci})}),yi=Pr.create({name:"editable",addProseMirrorPlugins(){return[new r.c({key:new r.d("editable"),props:{editable:()=>this.editor.options.editable}})]}}),Ai=Pr.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new r.c({key:new r.d("focusEvents"),props:{handleDOMEvents:{focus:(view,t)=>{e.isFocused=!0;const n=e.state.tr.setMeta("focus",{event:t}).setMeta("addToHistory",!1);return view.dispatch(n),!1},blur:(view,t)=>{e.isFocused=!1;const n=e.state.tr.setMeta("blur",{event:t}).setMeta("addToHistory",!1);return view.dispatch(n),!1}}}})]}}),vi=Pr.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first((({commands:e})=>[()=>e.undoInputRule(),()=>e.command((({tr:tr})=>{const{selection:t,doc:n}=tr,{empty:o,$anchor:l}=t,{pos:f,parent:c}=l,d=r.e.atStart(n).from===f;return!(!(o&&d&&c.type.isTextblock)||c.textContent.length)&&e.clearNodes()})),()=>e.deleteSelection(),()=>e.joinBackward(),()=>e.selectNodeBackward()])),t=()=>this.editor.commands.first((({commands:e})=>[()=>e.deleteSelection(),()=>e.deleteCurrentNode(),()=>e.joinForward(),()=>e.selectNodeForward()])),n={Enter:()=>this.editor.commands.first((({commands:e})=>[()=>e.newlineInCode(),()=>e.createParagraphNear(),()=>e.liftEmptyBlock(),()=>e.splitBlock()])),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},o={...n},l={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return Yr()||ti()?l:o},addProseMirrorPlugins(){return[new r.c({key:new r.d("clearDocument"),appendTransaction:(e,t,n)=>{if(!(e.some((e=>e.docChanged))&&!t.doc.eq(n.doc)))return;const{empty:o,from:l,to:f}=t.selection,c=r.e.atStart(t.doc).from,d=r.e.atEnd(t.doc).to;if(o||!(l===c&&f===d))return;if(!(0===n.doc.textBetween(0,n.doc.content.size," "," ").length))return;const tr=n.tr,h=dr({state:n,transaction:tr}),{commands:E}=new pr({editor:this.editor,state:h});return E.clearNodes(),tr.steps.length?tr:void 0}})]}}),Bi=Pr.create({name:"tabindex",addProseMirrorPlugins(){return[new r.c({key:new r.d("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var _i=Object.freeze({__proto__:null,ClipboardTextSerializer:zr,Commands:Li,Editable:yi,FocusEvents:Ai,Keymap:vi,Tabindex:Bi});class Ki extends Er{constructor(e={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout((()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))}),0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=function(style,e){const t=document.querySelector("style[data-tiptap-style]");if(null!==t)return t;const n=document.createElement("style");return e&&n.setAttribute("nonce",e),n.setAttribute("data-tiptap-style",""),n.innerHTML=style,document.getElementsByTagName("head")[0].appendChild(n),n}('.ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\n.ProseMirror [contenteditable="false"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable="false"] [contenteditable="true"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 1px !important;\n height: 1px !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.tippy-box[data-animation=fade][data-state=hidden] {\n opacity: 0\n}',this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},this.view&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,t){const n=Lr(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:n});this.view.updateState(r)}unregisterPlugin(e){if(this.isDestroyed)return;const t="string"==typeof e?`${e}$`:e.key,n=this.state.reconfigure({plugins:this.state.plugins.filter((e=>!e.key.startsWith(t)))});this.view.updateState(n)}createExtensionManager(){const e=[...this.options.enableCoreExtensions?Object.values(_i):[],...this.options.extensions].filter((e=>["extension","node","mark"].includes(null==e?void 0:e.type)));this.extensionManager=new Mr(e,this)}createCommandManager(){this.commandManager=new pr({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const e=si(this.options.content,this.schema,this.options.parseOptions),t=Zr(e,this.options.autofocus);this.view=new Cn(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:r.a.create({doc:e,selection:t||void 0})});const n=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(n),this.createNodeViews();this.view.dom.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const tr=this.capturedTransaction;return this.capturedTransaction=null,tr}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction)return this.capturedTransaction?void e.steps.forEach((e=>{var t;return null===(t=this.capturedTransaction)||void 0===t?void 0:t.step(e)})):void(this.capturedTransaction=e);const t=this.state.apply(e),n=!this.state.selection.eq(t.selection);this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e}),n&&this.emit("selectionUpdate",{editor:this,transaction:e});const r=e.getMeta("focus"),o=e.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:e}),o&&this.emit("blur",{editor:this,event:o.event,transaction:e}),e.docChanged&&!e.getMeta("preventUpdate")&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return ci(this.state,e)}isActive(e,t){const n="string"==typeof e?e:null,r="string"==typeof e?t:e;return function(e,t,n={}){if(!t)return ni(e,null,n)||pi(e,null,n);const r=ri(t,e.schema);return"node"===r?ni(e,t,n):"mark"===r&&pi(e,t,n)}(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return ai(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t="\n\n",textSerializers:n={}}=e||{};return ui(this.state.doc,{blockSeparator:t,textSerializers:{...jr(this.schema),...n}})}get isEmpty(){return function(e){var t;const n=null===(t=e.type.createAndFill())||void 0===t?void 0:t.toJSON(),content=e.toJSON();return JSON.stringify(n)===JSON.stringify(content)}(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var e;return!(null===(e=this.view)||void 0===e?void 0:e.docView)}}function wi(e){return new Ur({find:e.find,handler:({state:t,range:n,match:r})=>{const o=yr(e.getAttributes,void 0,r);if(!1===o||null===o)return null;const{tr:tr}=t,l=r[r.length-1],f=r[0];let c=n.to;if(l){const r=f.search(/\S/),d=n.from+f.indexOf(l),h=d+l.length;if(di(n.from,n.to,t.doc).filter((t=>t.mark.type.excluded.find((n=>n===e.type&&n!==t.mark.type)))).filter((e=>e.to>d)).length)return null;hn.from&&tr.delete(n.from+r,d),c=n.from+r+l.length,tr.addMark(n.from+r,c,e.type.create(o||{})),tr.removeStoredMark(e.type)}}})}class Ui{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=yr(mr(this,"addOptions",{name:this.name}))),this.storage=yr(mr(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Ui(e)}configure(e={}){const t=this.extend();return t.options=Ir(this.options,e),t.storage=yr(mr(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new Ui(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=yr(mr(t,"addOptions",{name:t.name})),t.storage=yr(mr(t,"addStorage",{name:t.name,options:t.options})),t}static handleExit({editor:e,mark:mark}){const{tr:tr}=e.state,t=e.state.selection.$from;if(t.pos===t.end()){const n=t.marks();if(!!!n.find((e=>(null==e?void 0:e.type.name)===mark.name)))return!1;const r=n.find((e=>(null==e?void 0:e.type.name)===mark.name));return r&&tr.removeStoredMark(r),tr.insertText(" ",t.pos),e.view.dispatch(tr),!0}return!1}}class bi{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=yr(mr(this,"addOptions",{name:this.name}))),this.storage=yr(mr(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new bi(e)}configure(e={}){const t=this.extend();return t.options=Ir(this.options,e),t.storage=yr(mr(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new bi(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=yr(mr(t,"addOptions",{name:t.name})),t.storage=yr(mr(t,"addStorage",{name:t.name,options:t.options})),t}}class Ni{constructor(component,e,t){this.isDragging=!1,this.component=component,this.editor=e.editor,this.options={stopEvent:null,ignoreMutation:null,...t},this.extension=e.extension,this.node=e.node,this.decorations=e.decorations,this.getPos=e.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(e){var t,n,o,l,f,c,d;const{view:view}=this.editor,h=e.target,E=3===h.nodeType?null===(t=h.parentElement)||void 0===t?void 0:t.closest("[data-drag-handle]"):h.closest("[data-drag-handle]");if(!this.dom||(null===(n=this.contentDOM)||void 0===n?void 0:n.contains(h))||!E)return;let m=0,R=0;if(this.dom!==E){const t=this.dom.getBoundingClientRect(),n=E.getBoundingClientRect(),r=null!==(o=e.offsetX)&&void 0!==o?o:null===(l=e.nativeEvent)||void 0===l?void 0:l.offsetX,d=null!==(f=e.offsetY)&&void 0!==f?f:null===(c=e.nativeEvent)||void 0===c?void 0:c.offsetY;m=n.x-t.x+r,R=n.y-t.y+d}null===(d=e.dataTransfer)||void 0===d||d.setDragImage(this.dom,m,R);const T=r.b.create(view.state.doc,this.getPos()),S=view.state.tr.setSelection(T);view.dispatch(S)}stopEvent(e){var t;if(!this.dom)return!1;if("function"==typeof this.options.stopEvent)return this.options.stopEvent({event:e});const n=e.target;if(!(this.dom.contains(n)&&!(null===(t=this.contentDOM)||void 0===t?void 0:t.contains(n))))return!1;const o=e.type.startsWith("drag"),l="drop"===e.type;if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(n.tagName)||n.isContentEditable)&&!l&&!o)return!0;const{isEditable:f}=this.editor,{isDragging:c}=this,d=!!this.node.type.spec.draggable,h=r.b.isSelectable(this.node),E="copy"===e.type,m="paste"===e.type,R="cut"===e.type,T="mousedown"===e.type;if(!d&&h&&o&&e.preventDefault(),d&&o&&!c)return e.preventDefault(),!1;if(d&&f&&!c&&T){const e=n.closest("[data-drag-handle]");e&&(this.dom===e||this.dom.contains(e))&&(this.isDragging=!0,document.addEventListener("dragend",(()=>{this.isDragging=!1}),{once:!0}),document.addEventListener("drop",(()=>{this.isDragging=!1}),{once:!0}),document.addEventListener("mouseup",(()=>{this.isDragging=!1}),{once:!0}))}return!(c||l||E||m||R||T&&h)}ignoreMutation(e){if(!this.dom||!this.contentDOM)return!0;if("function"==typeof this.options.ignoreMutation)return this.options.ignoreMutation({mutation:e});if(this.node.isLeaf||this.node.isAtom)return!0;if("selection"===e.type)return!1;if(this.dom.contains(e.target)&&"childList"===e.type&&Yr()&&this.editor.isFocused){if([...Array.from(e.addedNodes),...Array.from(e.removedNodes)].every((e=>e.isContentEditable)))return!1}return this.contentDOM===e.target&&"attributes"===e.type||!this.contentDOM.contains(e.target)}updateAttributes(e){this.editor.commands.command((({tr:tr})=>{const t=this.getPos();return tr.setNodeMarkup(t,void 0,{...this.node.attrs,...e}),!0}))}deleteNode(){const e=this.getPos(),t=e+this.node.nodeSize;this.editor.commands.deleteRange({from:e,to:t})}}function Di(e){return new kr({find:e.find,handler:({state:t,range:n,match:r})=>{const o=yr(e.getAttributes,void 0,r);if(!1===o||null===o)return null;const{tr:tr}=t,l=r[r.length-1],f=r[0];let c=n.to;if(l){const r=f.search(/\S/),d=n.from+f.indexOf(l),h=d+l.length;if(di(n.from,n.to,t.doc).filter((t=>t.mark.type.excluded.find((n=>n===e.type&&n!==t.mark.type)))).filter((e=>e.to>d)).length)return null;hn.from&&tr.delete(n.from+r,d),c=n.from+r+l.length,tr.addMark(n.from+r,c,e.type.create(o||{})),tr.removeStoredMark(e.type)}}})}},331:function(e,t,n){"use strict";var r=n(2),o=n(348).start;r({target:"String",proto:!0,forced:n(349)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},332:function(e,t,n){"use strict";n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return w})),n.d(t,"c",(function(){return R})),n.d(t,"d",(function(){return N})),n.d(t,"e",(function(){return O})),n.d(t,"f",(function(){return f})),n.d(t,"g",(function(){return E}));var r=n(335),o=n(333);const l=Object.create(null);class f{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new c(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let i=0;i=0;r--){let o=t<0?L(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):L(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(o)return o}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new S(e.node(0))}static atStart(e){return L(e,e,0,0,1)||new S(e)}static atEnd(e){return L(e,e,e.content.size,e.childCount,-1)||new S(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=l[t.type];if(!n)throw new RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in l)throw new RangeError("Duplicate use of selection JSON ID "+e);return l[e]=t,t.prototype.jsonID=e,t}getBookmark(){return E.between(this.$anchor,this.$head).getBookmark()}}f.prototype.visible=!0;class c{constructor(e,t){this.$from=e,this.$to=t}}let d=!1;function h(e){d||e.parent.inlineContent||(d=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class E extends f{constructor(e,t=e){h(e),h(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let n=e.resolve(t.map(this.head));if(!n.parent.inlineContent)return f.near(n);let r=e.resolve(t.map(this.anchor));return new E(r.parent.inlineContent?r:n,n)}replace(tr,content=r.j.empty){if(super.replace(tr,content),content==r.j.empty){let e=this.$from.marksAcross(this.$to);e&&tr.ensureMarks(e)}}eq(e){return e instanceof E&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new m(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new E(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,head=t){let n=e.resolve(t);return new this(n,head==t?n:e.resolve(head))}static between(e,t,n){let r=e.pos-t.pos;if(n&&!r||(n=r>=0?1:-1),!t.parent.inlineContent){let e=f.findFrom(t,n,!0)||f.findFrom(t,-n,!0);if(!e)return f.near(t,n);t=e.$head}return e.parent.inlineContent||(0==r||(e=(f.findFrom(e,-n,!0)||f.findFrom(e,n,!0)).$anchor).posnew S(e)};function L(e,t,n,r,o,text=!1){if(t.inlineContent)return E.create(e,n);for(let i=r-(o>0?0:1);o>0?i=0;i+=o){let r=t.child(i);if(r.isAtom){if(!text&&R.isSelectable(r))return R.create(e,n-(o<0?r.nodeSize:0))}else{let t=L(e,r,n+o,o<0?r.childCount:0,o,text);if(t)return t}n+=r.nodeSize*o}return null}function y(tr,e,t){let n=tr.steps.length-1;if(n{null==r&&(r=o)})),tr.setSelection(f.near(tr.doc.resolve(r),t)))}class A extends o.d{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(e){return this.storedMarks=e,this.updated|=2,this}ensureMarks(e){return r.d.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(mark){return this.ensureMarks(mark.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(mark){return this.ensureMarks(mark.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(e,t){super.addStep(e,t),this.updated=-3&this.updated,this.storedMarks=null}setTime(time){return this.time=time,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||r.d.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(text,e,t){let n=this.doc.type.schema;if(null==e)return text?this.replaceSelectionWith(n.text(text),!0):this.deleteSelection();{if(null==t&&(t=e),t=null==t?e:t,!text)return this.deleteRange(e,t);let r=this.storedMarks;if(!r){let n=this.doc.resolve(e);r=t==e?n.marks():n.marksAcross(this.doc.resolve(t))}return this.replaceRangeWith(e,t,n.text(text,r)),this.selection.empty||this.setSelection(f.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function v(e,t){return t&&e?e.bind(t):e}class B{constructor(e,desc,t){this.name=e,this.init=v(desc.init,t),this.apply=v(desc.apply,t)}}const _=[new B("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:tr=>tr.doc}),new B("selection",{init:(e,t)=>e.selection||f.atStart(t.doc),apply:tr=>tr.selection}),new B("storedMarks",{init:e=>e.storedMarks||null,apply:(tr,e,t,n)=>n.selection.$cursor?tr.storedMarks:null}),new B("scrollToSelection",{init:()=>0,apply:(tr,e)=>tr.scrolledIntoView?e+1:e})];class K{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=_.slice(),t&&t.forEach((e=>{if(this.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new B(e.key,e.spec.state,e))}))}}class w{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(tr){return this.applyTransaction(tr).state}filterTransaction(tr,e=-1){for(let i=0;ie.toJSON()))),e&&"object"==typeof e)for(let n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],o=r.spec.state;o&&o.toJSON&&(t[n]=o.toJSON.call(r,this[r.key]))}return t}static fromJSON(e,t,n){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let o=new K(e.schema,e.plugins),l=new w(o);return o.fields.forEach((o=>{if("doc"==o.name)l.doc=r.f.fromJSON(e.schema,t.doc);else if("selection"==o.name)l.selection=f.fromJSON(l.doc,t.selection);else if("storedMarks"==o.name)t.storedMarks&&(l.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let r in n){let f=n[r],c=f.spec.state;if(f.key==o.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(t,r))return void(l[o.name]=c.fromJSON.call(f,e,t[r],l))}l[o.name]=o.init(e,l)}})),l}}function U(e,t,n){for(let r in e){let o=e[r];o instanceof Function?o=o.bind(t):"handleDOMEvents"==r&&(o=U(o,t,{})),n[r]=o}return n}class N{constructor(e){this.spec=e,this.props={},e.props&&U(e.props,this,this.props),this.key=e.key?e.key.key:k("plugin")}getState(e){return e[this.key]}}const D=Object.create(null);function k(e){return e in D?e+"$"+ ++D[e]:(D[e]=0,e+"$")}class O{constructor(e="key"){this.key=k(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}},333:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return A})),n.d(t,"c",(function(){return y})),n.d(t,"d",(function(){return J})),n.d(t,"e",(function(){return N})),n.d(t,"f",(function(){return U})),n.d(t,"g",(function(){return O})),n.d(t,"h",(function(){return K})),n.d(t,"i",(function(){return k})),n.d(t,"j",(function(){return _})),n.d(t,"k",(function(){return x}));var r=n(335);const o=Math.pow(2,16);function l(e){return 65535&e}class f{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class c{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&c.empty)return c.empty}recover(e){let t=0,n=l(e);if(!this.inverted)for(let i=0;ie)break;let h=this.ranges[i+l],E=this.ranges[i+c],m=d+h;if(e<=m){let l=d+r+((h?e==d?-1:e==m?1:t:t)<0?0:E);if(n)return l;let c=e==(t<0?d:m)?null:i/3+(e-d)*o,del=e==d?2:e==m?1:4;return(t<0?e!=d:e!=m)&&(del|=8),new f(l,del,c)}r+=E-h}return n?e+r:new f(e+r,0,null)}touches(e,t){let n=0,r=l(t),o=this.inverted?2:1,f=this.inverted?1:2;for(let i=0;ie)break;let l=this.ranges[i+o];if(e<=t+l&&i==3*r)return!0;n+=this.ranges[i+f]-l}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let i=0,r=0;i=0;i--){let n=e.getMirror(i);this.appendMap(e.maps[i].invert(),null!=n&&n>i?t-n-1:void 0)}}invert(){let e=new d;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let i=this.from;ii&&te.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e),o),t.openStart,t.openEnd);return m.fromReplace(e,this.from,this.to,l)}invert(){return new S(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new T(t.pos,n.pos,this.mark)}merge(e){return e instanceof T&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new T(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new T(t.from,t.to,e.markFromJSON(t.mark))}}E.jsonID("addMark",T);class S extends E{constructor(e,t,mark){super(),this.from=e,this.to=t,this.mark=mark}apply(e){let t=e.slice(this.from,this.to),n=new r.j(R(t.content,(e=>e.mark(this.mark.removeFromSet(e.marks))),e),t.openStart,t.openEnd);return m.fromReplace(e,this.from,this.to,n)}invert(){return new T(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new S(t.pos,n.pos,this.mark)}merge(e){return e instanceof S&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new S(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new S(t.from,t.to,e.markFromJSON(t.mark))}}E.jsonID("removeMark",S);class C extends E{constructor(e,mark){super(),this.pos=e,this.mark=mark}apply(e){let t=e.nodeAt(this.pos);if(!t)return m.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return m.fromReplace(e,this.pos,this.pos+1,new r.j(r.c.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let i=0;in.pos?null:new A(t.pos,n.pos,r,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new A(t.from,t.to,t.gapFrom,t.gapTo,r.j.fromJSON(e,t.slice),t.insert,!!t.structure)}}function v(e,t,n){let r=e.resolve(t),o=n-t,l=r.depth;for(;o>0&&l>0&&r.indexAfter(l)==r.node(l).childCount;)l--,o--;if(o>0){let e=r.node(l).maybeChild(r.indexAfter(l));for(;o>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,o--}}return!1}function B(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function _(e){let content=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let t=e.depth;;--t){let n=e.$from.node(t),r=e.$from.index(t),o=e.$to.indexAfter(t);if(tbase;e--,i--){let t=o.node(e),n=o.index(e);if(t.type.spec.isolating)return!1;let l=t.content.cutByIndex(n,t.childCount),f=r&&r[i]||t;if(f!=t&&(l=l.replaceChild(0,f.type.create(f.attrs))),!t.canReplace(n+1,t.childCount)||!f.type.validContent(l))return!1}let f=o.indexAfter(base),c=r&&r[0];return o.node(base).canReplaceWith(f,f,c?c.type:o.node(base+1).type)}function N(e,t){let n=e.resolve(t),r=n.index();return D(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function D(a,b){return!(!a||!b||a.isLeaf||!a.canAppend(b))}function k(e,t,n=-1){let r=e.resolve(t);for(let e=r.depth;;e--){let o,l,f=r.index(e);if(e==r.depth?(o=r.nodeBefore,l=r.nodeAfter):n>0?(o=r.node(e+1),f++,l=r.node(e).maybeChild(f)):(o=r.node(e).maybeChild(f-1),l=r.node(e+1)),o&&!o.isTextblock&&D(o,l)&&r.node(e).canReplace(f,f+1))return t;if(0==e)break;t=n<0?r.before(e):r.after(e)}}function O(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let content=n.content;for(let i=0;i=0;t--){let n=t==r.depth?0:r.pos<=(r.start(t+1)+r.end(t+1))/2?-1:1,o=r.index(t)+(n>0?1:0),l=r.node(t),f=!1;if(1==e)f=l.canReplace(o,o,content);else{let e=l.contentMatchAt(o).findWrapping(content.firstChild.type);f=e&&l.canReplaceWith(o,o,e[0])}if(f)return 0==n?r.pos:n<0?r.before(t+1):r.after(t+1)}return null}function x(e,t,n=t,o=r.j.empty){if(t==n&&!o.size)return null;let l=e.resolve(t),f=e.resolve(n);return M(l,f,o)?new y(t,n,o):new V(l,f,o).fit()}function M(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}E.jsonID("replaceAround",A);class V{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=r.c.empty;for(let i=0;i<=e.depth;i++){let t=e.node(i);this.frontier.push({type:t.type,match:t.contentMatchAt(e.indexAfter(i))})}for(let i=e.depth;i>0;i--)this.placed=r.c.from(e.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,o=this.close(e<0?this.$to:n.doc.resolve(e));if(!o)return null;let content=this.placed,l=n.depth,f=o.depth;for(;l&&f&&1==content.childCount;)content=content.firstChild.content,l--,f--;let c=new r.j(content,l,f);return e>-1?new A(n.pos,e,this.$to.pos,this.$to.end(),c,t):c.size||n.pos!=this.$to.pos?new y(n.pos,o.pos,c):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n1&&(r=0),o.type.spec.isolating&&r<=n){e=n;break}t=o.content}for(let t=1;t<=2;t++)for(let n=1==t?e:this.unplaced.openStart;n>=0;n--){let e,o=null;n?(o=X(this.unplaced.content,n-1).firstChild,e=o.content):e=this.unplaced.content;let l=e.firstChild;for(let e=this.depth;e>=0;e--){let f,{type:c,match:d}=this.frontier[e],h=null;if(1==t&&(l?d.matchType(l.type)||(h=d.fillBefore(r.c.from(l),!1)):o&&c.compatibleContent(o.type)))return{sliceDepth:n,frontierDepth:e,parent:o,inject:h};if(2==t&&l&&(f=d.findWrapping(l.type)))return{sliceDepth:n,frontierDepth:e,parent:o,wrap:f};if(o&&d.matchType(o.type))break}}}openMore(){let{content:content,openStart:e,openEnd:t}=this.unplaced,n=X(content,e);return!(!n.childCount||n.firstChild.isLeaf)&&(this.unplaced=new r.j(content,e+1,Math.max(t,n.size+e>=content.size-t?e+1:0)),!0)}dropNode(){let{content:content,openStart:e,openEnd:t}=this.unplaced,n=X(content,e);if(n.childCount<=1&&e>0){let o=content.size-e<=e+n.size;this.unplaced=new r.j(I(content,e-1,1),e-1,o?e-1:t)}else this.unplaced=new r.j(I(content,e,1),e,t)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:o,wrap:l}){for(;this.depth>t;)this.closeFrontierNode();if(l)for(let i=0;i1||0==d||e.content.size)&&(m=t,E.push(j(e.mark(R.allowedMarks(e.marks)),1==h?d:0,h==c.childCount?T:-1)))}let S=h==c.childCount;S||(T=-1),this.placed=P(this.placed,t,r.c.from(E)),this.frontier[t].match=m,S&&T<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let i=0,e=c;i1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){e:for(let i=Math.min(this.depth,e.depth);i>=0;i--){let{match:t,type:n}=this.frontier[i],r=i=0;t--){let{match:n,type:r}=this.frontier[t],o=z(e,t,r,n,!0);if(!o||o.childCount)continue e}return{depth:i,fit:o,move:r?e.doc.resolve(e.after(i+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=P(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,content){let n=this.frontier[this.depth];n.match=n.match.matchType(e),this.placed=P(this.placed,this.depth,r.c.from(e.create(t,content))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(r.c.empty,!0);e.childCount&&(this.placed=P(this.placed,this.frontier.length,e))}}function I(e,t,n){return 0==t?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(I(e.firstChild.content,t-1,n)))}function P(e,t,content){return 0==t?e.append(content):e.replaceChild(e.childCount-1,e.lastChild.copy(P(e.lastChild.content,t-1,content)))}function X(e,t){for(let i=0;i1&&(o=o.replaceChild(0,j(o.firstChild,t-1,1==o.childCount?n-1:0))),t>0&&(o=e.type.contentMatch.fillBefore(o).append(o),n<=0&&(o=o.append(e.type.contentMatch.matchFragment(o).fillBefore(r.c.empty,!0)))),e.copy(o)}function z(e,t,n,r,o){let l=e.node(t),f=o?e.indexAfter(t):e.index(t);if(f==l.childCount&&!n.compatibleContent(l.type))return null;let c=r.fillBefore(l.content,!0,f);return c&&!function(e,t,n){for(let i=n;io){let t=l.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(r.c.empty,!0))}return e}function H(e,t){let n=[];for(let r=Math.min(e.depth,t.depth);r>=0;r--){let o=e.start(r);if(ot.pos+(t.depth-r)||e.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;(o==t.start(r)||r==e.depth&&r==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&r&&t.start(r-1)==o-1)&&n.push(r)}return n}class $ extends E{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return m.fail("No node at attribute step's position");let n=Object.create(null);for(let e in t.attrs)n[e]=t.attrs[e];n[this.attr]=this.value;let o=t.type.create(n,null,t.marks);return m.fromReplace(e,this.pos,this.pos+1,new r.j(r.c.from(o),0,t.isLeaf?0:1))}getMap(){return c.empty}invert(e){return new $(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new $(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new $(t.pos,t.attr,t.value)}}E.jsonID("attr",$);let W=class extends Error{};W=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},(W.prototype=Object.create(Error.prototype)).constructor=W,W.prototype.name="TransformError";class J{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new d}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new W(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=r.j.empty){let o=x(this.doc,e,t,n);return o&&this.step(o),this}replaceWith(e,t,content){return this.replace(e,t,new r.j(r.c.from(content),0,0))}delete(e,t){return this.replace(e,t,r.j.empty)}insert(e,content){return this.replaceWith(e,e,content)}replaceRange(e,t,n){return function(tr,e,t,n){if(!n.size)return tr.deleteRange(e,t);let o=tr.doc.resolve(e),l=tr.doc.resolve(t);if(M(o,l,n))return tr.step(new y(e,t,n));let f=H(o,tr.doc.resolve(t));0==f[f.length-1]&&f.pop();let c=-(o.depth+1);f.unshift(c);for(let e=o.depth,t=o.pos-1;e>0;e--,t--){let n=o.node(e).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;f.indexOf(e)>-1?c=e:o.before(e)==t&&f.splice(1,0,-e)}let d=f.indexOf(c),h=[],E=n.openStart;for(let content=n.content,i=0;;i++){let e=content.firstChild;if(h.push(e),i==n.openStart)break;content=e.content}for(let e=E-1;e>=0;e--){let t=h[e].type,n=G(t);if(n&&o.node(d).type!=t)E=e;else if(n||!t.isTextblock)break}for(let e=n.openStart;e>=0;e--){let c=(e+E+1)%(n.openStart+1),m=h[c];if(m)for(let i=0;i=0&&(tr.replace(e,t,n),!(tr.steps.length>m));i--){let n=f[i];n<0||(e=o.before(n),t=l.after(n))}}(this,e,t,n),this}replaceRangeWith(e,t,n){return function(tr,e,t,n){if(!n.isInline&&e==t&&tr.doc.resolve(e).parent.content.size){let r=function(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(let e=r.depth-1;e>=0;e--){let t=r.index(e);if(r.node(e).canReplaceWith(t,t,n))return r.before(e+1);if(t>0)return null}if(r.parentOffset==r.parent.content.size)for(let e=r.depth-1;e>=0;e--){let t=r.indexAfter(e);if(r.node(e).canReplaceWith(t,t,n))return r.after(e+1);if(t0&&(t||n.node(e-1).canReplace(n.index(e-1),r.indexAfter(e-1))))return tr.delete(n.before(e),r.after(e))}for(let o=1;o<=n.depth&&o<=r.depth;o++)if(e-n.start(o)==n.depth-o&&t>n.end(o)&&r.end(o)-t!=r.depth-o)return tr.delete(n.before(o),t);tr.delete(e,t)}(this,e,t),this}lift(e,t){return function(tr,e,t){let{$from:n,$to:o,depth:l}=e,f=n.before(l+1),c=o.after(l+1),d=f,h=c,E=r.c.empty,m=0;for(let e=l,o=!1;e>t;e--)o||n.index(e)>0?(o=!0,E=r.c.from(n.node(e).copy(E)),m++):d--;let R=r.c.empty,T=0;for(let e=l,n=!1;e>t;e--)n||o.after(e+1)=0;i--){if(content.size){let e=t[i].type.contentMatch.matchFragment(content);if(!e||!e.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}content=r.c.from(t[i].type.create(t[i].attrs,content))}let n=e.start,o=e.end;tr.step(new A(n,o,n,o,new r.j(content,0,0),t.length,!0))}(this,e,t),this}setBlockType(e,t=e,n,o=null){return function(tr,e,t,n,o){if(!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let l=tr.steps.length;tr.doc.nodesBetween(e,t,((e,t)=>{if(e.isTextblock&&!e.hasMarkup(n,o)&&function(e,t,n){let r=e.resolve(t),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}(tr.doc,tr.mapping.slice(l).map(t),n)){tr.clearIncompatible(tr.mapping.slice(l).map(t,1),n);let f=tr.mapping.slice(l),c=f.map(t,1),d=f.map(t+e.nodeSize,1);return tr.step(new A(c,d,c+1,d-1,new r.j(r.c.from(n.create(o,null,e.marks)),0,0),1,!0)),!1}}))}(this,e,t,n,o),this}setNodeMarkup(e,t,n=null,o){return function(tr,e,t,n,o){let l=tr.doc.nodeAt(e);if(!l)throw new RangeError("No node at given position");t||(t=l.type);let f=t.create(n,null,o||l.marks);if(l.isLeaf)return tr.replaceWith(e,e+l.nodeSize,f);if(!t.validContent(l.content))throw new RangeError("Invalid content for node type "+t.name);tr.step(new A(e,e+l.nodeSize,e+1,e+l.nodeSize-1,new r.j(r.c.from(f),0,0),1,!0))}(this,e,t,n,o),this}setNodeAttribute(e,t,n){return this.step(new $(e,t,n)),this}addNodeMark(e,mark){return this.step(new C(e,mark)),this}removeNodeMark(e,mark){if(!(mark instanceof r.d)){let t=this.doc.nodeAt(e);if(!t)throw new RangeError("No node at position "+e);if(!(mark=mark.isInSet(t.marks)))return this}return this.step(new L(e,mark)),this}split(e,t=1,n){return function(tr,e,t=1,n){let o=tr.doc.resolve(e),l=r.c.empty,f=r.c.empty;for(let e=o.depth,c=o.depth-t,i=t-1;e>c;e--,i--){l=r.c.from(o.node(e).copy(l));let t=n&&n[i];f=r.c.from(t?t.type.create(t.attrs,f):o.node(e).copy(f))}tr.step(new y(e,e,new r.j(l.append(f),t,t),!0))}(this,e,t,n),this}addMark(e,t,mark){return function(tr,e,t,mark){let n,r,o=[],l=[];tr.doc.nodesBetween(e,t,((f,c,d)=>{if(!f.isInline)return;let h=f.marks;if(!mark.isInSet(h)&&d.type.allowsMarkType(mark.type)){let d=Math.max(c,e),E=Math.min(c+f.nodeSize,t),m=mark.addToSet(h);for(let i=0;itr.step(s))),l.forEach((s=>tr.step(s)))}(this,e,t,mark),this}removeMark(e,t,mark){return function(tr,e,t,mark){let n=[],o=0;tr.doc.nodesBetween(e,t,((l,f)=>{if(!l.isInline)return;o++;let c=null;if(mark instanceof r.e){let e,t=l.marks;for(;e=mark.isInSet(t);)(c||(c=[])).push(e),t=e.removeFromSet(t)}else mark?mark.isInSet(l.marks)&&(c=[mark]):c=l.marks;if(c&&c.length){let r=Math.min(f+l.nodeSize,t);for(let i=0;itr.step(new S(e.from,e.to,e.style))))}(this,e,t,mark),this}clearIncompatible(e,t,n){return function(tr,e,t,n=t.contentMatch){let o=tr.doc.nodeAt(e),l=[],f=e+1;for(let i=0;i=0;i--)tr.step(l[i])}(this,e,t,n),this}}},335:function(e,t,n){"use strict";function r(content){this.content=content}n.d(t,"a",(function(){return se})),n.d(t,"b",(function(){return Ee})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return ne})),n.d(t,"f",(function(){return V})),n.d(t,"g",(function(){return x})),n.d(t,"h",(function(){return R})),n.d(t,"i",(function(){return re})),n.d(t,"j",(function(){return T})),r.prototype={constructor:r,find:function(e){for(var i=0;i>1}},r.from=function(e){if(e instanceof r)return e;var content=[];if(e)for(var t in e)content.push(t,e[t]);return new r(content)};var o=r;function l(a,b,e){for(let i=0;;i++){if(i==a.childCount||i==b.childCount)return a.childCount==b.childCount?null:e;let t=a.child(i),n=b.child(i);if(t!=n){if(!t.sameMarkup(n))return e;if(t.isText&&t.text!=n.text){for(let r=0;t.text[r]==n.text[r];r++)e++;return e}if(t.content.size||n.content.size){let r=l(t.content,n.content,e+1);if(null!=r)return r}e+=t.nodeSize}else e+=t.nodeSize}}function f(a,b,e,t){for(let n=a.childCount,r=b.childCount;;){if(0==n||0==r)return n==r?null:{a:e,b:t};let o=a.child(--n),l=b.child(--r),c=o.nodeSize;if(o!=l){if(!o.sameMarkup(l))return{a:e,b:t};if(o.isText&&o.text!=l.text){let n=0,r=Math.min(o.text.length,l.text.length);for(;ne&&!1!==n(f,r+l,o||null,i)&&f.content.size){let o=l+1;f.nodesBetween(Math.max(0,e-o),Math.min(f.content.size,t-o),n,r+o)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let text="",o=!0;return this.nodesBetween(e,t,((l,f)=>{l.isText?(text+=l.text.slice(Math.max(e,f)-f,t-f),o=!n):l.isLeaf?(r?text+="function"==typeof r?r(l):r:l.type.spec.leafText&&(text+=l.type.spec.leafText(l)),o=!n):!o&&l.isBlock&&(text+=n,o=!0)}),0),text}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,n=e.firstChild,content=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(n)&&(content[content.length-1]=t.withText(t.text+n.text),i=1);ie)for(let i=0,o=0;oe&&((ot)&&(l=l.isText?l.cut(Math.max(0,e-o),Math.min(l.text.length,t-o)):l.cut(Math.max(0,e-o-1),Math.min(l.content.size,t-o-1))),n.push(l),r+=l.nodeSize),o=f}return new c(n,r)}cutByIndex(e,t){return e==t?c.empty:0==e&&t==this.content.length?this:new c(this.content.slice(e,t))}replaceChild(e,t){let n=this.content[e];if(n==t)return this;let r=this.content.slice(),o=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new c(r,o)}addToStart(e){return new c([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new c(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let i=0;ithis.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let i=0,n=0;;i++){let r=n+this.child(i).nodeSize;if(r>=e)return r==e||t>0?h(i+1,r):h(i,n);n=r}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map((e=>e.toJSON())):null}static fromJSON(e,t){if(!t)return c.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new c(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return c.empty;let t,n=0;for(let i=0;ithis.type.rank&&(t||(t=e.slice(0,i)),t.push(this),n=!0),t&&t.push(r)}}return t||(t=e.slice()),n||t.push(this),t}removeFromSet(e){for(let i=0;ia.type.rank-b.type.rank)),t}}m.none=[];class R extends Error{}class T{constructor(content,e,t){this.content=content,this.openStart=e,this.openEnd=t}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let content=C(this.content,e+this.openStart,t);return content&&new T(content,this.openStart,this.openEnd)}removeBetween(e,t){return new T(S(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return T.empty;let n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new T(c.fromJSON(e,t.content),n,r)}static maxOpen(e,t=!0){let n=0,r=0;for(let r=e.firstChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.firstChild)n++;for(let n=e.lastChild;n&&!n.isLeaf&&(t||!n.type.spec.isolating);n=n.lastChild)r++;return new T(e,n,r)}}function S(content,e,t){let{index:n,offset:r}=content.findIndex(e),o=content.maybeChild(n),{index:l,offset:f}=content.findIndex(t);if(r==e||o.isText){if(f!=t&&!content.child(l).isText)throw new RangeError("Removing non-flat range");return content.cut(0,e).append(content.cut(t))}if(n!=l)throw new RangeError("Removing non-flat range");return content.replaceChild(n,o.copy(S(o.content,e-r-1,t-r-1)))}function C(content,e,t,n){let{index:r,offset:o}=content.findIndex(e),l=content.maybeChild(r);if(o==e||l.isText)return n&&!n.canReplace(r,r,t)?null:content.cut(0,e).append(t).append(content.cut(e));let f=C(l.content,e-o-1,t);return f&&content.replaceChild(r,l.copy(f))}function L(e,t,n){if(n.openStart>e.depth)throw new R("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new R("Inconsistent open depths");return y(e,t,n,0)}function y(e,t,n,r){let o=e.index(r),l=e.node(r);if(o==t.index(r)&&r=0;i--)r=t.node(i).copy(c.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}(n,e);return K(l,w(e,o,f,t,r))}{let r=e.parent,content=r.content;return K(r,content.cut(0,e.parentOffset).append(n.content).append(content.cut(t.parentOffset)))}}return K(l,U(e,t,r))}function A(main,sub){if(!sub.type.compatibleContent(main.type))throw new R("Cannot join "+sub.type.name+" onto "+main.type.name)}function v(e,t,n){let r=e.node(n);return A(r,t.node(n)),r}function B(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function _(e,t,n,r){let o=(t||e).node(n),l=0,f=t?t.index(n):o.childCount;e&&(l=e.index(n),e.depth>n?l++:e.textOffset&&(B(e.nodeAfter,r),l++));for(let i=l;io&&v(e,t,o+1),f=r.depth>o&&v(n,r,o+1),content=[];return _(null,e,o,content),l&&f&&t.index(o)==n.index(o)?(A(l,f),B(K(l,w(e,t,n,r,o+1)),content)):(l&&B(K(l,U(e,t,o+1)),content),_(t,n,o,content),f&&B(K(f,U(n,r,o+1)),content)),_(r,null,o,content),new c(content)}function U(e,t,n){let content=[];if(_(null,e,n,content),e.depth>n){B(K(v(e,t,n+1),U(e,t,n+1)),content)}return _(t,null,n,content),new c(content)}T.empty=new T(c.empty,0,0);class N{constructor(e,path,t){this.pos=e,this.path=path,this.parentOffset=t,this.depth=path.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1;for(let i=0;i0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new x(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let path=[],n=0,r=t;for(let t=e;;){let{index:e,offset:o}=t.content.findIndex(r),l=r-o;if(path.push(t,e,n+o),!l)break;if(t=t.child(e),t.isText)break;r=l-1,n+=o+1}return new N(t,path,r)}static resolveCached(e,t){for(let i=0;ie&&this.nodesBetween(e,t,(e=>(n.isInSet(e.marks)&&(r=!0),!r))),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),P(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,n=c.empty,r=0,o=n.childCount){let l=this.contentMatchAt(e).matchFragment(n,r,o),f=l&&l.matchFragment(this.content,t);if(!f||!f.validEnd)return!1;for(let i=r;ie.type.name))}`);this.content.forEach((e=>e.check()))}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map((e=>e.toJSON()))),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let n=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,n)}let content=c.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,content,n)}}V.prototype.text=void 0;class I extends V{constructor(e,t,content,n){if(super(e,t,null,n),!content)throw new RangeError("Empty text nodes are not allowed");this.text=content}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):P(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new I(this.type,this.attrs,this.text,e)}withText(text){return text==this.text?this:new I(this.type,this.attrs,text,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let base=super.toJSON();return base.text=this.text,base}}function P(e,t){for(let i=e.length-1;i>=0;i--)t=e[i].type.name+"("+t+")";return t}class X{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let n=new j(e,t);if(null==n.next)return X.empty;let r=z(n);n.next&&n.err("Unexpected trailing text");let o=function(e){let t=Object.create(null);return n(J(e,0));function n(r){let o=[];r.forEach((t=>{e[t].forEach((({term:t,to:n})=>{if(!t)return;let r;for(let i=0;i{r||o.push([t,r=[]]),-1==r.indexOf(e)&&r.push(e)}))}))}));let l=t[r.join(",")]=new X(r.indexOf(e.length-1)>-1);for(let i=0;ie.to=t))}function l(e,t){if("choice"==e.type)return e.exprs.reduce(((e,n)=>e.concat(l(n,t))),[]);if("seq"!=e.type){if("star"==e.type){let f=n();return r(t,f),o(l(e.expr,f),f),[r(f)]}if("plus"==e.type){let f=n();return o(l(e.expr,t),f),o(l(e.expr,f),f),[r(f)]}if("opt"==e.type)return[r(t)].concat(l(e.expr,t));if("range"==e.type){let f=t;for(let i=0;ie.createAndFill())));for(let i=0;i=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];return function t(n){e.push(n);for(let i=0;i{let n=i+(t.validEnd?"*":" ")+" ";for(let i=0;i"+e.indexOf(t.next[i].next);return n})).join("\n")}}X.empty=new X(!0);class j{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function z(e){let t=[];do{t.push(G(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function G(e){let t=[];do{t.push(F(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function F(e){let t=function(e){if(e.eat("(")){let t=z(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){let t=function(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let o=[];for(let e in n){let r=n[e];r.groups.indexOf(t)>-1&&o.push(r)}0==o.length&&e.err("No node type or group '"+t+"' found");return o}(e,e.next).map((t=>(null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t})));return e.pos++,1==t.length?t[0]:{type:"choice",exprs:t}}e.err("Unexpected token '"+e.next+"'")}(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=$(e,t)}return t}function H(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function $(e,t){let n=H(e),r=n;return e.eat(",")&&(r="}"!=e.next?H(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function W(a,b){return b-a}function J(e,t){let n=[];return function t(r){let o=e[r];if(1==o.length&&!o[0].term)return t(o[0].to);n.push(r);for(let i=0;i-1}allowsMarks(e){if(null==this.markSet)return!0;for(let i=0;in[e]=new ee(e,t,r)));let r=t.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let e in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}}class te{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class ne{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=Q(r.attrs),this.excluded=null;let o=Z(this.attrs);this.instance=o?new m(this,o):null}create(e=null){return!e&&this.instance?this.instance:new m(this,Y(this.attrs,e))}static compile(e,t){let n=Object.create(null),r=0;return e.forEach(((e,o)=>n[e]=new ne(e,r++,t,o))),n}removeFromSet(e){for(var i=0;i-1}}class re{constructor(e){this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=o.from(e.nodes),t.marks=o.from(e.marks||{}),this.nodes=ee.compile(this.spec.nodes,this),this.marks=ne.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw new RangeError(e+" can not be both a node and a mark");let t=this.nodes[e],r=t.spec.content||"",o=t.spec.marks;t.contentMatch=n[r]||(n[r]=X.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.markSet="_"==o?null:o?ie(this,o.split(" ")):""!=o&&t.inlineContent?null:[]}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=null==n?[t]:""==n?[]:ie(this,n.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,content,n){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof ee))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,content,n)}text(text,e){let t=this.nodes.text;return new I(t,t.defaultAttrs,text,m.setFrom(e))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return V.fromJSON(this,e)}markFromJSON(e){return m.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function ie(e,t){let n=[];for(let i=0;i-1)&&n.push(o=mark)}if(!o)throw new SyntaxError("Unknown mark type: '"+t[i]+"'")}return n}class se{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach((e=>{e.tag?this.tags.push(e):e.style&&this.styles.push(e)})),this.normalizeLists=!this.tags.some((t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)}))}parse(e,t={}){let n=new ce(this,t,!1);return n.addAll(e,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new ce(this,t,!0);return n.addAll(e,t.from,t.to),T.maxOpen(n.finish())}matchTag(e,t,n){for(let i=n?this.tags.indexOf(n)+1:0;ie.length&&(61!=style.charCodeAt(e.length)||style.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(!1===e)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=null==e.priority?50:e.priority,i=0;for(;i{n(e=he(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)}))}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach((e=>{n(e=he(e)),e.node||e.ignore||e.mark||(e.node=t)}))}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new se(e,se.schemaRules(e)))}}const oe={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},le={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},ae={ol:!0,ul:!0};function ue(e,t,base){return null!=t?(t?1:0)|("full"===t?2:0):e&&"pre"==e.whitespace?3:-5&base}class fe{constructor(e,t,n,r,o,l,f){this.type=e,this.attrs=t,this.marks=n,this.pendingMarks=r,this.solid=o,this.options=f,this.content=[],this.activeMarks=m.none,this.stashMarks=[],this.match=l||(4&f?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(c.from(e));if(!t){let t,n=this.type.contentMatch;return(t=n.findWrapping(e.type))?(this.match=n,t):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let e,t=this.content[this.content.length-1];if(t&&t.isText&&(e=/[ \t\r\n\u000c]+$/.exec(t.text))){let text=t;t.text.length==e[0].length?this.content.pop():this.content[this.content.length-1]=text.withText(text.text.slice(0,text.text.length-e[0].length))}}let content=c.from(this.content);return!e&&this.match&&(content=content.append(this.match.fillBefore(c.empty,!0))),this.type?this.type.create(this.attrs,content,this.marks):content}popFromStashMark(mark){for(let i=this.stashMarks.length-1;i>=0;i--)if(mark.eq(this.stashMarks[i]))return this.stashMarks.splice(i,1)[0]}applyPending(e){for(let i=0,t=this.pendingMarks;i{o.clearMark(e)&&(n=e.addToSet(n))})):t=this.parser.schema.marks[o.mark].create(o.attrs).addToSet(t),!1!==o.consuming)break;r=o}return[t,n]}addElementByRule(e,t,n){let r,o,mark;if(t.node)o=this.parser.schema.nodes[t.node],o.isLeaf?this.insertNode(o.create(t.attrs))||this.leafFallback(e):r=this.enter(o,t.attrs||null,t.preserveWhitespace);else{mark=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(mark)}let l=this.top;if(o&&o.isLeaf)this.findInside(e);else if(n)this.addElement(e,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach((e=>this.insertNode(e)));else{let n=e;"string"==typeof t.contentElement?n=e.querySelector(t.contentElement):"function"==typeof t.contentElement?n=t.contentElement(e):t.contentElement&&(n=t.contentElement),this.findAround(e,n,!0),this.addAll(n)}r&&this.sync(l)&&this.open--,mark&&this.removePendingMark(mark,l)}addAll(e,t,n){let r=t||0;for(let o=t?e.childNodes[t]:e.firstChild,l=null==n?null:e.childNodes[n];o!=l;o=o.nextSibling,++r)this.findAtPoint(e,r),this.addDOM(o);this.findAtPoint(e,r)}findPlace(e){let t,n;for(let r=this.open;r>=0;r--){let o=this.nodes[r],l=o.findWrapping(e);if(l&&(!t||t.length>l.length)&&(t=l,n=o,!l.length))break;if(o.solid)break}if(!t)return!1;this.sync(n);for(let i=0;ithis.open){for(;i>this.open;i--)this.nodes[i-1].content.push(this.nodes[i].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let i=this.open;i>=0;i--)if(this.nodes[i]==e)return this.open=i,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let i=this.open;i>=0;i--){let content=this.nodes[i].content;for(let t=content.length-1;t>=0;t--)e+=content[t].nodeSize;i&&e++}return e}findAtPoint(e,t){if(this.find)for(let i=0;i-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),option=this.options.context,n=!(this.isOpen||option&&option.parent.type!=this.nodes[0].type),r=-(option?option.depth+1:0)+(n?0:1),o=(i,e)=>{for(;i>=0;i--){let l=t[i];if(""==l){if(i==t.length-1||0==i)continue;for(;e>=r;e--)if(o(i-1,e))return!0;return!1}{let t=e>0||0==e&&n?this.nodes[e].type:option&&e>=r?option.node(e-r).type:null;if(!t||t.name!=l&&-1==t.groups.indexOf(l))return!1;e--}}return!0};return o(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}addPendingMark(mark){let e=function(mark,e){for(let i=0;i=0;t--){let n=this.nodes[t];if(n.pendingMarks.lastIndexOf(mark)>-1)n.pendingMarks=mark.removeFromSet(n.pendingMarks);else{n.activeMarks=mark.removeFromSet(n.activeMarks);let e=n.popFromStashMark(mark);e&&n.type&&n.type.allowsMarkType(e.type)&&(n.activeMarks=e.addToSet(n.activeMarks))}if(n==e)break}}}function de(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function he(e){let t={};for(let n in e)t[n]=e[n];return t}function pe(e,t){let n=t.schema.nodes;for(let r in n){let o=n[r];if(!o.allowsMarkType(e))continue;let l=[],f=e=>{l.push(e);for(let i=0;i{if(o.length||e.marks.length){let n=0,l=0;for(;n=0;i--){let r=this.serializeMark(e.marks[i],e.isInline,t);r&&((r.contentDOM||r.dom).appendChild(n),n=r.dom)}return n}serializeMark(mark,e,t={}){let n=this.marks[mark.type.name];return n&&Ee.renderSpec(Re(t),n(mark,e))}static renderSpec(e,t,n=null){if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let r,o=t[0],l=o.indexOf(" ");l>0&&(n=o.slice(0,l),o=o.slice(l+1));let f=n?e.createElementNS(n,o):e.createElement(o),c=t[1],d=1;if(c&&"object"==typeof c&&null==c.nodeType&&!Array.isArray(c)){d=2;for(let e in c)if(null!=c[e]){let t=e.indexOf(" ");t>0?f.setAttributeNS(e.slice(0,t),e.slice(t+1),c[e]):f.setAttribute(e,c[e])}}for(let i=d;id)throw new RangeError("Content hole must be the only child of its parent node");return{dom:f,contentDOM:f}}{let{dom:t,contentDOM:l}=Ee.renderSpec(e,o,n);if(f.appendChild(t),l){if(r)throw new RangeError("Multiple content holes");r=l}}}return{dom:f,contentDOM:r}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Ee(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=me(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return me(e.marks)}}function me(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function Re(e){return e.document||window.document}},343:function(e,t,n){n(382)},344:function(e,t,n){"use strict";var r=n(86),o=n(8),l=n(4),f=n(117),c=n(11),d=n(42),h=n(143),E=n(24),m=n(142),R=n(148),T=n(64),S=n(13),C=n(51),L=n(147),y=n(114),A=n(116),v=n(151),B=n(3),_=v.UNSUPPORTED_Y,K=4294967295,w=Math.min,U=[].push,N=l(/./.exec),D=l(U),k=l("".slice),O=!B((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));f("split",(function(e,t,n){var l;return l="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var l=S(E(this)),f=void 0===n?K:n>>>0;if(0===f)return[];if(void 0===e)return[l];if(!h(e))return o(t,l,e,f);for(var c,d,m,output=[],R=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),T=0,C=new RegExp(e.source,R+"g");(c=o(A,C,l))&&!((d=C.lastIndex)>T&&(D(output,k(l,T,c.index)),c.length>1&&c.index=f));)C.lastIndex===c.index&&C.lastIndex++;return T===l.length?!m&&N(C,"")||D(output,""):D(output,k(l,T)),output.length>f?L(output,0,f):output}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:o(t,this,e,n)}:t,[function(t,n){var r=E(this),f=d(t)?void 0:C(t,e);return f?o(f,t,r,n):o(l,S(r),t,n)},function(e,r){var o=c(this),f=S(e),d=n(l,o,f,r,l!==t);if(d.done)return d.value;var h=m(o,RegExp),E=o.unicode,C=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(_?"g":"y"),L=new h(_?"^(?:"+o.source+")":o,C),A=void 0===r?K:r>>>0;if(0===A)return[];if(0===f.length)return null===y(L,f)?[f]:[];for(var p=0,q=0,v=[];qf&&(m=h(m,0,f)),e?R+m:m+R)}};e.exports={start:m(!1),end:m(!0)}},349:function(e,t,n){var r=n(61);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},355:function(e,t,n){"use strict";var r=n(2),o=n(282).trim;r({target:"String",proto:!0,forced:n(362)("trim")},{trim:function(){return o(this)}})},362:function(e,t,n){var r=n(89).PROPER,o=n(3),l=n(283);e.exports=function(e){return o((function(){return!!l[e]()||"​…᠎"!=="​…᠎"[e]()||r&&l[e].name!==e}))}},382:function(e,t,n){"use strict";var r=n(2),o=n(8),l=n(4),f=n(24),c=n(5),d=n(42),h=n(143),E=n(13),m=n(51),R=n(152),T=n(213),S=n(7),C=n(19),L=S("replace"),y=TypeError,A=l("".indexOf),v=l("".replace),B=l("".slice),_=Math.max,K=function(e,t,n){return n>e.length?-1:""===t?n:A(e,t,n)};r({target:"String",proto:!0},{replaceAll:function(e,t){var n,r,l,S,w,U,N,D,k,O=f(this),x=0,M=0,V="";if(!d(e)){if((n=h(e))&&(r=E(f(R(e))),!~A(r,"g")))throw y("`.replaceAll` does not allow non-global regexes");if(l=m(e,L))return o(l,e,O,t);if(C&&n)return v(E(O),e,t)}for(S=E(O),w=E(e),(U=c(t))||(t=E(t)),N=w.length,D=_(1,N),x=K(S,w,0);-1!==x;)k=U?E(t(w,x,S)):T(w,S,x,[],void 0,t),V+=B(S,M,x)+k,M=x+N,x=K(S,w,x+D);return M({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:element=>!!element.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:e}){return["span",Object(r.k)(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:e,commands:t})=>{const n=Object(r.f)(e,this.type);return!!Object.entries(n).some((([,e])=>!!e))||t.unsetMark(this.name)}}}})},562:function(e,t,n){n(1109)},573:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EXTENDED_PICTOGRAPHIC=t.CLUSTER_BREAK=void 0,function(e){e[e.CR=0]="CR",e[e.LF=1]="LF",e[e.CONTROL=2]="CONTROL",e[e.EXTEND=3]="EXTEND",e[e.REGIONAL_INDICATOR=4]="REGIONAL_INDICATOR",e[e.SPACINGMARK=5]="SPACINGMARK",e[e.L=6]="L",e[e.V=7]="V",e[e.T=8]="T",e[e.LV=9]="LV",e[e.LVT=10]="LVT",e[e.OTHER=11]="OTHER",e[e.PREPEND=12]="PREPEND",e[e.E_BASE=13]="E_BASE",e[e.E_MODIFIER=14]="E_MODIFIER",e[e.ZWJ=15]="ZWJ",e[e.GLUE_AFTER_ZWJ=16]="GLUE_AFTER_ZWJ",e[e.E_BASE_GAZ=17]="E_BASE_GAZ"}(t.CLUSTER_BREAK||(t.CLUSTER_BREAK={})),t.EXTENDED_PICTOGRAPHIC=101}}]); \ No newline at end of file diff --git a/_nuxt/7ff5175.js b/_nuxt/7ff5175.js new file mode 100644 index 0000000000000000000000000000000000000000..f387f3028cd7f2a37c8330c290aa3b5600c55d1e --- /dev/null +++ b/_nuxt/7ff5175.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[30,14],{1085:function(t,e,o){"use strict";o(550)},1086:function(t,e,o){var n=o(107)(!1);n.push([t.i,".question-icon{height:21px;margin:0 5px}.question-link{color:#113343}@media only screen and (max-width:700px){.question-icon{height:19px}}",""]),t.exports=n},1087:function(t,e,o){"use strict";o(551)},1088:function(t,e,o){var n=o(107)(!1);n.push([t.i,".wrapper[data-v-324f9ad2]{max-width:700px;padding:0 30px;margin-left:auto;margin-right:auto;color:#113343}.question[data-v-324f9ad2]{font-size:24px;margin-bottom:20px;margin-top:120px}.result[data-v-324f9ad2]{padding:25px 20px 20px;background:#fff;border-radius:5px;text-align:center;line-height:1.5em;border:1px solid #2f5d72;box-shadow:7px 7px 0 #2f5d72}.result-text[data-v-324f9ad2]{font-size:20px}.options[data-v-324f9ad2]{display:grid;grid-template-columns:1fr 1fr;grid-gap:25px}.option[data-v-324f9ad2]{padding:27px 17px;border:1px solid #2f5d72;box-shadow:5px 5px 0 #2f5d72;text-align:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff;cursor:pointer;font-size:20px;border-radius:5px;color:#113343}.option[data-v-324f9ad2]:first-letter{text-transform:uppercase}.option[data-v-324f9ad2]:hover{transform:translateY(2px)}.bar[data-v-324f9ad2]{height:25px;border-radius:5px;margin-top:15px;overflow:hidden;position:relative;border:1px solid #2f5d72;background:#f7f9ff}.bar-inner[data-v-324f9ad2]{height:100%;width:0;background:url(/lets-settle-this/halftone.png);background-size:50px auto;transition:width 1s ease-in-out}.winner[data-v-324f9ad2]{color:#ff26a1}.percent[data-v-324f9ad2]{width:170px;white-space:nowrap}.bar-label[data-v-324f9ad2]{display:flex;justify-content:space-between;padding:0 3px;font-size:15px;margin-top:2px;position:relative}.bar-label .percent[data-v-324f9ad2]:first-child{text-align:left}.bar-label .percent[data-v-324f9ad2]:last-child{text-align:right}.percents[data-v-324f9ad2]{position:absolute;top:0;left:0;width:100%;display:flex;justify-content:space-between;padding:1px 7px 0;color:#fff}.decided[data-v-324f9ad2]{font-weight:700;font-size:20px;margin-bottom:10px;text-transform:uppercase}.icon[data-v-324f9ad2]{height:19px;position:relative;top:3px;left:-6px}@media only screen and (max-width:700px){.wrapper[data-v-324f9ad2]{padding:0 20px}.question[data-v-324f9ad2]{font-size:20px;line-height:1.3em;text-align:center;max-width:300px;margin:85px auto 15px;padding:0 10px}.option[data-v-324f9ad2],.options[data-v-324f9ad2]{display:block}.option[data-v-324f9ad2]{padding:23px 0;width:100%;margin-bottom:15px;font-size:20px}.result[data-v-324f9ad2]{padding:20px 15px 37px}.result-text[data-v-324f9ad2]{font-size:19px;padding:0 15px}.decided[data-v-324f9ad2]{font-size:11px;opacity:.6;margin-bottom:6px;margin-top:1px}.votes[data-v-324f9ad2]{position:absolute;top:23px;left:50%;transform:translateX(-50%);font-size:16px}.bar[data-v-324f9ad2]{height:25px;margin-top:5px}.result-text .icon[data-v-324f9ad2]{height:16px;left:-3px;top:1px}.bar-label[data-v-324f9ad2]{margin-top:0;font-size:13px}}",""]),t.exports=n},1089:function(t,e,o){"use strict";o(552)},1090:function(t,e,o){var n=o(107),r=o(200),d=o(1091),l=n(!1),c=r(d);l.push([t.i,'@font-face{font-family:"Rubik";src:url('+c+')}.container[data-v-00d67778]{background:url(/lets-settle-this/bg.svg);background-size:35px auto;color:#113343;font-family:"Rubik",sans-serif}.site[data-v-00d67778]{position:absolute;top:20px;left:110px;max-width:140px;text-decoration:none;color:#113343;z-index:2;cursor:pointer}.title[data-v-00d67778]{max-width:550px;margin-top:100px;width:100%}.header[data-v-00d67778]{text-align:center;pointer-events:none}.header[data-v-00d67778],.questions[data-v-00d67778]{position:relative;z-index:2}.questions[data-v-00d67778]{margin-bottom:70px}h1[data-v-00d67778]{padding-top:100px;text-transform:uppercase}h2[data-v-00d67778]{font-weight:400;margin-top:40px;line-height:1.45em}.side-img[data-v-00d67778]{position:absolute;z-index:0}.coke[data-v-00d67778]{top:2450px;right:-50px;width:215px}.coke[data-v-00d67778],.jif[data-v-00d67778]{transform:rotate(-10deg)}.jif[data-v-00d67778]{top:300px;right:-75px;width:225px}.toilet-paper[data-v-00d67778]{top:1900px;right:-50px;width:235px}.chicken[data-v-00d67778],.toilet-paper[data-v-00d67778]{transform:rotate(-5deg)}.chicken[data-v-00d67778]{top:900px;left:-160px;width:350px}.egg[data-v-00d67778]{top:1000px;right:-60px;width:220px}.cereal[data-v-00d67778],.egg[data-v-00d67778]{transform:rotate(10deg)}.cereal[data-v-00d67778]{top:1700px;left:-120px;width:330px}.sun[data-v-00d67778]{top:4950px;left:-220px;width:430px;transform:rotate(10deg)}.leo[data-v-00d67778]{top:3700px;left:-150px;width:350px;transform:rotate(30deg)}.ps5[data-v-00d67778]{top:5100px;right:-200px;width:440px;transform:rotate(-70deg)}.hotdog[data-v-00d67778]{top:4100px;right:-120px;width:400px;transform:rotate(-15deg) scaleY(-1)}.vader[data-v-00d67778]{top:3000px;left:-150px;width:350px;transform:rotate(0deg)}.side-wrapper[data-v-00d67778]{position:absolute;top:0;left:0;width:100%;height:1000%;overflow:hidden;pointer-events:none;opacity:.8;display:none}.batman[data-v-00d67778]{top:4250px;left:-150px;width:250px;transform:rotate(8deg)}.captain-america[data-v-00d67778]{top:4500px;right:-150px;width:300px;transform:rotate(-8deg) scaleX(-1)}.ship[data-v-00d67778]{top:3200px;right:-200px;width:550px;transform:rotate(100deg) scaleX(1)}.cup[data-v-00d67778]{top:7300px;left:-70px;width:220px}.brain[data-v-00d67778]{top:5600px;left:-160px;width:410px;transform:rotate(30deg)}.peanut[data-v-00d67778]{top:7500px;right:-100px;width:250px;transform:rotate(10deg)}.android[data-v-00d67778]{top:7000px;right:-120px;width:320px}.android[data-v-00d67778],.iphone[data-v-00d67778]{transform:rotate(-10deg)}.iphone[data-v-00d67778]{top:6700px;left:-100px;width:220px}.border-right[data-v-00d67778]{right:0;background-position:50px 0}.border-left[data-v-00d67778],.border-right[data-v-00d67778]{position:absolute;top:0;width:150px;background-image:url(/lets-settle-this/border.png);background-size:100% auto;background-repeat:repeat-y;opacity:.4;pointer-events:none}.border-left[data-v-00d67778]{left:0;background-position:50px 700px;transform:scaleX(-1)}.endnote[data-v-00d67778]{line-height:1.45em;font-size:2;font-size:1.3em;padding:0 15px;max-width:600px;margin:40px auto;text-align:center}@media only screen and (max-width:700px){.title[data-v-00d67778]{padding:0 30px}h2[data-v-00d67778]{font-size:20px;padding:0 25px;margin-top:20px;line-height:1.3em}h2 br[data-v-00d67778]{display:none}.border-left[data-v-00d67778],.border-right[data-v-00d67778]{width:120px;opacity:.25}.border-left[data-v-00d67778],.border-right[data-v-00d67778]{background-position:60px 700px}.header[data-v-00d67778]{margin-bottom:-15px}.endnote[data-v-00d67778]{margin-top:-10px;font-size:18px;max-width:350px}.site[data-v-00d67778]{top:15px;left:15px;max-width:105px}}',""]),t.exports=l},1091:function(t,e,o){t.exports=o.p+"fonts/Rubik-Regular.0f56ab0.ttf"},1312:function(t,e,o){"use strict";o.r(e);var n,r,d=o(10),l=(o(60),o(15),o(34),o(62),o(65),o(310)),c={props:{text:{type:String,required:!0},options:{type:Array,required:!0},icons:{type:Array,required:!0},results:{type:Array,required:!0},answer:{type:Array,required:!1,default:["",""]},id:{type:String,required:!0}},data:function(){return{showResults:!1,tween:null}},computed:{winnerIndex:function(){return this.results[0]>=this.results[1]?0:1},totalVotes:function(){return this.results[0]+this.results[1]},percent:function(){return Math.round(this.results[0]/this.totalVotes*100)},isEqual:function(){return 50===this.percent}},watch:{showResults:function(){this.showResults&&this.totalVotes>0&&this.animateResults()},results:function(){this.showResults&&this.totalVotes>0&&this.animateResults()}},mounted:function(){localStorage.getItem("lst-".concat(this.id))&&(this.showResults=!0)},methods:{animateResults:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1200,o={percent:0,votes:0},n=!1;this.tween=new l.c.Tween(o).to({percent:this.percent,votes:this.totalVotes},e).easing(l.c.Easing.Cubic.Out).onUpdate((function(){t.$refs.votes.innerText=Math.round(o.votes).toLocaleString(),t.$refs.leftPercent.innerText=Math.round(o.percent),t.$refs.rightPercent.innerText=Math.round(100-o.percent),t.$refs.barInner.style.width="".concat(Math.round(t.percent),"%")})).onComplete((function(){n=!0})).start();var animate=function animate(time){l.c.update(time),n||requestAnimationFrame(animate)};requestAnimationFrame(animate)},replaceLastSpace:function(s){if(s.includes(" "))return s;var t=s.lastIndexOf(" ");return s.substring(0,t)+" "+s.substring(t+1)},selected:(n=Object(d.a)(regeneratorRuntime.mark((function t(i){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.showResults=!0,localStorage.setItem("lst-".concat(this.id),!0),t.next=5,fetch("https://seahorse-app-w2ga6.ondigitalocean.app/vote",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({question:this.id,option:i})});case 5:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})}},h=c,f=(o(1085),o(1087),o(28)),x={components:{question:Object(f.a)(h,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"wrapper",class:{"wrapper-results":t.showResults}},[e("div",{staticClass:"question",domProps:{innerHTML:t._s(t.replaceLastSpace(t.text))}}),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.showResults,expression:"showResults"}],staticClass:"result"},[e("div",{staticClass:"result-text"},[e("div",{staticClass:"decided"},[t._v("\n "+t._s(t.isEqual?"The internet has NOT decided.":"The internet has decided.")+"\n ")]),t._v(" "),e("img",{staticClass:"icon",attrs:{src:"/lets-settle-this/".concat(t.isEqual?"hand-shake":t.icons[t.winnerIndex],".svg")}}),t._v(" "),e("span",{domProps:{innerHTML:t._s(t.isEqual?"It's a tie.":t.replaceLastSpace(t.answer[t.winnerIndex]))}})]),t._v(" "),e("div",{staticClass:"bar"},[e("div",{ref:"barInner",staticClass:"bar-inner"})]),t._v(" "),e("div",{staticClass:"bar-label"},[e("div",{staticClass:"percent"},[t._v("\n "+t._s(t.options[0])+" ("),e("span",{ref:"leftPercent"},[t._v("0")]),t._v("%)\n ")]),t._v(" "),e("div",{staticClass:"votes"},[e("span",{ref:"votes"},[t._v("0")]),t._v(" votes")]),t._v(" "),e("div",{staticClass:"percent"},[t._v("\n "+t._s(t.options[1])+" ("),e("span",{ref:"rightPercent"},[t._v("0")]),t._v("%)\n ")])])]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.showResults,expression:"!showResults"}],staticClass:"options"},t._l(t.options,(function(option,i){return e("button",{key:i,staticClass:"option",class:{"option-1":0===i},on:{click:function(){return t.selected(i)}}},[e("img",{staticClass:"icon",attrs:{src:"/lets-settle-this/".concat(t.icons?t.icons[i]:"",".svg")}}),t._v("\n "+t._s(option)+"\n ")])})),0)])}),[],!1,null,"324f9ad2",null).exports},mounted:function(){var t=this;new ResizeObserver((function(e){t.bodyHeight=e[0].target.clientHeight})).observe(document.body);var e=[];this.questions.forEach((function(element){e.push(element.id)}))},created:(r=Object(d.a)(regeneratorRuntime.mark((function t(){var data;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=4,fetch("https://seahorse-app-w2ga6.ondigitalocean.app/getVotes",{method:"GET",headers:{"Content-Type":"application/json"}});case 4:return data=t.sent,t.next=7,data.json();case 7:this.results=t.sent,t.next=12;break;case 10:t.prev=10,t.t0=t.catch(0);case 12:case"end":return t.stop()}}),t,this,[[0,10]])}))),function(){return r.apply(this,arguments)}),data:function(){return{bodyHeight:window.innerHeight,results:[],questions:[{q:"How do you pronounce gif?",options:["Gif","Jif"],icons:["gif","jif"],id:"gif",answer:["It's pronounced gif.","It's pronounced jif."]},{q:"Is the dress blue and black or white and gold?",options:["Blue & black","White & gold"],tooltip:"",id:"dress",icons:["blue-and-black","white-and-gold"],answer:["The dress is blue and black.","The dress is white and gold."]},{q:"What came first, the chicken or the egg?",options:["Chicken","Egg"],icons:["chicken","egg"],id:"chicken",answer:["The chicken came first.","The egg came first."]},{q:"Should a sandwich be cut diagonally or horizontally?",options:["Diagonally","Horizontally"],icons:["diagonal","horizontal"],id:"sandwich",answer:["A sandwich should be cut diagonally.","A sandwich should be cut horizontally."]},{q:"Is cereal a soup?",options:["Yes","No"],icons:["yes","no"],id:"cereal",answer:["Cereal is a soup.","Cereal is not a soup."]},{q:"Toilet paper over or under?",options:["Over","Under"],icons:["toilet-out","toilet-in"],id:"toilet",answer:["The correct way is over.","The correct way is under."]},{q:"Pepsi or Coke?",options:["Pepsi","Coke"],icons:["pepsi","coke"],id:"coke",answer:["Pepsi is better.","Coke is better."]},{q:"Is pineapple on pizza good?",options:["Yes","No"],icons:["yes","no"],id:"pineapple",answer:["Pineapple on pizza is good.","Pineapple on pizza is not good."]},{q:"Star Wars or Star Trek?",options:["Star Wars","Star Trek"],icons:["star-wars","star-trek"],id:"starwars",answer:["Star Wars is better.","Star Trek is better."]},{q:"Would a dog wear pants like this, or like this?",options:["Like this","No, like this"],icons:["dog-first","dog-second"],id:"dogpants",answer:["A dog would wear pants like this.","A dog would wear pants like this."]},{q:"Could Jack have fit on the door in the movie Titanic?",options:["Yes","No"],icons:["yes","no"],id:"titanic",answer:["Jack could have fit on that door.","Jack could not have fit on that door."]},{q:"Are hot dogs a sandwich?",options:["Yes","No"],icons:["yes","no"],id:"hotdog",answer:["Hot dogs are a sandwich.","Hot dogs are not a sandwich."]},{q:"Marvel or DC?",options:["Marvel","DC"],icons:["marvel","dc"],id:"comic",answer:["Marvel wins.","DC wins."]},{q:"Should we get rid of daylight saving?",options:["Yes","No"],icons:["yes","no"],id:"daylight",answer:["We should get rid of daylight saving.","We should not get rid of daylight saving."]},{q:"Xbox or Playstation?",options:["Xbox","Playstation"],icons:["xbox","playstation"],id:"console",answer:["Xbox is better.","Playstation is better."]},{q:"Are we living in a simulation?",options:["Yes","No"],icons:["yes","no"],id:"simulation",answer:["Yes, we are living in a simulation.","No, we are not living a simulation."]},{q:"Is Die Hard a Christmas movie?",options:["Yes","No"],icons:["yes","no"],id:"diehard",answer:["Yes, Die Hard is a Christmas movie.","No, Die Hard is not a Christmas movie."]},{q:"Middle brownie piece, or edge piece?",options:["Middle","Edge"],icons:["middle","edge"],id:"brownie",answer:["The middle piece is tastier.","The edge piece is tastier."]},{q:"Sock shoe sock shoe or sock sock shoe shoe?",options:["First","Second"],icons:["sock-shoe","sock-sock"],id:"sockshoe",answer:["Sock shoe sock shoe is the correct way.","Sock sock shoe shoe is the correct way."]},{q:"iPhone or Android?",options:["iPhone","Android"],icons:["apple","android"],id:"smartphone",answer:["iPhone wins.","Android wins."]},{q:"Does a straw have one hole or two?",options:["One","Two"],icons:["one-hole","two-holes"],id:"straw",answer:["A straw has one hole.","A straw has two holes."]},{q:"Smooth or chunky peanut butter?",options:["Smooth","Chunky"],icons:["smooth","chunky"],id:"peanutbutter",answer:["Smooth peanut butter is better.","Chunky peanut butter is better."]}]}}},v=x,m=(o(1089),Object(f.a)(v,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("nuxt-link",{staticClass:"site",attrs:{to:"/"}},[e("logo",{attrs:{color:"#284F61"}})],1),t._v(" "),t._m(0),t._v(" "),e("div",{staticClass:"questions"},t._l(t.questions,(function(o){return e("question",{key:o.id,attrs:{id:o.id,text:o.q,icons:o.icons,options:o.options,results:t.results[o.id]||[0,0],answer:o.answer}})})),1),t._v(" "),e("div",{staticClass:"border-right",style:{height:t.bodyHeight+"px"}}),t._v(" "),e("div",{staticClass:"border-left",style:{height:t.bodyHeight+"px"}}),t._v(" "),e("div",{staticClass:"endnote"},[t._v("\n Now that the internet has decided the big questions, you are finally free\n from the endless debates.\n ")]),t._v(" "),e("Footer",{attrs:{bg:"none",color:"#113343"}})],1)}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"header"},[e("img",{staticClass:"title",attrs:{src:"/lets-settle-this/title.svg"}}),t._v(" "),e("h2",[t._v("\n Internet debates have raged for too long."),e("br"),t._v("\n It's time to settle the big questions so we can move on.\n ")])])}],!1,null,"00d67778",null));e.default=m.exports;installComponents(m,{Logo:o(287).default,Footer:o(295).default})},277:function(t,e,o){var content=o(286);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(108).default)("f68e4eaa",content,!0,{sourceMap:!1})},278:function(t,e,o){var content=o(291);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(108).default)("db35a8f0",content,!0,{sourceMap:!1})},279:function(t,e,o){var content=o(294);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(108).default)("c9434642",content,!0,{sourceMap:!1})},280:function(t,e,o){"use strict";o.r(e);o(276);var n={props:{slotId:{type:String,required:!0},adFormat:{type:String,required:!0},isResponsive:{type:Boolean,required:!1,default:!1},adStyle:{type:String,required:!0},minWidth:{type:Number,required:!1,default:-1},maxWidth:{type:Number,required:!1,default:-1}},data:function(){return{hideAd:!1,shouldShow:this.shouldShowAd()}},mounted:function(){var t=this;this.createAds(),this.$addEventListener("resize",(function(){t.hideAd=!t.shouldShowAd()}))},watch:{$route:function(){this.firstLoad=!1,this.createAds()}},methods:{createAds:function(){var t=this;this.$nextTick((function(){t.shouldShowAd()&&(window.adsbygoogle=window.adsbygoogle||[],adsbygoogle.push({}))}))},shouldShowAd:function(){return(-1===this.minWidth||window.innerWidth>=this.minWidth)&&(-1===this.maxWidth||window.innerWidth500?4:3,e=Object(r.a)(this.$store.state.posts),o=this.$route.path;e=e.filter((function(t){return"/".concat(t.path,"/")!==o&&!t.hidden&&!t.hideInRecommended}));for(var n=[],d=0;d=0&&e<=1){if(n._volume=e,n._muted)return n;n.usingWebAudio&&n.masterGain.gain.setValueAtTime(e,d.ctx.currentTime);for(var i=0;i=0;i--)e._howls[i].unload();return e.usingWebAudio&&e.ctx&&void 0!==e.ctx.close&&(e.ctx.close(),e.ctx=null,A()),e},codecs:function(e){return(this||d)._codecs[e.replace(/^x-/,"")]},_setup:function(){var e=this||d;if(e.state=e.ctx&&e.ctx.state||"suspended",e._autoSuspend(),!e.usingWebAudio)if("undefined"!=typeof Audio)try{void 0===(new Audio).oncanplaythrough&&(e._canPlayEvent="canplay")}catch(n){e.noAudio=!0}else e.noAudio=!0;try{(new Audio).muted&&(e.noAudio=!0)}catch(e){}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||d,n=null;try{n="undefined"!=typeof Audio?new Audio:null}catch(n){return e}if(!n||"function"!=typeof n.canPlayType)return e;var t=n.canPlayType("audio/mpeg;").replace(/^no$/,""),o=e._navigator?e._navigator.userAgent:"",r=o.match(/OPR\/([0-6].)/g),_=r&&parseInt(r[0].split("/")[1],10)<33,l=-1!==o.indexOf("Safari")&&-1===o.indexOf("Chrome"),c=o.match(/Version\/(.*?) /),f=l&&c&&parseInt(c[1],10)<15;return e._codecs={mp3:!(_||!t&&!n.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!t,opus:!!n.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!n.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!n.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(n.canPlayType('audio/wav; codecs="1"')||n.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!n.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!n.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(n.canPlayType("audio/x-m4a;")||n.canPlayType("audio/m4a;")||n.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(n.canPlayType("audio/x-m4b;")||n.canPlayType("audio/m4b;")||n.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(n.canPlayType("audio/x-mp4;")||n.canPlayType("audio/mp4;")||n.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!(f||!n.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!(f||!n.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!n.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(n.canPlayType("audio/x-flac;")||n.canPlayType("audio/flac;")).replace(/^no$/,"")},e},_unlockAudio:function(){var e=this||d;if(!e._audioUnlocked&&e.ctx){e._audioUnlocked=!1,e.autoUnlock=!1,e._mobileUnloaded||44100===e.ctx.sampleRate||(e._mobileUnloaded=!0,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var n=function(t){for(;e._html5AudioPool.length0?_._seek:t._sprite[e][0]/1e3),f=Math.max(0,(t._sprite[e][0]+t._sprite[e][1])/1e3-c),m=1e3*f/Math.abs(_._rate),v=t._sprite[e][0]/1e3,h=(t._sprite[e][0]+t._sprite[e][1])/1e3;_._sprite=e,_._ended=!1;var A=function(){_._paused=!1,_._seek=c,_._start=v,_._stop=h,_._loop=!(!_._loop&&!t._sprite[e][2])};if(!(c>=h)){var y=_._node;if(t._webAudio){var w=function(){t._playLock=!1,A(),t._refreshBuffer(_);var e=_._muted||t._muted?0:_._volume;y.gain.setValueAtTime(e,d.ctx.currentTime),_._playStart=d.ctx.currentTime,void 0===y.bufferSource.start?_._loop?y.bufferSource.noteGrainOn(0,c,86400):y.bufferSource.noteGrainOn(0,c,f):_._loop?y.bufferSource.start(0,c,86400):y.bufferSource.start(0,c,f),m!==1/0&&(t._endTimers[_._id]=setTimeout(t._ended.bind(t,_),m)),n||setTimeout((function(){t._emit("play",_._id),t._loadQueue()}),0)};"running"===d.state&&"interrupted"!==d.ctx.state?w():(t._playLock=!0,t.once("resume",w),t._clearTimer(_._id))}else{var T=function(){y.currentTime=c,y.muted=_._muted||t._muted||d._muted||y.muted,y.volume=_._volume*d.volume(),y.playbackRate=_._rate;try{var o=y.play();if(o&&"undefined"!=typeof Promise&&(o instanceof Promise||"function"==typeof o.then)?(t._playLock=!0,A(),o.then((function(){t._playLock=!1,y._unlocked=!0,n?t._loadQueue():t._emit("play",_._id)})).catch((function(){t._playLock=!1,t._emit("playerror",_._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),_._ended=!0,_._paused=!0}))):n||(t._playLock=!1,A(),t._emit("play",_._id)),y.playbackRate=_._rate,y.paused)return void t._emit("playerror",_._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");"__default"!==e||_._loop?t._endTimers[_._id]=setTimeout(t._ended.bind(t,_),m):(t._endTimers[_._id]=function(){t._ended(_),y.removeEventListener("ended",t._endTimers[_._id],!1)},y.addEventListener("ended",t._endTimers[_._id],!1))}catch(e){t._emit("playerror",_._id,e)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===y.src&&(y.src=t._src,y.load());var x=window&&window.ejecta||!y.readyState&&d._navigator.isCocoonJS;if(y.readyState>=3||x)T();else{t._playLock=!0,t._state="loading";var S=function(){t._state="loaded",T(),y.removeEventListener(d._canPlayEvent,S,!1)};y.addEventListener(d._canPlayEvent,S,!1),t._clearTimer(_._id)}}return _._id}t._ended(_)},pause:function(e){var n=this;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"pause",action:function(){n.pause(e)}}),n;for(var t=n._getSoundIds(e),i=0;i=0?n=parseInt(r[0],10):e=parseFloat(r[0])}else r.length>=2&&(e=parseFloat(r[0]),n=parseInt(r[1],10));if(!(void 0!==e&&e>=0&&e<=1))return(t=n?o._soundById(n):o._sounds[0])?t._volume:0;if("loaded"!==o._state||o._playLock)return o._queue.push({event:"volume",action:function(){o.volume.apply(o,r)}}),o;void 0===n&&(o._volume=e),n=o._getSoundIds(n);for(var i=0;i0?o/f:o),v=Date.now();e._fadeTo=t,e._interval=setInterval((function(){var r=(Date.now()-v)/o;v=Date.now(),l+=c*r,l=Math.round(100*l)/100,l=c<0?Math.max(t,l):Math.min(t,l),_._webAudio?e._volume=l:_.volume(l,e._id,!0),d&&(_._volume=l),(tn&&l>=t)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,_.volume(t,e._id),_._emit("fade",e._id))}),m)},_stopFade:function(e){var n=this,t=n._soundById(e);return t&&t._interval&&(n._webAudio&&t._node.gain.cancelScheduledValues(d.ctx.currentTime),clearInterval(t._interval),t._interval=null,n.volume(t._fadeTo,e),t._fadeTo=null,n._emit("fade",e)),n},loop:function(){var e,n,t,o=this,r=arguments;if(0===r.length)return o._loop;if(1===r.length){if("boolean"!=typeof r[0])return!!(t=o._soundById(parseInt(r[0],10)))&&t._loop;e=r[0],o._loop=e}else 2===r.length&&(e=r[0],n=parseInt(r[1],10));for(var d=o._getSoundIds(n),i=0;i=0?n=parseInt(r[0],10):e=parseFloat(r[0])}else 2===r.length&&(e=parseFloat(r[0]),n=parseInt(r[1],10));if("number"!=typeof e)return(t=o._soundById(n))?t._rate:o._rate;if("loaded"!==o._state||o._playLock)return o._queue.push({event:"rate",action:function(){o.rate.apply(o,r)}}),o;void 0===n&&(o._rate=e),n=o._getSoundIds(n);for(var i=0;i=0?n=parseInt(o[0],10):t._sounds.length&&(n=t._sounds[0]._id,e=parseFloat(o[0]))}else 2===o.length&&(e=parseFloat(o[0]),n=parseInt(o[1],10));if(void 0===n)return 0;if("number"==typeof e&&("loaded"!==t._state||t._playLock))return t._queue.push({event:"seek",action:function(){t.seek.apply(t,o)}}),t;var l=t._soundById(n);if(l){if(!("number"==typeof e&&e>=0)){if(t._webAudio){var c=t.playing(n)?d.ctx.currentTime-l._playStart:0,f=l._rateSeek?l._rateSeek-l._seek:0;return l._seek+(f+c*Math.abs(l._rate))}return l._node.currentTime}var m=t.playing(n);m&&t.pause(n,!0),l._seek=e,l._ended=!1,t._clearTimer(n),t._webAudio||!l._node||isNaN(l._node.duration)||(l._node.currentTime=e);var v=function(){m&&t.play(n,!0),t._emit("seek",n)};if(m&&!t._webAudio){var h=function(){t._playLock?setTimeout(h,0):v()};setTimeout(h,0)}else v()}return t},playing:function(e){var n=this;if("number"==typeof e){var t=n._soundById(e);return!!t&&!t._paused}for(var i=0;i=0&&d._howls.splice(t,1);var o=!0;for(i=0;i=0){o=!1;break}return c&&o&&delete c[e._src],d.noAudio=!1,e._state="unloaded",e._sounds=[],e=null,null},on:function(e,n,t,o){var r=this["_on"+e];return"function"==typeof n&&r.push(o?{id:t,fn:n,once:o}:{id:t,fn:n}),this},off:function(e,n,t){var o=this,r=o["_on"+e],i=0;if("number"==typeof n&&(t=n,n=null),n||t)for(i=0;i=0;i--)r[i].id&&r[i].id!==n&&"load"!==e||(setTimeout(function(e){e.call(this,n,t)}.bind(o,r[i].fn),0),r[i].once&&o.off(e,r[i].fn,r[i].id));return o._loadQueue(e),o},_loadQueue:function(e){var n=this;if(n._queue.length>0){var t=n._queue[0];t.event===e&&(n._queue.shift(),n._loadQueue()),e||t.action()}return n},_ended:function(e){var n=this,t=e._sprite;if(!n._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime=0;i--){if(t<=n)return;e._sounds[i]._ended&&(e._webAudio&&e._sounds[i]._node&&e._sounds[i]._node.disconnect(0),e._sounds.splice(i,1),t--)}}},_getSoundIds:function(e){if(void 0===e){for(var n=[],i=0;i=0;if(d._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),n))try{e.bufferSource.buffer=d._scratchBuffer}catch(e){}return e.bufferSource=null,this},_clearSound:function(e){/MSIE |Trident\//.test(d._navigator&&d._navigator.userAgent)||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var l=function(e){this._parent=e,this.init()};l.prototype={init:function(){var e=this,n=e._parent;return e._muted=n._muted,e._loop=n._loop,e._volume=n._volume,e._rate=n._rate,e._seek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++d._counter,n._sounds.push(e),e.create(),e},create:function(){var e=this,n=e._parent,t=d._muted||e._muted||e._parent._muted?0:e._volume;return n._webAudio?(e._node=void 0===d.ctx.createGain?d.ctx.createGainNode():d.ctx.createGain(),e._node.gain.setValueAtTime(t,d.ctx.currentTime),e._node.paused=!0,e._node.connect(d.masterGain)):d.noAudio||(e._node=d._obtainHtml5Audio(),e._errorFn=e._errorListener.bind(e),e._node.addEventListener("error",e._errorFn,!1),e._loadFn=e._loadListener.bind(e),e._node.addEventListener(d._canPlayEvent,e._loadFn,!1),e._endFn=e._endListener.bind(e),e._node.addEventListener("ended",e._endFn,!1),e._node.src=n._src,e._node.preload=!0===n._preload?"auto":n._preload,e._node.volume=t*d.volume(),e._node.load()),e},reset:function(){var e=this,n=e._parent;return e._muted=n._muted,e._loop=n._loop,e._volume=n._volume,e._rate=n._rate,e._seek=0,e._rateSeek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++d._counter,e},_errorListener:function(){var e=this;e._parent._emit("loaderror",e._id,e._node.error?e._node.error.code:0),e._node.removeEventListener("error",e._errorFn,!1)},_loadListener:function(){var e=this,n=e._parent;n._duration=Math.ceil(10*e._node.duration)/10,0===Object.keys(n._sprite).length&&(n._sprite={__default:[0,1e3*n._duration]}),"loaded"!==n._state&&(n._state="loaded",n._emit("load"),n._loadQueue()),e._node.removeEventListener(d._canPlayEvent,e._loadFn,!1)},_endListener:function(){var e=this,n=e._parent;n._duration===1/0&&(n._duration=Math.ceil(10*e._node.duration)/10,n._sprite.__default[1]===1/0&&(n._sprite.__default[1]=1e3*n._duration),n._ended(e)),e._node.removeEventListener("ended",e._endFn,!1)}};var c={},f=function(e){var n=e._src;if(c[n])return e._duration=c[n].duration,void h(e);if(/^data:[^;]+;base64,/.test(n)){for(var data=atob(n.split(",")[1]),t=new Uint8Array(data.length),i=0;i0?(c[n._src]=e,h(n,e)):t()};"undefined"!=typeof Promise&&1===d.ctx.decodeAudioData.length?d.ctx.decodeAudioData(e).then(o).catch(t):d.ctx.decodeAudioData(e,o,t)},h=function(e,n){n&&!e._duration&&(e._duration=n.duration),0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue())},A=function(){if(d.usingWebAudio){try{"undefined"!=typeof AudioContext?d.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?d.ctx=new webkitAudioContext:d.usingWebAudio=!1}catch(e){d.usingWebAudio=!1}d.ctx||(d.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(d._navigator&&d._navigator.platform),n=d._navigator&&d._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),t=n?parseInt(n[1],10):null;if(e&&t&&t<9){var o=/safari/.test(d._navigator&&d._navigator.userAgent.toLowerCase());d._navigator&&!o&&(d.usingWebAudio=!1)}d.usingWebAudio&&(d.masterGain=void 0===d.ctx.createGain?d.ctx.createGainNode():d.ctx.createGain(),d.masterGain.gain.setValueAtTime(d._muted?0:d._volume,d.ctx.currentTime),d.masterGain.connect(d.ctx.destination)),d._setup()}};void 0===(o=function(){return{Howler:d,Howl:_}}.apply(n,[]))||(e.exports=o),n.Howler=d,n.Howl=_,void 0!==t?(t.HowlerGlobal=r,t.Howler=d,t.Howl=_,t.Sound=l):"undefined"!=typeof window&&(window.HowlerGlobal=r,window.Howler=d,window.Howl=_,window.Sound=l)}(),function(){"use strict";var e;HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){var n=this;if(!n.ctx||!n.ctx.listener)return n;for(var i=n._howls.length-1;i>=0;i--)n._howls[i].stereo(e);return n},HowlerGlobal.prototype.pos=function(e,n,t){var o=this;return o.ctx&&o.ctx.listener?(n="number"!=typeof n?o._pos[1]:n,t="number"!=typeof t?o._pos[2]:t,"number"!=typeof e?o._pos:(o._pos=[e,n,t],void 0!==o.ctx.listener.positionX?(o.ctx.listener.positionX.setTargetAtTime(o._pos[0],Howler.ctx.currentTime,.1),o.ctx.listener.positionY.setTargetAtTime(o._pos[1],Howler.ctx.currentTime,.1),o.ctx.listener.positionZ.setTargetAtTime(o._pos[2],Howler.ctx.currentTime,.1)):o.ctx.listener.setPosition(o._pos[0],o._pos[1],o._pos[2]),o)):o},HowlerGlobal.prototype.orientation=function(e,n,t,o,r,d){var _=this;if(!_.ctx||!_.ctx.listener)return _;var l=_._orientation;return n="number"!=typeof n?l[1]:n,t="number"!=typeof t?l[2]:t,o="number"!=typeof o?l[3]:o,r="number"!=typeof r?l[4]:r,d="number"!=typeof d?l[5]:d,"number"!=typeof e?l:(_._orientation=[e,n,t,o,r,d],void 0!==_.ctx.listener.forwardX?(_.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),_.ctx.listener.forwardY.setTargetAtTime(n,Howler.ctx.currentTime,.1),_.ctx.listener.forwardZ.setTargetAtTime(t,Howler.ctx.currentTime,.1),_.ctx.listener.upX.setTargetAtTime(o,Howler.ctx.currentTime,.1),_.ctx.listener.upY.setTargetAtTime(r,Howler.ctx.currentTime,.1),_.ctx.listener.upZ.setTargetAtTime(d,Howler.ctx.currentTime,.1)):_.ctx.listener.setOrientation(e,n,t,o,r,d),_)},Howl.prototype.init=(e=Howl.prototype.init,function(n){var t=this;return t._orientation=n.orientation||[1,0,0],t._stereo=n.stereo||null,t._pos=n.pos||null,t._pannerAttr={coneInnerAngle:void 0!==n.coneInnerAngle?n.coneInnerAngle:360,coneOuterAngle:void 0!==n.coneOuterAngle?n.coneOuterAngle:360,coneOuterGain:void 0!==n.coneOuterGain?n.coneOuterGain:0,distanceModel:void 0!==n.distanceModel?n.distanceModel:"inverse",maxDistance:void 0!==n.maxDistance?n.maxDistance:1e4,panningModel:void 0!==n.panningModel?n.panningModel:"HRTF",refDistance:void 0!==n.refDistance?n.refDistance:1,rolloffFactor:void 0!==n.rolloffFactor?n.rolloffFactor:1},t._onstereo=n.onstereo?[{fn:n.onstereo}]:[],t._onpos=n.onpos?[{fn:n.onpos}]:[],t._onorientation=n.onorientation?[{fn:n.onorientation}]:[],e.call(this,n)}),Howl.prototype.stereo=function(e,t){var o=this;if(!o._webAudio)return o;if("loaded"!==o._state)return o._queue.push({event:"stereo",action:function(){o.stereo(e,t)}}),o;var r=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===t){if("number"!=typeof e)return o._stereo;o._stereo=e,o._pos=[e,0,0]}for(var d=o._getSoundIds(t),i=0;i