(()=>{function ve(n,e=300){let t;return(...r)=>{t&&clearTimeout(t),t=setTimeout(()=>{n.apply(this,r)},e)}}function ue(){let n=()=>{let r=window.outerWidth>375?"width=device-width,initial-scale=1":"width=375",i=document.querySelector('meta[name="viewport"]');i&&i.getAttribute("content")!==r&&i.setAttribute("content",r)},e=ve(n,250);window.addEventListener("resize",e,!1),n()}var J=class{constructor({modal:e,open:t,html:r,globalContainer:i,openFunc:o=()=>{},closeFunc:s=()=>{},close:a="",overlay:l=""}){if(this.html=r,this.modal=document.querySelector(e),this.container=document.querySelector(i),this.open=document.querySelectorAll(t),this.close=a?document.querySelectorAll(a):[],this.overlay=l?document.querySelectorAll(l):[],this.openFunc=o,this.closeFunc=s,!this.modal||!this.container){console.error("Modal.js: modal or container is not found");return}this.FOCUSABLE_ELEMENTS=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex^="-"])'],this.modalLinkArry=this.modal.querySelectorAll(this.FOCUSABLE_ELEMENTS.join(",")),this.focusLinkArry=document.querySelectorAll(this.FOCUSABLE_ELEMENTS.join(",")),this.isModalOpen=!1}init(){this.modalLinkArry?.forEach(e=>{e.setAttribute("tabindex","-1")}),this.modal.setAttribute("inert",""),this.modal.addEventListener("keydown",this.handleKeyDown),this.open.forEach(e=>{e.addEventListener("click",()=>this.isModalOpen?this.closeModal():this.openModal())}),this.close.length>0&&this.close.forEach(e=>{e.setAttribute("tabindex","-1"),e.setAttribute("aria-label","\u9589\u3058\u308B"),e.addEventListener("click",()=>this.closeModal())}),this.overlay.length>0&&this.overlay.forEach(e=>{e.addEventListener("click",t=>{t.target===t.currentTarget&&this.closeModal()},!1)}),this.modal.addEventListener("keydown",e=>this.handleKeyDown(e)),window.addEventListener("keydown",e=>{(e.key==="Escape"||e.key==="Esc")&&this.isModalOpen&&this.closeModal()})}handleKeyDown(e){let t=this.modalLinkArry[0],r=this.modalLinkArry[this.modalLinkArry.length-1];e.key==="Tab"&&(e.shiftKey?document.activeElement===t&&(e.preventDefault(),t instanceof HTMLElement&&t.focus()):document.activeElement===r&&(e.preventDefault(),t instanceof HTMLElement&&t.focus()))}openModal(){document.documentElement.classList.add(this.html),this.openFunc(),this.modal.setAttribute("aria-hidden","false"),this.modal.removeAttribute("inert"),this.container.setAttribute("aria-hidden","true"),this.container.setAttribute("inert",""),this.focusLinkArry.forEach(e=>{e.setAttribute("tabindex","-1")}),this.modalLinkArry.forEach(e=>{e.removeAttribute("tabindex")}),this.open.forEach(e=>{e.removeAttribute("tabindex"),e.setAttribute("aria-label","\u9589\u3058\u308B")}),this.close.length>0&&this.close.forEach(e=>{e.removeAttribute("tabindex")}),this.isModalOpen=!0}closeModal(){document.documentElement.classList.remove(this.html),this.closeFunc(),this.modal.setAttribute("aria-hidden","true"),this.modal.setAttribute("inert",""),this.container.setAttribute("aria-hidden","false"),this.container.removeAttribute("inert"),this.focusLinkArry.forEach(e=>{e.removeAttribute("tabindex")}),this.modalLinkArry.forEach(e=>{e.setAttribute("tabindex","-1")}),this.open.forEach(e=>{e.removeAttribute("tabindex"),e.setAttribute("aria-label","\u958B\u304F")}),this.close.length>0&&this.close.forEach(e=>{e.setAttribute("tabindex","-1")}),this.isModalOpen=!1}};function ye(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function ge(n){for(var e=1;e=0;--M){var b=this.tryEntries[M],A=b.completion;if(b.tryLoc==="root")return d("end");if(b.tryLoc<=this.prev){var L=t.call(b,"catchLoc"),I=t.call(b,"finallyLoc");if(L&&I){if(this.prev=0;--d){var M=this.tryEntries[d];if(M.tryLoc<=this.prev&&t.call(M,"finallyLoc")&&this.prev=0;--c){var d=this.tryEntries[c];if(d.finallyLoc===f)return this.complete(d.completion,d.afterLoc),v(d),k}},catch:function(f){for(var c=this.tryEntries.length-1;c>=0;--c){var d=this.tryEntries[c];if(d.tryLoc===f){var M=d.completion;if(M.type==="throw"){var b=M.arg;v(d)}return b}}throw new Error("illegal catch attempt")},delegateYield:function(f,c,d){return this.delegate={iterator:q(f),resultName:c,nextLoc:d},this.method==="next"&&(this.arg=void 0),k}},n}function be(n,e,t,r,i,o,s){try{var a=n[o](s),l=a.value}catch(u){t(u);return}a.done?e(l):Promise.resolve(l).then(r,i)}function W(n){return function(){var e=this,t=arguments;return new Promise(function(r,i){var o=n.apply(e,t);function s(l){be(o,r,i,s,a,"next",l)}function a(l){be(o,r,i,s,a,"throw",l)}s(void 0)})}}function Pe(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function we(n,e){for(var t=0;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Z(n,e,t){return Se()?Z=Reflect.construct.bind():Z=function(i,o,s){var a=[null];a.push.apply(a,o);var l=Function.bind.apply(i,a),u=new l;return s&&K(u,s.prototype),u},Z.apply(null,arguments)}function Re(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function ce(n){var e=typeof Map=="function"?new Map:void 0;return ce=function(r){if(r===null||!Re(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return Z(r,arguments,Y(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),K(i,r)},ce(n)}function ee(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Ie(n,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ee(n)}function _e(n){var e=Se();return function(){var r=Y(n),i;if(e){var o=Y(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ie(this,i)}}function qe(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Me(n){var e=qe(n,"string");return typeof e=="symbol"?e:String(e)}var Ae=typeof global<"u"&&{}.toString.call(global)==="[object global]";function ke(n,e){return n.indexOf(e.toLowerCase())===0?n:"".concat(e.toLowerCase()).concat(n.substr(0,1).toUpperCase()).concat(n.substr(1))}function De(n){return!!(n&&n.nodeType===1&&"nodeName"in n&&n.ownerDocument&&n.ownerDocument.defaultView)}function Ve(n){return!isNaN(parseFloat(n))&&isFinite(n)&&Math.floor(n)==n}function z(n){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(n)}function Oe(n){var e=/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/;return e.test(n)}function xe(n){for(var e=(n||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),t=(e&&e[1]||"").replace("player.",""),r=[".videoji.hk",".vimeo.work",".videoji.cn"],i=0,o=r;i0&&arguments[0]!==void 0?arguments[0]:{},e=n.id,t=n.url,r=e||t;if(!r)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(Ve(r))return"https://vimeo.com/".concat(r);if(z(r))return r.replace("http:","https:");throw e?new TypeError("\u201C".concat(e,"\u201D is not a valid video id.")):new TypeError("\u201C".concat(r,"\u201D is not a vimeo.com url."))}var Ee=function(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"addEventListener",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"removeEventListener",s=typeof t=="string"?[t]:t;return s.forEach(function(a){e[i](a,r)}),{cancel:function(){return s.forEach(function(l){return e[o](l,r)})}}},$e=typeof Array.prototype.indexOf<"u",We=typeof window<"u"&&typeof window.postMessage<"u";if(!Ae&&(!$e||!We))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var G=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ze(n,e){return e={exports:{}},n(e,e.exports),e.exports}(function(n){if(n.WeakMap)return;var e=Object.prototype.hasOwnProperty,t=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{value:1}).x===1}catch{}}(),r=function(o,s,a){t?Object.defineProperty(o,s,{configurable:!0,writable:!0,value:a}):o[s]=a};n.WeakMap=function(){function o(){if(this===void 0)throw new TypeError("Constructor WeakMap requires 'new'");if(r(this,"_id",a("_WeakMap")),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}r(o.prototype,"delete",function(u){if(s(this,"delete"),!i(u))return!1;var E=u[this._id];return E&&E[0]===u?(delete u[this._id],!0):!1}),r(o.prototype,"get",function(u){if(s(this,"get"),!!i(u)){var E=u[this._id];if(E&&E[0]===u)return E[1]}}),r(o.prototype,"has",function(u){if(s(this,"has"),!i(u))return!1;var E=u[this._id];return!!(E&&E[0]===u)}),r(o.prototype,"set",function(u,E){if(s(this,"set"),!i(u))throw new TypeError("Invalid value used as weak map key");var k=u[this._id];return k&&k[0]===u?(k[1]=E,this):(r(u,this._id,[u,E]),this)});function s(u,E){if(!i(u)||!e.call(u,"_id"))throw new TypeError(E+" method called on incompatible receiver "+typeof u)}function a(u){return u+"_"+l()+"."+l()}function l(){return Math.random().toString().substring(2)}return r(o,"_polyfill",!0),o}();function i(o){return Object(o)===o}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:G);var D=ze(function(n){(function(t,r,i){r[t]=r[t]||i(),n.exports&&(n.exports=r[t])})("Promise",G,function(){var t,r,i,o=Object.prototype.toString,s=typeof setImmediate<"u"?function(p){return setImmediate(p)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(p,m,g,T){return Object.defineProperty(p,m,{value:g,writable:!0,configurable:T!==!1})}}catch{t=function(m,g,T){return m[g]=T,m}}i=function(){var p,m,g;function T(h,v){this.fn=h,this.self=v,this.next=void 0}return{add:function(v,R){g=new T(v,R),m?m.next=g:p=g,m=g,g=void 0},drain:function(){var v=p;for(p=m=r=void 0;v;)v.fn.call(v.self),v=v.next}}}();function a(y,p){i.add(y,p),r||(r=s(i.drain))}function l(y){var p,m=typeof y;return y!=null&&(m=="object"||m=="function")&&(p=y.then),typeof p=="function"?p:!1}function u(){for(var y=0;y0&&a(u,m))}catch(g){S.call(new w(m),g)}}}function S(y){var p=this;p.triggered||(p.triggered=!0,p.def&&(p=p.def),p.msg=y,p.state=2,p.chain.length>0&&a(u,p))}function P(y,p,m,g){for(var T=0;T=8&&i<10&&(r=JSON.stringify(r)),n.element.contentWindow.postMessage(r,n.origin)}}function Ge(n,e){e=ne(e);var t=[],r;if(e.event){if(e.event==="error"){var i=te(n,e.data.method);i.forEach(function(s){var a=new Error(e.data.message);a.name=e.data.name,s.reject(a),re(n,e.data.method,s)})}t=te(n,"event:".concat(e.event)),r=e.data}else if(e.method){var o=Be(n,e.method);o&&(t.push(o),r=e.value)}t.forEach(function(s){try{if(typeof s=="function"){s.call(n,r);return}s.resolve(r)}catch{}})}var He=["airplay","audio_tracks","audiotrack","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","dnt","end_time","fullscreen","height","id","initial_quality","interactive_params","keyboard","loop","maxheight","max_quality","maxwidth","min_quality","muted","play_button_position","playsinline","portrait","preload","progress_bar","quality","quality_selector","responsive","skipping_forward","speed","start_time","texttrack","thumbnail_id","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function Ce(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return He.reduce(function(t,r){var i=n.getAttribute("data-vimeo-".concat(r));return(i||i==="")&&(t[r]=i===""?1:i),t},e)}function le(n,e){var t=n.html;if(!e)throw new TypeError("An element must be provided");if(e.getAttribute("data-vimeo-initialized")!==null)return e.querySelector("iframe");var r=document.createElement("div");return r.innerHTML=t,e.appendChild(r.firstChild),e.setAttribute("data-vimeo-initialized","true"),e.querySelector("iframe")}function je(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;return new Promise(function(r,i){if(!z(n))throw new TypeError("\u201C".concat(n,"\u201D is not a vimeo.com url."));var o=xe(n),s="https://".concat(o,"/api/oembed.json?url=").concat(encodeURIComponent(n));for(var a in e)e.hasOwnProperty(a)&&(s+="&".concat(a,"=").concat(encodeURIComponent(e[a])));var l="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;l.open("GET",s,!0),l.onload=function(){if(l.status===404){i(new Error("\u201C".concat(n,"\u201D was not found.")));return}if(l.status===403){i(new Error("\u201C".concat(n,"\u201D is not embeddable.")));return}try{var u=JSON.parse(l.responseText);if(u.domain_status_code===403){le(u,t),i(new Error("\u201C".concat(n,"\u201D is not embeddable.")));return}r(u)}catch(E){i(E)}},l.onerror=function(){var u=l.status?" (".concat(l.status,")"):"";i(new Error("There was an error fetching the embed code from Vimeo".concat(u,".")))},l.send()})}function Qe(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,e=[].slice.call(n.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),t=function(i){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(i))};e.forEach(function(r){try{if(r.getAttribute("data-vimeo-defer")!==null)return;var i=Ce(r),o=Le(i);je(o,i,r).then(function(s){return le(s,r)}).catch(t)}catch(s){t(s)}})}function Ye(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoPlayerResizeEmbeds_){window.VimeoPlayerResizeEmbeds_=!0;var e=function(r){if(z(r.origin)&&!(!r.data||r.data.event!=="spacechange")){for(var i=n.querySelectorAll("iframe"),o=0;o0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoSeoMetadataAppended){window.VimeoSeoMetadataAppended=!0;var e=function(r){if(z(r.origin)){var i=ne(r.data);if(!(!i||i.event!=="ready"))for(var o=n.querySelectorAll("iframe"),s=0;s0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam=!0;var e=function(i){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(i))},t=function(i){if(z(i.origin)){var o=ne(i.data);if(!(!o||o.event!=="ready"))for(var s=n.querySelectorAll("iframe"),a=function(){var E=s[l],k=E.contentWindow===i.source;if(Oe(E.src)&&k){var S=new fe(E);S.getVideoId().then(function(P){var w=new RegExp("[?&]vimeo_t_".concat(P,"=([^&#]*)")).exec(window.location.href);if(w&&w[1]){var C=decodeURI(w[1]);S.setCurrentTime(C)}}).catch(e)}},l=0;l2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;return Pe(this,t),o=e.call(this),X(ee(o),"logger",void 0),X(ee(o),"speedAdjustment",0),X(ee(o),"adjustSpeed",function(){var l=W(F().mark(function u(E,k){var S;return F().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(o.speedAdjustment!==k){w.next=2;break}return w.abrupt("return");case 2:return w.next=4,E.getPlaybackRate();case 4:return w.t0=w.sent,w.t1=o.speedAdjustment,w.t2=w.t0-w.t1,w.t3=k,S=w.t2+w.t3,o.log("New playbackRate: ".concat(S)),w.next=12,E.setPlaybackRate(S);case 12:o.speedAdjustment=k;case 13:case"end":return w.stop()}},u)}));return function(u,E){return l.apply(this,arguments)}}()),o.logger=a,o.init(i,r,ge(ge({},Ze),s)),o}return Te(t,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:function(){var r=W(F().mark(function o(s,a,l){var u=this,E,k,S;return F().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.waitForTOReadyState(s,"open");case 2:if(l.role!=="viewer"){w.next=10;break}return w.next=5,this.updatePlayer(s,a,l);case 5:E=Ee(s,"change",function(){return u.updatePlayer(s,a,l)}),k=this.maintainPlaybackPosition(s,a,l),this.addEventListener("disconnect",function(){k.cancel(),E.cancel()}),w.next=14;break;case 10:return w.next=12,this.updateTimingObject(s,a);case 12:S=Ee(a,["seeked","play","pause","ratechange"],function(){return u.updateTimingObject(s,a)},"on","off"),this.addEventListener("disconnect",function(){return S.cancel()});case 14:case"end":return w.stop()}},o,this)}));function i(o,s,a){return r.apply(this,arguments)}return i}()},{key:"updateTimingObject",value:function(){var r=W(F().mark(function o(s,a){return F().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.t0=s,u.next=3,a.getCurrentTime();case 3:return u.t1=u.sent,u.next=6,a.getPaused();case 6:if(!u.sent){u.next=10;break}u.t2=0,u.next=13;break;case 10:return u.next=12,a.getPlaybackRate();case 12:u.t2=u.sent;case 13:u.t3=u.t2,u.t4={position:u.t1,velocity:u.t3},u.t0.update.call(u.t0,u.t4);case 16:case"end":return u.stop()}},o)}));function i(o,s){return r.apply(this,arguments)}return i}()},{key:"updatePlayer",value:function(){var r=W(F().mark(function o(s,a,l){var u,E,k;return F().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(u=s.query(),E=u.position,k=u.velocity,typeof E=="number"&&a.setCurrentTime(E),typeof k!="number"){P.next=25;break}if(k!==0){P.next=11;break}return P.next=6,a.getPaused();case 6:if(P.t0=P.sent,P.t0!==!1){P.next=9;break}a.pause();case 9:P.next=25;break;case 11:if(!(k>0)){P.next=25;break}return P.next=14,a.getPaused();case 14:if(P.t1=P.sent,P.t1!==!0){P.next=19;break}return P.next=18,a.play().catch(function(){var w=W(F().mark(function C(O){return F().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(!(O.name==="NotAllowedError"&&l.autoPlayMuted)){y.next=5;break}return y.next=3,a.setMuted(!0);case 3:return y.next=5,a.play().catch(function(p){return console.error("Couldn't play the video from TimingSrcConnector. Error:",p)});case 5:case"end":return y.stop()}},C)}));return function(C){return w.apply(this,arguments)}}());case 18:this.updatePlayer(s,a,l);case 19:return P.next=21,a.getPlaybackRate();case 21:if(P.t2=P.sent,P.t3=k,P.t2===P.t3){P.next=25;break}a.setPlaybackRate(k);case 25:case"end":return P.stop()}},o,this)}));function i(o,s,a){return r.apply(this,arguments)}return i}()},{key:"maintainPlaybackPosition",value:function(i,o,s){var a=this,l=s.allowedDrift,u=s.maxAllowedDrift,E=s.minCheckInterval,k=s.maxRateAdjustment,S=s.maxTimeToCatchUp,P=Math.min(S,Math.max(E,u))*1e3,w=function(){var O=W(F().mark(function j(){var y,p,m,g,T;return F().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(v.t0=i.query().velocity===0,v.t0){v.next=6;break}return v.next=4,o.getPaused();case 4:v.t1=v.sent,v.t0=v.t1===!0;case 6:if(!v.t0){v.next=8;break}return v.abrupt("return");case 8:return v.t2=i.query().position,v.next=11,o.getCurrentTime();case 11:if(v.t3=v.sent,y=v.t2-v.t3,p=Math.abs(y),a.log("Drift: ".concat(y)),!(p>u)){v.next=22;break}return v.next=18,a.adjustSpeed(o,0);case 18:o.setCurrentTime(i.query().position),a.log("Resync by currentTime"),v.next=29;break;case 22:if(!(p>l)){v.next=29;break}return m=p/S,g=k,T=m1&&arguments[1]!==void 0?arguments[1]:{};if(Pe(this,n),window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),typeof document<"u"&&typeof e=="string"&&(e=document.getElementById(e)),!De(e))throw new TypeError("You must pass either a valid element or a valid id.");if(e.nodeName!=="IFRAME"){var i=e.querySelector("iframe");i&&(e=i)}if(e.nodeName==="IFRAME"&&!z(e.getAttribute("src")||""))throw new Error("The player element passed isn\u2019t a Vimeo embed.");if(U.has(e))return U.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";var o=new D(function(a,l){if(t._onMessage=function(k){if(!(!z(k.origin)||t.element.contentWindow!==k.source)){t.origin==="*"&&(t.origin=k.origin);var S=ne(k.data),P=S&&S.event==="error",w=P&&S.data&&S.data.method==="ready";if(w){var C=new Error(S.data.message);C.name=S.data.name,l(C);return}var O=S&&S.event==="ready",j=S&&S.method==="ping";if(O||j){t.element.setAttribute("data-ready","true"),a();return}Ge(t,S)}},t._window.addEventListener("message",t._onMessage),t.element.nodeName!=="IFRAME"){var u=Ce(e,r),E=Le(u);je(E,u,e).then(function(k){var S=le(k,e);return t.element=S,t._originalElement=e,Ue(e,S),U.set(t.element,t),k}).catch(l)}});if(se.set(this,o),U.set(this.element,this),this.element.nodeName==="IFRAME"&&$(this,"ping"),N.isEnabled){var s=function(){return N.exit()};this.fullscreenchangeHandler=function(){N.isFullscreen?Q(t,"event:exitFullscreen",s):re(t,"event:exitFullscreen",s),t.ready().then(function(){$(t,"fullscreenchange",N.isFullscreen)})},N.on("fullscreenchange",this.fullscreenchangeHandler)}return this}return Te(n,[{key:"callMethod",value:function(t){for(var r=this,i=arguments.length,o=new Array(i>1?i-1:0),s=1;s1&&arguments[1]!==void 0?arguments[1]:{};return this.callMethod("addCuePoint",{time:t,data:r})}},{key:"removeCuePoint",value:function(t){return this.callMethod("removeCuePoint",t)}},{key:"enableTextTrack",value:function(t,r){if(!t)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:t,kind:r})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return N.isEnabled?N.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return N.isEnabled?N.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return N.isEnabled?D.resolve(N.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"remotePlaybackPrompt",value:function(){return this.callMethod("remotePlaybackPrompt")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var t=this;return new D(function(r){if(se.delete(t),U.delete(t.element),t._originalElement&&(U.delete(t._originalElement),t._originalElement.removeAttribute("data-vimeo-initialized")),t.element&&t.element.nodeName==="IFRAME"&&t.element.parentNode&&(t.element.parentNode.parentNode&&t._originalElement&&t._originalElement!==t.element.parentNode?t.element.parentNode.parentNode.removeChild(t.element.parentNode):t.element.parentNode.removeChild(t.element)),t.element&&t.element.nodeName==="DIV"&&t.element.parentNode){t.element.removeAttribute("data-vimeo-initialized");var i=t.element.querySelector("iframe");i&&i.parentNode&&(i.parentNode.parentNode&&t._originalElement&&t._originalElement!==i.parentNode?i.parentNode.parentNode.removeChild(i.parentNode):i.parentNode.removeChild(i))}t._window.removeEventListener("message",t._onMessage),N.isEnabled&&N.off("fullscreenchange",t.fullscreenchangeHandler),r()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(t){return this.set("autopause",t)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(t){return this.set("cameraProps",t)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"getColors",value:function(){return D.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(t){return this.set("color",t)}},{key:"setColors",value:function(t){if(!Array.isArray(t))return new D(function(o,s){return s(new TypeError("Argument must be an array."))});var r=new D(function(o){return o(null)}),i=[t[0]?this.set("colorOne",t[0]):r,t[1]?this.set("colorTwo",t[1]):r,t[2]?this.set("colorThree",t[2]):r,t[3]?this.set("colorFour",t[3]):r];return D.all(i)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(t){return this.set("currentTime",t)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(t){return this.set("loop",t)}},{key:"setMuted",value:function(t){return this.set("muted",t)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(t){return this.set("playbackRate",t)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}},{key:"setQuality",value:function(t){return this.set("quality",t)}},{key:"getRemotePlaybackAvailability",value:function(){return this.get("remotePlaybackAvailability")}},{key:"getRemotePlaybackState",value:function(){return this.get("remotePlaybackState")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(t){return this.set("volume",t)}},{key:"setTimingSrc",value:function(){var e=W(F().mark(function r(i,o){var s=this,a;return F().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(i){u.next=2;break}throw new TypeError("A Timing Object must be provided.");case 2:return u.next=4,this.ready();case 4:return a=new et(this,i,o),$(this,"notifyTimingObjectConnect"),a.addEventListener("disconnect",function(){return $(s,"notifyTimingObjectDisconnect")}),u.abrupt("return",a);case 8:case"end":return u.stop()}},r,this)}));function t(r,i){return e.apply(this,arguments)}return t}()}]),n}();Ae||(N=Xe(),Qe(),Ye(),Ke(),Je());var Fe=fe;function de({openSelector:n,closeSelector:e}){let t=document.querySelectorAll(n),r=document.querySelectorAll(e),i=document.getElementById("vimeoIframe"),o=new Fe(i);t.forEach(a=>{a.addEventListener("click",()=>{let l=a.dataset.vimeoUrl,u=a.dataset.popupId,E=document.getElementById(u);if(!l||!E||!i){console.error("Vimeo URL \u307E\u305F\u306F popup \u8981\u7D20\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093");return}let k=i.getAttribute("src")||"",S=l.includes("?")?`${l}&autoplay=1&muted=1`:`${l}?autoplay=1&muted=1`;k.includes(l)?o.play():i.src=S,E.classList.add("is-active")})});function s(a){!a||!i||(a.classList.remove("is-active"),a.addEventListener("transitionend",function l(u){u.propertyName==="opacity"&&(o.pause(),a.removeEventListener("transitionend",l))}))}r.forEach(a=>{a.addEventListener("click",()=>{let l=a.dataset.popupId,u=document.getElementById(l);s(u)})}),document.querySelectorAll(".js-vimeo").forEach(a=>{a.addEventListener("click",()=>{s(a)});let l=a.querySelector(".js-vimeo-inner");l&&l.addEventListener("click",u=>u.stopPropagation())})}function he(){var n={},e=/iPhone/i,t=/iPod/i,r=/iPad/i,i=/\biOS-universal(?:.+)Mac\b/i,o=/\bAndroid(?:.+)Mobile\b/i,s=/Android/i,a=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,l=/Silk/i,u=/Windows Phone/i,E=/\bWindows(?:.+)ARM\b/i,k=/BlackBerry/i,S=/BB10/i,P=/Opera Mini/i,w=/\b(CriOS|Chrome)(?:.+)Mobile/i,C=/Mobile(?:.+)Firefox\b/i,O=/Mac|iPhone|iPod|iPad/i,j=/Chrome|Android|CriOS|FxiOS|EdgiOS/i,y=/Safari/i;function p(g){return function(T){return T.test(g)}}function m(g){var T=(g=g||(typeof navigator<"u"?navigator.userAgent:"")).split("[FBAN");T[1]!==void 0&&(g=T[0]),(T=g.split("Twitter"))[1]!==void 0&&(g=T[0]);var h=p(g),v={apple:{phone:h(e)&&!h(u),ipod:h(t),tablet:!h(e)&&h(r)&&!h(u),universal:h(i),device:(h(e)||h(t)||h(r))&&!h(u)},amazon:{phone:h(a),tablet:!h(a)&&h(l),device:h(a)||h(l)},android:{phone:!h(u)&&h(a)||!h(u)&&h(o),tablet:!h(u)&&!h(a)&&!h(o)&&(h(l)||h(s)),device:!h(u)&&(h(a)||h(l)||h(o)||h(s))||h(/\bokhttp\b/i)},windows:{phone:h(u),tablet:h(E),device:h(u)||h(E)},mobile:{blackberry:h(k),blackberry10:h(S),opera:h(P),firefox:h(C),chrome:h(w),device:h(k)||h(S)||h(P)||h(C)||h(w)},any:!1,phone:!1,tablet:!1,safari:h(O)&&h(y)&&!h(j)};return v.any=v.apple.universal||v.apple.device||v.android.device||v.windows.device||v.mobile.device,v.phone=v.apple.phone||v.android.phone||v.windows.phone,v.tablet=v.apple.tablet||v.android.tablet||v.windows.tablet,v}return n=m(),n}function pe(n,e){let t=document.querySelector(n);t&&fetch(e).then(r=>{if(!r.ok)throw new Error(`HTTP error! Status: ${r.status}`);return r.text()}).then(r=>{t.innerHTML=r}).catch(r=>{console.error(`Error loading ${e} into ${n}:`,r)})}var ie=document.documentElement,oe=he();function tt(){document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll("br").forEach(i=>{i.setAttribute("aria-hidden","true")});let e=document.documentElement.clientWidth,t=()=>{document.documentElement.style.setProperty("--vw",`${e}px`),document.documentElement.style.setProperty("--vh",`${document.documentElement.clientHeight}px`)};t(),new ResizeObserver(()=>{e!==document.documentElement.clientWidth&&(e=document.documentElement.clientWidth,t())}).observe(document.documentElement),(oe?.phone||oe?.tablet)&&ie.classList.add("is-touchable"),oe?.apple.device&&ie.classList.add("is-ios"),oe?.safari&&ie.classList.add("is-safari"),setTimeout(()=>{document.body.classList.remove("preload"),setTimeout(()=>{ie.classList.add("is-loaded")},200)},0),pe("#js-menu","/public/include/menu.html")}),window.addEventListener("load",()=>{setTimeout(()=>{new J({globalContainer:".js-container",html:"is-menu-open",modal:".js-menu",open:".js-menu-open",close:".js-menu-close"}).init(),de({openSelector:".js-popup-menu-vimeo-open",closeSelector:".js-popup-menu-vimeo-close",popupId:"popup-menu-vimeo"})},500)})}function rt(){document.addEventListener("DOMContentLoaded",()=>{ue()}),window.addEventListener("load",()=>{})}function me(){tt(),rt()}me();})(); /*! Bundled license information: @vimeo/player/dist/player.es.js: (*! @vimeo/player v2.29.0 | (c) 2025 Vimeo | MIT License | https://github.com/vimeo/player.js *) (*! * weakmap-polyfill v2.0.4 - ECMAScript6 WeakMap polyfill * https://github.com/polygonplanet/weakmap-polyfill * Copyright (c) 2015-2021 polygonplanet * @license MIT *) (*! Native Promise Only v0.8.1 (c) Kyle Simpson MIT License: http://getify.mit-license.org *) */