North Dakota
8 Towns Perfect For Retirement In North Dakota
As one of thirteen states sharing a border with Canada, North Dakota gets its name from the American Souix name for “ally ” or “friend.” The “Peace Garden State” might be best known for its colder climate and wide-open landscapes, but in recent times, it has emerged as a surprising haven for retirees seeking a place to spend their golden years. For senior adults looking for close-knit communities, affordable living costs, and a rich historical heritage with numerous outdoor activities to explore, North Dakota delivers. The following eight communities are hidden gems perfect for retirees looking to find a tranquil and peaceful lifestyle far from the rigors and congestion of daily urban life.
Jamestown
Jamestown sits in Stutsman County in the south-central part of the state, with a population of over 15,000 residents. The town was formed in the 1870s and has a rich heritage as a railroad stop, supplying local ranchers with a place for commerce and community to help support their homesteads. The town boasts the North American Bison Discovery Center (formerly the National Buffalo Museum). This fantastic museum is dedicated to restoring the Buffalo through educational and preservation initiatives. The grandkids will love exploring the Frontier Village, with its original pioneer buildings filled with antiques and artifacts. In addition, the world’s largest buffalo sculpture makes for a memorable photo opp. History lovers will enjoy exploring the Stutsman County Memorial Museum, a free historical venue with several floors of interesting displays and stories about local culture.
The median home price is $229,000, and with very reasonable fuel and food costs, seniors will not have to worry about making ends meet. Residents enjoy a cost of living that is about 11% less than the national average and is about average compared to other areas of the state. Healthcare is supplied by Jamestown Regional Medical Center, a 25-bed critical care facility serving a nine-county area. When you visit, be sure to eat at the Buffalo Grill, an excellent dining establishment committed to offering affordable meals to locals and visitors alike. If you can stay during the summer, don’t miss the Buffalo Jam, North Dakota’s premier music festival.
Devil’s Lake
Devils Lake is aptly named for the large mineral-rich lake it borders in the northeastern part of the state. The region has plenty of stunning natural beauty and boasts an extensive list of outdoor activities to enjoy. Retirees can enjoy fishing, boating, and birdwatching around the lake, and Graham’s Island State Park has extra-large camping spots that are perfect for RVs. This community of just over 7,100 residents is close-knit, with very little traffic and a priceless small-town charm.
History enthusiasts will love exploring the Lake Region Heritage Center, housed in the 1910 old Post Office/Federal building. The downtown area features many local businesses, shops, and boutiques. If you visit, the best place for a meal is Old Main Street Cafe, with its eclectic array of old photos, weird collectibles, and delicious meals.
The average home price in Devil’s Lake is a reasonable $240,000, and the living cost is 17% less than the national average. Alexius Health, a 25-bed facility that can handle most medical situations, offers medical care. With nearly 22% of the town’s residents aged 65 and over, it is easy to see why this tranquil place might be the perfect retirement destination.
Minot
Minot is a city in Ward County in the north-central part of the state. With 47,000 residents, it is one of the largest cities in North Dakota and is known primarily for the Air Force Base, which sits fifteen miles north of town. The town began as a railroad hub supplying settlers who ventured across the northern Plains in search of their fortunes. Today, the community is home to Minot State University, serving about 2,500 students every academic year.
Retirees can explore the Scandinavian Heritage Park with its many artifacts and buildings or enjoy strolls along the Souris Valley Trail. The downtown area has many historic buildings and shops that lend to its small-town charm. The Roosevelt Park Zoo, with over 65 species of animals, is a nice way to spend a day with the grandkids when they visit. After visiting the menagerie, try the Starving Rooster downtown for great pizza or homemade sandwiches.
Owning a home in Minot will cost about $289,900, and living costs are just under the national average. One of the best things going for Minot is Trinity Health Regional Healthcare, which just opened a 167-bed medical campus in 2023.
Valley City
Valley City is known as the City of Bridges due to the eight historical bridges surrounding it. This historic town charms retirees with its picturesque landscapes and historic downtown. Residents will enjoy the Sheyenne River Valley Scenic Byway, which offers scenic drives, while Medicine Wheel Park provides a serene setting for relaxation overlooking the town. If you like hiking, the North Country National Scenic Hiking Trail is a must-see. The 4,800-mile trail stretches across eight states, offering several memorable once-in-a-lifetime excursions.
The median value for a home in Valley City is $292,000, with a living cost 14% less than the national average. Healthcare is provided by CHI Mercy Health, which operates a 25-bed hospital, with more specialized care offered in Fargo, which is about an hour away. When you visit, be sure to eat at the Bridges Bar and Grill, which has an excellent beer selection and tasty burgers.
Williston
Known for its robust economy fueled by the oil industry, Williston thrives in the northwest corner of the state, offering retirees a unique blend of urban amenities and small-town charm. This community has numerous outdoor recreational opportunities, from fishing on Lake Sakakawea to exploring the Maah Daah Hey Trail. History buffs will love exploring the Fort Union Trading Post, which operated as an important site for the fur trade between 1828 and 1867.
The downtown area has many boutiques, antique stores, and delicious dining establishments to choose from. Every Mother’s Day weekend, the town celebrates band day, where marching bands show their skills in a large parade and competition. The Williston Basin Air Show is one of the town’s premier events, happening every August.
The average price for a home is a stout $429,000, with home prices being driven up by the oil revenues brought into the community. (The town’s population nearly doubled during 2010 – 2020). Still, the living costs are about 6% less than the national average. Medical care is supplied by the Williston Medical Center and CHI-St. Alexius Healthcare.
Wahpeton
Wahpeton is a hidden gem for retirees seeking a serene and fulfilling lifestyle. Nestled along the Red River’s scenic banks in the state’s southeast corner, this charming town offers good schools, safe streets, and a caring community. Retirees can immerse themselves in the town’s rich history at the Chahinkapa Zoo and explore the fascinating exhibits at the Red Door Art Gallery. For nature enthusiasts, the nearby Chahinkapa Park provides picturesque walking trails and tranquil picnic spots. The town also boasts the Wahpeton Wahper, the world’s largest catfish. This unique work of art is a great photo op.
The median price for a home in Wahpeton is $296,000, with a living cost factor 22% less than the national average. In addition, healthcare options include the St Francis Medical Center, a critical care facility that can handle almost any medical situation. With its blend of local attractions, affordable housing, and access to quality medical care, Wahpeton, North Dakota, stands out as a prime destination for retirees seeking a fulfilling and comfortable retirement lifestyle.
Watford City
Watford City is located in McKenzie County on the western edge of North Dakota. It owes much of its recent development to the state’s oil boom, which has brought significant growth to the town over the last couple of decades. Watford City has seen a remarkable transformation in recent years, but with a solid infrastructure, a warm community spirit, and abundant recreational activities, this small town of 6,000 residents strives to be a great place to live.
Theodore Roosevelt National Park is a great destination for outdoor enthusiasts who enjoy hiking and wildlife viewing. The park is home to bison and wild horses, so keep your eyes peeled as you explore the park’s many hiking trails. It’s not uncommon to spot these majestic animals during your visit. The best place for a steak is Outlaws Bar and Grill, located on South Main.
The median home price is $375,000, and the living cost is slightly higher than the national average. With excellent access to medical care through McKenzie Healthcare System. Nearly 7.4% of the resident population is over 65, but more retirees are flocking to the area every year.
Mandan
Mandan is a small town sitting on the western side of the Upper Missouri River across from Bismarck. The community has a population of just under 25,000 residents and has a rich Native American heritage. History buffs will enjoy the Fort Abraham Lincoln State Park, where visitors can explore reconstructed military buildings and the iconic On-A-Slant Indian Village. Additionally, Mandan boasts an array of outdoor recreational opportunities, from fishing and boating on the river to hiking and camping in the nearby hills. With its picturesque landscapes and vibrant community spirit, Mandan provides residents with a tranquil retreat amidst the rugged beauty of the North Dakota plains.
With its close access to Bismark, there are ample healthcare options, including the Vibra Hospital of the Central Dakotas, a 41-bed critical care facility. The median home price is $370,000, with a living cost of 11% less than the national average. The downtown area has plenty of quaint shops and boutiques to venture through. If you need a place to eat, try Friends Family Restaurant, a local eatery serving home-cooked food and drinks.
In conclusion, North Dakota’s small towns offer retirees a tranquil haven to embrace a slower pace of life, connect with nature, and foster meaningful community ties. Whether you’re drawn to outdoor adventures, cultural attractions, or simply seeking a close-knit community, these eight towns provide the perfect backdrop for a fulfilling retirement lifestyle.
North Dakota
Wintering Well Series Back For Another Season At McKenzie Co. Heritage Park & North Dakota Oil Museum
For those who are looking for community interaction, interested in learning an old-fashioned skill, or just simply looking for a way to offset those winter blues, join McKenzie County Heritage Park & North Dakota Oil Museum, 904 2nd Ave. SW, Watford City, for another season of Wintering Well: Slow Down & Savor. Classes begin Jan. 2, 2026, and will continue the first Friday of each month through the winter, 5-7 p.m. CT..
The holiday season is a time where many remember and honor past traditions, though it can also be a time where the usual business of life gets ramped up. In this modern word, we are heavily inundated with outside pressures that tell us to “keep busy and work harder”. Technology can be a constant pull, drawing us away from quiet connection.
But, for many of the people who settled and lived in this region before us, life, the holidays and winter in general carried a different feeling altogether. The winter season was often a time that was looked forward to and folks seemed more willing to go along with nature rather than struggling against it. Winter is a time of rest and renewal. A time for life to slow, and strength and energy to be gathered for spring, summer and fall. With the cold winter outside their doors, people were content to sit by the fire, catch up with friends and family, and engage in pastimes that were both fun and functional.
These Hygge style Wintering Well evenings offer an opportunity to slow down and savor this time of year. Bring a crocheting, knitting or embroidery project or start a new one. Even if you have no experience with these skills, bring a crochet hook and some yarn and other participants can help you get started. In addition to learning new skills and practicing existing ones, there is good conversation to share, new relationships to foster and snacks will be served.
These classes are intended for adults, but tweens who want to learn are welcome to come along with their parents. There is no charge to join, but donations are always welcome.
Take a step back from technology and busy schedules to reconnect with the old-fashioned life at these cozy, creative sessions, and Winter Well this season.
For more information, visit McKenzie County Heritage Park & North Dakota Oil Museum’s Facebook page or call them at 701-842-6434.
North Dakota
‘Changed me and saved me’: AIR program in North Dakota helps those in recovery
EDITOR’S NOTE: For help with substance abuse or addiction, North Dakota residents can contact the All of Us In Recovery program at
allofusinrecovery.com
or the North Dakota Department of Human Services at
hhs.nd.gov/behavioral-health
. National help is also available at 1-800-662-4357.
FARGO — A special program for those battling addiction in North Dakota is finding huge successes with a state program called “All of Us In Recovery,” or AIR.
The proof can be found in the lives now changed because of the team approach.
${t||””}${r?`(${n}: ${r})`.replace(/s+/g,” “):””}
`;var u=n(2799),i=n(974);function o(e,t){const{message:n,code:o}=t,s=r(e.get(“id”),n,e.get(“localization”).errors.errorCode,o.toString()),a=e.get(“width”),c=e.get(“height”),l=(0,u.az)(s);return(0,i.oB)(l,{width:a.toString().indexOf(“%”)>0?a:`${a}px`,height:c.toString().indexOf(“%”)>0?c:`${c}px`}),l}},9926:(e,t,n)=>{“use strict”;n.d(t,{Z:()=>c});var r=n(1776),u=n(2799),i=n(974);const o=[];let s=-1;const a=()=>{(0,r.W)(s),s=(0,r.U)(()=>{o.forEach(e=>{e.view.updateBounds();const t=e.view.model.get(“containerWidth”);e.resized=e.width!==t,e.width=t}),o.forEach(e=>{e.contractElement.scrollLeft=2*e.width}),o.forEach(e=>{(0,i.oB)(e.expandChild,{width:e.width+1}),e.resized&&e.view.model.get(“visibility”)&&e.view.updateStyles()}),o.forEach(e=>{e.expandElement.scrollLeft=e.width+1}),o.forEach(e=>{e.resized&&e.view.checkResized()})})};class c{constructor(e,t,n){const r={display:”block”,position:”absolute”,top:0,left:0},s={width:”100%”,height:”100%”},c=(0,u.az)(”),l=c.firstChild,d=l.firstChild,f=l.nextSibling;(0,i.oB)([l,f],Object.assign({overflow:”auto”},r,s)),(0,i.oB)(c,Object.assign({},r,s)),this.expandElement=l,this.expandChild=d,this.contractElement=f,this.hiddenElement=c,this.element=e,this.view=t,this.model=n,this.width=0,this.resized=!1,e.firstChild?e.insertBefore(c,e.firstChild):e.appendChild(c),e.addEventListener(“scroll”,a,!0),o.push(this),a()}destroy(){if(this.view){const e=o.indexOf(this);-1!==e&&o.splice(e,1),this.element.removeEventListener(“scroll”,a,!0),this.element.removeChild(this.hiddenElement),this.view=this.model=null}}}},4671:(e,t,n)=>{“use strict”;n.d(t,{Z:()=>p});var r=n(6875);const u=[],i=[],o=[],s={};let a,c=!1;const l=(e,t)=>{for(let n=t.length;n–;){const r=t[n];if(e.target===r.getContainer()){r.setIntersection(e);break}}},d=()=>{u.forEach(e=>{e.model.set(“activeTab”,(0,r.Z)())})},f=(e,t)=>{const n=t.indexOf(e);-1!==n&&t.splice(n,1)},h=e=>{o.forEach(t=>{t(e)})};document.addEventListener(“visibilitychange”,d),document.addEventListener(“webkitvisibilitychange”,d);const p={add(e){u.push(e)},remove(e){f(e,u),document.removeEventListener(“visibilitychange”,d),document.removeEventListener(“webkitvisibilitychange”,d),window.removeEventListener(“scroll”,h)},addScrollHandler(e){c||(c=!0,window.addEventListener(“scroll”,h)),o.push(e)},removeScrollHandler(e){const t=o.indexOf(e);-1!==t&&o.splice(t,1)},addWidget(e){i.push(e)},removeWidget(e){f(e,i)},size:()=>u.length,observe(e){(()=>{const e=window.IntersectionObserver;a||(a=new e(e=>{if(null!=e&&e.length)for(let t=e.length;t–;){const n=e[t];l(n,u),l(n,i)}},{threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]}))})(),s[e.id]||(s[e.id]=!0,a.observe(e))},unobserve(e){a&&s[e.id]&&(delete s[e.id],a.unobserve(e))}}},2445:(e,t,n)=>{“use strict”;n.d(t,{ZP:()=>v,qG:()=>F});var r=n(5083),u=n(1569),i=n(6042),o=n(7034),s=n(6577),a=n(6599),c=n(462);const l=”__CONTEXTUAL__”,d=(e,t)=>{const n=e.querySelector(t);if(n)return n.getAttribute(“content”)};var f=n(4737),h=n.n(f),p=n(67),D=n(7164);const g=e=>”string”==typeof e&&/^//(?:content.jwplatform|cdn.jwplayer).com//.test(e),m=e=>`https:${e}`,y=e=>{const t=(0,c.Z)(e.edition),n=e.related,r=!t(“discovery”)||n!==Object(n),u=!n||”none”!==n.displayMode,i=n||{};let o=void 0===i.oncomplete?”none”:i.oncomplete,s=i.autoplaytimer;!1===o||e.repeat?o=”hide”:”none”===o&&(s=0);const a=”autoplay”===o&&s{if(t){e[t.client||(0,D.sb)(n)]=t,delete t.client}},F=e=>{const t=Object.assign({},e.plugins),n=(0,c.Z)(e.edition);if(n(“ads”)){const n=Object.assign({},e.advertising),r=n.client;if(r){t[(0,D.sb)(r)||r]=n,delete n.client}n.bids&&C(t,n.bids,”bidding”)}if(n(“jwpsrv”)){let n=e.analytics;n!==Object(n)&&(n={}),C(t,n,”jwpsrv”)}return C(t,e.ga,”gapro”),C(t,e.interactive,”interactive”),C(t,e.keepWatching,”keepWatching”),t},v=function(e,t){var c;let f=(0,r.ZP)(e,t);const D=f.key||s.default.key,C=new a.ZP(D),v=C.edition();if(“free”===C.edition()&&(f=Object.assign({skin:{active:”#ff0046″,timeslider:{progress:”none”}},logo:{position:”control-bar”,file:h()}},r.ke,(0,i.ei)(f,[“analytics”,”aspectratio”,”base”,”file”,”height”,”playlist”,”sources”,”timeSlider”,”width”]))),f.key=D,f.edition=v,f.error=C.error(),f.generateSEOMetadata=f.generateSEOMetadata||!1,null!=(c=f).enableVideoThumbnails||(c.enableVideoThumbnails=!0),”unlimited”===v){const e=(0,u.getScriptPath)(“jwplayer.js”);if(!e)throw new Error(“Error setting up player: Could not locate jwplayer.js script tag”);n.p=e}var A,E,b;if(f.related=y(f),f.ab&&(f.ab=(e=>{let t=e.ab;return t.clone&&(t=t.clone()),Object.keys(t.tests).forEach(n=>{t.tests[n].forEach(t=>{t.addConfig&&t.addConfig(e,t.selection)})}),t})(f)),f.plugins=F(f),A=f.playlist,(0,i.HD)(A)&&A.indexOf(l)>-1&&(f.playlist=((e,t)=>{var n;const r=null==e||null==e.querySelector||null==(n=e.querySelector(“title”))?void 0:n.textContent,u=d(e,’meta[property=”og:title”]’);let i=encodeURIComponent(u||r||””);const o=d(e,’meta[property=”og:description”]’)||d(e,’meta[name=”description”]’);return o&&(i+=`&page_description=${encodeURIComponent(o)}`),t.replace(l,i)})(document,f.playlist),f.contextual=!0),(0,o.isFileProtocol)()){const{playlist:e,t}=f;g(e)&&(f.playlist=m(e)),t&&g(t.file)&&(t.file=m(t.file))}return f.__abSendDomainToFeeds&&(b=f.playlist,/.jwplatform.com|.jwplayer.com/.test(b))&&(f.playlist=(E=f.playlist)+`${-1!==E.indexOf(“?”)?”&”:”?”}page_domain=${encodeURIComponent((0,p.X)())}`),f}},6577:(e,t,n)=>{“use strict”;n.d(t,{default:()=>re});n(5723);var r=n(1096),u=n.n(r);window.Promise||(window.Promise=u());var i=n(1569),o=n(6391),s=n(6593),a=n(670);const c={availableProviders:s.B,registerProvider:a.Z};var l=n(4425);c.registerPlugin=function(e,t,n){“jwpsrv”!==e&&(0,l.fo)(e,t,n)};const d=c;var f=n(6601),h=n(4742),p=n(8348),D=n(3399),g=n(1643),m=n(7411),y=n(328),C=n(7164);const F=[[“vastxml”,”adtag”,”schedules”]],v={googima:F,vast:F,cnx:F,jwx:F},A=(e,t)=>{const n=e.getPlugin(t),r=Object.keys(v);if(-1===r.indexOf(t))throw new Error(`destroyDynamicPlugin must be called with plugins with one of the following plugins: ${r.toString()}`);if(!n)return;if(n.resize&&e.off(“resize”,n.resizeHandler),delete e.plugins[t],n.destroy)try{n.destroy()}catch(t){e.utils.logger.debug(“jwplayer/plugins/dynamic-plugins: “,t)}const u=n.div;null!=u&&u.parentElement&&u.parentElement.removeChild(u),e.trigger(“pluginDestroyed”,{type:”pluginDestroyed”,name:t})},E=(e,t,n,r)=>{const u=(0,C.Nq)(t),i=Object.keys(v),o=((e,t)=>{if(t[e])return t[e];const n=(0,C.sb)(e);if(t[n])return t[n];const r=(0,C.Nq)(e);return t[r]?t[r]:{}})(t,r);if(-1===i.indexOf(u))throw new Error(`setupDynamicPlugin must be called with plugins with one of the following plugins: ${i.toString()}`);A(e,u);const s=((e,t,n)=>{const r=Object.assign({},e),u=Object.assign({},t),i=Object.keys(u).filter(e=>null===e);return i.forEach(e=>delete r[e]),i.forEach(e=>delete u[e]),n.forEach(e=>{e.some(e=>u[e])&&e.forEach(e=>delete r[e])}),Object.assign({},r,u)})(o,n,v[u]);return(0,l.Ve)(t,s,e)};var b=n(8494),w=n(6042),B=n(8762);let k=0;const j=function(e,t){const n=new D.ZP(t);return n.on(g.Rc,t=>{e._qoe.tick(“ready”),t.setupTime=e._qoe.between(“setup”,”ready”)}),n.on(“all”,(t,n)=>{e.trigger(t,n)}),n},P=function(e,t){const n=e.plugins,r=Object.keys(n).map(e=>{const t=n[e];return delete n[e],t}),u=e.utils.logger.child(“jwplayer/api/api”);t.get(“setupConfig”)&&e.trigger(“remove”),e.off(),t.playerDestroy(),r.forEach(e=>{if(e.reset)try{e.reset()}catch(e){u.debug(e)}else if(e.destroy)try{e.destroy()}catch(e){u.debug(e)}}),t.getContainer().removeAttribute(“data-jwplayer-id”)};function S(e){const t=++k,n=e.id||`player-${t}`,r=new m.Z,u={},i=new B.Z(`JWPlayer[${n}]`);let s=j(this,e);r.tick(“init”),e.setAttribute(“data-jwplayer-id”,n),Object.defineProperties(this,{id:{enumerable:!0,get:()=>n},uniqueId:{enumerable:!0,get:()=>t},plugins:{enumerable:!0,get:()=>u},_qoe:{enumerable:!0,get:()=>r},version:{enumerable:!0,get:()=>f.i},Events:{enumerable:!0,get:()=>y.ZP},utils:{enumerable:!0,get:()=>Object.assign({},b.Z,{logger:i})},_:{enumerable:!0,get:()=>w.ZP}}),Object.assign(this,{_events:{},setup(t){return r.clear(“ready”),r.tick(“setup”),s&&P(this,s),s=j(this,e),s.init(t,this),this.on(t.events,null,this)},remove(){return this.getPip()&&this.setPip(!1),function(e){for(let t=o.Z.length;t–;)if(o.Z[t].uniqueId===e.uniqueId){o.Z.splice(t,1);break}}(this),s&&P(this,s),Object.keys(u).forEach(e=>{delete u[e]}),this},qoe(){const e=s.getItemQoe();return{setupTime:this._qoe.between(“setup”,”ready”),firstFrame:e.getFirstFrame?e.getFirstFrame():null,player:this._qoe.dump(),item:e.dump()}},addCues(e){return Array.isArray(e)&&s.addCues(e),this},getAudioTracks:()=>s.getAudioTracks(),getBuffer:()=>s.get(“buffer”),getCaptions:()=>s.get(“captions”),getCaptionsList:()=>s.getCaptionsList(),getConfig:()=>s.getConfig(),getContainer:()=>s.getContainer(),getControls:()=>s.get(“controls”),getCues:()=>s.getCues(),getCurrentAudioTrack:()=>s.getCurrentAudioTrack(),getCurrentCaptions:()=>s.getCurrentCaptions(),getCurrentQuality:()=>s.getCurrentQuality(),getCurrentTime:()=>s.get(“currentTime”),getAbsolutePosition:()=>s.getAbsolutePosition(),getDuration:()=>s.get(“duration”),getEnvironment:()=>p,getFullscreen:()=>s.get(“fullscreen”),getHeight:()=>s.getHeight(),getItemMeta:()=>s.get(“itemMeta”)||{},getMute:()=>s.getMute(),getContainerPercentViewable:()=>s.get(“intersectionRatio”),getPercentViewable:()=>s.get(“visibility”),getPip:()=>s.get(“pip”),getPlaybackRate:()=>s.get(“playbackRate”),getPlaylist:()=>s.get(“playlist”),getPlaylistIndex:()=>s.get(“item”),getPlaylistItem(e){if(!b.Z.exists(e))return s.get(“playlistItem”);const t=this.getPlaylist();return t?t[e]:null},getPosition:()=>s.get(“position”),getProvider:()=>s.getProvider(),getQualityLevels:()=>s.getQualityLevels(),getSafeRegion:(e=!0)=>s.getSafeRegion(e),getState:()=>s.getState(),getStretching:()=>s.get(“stretching”),getContainerViewable:()=>s.get(“containerViewable”),getViewable:()=>s.get(“viewable”),getVisualQuality:()=>s.getVisualQuality(),getVolume:()=>s.get(“volume”),getWidth:()=>s.getWidth(),isReady:()=>s.isReady(),setCaptions(e){return s.setCaptions(e),this},setConfig(e){return s.setConfig(e),this},setControls(e){return s.setControls(e),this},setCurrentAudioTrack(e){s.setCurrentAudioTrack(e)},setCurrentCaptions(e){s.setCurrentCaptions(e)},setCurrentQuality(e){s.setCurrentQuality(e)},setFullscreen(e){return s.setFullscreen(e),this},setAllowFullscreen(e){return s.setAllowFullscreen(e),this},setMute(e){return s.setMute(e),this},setPip(e){return s.setPip(e),this},setPlaybackRate(e){return s.setPlaybackRate(e),this},setPlaylistItem(e,t){return s.setPlaylistItem(e,t),this},setCues(e){return Array.isArray(e)&&s.setCues(e),this},setVolume(e){return s.setVolume(e),this},load(e,t){return s.load(e,t),this},preload(e){return s.preload(e),this},play(e){return s.play(e),this},pause(e){return s.pause(e),this},playToggle(e){switch(this.getState()){case g.r0:case g.Kb:return this.pause(e);default:return this.play(e)}},seek(e,t){return s.seek(e,t),this},playlistItem(e,t){return s.playlistItem(e,t),this},playlistNext(e){return s.playlistNext(e),this},playlistPrev(e){return s.playlistPrev(e),this},next(e){return s.next(e),this},requestPip(e){return s.requestPip(e),this},castToggle(){return s.castToggle(),this},stopCasting(){return s.stopCasting(),this},requestCast(e){return s.requestCast(e),this},createInstream:()=>s.createInstream(),stop(){return s.stop(),this},resize(e,t){return s.resize(e,t),this},addButton(e,t,n,r,u){return s.addButton(e,t,n,r,u),this},removeButton(e){return s.removeButton(e),this},getMediaElement:()=>s.getMediaElement(),attachMedia(){return s.attachMedia(),this},detachMedia(){return s.detachMedia(),this},isBeforeComplete:()=>s.isBeforeComplete(),isBeforePlay:()=>s.isBeforePlay(),setPlaylistItemCallback(e,t){s.setItemCallback(e,t)},removePlaylistItemCallback(){s.setItemCallback(null)},getPlaylistItemPromise:e=>s.getItemPromise(e),getFloating:()=>Boolean(s.get(“isFloating”)),setFloating(e){s.setConfig({floating:{mode:e?”always”:”never”}})},getChapters:()=>s.getChapters(),getCurrentChapter:()=>s.getCurrentChapter(),setChapter:e=>s.setChapter(e),setupDynamicPlugin(e,t){return e?E(this,e,t,s.get(“plugins”)):Promise.resolve()},destroyDynamicPlugin(e){if(e)return A(this,e)}})}Object.assign(S.prototype,{on(e,t,n){return y.on.call(this,e,t,n)},once(e,t,n){return y.IH.call(this,e,t,n)},off(e,t,n){return y.S1.call(this,e,t,n)},trigger(e,t){return(t=w.ZP.isObject(t)?Object.assign({},t):{}).type=e,h.Z.debug?y.X$.call(this,e,t):y.wj.call(this,e,t)},getPlugin(e){return this.plugins[e]},addPlugin(e,t){this.plugins[e]=t,”function”==typeof t.addToPlayer&&(this.isReady()?t.addToPlayer.call(this,!0):this.on(“ready”,function(){t.addToPlayer.call(this,!1)})),t.resize&&this.on(“resize”,t.resizeHandler)},registerPlugin(e,t,n){(0,l.fo)(e,t,n)},getAdBlock:()=>!1,playAd(e){},pauseAd(e){},skipAd(){},setAdMacros(e){},getAdMacros(){},updateQueryJSAdTargeting(e){},getQueryJSAdTargeting(){}}),n.p=(0,i.loadFrom)();const O=e=>{for(let t=0;t