Branchwell

Watch Encyclopedia / website · watchencyclopedia.org / x / five-thousand-years / assets / index-CvcjrG9z.js

1(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function e(e){return e+1e-5}function t(){let{userAgent:e,maxTouchPoints:t}=navigator;return/iP(hone|ad|od)/.test(e)||/Macintosh/.test(e)&&t>1}function n(){let{userAgent:e}=navigator;return/AppleWebKit/.test(e)&&!/Chrom(e|ium)\/|Edg\/|Android/.test(e)}var r=e=>e!==null&&Number.isFinite(e)&&e>0;function i(e){let t=e.clipEndsSeconds.filter(e=>e===null).length;if(r(e.authoredDurationSeconds))return{seconds:e.authoredDurationSeconds,source:`authored`,pendingClips:t};let n=e.clipEndsSeconds.filter(r);return n.length>0?{seconds:Math.max(...n),source:`derived`,pendingClips:t}:{seconds:null,source:`unresolved`,pendingClips:t,reason:t>0?`every clip's length is still pending`:`no authored duration and no clip with a length`}}var a=`http://www.w3.org/1999/xhtml`;function o(e){return e!=null&&e.nodeType===1}function s(e){return o(e)&&e.namespaceURI===a}function c(e,t){return s(e)&&e.localName===t}function l(e){return c(e,`video`)}function u(e){return c(e,`audio`)}function d(e){return l(e)||u(e)}function f(e){return c(e,`img`)}function p(e){if(e==null||e.trim()===``)return null;let t=Number.parseInt(e,10);return Number.isFinite(t)&&t>0?t:null}function m(e=document){let t=e.querySelector(`[data-composition-id][data-root="true"]`);return s(t)?t:e.querySelector(`[data-composition-id]`)}var h=Object.freeze({start:`data-start`,duration:`data-duration`,trackIndex:`data-track-index`,derivedEnd:`data-end`,legacyTrack:`data-layer`});Object.freeze([h.start,h.duration,h.trackIndex]),Object.freeze([h.derivedEnd]),Object.freeze([h.derivedEnd,h.legacyTrack]);function g(e){if(e==null||e.trim()===``)return null;let t=Number(e);return Number.isFinite(t)?t:null}var _=e=>{let t=g(e);return t!==null&&t>=0?t:null};function v(e){return _(e(`data-playback-start`))??_(e(`data-media-start`))??0}var y=.1,b=10;function x(e){return Number.isFinite(e)&&e>0?Math.max(y,Math.min(b,e)):1}function S(e,t=1){let n=Number.parseFloat(e(`data-playback-rate`)??``);return x(Number.isFinite(n)&&n>0?n:t)}function C(e){let t=g(e(`data-duration`));return t!==null&&t>0?t:null}function w(e,t){let n=C(e);if(n!==null)return n;let r=g(e(`data-end`));return r===null?null:r-t}var T=3;function E(e,t,n){return Number.isFinite(e)?Math.max(0,e-t)/x(n):null}function D(e){let{tag:t,authoredDurationSeconds:n,sourceDurationSeconds:r,mediaStartSeconds:i,playbackRate:a}=e;if(n!==null&&n>0)return{seconds:n,source:`authored`};if(t===`img`)return{seconds:T,source:`default`};if(r===null)return{seconds:null,source:`pending`,reason:`source duration not yet probed`};let o=E(r,i,a);return o===null?{seconds:null,source:`pending`,reason:`source reported a non-finite duration`}:{seconds:o,source:`media`}}var O=(e=`frequency`,t=`Frequency`,n=1e3,r=20,i=2e4)=>({kind:`number`,key:e,label:t,unit:`Hz`,min:r,max:i,step:1,default:n,scale:`log`,automatable:!0}),k=(e=.707,t=`Bandwidth: higher is narrower.`)=>({kind:`number`,key:`q`,label:`Q`,unit:``,min:.1,max:20,step:.01,default:e,scale:`log`,automatable:!0,hint:t}),A=(e=-40,t=40,n=0)=>({kind:`number`,key:`gain`,label:`Gain`,unit:`dB`,min:e,max:t,step:.1,default:n,automatable:!0}),j={kind:`enum`,key:`poles`,label:`Slope`,options:[{value:`1`,label:`6 dB/oct`},{value:`2`,label:`12 dB/oct`}],default:`2`,hint:`Two poles is the usual biquad; one pole is gentler.`},M=[{id:`gain`,label:`Gain`,group:`dynamics`,description:`Raise or lower the whole signal. Automate it to duck under something else.`,params:[A(-60,12,0)],web:`gain-node`},{id:`peaking`,label:`Peaking EQ`,group:`filter`,description:`Boost or cut a band, leaving everything either side alone.`,params:[O(`frequency`,`Frequency`,1e3),A(-40,40,0),k(1)],web:`biquad-peaking`},{id:`lowshelf`,label:`Low Shelf`,group:`filter`,description:`Lift or drop everything below the corner frequency.`,params:[O(`frequency`,`Frequency`,200,20,2e3),A(-40,40,0)],web:`biquad-lowshelf`},{id:`highshelf`,label:`High Shelf`,group:`filter`,description:`Lift or drop everything above the corner frequency.`,params:[O(`frequency`,`Frequency`,4e3,500,2e4),A(-40,40,0)],web:`biquad-highshelf`},{id:`highpass`,label:`High-pass`,group:`filter`,description:`Remove low frequencies: the usual fix for rumble on a voice.`,params:[O(`frequency`,`Cutoff`,300,20,2e4),k(.707),j],web:`biquad-highpass`},{id:`lowpass`,label:`Low-pass`,group:`filter`,description:`Remove high frequencies, which darkens or muffles a track.`,params:[O(`frequency`,`Cutoff`,8e3,100,2e4),k(.707),j],web:`biquad-lowpass`},{id:`compressor`,label:`Compressor`,group:`dynamics`,description:`Pull loud parts down so the quiet ones can come up.`,params:[{kind:`number`,key:`threshold`,label:`Threshold`,unit:`dB`,min:-60,max:0,step:.5,default:-24,hint:`Level above which the compressor starts working.`},{kind:`number`,key:`ratio`,label:`Ratio`,unit:`:1`,min:1,max:20,step:.1,default:4},{kind:`number`,key:`attack`,label:`Attack`,unit:`ms`,min:.01,max:2e3,step:.1,default:20,scale:`log`},{kind:`number`,key:`release`,label:`Release`,unit:`ms`,min:.01,max:9e3,step:1,default:250,scale:`log`},{kind:`number`,key:`knee`,label:`Knee`,unit:``,min:1,max:8,step:.01,default:2.83,hint:`1 is a hard corner; higher eases into it.`},{kind:`number`,key:`makeup`,label:`Makeup`,unit:`dB`,min:0,max:36,step:.1,default:0},{kind:`number`,key:`mix`,label:`Mix`,unit:``,min:0,max:1,step:.01,default:1,hint:`Below 1 blends the dry signal back in.`}],web:`worklet-compressor`},{id:`limiter`,label:`Limiter`,group:`dynamics`,description:`Peak limiter that follows the signal's level. It has no lookahead, so a fast peak or an inter-sample peak can pass the ceiling; use the true-peak limiter for a delivery limit.`,params:[{kind:`number`,key:`limit`,label:`Ceiling`,unit:`dB`,min:-24,max:0,step:.1,default:-1},{kind:`number`,key:`attack`,label:`Attack`,unit:`ms`,min:.1,max:80,step:.1,default:5},{kind:`number`,key:`release`,label:`Release`,unit:`ms`,min:1,max:8e3,step:1,default:50,scale:`log`},{kind:`number`,key:`level_out`,label:`Output`,unit:`dB`,min:-24,max:24,step:.1,default:0}],web:`worklet-limiter`},{id:`truepeak`,label:`True-peak limiter`,group:`dynamics`,description:`Lookahead limiter that holds a 4x estimate of the inter-sample peak at a dBTP ceiling; full-band noise can land up to about 1.7 dB above it. Adds lookahead plus about 0.3 ms of latency.`,params:[{kind:`number`,key:`ceiling`,label:`Ceiling`,unit:`dBTP`,min:-24,max:0,step:.1,default:-1,hint:`Target true peak, measured on a 4x oversampled signal. Dense full-band sound can end up to about 1.7 dB above it.`},{kind:`number`,key:`lookahead`,label:`Lookahead`,unit:`ms`,min:.5,max:10,step:.1,default:3,hint:`How far ahead the gain starts falling. Longer is smoother and adds the same latency.`},{kind:`number`,key:`release`,label:`Release`,unit:`ms`,min:10,max:2e3,step:1,default:80,scale:`log`}],web:`worklet-truepeak`},{id:`gate`,label:`Noise Gate`,group:`dynamics`,description:`Silence the track when it drops below the threshold.`,params:[{kind:`number`,key:`threshold`,label:`Threshold`,unit:`dB`,min:-80,max:0,step:.5,default:-35},{kind:`number`,key:`range`,label:`Range`,unit:`dB`,min:-80,max:0,step:.5,default:-24,hint:`How far down the gate pulls when closed.`},{kind:`number`,key:`ratio`,label:`Ratio`,unit:`:1`,min:1,max:20,step:.1,default:10},{kind:`number`,key:`attack`,label:`Attack`,unit:`ms`,min:.01,max:9e3,step:.1,default:1,scale:`log`},{kind:`number`,key:`release`,label:`Release`,unit:`ms`,min:.01,max:9e3,step:1,default:100,scale:`log`},{kind:`number`,key:`knee`,label:`Knee`,unit:``,min:1,max:8,step:.01,default:2.83}],web:`worklet-gate`},{id:`saturate`,label:`Saturation`,group:`nonlinear`,description:`Soft-clip the waveform for warmth or outright distortion.`,params:[{kind:`enum`,key:`type`,label:`Curve`,options:[{value:`tanh`,label:`Tanh`},{value:`atan`,label:`Arctan`},{value:`cubic`,label:`Cubic`},{value:`exp`,label:`Exponential`},{value:`alg`,label:`Algebraic`},{value:`quintic`,label:`Quintic`},{value:`sin`,label:`Sine`},{value:`erf`,label:`Error function`},{value:`hard`,label:`Hard clip`}],default:`tanh`},{kind:`number`,key:`threshold`,label:`Threshold`,unit:`dB`,min:-40,max:0,step:.1,default:-6},{kind:`number`,key:`output`,automatable:!0,label:`Output`,unit:`dB`,min:-24,max:24,step:.1,default:0},{kind:`number`,key:`oversample`,label:`Oversample`,unit:`x`,min:1,max:8,step:1,default:4,hint:`Higher costs more but keeps aliasing down.`}],web:`waveshaper`},{id:`bitcrush`,label:`Bitcrush`,group:`nonlinear`,description:`Drop bit depth and sample rate for a lo-fi, digital sound.`,params:[{kind:`number`,key:`bits`,label:`Bit depth`,unit:`bit`,min:1,max:32,step:.1,default:8},{kind:`number`,key:`samples`,label:`Sample hold`,unit:`x`,min:1,max:250,step:1,default:1,hint:`Repeats each sample N times, a crude downsample.`},{kind:`number`,key:`mix`,label:`Mix`,unit:``,min:0,max:1,step:.01,default:1}],web:`worklet-bitcrush`},{id:`pitchshift`,label:`Pitch shift`,group:`time`,description:`Shifts pitch up or down without changing playback speed. Adds ~50 ms of latency.`,params:[{kind:`number`,key:`semitones`,label:`Semitones`,unit:`st`,min:-12,max:12,step:1,default:0},{kind:`number`,key:`mix`,label:`Mix`,unit:``,min:0,max:1,step:.01,default:1}],web:`worklet-pitchshift`},{id:`delay`,label:`Delay`,group:`time`,description:`Repeating echoes behind the dry signal.`,params:[{kind:`number`,key:`time`,automatable:!0,label:`Time`,unit:`ms`,min:1,max:5e3,step:1,default:250,scale:`log`},{kind:`number`,key:`feedback`,automatable:!0,label:`Feedback`,unit:``,min:.01,max:.95,step:.01,default:.35},{kind:`number`,key:`mix`,automatable:!0,label:`Mix`,unit:``,min:0,max:1,step:.01,default:.4}],web:`delay-feedback`},{id:`chorus`,label:`Chorus`,group:`time`,description:`Detuned copies of the signal for width and thickness.`,params:[{kind:`number`,key:`delay`,automatable:!0,label:`Delay`,unit:`ms`,min:1,max:100,step:.1,default:7},{kind:`number`,key:`depth`,automatable:!0,label:`Depth`,unit:`ms`,min:0,max:10,step:.01,default:2},{kind:`number`,key:`speed`,automatable:!0,label:`Rate`,unit:`Hz`,min:.01,max:10,step:.01,default:1},{kind:`number`,key:`mix`,automatable:!0,label:`Mix`,unit:``,min:0,max:1,step:.01,default:.5}],web:`chorus-lfo`},{id:`phaser`,label:`Phaser`,group:`time`,description:`Sweeping notches moving through the spectrum.`,params:[{kind:`number`,key:`in_gain`,automatable:!0,label:`Input`,unit:``,min:0,max:1,step:.01,default:.4},{kind:`number`,key:`out_gain`,automatable:!0,label:`Output`,unit:``,min:0,max:2,step:.01,default:.74},{kind:`number`,key:`delay`,label:`Delay`,unit:`ms`,min:.1,max:5,step:.1,default:3},{kind:`number`,key:`decay`,label:`Decay`,unit:``,min:0,max:.99,step:.01,default:.4},{kind:`number`,key:`speed`,automatable:!0,label:`Rate`,unit:`Hz`,min:.1,max:2,step:.01,default:.5},{kind:`enum`,key:`type`,label:`Waveform`,options:[{value:`0`,label:`Triangular`},{value:`1`,label:`Sinusoidal`}],default:`0`}],web:`allpass-phaser`},{id:`reverb`,label:`Reverb`,group:`time`,description:`Room tail. Both ends convolve the same generated impulse, so preview matches render.`,params:[{kind:`number`,key:`size`,label:`Room size`,unit:``,min:.05,max:1,step:.01,default:.7},{kind:`number`,key:`damping`,label:`Damping`,unit:``,min:0,max:1,step:.01,default:.5,hint:`Higher rolls the top off the tail faster.`},{kind:`number`,key:`wet`,automatable:!0,label:`Wet`,unit:``,min:0,max:1,step:.01,default:.35},{kind:`number`,key:`dry`,automatable:!0,label:`Dry`,unit:``,min:0,max:1,step:.01,default:.7}],web:`convolver`}];new Map(M.map(e=>[e.id,e])),M.map(e=>e.id);function N(e){return 10**(e/20)}var ee=N(12),te=1,P=512,ne=class extends Error{constructor(e){super(e),this.name=`AudioAutomationError`}},re=`volume`,ie=`rate`;function ae(e){if(e===re)return{kind:`volume`};if(e===ie)return{kind:`rate`};let t=e.split(`.`);if(t.length===3&&t[0]===`fx`&&t[1]===oe){let e=t[2];return e?{kind:`preset`,presetId:e}:null}if(t.length!==3||t[0]!==`fx`)return null;let[,n,r]=t;return!n||!r?null:{kind:`fx`,nodeId:n,param:r}}var oe=`preset`,se={min:0,max:ee,step:.01,unit:``,label:`Volume`,scale:`linear`,default:1},ce={min:y,max:b,step:.05,unit:`x`,label:`Speed`,scale:`log`,default:1};function le(e){if(typeof e==`number`)return Number.isFinite(e)?e:null;if(typeof e==`string`&&e.trim()!==``){let t=Number(e);return Number.isFinite(t)?t:null}return null}function ue(e){let t=le(e);return t===null||t===0?0:Math.min(1,Math.max(-1,t))}function de(e,t){let n=le(e),r=le(t);if(n===null||r===null)return null;let i=e=>Math.min(.999,Math.max(.001,e)),a=i(n),o=i(r);return Math.abs(a-o)<1e-6?null:{x:a,y:o}}function fe(e){let t=ue(e?.curve),n=de(e?.viaX,e?.viaY);return{...t?{curve:t}:{},...n?{viaX:n.x,viaY:n.y}:{}}}function pe(e,t){let n=le(e?.t),r=le(e?.v);if(n===null||r===null)return null;let i=t?Math.min(t.max,Math.max(t.min,r)):r;return{t:Math.max(0,n),v:i,...fe(e)}}function me(e,t){let n=e.map(e=>pe(e,t)).filter(e=>e!==null).sort((e,t)=>e.t-t.t),r=[];for(let e of n)r.length>0&&r[r.length-1].t===e.t?r[r.length-1]=e:r.push(e);return r.slice(0,P)}function he(e){let t=[];for(let n of e.lanes){if(!ae(n.target))continue;let e=n.target===re?se:n.target===ie?ce:null,r=me(n.points??[],e);r.length>0&&t.push({target:n.target,points:r})}return{version:te,lanes:t}}function ge(e){let t;try{t=JSON.parse(e)}catch(e){throw new ne(`Automation is not valid JSON: ${e.message}`)}if(typeof t!=`object`||!t)throw new ne(`Automation must be a JSON object.`);let n=t;if(n.version!==te)throw new ne(`Unsupported automation version: ${String(n.version)}`);if(!Array.isArray(n.lanes))throw new ne("Automation is missing a `lanes` array.");return he({version:te,lanes:n.lanes.map((e,t)=>{if(typeof e!=`object`||!e)throw new ne(`Lane ${t} is not an object.`);let n=e;if(typeof n.target!=`string`||!ae(n.target))throw new ne(`Lane ${t} has an unreadable target: ${String(n.target)}`);if(!Array.isArray(n.points))throw new ne(`Lane ${t} is missing a \`points\` array.`);return{target:n.target,points:n.points}})})}function _e(e,t){return t?e**2**(2*t):e}function ve(e,t){let n=e-.5,r=t-.5,i=.999,a=n>0?n/(i-e):n<0?-n/(e-.0010000000000000009):0,o=r>0?r/(i-t):r<0?-r/(t-.0010000000000000009):0,s=Math.min(1e6,Math.max(1,a,o));return{cx:e+n/s,cy:t+r/s,w:s}}function ye(e,t,n){let{cx:r,cy:i,w:a}=ve(t,n),o=2-2*a,s=be(e*o-1+2*a*r,-e*o-2*a*r,e),c=1-s,l=c*c+2*a*s*c+s*s;return l>0?(2*a*i*s*c+s*s)/l:e}function be(e,t,n){if(Math.abs(e)<1e-12)return Math.abs(t)<1e-12?n:-n/t;let r=Math.sqrt(Math.max(0,t*t-4*e*n)),i=(-t+r)/(2*e),a=(-t-r)/(2*e),o=e=>e>=-1e-9&&e<=1+1e-9;return o(i)?Math.min(1,Math.max(0,i)):o(a)?Math.min(1,Math.max(0,a)):n}function xe(e,t){let n=de(t.viaX,t.viaY);return n?ye(Math.min(1,Math.max(0,e)),n.x,n.y):_e(e,t.curve)}function Se(e,t,n,r){return r===`log`&&e>0&&t>0?Math.exp(Math.log(e)+(Math.log(t)-Math.log(e))*n):e+(t-e)*n}function Ce(e,t,n=`linear`){let r=e.points;if(r.length===0)return 0;let i=r[0];if(t<=i.t)return i.v;let a=r[r.length-1];if(t>=a.t)return a.v;let o=0,s=r.length-1;for(;s-o>1;){let e=o+s>>1;r[e].t<=t?o=e:s=e}let c=r[o],l=r[s],u=l.t-c.t;return u<=0?l.v:Se(c.v,l.v,xe((t-c.t)/u,c),n)}var F=new Map,we=64;function Te(e,t=re){let n=`${t}\0${e}`,r=F.get(n);if(r!==void 0)return r;let i=null;try{i=ge(e).lanes.find(e=>e.target===t)??null}catch{i=null}return F.size>we&&F.clear(),F.set(n,i),i}var Ee=48,I=new WeakMap;function De(e){let t=e.points,n=t[0].v,r=t[t.length-1].v,i=[0],a=[0],o=t=>{let n=i[i.length-1];if(t<=n)return;let r=Ce(e,n,`log`);i.push(t),a.push(a[a.length-1]+(r+Ce(e,t,`log`))/2*(t-n))};o(Math.max(0,t[0].t));for(let e=1;e<t.length;e+=1){let n=t[e-1].t,r=t[e].t;if(!(r<=0))for(let e=1;e<=Ee;e+=1)o(Math.max(n,0)+(r-n)*e/Ee)}return{ts:Float64Array.from(i),ss:Float64Array.from(a),firstRate:n,lastRate:r}}function L(e){let t=I.get(e);return t||(t=De(e),I.set(e,t)),t}function R(e){return typeof e!=`number`&&e.points.length>0}function Oe(e,t,n){let r=0,i=e.length-1;for(;i-r>1;){let t=r+i>>1;e[t]<=n?r=t:i=t}return t[r]+(t[i]-t[r])*(n-e[r])/(e[i]-e[r])}function ke(e,t){if(typeof e==`number`)return t/e;if(!R(e))return t;let{ts:n,ss:r,firstRate:i,lastRate:a}=L(e),o=n.length-1;return t<=0?t/i:t>=r[o]?n[o]+(t-r[o])/a:Oe(r,n,t)}function Ae(e){return e?Te(e,ie):null}function je(e,t){return Ae(e)??t}var z=Object.freeze({start:`data-start`,duration:`data-duration`,trackIndex:`data-track-index`,derivedEnd:`data-end`,legacyTrack:`data-layer`});Object.freeze([z.start,z.duration,z.trackIndex]),Object.freeze([z.derivedEnd]),Object.freeze([z.derivedEnd,z.legacyTrack]);function Me(e){if(e==null||e.trim()===``)return null;let t=Number(e);return Number.isFinite(t)?t:null}var Ne=/^[A-Za-z0-9_.:-]+$/;function Pe(e,t){let n=e.charCodeAt(t);return n>=48&&n<=57}function Fe(e,t){let n=t;for(;n>=0&&Pe(e,n);)n--;return n}function Ie(e,t){let n=t;for(;n>=0&&(e[n]??``).trim()===``;)n--;return n}function Le(e){let t=e.length-1;if(!Pe(e,t))return null;let n=Fe(e,t);return e[n]===`.`&&(n=Fe(e,n-1)),n+1}function Re(e){let t=Le(e);if(t==null)return null;let n=Ie(e,t-1),r=e[n];if(r!==`+`&&r!==`-`)return null;let i=e.slice(0,n).trim();if(!Ne.test(i))return null;let a=Number(e.slice(t));return Number.isFinite(a)?{refId:i,operator:r,magnitude:a}:null}function ze(e){let t=(e??``).trim();if(!t)return null;let n=Me(t);if(n!=null)return{kind:`absolute`,value:n};if(Ne.test(t))return{kind:`reference`,refId:t,offset:0};let r=Re(t);return r?{kind:`reference`,refId:r.refId,offset:r.operator===`-`?-r.magnitude:r.magnitude}:null}function Be(e,t,n,r){e.push({code:t,attribute:n,value:r})}function Ve(e,t,n,r){if(t==null||t.trim()===``)return n.defaultStart===void 0?0:n.defaultStart;if(!e)return Be(r,`invalid-start`,z.start,t),null;if(e.kind===`absolute`)return Math.max(0,e.value);let i=n.resolveReferenceEnd?.(e.refId);return i==null||!Number.isFinite(i)?(Be(r,`unresolved-start-reference`,z.start,t),null):Math.max(0,i+e.offset)}var He=1e-9;function Ue(e,t){return Math.abs(e-t)<=He}function We(e,t,n){let r=Me(e);r==null?(Be(n,`deprecated-end`,z.derivedEnd,e),Be(n,`invalid-end`,z.derivedEnd,e)):t==null?Be(n,`deprecated-end`,z.derivedEnd,e):Ue(r,t)||(Be(n,`deprecated-end`,z.derivedEnd,e),Be(n,`conflicting-end`,z.derivedEnd,e))}function Ge(e,t,n){let r=Me(e);return r==null||r<0?(Be(n,`invalid-duration`,z.duration,e),{duration:null,end:null,durationSource:`invalid`}):{duration:r,end:t==null?null:t+r,durationSource:`duration`}}function Ke(e,t,n){Be(n,`deprecated-end`,z.derivedEnd,e);let r=Me(e);return r==null?(Be(n,`invalid-end`,z.derivedEnd,e),{duration:null,end:null,durationSource:`invalid`}):t==null?{duration:null,end:r,durationSource:`legacy-end`}:r<t?(Be(n,`end-before-start`,z.derivedEnd,e),{duration:null,end:null,durationSource:`invalid`}):{duration:r-t,end:r,durationSource:`legacy-end`}}function qe(e,t,n){let r=e.getAttribute(z.duration),i=e.getAttribute(z.derivedEnd);if(r==null)return i==null?{duration:null,end:null,durationSource:`missing`}:Ke(i,t,n);let a=Ge(r,t,n);return i!=null&&We(i,a.end,n),a}function Je(e,t,n,r){let i=Me(e);return i==null||!Number.isInteger(i)?(Be(r,`invalid-track-index`,t,e),{trackIndex:0,trackSource:`invalid`}):{trackIndex:i,trackSource:n}}function Ye(e,t){let n=e.getAttribute(z.trackIndex),r=e.getAttribute(z.legacyTrack);if(n==null&&r==null)return{trackIndex:0,trackSource:`default`};if(n==null&&r!=null)return Be(t,`deprecated-layer`,z.legacyTrack,r),Je(r,z.legacyTrack,`legacy-layer`,t);let i=Je(n??``,z.trackIndex,`track-index`,t);if(r==null)return i;Be(t,`deprecated-layer`,z.legacyTrack,r);let a=Me(r);return a!=null&&a!==i.trackIndex&&Be(t,`conflicting-layer`,z.legacyTrack,r),i}function Xe(e,t={}){let n=[],r=e.getAttribute(z.start),i=ze(r),a=Ve(i,r,t,n),o=qe(e,a,n),s=Ye(e,n);return{startExpression:i,start:a,...o,...s,diagnostics:n}}function Ze(e){return Me(e)}function Qe(e){return S(t=>e.getAttribute(t),d(e)?e.defaultPlaybackRate:1)}function $e(e){return je(e.getAttribute(`data-automation`),Qe(e))}function et(e){return v(t=>e.getAttribute(t))}function tt(e,t){return it(t,et(e),$e(e))}function nt(e){let t=D({tag:`video`,authoredDurationSeconds:C(t=>e.getAttribute(t)),sourceDurationSeconds:Number.isFinite(e.duration)?e.duration:null,mediaStartSeconds:et(e),playbackRate:Qe(e)});return t.source===`media`?tt(e,e.duration):t.seconds}function rt(e,t=0){return!f(e)||!e.hasAttribute(`data-start`)&&!e.hasAttribute(`data-track-index`)?null:D({tag:`img`,authoredDurationSeconds:w(t=>e.getAttribute(t),t),sourceDurationSeconds:null,mediaStartSeconds:0,playbackRate:1}).seconds}function it(e,t,n){return typeof n==`number`?E(e,t,n):Number.isFinite(e)?ke(n,Math.max(0,e-t)):null}function at(){return globalThis}function ot(e,t){if(typeof window>`u`)return;let n=at(),r=n.__hf?.onSwallowed;if(r)try{r({label:e,error:t})}catch{}(n.__hfDebug||n.__HYPERFRAMES_DEBUG)&&console.debug(`[hyperframes] ${e} swallowed:`,t)}var st=e=>e.paused?.()===!0?(e.startTime?.()??0)+(e.totalDuration?.()??0)/Math.abs(e.timeScale?.()||1):0;function ct(e){try{if(typeof e?.duration!=`function`)return null;let t=e.getChildren?.(!1,!1,!0),n=Array.isArray(t)?t:[],r=Math.max(Number(e.duration()),...n.map(st));return Number.isFinite(r)?r:null}catch(e){return ot(`runtime.timelineDuration`,e),null}}var lt=`data-hf-authored-duration`,ut=`data-hf-authored-end`;function dt(e){if(e==null||typeof e==`string`&&e.trim()===``)return null;let t=typeof e==`number`?e:Number(e);return Number.isFinite(t)?t:null}function ft(e){let t=dt(e.start);if(t==null)return null;let n=Math.max(0,t),r=dt(e.duration),i=dt(e.authoredDuration),a=r!=null&&r>0?r:i!=null&&i>0?i:null;if(a!=null)return{start:n,duration:a,end:n+a};let o=dt(e.end),s=dt(e.authoredEnd),c=o!=null&&o>n?o:s!=null&&s>n?s:null;return{start:n,duration:c==null?null:c-n,end:c}}var pt=Object.freeze({start:`data-start`,duration:`data-duration`,trackIndex:`data-track-index`,derivedEnd:`data-end`,legacyTrack:`data-layer`});Object.freeze([pt.start,pt.duration,pt.trackIndex]),Object.freeze([pt.derivedEnd]),Object.freeze([pt.derivedEnd,pt.legacyTrack]);function mt(e){if(e==null||e.trim()===``)return null;let t=Number(e);return Number.isFinite(t)?t:null}var ht=e=>{let t=mt(e);return t!==null&&t>=0?t:null};function gt(e){return ht(e(`data-playback-start`))??ht(e(`data-media-start`))??0}var _t=`data-hf-media-start-basis`;function vt(e){return e?.trim().toLowerCase()===`global`?`global`:`local`}function yt(e){return vt(e.basis)===`global`?e.authoredStart:e.hostStart+e.authoredStart}function bt(e){return St(e)?yt({authoredStart:e.authoredStart,hostStart:e.hostStart,basis:e.basis}):e.ordinaryStart()}function xt(e){return St(e)&&vt(e.basis)===`global`}function St(e){return!e.hasAutoStart&&e.authoredStart!=null&&e.hostStart!==0}function Ct(e){return gt(t=>e.getAttribute(t))}function wt(e,t){return e-Ct(t)}function Tt(e){let t=e.timelineRegistry??{},n=e.includeAuthoredTimingAttrs??!1,r=e.documentRef??document,i=new WeakMap,a=new WeakMap,o=new Set,s=e=>(e.hasAttribute(`data-composition-id`)?e.parentElement:e)?.closest(`[data-composition-id]`)??null,c=(e,t)=>{let n=s(t);if(n){for(let t of n.querySelectorAll(`[id="${e}"]`))if(s(t)===n)return t}return r.getElementById(e)||(Array.from(r.querySelectorAll(`[data-composition-id]`)).find(t=>t.getAttribute(`data-composition-id`)===e)??null)},l=(e,t)=>n?e.getAttribute(t):null,u=e=>ft({start:0,duration:e.getAttribute(`data-duration`),authoredDuration:l(e,`data-hf-authored-duration`)})?.duration??ft({start:x(e,0),end:e.getAttribute(`data-end`),authoredEnd:l(e,`data-hf-authored-end`)})?.duration??null,f=e=>e!=null&&Number.isFinite(e)&&e>0?e:null,p=e=>{let n=e.getAttribute(`data-composition-id`);return n?f(ct(t[n])):null},m=e=>{let t=a.get(e);if(t!==void 0)return t;let n=u(e)??f(d(e)?tt(e,e.duration):null)??f(rt(e))??p(e);return a.set(e,n),n},h=`[data-composition-src], [data-composition-id], [data-composition-file]`,g=e=>e.matches(h),_=e=>!e.hasAttribute(`data-composition-id`)||ze(e.getAttribute(`data-start`))?null:e.parentElement?.closest(`[data-start], ${h}`)??null,v=(e,t)=>wt(x(e,t),_(e)??e),y=(e,t)=>{let n=e.hasAttribute(`data-composition-id`)?e.parentElement?.closest(`[data-composition-id]`):e.closest(`[data-composition-id]`);return n?v(n,t):0},b=(e,t)=>{let n=ze(e.getAttribute(`data-start`));if(!n){let n=_(e);return n?x(n,t):t}if(n.kind===`absolute`)return y(e,t)+Math.max(0,n.value);let r=c(n.refId,e);if(!r)return t;let i=x(r,0),a=m(r)??0,o=Math.min(0,y(e,0));return Math.max(o,i+a+n.offset)},x=(e,t)=>{let n=i.get(e);if(n!==void 0)return n??t;if(o.has(e))return t;o.add(e);try{let n=b(e,t);return i.set(e,n),n}finally{o.delete(e)}},S=e=>{let t=e.closest(`[data-composition-id]`);return{authoredStart:Ze(e.getAttribute(`data-start`)),hostStart:t?v(t,0):0,hasAutoStart:e.hasAttribute(`data-hf-auto-start`),basis:e.getAttribute(_t)}};return{resolveStartForElement:(e,t=0)=>x(e,Math.max(0,t)),resolveDurationForElement:e=>m(e),resolveMediaStartForElement:e=>{let t=S(e);return bt({...t,ordinaryStart:()=>x(e,t.hostStart)})},resolveHostStartForElement:e=>y(e,0),resolveHostSlotsForElement:e=>{let t=[];for(let n=e.parentElement;n;n=n.parentElement){if(!g(n)||_(n)||Ct(n)<=0)continue;let e=x(n,0),r=u(n);t.push({start:e,end:r?e+r:1/0})}return t},isRootGlobalMediaStartForElement:e=>d(e)&&xt(S(e))}}function Et(){return{capturedTimeline:null,isPlaying:!1,currentTime:0,deterministicAdapters:[],canonicalFps:30,bridgeMuted:!1,bridgeVolume:1,mediaOutputMuted:!1,nativeMediaSyncDisabled:!1,webAudioMediaDisabled:!1,mediaAutoplayBlockedPosted:!1,mediaForceSyncNextTick:!1,playbackRate:1,bridgeLastPostedFrame:-1,bridgeLastPostedAt:0,bridgeLastPostedPlaying:!1,bridgeLastPostedMuted:!1,bridgeMaxPostIntervalMs:80,controlBridgeHandler:null,beforeUnloadHandler:null,injectedCompStyles:[],injectedCompScripts:[],injectedCompLinks:[],cachedTimedMediaEls:[],cachedMediaClips:[],cachedVideoClips:[],cachedMediaTimelineDurationSeconds:0,tornDown:!1,transportClock:null,transportRafId:null}}var Dt=7200,Ot=1/60,kt=e=>e!==null&&e>Ot?e:null;function At(e){return{width:p(e.getAttribute(`data-width`)),height:p(e.getAttribute(`data-height`))}}function jt(e,t){let n=null;for(let r of e.querySelectorAll(`video[data-start], audio[data-start]`)){let e=t.mediaStart(r);if(!Number.isFinite(e))continue;let i=t.mediaDuration(r);if(i==null||i<=Ot)continue;let a=Math.max(0,e)+i;(!n||a>n.seconds)&&(n={seconds:a,element:r})}return n&&kt(n.seconds)!==null?n:null}function Mt(e,t){return jt(e,t)?.seconds??null}function Nt(e,t){let n=[];for(let r of e.querySelectorAll(`[data-composition-id][data-start]`)){if(r.parentElement?.closest(`[data-composition-id]`)!==e)continue;let i=t.resolveStartForElement(r,0),a=t.resolveDurationForElement(r);!Number.isFinite(i)||a==null||a<=0||n.push(Math.max(0,i)+a)}return kt(i({authoredDurationSeconds:null,clipEndsSeconds:[Ze(e.getAttribute(`data-duration`)),...n]}).seconds)}var Pt=e=>e.hasAttribute(`data-composition-id`)||e.hasAttribute(`data-composition-src`);function Ft(e,t,{unregisteredLottie:n}){let r=[];for(let n of e.querySelectorAll(`[data-start]`)){let e=t.resolveStartForElement(n,0);if(!Number.isFinite(e))continue;let i=t.resolveDurationForElement(n);i==null?(d(n)||Pt(n))&&r.push(null):r.push(Math.max(0,e)+i)}(n||e.querySelector(`[data-lottie-src]`))&&r.push(null);let a=i({authoredDurationSeconds:null,clipEndsSeconds:r});return a.pendingClips>0?{...a,seconds:null,source:`unresolved`,reason:`a clip's length is pending`}:a}function It(e){return Lt(e).seconds}function Lt(e){if(e.declared!==null&&Number.isFinite(e.declared)&&e.declared>0)return{seconds:e.declared,from:`declared`,floorIndex:null};let t=kt(e.timeline()),n=e.floors().map(e=>e??0),r=Math.max(0,...n),i=Number.isFinite(e.fallback)&&e.fallback>Ot?e.fallback:0,a=Math.max(r,i),o=t!==null&&t>=Dt&&kt(a)!==null?null:t,s=r>=i,c=e=>({seconds:e,from:s?`floor`:`fallback`,floorIndex:s?n.indexOf(r):null});if(o!==null)return o>=a?{seconds:o,from:`timeline`,floorIndex:null}:c(a);if(kt(r)!==null)return c(a);if(i>0)return{seconds:i,from:`fallback`,floorIndex:null};let l=e.derived();return{seconds:l>0?l:0,from:`derived`,floorIndex:null}}function Rt(e){let t=m(e);if(!t)return null;let n=Tt({timelineRegistry:{},includeAuthoredTimingAttrs:!0,documentRef:e}),r=It({declared:Ze(t.getAttribute(`data-duration`)),timeline:()=>null,floors:()=>[Mt(e,{mediaStart:n.resolveMediaStartForElement,mediaDuration:nt}),Nt(t,n)],fallback:0,derived:()=>Ft(t,n,{unregisteredLottie:!1}).seconds??0});return{...At(t),fps:Et().canonicalFps,durationSeconds:r}}var zt=`hyperframes-studio-preview`,Bt=`data-hf-player-frame`;function Vt(e){return n()&&e.defaultView?.frameElement?.hasAttribute(Bt)===!0}function Ht(e){return e.querySelector(`meta[name="${zt}"]`)!==null||Vt(e)}var Ut=`__hfPreviewErrors`;function Wt(e){return e.hasRuntime||e.runtimeInjected?!1:!!(e.hasNestedCompositions||e.hasTimelines&&e.attempts>=5)}function Gt(e){return typeof e==`object`&&!!e}function Kt(e){return Gt(e)&&typeof e.getDuration==`function`}function qt(e){return Gt(e)&&typeof e.duration==`function`&&typeof e.time==`function`&&typeof e.seek==`function`&&typeof e.play==`function`&&typeof e.pause==`function`}var Jt=`https://cdn.jsdelivr.net/npm/@hyperframes/core@0.9.23/dist/hyperframe.runtime.iife.js`;function Yt(e){if(e===null)return null;let t=Number.parseInt(e,10);return Number.isFinite(t)&&t>0?t:null}function Xt(e){let t=e?.querySelector(`[data-composition-id][data-width][data-height]`)??e?.querySelector(`[data-width][data-height]`);if(!t)return null;let n=Yt(t.getAttribute(`data-width`)),r=Yt(t.getAttribute(`data-height`));return n!==null&&r!==null?{width:n,height:r}:null}function Zt(e){return Array.isArray(e)?e.find(e=>typeof e==`string`&&e.trim()!==``&&e!==`[object Event]`)??null:null}var Qt=class{constructor(e,t){this._iframe=e,this._callbacks=t}_iframe;_callbacks;_interval=null;_runtimeInjected=!1;_runtimeScript=null;_failure=null;get failed(){return this._failure!==null&&this._failure.document===this._iframe.contentDocument}get runtimeInjected(){return this._runtimeInjected}start(){this.stop(),this._failure=null,this._runtimeInjected=!1;let e=0;this._interval=setInterval(()=>{e++;let t=null;try{t=this._poll(e)}catch(e){e instanceof DOMException&&e.name===`SecurityError`||(t={kind:`error`,message:e instanceof Error?e.message:String(e)})}t??=this._deadlineOutcome(e),t&&(this.stop(),t.kind===`error`?(this._failure={document:this._iframe.contentDocument},this._callbacks.onError(t.message)):this._callbacks.onReady(t.result))},200)}_deadlineOutcome(e){return e<40||this._callbacks.hostOwnsDeadline?.()?null:{kind:`error`,message:`Composition timeline not found after 8s`}}_poll(e){let t=this._iframe.contentWindow;if(!t)return null;let n=Zt(Reflect.get(t,Ut));if(n!==null)return{kind:`error`,message:n};let r=this._iframe.contentDocument,i=Reflect.get(t,`__timelines`),a=this.hasRuntimeBridge(t);if(Wt({hasRuntime:a,hasTimelines:Gt(i)&&Object.keys(i).length>0,hasNestedCompositions:!!r?.querySelector(`[data-composition-src]`),runtimeInjected:this._runtimeInjected,attempts:e}))return this._injectRuntime(),null;if(this._runtimeInjected&&!a)return null;let o=this._resolveReadyResult(t,r);return o?{kind:`ready`,result:o}:null}_resolveReadyResult(e,t){let n=this._resolvePlaybackDurationAdapter(e)??{kind:`document`,getDuration:()=>0},r=n.getDuration();if(!Number.isFinite(r)||r<=0){if(n.kind===`direct-timeline`)return null;r=t?Rt(t)?.durationSeconds??0:0}return r<=0?null:{duration:r,adapter:{...n,getDuration:()=>r},compositionSize:Xt(t)}}stop(){this._runtimeScript&&=(this._runtimeScript.onerror=null,null),this.failed||(this._failure=null),this._interval!==null&&(clearInterval(this._interval),this._interval=null)}resolveDirectTimelineAdapter(){try{let e=this._iframe.contentWindow;return e?this._resolveDirectTimelineAdapterFromWindow(e):null}catch{return null}}resolveDirectTimelineAdapterFromWindow(e){return this._resolveDirectTimelineAdapterFromWindow(e)}hasRuntimeBridge(e){return Gt(Reflect.get(e,`__player`))}_injectRuntime(){this._runtimeInjected=!0;try{let e=this._iframe.contentDocument;if(!e)return;let t=e.createElement(`script`);t.src=this._callbacks.resolveRuntimeUrl?.()??Jt,this._runtimeScript=t,t.onerror=()=>{this._runtimeScript!==t||this._iframe.contentDocument!==e||(this.stop(),this._failure={document:e},this._callbacks.onError(`HyperFrames runtime failed to load from `+t.src))},(e.head||e.documentElement).appendChild(t),this._callbacks.onRuntimeInjected?.()}catch{}}_resolveDirectTimelineAdapterFromWindow(e){if(this.hasRuntimeBridge(e))return null;let t=Reflect.get(e,`__timelines`);if(!Gt(t))return null;let n=Object.keys(t);if(n.length===0)return null;let r=this._iframe.contentDocument?.querySelector(`[data-composition-id]`)?.getAttribute(`data-composition-id`),i=t[r&&r in t?r:n[n.length-1]];return qt(i)?i:null}_resolvePlaybackDurationAdapter(e){let t=Reflect.get(e,`__player`);if(Kt(t))return{kind:`runtime`,getDuration:()=>t.getDuration()};let n=this._resolveDirectTimelineAdapterFromWindow(e);return n?{kind:`direct-timeline`,timeline:n,getDuration:()=>n.duration()}:null}},$t=`
2 :host {
3 display: block;
4 position: relative;
5 overflow: hidden;
6 background: #000;
7 contain: layout style;
8 }
9
10 /* The only in-flow child: with no height set, the player takes the composition's shape. */
11 .hfp-sizer {
12 aspect-ratio: 16 / 9;
13 }
14
15 .hfp-container {
16 position: absolute;
17 inset: 0;
18 overflow: hidden;
19 pointer-events: none;
20 }
21
22
23 .hfp-iframe {
24 position: absolute;
25 top: 50%;
26 left: 50%;
27 border: none;
28 pointer-events: none;
29 }
30
31 /* Opt-in: an interactive composition (e.g. a live slideshow/app with playable
32 media or controls): let pointer events reach the iframe content. */
33 :host([interactive]) .hfp-container,
34 :host([interactive]) .hfp-iframe {
35 pointer-events: auto;
36 }
37
38 .hfp-video {
39 position: absolute;
40 inset: 0;
41 width: 100%;
42 height: 100%;
43 object-fit: contain;
44 pointer-events: none;
45 }
46
47 .hfp-poster {
48 position: absolute;
49 inset: 0;
50 object-fit: contain;
51 z-index: 1;
52 pointer-events: none;
53 }
54
55 .hfp-shader-loader {
56 position: absolute;
57 inset: 0;
58 z-index: 20;
59 display: grid;
60 place-items: center;
61 visibility: hidden;
62 opacity: 0;
63 pointer-events: none;
64 background: #030504;
65 color: #f4f7fb;
66 cursor: default;
67 user-select: none;
68 -webkit-user-select: none;
69 transition: opacity 420ms ease-out, visibility 420ms ease-out;
70 }
71
72 .hfp-shader-loader.hfp-visible,
73 .hfp-shader-loader.hfp-hiding {
74 visibility: visible;
75 }
76
77 .hfp-shader-loader.hfp-visible {
78 opacity: 1;
79 pointer-events: auto;
80 }
81
82 .hfp-shader-loader.hfp-hiding {
83 opacity: 0;
84 pointer-events: none;
85 }
86
87 .hfp-shader-loader-panel {
88 display: grid;
89 grid-template-rows: 86px 40px 26px 12px 44px;
90 justify-items: center;
91 align-items: center;
92 gap: 8px;
93 width: min(620px, 82%);
94 text-align: center;
95 font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
96 }
97
98 .hfp-shader-loader-mark {
99 width: 86px;
100 height: 86px;
101 display: grid;
102 place-items: center;
103 overflow: visible;
104 }
105
106 .hfp-shader-loader-mark svg {
107 display: block;
108 overflow: visible;
109 filter: drop-shadow(0 0 5px rgba(79, 219, 94, 0.16));
110 pointer-events: none;
111 }
112
113 .hfp-shader-loader-title {
114 width: 100%;
115 height: 40px;
116 overflow: hidden;
117 white-space: nowrap;
118 text-overflow: ellipsis;
119 font-size: 26px;
120 line-height: 40px;
121 font-weight: 700;
122 letter-spacing: 0;
123 }
124
125 .hfp-shader-loader-title-text {
126 color: transparent;
127 background: linear-gradient(
128 90deg,
129 rgba(244, 247, 251, 0.84) 0%,
130 #ffffff 42%,
131 #80efe4 52%,
132 #ffffff 62%,
133 rgba(244, 247, 251, 0.84) 100%
134 );
135 background-size: 220% 100%;
136 -webkit-background-clip: text;
137 background-clip: text;
138 animation: hfp-shader-loader-sheen 1.9s linear infinite;
139 }
140
141 .hfp-shader-loader:not(.hfp-visible):not(.hfp-hiding) .hfp-shader-loader-title-text {
142 animation-play-state: paused;
143 }
144
145 .hfp-shader-loader-detail {
146 width: 100%;
147 height: 26px;
148 overflow: hidden;
149 white-space: nowrap;
150 text-overflow: ellipsis;
151 color: rgba(244, 247, 251, 0.62);
152 font-size: 15px;
153 line-height: 26px;
154 font-weight: 500;
155 }
156
157 .hfp-shader-loader-track {
158 width: min(360px, 100%);
159 height: 8px;
160 overflow: hidden;
161 border-radius: 999px;
162 background: rgba(255, 255, 255, 0.1);
163 }
164
165 .hfp-shader-loader-fill {
166 width: 100%;
167 height: 100%;
168 border-radius: inherit;
169 background: linear-gradient(90deg, #06e3fa, #4fdb5e);
170 transform: scaleX(0);
171 transform-origin: left center;
172 transition: transform 160ms ease;
173 }
174
175 .hfp-shader-loader-progress {
176 width: min(420px, 100%);
177 height: 44px;
178 display: grid;
179 grid-template-rows: repeat(2, 22px);
180 color: rgba(244, 247, 251, 0.48);
181 font: 600 13px/22px "IBM Plex Mono", "SF Mono", "Fira Code", "Courier New", monospace;
182 font-variant-numeric: tabular-nums;
183 }
184
185 .hfp-shader-loader-row {
186 display: grid;
187 grid-template-columns: minmax(0, 1fr) 74px;
188 align-items: center;
189 column-gap: 20px;
190 width: 100%;
191 white-space: nowrap;
192 }
193
194 .hfp-shader-loader-label {
195 min-width: 0;
196 overflow: hidden;
197 text-align: left;
198 text-overflow: ellipsis;
199 }
200
201 .hfp-shader-loader-value {
202 text-align: right;
203 }
204
205 /* Loading assets and Buffering: the frame softly blurred, the mark alone over it with a light
206 passing over. filter, transform and opacity only, no backdrop-filter, which drops frames on
207 Safari; the frame is still while it waits, so the blur is painted once. */
208 .hfp-iframe,
209 .hfp-poster {
210 transition: filter 400ms ease-out;
211 }
212
213 :host([assets-loading]:not([assets-loading-ui="none"])) .hfp-iframe,
214 :host([assets-loading]:not([assets-loading-ui="none"])) .hfp-poster,
215 :host([buffering]:not([assets-loading-ui="none"])) .hfp-iframe,
216 :host([buffering]:not([assets-loading-ui="none"])) .hfp-poster {
217 filter: blur(6px) saturate(0.85);
218 transition-duration: 180ms;
219 }
220
221 .hfp-shader-loader.hfp-assets {
222 background: transparent;
223 }
224
225 .hfp-shader-loader.hfp-assets .hfp-shader-loader-panel {
226 grid-template-rows: auto;
227 width: auto;
228 }
229
230 .hfp-shader-loader.hfp-assets .hfp-shader-loader-title,
231 .hfp-shader-loader.hfp-assets .hfp-shader-loader-detail,
232 .hfp-shader-loader.hfp-assets .hfp-shader-loader-track,
233 .hfp-shader-loader.hfp-assets .hfp-shader-loader-progress {
234 display: none;
235 }
236
237 .hfp-shader-loader-mark {
238 position: relative;
239 }
240
241 .hfp-shader-loader-sheen {
242 display: none;
243 position: absolute;
244 inset: 0;
245 overflow: hidden;
246 mask-size: contain;
247 mask-repeat: no-repeat;
248 mask-position: center;
249 -webkit-mask-size: contain;
250 -webkit-mask-repeat: no-repeat;
251 -webkit-mask-position: center;
252 }
253
254 .hfp-shader-loader.hfp-assets .hfp-shader-loader-sheen {
255 display: block;
256 }
257
258 .hfp-shader-loader-sheen::before {
259 content: "";
260 position: absolute;
261 inset: 0 auto 0 -60%;
262 width: 60%;
263 background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.85), transparent);
264 animation: hfp-shader-loader-sweep 1700ms cubic-bezier(0.4, 0, 0.2, 1) infinite;
265 }
266
267 .hfp-shader-loader:not(.hfp-visible):not(.hfp-hiding) .hfp-shader-loader-sheen::before {
268 animation-play-state: paused;
269 }
270
271 @keyframes hfp-shader-loader-sweep {
272 0% {
273 transform: translateX(0);
274 }
275 55%,
276 100% {
277 transform: translateX(280%);
278 }
279 }
280
281 @media (prefers-reduced-motion: reduce) {
282 .hfp-iframe,
283 .hfp-poster {
284 transition: none;
285 }
286
287 .hfp-shader-loader-sheen::before {
288 animation: none;
289 }
290 }
291
292 @keyframes hfp-shader-loader-sheen {
293 from {
294 background-position: 140% 0;
295 }
296 to {
297 background-position: -140% 0;
298 }
299 }
300
301 /* ── Theming via CSS custom properties ──
302 *
303 * Override from outside the shadow DOM:
304 * hyperframes-player {
305 * --hfp-controls-bg: linear-gradient(transparent, rgba(0,0,0,0.9));
306 * --hfp-accent: #ff6b6b;
307 * --hfp-font: "Inter", sans-serif;
308 * }
309 */
310
311 .hfp-controls {
312 position: absolute;
313 bottom: 0;
314 left: 0;
315 right: 0;
316 display: flex;
317 align-items: center;
318 gap: var(--hfp-controls-gap, 12px);
319 padding: var(--hfp-controls-padding, 8px 16px);
320 background: var(--hfp-controls-bg, linear-gradient(transparent, rgba(0, 0, 0, 0.7)));
321 color: var(--hfp-color, #fff);
322 font-family: var(--hfp-font, system-ui, -apple-system, sans-serif);
323 font-size: var(--hfp-font-size, 13px);
324 z-index: 10;
325 pointer-events: auto;
326 opacity: 1;
327 transition: opacity 0.3s ease;
328 user-select: none;
329 }
330
331 .hfp-controls.hfp-hidden {
332 opacity: 0;
333 pointer-events: none;
334 }
335
336 .hfp-play-btn {
337 position: relative;
338 background: none;
339 border: none;
340 color: var(--hfp-color, #fff);
341 cursor: pointer;
342 padding: 8px;
343 display: flex;
344 align-items: center;
345 justify-content: center;
346 width: 40px;
347 height: 40px;
348 flex-shrink: 0;
349 z-index: 10;
350 }
351
352 .hfp-play-btn:hover {
353 opacity: 0.8;
354 }
355
356 /* Stacked play/pause glyphs that crossfade-morph on toggle (rotate + scale). */
357 .hfp-play-btn .hfp-ico {
358 position: absolute;
359 display: flex;
360 align-items: center;
361 justify-content: center;
362 transition:
363 opacity 200ms ease,
364 transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
365 }
366 .hfp-play-btn .hfp-ico-play {
367 opacity: 1;
368 transform: rotate(0) scale(1);
369 }
370 .hfp-play-btn .hfp-ico-pause {
371 opacity: 0;
372 transform: rotate(-90deg) scale(0.4);
373 }
374 .hfp-play-btn.hfp-playing .hfp-ico-play {
375 opacity: 0;
376 transform: rotate(90deg) scale(0.4);
377 }
378 .hfp-play-btn.hfp-playing .hfp-ico-pause {
379 opacity: 1;
380 transform: rotate(0) scale(1);
381 }
382 @media (prefers-reduced-motion: reduce) {
383 .hfp-play-btn .hfp-ico {
384 transition-duration: 0ms;
385 transform: none;
386 }
387 }
388
389 .hfp-play-btn svg,
390 .hfp-play-btn svg * {
391 pointer-events: none;
392 }
393
394 .hfp-scrubber {
395 flex: 1;
396 min-width: 0;
397 height: var(--hfp-scrubber-height, 4px);
398 background: var(--hfp-scrubber-bg, rgba(255, 255, 255, 0.3));
399 border-radius: var(--hfp-scrubber-radius, 2px);
400 cursor: pointer;
401 position: relative;
402 overflow: hidden;
403 }
404
405 .hfp-scrubber:hover {
406 height: var(--hfp-scrubber-height-hover, 6px);
407 }
408
409 .hfp-progress {
410 position: absolute;
411 top: 0;
412 left: 0;
413 height: 100%;
414 background: var(--hfp-accent, #fff);
415 pointer-events: none;
416 }
417
418 .hfp-time {
419 flex-shrink: 0;
420 font-variant-numeric: tabular-nums;
421 opacity: 0.9;
422 }
423
424 .hfp-speed-wrap {
425 position: relative;
426 flex-shrink: 0;
427 }
428
429 .hfp-speed-btn {
430 background: var(--hfp-speed-btn-bg, rgba(255, 255, 255, 0.15));
431 border: none;
432 border-radius: var(--hfp-speed-btn-radius, 4px);
433 color: var(--hfp-color, #fff);
434 cursor: pointer;
435 font-family: var(--hfp-font, system-ui, -apple-system, sans-serif);
436 font-size: 12px;
437 font-variant-numeric: tabular-nums;
438 font-weight: 600;
439 padding: 4px 8px;
440 min-width: 40px;
441 text-align: center;
442 transition: background 0.15s ease;
443 }
444
445 .hfp-speed-btn:hover {
446 background: var(--hfp-speed-btn-bg-hover, rgba(255, 255, 255, 0.3));
447 }
448
449 .hfp-speed-menu {
450 position: absolute;
451 bottom: calc(100% + 8px);
452 right: 0;
453 background: var(--hfp-menu-bg, rgba(20, 20, 20, 0.95));
454 backdrop-filter: blur(12px);
455 -webkit-backdrop-filter: blur(12px);
456 border: 1px solid var(--hfp-menu-border, rgba(255, 255, 255, 0.1));
457 border-radius: var(--hfp-menu-radius, 8px);
458 padding: 4px;
459 display: flex;
460 flex-direction: column;
461 gap: 2px;
462 min-width: 80px;
463 opacity: 0;
464 visibility: hidden;
465 transform: translateY(4px);
466 transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
467 box-shadow: var(--hfp-menu-shadow, 0 8px 24px rgba(0, 0, 0, 0.4));
468 }
469
470 .hfp-speed-menu.hfp-open {
471 opacity: 1;
472 visibility: visible;
473 transform: translateY(0);
474 }
475
476 .hfp-speed-option {
477 background: none;
478 border: none;
479 border-radius: 4px;
480 color: var(--hfp-menu-color, rgba(255, 255, 255, 0.7));
481 cursor: pointer;
482 font-family: var(--hfp-font, system-ui, -apple-system, sans-serif);
483 font-size: 13px;
484 font-variant-numeric: tabular-nums;
485 padding: 6px 12px;
486 text-align: left;
487 transition: background 0.1s ease, color 0.1s ease;
488 white-space: nowrap;
489 }
490
491 .hfp-speed-option:hover {
492 background: var(--hfp-menu-hover-bg, rgba(255, 255, 255, 0.1));
493 color: var(--hfp-color, #fff);
494 }
495
496 .hfp-speed-option.hfp-active {
497 color: var(--hfp-accent, #fff);
498 font-weight: 600;
499 }
500
501 .hfp-volume-wrap {
502 position: relative;
503 flex-shrink: 0;
504 display: flex;
505 align-items: center;
506 gap: 0;
507 }
508
509 .hfp-mute-btn {
510 background: none;
511 border: none;
512 color: var(--hfp-color, #fff);
513 cursor: pointer;
514 padding: 4px;
515 display: flex;
516 align-items: center;
517 justify-content: center;
518 width: 32px;
519 height: 32px;
520 flex-shrink: 0;
521 }
522
523 .hfp-mute-btn:hover {
524 opacity: 0.8;
525 }
526
527 .hfp-mute-btn svg,
528 .hfp-mute-btn svg * {
529 pointer-events: none;
530 }
531
532 .hfp-volume-slider-wrap {
533 width: 0;
534 overflow: hidden;
535 transition: width 0.2s ease;
536 display: flex;
537 align-items: center;
538 }
539
540 .hfp-volume-wrap:hover .hfp-volume-slider-wrap {
541 width: 64px;
542 }
543
544 .hfp-volume-slider {
545 width: 56px;
546 height: var(--hfp-scrubber-height, 4px);
547 background: var(--hfp-scrubber-bg, rgba(255, 255, 255, 0.3));
548 border-radius: var(--hfp-scrubber-radius, 2px);
549 cursor: pointer;
550 position: relative;
551 overflow: hidden;
552 margin-left: 4px;
553 margin-right: 4px;
554 }
555
556 .hfp-volume-fill {
557 position: absolute;
558 top: 0;
559 left: 0;
560 height: 100%;
561 background: var(--hfp-accent, #fff);
562 pointer-events: none;
563 }
564`,en=`<svg width="24" height="24" viewBox="46 21 54 56" fill="currentColor"><path d="M87.5129 57.5141L56.9696 73.5433C52.8371 75.7098 48.7046 73.2553 49.6688 69.2104L58.9483 30.1391C59.9125 26.0942 65.2097 23.6397 68.3154 25.8062L91.2447 41.8354C96.4668 45.4796 94.4631 53.8699 87.5129 57.5141Z"/></svg>`,tn=`<svg width="24" height="24" viewBox="0 0 18 18" fill="currentColor"><rect x="3" y="2" width="4" height="14"/><rect x="11" y="2" width="4" height="14"/></svg>`,nn=`<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M3 9v6h4l5 5V4L7 9H3z"/><path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02z"/><path d="M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/></svg>`,rn=`<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M3 9v6h4l5 5V4L7 9H3z"/><path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02z"/></svg>`,an=`<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M3 9v6h4l5 5V4L7 9H3z"/><path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02z" opacity="0.3"/><line x1="18" y1="7" x2="14" y2="17" stroke="currentColor" stroke-width="2"/></svg>`,on=[.25,.5,1,1.5,2,4];function sn(e){return`${e}x`}function cn(e){if(!Number.isFinite(e)||e<0)return`0:00`;let t=Math.floor(e);return`${Math.floor(t/60)}:${(t%60).toString().padStart(2,`0`)}`}function ln(e,t,n={}){let r=n.speedPresets??on,i=document.createElement(`div`);i.className=`hfp-controls`,i.addEventListener(`click`,e=>{e.stopPropagation()});let a=document.createElement(`button`);a.className=`hfp-play-btn`,a.type=`button`,a.innerHTML=`<span class="hfp-ico hfp-ico-play">${en}</span><span class="hfp-ico hfp-ico-pause">${tn}</span>`,a.setAttribute(`aria-label`,`Play`);let o=document.createElement(`div`);o.className=`hfp-scrubber`;let s=document.createElement(`div`);s.className=`hfp-progress`,s.style.width=`0%`,o.appendChild(s);let c=document.createElement(`span`);c.className=`hfp-time`,c.textContent=`0:00 / 0:00`;let l=document.createElement(`div`);l.className=`hfp-speed-wrap`;let u=document.createElement(`button`);u.className=`hfp-speed-btn`,u.type=`button`,u.textContent=`1x`,u.setAttribute(`aria-label`,`Playback speed: 1x`);let d=document.createElement(`div`);d.className=`hfp-speed-menu`,d.setAttribute(`role`,`menu`);for(let e of r){let t=document.createElement(`button`);t.className=`hfp-speed-option`,t.type=`button`,t.setAttribute(`role`,`menuitem`),t.dataset.speed=String(e),t.textContent=sn(e),e===1&&t.classList.add(`hfp-active`),d.appendChild(t)}l.appendChild(d),l.appendChild(u);let f=document.createElement(`div`);f.className=`hfp-volume-wrap`;let p=document.createElement(`button`);p.className=`hfp-mute-btn`,p.type=`button`,p.innerHTML=nn,p.setAttribute(`aria-label`,`Mute`);let m=document.createElement(`div`);m.className=`hfp-volume-slider-wrap`;let h=document.createElement(`div`);h.className=`hfp-volume-slider`,h.setAttribute(`role`,`slider`),h.setAttribute(`aria-label`,`Volume`),h.setAttribute(`aria-valuemin`,`0`),h.setAttribute(`aria-valuemax`,`100`),h.setAttribute(`aria-valuenow`,`100`),h.tabIndex=0;let g=document.createElement(`div`);g.className=`hfp-volume-fill`,g.style.width=`100%`,h.appendChild(g),m.appendChild(h),f.appendChild(m),f.appendChild(p),n.audioLocked&&(f.style.display=`none`),i.appendChild(a),i.appendChild(o),i.appendChild(c),i.appendChild(f),i.appendChild(l),e.appendChild(i);let _=!1,v=!1,y=1,b=null,x=r.indexOf(1);x===-1&&(x=0);let S=(e,t)=>e?an:t===0||t<.5?rn:nn;a.addEventListener(`click`,e=>{e.stopPropagation(),_?t.onPause():t.onPlay()}),p.addEventListener(`click`,e=>{e.stopPropagation(),t.onMuteToggle()});let C=!1,w=e=>{let n=h.getBoundingClientRect(),r=Math.max(0,Math.min(1,(e-n.left)/n.width));y=r,g.style.width=`${r*100}%`,h.setAttribute(`aria-valuenow`,String(Math.round(r*100))),v&&r>0&&t.onMuteToggle(),p.innerHTML=S(v,r),t.onVolumeChange(r)};h.addEventListener(`mousedown`,e=>{e.stopPropagation(),C=!0,w(e.clientX)});let T=e=>{C&&w(e.clientX)},E=()=>{C=!1};document.addEventListener(`mousemove`,T),document.addEventListener(`mouseup`,E),h.addEventListener(`touchstart`,e=>{C=!0;let t=e.touches[0];t&&w(t.clientX)},{passive:!0});let D=e=>{if(C){let t=e.touches[0];t&&w(t.clientX)}},O=()=>{C=!1};document.addEventListener(`touchmove`,D,{passive:!0}),document.addEventListener(`touchend`,O);let k=.05;h.addEventListener(`keydown`,e=>{let n=y;if(e.key===`ArrowRight`||e.key===`ArrowUp`)n=Math.min(1,y+k);else if(e.key===`ArrowLeft`||e.key===`ArrowDown`)n=Math.max(0,y-k);else return;e.preventDefault(),e.stopPropagation(),y=n,g.style.width=`${n*100}%`,h.setAttribute(`aria-valuenow`,String(Math.round(n*100))),v&&n>0&&t.onMuteToggle(),p.innerHTML=S(v,n),t.onVolumeChange(n)});let A=e=>{for(let t of d.querySelectorAll(`.hfp-speed-option`))t.classList.toggle(`hfp-active`,t.dataset.speed===String(e))};u.addEventListener(`click`,e=>{e.stopPropagation();let t=d.classList.toggle(`hfp-open`);u.setAttribute(`aria-expanded`,String(t))}),d.addEventListener(`click`,e=>{e.stopPropagation();let n=e.target.closest(`.hfp-speed-option`);if(!n)return;let i=parseFloat(n.dataset.speed);x=r.indexOf(i),u.textContent=sn(i),u.setAttribute(`aria-label`,`Playback speed: ${sn(i)}`),A(i),d.classList.remove(`hfp-open`),u.setAttribute(`aria-expanded`,`false`),t.onSpeedChange(i)});let j=()=>{d.classList.remove(`hfp-open`),u.setAttribute(`aria-expanded`,`false`)};document.addEventListener(`click`,j);let M=e=>{let n=o.getBoundingClientRect(),r=Math.max(0,Math.min(1,(e-n.left)/n.width));t.onSeek(r)},N=!1;o.addEventListener(`mousedown`,e=>{e.stopPropagation(),N=!0,t.onScrubStart?.(),M(e.clientX)});let ee=e=>{N&&M(e.clientX)},te=()=>{N&&(N=!1,t.onScrubEnd?.())};document.addEventListener(`mousemove`,ee),document.addEventListener(`mouseup`,te),o.addEventListener(`touchstart`,e=>{N=!0,t.onScrubStart?.();let n=e.touches[0];n&&M(n.clientX)},{passive:!0});let P=e=>{if(N){let t=e.touches[0];t&&M(t.clientX)}},ne=()=>{N&&(N=!1,t.onScrubEnd?.())};document.addEventListener(`touchmove`,P,{passive:!0}),document.addEventListener(`touchend`,ne);let re=()=>_&&!N&&!C&&!i.querySelector(`:focus-visible`),ie=()=>{i.classList.remove(`hfp-hidden`),b&&clearTimeout(b),b=setTimeout(()=>{re()&&i.classList.add(`hfp-hidden`)},3e3)},ae=e instanceof ShadowRoot?e.host:e,oe=()=>ie(),se=()=>{re()&&i.classList.add(`hfp-hidden`)};return ae.addEventListener(`mousemove`,oe),ae.addEventListener(`keydown`,oe),ae.addEventListener(`focusin`,oe),ae.addEventListener(`mouseleave`,se),{updateTime(e,t){let n=t>0?Math.min(e,t):e,r=t>0?n/t*100:0;s.style.width=`${r}%`,c.textContent=`${cn(n)} / ${cn(t)}`},updatePlaying(e){let t=e!==_;_=e,a.classList.toggle(`hfp-playing`,e),a.setAttribute(`aria-label`,e?`Pause`:`Play`),e?t&&ie():(b&&clearTimeout(b),i.classList.remove(`hfp-hidden`))},updateSpeed(e){let t=r.indexOf(e);t!==-1&&(x=t),u.textContent=sn(e),u.setAttribute(`aria-label`,`Playback speed: ${sn(e)}`),A(e)},updateMuted(e){v=e,p.innerHTML=S(e,y),p.setAttribute(`aria-label`,e?`Unmute`:`Mute`)},updateVolume(e){y=e,g.style.width=`${e*100}%`,h.setAttribute(`aria-valuenow`,String(Math.round(e*100))),p.innerHTML=S(v,e)},setVolumeControlsHidden(e){f.style.display=e?`none`:``},show(){i.style.display=``},hide(){i.style.display=`none`},destroy(){document.removeEventListener(`mousemove`,ee),document.removeEventListener(`mouseup`,te),document.removeEventListener(`touchmove`,P),document.removeEventListener(`touchend`,ne),document.removeEventListener(`mousemove`,T),document.removeEventListener(`mouseup`,E),document.removeEventListener(`touchmove`,D),document.removeEventListener(`touchend`,O),document.removeEventListener(`click`,j),ae.removeEventListener(`mousemove`,oe),ae.removeEventListener(`keydown`,oe),ae.removeEventListener(`focusin`,oe),ae.removeEventListener(`mouseleave`,se),b&&clearTimeout(b),i.remove()}}}function un(e,t,n,r,i,a=!1){let o=r?r.split(`,`).map(Number).filter(e=>!isNaN(e)&&e>0):void 0,s=ln(e,i,{...o?{speedPresets:o}:{},audioLocked:a});return s.updateMuted(t),s.updateVolume(n),s}function dn(e,t,n){return t?(n||(n=document.createElement(`img`),n.className=`hfp-poster`,e.appendChild(n)),n.src=t,n):(n?.remove(),null)}function fn(e){return e.composedPath().some(e=>e instanceof HTMLElement&&e.classList.contains(`hfp-controls`))}var pn=null;function mn(e,t){if(typeof CSSStyleSheet<`u`)try{pn||(pn=new CSSStyleSheet,pn.replaceSync(t)),e.adoptedStyleSheets=[pn];return}catch{}let n=document.createElement(`style`);n.textContent=t,e.appendChild(n)}function hn(){let e=document.createElement(`div`);e.className=`hfp-container`;let t=document.createElement(`iframe`);return t.className=`hfp-iframe`,t.sandbox.add(`allow-scripts`,`allow-same-origin`),t.allow=`autoplay; fullscreen`,t.referrerPolicy=`no-referrer`,t.title=`HyperFrames Composition`,t.setAttribute(Bt,``),e.appendChild(t),{container:e,iframe:t}}function gn(e,t,n,r){let i=e.offsetWidth,a=e.offsetHeight;if(i===0||a===0)return!1;let o=Math.min(i/n,a/r);return t.style.width=`${n}px`,t.style.height=`${r}px`,t.style.transform=`translate(-50%, -50%) scale(${o})`,!0}function _n(e,t,n){return n.end<=0?!1:e+(n.shown<n.end&&t>0?t+.001:0)>=n.end}var vn=class{constructor(e){this._callbacks=e}_callbacks;_raf=null;_lastUpdateMs=0;_tick=null;start(e,t,n,r,i){this.stop();let a=null,o=0,s=0,c=()=>{if(r()){this._raf=null;return}let t;try{t=e.time()}catch{this._raf=null;return}let l=n(),u=i();u.end>0&&(t=Math.min(t,u.end));let d=a===null?0:t-a;d!==0&&(s=Math.min(d,o),o=d),a=t;let f=_n(t,s,u);f&&(t=u.shown);let p=performance.now();if((p-this._lastUpdateMs>100||f)&&(this._lastUpdateMs=p,this._callbacks.onTimeUpdate(t,l)),f){if(this._callbacks.getLoop()){this._callbacks.restart();return}try{e.pause(),u.shown<u.end&&e.seek(u.shown,!1)}catch{}this._callbacks.onPaused(),this._raf=null}else this._raf=requestAnimationFrame(c)};this._tick=c,this._raf=requestAnimationFrame(c)}poll(){this._raf===null||!this._tick||(cancelAnimationFrame(this._raf),this._tick())}stop(){this._raf!==null&&(cancelAnimationFrame(this._raf),this._raf=null)}get isRunning(){return this._raf!==null}};function yn(e){let t=Array.from(e.querySelectorAll(`[data-composition-id]`));if(t.length===0)return e.body?[e.body]:[];let n=[];for(let e of t)xn(e)||n.push(e);return bn(e),n}function bn(e){let t=e.body;if(!t||typeof console>`u`||typeof console.warn!=`function`)return;let n=t.querySelectorAll(`audio[data-start], video[data-start]`);if(n.length===0)return;let r=[];for(let e of n)e.closest(`[data-composition-id]`)||r.push(e);r.length!==0&&console.warn(`[hyperframes-player] selectMediaObserverTargets: composition hosts are present, but ${r.length} body-level timed media element(s) sit outside every [data-composition-id] subtree and will not be observed. Move them inside a composition host or the parent-frame proxy will never adopt them.`,r)}function xn(e){let t=e.parentElement;for(;t;){if(t.hasAttribute(`data-composition-id`))return!0;t=t.parentElement}return!1}var Sn=e=>4*2**-52*Math.max(1,Math.abs(e));function Cn(e,t){return!Number.isFinite(e)||!Number.isFinite(t)?e===t:Math.abs(e-t)<=Sn(Math.max(Math.abs(e),Math.abs(t)))}function wn(e){return Number.isFinite(e)&&e>0?e:30}function Tn(e){return Number.isFinite(e)&&e>0?e:0}function En(e,t){let n=wn(t),r=Tn(e),i=r*n,a=Math.round(i);return Math.abs(i-a)<=.001?a/n:r}function Dn(e,t,n){return{start:En(e,n),end:Number.isFinite(t)?En(t,n):t}}var On=(e,t)=>e>=t||Cn(e,t),kn=(e,t,n)=>On(e,t)&&e<n&&!Cn(e,n),An=1e-6,jn=(e,t,n,r)=>kn(e,t,n)||On(e,t)&&r>0&&n>=r-An,Mn=(e,t,n,r,i)=>{let a=Dn(t,n,r);return jn(e,a.start,a.end,i)},Nn=[`seconds-time`,`rational-fps`,`seek-keep-playing`,`composition-manifest-v1`,`runtime-data`,`play-range`];function Pn(e,t){let n=Math.abs(e),r=Math.abs(t);for(;r!==0;){let e=n%r;n=r,r=e}return n||1}function Fn(e){let t=Number.isFinite(e)&&e>0?e:30,n=Math.abs(t*1001-Math.round(t*1001))<1e-6,r=Number.isInteger(t)?1:n?1001:1e6,i=Math.round(t*r),a=Pn(i,r);return{numerator:i/a,denominator:r/a}}function In(e,t,n){return Math.max(e,(Math.ceil(t*n-1e-6)-1)/n)}function Ln(e){if(typeof e!=`object`||!e)return null;let t=e;return!Number.isFinite(t.numerator)||!Number.isFinite(t.denominator)||(t.numerator??0)<=0||(t.denominator??0)<=0?null:Number(t.numerator)/Number(t.denominator)}function Rn(e){return{protocolVersion:1,capabilities:Nn,fps:Fn(e)}}function zn(e){let t=e.offsetWidth,n=e.getBoundingClientRect().width;return t>0&&n>0?n/t:null}function Bn(e){return Array.isArray(e)&&e.every(e=>typeof e==`string`)}function Vn(e,t=30){if(typeof e!=`object`||!e)return{status:`legacy`,fps:t};let n=e;if(n.protocolVersion===void 0)return{status:`legacy`,fps:t};if(n.protocolVersion!==1)return{status:`unsupported`,code:`unsupported_protocol_version`,receivedVersion:n.protocolVersion};let r=Ln(n.fps);return r===null||!Bn(n.capabilities)?{status:`unsupported`,code:`invalid_protocol_metadata`,receivedVersion:n.protocolVersion}:{status:`supported`,fps:r,metadata:n}}function Hn(e,t){let n=e.tagName.toLowerCase();if(n===`script`||n===`style`||n===`link`||n===`meta`)return null;let r=n===`video`||n===`audio`?t.resolver.resolveMediaStartForElement(e):t.resolver.resolveStartForElement(e,0),i=t.resolver.resolveDurationForElement(e),a=e.getAttribute(`data-composition-id`);if(a){let n=t.timelineRegistry[a],r=ct(n);!(e.hasAttribute(`data-duration`)||e.hasAttribute(`data-end`)||e.hasAttribute(lt)||e.hasAttribute(ut))&&(i==null||i<=0)&&r!=null&&r>0&&(i=r)}return{start:r,end:(a===null||e!==m(e.ownerDocument))&&i!=null&&i>0?r+i:1/0}}function Un(e,t){let n=Hn(e,t);return n?Mn(t.currentTime,n.start,n.end,t.canonicalFps,t.compositionDuration):!1}var Wn=`first-frame`,Gn=3;function Kn(e){let t=e.ownerDocument?.defaultView;return t&&e instanceof t.Element?!0:e instanceof Element}function qn(e){if(!Kn(e)||e.tagName!==`AUDIO`&&e.tagName!==`VIDEO`)return!1;let t=e.ownerDocument?.defaultView;return t&&e instanceof t.HTMLMediaElement?!0:e instanceof HTMLMediaElement}function Jn(e){return e.hasAttribute(`data-start`)||e.hasAttribute(`data-track-index`)}function Yn(e,t,n){let r=e;for(;r;){if(Jn(r)&&!Un(r,{currentTime:0,compositionDuration:1/0,canonicalFps:30,timelineRegistry:n,resolver:t}))return!1;r=r.parentElement}return!0}function Xn(e,t,n,r){return t===`all`||Yn(e,n,r)}function Zn(e,{scope:t=`all`}={}){let n=e.defaultView,r=Tt({documentRef:e,timelineRegistry:n?.__timelines,includeAuthoredTimingAttrs:!0}),i=Ht(e);return{pendingMedia:Array.from(e.querySelectorAll(`video, audio`)).filter(qn).filter(e=>Xn(e,i&&e.preload!==`auto`?Wn:t,r,n?.__timelines??{})).filter(e=>e.readyState<Gn),pendingImages:Array.from(e.querySelectorAll(`img`)).filter(e=>Xn(e,e.getAttribute(`loading`)?.toLowerCase()===`lazy`?Wn:t,r,n?.__timelines??{})).filter(e=>!e.complete),fontsLoading:e.fonts?.status===`loading`}}function Qn(e,{pendingMedia:t,pendingImages:n,fontsLoading:r},i){let a=t.map(e=>new Promise(t=>{if(e.error){t();return}let n=()=>{e.removeEventListener(`canplay`,n),e.removeEventListener(`error`,n),i.removeEventListener(`abort`,n),t()};e.addEventListener(`canplay`,n),e.addEventListener(`error`,n),i.addEventListener(`abort`,n,{once:!0})})),o=n.map(e=>e.decode?e.decode().catch(()=>{}):Promise.resolve()),s=r&&e.fonts?e.fonts.ready.then(()=>{}):Promise.resolve();return Promise.all([...a,...o,s]).then(()=>{})}function $n(e,t,{scope:n=`all`}={}){let r=Zn(e,{scope:n});return r.pendingMedia.length===0&&r.pendingImages.length===0&&!r.fontsLoading?null:Qn(e,r,t)}var er=50;function tr(e,t){let n=e.defaultView;return!n||n.__renderReady||!n.__hf?null:new Promise(e=>{let r,i=()=>{r!==void 0&&clearTimeout(r),t.removeEventListener(`abort`,i),e()};if(t.aborted){i();return}t.addEventListener(`abort`,i,{once:!0});let a=()=>{n.__renderReady?i():r=setTimeout(a,er)};a()})}var nr=50,rr=1.5,ir=2,ar=1500;function or(e,t){return new Promise(n=>{if(t.aborted){n(-1);return}let r=0,i=()=>{e.cancelAnimationFrame?.(r),n(-1)};t.addEventListener(`abort`,i,{once:!0}),r=e.requestAnimationFrame(e=>{t.removeEventListener(`abort`,i),n(e)})})}function sr(e,t){let n=e.defaultView;return n?(async()=>{let e=await or(n,t);if(t.aborted)return;let r=await or(n,t),i=r-e,a=0;for(;!t.aborted&&a<ir;){if(r-e>=ar)return;let o=await or(n,t);if(t.aborted)return;let s=o-r;i=Math.min(i,s),a=s<nr||s<=i*rr?a+1:0,r=o}})():null}var cr=8e3;function lr(e,t,n={}){let r=n.inputs??[(e,t)=>$n(e,t,{scope:n.scope}),tr,sr],i=new AbortController,a=r.map(t=>t(e,i.signal)).filter(e=>e!==null);if(a.length===0){t({timedOut:!1});return}let o=n.timeoutMs??cr,s,c=new Promise(e=>{s=setTimeout(()=>e(`timed-out`),o)});Promise.race([Promise.all(a).then(()=>`done`),c]).then(e=>{clearTimeout(s),i.abort(),t({timedOut:e===`timed-out`})})}function ur(e,t,n={}){lr(e,t,{...n,scope:Wn})}function dr(e,t,n){for(let n of t){let t=e.getAttribute(n);if(t===null||t.trim()===``)continue;let r=Number(t);if(Number.isFinite(r))return r}return n}function fr(e){return{start:dr(e,[`data-start`],0),duration:dr(e,[`data-duration`],0),mediaStart:v(t=>e.getAttribute(t)),playbackRate:dr(e,[`data-playback-rate`],1)}}var pr=.04,mr=.5,hr=.03,gr=[[.3,.25],[.1,.1]],_r=.01,vr=.1,yr=.1,br=.65,xr=new WeakMap,Sr=new WeakSet;function Cr(e,t,r,i,a=e.tagName===`AUDIO`){let o=Math.abs(t);if(a&&n())return xr.delete(e),{rate:r,seek:i&&o>br};i&&o<=pr&&Sr.delete(e);let s=!Sr.has(e)||o>mr;if(a&&i&&o>yr&&s)return xr.delete(e),Sr.add(e),{rate:r,seek:!0};let c=Math.sign(t),l=xr.get(e);if(o>pr)xr.set(e,c);else if(l!==c||o<=_r)return xr.delete(e),{rate:r,seek:!1};let u=gr.find(([e])=>o>e)?.[1]??hr;return{rate:r*(1+c*(a?Math.min(u,vr):u)),seek:!1}}function wr(e){xr.delete(e),Sr.delete(e)}var Tr=.004,Er=1.5,Dr=class{_entries=[];_mediaObserver;_playbackErrorPosted=!1;_audioOwner=`runtime`;_urlAudioEntry=null;_urlAudioSrc=null;_dispatchEvent;_getMuted;_getVolume;_getPlaybackRate;_getCurrentTime;_isPaused;constructor(e){this._dispatchEvent=e.dispatchEvent,this._getMuted=e.getMuted,this._getVolume=e.getVolume,this._getPlaybackRate=e.getPlaybackRate,this._getCurrentTime=e.getCurrentTime,this._isPaused=e.isPaused}get audioOwner(){return this._audioOwner}get entries(){return this._entries}resetForIframeLoad(){this._playbackErrorPosted=!1;let e=this._audioOwner===`parent`;this._audioOwner=`runtime`,this.pauseAll();for(let e of this._entries)e!==this._urlAudioEntry&&(e.el.src=``);this._entries=this._urlAudioEntry?[this._urlAudioEntry]:[],this._urlAudioSrc&&!this._urlAudioEntry&&(this._urlAudioEntry=this._createEntry(this._urlAudioSrc,`audio`,0,1/0)),this.teardownObserver(),e&&this._dispatchEvent(new CustomEvent(`audioownershipchange`,{detail:{owner:`runtime`,reason:`iframe-reload`}}))}destroy(){this.teardownObserver();for(let e of this._entries)e.el.pause(),e.el.src=``;this._entries=[],this._urlAudioEntry=null,this._urlAudioSrc=null,this._audioOwner=`runtime`,this._playbackErrorPosted=!1}updateMuted(e){for(let t of this._entries)t.el.muted=e}updateVolume(e){for(let t of this._entries)t.el.volume=e}updatePlaybackRate(e){for(let t of this._entries)t.el.playbackRate=e}_playEntry(e){e.el.src&&e.el.play().catch(e=>this._reportPlaybackError(e))}_playEntryIfActive(e){this._refreshEntryBounds(e),this._inWindow(e,this._getCurrentTime())&&this._playEntry(e)}_refreshEntryBounds(e){if(!e.source?.isConnected)return;let t=Xe(e.source);e.start=t.start??0,e.mediaStart=fr(e.source).mediaStart,e.duration=t.duration!=null&&t.duration>0?t.duration:1/0}_inWindow(e,t){return kn(t,e.start,e.start+e.duration)}_preseekUpcoming(e,t){let n=e.start-t;n<=0||n>Er||!e.el.paused||Math.abs(e.el.currentTime-e.mediaStart)>pr&&this._seekTo(e,e.mediaStart)}_seekTo(t,n,r=!1){let i=r?(t.seekLatency??0)*this._getPlaybackRate():0;t.seekIssuedAt=r?performance.now():void 0,t.el.currentTime=e(n+i)}_noteSeekLanded(e){if(e.seekIssuedAt===void 0)return;let t=(performance.now()-e.seekIssuedAt)/1e3;e.seekLatency=e.seekLatency===void 0?t:(e.seekLatency+t)/2,e.seekIssuedAt=void 0}_releaseSteering(e){wr(e.el),e.lastOffset=void 0;let t=this._getPlaybackRate();e.el.playbackRate!==t&&(e.el.playbackRate=t)}_mediaTime(e,t){return t-e.start+e.mediaStart}_gateEntryPlayback(e,t){return this._inWindow(e,t)?(this._audioOwner===`parent`&&!this._isPaused()&&e.el.paused&&this._playEntry(e),!0):(e.el.paused||e.el.pause(),this._releaseSteering(e),!1)}playAll(){for(let e of this._entries)this._playEntryIfActive(e)}primeAll(){if(t())for(let e of this._entries)e.el.paused&&(e.el.play().catch(()=>{}),e.el.pause())}pauseAll(){for(let e of this._entries)e.el.pause()}stopAdoptedMedia(){for(let e of this._entries)e.source&&e.el.pause()}seekAll(e){for(let t of this._entries)this._refreshEntryBounds(t),this._inWindow(t,e)&&this._jumpTo(t,this._mediaTime(t,e))}scrubAll(e){for(let t of this._entries)this._refreshEntryBounds(t),this._inWindow(t,e)?(this._jumpTo(t,this._mediaTime(t,e)),this._playEntry(t)):t.el.paused||t.el.pause()}mirrorTime(e,t){let n=t?.force===!0;for(let t of this._entries){this._refreshEntryBounds(t),this._preseekUpcoming(t,e);let r=t.el.paused;if(!this._gateEntryPlayback(t,e))continue;let i=this._mediaTime(t,e),a=i-t.el.currentTime;n||r?Math.abs(a)>pr&&this._jumpTo(t,i):this._steer(t,i,a)}}_steer(e,t,n){let r=e.lastOffset!==void 0&&Math.abs(n-e.lastOffset)<Tr;e.lastOffset=n;let{rate:i,seek:a}=Cr(e.el,n,this._getPlaybackRate(),r,!0);a?this._jumpTo(e,t,!0):Math.abs(e.el.playbackRate-i)>1e-6&&(e.el.playbackRate=i)}_jumpTo(e,t,n=!1){this._seekTo(e,t,n),this._releaseSteering(e)}promoteToParentProxy(e,t){if(this._audioOwner===`parent`)return;if(this._audioOwner=`parent`,e)for(let t of e.querySelectorAll(`video, audio`))qn(t)&&(t.muted=!0);for(let e of[...this._entries])this._repointToSource(e);let n=this._getCurrentTime();t?t(n,{force:!0}):this.mirrorTime(n,{force:!0}),this._isPaused()||this.playAll(),this._dispatchEvent(new CustomEvent(`audioownershipchange`,{detail:{owner:`parent`,reason:`autoplay-blocked`}}))}setupFromIframe(e){let t=e.querySelectorAll(`audio[data-start], video[data-start]`);for(let e of t)qn(e)&&this._adoptIframeMedia(e);this._observeDynamicMedia(e)}setupFromUrl(e){if(this._urlAudioSrc===e&&this._urlAudioEntry)return;this.teardownUrlAudio();let t=this._createEntry(e,`audio`,0,1/0);this._urlAudioEntry=t,this._urlAudioSrc=e,t&&this._audioOwner===`parent`&&!this._isPaused()&&(this.mirrorTime(this._getCurrentTime(),{force:!0}),this.playAll())}teardownUrlAudio(){let e=this._urlAudioEntry;if(this._urlAudioEntry=null,this._urlAudioSrc=null,!e)return;e.el.pause(),e.el.src=``;let t=this._entries.indexOf(e);t!==-1&&this._entries.splice(t,1)}teardownObserver(){this._mediaObserver?.disconnect(),this._mediaObserver=void 0}_reportPlaybackError(e){this._playbackErrorPosted||(this._playbackErrorPosted=!0,this._dispatchEvent(new CustomEvent(`playbackerror`,{detail:{source:`parent-proxy`,error:e}})))}_createEntry(e,t,n,r,i){if(!i&&this._urlTaken(e))return null;let a=t===`video`?document.createElement(`video`):new Audio;a.preload=`auto`;let o=i?.getAttribute(`crossorigin`);o!=null&&a.setAttribute(`crossorigin`,o),a.src=e,a.load(),a.muted=this._getMuted(),a.volume=this._getVolume();let s=this._getPlaybackRate();s!==1&&(a.playbackRate=s);let c={el:a,start:n,duration:r,mediaStart:i?fr(i).mediaStart:0,source:i};return a.addEventListener(`seeked`,()=>this._noteSeekLanded(c)),this._entries.push(c),c}_resolveIframeMediaSrc(e){let t=e.getAttribute(`src`)||e.querySelector(`source`)?.getAttribute(`src`);return t?new URL(t,e.ownerDocument.baseURI).href:null}_adoptIframeMedia(e){if(e.preload===`metadata`||e.preload===`none`||this._entries.some(t=>t.source===e)||e.tagName===`VIDEO`&&e.hasAttribute(`muted`))return;let t=this._resolveIframeMediaSrc(e);if(!t)return;let n=Xe(e),r=n.start??0,i=n.duration??1/0,a=e.tagName===`VIDEO`?`video`:`audio`,o=this._createEntry(t,a,r,i,e);o&&this._audioOwner===`parent`&&(this.mirrorTime(this._getCurrentTime(),{force:!0}),this._isPaused()||this._playEntryIfActive(o))}_followIframeMediaSrc(e){let t=this._entries.find(t=>t.source===e);if(!t)return this._adoptIframeMedia(e);this._audioOwner!==`parent`||!this._repointToSource(t)||(this.mirrorTime(this._getCurrentTime(),{force:!0}),this._isPaused()||this._playEntryIfActive(t))}_urlTaken(e){return this._entries.some(t=>t.source&&!t.source.isConnected?!1:(t.source&&this._resolveIframeMediaSrc(t.source)||t.el.src)===e)}_repointToSource(e){let t=e.source?this._resolveIframeMediaSrc(e.source):null;return!t||e.el.src===t?!1:(e.el.src=t,e.el.load(),!0)}_detachIframeMedia(e){let t=this._entries.find(t=>t.source===e);t&&this._removeEntry(t)}_removeEntry(e){e.el.pause(),e.el.src=``,this._entries.splice(this._entries.indexOf(e),1)}_observeDynamicMedia(e){if(this.teardownObserver(),typeof MutationObserver>`u`||!e.body)return;let t=new MutationObserver(e=>{for(let t of e)if(t.type===`attributes`&&t.attributeName===`src`){let e=t.target;qn(e)&&e.matches(`audio[data-start], video[data-start]`)&&this._followIframeMediaSrc(e)}else if(t.type===`attributes`&&t.attributeName===`preload`){let e=t.target;qn(e)&&e.matches(`audio[data-start], video[data-start]`)&&(e.preload===`auto`?this._adoptIframeMedia(e):this._detachIframeMedia(e))}else{for(let e of t.addedNodes){if(!Kn(e))continue;let t=[];qn(e)&&e.matches(`audio[data-start], video[data-start]`)&&t.push(e);let n=e.querySelectorAll(`audio[data-start], video[data-start]`);for(let e of n)qn(e)&&t.push(e);for(let e of t)this._adoptIframeMedia(e)}for(let e of t.removedNodes){if(!Kn(e))continue;let t=[];qn(e)&&e.matches(`audio[data-start], video[data-start]`)&&t.push(e);let n=e.querySelectorAll(`audio[data-start], video[data-start]`);for(let e of n)qn(e)&&t.push(e);for(let e of t)this._detachIframeMedia(e)}}}),n={childList:!0,subtree:!0,attributes:!0,attributeFilter:[`preload`,`src`]},r=yn(e);for(let e of r)t.observe(e,n);this._mediaObserver=t}};function Or(e,t,n){if(e===null&&t===null)return{range:null,clamped:!1};let r=e??0,i=t!==null&&n>0&&t>n,a=i?n:t;return!(r>=0)||!((a??(n>0?n:1/0))>r)?{range:null,clamped:!0}:{range:{start:r,end:a},clamped:i}}function kr(e,t,n){let r=e.end??t;return r<t?In(e.start,r,n):r}function Ar(e,t,n,r){return e<t.start||e>=kr(t,n,r)}var jr=100;function Mr(e,t){return typeof e.currentTime==`number`&&Number.isFinite(e.currentTime)?e.currentTime:(e.frame??0)/t}function Nr(e,t,n){return n<=0?!1:e.ended===!0?!0:e.ended===!1&&!e.isPlaying?!1:t>=n}function Pr(e,t,n,r,i,a){let{duration:o}=n;if(!i)return{start:0,shownAtEnd:o,atEnd:Nr(e,t,o),stopRuntime:!1,entering:!1};if(e.ownsRange){let n=r&&e.ended===!0&&!e.isPlaying;return{start:i.start,shownAtEnd:t,atEnd:n,stopRuntime:!1,entering:!1}}return Fr(e,t,n,r,i,a)}function Fr(e,t,n,r,i,a){let o=i.end??n.duration,s=n.enteringRange===!0&&(t<i.start||t>=o);return{start:i.start,shownAtEnd:kr(i,n.duration,a),atEnd:r&&!s&&Nr(e,t,o),stopRuntime:e.isPlaying,entering:s}}function Ir(e,t,n,r){let i=Mr(e,t),a=!n.paused,o=a||e.isPlaying,s=r.getPlayRange?.(),c=Pr(e,i,n,o,s,t),{atEnd:l,start:u}=c,d=n.duration>0?Math.min(i,n.duration):i,f=l?c.shownAtEnd:d,p=!e.isPlaying,m=l&&o;if(m&&r.getLoop())return r.media.audioOwner===`parent`&&r.media.pauseAll(),r.seek(u),r.play(),{...n,currentTime:u,paused:!1,enteringRange:!0};let h={...n,currentTime:f,paused:p,enteringRange:c.entering};r.media.audioOwner===`parent`&&(a&&p?r.media.pauseAll():!a&&!p&&r.media.playAll(),r.media.mirrorTime(f));let g=performance.now(),_=p!==n.paused;return(g-n.lastUpdateMs>jr||_)&&(h.lastUpdateMs=g,r.updateControlsTime(f,n.duration),r.updateControlsPlaying(!p),r.dispatchEvent(new CustomEvent(`timeupdate`,{detail:{currentTime:f}}))),m&&(c.stopRuntime&&r.seek(f),r.media.audioOwner===`parent`&&r.media.pauseAll(),h.paused=!0,r.updateControlsPlaying(!1),r.dispatchEvent(new Event(`ended`))),h}function Lr(e){return Array.isArray(e)?e.filter(e=>typeof e==`object`&&!!e&&typeof e.id==`string`&&typeof e.start==`number`&&typeof e.duration==`number`):[]}function Rr(e,t,n){if(e.source!==t)return;let r=e.data;if(!r||r.source!==`hf-preview`)return;let i=Vn(r);if(i.status===`unsupported`){n.dispatchEvent(new CustomEvent(`runtimeprotocolerror`,{detail:{code:i.code,receivedVersion:i.receivedVersion}}));return}n.setRuntimeFps?.(i.fps);let a=i.status===`supported`&&i.metadata.capabilities.includes(`play-range`);if(n.setRuntimeOwnsPlayRange?.(a),r.type===`shader-transition-state`){let e=r.state&&typeof r.state==`object`?r.state:{};n.shaderLoader.update(e,n.getShaderLoadingMode()),n.dispatchEvent(new CustomEvent(`shadertransitionstate`,{detail:{compositionId:r.compositionId,state:e}}))}else if(r.type===`ready`)n.onRuntimeReady();else if(r.type===`assets-ready`)n.onRuntimeAssetsReady?.(r.timedOut===!0);else if(r.type===`runtime-data-error`)n.onRuntimeDataError?.(r.channel,r.requestId,r.message);else if(r.type===`runtime-data-applied`)n.onRuntimeDataApplied?.(r.channel,r.requestId);else if(r.type===`state`)n.setPlaybackState(Ir({frame:r.frame??0,currentTime:r.currentTime,ended:typeof r.ended==`boolean`?r.ended:void 0,isPlaying:!!r.isPlaying,ownsRange:a},i.fps,n.getPlaybackState(),n)),n.setBuffering?.(r.buffering===!0);else if(r.type===`media-autoplay-blocked`){if(n.shouldPromoteMediaAutoplayFallback?.()===!1)return;let e=null;try{e=n.getIframeDoc()}catch{}n.media.promoteToParentProxy(e,(e,t)=>n.media.mirrorTime(e,t)),n.sendControl(`set-media-output-muted`,{muted:!0})}else if(r.type===`timeline`&&r.durationInFrames>0){let e=Number(r.durationSeconds),t=Number(r.durationInFrames),a=Number.isFinite(e)&&e>0?e:t/i.fps;if(Number.isFinite(r.compositionWidth)&&r.compositionWidth>0&&Number.isFinite(r.compositionHeight)&&r.compositionHeight>0&&n.setCompositionSize(r.compositionWidth,r.compositionHeight),Number.isFinite(a)&&a>0){let e=n.getPlaybackState();n.setPlaybackState({...e,duration:a}),n.updateControlsTime(e.currentTime,a),n.onRuntimeTimelineReady(a,typeof r.assetsReady==`boolean`?r.assetsReady:void 0)}n.setScenes(Lr(r.scenes))}else r.type===`stage-size`&&Number.isFinite(r.width)&&r.width>0&&Number.isFinite(r.height)&&r.height>0&&n.setCompositionSize(r.width,r.height)}function zr(e,t){return e.includes(t)?!0:/hyperframe\.runtime\.iife\.js|__hyperframes\s*=/.test(e)}var Br=new Set([`>`,` `,` `,`
565`,`\r`,`\f`]);function Vr(e,t){let n=e.toLowerCase(),r=`<${t}`,i=0;for(;i<n.length;){let e=n.indexOf(r,i);if(e<0)return null;let t=n[e+r.length];if(Br.has(t)){let t=n.indexOf(`>`,e+r.length);return t<0?null:{index:e,end:t+1}}i=e+r.length}return null}function Hr(e,t){if(!e||zr(e,t))return e;let n=`<script src="${t}"><\/script>`,r=Vr(e,`head`);if(r)return e.slice(0,r.end)+n+e.slice(r.end);let i=Vr(e,`body`);if(i)return e.slice(0,i.index)+n+e.slice(i.index);let a=Vr(e,`html`);return a?e.slice(0,a.end)+n+e.slice(a.end):n+e}var Ur=`shader-capture-scale`,Wr=`shader-loading`,Gr=`runtime-src`,Kr=`__hf_shader_capture_scale`,qr=`__hf_shader_loading`,Jr=[`Preparing scene transitions`,`Sampling outgoing scene motion`,`Sampling incoming scene motion`,`Caching transition frames`,`Finalizing transition preview`];function Yr(e){if(e===null)return null;let t=Number(e);return!Number.isFinite(t)||t<=0?null:String(Math.min(1,Math.max(.25,t)))}function Xr(e){if(e===null||e.trim()===``)return`composition`;let t=e.trim().toLowerCase();return t===`none`||t===`false`||t===`0`||t===`off`?`none`:t===`player`||t===`true`||t===`1`||t===`on`?`player`:`composition`}function Zr(e,t){return e.filter(e=>e!==``&&e.split(`=`)[0]!==t)}function Qr(e,t,n){let r=e.indexOf(`#`),i=r>=0?e.slice(0,r):e,a=r>=0?e.slice(r):``,o=i.indexOf(`?`),s=o>=0?i.slice(0,o):i,c=Zr((o>=0?i.slice(o+1):``).split(`&`),Kr);c=Zr(c,qr),t!==null&&c.push(`${Kr}=${encodeURIComponent(t)}`),n!==`composition`&&c.push(`${qr}=${encodeURIComponent(n)}`);let l=c.join(`&`);return`${s}${l?`?${l}`:``}${a}`}function $r(e,t,n){if(t===null&&n===`composition`)return e;let r=[];t!==null&&r.push(`window.__HF_SHADER_CAPTURE_SCALE=${JSON.stringify(t)};`),n!==`composition`&&r.push(`window.__HF_SHADER_LOADING=${JSON.stringify(n)};`);let i=`<script data-hyperframes-player-shader-options>${r.join(``)}<\/script>`;return/<head\b[^>]*>/i.test(e)?e.replace(/<head\b[^>]*>/i,e=>`${e}${i}`):/<html\b[^>]*>/i.test(e)?e.replace(/<html\b[^>]*>/i,e=>`${e}${i}`):`${i}${e}`}function ei(e){return Xr(e.getAttribute(Wr))}function ti(e){return Number(Yr(e.getAttribute(Ur))??`1`)}function ni(e,t){return Qr(t,Yr(e.getAttribute(Ur)),ei(e))}function ri(e,t){return Hr($r(t,Yr(e.getAttribute(Ur)),ei(e)),ii(e))}function ii(e){let t=e.getAttribute(Gr)?.trim();if(!t)return Jt;try{let e=new URL(t,document.baseURI),n=e.protocol===`http:`||e.protocol===`https:`,r=e.hostname===`127.0.0.1`||e.hostname===`localhost`||e.hostname===`[::1]`;return n&&(r||e.origin===location.origin)?e.href:Jt}catch{return Jt}}var ai=`M10.1851 57.8021L33.1145 73.8313C36.2202 75.9978 41.5173 73.5433 42.4816 69.4984L51.7611 30.4271C52.7253 26.3822 48.5802 23.9277 44.4602 26.0942L13.917 42.1235C6.96677 45.7676 4.97564 54.1579 10.1851 57.8021Z`,oi=`M87.5129 57.5141L56.9696 73.5433C52.8371 75.7098 48.7046 73.2553 49.6688 69.2104L58.9483 30.1391C59.9125 26.0942 65.2097 23.6397 68.3154 25.8062L91.2447 41.8354C96.4668 45.4796 94.4631 53.8699 87.5129 57.5141Z`,si=`url("data:image/svg+xml,${encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="${ai}"/><path d="${oi}"/></svg>`)}")`;function ci(){let e=document.createElement(`div`);e.className=`hfp-shader-loader`,e.setAttribute(`role`,`status`),e.setAttribute(`aria-live`,`polite`),e.setAttribute(`aria-label`,`Preparing scene transitions`),e.setAttribute(`data-hyperframes-ignore`,``),e.draggable=!1;let t=e=>{e.preventDefault(),e.stopPropagation()};for(let n of[`selectstart`,`dragstart`,`pointerdown`,`mousedown`,`click`,`dblclick`,`contextmenu`,`touchstart`])e.addEventListener(n,t,{capture:!0});let n=document.createElement(`div`);n.className=`hfp-shader-loader-panel`,n.draggable=!1;let r=document.createElement(`div`);r.className=`hfp-shader-loader-mark`,r.draggable=!1,r.innerHTML=[`<svg width="78" height="78" viewBox="0 0 100 100" fill="none" aria-hidden="true" draggable="false">`,`<path d="${ai}" fill="url(#hfp-shader-loader-grad-left)"/>`,`<path d="${oi}" fill="url(#hfp-shader-loader-grad-right)"/>`,`<defs>`,`<linearGradient id="hfp-shader-loader-grad-left" x1="48.5676" y1="25" x2="44.7804" y2="71.9384" gradientUnits="userSpaceOnUse">`,`<stop stop-color="#06E3FA"/>`,`<stop offset="1" stop-color="#4FDB5E"/>`,`</linearGradient>`,`<linearGradient id="hfp-shader-loader-grad-right" x1="54.8282" y1="73.8392" x2="72.0989" y2="32.8932" gradientUnits="userSpaceOnUse">`,`<stop stop-color="#06E3FA"/>`,`<stop offset="1" stop-color="#4FDB5E"/>`,`</linearGradient>`,`</defs>`,`</svg>`].join(``);let i=document.createElement(`div`);i.className=`hfp-shader-loader-sheen`,i.style.setProperty(`mask-image`,si),i.style.setProperty(`-webkit-mask-image`,si),r.appendChild(i);let a=document.createElement(`div`);a.className=`hfp-shader-loader-title`;let o=document.createElement(`span`);o.className=`hfp-shader-loader-title-text`,o.textContent=Jr[0]||`Preparing scene transitions`,a.appendChild(o);let s=document.createElement(`div`);s.className=`hfp-shader-loader-detail`,s.textContent=`Rendering animated scene samples for shader transitions.`;let c=document.createElement(`div`);c.className=`hfp-shader-loader-track`,c.setAttribute(`aria-hidden`,`true`);let l=document.createElement(`div`);l.className=`hfp-shader-loader-fill`,c.appendChild(l);let u=document.createElement(`div`);u.className=`hfp-shader-loader-progress`;let d=e=>{let t=document.createElement(`div`);t.className=`hfp-shader-loader-row`;let n=document.createElement(`span`);n.className=`hfp-shader-loader-label`,n.textContent=e;let r=document.createElement(`span`);return r.className=`hfp-shader-loader-value`,t.appendChild(n),t.appendChild(r),u.appendChild(t),{row:t,label:n,value:r}},f=d(`transition`),p=d(`transition frame`);return n.appendChild(r),n.appendChild(a),n.appendChild(s),n.appendChild(c),n.appendChild(u),e.appendChild(n),{root:e,fill:l,title:o,detail:s,transitionValue:f.value,transitionRow:f.row,frameLabel:p.label,frameValue:p.value,frameRow:p.row}}var li=420;function ui(e,t,n){t.textContent=n,e.style.visibility=n?`visible`:`hidden`}var di=class{_el;_hideTimeout=null;_hiddenCallbacks=[];_drawingAssets=!1;constructor(e){this._el=e}show(){this._hideTimeout&&=(clearTimeout(this._hideTimeout),null),this._el.root.classList.remove(`hfp-hiding`),this._el.root.classList.add(`hfp-visible`)}hide(){this._el.root.classList.contains(`hfp-hiding`)?this._hideTimeout||this._scheduleCleanup():this._el.root.classList.contains(`hfp-visible`)&&(this._el.root.classList.add(`hfp-hiding`),this._el.root.classList.remove(`hfp-visible`),this._scheduleCleanup())}whenHidden(e){let t=this._el.root.classList;t.contains(`hfp-visible`)||t.contains(`hfp-hiding`)?this._hiddenCallbacks.push(e):e()}_flushHidden(){let e=this._hiddenCallbacks;this._hiddenCallbacks=[];for(let t of e)t()}reset(){this._hideTimeout&&=(clearTimeout(this._hideTimeout),null),this._el.root.classList.remove(`hfp-visible`,`hfp-hiding`),this._drawingAssets=!1,this._el.root.classList.remove(`hfp-assets`),this._flushHidden(),this._el.fill.style.transform=`scaleX(0)`,ui(this._el.transitionRow,this._el.transitionValue,``),ui(this._el.frameRow,this._el.frameValue,``)}update(e,t){let n=t===`player`&&e.loading&&!e.ready;if(this._drawingAssets&&!n)return;if(t!==`player`){this.reset();return}if(e.ready||!e.loading){this.hide();return}this._el.root.setAttribute(`aria-label`,`Preparing scene transitions`),this._drawingAssets=!1,this._el.root.classList.remove(`hfp-assets`);let r=typeof e.progress==`number`&&Number.isFinite(e.progress)?e.progress:0,i=typeof e.total==`number`&&Number.isFinite(e.total)?e.total:0,a=i>0?Math.min(1,Math.max(0,r/i)):0,o=Math.min(Jr.length-1,Math.floor(a*Jr.length));this._el.title.textContent=Jr[o]||`Preparing scene transitions`,this._el.detail.textContent=e.phase===`cached`?`Loading cached transition frames before playback.`:e.phase===`finalizing`?`Uploading transition textures for smooth playback.`:`Rendering animated scene samples for shader transitions.`,this._el.fill.style.transform=`scaleX(${a})`;let s=e.currentTransition!==void 0&&e.transitionTotal!==void 0?`${e.currentTransition}/${e.transitionTotal}`:i>0?`${r}/${i}`:``,c=e.transitionFrame!==void 0&&e.transitionFrames!==void 0?`${e.transitionFrame}/${e.transitionFrames}`:``;this._el.frameLabel.textContent=e.phase===`cached`?`cached transition frames`:e.phase===`finalizing`?`finalizing transition frames`:`rendering transition frames`,ui(this._el.transitionRow,this._el.transitionValue,s),ui(this._el.frameRow,this._el.frameValue,c),this._el.root.setAttribute(`aria-valuenow`,String(Math.round(a*100))),this.show()}showAssetsLoading(e=`Loading assets`,t=`Waiting for images, video and fonts to finish loading.`){this.reset(),this._el.title.textContent=e,this._el.detail.textContent=t,this._el.root.setAttribute(`aria-label`,e),this._drawingAssets=!0,this._el.root.classList.add(`hfp-assets`),this.show()}hideAssetsLoading(){this._drawingAssets&&this.hide()}get hideTimeout(){return this._hideTimeout}destroy(){this._hideTimeout&&=(clearTimeout(this._hideTimeout),null),this._hiddenCallbacks=[]}_scheduleCleanup(){this._hideTimeout&&clearTimeout(this._hideTimeout),this._hideTimeout=setTimeout(()=>{this._el.root.classList.remove(`hfp-hiding`),this._hideTimeout=null,this._flushHidden()},li)}};function fi(e){return e?.trim().toLowerCase().startsWith(`video/`)??!1}function pi(t){let n=document.createElement(`video`);n.className=`hfp-video`,n.playsInline=!0,n.preload=`metadata`;let r=new AbortController,{signal:i}=r;return n.addEventListener(`loadedmetadata`,()=>t.onMetadata(n),{signal:i}),n.addEventListener(`durationchange`,()=>t.onDurationChange(n),{signal:i}),n.addEventListener(`resize`,()=>t.onResize(n),{signal:i}),n.addEventListener(`play`,()=>t.onPlay(n),{signal:i}),n.addEventListener(`pause`,()=>t.onPause(n),{signal:i}),n.addEventListener(`timeupdate`,()=>t.onTimeUpdate(),{signal:i}),n.addEventListener(`error`,()=>t.onError(n.error?.message||`Video failed to load`,n.error?.code??null),{signal:i}),{video:n,adapter:{duration:()=>n.duration,time:()=>n.currentTime,seek:t=>{n.currentTime=e(t)},play:()=>n.play().catch(e=>{i.aborted||t.onPlayRejected(e)}),pause:()=>n.pause(),timeScale:e=>{n.defaultPlaybackRate=e,n.playbackRate=e}},destroy:()=>{r.abort(),n.pause(),n.removeAttribute(`src`),n.load(),n.remove()}}}var mi=.1,hi=5,gi=`sandbox-origin`,_i=1e4,vi=8e3,yi=`assets-loading`,bi=`assets-loading-ui`,xi=`buffering`,Si=`low-power-idle`,Ci=`disable-click-to-play`,wi=`range-start`,Ti=`range-end`,Ei=150;function Di(e){return!Number.isFinite(e)||e<=0?1:Math.max(mi,Math.min(hi,e))}var Oi=class extends HTMLElement{static get observedAttributes(){return[`src`,`srcdoc`,`width`,`height`,`controls`,`muted`,`audio-locked`,`volume`,`poster`,`playback-rate`,`audio-src`,`type`,gi,Gr,Ur,Wr,bi,Si,wi,Ti]}shadow;container;sizer=document.createElement(`div`);iframe;posterEl=null;controlsApi=null;resizeObserver;shaderLoader;probe;_ready=!1;_readyDocument=null;_connected=!1;_assetsReady=!1;_painted=!1;_pendingPlay=!1;_assetsGeneration=0;_assetsLoadingShowTimer=null;_bufferingShowTimer=null;_currentTime=0;_duration=0;_paused=!0;_scrubbing=!1;_lastUpdateMs=0;_volume=1;_compositionWidth=1920;_compositionHeight=1080;_rescaleWarned=!1;_directTimelineAdapter=null;_directTimelineClock;_parentTickRaf=null;_media;_scenes=[];_runtimeFps=30;_runtimeBridgeReady=!1;_runtimeAssetsReadyGeneration=-1;_runtimeData=new Map;_runtimeDataRequestId=0;_pendingRuntimeData=new Map;_afterUpdate=null;_videoSource=null;_runtimeOwnsPlayRange=!1;_enteringRange=!1;_rangeClampReported=``;constructor(){super(),this.shadow=this.attachShadow({mode:`open`}),mn(this.shadow,$t),{container:this.container,iframe:this.iframe}=hn(),this.sizer.className=`hfp-sizer`,this.shadow.appendChild(this.sizer),this.shadow.appendChild(this.container);let e=ci();this.shadow.appendChild(e.root),this.shaderLoader=new di(e),this._media=new Dr({dispatchEvent:e=>this._emit(e),getMuted:()=>this.muted,getVolume:()=>this._volume,getPlaybackRate:()=>this.playbackRate,getCurrentTime:()=>this._currentTime,isPaused:()=>this._paused}),this._directTimelineClock=new vn({onTimeUpdate:(e,t)=>{this._currentTime=e,this.controlsApi?.updateTime(e,t),this._emit(new CustomEvent(`timeupdate`,{detail:{currentTime:e}}))},getLoop:()=>this.loop,restart:()=>{this.seek(this._playRange()?.start??0),this.play()},onPaused:()=>{this._media.audioOwner===`parent`&&this._media.pauseAll(),this._paused=!0,this.controlsApi?.updatePlaying(!1),this._emit(new Event(`ended`))},onEnded:()=>this.loop}),this.probe=new Qt(this.iframe,{resolveRuntimeUrl:()=>ii(this),hostOwnsDeadline:()=>this.hasAttribute(`no-load-timeout`),onReady:e=>this._onProbeReady(e),onError:e=>this._emit(new CustomEvent(`error`,{detail:{message:e}}))}),this.addEventListener(`click`,e=>{this.disableClickToPlay||fn(e)||(this._paused?this.play():this.pause())}),this.resizeObserver=new ResizeObserver(()=>this._rescale()),this._onMessage=this._onMessage.bind(this),this._onIframeLoad=this._onIframeLoad.bind(this),this.iframe.addEventListener(`load`,this._onIframeLoad)}connectedCallback(){this._connected=!0,this._applySandboxOriginPolicy(),this.resizeObserver.observe(this),window.addEventListener(`message`,this._onMessage),this.hasAttribute(`controls`)&&this._setupControls(),this.hasAttribute(`poster`)&&(this.posterEl=dn(this.shadow,this.getAttribute(`poster`),this.posterEl)),this.hasAttribute(`audio-src`)&&this._media.setupFromUrl(this.getAttribute(`audio-src`)),this.hasAttribute(`srcdoc`)&&(this.iframe.srcdoc=ri(this,this.getAttribute(`srcdoc`))),this.hasAttribute(`src`)&&this._loadSrc(this.getAttribute(`src`)),!this.hasAttribute(`audio-locked`)&&this._isLockedHostEnvironment()&&this._applyAudioLock(!0)}disconnectedCallback(){this._connected=!1,this._teardownVideo(),this._sendControl(`pause`),this._stopIframeMedia(),this.resizeObserver.disconnect(),window.removeEventListener(`message`,this._onMessage),this.probe.stop(),this._directTimelineClock.stop(),this._stopParentTickClock(),this._directTimelineAdapter=null,this.shaderLoader.destroy(),this._media.destroy(),this.controlsApi?.destroy(),this.controlsApi=null,this._paused=!0,this._pendingPlay=!1,this._abandonComposition(`Player disconnected before runtime data was applied`)}attributeChangedCallback(e,t,n){switch(e){case`src`:if(!this.isConnected)break;n&&this._navigateSrc(n);break;case`type`:{let e=this.getAttribute(`src`);if(!this.isConnected||e===null||!!this._videoSource===this._wantsVideo())break;this._navigateSrc(e);break}case`srcdoc`:if(!this.isConnected)break;if(this._pendingPlay=!1,this._abandonComposition(`Composition navigated before runtime data was applied`),n!==null)this._pauseForVideoSwitch(),this._teardownVideo(),this.iframe.srcdoc=ri(this,n);else{this.iframe.removeAttribute(`srcdoc`);let e=this.getAttribute(`src`);e!==null&&this._wantsVideo()&&this._navigateSrc(e)}break;case gi:this._applySandboxOriginPolicy(this.isConnected&&t!==n);break;case`width`:this._setCompositionSize(Yt(n)??1920,this._compositionHeight);break;case`height`:this._setCompositionSize(this._compositionWidth,Yt(n)??1080);break;case`controls`:n===null?(this.controlsApi?.destroy(),this.controlsApi=null):this._setupControls();break;case`poster`:this.posterEl=dn(this.shadow,n,this.posterEl);break;case`playback-rate`:{let e=Di(parseFloat(n||`1`));this._media.updatePlaybackRate(e),this._sendControl(`set-playback-rate`,{playbackRate:e}),this._directTimelineAdapter?.timeScale?.(e),this.controlsApi?.updateSpeed(e),this._emit(new Event(`ratechange`));break}case`muted`:this._handleMutedChange(n);break;case`audio-locked`:this._applyAudioLock(n!==null);break;case`volume`:{let e=Math.max(0,Math.min(1,parseFloat(n||`1`)));this._volume=e,this._syncVideoAudio(),this._media.updateVolume(e),this._sendControl(`set-volume`,{volume:e}),this.controlsApi?.updateVolume(e),this._emit(new Event(`volumechange`));break}case`audio-src`:n?this._media.setupFromUrl(n):this._media.teardownUrlAudio();break;case bi:n===`none`&&this.shaderLoader.hideAssetsLoading();break;case Si:this._sendControl(`set-idle-heartbeat`,{slow:n!==null});break;case wi:case Ti:this._applyPlayRange(!0);break;case Ur:case Wr:case Gr:if(!this.isConnected)break;this._reloadShaderOptions()}}_applySandboxOriginPolicy(e=!1){this.hasAttribute(gi)?this.iframe.sandbox.remove(`allow-same-origin`):this.iframe.sandbox.add(`allow-same-origin`),e&&this._reloadForSandboxOriginPolicy()}_reloadForSandboxOriginPolicy(){if(this._videoSource)return;this._abandonComposition(`Sandbox policy changed before runtime data was applied`);let e=this.getAttribute(`srcdoc`);if(e!==null){this.iframe.srcdoc=ri(this,e);return}let t=this.getAttribute(`src`);t===null?this.iframe.src=`about:blank`:this._loadSrc(t)}get iframeElement(){return this.iframe}get scenes(){return this._scenes}play(){this._play(!0)}_play(e){if(this._ready&&!this._assetsReady){this._pendingPlay=!0;return}this._pendingPlay=!1,this.posterEl?.remove(),this.posterEl=null;let t=this._ready?this._playRange():null;t?Ar(this._currentTime,t,this._duration,this._runtimeFps)&&(this.seek(t.start),this._enteringRange=!0):this._duration>0&&this._currentTime>=this._duration&&this.seek(0),this._paused=!1;let n=this._tryDirectTimelinePlay(),r=!1;this._sendDisplayScale(),n||(this._sendControl(`play`),this._ready&&!this._directTimelineAdapter?this._startParentTickClock():this._ready||(this._pendingPlay=!0,r=!0)),this._media.audioOwner===`parent`?this._media.playAll():this._media.primeAll(),this.controlsApi?.updatePlaying(!0),!r&&e&&this._emit(new Event(`play`)),n&&this._directTimelineAdapter&&this._directTimelineClock.start(this._directTimelineAdapter,()=>this._currentTime,()=>this._duration,()=>this._paused,()=>this._clockStop())}pause(){this._pendingPlay=!1,this._tryDirectTimelinePause()?this._showPausedVideoTime():this._sendControl(`pause`),this._directTimelineClock.stop(),this._stopParentTickClock(),this._media.audioOwner===`parent`&&this._media.pauseAll(),this._paused=!0,this.controlsApi?.updatePlaying(!1),this._emit(new Event(`pause`))}stopMedia(){this._sendControl(`stop-media`),this._stopIframeMedia(),this._media.stopAdoptedMedia()}seek(e){this._pendingPlay=!1,!this._trySyncSeek(e)&&!this._tryDirectTimelineSeek(e)&&this._sendControl(`seek`,{timeSeconds:e,frame:Math.round(e*this._runtimeFps)}),this._directTimelineClock.stop(),this._stopParentTickClock(),this._currentTime=e,this._media.audioOwner===`parent`&&(this._scrubbing?this._media.scrubAll(e):(this._media.pauseAll(),this._media.seekAll(e))),this._paused=!0,this.controlsApi?.updatePlaying(!1),this.controlsApi?.updateTime(this._currentTime,this._duration)}setColorGrading(e,t){this._sendControl(`set-color-grading`,{target:e,grading:t})}clearColorGrading(e){this._sendControl(`set-color-grading`,{target:e,grading:null})}setColorGradingCompare(e,t){this._sendControl(`set-color-grading-compare`,{target:e,compare:t})}clearColorGradingCompare(e){this._sendControl(`set-color-grading-compare`,{target:e,compare:{enabled:!1}})}setRuntimeData(e,t){if(!/^[a-z][a-z0-9-]{0,63}$/.test(e))throw Error(`Invalid HyperFrames runtime-data channel: ${e}`);if(typeof structuredClone!=`function`)throw Error(`HyperFrames runtime data requires structuredClone support; refusing an unverified payload`);let n=structuredClone(t);this._runtimeData.set(e,n),this._deliverRuntimeData(e,n)}clearRuntimeData(e){if(!/^[a-z][a-z0-9-]{0,63}$/.test(e))throw Error(`Invalid HyperFrames runtime-data channel: ${e}`);this._runtimeData.delete(e),this._deliverRuntimeDataClear(e)}get currentTime(){return this._currentTime}set currentTime(e){this.seek(e)}get duration(){return this._duration}get compositionWidth(){return this._compositionWidth}get compositionHeight(){return this._compositionHeight}get paused(){return this._paused}get ready(){return this._ready}get assetsReady(){return this._assetsReady}get painted(){return this._painted}get playbackRate(){return Di(parseFloat(this.getAttribute(`playback-rate`)||`1`))}set playbackRate(e){this.setAttribute(`playback-rate`,String(Di(e)))}get shaderCaptureScale(){return ti(this)}set shaderCaptureScale(e){this.setAttribute(Ur,String(e))}get shaderLoading(){return ei(this)}set shaderLoading(e){e===`composition`?this.removeAttribute(Wr):this.setAttribute(Wr,e)}get assetsLoadingUi(){return this.getAttribute(bi)===`none`?`none`:`player`}set assetsLoadingUi(e){e===`none`?this.setAttribute(bi,`none`):this.removeAttribute(bi)}get muted(){return this.hasAttribute(`muted`)}set muted(e){e?this.setAttribute(`muted`,``):this.removeAttribute(`muted`)}get audioLocked(){return this.hasAttribute(`audio-locked`)}set audioLocked(e){e?this.setAttribute(`audio-locked`,``):this.removeAttribute(`audio-locked`)}_isLockedHostEnvironment(){if(typeof navigator>`u`)return!1;let e=navigator.userAgent||``;return/\bClaude\/\d/.test(e)&&/\bElectron\b/.test(e)}_isAudioLocked(){return this.hasAttribute(`audio-locked`)||this._isLockedHostEnvironment()}_isSlideshowPlayer(){return this.closest(`hyperframes-slideshow`)!==null}_handleMutedChange(e){e===null&&this._isAudioLocked()?this.setAttribute(`muted`,``):(this._media.updateMuted(e!==null),this._syncVideoAudio(),this._setIframeMediaMuted(e!==null),this._sendControl(`set-muted`,{muted:e!==null}),this.controlsApi?.updateMuted(e!==null),this._emit(new Event(`volumechange`)))}_applyAudioLock(e){e&&(this.muted=!0),this.controlsApi?.setVolumeControlsHidden(e)}get volume(){return this._volume}set volume(e){this.setAttribute(`volume`,String(Math.max(0,Math.min(1,e))))}get disableClickToPlay(){return this.hasAttribute(Ci)}set disableClickToPlay(e){this.toggleAttribute(Ci,e)}get loop(){return this.hasAttribute(`loop`)}set loop(e){e?this.setAttribute(`loop`,``):this.removeAttribute(`loop`)}get rangeStart(){return this._readSeconds(wi)}set rangeStart(e){this._writeSeconds(wi,e)}get rangeEnd(){return this._readSeconds(Ti)}set rangeEnd(e){this._writeSeconds(Ti,e)}_readSeconds(e){let t=this.getAttribute(e);return t===null?null:Number(t)}_writeSeconds(e,t){t==null?this.removeAttribute(e):this.setAttribute(e,String(t))}_hasPlayRange(){return this.hasAttribute(wi)||this.hasAttribute(Ti)}_playRange(){return Or(this.rangeStart,this.rangeEnd,this._duration).range}_sendPlayRange(e){let t=e?.end??null;this._sendControl(`set-play-range`,{startSeconds:e?.start??null,endSeconds:t})}_applyPlayRange(e){let{range:t,clamped:n}=Or(this.rangeStart,this.rangeEnd,this._duration);this._sendPlayRange(t),this._ready&&(this._reportRangeClamp(t,n),t&&e&&!this._pendingPlay&&this._moveIntoPlayRange(t))}_reportRangeClamp(e,t){let n=t?`${this.rangeStart},${this.rangeEnd},${this._duration}`:``;if(n===this._rangeClampReported||(this._rangeClampReported=n,!t))return;let r={rangeStart:e?.start??null,rangeEnd:e?.end??null};this._emit(new CustomEvent(`rangeclamped`,{detail:{...r,duration:this._duration}}))}_moveIntoPlayRange(e){Ar(this._currentTime,e,this._duration,this._runtimeFps)&&(this._paused?this.seek(e.start):this._jumpWhilePlaying(e.start))}_jumpWhilePlaying(e){this._directTimelineAdapter?(this._directTimelineAdapter.seek(e,!1),this._currentTime=e):this._runtimeOwnsPlayRange||(this.seek(e),this._enteringRange=!0,this._play(!1))}_clockStop(){let e=this._playRange(),t=e?.end??this._duration;if(!e)return{end:t,shown:t};let n=kr(e,this._duration,this._runtimeFps);return{end:t,shown:n<t?(n+t)/2:n}}_sendControl(e,t={}){try{let n=this.iframe.contentWindow;return n?(n.postMessage({...t,source:`hf-parent`,type:`control`,action:e,...Rn(this._runtimeFps)},`*`),!0):((e===`set-runtime-data`||e===`clear-runtime-data`)&&this._rejectRuntimeDataDelivery(t.channel,t.requestId,`Composition iframe is unavailable`),!1)}catch(n){return(e===`set-runtime-data`||e===`clear-runtime-data`)&&this._rejectRuntimeDataDelivery(t.channel,t.requestId,n instanceof Error?n.message:String(n)),!1}}_deliverRuntimeData(e,t){if(!this.isConnected||!this._runtimeBridgeReady)return;let n=this._beginRuntimeDataDelivery(e);this._trySetRuntimeDataDirect(e,t,n)||this._sendControl(`set-runtime-data`,{channel:e,payload:t,requestId:n})}_deliverRuntimeDataClear(e){if(!this.isConnected||!this._runtimeBridgeReady)return;let t=this._beginRuntimeDataDelivery(e);this._tryClearRuntimeDataDirect(e,t)||this._sendControl(`clear-runtime-data`,{channel:e,requestId:t})}_trySetRuntimeDataDirect(e,t,n){try{let r=this.iframe.contentWindow?.__hyperframes;return typeof r?.setRuntimeData==`function`&&(r.setRuntimeData(e,t,n),!0)}catch{return!1}}_tryClearRuntimeDataDirect(e,t){try{let n=this.iframe.contentWindow?.__hyperframes;return typeof n?.clearRuntimeData==`function`&&(n.clearRuntimeData(e,t),!0)}catch{return!1}}_replayRuntimeData(){for(let[e,t]of this._runtimeData)this._deliverRuntimeData(e,t)}_beginRuntimeDataDelivery(e){let t=this._pendingRuntimeData.get(e);t&&window.clearTimeout(t.timeoutId),this._runtimeDataRequestId+=1;let n=this._runtimeDataRequestId,r=window.setTimeout(()=>{this._rejectRuntimeDataDelivery(e,n,`Runtime data delivery timed out after ${_i}ms`)},_i);return this._pendingRuntimeData.set(e,{requestId:n,timeoutId:r}),n}_resolveRuntimeDataDelivery(e,t){let n=this._takeRuntimeDataDelivery(e,t);n&&this._emit(new CustomEvent(`runtimedataapplied`,{detail:{channel:e,requestId:n.requestId}}))}_rejectRuntimeDataDelivery(e,t,n){let r=this._takeRuntimeDataDelivery(e,t);r&&this._emit(new CustomEvent(`runtimedataerror`,{detail:{channel:e,requestId:r.requestId,message:typeof n==`string`?n:String(n)}}))}_takeRuntimeDataDelivery(e,t){if(typeof e!=`string`||typeof t!=`number`||!Number.isSafeInteger(t))return null;let n=this._pendingRuntimeData.get(e);return!n||n.requestId!==t?null:(window.clearTimeout(n.timeoutId),this._pendingRuntimeData.delete(e),n)}_rejectAllRuntimeDataDeliveries(e){for(let[t,n]of[...this._pendingRuntimeData])this._rejectRuntimeDataDelivery(t,n.requestId,e)}_getSameOriginIframeDocument(){try{return this.iframe.contentDocument}catch{return null}}_setIframeMediaMuted(e){let t=this._getSameOriginIframeDocument();if(t)for(let n of t.querySelectorAll(`video, audio`))qn(n)&&(n.muted=e||n.defaultMuted)}_stopIframeMedia(){let e=this._getSameOriginIframeDocument();if(e)for(let t of e.querySelectorAll(`video, audio`))qn(t)&&t.pause()}_replayBridgeState(){this._sendControl(`set-muted`,{muted:this.muted}),this._sendControl(`set-volume`,{volume:this._volume}),this._sendControl(`set-playback-rate`,{playbackRate:this.playbackRate}),this._sendControl(`set-native-media-sync-disabled`,{disabled:this._isSlideshowPlayer()}),this._sendControl(`set-web-audio-media-disabled`,{disabled:this._isSlideshowPlayer()}),this._sendControl(`set-idle-heartbeat`,{slow:this.hasAttribute(Si)}),this._sendDisplayScale()}_sendDisplayScale(){let e=zn(this.iframe);e&&this._sendControl(`set-display-scale`,{scale:e})}_reloadShaderOptions(){if(!this._videoSource){if(this._abandonComposition(`Shader options changed before runtime data was applied`),this.hasAttribute(`srcdoc`)){this.iframe.srcdoc=ri(this,this.getAttribute(`srcdoc`)||``);return}this.hasAttribute(`src`)&&this._loadSrc(this.getAttribute(`src`)||``)}}_navigateSrc(e){this._pendingPlay=!1,this._pauseForVideoSwitch(),this._abandonComposition(`Composition navigated before runtime data was applied`),this._loadSrc(e)}_wantsVideo(){return fi(this.getAttribute(`type`))&&!this.hasAttribute(`srcdoc`)}_pauseForVideoSwitch(){!this._videoSource&&!this._wantsVideo()||(this._paused=!0,this.controlsApi?.updatePlaying(!1))}_loadSrc(e){this._wantsVideo()?this._loadVideo(e):(this._teardownVideo(),this.iframe.src=ni(this,e))}_loadVideo(e){this._videoSource||(this._videoSource=pi({onMetadata:e=>this._applyThenEmit(()=>this._onVideoReady(e)),onDurationChange:e=>this._applyTimelineDuration(e.duration),onResize:e=>this._applyVideoSize(e),onPlay:e=>{!e.paused&&this._paused&&this.play()},onPause:e=>{e.paused&&!e.ended&&!this._paused&&this.pause()},onTimeUpdate:()=>{document.hidden&&this._playRange()&&this._directTimelineClock.poll()},onError:(e,t)=>{this._paused||this.pause(),this._emit(new CustomEvent(`error`,{detail:{message:e,code:t}}))},onPlayRejected:e=>this._onVideoPlayRejected(e)}),this.container.appendChild(this._videoSource.video),this.iframe.hidden=!0,this.iframe.src=`about:blank`),this.probe.stop();let{video:t,adapter:n}=this._videoSource;this._directTimelineAdapter=n,this._currentTime=0,this._duration=0,this.controlsApi?.updateTime(0,0),this._syncVideoAudio(),n.timeScale?.(this.playbackRate),t.src=e}_teardownVideo(){this._videoSource&&(this._videoSource.destroy(),this._videoSource=null,this.iframe.hidden=!1)}_syncVideoAudio(){this._videoSource&&(this._videoSource.video.muted=this.muted,this._videoSource.video.volume=this._volume)}_onVideoReady(e){this._applyTimelineDuration(e.duration),this._applyVideoSize(e),this._ready=!0,this._dispatchReady(),this._waitForAssetsReady(null),this._afterEvents(()=>{this.hasAttribute(`autoplay`)&&this._paused&&this.play()})}_applyTimelineDuration(e){!Number.isFinite(e)||e<=0||(this._setDuration(e),this.controlsApi?.updateTime(this._currentTime,e))}_applyVideoSize(e){e.videoWidth>0&&e.videoHeight>0&&this._setCompositionSize(e.videoWidth,e.videoHeight)}_onVideoPlayRejected(e){e instanceof DOMException&&e.name===`NotAllowedError`&&(this._paused||this.pause(),this._emit(new CustomEvent(`playbackerror`,{detail:{source:`video`,error:e}})))}_trySyncSeek(e){if(this._videoSource)return!1;try{let t=this.iframe.contentWindow?.__player;return typeof t?.seek==`function`&&(t.seek.call(t,e),!0)}catch{return!1}}_withDirectTimeline(e){let t=this._videoSource?null:this.probe.resolveDirectTimelineAdapter(),n=t||this._directTimelineAdapter;if(!n)return!1;try{return e(n),t&&t!==this._directTimelineAdapter&&this._applyTimelineDuration(t.duration()),this._directTimelineAdapter=n,!0}catch{return!1}}_tryDirectTimelineSeek(e){return this._withDirectTimeline(t=>{t.seek(e,!1),t.pause()})}_tryDirectTimelinePlay(){return this._withDirectTimeline(e=>{e.play()})}_tryDirectTimelinePause(){return this._withDirectTimeline(e=>{e.pause()})}_showPausedVideoTime(){this._videoSource&&(this._currentTime=this._videoSource.video.currentTime,this.controlsApi?.updateTime(this._currentTime,this._duration),this._emit(new CustomEvent(`timeupdate`,{detail:{currentTime:this._currentTime}})))}_startParentTickClock(){this._stopParentTickClock();let e=()=>{this._paused?this._parentTickRaf=null:(this._sendControl(`tick`),this._parentTickRaf=requestAnimationFrame(e))};this._parentTickRaf=requestAnimationFrame(e)}_stopParentTickClock(){this._parentTickRaf!==null&&(cancelAnimationFrame(this._parentTickRaf),this._parentTickRaf=null)}_onMessage(e){this._videoSource||this.probe.failed||this._applyThenEmit(()=>this._handleRuntimeMessage(e))}_handleRuntimeMessage(e){Rr(e,this.iframe.contentWindow,{getPlaybackState:()=>({currentTime:this._currentTime,duration:this._duration,paused:this._paused,lastUpdateMs:this._lastUpdateMs,enteringRange:this._enteringRange}),setPlaybackState:({currentTime:e,duration:t,paused:n,lastUpdateMs:r,enteringRange:i})=>{this._enteringRange=i===!0,this._currentTime=e,this._setDuration(t),this._paused=n,this._lastUpdateMs=r},getShaderLoadingMode:()=>ei(this),shaderLoader:this.shaderLoader,setCompositionSize:(e,t)=>this._setCompositionSize(e,t),sendControl:(e,t)=>this._sendControl(e,t),getIframeDoc:()=>this.iframe.contentDocument,onRuntimeReady:()=>{this._runtimeBridgeReady=!0,this._replayBridgeState(),this._hasPlayRange()&&this._sendPlayRange(this._playRange()),this._replayRuntimeData()},onRuntimeAssetsReady:()=>{this._runtimeAssetsReadyGeneration===this._assetsGeneration&&this._settleAssetsReady(this._assetsGeneration)},onRuntimeDataApplied:(e,t)=>this._resolveRuntimeDataDelivery(e,t),onRuntimeDataError:(e,t,n)=>this._rejectRuntimeDataDelivery(e,t,n),onRuntimeTimelineReady:(e,t)=>this._onRuntimeTimelineReady(e,t),setBuffering:e=>this._setBuffering(e),setRuntimeFps:e=>{this._runtimeFps=e},setRuntimeOwnsPlayRange:e=>{this._runtimeOwnsPlayRange=e},shouldPromoteMediaAutoplayFallback:()=>!this._isSlideshowPlayer(),setScenes:e=>{this._scenes=e,this._emit(new CustomEvent(`scenes`,{detail:{scenes:e}}))},updateControlsTime:(e,t)=>this.controlsApi?.updateTime(e,t),updateControlsPlaying:e=>this.controlsApi?.updatePlaying(e),dispatchEvent:e=>this._emit(e),seek:e=>this.seek(e),play:()=>this.play(),getLoop:()=>this.loop,getPlayRange:()=>this._playRange(),media:this._media})}_onRuntimeTimelineReady(e,t){if(this._ready)return;this.probe.stop(),this._setDuration(e),this._directTimelineAdapter=null,this._ready=!0,this.controlsApi?.updateTime(this._currentTime,e),this._dispatchReady();let n=this._getSameOriginIframeDocument();n&&this._media.setupFromIframe(n),this._replayBridgeState(),this._setIframeMediaMuted(this.muted),this._waitForAssetsReady(n,t),this._playWhenWanted()}_onProbeReady(e){this._applyThenEmit(()=>this._applyProbeResult(e))}_applyProbeResult({duration:e,adapter:t,compositionSize:n}){this._setDuration(e),this._directTimelineAdapter=t.kind===`direct-timeline`?t.timeline:null,n&&this._setCompositionSize(n.width,n.height),this._ready=!0,this.controlsApi?.updateTime(0,e),this._dispatchReady();let r=this._getSameOriginIframeDocument();r&&this._media.setupFromIframe(r),this._setIframeMediaMuted(this.muted),this._waitForAssetsReady(r),this._playWhenWanted()}_waitForAssetsReady(e,t){this._clearAssetsLoadingShowTimer(),this._assetsReady=!1,this._painted=!1;let n=++this._assetsGeneration;e?(ur(e,({timedOut:t})=>{n===this._assetsGeneration&&(t&&this._warnStuckAssets(e),this._settleAssetsReady(n))},{timeoutMs:vi}),this._assetsReady||this._startAssetsLoadingOverlayTimer(n)):t===!1?(this._runtimeAssetsReadyGeneration=n,this._startAssetsLoadingOverlayTimer(n),setTimeout(()=>this._settleAssetsReady(n),vi)):this._settleAssetsReady(n)}_startAssetsLoadingOverlayTimer(e){this._assetsLoadingShowTimer=setTimeout(()=>{this._assetsLoadingShowTimer=null,!(e!==this._assetsGeneration||this._assetsReady)&&(this.setAttribute(yi,``),this.assetsLoadingUi!==`none`&&this.shaderLoader.showAssetsLoading())},Ei)}_setBuffering(e){if(e){if(this._bufferingShowTimer!==null||this.hasAttribute(xi))return;this._bufferingShowTimer=setTimeout(()=>{this._bufferingShowTimer=null,this.setAttribute(xi,``),this.assetsLoadingUi!==`none`&&this.shaderLoader.showAssetsLoading(`Buffering`,``)},Ei)}else this._bufferingShowTimer!==null&&clearTimeout(this._bufferingShowTimer),this._bufferingShowTimer=null,this.hasAttribute(xi)&&(this.removeAttribute(xi),this.shaderLoader.hideAssetsLoading())}_hasPendingFirstFrameAssets(e){let{pendingMedia:t,pendingImages:n,fontsLoading:r}=Zn(e,{scope:Wn});return t.length>0||n.length>0||r}_warnStuckAssets(e){let{pendingMedia:t,pendingImages:n,fontsLoading:r}=Zn(e,{scope:Wn}),i=e.defaultView;console.warn(`[hyperframes-player] assets-loading timed out after ${vi}ms, playing anyway`,{stuckMedia:t.map(e=>e.currentSrc||e.getAttribute(`src`)||`<${e.tagName.toLowerCase()}>`),stuckImages:n.map(e=>e.currentSrc||e.getAttribute(`src`)||`<img>`),fontsLoading:r,computeReady:i?.__renderReady===!0,documentHidden:e.hidden===!0})}_settleAssetsReady(e){e!==this._assetsGeneration||this._assetsReady||(this._clearAssetsLoadingShowTimer(),this._assetsReady=!0,this.removeAttribute(yi),this.shaderLoader.hideAssetsLoading(),this._emit(new Event(`assetsready`)),this.shaderLoader.whenHidden(()=>{e===this._assetsGeneration&&(this._painted=!0,this._emit(new Event(`painted`)))}),this._afterEvents(()=>{this._pendingPlay&&this.play()}))}_abandonComposition(e){this.probe.stop(),this._ready=!1,this._readyDocument=null,this._invalidateAssetsWait(),this._releaseDocument(),this._runtimeBridgeReady=!1,this._rejectAllRuntimeDataDeliveries(e)}_releaseDocument(){this._runtimeOwnsPlayRange=!1,this._enteringRange=!1,this._directTimelineAdapter=null,this._directTimelineClock.stop(),this._stopParentTickClock(),this._setBuffering(!1),this.shaderLoader.reset(),this._media.resetForIframeLoad()}_invalidateAssetsWait(){this._clearAssetsLoadingShowTimer(),this._assetsReady=!1,this._painted=!1,this._assetsGeneration++,this.removeAttribute(yi),this.shaderLoader.hide()}_clearAssetsLoadingShowTimer(){this._assetsLoadingShowTimer!==null&&(clearTimeout(this._assetsLoadingShowTimer),this._assetsLoadingShowTimer=null)}_dispatchReady(){this._readyDocument=this._getSameOriginIframeDocument();let e={duration:this._duration,compositionWidth:this._compositionWidth,compositionHeight:this._compositionHeight};this._emit(new CustomEvent(`ready`,{detail:e})),this._rescale(),this._rangeClampReported=``,this._hasPlayRange()&&this._applyPlayRange(!0)}_setDuration(e){e!==this._duration&&(this._duration=e,this._ready&&(this._emit(new CustomEvent(`durationchange`,{detail:{duration:e}})),this._hasPlayRange()&&this._applyPlayRange(!1)))}_setCompositionSize(e,t){let n=e!==this._compositionWidth||t!==this._compositionHeight;if(this._compositionWidth=e,this._compositionHeight=t,this.sizer.style.aspectRatio=`${e} / ${t}`,this._rescale(),!n)return;let r={compositionWidth:e,compositionHeight:t};this._emit(new CustomEvent(`resize`,{detail:r}))}_applyThenEmit(e){if(this._afterUpdate){e();return}let t=[];this._afterUpdate=t;let n=[],r=e=>{try{e()}catch(e){n.push(e)}};r(e);for(let e of t)r(e);if(this._afterUpdate=null,n.length>0)throw n[0]}_afterEvents(e){this._afterUpdate?this._afterUpdate.push(e):e()}_playWhenWanted(){this._afterEvents(()=>{(this.hasAttribute(`autoplay`)||this._pendingPlay)&&this.play()})}_emit(e){this._afterEvents(()=>this.dispatchEvent(e))}_rescale(){let e=gn(this,this.iframe,this._compositionWidth,this._compositionHeight);e&&this._sendDisplayScale(),!e&&this._ready&&!this._rescaleWarned&&(this._rescaleWarned=!0,console.warn(`[hyperframes-player] rescale no-op after ready: zero-size player element`,{src:this.getAttribute(`src`),offsetWidth:this.offsetWidth,offsetHeight:this.offsetHeight,compositionWidth:this._compositionWidth,compositionHeight:this._compositionHeight}))}_onIframeLoad(){if(!this._connected||this._videoSource)return;let e=this._getSameOriginIframeDocument();this._ready&&e===this._readyDocument?e&&this._hasPendingFirstFrameAssets(e)&&this._waitForAssetsReady(e):(this._ready=!1,this._invalidateAssetsWait(),this._releaseDocument(),this.probe.start())}_setupControls(){this.controlsApi||(this.controlsApi=un(this.shadow,this.muted,this._volume,this.getAttribute(`speed-presets`),{onPlay:()=>this.play(),onPause:()=>this.pause(),onSeek:e=>this.seek(e*this._duration),onScrubStart:()=>{this._scrubbing=!0},onScrubEnd:()=>{this._scrubbing=!1,this.seek(this._currentTime)},onSpeedChange:e=>{this.playbackRate=e},onMuteToggle:()=>{this.muted=!this.muted},onVolumeChange:e=>{this.volume=e}},this._isAudioLocked()),this.controlsApi.updateTime(this._currentTime,this._duration),this.controlsApi.updatePlaying(!this._paused),this.controlsApi.updateSpeed(this.playbackRate))}get _audioOwner(){return this._media.audioOwner}get _parentMedia(){return this._media.entries}_mirrorParentMediaTime(e,t){this._media.mirrorTime(e,t)}_promoteToParentProxy(){let e=null;try{e=this.iframe.contentDocument}catch{}this._media.promoteToParentProxy(e,(e,t)=>this._mirrorParentMediaTime(e,t)),this._sendControl(`set-media-output-muted`,{muted:!0})}_observeDynamicMedia(e){this._media.setupFromIframe(e)}};customElements.get(`hyperframes-player`)||customElements.define(`hyperframes-player`,Oi);var ki={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},Ai={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},ji=1e3,Mi=1001,Ni=1002,Pi=1003,Fi=1004,Ii=1005,Li=1006,Ri=1007,zi=1008,Bi=1009,Vi=1010,Hi=1011,Ui=1012,Wi=1013,Gi=1014,Ki=1015,qi=1016,Ji=1017,Yi=1018,Xi=1020,Zi=35902,Qi=35899,$i=1021,ea=1022,ta=1023,na=1026,ra=1027,ia=1028,aa=1029,oa=1030,sa=1031,ca=1033,la=33776,ua=33777,da=33778,fa=33779,pa=35840,ma=35841,ha=35842,ga=35843,_a=36196,va=37492,ya=37496,ba=37488,xa=37489,Sa=37490,Ca=37491,wa=37808,Ta=37809,Ea=37810,Da=37811,Oa=37812,ka=37813,Aa=37814,ja=37815,Ma=37816,Na=37817,Pa=37818,Fa=37819,Ia=37820,La=37821,Ra=36492,za=36494,Ba=36495,Va=36283,Ha=36284,Ua=36285,Wa=36286,Ga=2300,Ka=2301,qa=2302,Ja=2303,Ya=2400,Xa=2401,Za=2402,Qa=3200,$a=`srgb`,eo=`srgb-linear`,to=`linear`,no=`srgb`,ro=7680,io=35044,ao=35048,oo=2e3;function so(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}function co(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function lo(e){return document.createElementNS(`http://www.w3.org/1999/xhtml`,e)}function uo(){let e=lo(`canvas`);return e.style.display=`block`,e}var fo={};function po(...e){let t=`THREE.`+e.shift();console.log(t,...e)}function mo(e){let t=e[0];if(typeof t==`string`&&t.startsWith(`TSL:`)){let t=e[1];t&&t.isStackTrace?e[0]+=` `+t.getLocation():e[1]=`Stack trace not available. Enable "THREE.Node.captureStackTrace" to capture stack traces.`}return e}function B(...e){e=mo(e);let t=`THREE.`+e.shift();{let n=e[0];n&&n.isStackTrace?console.warn(n.getError(t)):console.warn(t,...e)}}function V(...e){e=mo(e);let t=`THREE.`+e.shift();{let n=e[0];n&&n.isStackTrace?console.error(n.getError(t)):console.error(t,...e)}}function ho(...e){let t=e.join(` `);t in fo||(fo[t]=!0,B(...e))}function go(e,t,n){return new Promise(function(r,i){function a(){switch(e.clientWaitSync(t,e.SYNC_FLUSH_COMMANDS_BIT,0)){case e.WAIT_FAILED:i();break;case e.TIMEOUT_EXPIRED:setTimeout(a,n);break;default:r()}}setTimeout(a,n)})}var _o={0:0,2:6,4:4,3:5,1:1,6:2,7:7,5:3},vo=class{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});let n=this._listeners;n[e]===void 0&&(n[e]=[]),n[e].indexOf(t)===-1&&n[e].push(t)}hasEventListener(e,t){let n=this._listeners;return n!==void 0&&n[e]!==void 0&&n[e].indexOf(t)!==-1}removeEventListener(e,t){let n=this._listeners;if(n===void 0)return;let r=n[e];if(r!==void 0){let e=r.indexOf(t);e!==-1&&r.splice(e,1)}}dispatchEvent(e){let t=this._listeners;if(t===void 0)return;let n=t[e.type];if(n!==void 0){e.target=this;let t=n.slice(0);for(let n=0,r=t.length;n<r;n++)t[n].call(this,e);e.target=null}}},yo=`00.01.02.03.04.05.06.07.08.09.0a.0b.0c.0d.0e.0f.10.11.12.13.14.15.16.17.18.19.1a.1b.1c.1d.1e.1f.20.21.22.23.24.25.26.27.28.29.2a.2b.2c.2d.2e.2f.30.31.32.33.34.35.36.37.38.39.3a.3b.3c.3d.3e.3f.40.41.42.43.44.45.46.47.48.49.4a.4b.4c.4d.4e.4f.50.51.52.53.54.55.56.57.58.59.5a.5b.5c.5d.5e.5f.60.61.62.63.64.65.66.67.68.69.6a.6b.6c.6d.6e.6f.70.71.72.73.74.75.76.77.78.79.7a.7b.7c.7d.7e.7f.80.81.82.83.84.85.86.87.88.89.8a.8b.8c.8d.8e.8f.90.91.92.93.94.95.96.97.98.99.9a.9b.9c.9d.9e.9f.a0.a1.a2.a3.a4.a5.a6.a7.a8.a9.aa.ab.ac.ad.ae.af.b0.b1.b2.b3.b4.b5.b6.b7.b8.b9.ba.bb.bc.bd.be.bf.c0.c1.c2.c3.c4.c5.c6.c7.c8.c9.ca.cb.cc.cd.ce.cf.d0.d1.d2.d3.d4.d5.d6.d7.d8.d9.da.db.dc.dd.de.df.e0.e1.e2.e3.e4.e5.e6.e7.e8.e9.ea.eb.ec.ed.ee.ef.f0.f1.f2.f3.f4.f5.f6.f7.f8.f9.fa.fb.fc.fd.fe.ff`.split(`.`),bo=1234567,xo=Math.PI/180,So=180/Math.PI;function Co(){let e=Math.random()*4294967295|0,t=Math.random()*4294967295|0,n=Math.random()*4294967295|0,r=Math.random()*4294967295|0;return(yo[e&255]+yo[e>>8&255]+yo[e>>16&255]+yo[e>>24&255]+`-`+yo[t&255]+yo[t>>8&255]+`-`+yo[t>>16&15|64]+yo[t>>24&255]+`-`+yo[n&63|128]+yo[n>>8&255]+`-`+yo[n>>16&255]+yo[n>>24&255]+yo[r&255]+yo[r>>8&255]+yo[r>>16&255]+yo[r>>24&255]).toLowerCase()}function H(e,t,n){return Math.max(t,Math.min(n,e))}function wo(e,t){return(e%t+t)%t}function To(e,t,n,r,i){return r+(e-t)*(i-r)/(n-t)}function Eo(e,t,n){return e===t?0:(n-e)/(t-e)}function Do(e,t,n){return(1-n)*e+n*t}function Oo(e,t,n,r){return Do(e,t,1-Math.exp(-n*r))}function ko(e,t=1){return t-Math.abs(wo(e,t*2)-t)}function Ao(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*(3-2*e))}function jo(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*e*(e*(e*6-15)+10))}function Mo(e,t){return e+Math.floor(Math.random()*(t-e+1))}function No(e,t){return e+Math.random()*(t-e)}function Po(e){return e*(.5-Math.random())}function Fo(e){e!==void 0&&(bo=e);let t=bo+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}function Io(e){return e*xo}function Lo(e){return e*So}function Ro(e){return e>0&&Number.isInteger(e)&&2**Math.round(Math.log2(e))===e}function zo(e){return 2**Math.ceil(Math.log(e)/Math.LN2)}function Bo(e){return 2**Math.floor(Math.log(e)/Math.LN2)}function Vo(e,t,n,r,i){let a=Math.cos,o=Math.sin,s=a(n/2),c=o(n/2),l=a((t+r)/2),u=o((t+r)/2),d=a((t-r)/2),f=o((t-r)/2),p=a((r-t)/2),m=o((r-t)/2);switch(i){case`XYX`:e.set(s*u,c*d,c*f,s*l);break;case`YZY`:e.set(c*f,s*u,c*d,s*l);break;case`ZXZ`:e.set(c*d,c*f,s*u,s*l);break;case`XZX`:e.set(s*u,c*m,c*p,s*l);break;case`YXY`:e.set(c*p,s*u,c*m,s*l);break;case`ZYZ`:e.set(c*m,c*p,s*u,s*l);break;default:B(`MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: `+i)}}function Ho(e){switch(e.constructor){case Uint32Array:return 4294967295;case Uint16Array:return 65535;case Uint8Array:case Uint8ClampedArray:return 255;case Int32Array:return 2147483647;case Int16Array:return 32767;case Int8Array:return 127;default:return}}function Uo(e,t){if(t.constructor===Float32Array)return e;let n=Ho(t);if(n===void 0)throw Error(`THREE.MathUtils: Invalid component type.`);return Math.max(e/n,-1)}function Wo(e,t){if(t.constructor===Float32Array)return e;let n=Ho(t);if(n===void 0)throw Error(`THREE.MathUtils: Invalid component type.`);return Math.round(e*n)}var Go={DEG2RAD:xo,RAD2DEG:So,generateUUID:Co,clamp:H,euclideanModulo:wo,mapLinear:To,inverseLerp:Eo,lerp:Do,damp:Oo,pingpong:ko,smoothstep:Ao,smootherstep:jo,randInt:Mo,randFloat:No,randFloatSpread:Po,seededRandom:Fo,degToRad:Io,radToDeg:Lo,isPowerOfTwo:Ro,ceilPowerOfTwo:zo,floorPowerOfTwo:Bo,setQuaternionFromProperEuler:Vo,normalize:Wo,denormalize:Uo},U=class{static{this.prototype.isVector2=!0}constructor(e=0,t=0){this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw Error(`THREE.Vector2: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw Error(`THREE.Vector2: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){let t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=H(this.x,e.x,t.x),this.y=H(this.y,e.y,t.y),this}clampScalar(e,t){return this.x=H(this.x,e,t),this.y=H(this.y,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(H(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(H(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){let n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,a=this.y-e.y;return this.x=i*n-a*r+e.x,this.y=i*r+a*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}},Ko=class{constructor(e=0,t=0,n=0,r=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=n,this._w=r}static slerpFlat(e,t,n,r,i,a,o){let s=n[r+0],c=n[r+1],l=n[r+2],u=n[r+3],d=i[a+0],f=i[a+1],p=i[a+2],m=i[a+3];if(u!==m||s!==d||c!==f||l!==p){let e=s*d+c*f+l*p+u*m;e<0&&(d=-d,f=-f,p=-p,m=-m,e=-e);let t=1-o;if(e<.9995){let n=Math.acos(e),r=Math.sin(n);t=Math.sin(t*n)/r,o=Math.sin(o*n)/r,s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o}else{s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o;let e=1/Math.sqrt(s*s+c*c+l*l+u*u);s*=e,c*=e,l*=e,u*=e}}e[t]=s,e[t+1]=c,e[t+2]=l,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,r,i,a){let o=n[r],s=n[r+1],c=n[r+2],l=n[r+3],u=i[a],d=i[a+1],f=i[a+2],p=i[a+3];return e[t]=o*p+l*u+s*f-c*d,e[t+1]=s*p+l*d+c*u-o*f,e[t+2]=c*p+l*f+o*d-s*u,e[t+3]=l*p-o*u-s*d-c*f,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){let n=e._x,r=e._y,i=e._z,a=e._order,o=Math.cos,s=Math.sin,c=o(n/2),l=o(r/2),u=o(i/2),d=s(n/2),f=s(r/2),p=s(i/2);switch(a){case`XYZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`YXZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`ZXY`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`ZYX`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`YZX`:this._x=d*l*u+c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u-d*f*p;break;case`XZY`:this._x=d*l*u-c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u+d*f*p;break;default:B(`Quaternion: .setFromEuler() encountered an unknown order: `+a)}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){let n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){let t=e.elements,n=t[0],r=t[4],i=t[8],a=t[1],o=t[5],s=t[9],c=t[2],l=t[6],u=t[10],d=n+o+u;if(d>0){let e=.5/Math.sqrt(d+1);this._w=.25/e,this._x=(l-s)*e,this._y=(i-c)*e,this._z=(a-r)*e}else if(n>o&&n>u){let e=2*Math.sqrt(1+n-o-u);this._w=(l-s)/e,this._x=.25*e,this._y=(r+a)/e,this._z=(i+c)/e}else if(o>u){let e=2*Math.sqrt(1+o-n-u);this._w=(i-c)/e,this._x=(r+a)/e,this._y=.25*e,this._z=(s+l)/e}else{let e=2*Math.sqrt(1+u-n-o);this._w=(a-r)/e,this._x=(i+c)/e,this._y=(s+l)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return n<1e-8?(n=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(H(this.dot(e),-1,1)))}rotateTowards(e,t){let n=this.angleTo(e);if(n===0)return this;let r=Math.min(1,t/n);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x*=e,this._y*=e,this._z*=e,this._w*=e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=t._x,s=t._y,c=t._z,l=t._w;return this._x=n*l+a*o+r*c-i*s,this._y=r*l+a*s+i*o-n*c,this._z=i*l+a*c+n*s-r*o,this._w=a*l-n*o-r*s-i*c,this._onChangeCallback(),this}slerp(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=this.dot(e);o<0&&(n=-n,r=-r,i=-i,a=-a,o=-o);let s=1-t;if(o<.9995){let e=Math.acos(o),c=Math.sin(e);s=Math.sin(s*e)/c,t=Math.sin(t*e)/c,this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this._onChangeCallback()}else this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this.normalize();return this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){let e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),r=Math.sqrt(1-n),i=Math.sqrt(n);return this.set(r*Math.sin(e),r*Math.cos(e),i*Math.sin(t),i*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}},W=class{static{this.prototype.isVector3=!0}constructor(e=0,t=0,n=0){this.x=e,this.y=t,this.z=n}set(e,t,n){return n===void 0&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw Error(`THREE.Vector3: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw Error(`THREE.Vector3: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(Jo.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(Jo.setFromAxisAngle(e,t))}applyMatrix3(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=e.elements,a=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*a,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*a,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*a,this}applyQuaternion(e){let t=this.x,n=this.y,r=this.z,i=e.x,a=e.y,o=e.z,s=e.w,c=2*(a*r-o*n),l=2*(o*t-i*r),u=2*(i*n-a*t);return this.x=t+s*c+a*u-o*l,this.y=n+s*l+o*c-i*u,this.z=r+s*u+i*l-a*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=H(this.x,e.x,t.x),this.y=H(this.y,e.y,t.y),this.z=H(this.z,e.z,t.z),this}clampScalar(e,t){return this.x=H(this.x,e,t),this.y=H(this.y,e,t),this.z=H(this.z,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(H(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){let n=e.x,r=e.y,i=e.z,a=t.x,o=t.y,s=t.z;return this.x=r*s-i*o,this.y=i*a-n*s,this.z=n*o-r*a,this}projectOnVector(e){let t=e.lengthSq();if(t===0)return this.set(0,0,0);let n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return qo.copy(this).projectOnVector(e),this.sub(qo)}reflect(e){return this.sub(qo.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(H(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){let r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){let t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){let t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){let e=Math.random()*Math.PI*2,t=Math.random()*2-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}},qo=new W,Jo=new Ko,G=class{static{this.prototype.isMatrix3=!0}constructor(e,t,n,r,i,a,o,s,c){this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,n,r,i,a,o,s,c)}set(e,t,n,r,i,a,o,s,c){let l=this.elements;return l[0]=e,l[1]=r,l[2]=o,l[3]=t,l[4]=i,l[5]=s,l[6]=n,l[7]=a,l[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){let t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){let t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[3],s=n[6],c=n[1],l=n[4],u=n[7],d=n[2],f=n[5],p=n[8],m=r[0],h=r[3],g=r[6],_=r[1],v=r[4],y=r[7],b=r[2],x=r[5],S=r[8];return i[0]=a*m+o*_+s*b,i[3]=a*h+o*v+s*x,i[6]=a*g+o*y+s*S,i[1]=c*m+l*_+u*b,i[4]=c*h+l*v+u*x,i[7]=c*g+l*y+u*S,i[2]=d*m+f*_+p*b,i[5]=d*h+f*v+p*x,i[8]=d*g+f*y+p*S,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8];return t*a*l-t*o*c-n*i*l+n*o*s+r*i*c-r*a*s}invert(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8],u=l*a-o*c,d=o*s-l*i,f=c*i-a*s,p=t*u+n*d+r*f;if(p===0)return this.set(0,0,0,0,0,0,0,0,0);let m=1/p;return e[0]=u*m,e[1]=(r*c-l*n)*m,e[2]=(o*n-r*a)*m,e[3]=d*m,e[4]=(l*t-r*s)*m,e[5]=(r*i-o*t)*m,e[6]=f*m,e[7]=(n*s-c*t)*m,e[8]=(a*t-n*i)*m,this}transpose(){let e,t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){let t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,r,i,a,o){let s=Math.cos(i),c=Math.sin(i);return this.set(n*s,n*c,-n*(s*a+c*o)+a+e,-r*c,r*s,-r*(-c*a+s*o)+o+t,0,0,1),this}scale(e,t){return ho(`Matrix3: .scale() is deprecated. Use .makeScale() instead.`),this.premultiply(Yo.makeScale(e,t)),this}rotate(e){return ho(`Matrix3: .rotate() is deprecated. Use .makeRotation() instead.`),this.premultiply(Yo.makeRotation(-e)),this}translate(e,t){return ho(`Matrix3: .translate() is deprecated. Use .makeTranslation() instead.`),this.premultiply(Yo.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){let t=this.elements,n=e.elements;for(let e=0;e<9;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){let n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return new this.constructor().fromArray(this.elements)}},Yo=new G,Xo=new G().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),Zo=new G().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function Qo(){let e={enabled:!0,workingColorSpace:eo,spaces:{},convert:function(e,t,n){return this.enabled===!1||t===n||!t||!n||(this.spaces[t].transfer===`srgb`&&(e.r=$o(e.r),e.g=$o(e.g),e.b=$o(e.b)),this.spaces[t].primaries!==this.spaces[n].primaries&&(e.applyMatrix3(this.spaces[t].toXYZ),e.applyMatrix3(this.spaces[n].fromXYZ)),this.spaces[n].transfer===`srgb`&&(e.r=es(e.r),e.g=es(e.g),e.b=es(e.b))),e},workingToColorSpace:function(e,t){return this.convert(e,this.workingColorSpace,t)},colorSpaceToWorking:function(e,t){return this.convert(e,t,this.workingColorSpace)},getPrimaries:function(e){return this.spaces[e].primaries},getTransfer:function(e){return e===``?to:this.spaces[e].transfer},getToneMappingMode:function(e){return this.spaces[e].outputColorSpaceConfig.toneMappingMode||`standard`},getLuminanceCoefficients:function(e,t=this.workingColorSpace){return e.fromArray(this.spaces[t].luminanceCoefficients)},define:function(e){Object.assign(this.spaces,e)},_getMatrix:function(e,t,n){return e.copy(this.spaces[n].fromXYZ).multiply(this.spaces[t].toXYZ)},_getDrawingBufferColorSpace:function(e){return this.spaces[e].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(e=this.workingColorSpace){return this.spaces[e].workingColorSpaceConfig.unpackColorSpace}},t=[.64,.33,.3,.6,.15,.06],n=[.2126,.7152,.0722],r=[.3127,.329];return e.define({[eo]:{primaries:t,whitePoint:r,transfer:to,toXYZ:Xo,fromXYZ:Zo,luminanceCoefficients:n,workingColorSpaceConfig:{unpackColorSpace:$a},outputColorSpaceConfig:{drawingBufferColorSpace:$a}},[$a]:{primaries:t,whitePoint:r,transfer:no,toXYZ:Xo,fromXYZ:Zo,luminanceCoefficients:n,outputColorSpaceConfig:{drawingBufferColorSpace:$a}}}),e}var K=Qo();function $o(e){return e<.04045?e*.0773993808:(e*.9478672986+.0521327014)**2.4}function es(e){return e<.0031308?e*12.92:1.055*e**.41666-.055}var ts,ns=class{static getDataURL(e,t=`image/png`){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>`u`)return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{ts===void 0&&(ts=lo(`canvas`)),ts.width=e.width,ts.height=e.height;let t=ts.getContext(`2d`);e instanceof ImageData?t.putImageData(e,0,0):t.drawImage(e,0,0,e.width,e.height),n=ts}return n.toDataURL(t)}static sRGBToLinear(e){if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap){let t=lo(`canvas`);t.width=e.width,t.height=e.height;let n=t.getContext(`2d`);n.drawImage(e,0,0,e.width,e.height);let r=n.getImageData(0,0,e.width,e.height),i=r.data;for(let e=0;e<i.length;e++)i[e]=$o(i[e]/255)*255;return n.putImageData(r,0,0),t}if(e.data){let t=e.data.slice(0);for(let e=0;e<t.length;e++)t instanceof Uint8Array||t instanceof Uint8ClampedArray?t[e]=Math.floor($o(t[e]/255)*255):t[e]=$o(t[e]);return{data:t,width:e.width,height:e.height}}return B(`ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied.`),e}},rs=0,is=class{constructor(e=null){this.isTextureSource=!0,Object.defineProperty(this,"id",{value:rs++}),this.uuid=Co(),this.data=e,this.dataReady=!0,this.version=0}getSize(e){let t=this.data;return typeof HTMLVideoElement<`u`&&t instanceof HTMLVideoElement?e.set(t.videoWidth,t.videoHeight,0):typeof VideoFrame<`u`&&t instanceof VideoFrame?e.set(t.displayWidth,t.displayHeight,0):t===null?e.set(0,0,0):e.set(t.width||0,t.height||0,t.depth||0),e}set needsUpdate(e){e===!0&&this.version++}toJSON(e){let t=e===void 0||typeof e==`string`;if(!t&&e.images[this.uuid]!==void 0)return e.images[this.uuid];let n={uuid:this.uuid,url:``},r=this.data;if(r!==null){let e;if(Array.isArray(r)){e=[];for(let t=0,n=r.length;t<n;t++)r[t].isDataTexture?e.push(as(r[t].image)):e.push(as(r[t]))}else e=as(r);n.url=e}return t||(e.images[this.uuid]=n),n}};function as(e){return typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap?ns.getDataURL(e):e.data?{data:Array.from(e.data),width:e.width,height:e.height,type:e.data.constructor.name}:(B(`Texture: Unable to serialize Texture.`),{})}var os=0,ss=new W,cs=class e extends vo{constructor(t=e.DEFAULT_IMAGE,n=e.DEFAULT_MAPPING,r=Mi,i=Mi,a=Li,o=zi,s=ta,c=Bi,l=e.DEFAULT_ANISOTROPY,u=``){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:os++}),this.uuid=Co(),this.name=``,this.source=new is(t),this.mipmaps=[],this.mapping=n,this.channel=0,this.wrapS=r,this.wrapT=i,this.magFilter=a,this.minFilter=o,this.anisotropy=l,this.format=s,this.internalFormat=null,this.type=c,this.offset=new U(0,0),this.repeat=new U(1,1),this.center=new U(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new G,this.generateMipmaps=!0,this.mipmapsAutoUpdate=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.colorSpace=u,this.userData={},this.updateRanges=[],this.version=0,this.onUpdate=null,this.renderTarget=null,this.isRenderTargetTexture=!1,this.isArrayTexture=!!(t&&t.depth&&t.depth>1),this.pmremVersion=0,this.isPMREMTexture=!1,this.normalized=!1}get width(){return this.source.getSize(ss).x}get height(){return this.source.getSize(ss).y}get depth(){return this.source.getSize(ss).z}get image(){return this.source.data}set image(e){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.normalized=e.normalized,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.mipmapsAutoUpdate=e.mipmapsAutoUpdate,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.renderTarget=e.renderTarget,this.isRenderTargetTexture=e.isRenderTargetTexture,this.isPMREMTexture=e.isPMREMTexture,this.isArrayTexture=e.isArrayTexture,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}setValues(e){for(let t in e){let n=e[t];if(n===void 0){B(`Texture.setValues(): parameter '${t}' has value of undefined.`);continue}let r=this[t];r===void 0?B(`Texture.setValues(): property '${t}' does not exist.`):r&&n&&r.isVector2&&n.isVector2||r&&n&&r.isVector3&&n.isVector3||r&&n&&r.isMatrix3&&n.isMatrix3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;if(!t&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];let n={metadata:{version:4.7,type:`Texture`,generator:`Texture.toJSON`},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,normalized:this.normalized,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,mipmapsAutoUpdate:this.mipmapsAutoUpdate,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:`dispose`})}transformUv(e){if(this.mapping!==300)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case ji:e.x-=Math.floor(e.x);break;case Mi:e.x=e.x<0?0:1;break;case Ni:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x-=Math.floor(e.x)}if(e.y<0||e.y>1)switch(this.wrapT){case ji:e.y-=Math.floor(e.y);break;case Mi:e.y=e.y<0?0:1;break;case Ni:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y-=Math.floor(e.y)}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){e===!0&&this.pmremVersion++}};cs.DEFAULT_IMAGE=null,cs.DEFAULT_MAPPING=300,cs.DEFAULT_ANISOTROPY=1;var ls=class{static{this.prototype.isVector4=!0}constructor(e=0,t=0,n=0,r=1){this.x=e,this.y=t,this.z=n,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw Error(`THREE.Vector4: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw Error(`THREE.Vector4: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w===void 0?1:e.w,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*r+a[12]*i,this.y=a[1]*t+a[5]*n+a[9]*r+a[13]*i,this.z=a[2]*t+a[6]*n+a[10]*r+a[14]*i,this.w=a[3]*t+a[7]*n+a[11]*r+a[15]*i,this}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this.w/=e.w,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);let t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,r,i,a=.01,o=.1,s=e.elements,c=s[0],l=s[4],u=s[8],d=s[1],f=s[5],p=s[9],m=s[2],h=s[6],g=s[10];if(Math.abs(l-d)<a&&Math.abs(u-m)<a&&Math.abs(p-h)<a){if(Math.abs(l+d)<o&&Math.abs(u+m)<o&&Math.abs(p+h)<o&&Math.abs(c+f+g-3)<o)return this.set(1,0,0,0),this;t=Math.PI;let e=(c+1)/2,s=(f+1)/2,_=(g+1)/2,v=(l+d)/4,y=(u+m)/4,b=(p+h)/4;return e>s&&e>_?e<a?(n=0,r=.707106781,i=.707106781):(n=Math.sqrt(e),r=v/n,i=y/n):s>_?s<a?(n=.707106781,r=0,i=.707106781):(r=Math.sqrt(s),n=v/r,i=b/r):_<a?(n=.707106781,r=.707106781,i=0):(i=Math.sqrt(_),n=y/i,r=b/i),this.set(n,r,i,t),this}let _=Math.sqrt((h-p)*(h-p)+(u-m)*(u-m)+(d-l)*(d-l));return Math.abs(_)<.001&&(_=1),this.x=(h-p)/_,this.y=(u-m)/_,this.z=(d-l)/_,this.w=Math.acos((c+f+g-1)/2),this}setFromMatrixPosition(e){let t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this.w=t[15],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=H(this.x,e.x,t.x),this.y=H(this.y,e.y,t.y),this.z=H(this.z,e.z,t.z),this.w=H(this.w,e.w,t.w),this}clampScalar(e,t){return this.x=H(this.x,e,t),this.y=H(this.y,e,t),this.z=H(this.z,e,t),this.w=H(this.w,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(H(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this.w=e.w+(t.w-e.w)*n,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}},us=class extends vo{constructor(e=1,t=1,n={}){super(),n=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:Li,depthBuffer:!0,stencilBuffer:!1,resolveColorBuffer:!0,resolveDepthBuffer:!0,resolveStencilBuffer:!0,storeMultisampledColorBuffer:!0,storeMultisampledDepthBuffer:!0,storeMultisampledStencilBuffer:!0,depthTexture:null,samples:0,count:1,depth:1,multiview:!1,useArrayDepthTexture:!1},n),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=n.depth,this.scissor=new ls(0,0,e,t),this.scissorTest=!1,this.viewport=new ls(0,0,e,t),this.textures=[];let r=n.count;for(let i=0;i<r;i++)this.textures[i]=new cs({width:e,height:t,depth:n.depth}),this.textures[i].isRenderTargetTexture=!0,this.textures[i].renderTarget=this;this._setTextureOptions(n),this.depthBuffer=n.depthBuffer,this.stencilBuffer=n.stencilBuffer,this.resolveColorBuffer=n.resolveColorBuffer,this.resolveDepthBuffer=n.resolveDepthBuffer,this.resolveStencilBuffer=n.resolveStencilBuffer,this.storeMultisampledColorBuffer=n.storeMultisampledColorBuffer,this.storeMultisampledDepthBuffer=n.storeMultisampledDepthBuffer,this.storeMultisampledStencilBuffer=n.storeMultisampledStencilBuffer,this._depthTexture=null,this.depthTexture=n.depthTexture,this.samples=n.samples,this.multiview=n.multiview,this.useArrayDepthTexture=n.useArrayDepthTexture}_setTextureOptions(e={}){let t={minFilter:Li,generateMipmaps:!1,flipY:!1,internalFormat:null};e.mapping!==void 0&&(t.mapping=e.mapping),e.wrapS!==void 0&&(t.wrapS=e.wrapS),e.wrapT!==void 0&&(t.wrapT=e.wrapT),e.wrapR!==void 0&&(t.wrapR=e.wrapR),e.magFilter!==void 0&&(t.magFilter=e.magFilter),e.minFilter!==void 0&&(t.minFilter=e.minFilter),e.format!==void 0&&(t.format=e.format),e.type!==void 0&&(t.type=e.type),e.anisotropy!==void 0&&(t.anisotropy=e.anisotropy),e.colorSpace!==void 0&&(t.colorSpace=e.colorSpace),e.flipY!==void 0&&(t.flipY=e.flipY),e.generateMipmaps!==void 0&&(t.generateMipmaps=e.generateMipmaps),e.mipmapsAutoUpdate!==void 0&&(t.mipmapsAutoUpdate=e.mipmapsAutoUpdate),e.internalFormat!==void 0&&(t.internalFormat=e.internalFormat);for(let e=0;e<this.textures.length;e++)this.textures[e].setValues(t)}get texture(){return this.textures[0]}set texture(e){this.textures[0]=e}set depthTexture(e){this._depthTexture!==null&&this._depthTexture.renderTarget===this&&(this._depthTexture.renderTarget=null),e!==null&&e.renderTarget===null&&(e.renderTarget=this),this._depthTexture=e}get depthTexture(){return this._depthTexture}setSize(e,t,n=1){if(this.width!==e||this.height!==t||this.depth!==n){this.width=e,this.height=t,this.depth=n;for(let r=0,i=this.textures.length;r<i;r++)this.textures[r].image.width=e,this.textures[r].image.height=t,this.textures[r].image.depth=n,this.textures[r].isData3DTexture!==!0&&(this.textures[r].isArrayTexture=this.textures[r].image.depth>1);this.dispose()}this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.textures.length=0;for(let t=0,n=e.textures.length;t<n;t++){this.textures[t]=e.textures[t].clone(),this.textures[t].isRenderTargetTexture=!0,this.textures[t].renderTarget=this;let n=Object.assign({},e.textures[t].image);this.textures[t].source=new is(n)}if(this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,this.resolveColorBuffer=e.resolveColorBuffer,this.resolveDepthBuffer=e.resolveDepthBuffer,this.resolveStencilBuffer=e.resolveStencilBuffer,this.storeMultisampledColorBuffer=e.storeMultisampledColorBuffer,this.storeMultisampledDepthBuffer=e.storeMultisampledDepthBuffer,this.storeMultisampledStencilBuffer=e.storeMultisampledStencilBuffer,e.depthTexture!==null){if(e.depthTexture.renderTarget===e){let t=e.depthTexture.clone();t.renderTarget=null,this.depthTexture=t}else this.depthTexture=e.depthTexture}else this.depthTexture=null;return this.samples=e.samples,this.multiview=e.multiview,this.useArrayDepthTexture=e.useArrayDepthTexture,this}dispose(){this.dispatchEvent({type:`dispose`})}},ds=class extends us{constructor(e=1,t=1,n={}){super(e,t,n),this.isWebGLRenderTarget=!0}},fs=class extends cs{constructor(e=null,t=1,n=1,r=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:n,depth:r},this.magFilter=Pi,this.minFilter=Pi,this.wrapR=Mi,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1,this.layerUpdates=new Set}copy(e){return super.copy(e),this.wrapR=e.wrapR,this}addLayerUpdate(e){this.layerUpdates.add(e)}clearLayerUpdates(){this.layerUpdates.clear()}},ps=class extends cs{constructor(e=null,t=1,n=1,r=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:n,depth:r},this.magFilter=Pi,this.minFilter=Pi,this.wrapR=Mi,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}copy(e){return super.copy(e),this.wrapR=e.wrapR,this}},ms=class e{static{this.prototype.isMatrix4=!0}constructor(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h)}set(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){let g=this.elements;return g[0]=e,g[4]=t,g[8]=n,g[12]=r,g[1]=i,g[5]=a,g[9]=o,g[13]=s,g[2]=c,g[6]=l,g[10]=u,g[14]=d,g[3]=f,g[7]=p,g[11]=m,g[15]=h,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new e().fromArray(this.elements)}copy(e){let t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}copyPosition(e){let t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){let t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return this.determinantAffine()===0?(e.set(1,0,0),t.set(0,1,0),n.set(0,0,1),this):(e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this)}makeBasis(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}extractRotation(e){if(e.determinantAffine()===0)return this.identity();let t=this.elements,n=e.elements,r=1/hs.setFromMatrixColumn(e,0).length(),i=1/hs.setFromMatrixColumn(e,1).length(),a=1/hs.setFromMatrixColumn(e,2).length();return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=0,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=0,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){let t=this.elements,n=e.x,r=e.y,i=e.z,a=Math.cos(n),o=Math.sin(n),s=Math.cos(r),c=Math.sin(r),l=Math.cos(i),u=Math.sin(i);if(e.order===`XYZ`){let e=a*l,n=a*u,r=o*l,i=o*u;t[0]=s*l,t[4]=-s*u,t[8]=c,t[1]=n+r*c,t[5]=e-i*c,t[9]=-o*s,t[2]=i-e*c,t[6]=r+n*c,t[10]=a*s}else if(e.order===`YXZ`){let e=s*l,n=s*u,r=c*l,i=c*u;t[0]=e+i*o,t[4]=r*o-n,t[8]=a*c,t[1]=a*u,t[5]=a*l,t[9]=-o,t[2]=n*o-r,t[6]=i+e*o,t[10]=a*s}else if(e.order===`ZXY`){let e=s*l,n=s*u,r=c*l,i=c*u;t[0]=e-i*o,t[4]=-a*u,t[8]=r+n*o,t[1]=n+r*o,t[5]=a*l,t[9]=i-e*o,t[2]=-a*c,t[6]=o,t[10]=a*s}else if(e.order===`ZYX`){let e=a*l,n=a*u,r=o*l,i=o*u;t[0]=s*l,t[4]=r*c-n,t[8]=e*c+i,t[1]=s*u,t[5]=i*c+e,t[9]=n*c-r,t[2]=-c,t[6]=o*s,t[10]=a*s}else if(e.order===`YZX`){let e=a*s,n=a*c,r=o*s,i=o*c;t[0]=s*l,t[4]=i-e*u,t[8]=r*u+n,t[1]=u,t[5]=a*l,t[9]=-o*l,t[2]=-c*l,t[6]=n*u+r,t[10]=e-i*u}else if(e.order===`XZY`){let e=a*s,n=a*c,r=o*s,i=o*c;t[0]=s*l,t[4]=-u,t[8]=c*l,t[1]=e*u+i,t[5]=a*l,t[9]=n*u-r,t[2]=r*u-n,t[6]=o*l,t[10]=i*u+e}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(_s,e,vs)}lookAt(e,t,n){let r=this.elements;return xs.subVectors(e,t),xs.lengthSq()===0&&(xs.z=1),xs.normalize(),ys.crossVectors(n,xs),ys.lengthSq()===0&&(Math.abs(n.z)===1?xs.x+=1e-4:xs.z+=1e-4,xs.normalize(),ys.crossVectors(n,xs)),ys.normalize(),bs.crossVectors(xs,ys),r[0]=ys.x,r[4]=bs.x,r[8]=xs.x,r[1]=ys.y,r[5]=bs.y,r[9]=xs.y,r[2]=ys.z,r[6]=bs.z,r[10]=xs.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[4],s=n[8],c=n[12],l=n[1],u=n[5],d=n[9],f=n[13],p=n[2],m=n[6],h=n[10],g=n[14],_=n[3],v=n[7],y=n[11],b=n[15],x=r[0],S=r[4],C=r[8],w=r[12],T=r[1],E=r[5],D=r[9],O=r[13],k=r[2],A=r[6],j=r[10],M=r[14],N=r[3],ee=r[7],te=r[11],P=r[15];return i[0]=a*x+o*T+s*k+c*N,i[4]=a*S+o*E+s*A+c*ee,i[8]=a*C+o*D+s*j+c*te,i[12]=a*w+o*O+s*M+c*P,i[1]=l*x+u*T+d*k+f*N,i[5]=l*S+u*E+d*A+f*ee,i[9]=l*C+u*D+d*j+f*te,i[13]=l*w+u*O+d*M+f*P,i[2]=p*x+m*T+h*k+g*N,i[6]=p*S+m*E+h*A+g*ee,i[10]=p*C+m*D+h*j+g*te,i[14]=p*w+m*O+h*M+g*P,i[3]=_*x+v*T+y*k+b*N,i[7]=_*S+v*E+y*A+b*ee,i[11]=_*C+v*D+y*j+b*te,i[15]=_*w+v*O+y*M+b*P,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){let e=this.elements,t=e[0],n=e[4],r=e[8],i=e[12],a=e[1],o=e[5],s=e[9],c=e[13],l=e[2],u=e[6],d=e[10],f=e[14],p=e[3],m=e[7],h=e[11],g=e[15],_=s*f-c*d,v=o*f-c*u,y=o*d-s*u,b=a*f-c*l,x=a*d-s*l,S=a*u-o*l;return t*(m*_-h*v+g*y)-n*(p*_-h*b+g*x)+r*(p*v-m*b+g*S)-i*(p*y-m*x+h*S)}determinantAffine(){let e=this.elements,t=e[0],n=e[4],r=e[8],i=e[1],a=e[5],o=e[9],s=e[2],c=e[6],l=e[10];return t*(a*l-o*c)-n*(i*l-o*s)+r*(i*c-a*s)}transpose(){let e=this.elements,t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){let r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=t,r[14]=n),this}invert(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8],u=e[9],d=e[10],f=e[11],p=e[12],m=e[13],h=e[14],g=e[15],_=t*o-n*a,v=t*s-r*a,y=t*c-i*a,b=n*s-r*o,x=n*c-i*o,S=r*c-i*s,C=l*m-u*p,w=l*h-d*p,T=l*g-f*p,E=u*h-d*m,D=u*g-f*m,O=d*g-f*h,k=_*O-v*D+y*E+b*T-x*w+S*C;if(k===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);let A=1/k;return e[0]=(o*O-s*D+c*E)*A,e[1]=(r*D-n*O-i*E)*A,e[2]=(m*S-h*x+g*b)*A,e[3]=(d*x-u*S-f*b)*A,e[4]=(s*T-a*O-c*w)*A,e[5]=(t*O-r*T+i*w)*A,e[6]=(h*y-p*S-g*v)*A,e[7]=(l*S-d*y+f*v)*A,e[8]=(a*D-o*T+c*C)*A,e[9]=(n*T-t*D-i*C)*A,e[10]=(p*x-m*y+g*_)*A,e[11]=(u*y-l*x-f*_)*A,e[12]=(o*w-a*E-s*C)*A,e[13]=(t*E-n*w+r*C)*A,e[14]=(m*v-p*b-h*_)*A,e[15]=(l*b-u*v+d*_)*A,this}scale(e){let t=this.elements,n=e.x,r=e.y,i=e.z;return t[0]*=n,t[4]*=r,t[8]*=i,t[1]*=n,t[5]*=r,t[9]*=i,t[2]*=n,t[6]*=r,t[10]*=i,t[3]*=n,t[7]*=r,t[11]*=i,this}getMaxScaleOnAxis(){let e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,r))}makeTranslation(e,t,n){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){let t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}makeRotationY(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}makeRotationZ(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){let n=Math.cos(t),r=Math.sin(t),i=1-n,a=e.x,o=e.y,s=e.z,c=i*a,l=i*o;return this.set(c*a+n,c*o-r*s,c*s+r*o,0,c*o+r*s,l*o+n,l*s-r*a,0,c*s-r*o,l*s+r*a,i*s*s+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,r,i,a){return this.set(1,n,i,0,e,1,a,0,t,r,1,0,0,0,0,1),this}compose(e,t,n){let r=this.elements,i=t._x,a=t._y,o=t._z,s=t._w,c=i+i,l=a+a,u=o+o,d=i*c,f=i*l,p=i*u,m=a*l,h=a*u,g=o*u,_=s*c,v=s*l,y=s*u,b=n.x,x=n.y,S=n.z;return r[0]=(1-(m+g))*b,r[1]=(f+y)*b,r[2]=(p-v)*b,r[3]=0,r[4]=(f-y)*x,r[5]=(1-(d+g))*x,r[6]=(h+_)*x,r[7]=0,r[8]=(p+v)*S,r[9]=(h-_)*S,r[10]=(1-(d+m))*S,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,t,n){let r=this.elements;e.x=r[12],e.y=r[13],e.z=r[14];let i=this.determinantAffine();if(i===0)return n.set(1,1,1),t.identity(),this;let a=hs.set(r[0],r[1],r[2]).length(),o=hs.set(r[4],r[5],r[6]).length(),s=hs.set(r[8],r[9],r[10]).length();i<0&&(a=-a),gs.copy(this);let c=1/a,l=1/o,u=1/s;return gs.elements[0]*=c,gs.elements[1]*=c,gs.elements[2]*=c,gs.elements[4]*=l,gs.elements[5]*=l,gs.elements[6]*=l,gs.elements[8]*=u,gs.elements[9]*=u,gs.elements[10]*=u,t.setFromRotationMatrix(gs),n.x=a,n.y=o,n.z=s,this}makePerspective(e,t,n,r,i,a,o=oo,s=!1){let c=this.elements,l=2*i/(t-e),u=2*i/(n-r),d=(t+e)/(t-e),f=(n+r)/(n-r),p,m;if(s)p=i/(a-i),m=a*i/(a-i);else if(o===2e3)p=-(a+i)/(a-i),m=-2*a*i/(a-i);else if(o===2001)p=-a/(a-i),m=-a*i/(a-i);else throw Error(`THREE.Matrix4.makePerspective(): Invalid coordinate system: `+o);return c[0]=l,c[4]=0,c[8]=d,c[12]=0,c[1]=0,c[5]=u,c[9]=f,c[13]=0,c[2]=0,c[6]=0,c[10]=p,c[14]=m,c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this}makeOrthographic(e,t,n,r,i,a,o=oo,s=!1){let c=this.elements,l=2/(t-e),u=2/(n-r),d=-(t+e)/(t-e),f=-(n+r)/(n-r),p,m;if(s)p=1/(a-i),m=a/(a-i);else if(o===2e3)p=-2/(a-i),m=-(a+i)/(a-i);else if(o===2001)p=-1/(a-i),m=-i/(a-i);else throw Error(`THREE.Matrix4.makeOrthographic(): Invalid coordinate system: `+o);return c[0]=l,c[4]=0,c[8]=0,c[12]=d,c[1]=0,c[5]=u,c[9]=0,c[13]=f,c[2]=0,c[6]=0,c[10]=p,c[14]=m,c[3]=0,c[7]=0,c[11]=0,c[15]=1,this}equals(e){let t=this.elements,n=e.elements;for(let e=0;e<16;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){let n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}},hs=new W,gs=new ms,_s=new W(0,0,0),vs=new W(1,1,1),ys=new W,bs=new W,xs=new W,Ss=new ms,Cs=new Ko,ws=class e{constructor(t=0,n=0,r=0,i=e.DEFAULT_ORDER){this.isEuler=!0,this._x=t,this._y=n,this._z=r,this._order=i}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,n,r=this._order){return this._x=e,this._y=t,this._z=n,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,n=!0){let r=e.elements,i=r[0],a=r[4],o=r[8],s=r[1],c=r[5],l=r[9],u=r[2],d=r[6],f=r[10];switch(t){case`XYZ`:this._y=Math.asin(H(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-l,f),this._z=Math.atan2(-a,i)):(this._x=Math.atan2(d,c),this._z=0);break;case`YXZ`:this._x=Math.asin(-H(l,-1,1)),Math.abs(l)<.9999999?(this._y=Math.atan2(o,f),this._z=Math.atan2(s,c)):(this._y=Math.atan2(-u,i),this._z=0);break;case`ZXY`:this._x=Math.asin(H(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(-u,f),this._z=Math.atan2(-a,c)):(this._y=0,this._z=Math.atan2(s,i));break;case`ZYX`:this._y=Math.asin(-H(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(d,f),this._z=Math.atan2(s,i)):(this._x=0,this._z=Math.atan2(-a,c));break;case`YZX`:this._z=Math.asin(H(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-l,c),this._y=Math.atan2(-u,i)):(this._x=0,this._y=Math.atan2(o,f));break;case`XZY`:this._z=Math.asin(-H(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(d,c),this._y=Math.atan2(o,i)):(this._x=Math.atan2(-l,f),this._y=0);break;default:B(`Euler: .setFromRotationMatrix() encountered an unknown order: `+t)}return this._order=t,n===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,n){return Ss.makeRotationFromQuaternion(e),this.setFromRotationMatrix(Ss,t,n)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return Cs.setFromEuler(this),this.setFromQuaternion(Cs,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}};ws.DEFAULT_ORDER=`XYZ`;var Ts=class{constructor(){this.mask=1}set(e){this.mask=1<<e>>>0}enable(e){this.mask|=1<<e}enableAll(){this.mask=-1}toggle(e){this.mask^=1<<e}disable(e){this.mask&=~(1<<e)}disableAll(){this.mask=0}test(e){return(this.mask&e.mask)!==0}isEnabled(e){return!!(this.mask&1<<e)}},Es=0,Ds=new W,Os=new Ko,ks=new ms,As=new W,js=new W,Ms=new W,Ns=new Ko,Ps=new W(1,0,0),Fs=new W(0,1,0),Is=new W(0,0,1),Ls={type:`added`},Rs={type:`removed`},zs={type:`childadded`,child:null},Bs={type:`childremoved`,child:null},Vs=class e extends vo{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:Es++}),this.uuid=Co(),this.name=``,this.type=`Object3D`,this.parent=null,this.children=[],this.up=e.DEFAULT_UP.clone();let t=new W,n=new ws,r=new Ko,i=new W(1,1,1);function a(){r.setFromEuler(n,!1)}function o(){n.setFromQuaternion(r,void 0,!1)}n._onChange(a),r._onChange(o),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:n},quaternion:{configurable:!0,enumerable:!0,value:r},scale:{configurable:!0,enumerable:!0,value:i},modelViewMatrix:{value:new ms},normalMatrix:{value:new G}}),this.matrix=new ms,this.matrixWorld=new ms,this.matrixAutoUpdate=e.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=e.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new Ts,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.customDepthMaterial=void 0,this.customDistanceMaterial=void 0,this.static=!1,this.userData={},this.pivot=null}onBeforeShadow(){}onAfterShadow(){}onBeforeRender(){}onAfterRender(){}applyMatrix4(e){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(e),this.matrix.decompose(this.position,this.quaternion,this.scale),this.pivot!==null&&this.position.copy(this.pivot).applyMatrix4(this.matrix).sub(this.pivot)}applyQuaternion(e){return this.quaternion.premultiply(e),this}setRotationFromAxisAngle(e,t){this.quaternion.setFromAxisAngle(e,t)}setRotationFromEuler(e){this.quaternion.setFromEuler(e,!0)}setRotationFromMatrix(e){this.quaternion.setFromRotationMatrix(e)}setRotationFromQuaternion(e){this.quaternion.copy(e)}rotateOnAxis(e,t){return Os.setFromAxisAngle(e,t),this.quaternion.multiply(Os),this}rotateOnWorldAxis(e,t){return Os.setFromAxisAngle(e,t),this.quaternion.premultiply(Os),this}rotateX(e){return this.rotateOnAxis(Ps,e)}rotateY(e){return this.rotateOnAxis(Fs,e)}rotateZ(e){return this.rotateOnAxis(Is,e)}translateOnAxis(e,t){return Ds.copy(e).applyQuaternion(this.quaternion),this.position.add(Ds.multiplyScalar(t)),this}translateX(e){return this.translateOnAxis(Ps,e)}translateY(e){return this.translateOnAxis(Fs,e)}translateZ(e){return this.translateOnAxis(Is,e)}localToWorld(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(this.matrixWorld)}worldToLocal(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(ks.copy(this.matrixWorld).invert())}lookAt(e,t,n){e.isVector3?As.copy(e):As.set(e,t,n);let r=this.parent;this.updateWorldMatrix(!0,!1),js.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?ks.lookAt(js,As,this.up):ks.lookAt(As,js,this.up),this.quaternion.setFromRotationMatrix(ks),r&&(ks.extractRotation(r.matrixWorld),Os.setFromRotationMatrix(ks),this.quaternion.premultiply(Os.invert()))}add(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return e===this?(V(`Object3D.add: object can't be added as a child of itself.`,e),this):(e&&e.isObject3D?(e.removeFromParent(),e.parent=this,this.children.push(e),e.dispatchEvent(Ls),zs.child=e,this.dispatchEvent(zs),zs.child=null):V(`Object3D.add: object not an instance of THREE.Object3D.`,e),this)}remove(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.remove(arguments[e]);return this}let t=this.children.indexOf(e);return t!==-1&&(e.parent=null,this.children.splice(t,1),e.dispatchEvent(Rs),Bs.child=e,this.dispatchEvent(Bs),Bs.child=null),this}removeFromParent(){let e=this.parent;return e!==null&&e.remove(this),this}clear(){return this.remove(...this.children)}attach(e){return this.updateWorldMatrix(!0,!1),ks.copy(this.matrixWorld).invert(),e.parent!==null&&(e.parent.updateWorldMatrix(!0,!1),ks.multiply(e.parent.matrixWorld)),e.applyMatrix4(ks),e.removeFromParent(),e.parent=this,this.children.push(e),e.updateWorldMatrix(!1,!0),e.dispatchEvent(Ls),zs.child=e,this.dispatchEvent(zs),zs.child=null,this}getObjectById(e){return this.getObjectByProperty(`id`,e)}getObjectByName(e){return this.getObjectByProperty(`name`,e)}getObjectByProperty(e,t){if(this[e]===t)return this;for(let n=0,r=this.children.length;n<r;n++){let r=this.children[n].getObjectByProperty(e,t);if(r!==void 0)return r}}getObjectsByProperty(e,t,n=[]){this[e]===t&&n.push(this);let r=this.children;for(let i=0,a=r.length;i<a;i++)r[i].getObjectsByProperty(e,t,n);return n}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(js,e,Ms),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(js,Ns,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);let t=this.matrixWorld.elements;return e.set(t[8],t[9],t[10]).normalize()}raycast(){}intersectsFrustum(){return!0}traverse(e){e(this);let t=this.children;for(let n=0,r=t.length;n<r;n++)t[n].traverse(e)}traverseVisible(e){if(this.visible===!1)return;e(this);let t=this.children;for(let n=0,r=t.length;n<r;n++)t[n].traverseVisible(e)}traverseAncestors(e){let t=this.parent;t!==null&&(e(t),t.traverseAncestors(e))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale);let e=this.pivot;if(e!==null){let t=e.x,n=e.y,r=e.z,i=this.matrix.elements;i[12]+=t-i[0]*t-i[4]*n-i[8]*r,i[13]+=n-i[1]*t-i[5]*n-i[9]*r,i[14]+=r-i[2]*t-i[6]*n-i[10]*r}this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(this.matrixWorldAutoUpdate===!0&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),this.matrixWorldNeedsUpdate=!1,e=!0);let t=this.children;for(let n=0,r=t.length;n<r;n++)t[n].updateMatrixWorld(e)}updateWorldMatrix(e,t,n=!1){let r=this.parent;if(e===!0&&r!==null&&r.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||n)&&(this.matrixWorldAutoUpdate===!0&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),this.matrixWorldNeedsUpdate=!1,n=!0),t===!0){let e=this.children;for(let t=0,r=e.length;t<r;t++)e[t].updateWorldMatrix(!1,!0,n)}}toJSON(e){let t=e===void 0||typeof e==`string`,n={};t&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},n.metadata={version:4.7,type:`Object`,generator:`Object3D.toJSON`});let r={};r.uuid=this.uuid,r.type=this.type,r.name=this.name,r.castShadow=this.castShadow,r.receiveShadow=this.receiveShadow,r.visible=this.visible,r.frustumCulled=this.frustumCulled,r.renderOrder=this.renderOrder,r.static=this.static,r.matrixAutoUpdate=this.matrixAutoUpdate,Object.keys(this.userData).length>0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.pivot!==null&&(r.pivot=this.pivot.toArray()),this.morphTargetDictionary!==void 0&&(r.morphTargetDictionary=Object.assign({},this.morphTargetDictionary)),this.morphTargetInfluences!==void 0&&(r.morphTargetInfluences=this.morphTargetInfluences.slice()),this.isInstancedMesh&&(r.type=`InstancedMesh`,r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type=`BatchedMesh`,r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.geometryInfo=this._geometryInfo.map(e=>({...e,boundingBox:e.boundingBox?e.boundingBox.toJSON():void 0,boundingSphere:e.boundingSphere?e.boundingSphere.toJSON():void 0})),r.instanceInfo=this._instanceInfo.map(e=>({...e})),r.availableInstanceIds=this._availableInstanceIds.slice(),r.availableGeometryIds=this._availableGeometryIds.slice(),r.nextIndexStart=this._nextIndexStart,r.nextVertexStart=this._nextVertexStart,r.geometryCount=this._geometryCount,r.maxInstanceCount=this._maxInstanceCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.matricesTexture=this._matricesTexture.toJSON(e),r.indirectTexture=this._indirectTexture.toJSON(e),this._colorsTexture!==null&&(r.colorsTexture=this._colorsTexture.toJSON(e)),this.boundingSphere!==null&&(r.boundingSphere=this.boundingSphere.toJSON()),this.boundingBox!==null&&(r.boundingBox=this.boundingBox.toJSON()));function i(t,n){return t[n.uuid]===void 0&&(t[n.uuid]=n.toJSON(e)),n.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);let t=this.geometry.parameters;if(t!==void 0&&t.shapes!==void 0){let n=t.shapes;if(Array.isArray(n))for(let t=0,r=n.length;t<r;t++){let r=n[t];i(e.shapes,r)}else i(e.shapes,n)}}if(this.isSkinnedMesh&&(r.bindMode=this.bindMode,r.bindMatrix=this.bindMatrix.toArray(),this.skeleton!==void 0&&(i(e.skeletons,this.skeleton),r.skeleton=this.skeleton.uuid)),this.material!==void 0){if(Array.isArray(this.material)){let t=[];for(let n=0,r=this.material.length;n<r;n++)t.push(i(e.materials,this.material[n]));r.material=t}else r.material=i(e.materials,this.material)}if(this.children.length>0){r.children=[];for(let t=0;t<this.children.length;t++)r.children.push(this.children[t].toJSON(e).object)}if(this.animations.length>0){r.animations=[];for(let t=0;t<this.animations.length;t++){let n=this.animations[t];r.animations.push(i(e.animations,n))}}if(t){let t=a(e.geometries),r=a(e.materials),i=a(e.textures),o=a(e.images),s=a(e.shapes),c=a(e.skeletons),l=a(e.animations),u=a(e.nodes);t.length>0&&(n.geometries=t),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),o.length>0&&(n.images=o),s.length>0&&(n.shapes=s),c.length>0&&(n.skeletons=c),l.length>0&&(n.animations=l),u.length>0&&(n.nodes=u)}return n.object=r,n;function a(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.pivot=e.pivot===null?null:e.pivot.clone(),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.static=e.static,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let t=0;t<e.children.length;t++){let n=e.children[t];this.add(n.clone())}return this}dispose(){this.dispatchEvent({type:`dispose`})}};Vs.DEFAULT_UP=new W(0,1,0),Vs.DEFAULT_MATRIX_AUTO_UPDATE=!0,Vs.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;var Hs=class extends Vs{constructor(){super(),this.isGroup=!0,this.type=`Group`}},Us={type:`move`},Ws=class{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new Hs,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new Hs,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new W,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new W),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new Hs,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new W,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new W,this._grip.eventsEnabled=!1),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){let t=this._hand;if(t)for(let n of e.hand.values())this._getHandJoint(t,n)}return this.dispatchEvent({type:`connected`,data:e}),this}disconnect(e){return this.dispatchEvent({type:`disconnected`,data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,t,n){let r=null,i=null,a=null,o=this._targetRay,s=this._grip,c=this._hand;if(e&&t.session.visibilityState!==`visible-blurred`){if(c&&e.hand){a=!0;for(let r of e.hand.values()){let e=t.getJointPose(r,n),i=this._getHandJoint(c,r);e!==null&&(i.matrix.fromArray(e.transform.matrix),i.matrix.decompose(i.position,i.quaternion,i.scale),i.matrixWorldNeedsUpdate=!0,i.jointRadius=e.radius),i.visible=e!==null}let r=c.joints[`index-finger-tip`],i=c.joints[`thumb-tip`],o=r.position.distanceTo(i.position);c.inputState.pinching&&o>.025?(c.inputState.pinching=!1,this.dispatchEvent({type:`pinchend`,handedness:e.handedness,target:this})):!c.inputState.pinching&&o<=.015&&(c.inputState.pinching=!0,this.dispatchEvent({type:`pinchstart`,handedness:e.handedness,target:this}))}else s!==null&&e.gripSpace&&(i=t.getPose(e.gripSpace,n),i!==null&&(s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.quaternion,s.scale),s.matrixWorldNeedsUpdate=!0,i.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(i.linearVelocity)):s.hasLinearVelocity=!1,i.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(i.angularVelocity)):s.hasAngularVelocity=!1,s.eventsEnabled&&s.dispatchEvent({type:`gripUpdated`,data:e,target:this})));o!==null&&(r=t.getPose(e.targetRaySpace,n),r===null&&i!==null&&(r=i),r!==null&&(o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.quaternion,o.scale),o.matrixWorldNeedsUpdate=!0,r.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(r.linearVelocity)):o.hasLinearVelocity=!1,r.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(r.angularVelocity)):o.hasAngularVelocity=!1,this.dispatchEvent(Us)))}return o!==null&&(o.visible=r!==null),s!==null&&(s.visible=i!==null),c!==null&&(c.visible=a!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){let n=new Hs;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}},Gs={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Ks={h:0,s:0,l:0},qs={h:0,s:0,l:0};function Js(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*6*(2/3-n):e}var q=class{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(t===void 0&&n===void 0){let t=e;t&&t.isColor?this.copy(t):typeof t==`number`?this.setHex(t):typeof t==`string`&&this.setStyle(t)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=$a){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,K.colorSpaceToWorking(this,t),this}setRGB(e,t,n,r=K.workingColorSpace){return this.r=e,this.g=t,this.b=n,K.colorSpaceToWorking(this,r),this}setHSL(e,t,n,r=K.workingColorSpace){if(e=wo(e,1),t=H(t,0,1),n=H(n,0,1),t===0)this.r=this.g=this.b=n;else{let r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=Js(i,r,e+1/3),this.g=Js(i,r,e),this.b=Js(i,r,e-1/3)}return K.colorSpaceToWorking(this,r),this}setStyle(e,t=$a){function n(t){t!==void 0&&parseFloat(t)<1&&B(`Color: Alpha component of `+e+` will be ignored.`)}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let i,a=r[1],o=r[2];switch(a){case`rgb`:case`rgba`:if(i=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d+(?:\.\d+)?|\.\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(255,parseInt(i[1],10))/255,Math.min(255,parseInt(i[2],10))/255,Math.min(255,parseInt(i[3],10))/255,t);if(i=/^\s*(\d+(?:\.\d+)?|\.\d+)\%\s*,\s*(\d+(?:\.\d+)?|\.\d+)\%\s*,\s*(\d+(?:\.\d+)?|\.\d+)\%\s*(?:,\s*(\d+(?:\.\d+)?|\.\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(100,parseFloat(i[1]))/100,Math.min(100,parseFloat(i[2]))/100,Math.min(100,parseFloat(i[3]))/100,t);break;case`hsl`:case`hsla`:if(i=/^\s*([+-]?(?:\d+(?:\.\d+)?|\.\d+))\s*,\s*(\d+(?:\.\d+)?|\.\d+)\%\s*,\s*(\d+(?:\.\d+)?|\.\d+)\%\s*(?:,\s*(\d+(?:\.\d+)?|\.\d+)\s*)?$/.exec(o))return n(i[4]),this.setHSL(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,t);break;default:B(`Color: Unknown color model `+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){let n=r[1],i=n.length;if(i===3)return this.setRGB(parseInt(n.charAt(0),16)/15,parseInt(n.charAt(1),16)/15,parseInt(n.charAt(2),16)/15,t);if(i===6)return this.setHex(parseInt(n,16),t);B(`Color: Invalid hex color `+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=$a){let n=Gs[e.toLowerCase()];return n===void 0?B(`Color: Unknown color `+e):this.setHex(n,t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=$o(e.r),this.g=$o(e.g),this.b=$o(e.b),this}copyLinearToSRGB(e){return this.r=es(e.r),this.g=es(e.g),this.b=es(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=$a){return K.workingToColorSpace(Ys.copy(this),e),Math.round(H(Ys.r*255,0,255))*65536+Math.round(H(Ys.g*255,0,255))*256+Math.round(H(Ys.b*255,0,255))}getHexString(e=$a){return(`000000`+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=K.workingColorSpace){K.workingToColorSpace(Ys.copy(this),t);let n=Ys.r,r=Ys.g,i=Ys.b,a=Math.max(n,r,i),o=Math.min(n,r,i),s,c,l=(o+a)/2;if(o===a)s=0,c=0;else{let e=a-o;switch(c=l<=.5?e/(a+o):e/(2-a-o),a){case n:s=(r-i)/e+(r<i?6:0);break;case r:s=(i-n)/e+2;break;case i:s=(n-r)/e+4}s/=6}return e.h=s,e.s=c,e.l=l,e}getRGB(e,t=K.workingColorSpace){return K.workingToColorSpace(Ys.copy(this),t),e.r=Ys.r,e.g=Ys.g,e.b=Ys.b,e}getStyle(e=$a){K.workingToColorSpace(Ys.copy(this),e);let t=Ys.r,n=Ys.g,r=Ys.b;return e===`srgb`?`rgb(${Math.round(t*255)},${Math.round(n*255)},${Math.round(r*255)})`:`color(${e} ${t.toFixed(3)} ${n.toFixed(3)} ${r.toFixed(3)})`}offsetHSL(e,t,n){return this.getHSL(Ks),this.setHSL(Ks.h+e,Ks.s+t,Ks.l+n)}add(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}addColors(e,t){return this.r=e.r+t.r,this.g=e.g+t.g,this.b=e.b+t.b,this}addScalar(e){return this.r+=e,this.g+=e,this.b+=e,this}sub(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this}multiply(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}multiplyScalar(e){return this.r*=e,this.g*=e,this.b*=e,this}lerp(e,t){return this.r+=(e.r-this.r)*t,this.g+=(e.g-this.g)*t,this.b+=(e.b-this.b)*t,this}lerpColors(e,t,n){return this.r=e.r+(t.r-e.r)*n,this.g=e.g+(t.g-e.g)*n,this.b=e.b+(t.b-e.b)*n,this}lerpHSL(e,t){this.getHSL(Ks),e.getHSL(qs);let n=Do(Ks.h,qs.h,t),r=Do(Ks.s,qs.s,t),i=Do(Ks.l,qs.l,t);return this.setHSL(n,r,i),this}setFromVector3(e){return this.r=e.x,this.g=e.y,this.b=e.z,this}applyMatrix3(e){let t=this.r,n=this.g,r=this.b,i=e.elements;return this.r=i[0]*t+i[3]*n+i[6]*r,this.g=i[1]*t+i[4]*n+i[7]*r,this.b=i[2]*t+i[5]*n+i[8]*r,this}equals(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}fromArray(e,t=0){return this.r=e[t],this.g=e[t+1],this.b=e[t+2],this}toArray(e=[],t=0){return e[t]=this.r,e[t+1]=this.g,e[t+2]=this.b,e}fromBufferAttribute(e,t){return this.r=e.getX(t),this.g=e.getY(t),this.b=e.getZ(t),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}},Ys=new q;q.NAMES=Gs;var Xs=class extends Vs{constructor(){super(),this.isScene=!0,this.type=`Scene`,this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new ws,this.environmentIntensity=1,this.environmentRotation=new ws,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<`u`&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent(`observe`,{detail:this}))}copy(e,t){return super.copy(e,t),this.background=e.background===null?null:e.background.clone(),this.environment=e.environment===null?null:e.environment.clone(),this.fog=e.fog===null?null:e.fog.clone(),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,this.backgroundRotation.copy(e.backgroundRotation),this.environmentIntensity=e.environmentIntensity,this.environmentRotation.copy(e.environmentRotation),this.overrideMaterial=e.overrideMaterial===null?null:e.overrideMaterial.clone(),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){let t=super.toJSON(e);return this.fog!==null&&(t.object.fog=this.fog.toJSON()),t.object.backgroundBlurriness=this.backgroundBlurriness,t.object.backgroundIntensity=this.backgroundIntensity,t.object.backgroundRotation=this.backgroundRotation.toArray(),t.object.environmentIntensity=this.environmentIntensity,t.object.environmentRotation=this.environmentRotation.toArray(),t}},Zs=new W,Qs=new W,$s=new W,ec=new W,tc=new W,nc=new W,rc=new W,ic=new W,ac=new W,oc=new W,sc=new ls,cc=new ls,lc=new ls,uc=class e{constructor(e=new W,t=new W,n=new W){this.a=e,this.b=t,this.c=n}static getNormal(e,t,n,r){r.subVectors(n,t),Zs.subVectors(e,t),r.cross(Zs);let i=r.lengthSq();return i>0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(e,t,n,r,i){Zs.subVectors(r,t),Qs.subVectors(n,t),$s.subVectors(e,t);let a=Zs.dot(Zs),o=Zs.dot(Qs),s=Zs.dot($s),c=Qs.dot(Qs),l=Qs.dot($s),u=a*c-o*o;if(u===0)return i.set(0,0,0),null;let d=1/u,f=(c*s-o*l)*d,p=(a*l-o*s)*d;return i.set(1-f-p,p,f)}static containsPoint(e,t,n,r){return this.getBarycoord(e,t,n,r,ec)!==null&&ec.x>=0&&ec.y>=0&&ec.x+ec.y<=1}static getInterpolation(e,t,n,r,i,a,o,s){return this.getBarycoord(e,t,n,r,ec)===null?(s.x=0,s.y=0,`z`in s&&(s.z=0),`w`in s&&(s.w=0),null):(s.setScalar(0),s.addScaledVector(i,ec.x),s.addScaledVector(a,ec.y),s.addScaledVector(o,ec.z),s)}static getInterpolatedAttribute(e,t,n,r,i,a){return sc.setScalar(0),cc.setScalar(0),lc.setScalar(0),sc.fromBufferAttribute(e,t),cc.fromBufferAttribute(e,n),lc.fromBufferAttribute(e,r),a.setScalar(0),a.addScaledVector(sc,i.x),a.addScaledVector(cc,i.y),a.addScaledVector(lc,i.z),a}static isFrontFacing(e,t,n,r){return Zs.subVectors(n,t),Qs.subVectors(e,t),Zs.cross(Qs).dot(r)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Zs.subVectors(this.c,this.b),Qs.subVectors(this.a,this.b),Zs.cross(Qs).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return e.getNormal(this.a,this.b,this.c,t)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,n){return e.getBarycoord(t,this.a,this.b,this.c,n)}getInterpolation(t,n,r,i,a){return e.getInterpolation(t,this.a,this.b,this.c,n,r,i,a)}containsPoint(t){return e.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return e.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){let n=this.a,r=this.b,i=this.c,a,o;tc.subVectors(r,n),nc.subVectors(i,n),ic.subVectors(e,n);let s=tc.dot(ic),c=nc.dot(ic);if(s<=0&&c<=0)return t.copy(n);ac.subVectors(e,r);let l=tc.dot(ac),u=nc.dot(ac);if(l>=0&&u<=l)return t.copy(r);let d=s*u-l*c;if(d<=0&&s>=0&&l<=0&&s-l>0)return a=s/(s-l),t.copy(n).addScaledVector(tc,a);oc.subVectors(e,i);let f=tc.dot(oc),p=nc.dot(oc);if(p>=0&&f<=p)return t.copy(i);let m=f*c-s*p;if(m<=0&&c>=0&&p<=0)return o=c/(c-p),t.copy(n).addScaledVector(nc,o);let h=l*p-f*u;if(h<=0&&u-l>=0&&f-p>=0)return rc.subVectors(i,r),o=(u-l)/(u-l+(f-p)),t.copy(r).addScaledVector(rc,o);let g=1/(h+m+d);return a=m*g,o=d*g,t.copy(n).addScaledVector(tc,a).addScaledVector(nc,o)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}},dc=class{constructor(e=new W(1/0,1/0,1/0),t=new W(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t+=3)this.expandByPoint(pc.fromArray(e,t));return this}setFromBufferAttribute(e){this.makeEmpty();for(let t=0,n=e.count;t<n;t++)this.expandByPoint(pc.fromBufferAttribute(e,t));return this}setFromPoints(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t++)this.expandByPoint(e[t]);return this}setFromCenterAndSize(e,t){let n=pc.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(n),this.max.copy(e).add(n),this}setFromObject(e,t=!1){return this.makeEmpty(),this.expandByObject(e,t)}clone(){return new this.constructor().copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(e){return this.isEmpty()?e.set(0,0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}expandByObject(e,t=!1){e.updateWorldMatrix(!1,!1);let n=e.geometry;if(n!==void 0){let r=n.getAttribute(`position`);if(t===!0&&r!==void 0&&e.isInstancedMesh!==!0&&e.isBatchedMesh!==!0)for(let t=0,n=r.count;t<n;t++)e.isMesh===!0?e.getVertexPosition(t,pc):pc.fromBufferAttribute(r,t),pc.applyMatrix4(e.matrixWorld),this.expandByPoint(pc);else e.boundingBox===void 0?(n.boundingBox===null&&n.computeBoundingBox(),mc.copy(n.boundingBox)):(e.boundingBox===null&&e.computeBoundingBox(),mc.copy(e.boundingBox)),mc.applyMatrix4(e.matrixWorld),this.union(mc)}let r=e.children;for(let e=0,n=r.length;e<n;e++)this.expandByObject(r[e],t);return this}containsPoint(e){return e.x>=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y&&e.z>=this.min.z&&e.z<=this.max.z}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y&&e.max.z>=this.min.z&&e.min.z<=this.max.z}intersectsSphere(e){return this.clampPoint(e.center,pc),pc.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(xc),Sc.subVectors(this.max,xc),hc.subVectors(e.a,xc),gc.subVectors(e.b,xc),_c.subVectors(e.c,xc),vc.subVectors(gc,hc),yc.subVectors(_c,gc),bc.subVectors(hc,_c);let t=[0,-vc.z,vc.y,0,-yc.z,yc.y,0,-bc.z,bc.y,vc.z,0,-vc.x,yc.z,0,-yc.x,bc.z,0,-bc.x,-vc.y,vc.x,0,-yc.y,yc.x,0,-bc.y,bc.x,0];return!Tc(t,hc,gc,_c,Sc)||(t=[1,0,0,0,1,0,0,0,1],!Tc(t,hc,gc,_c,Sc))?!1:(Cc.crossVectors(vc,yc),t=[Cc.x,Cc.y,Cc.z],Tc(t,hc,gc,_c,Sc))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,pc).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(pc).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()||(fc[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),fc[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),fc[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),fc[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),fc[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),fc[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),fc[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),fc[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(fc)),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}toJSON(){return{min:this.min.toArray(),max:this.max.toArray()}}fromJSON(e){return this.min.fromArray(e.min),this.max.fromArray(e.max),this}},fc=[new W,new W,new W,new W,new W,new W,new W,new W],pc=new W,mc=new dc,hc=new W,gc=new W,_c=new W,vc=new W,yc=new W,bc=new W,xc=new W,Sc=new W,Cc=new W,wc=new W;function Tc(e,t,n,r,i){for(let a=0,o=e.length-3;a<=o;a+=3){wc.fromArray(e,a);let o=i.x*Math.abs(wc.x)+i.y*Math.abs(wc.y)+i.z*Math.abs(wc.z),s=t.dot(wc),c=n.dot(wc),l=r.dot(wc);if(Math.max(-Math.max(s,c,l),Math.min(s,c,l))>o)return!1}return!0}var Ec=new W,Dc=new U,Oc=0,kc=class extends vo{constructor(e,t,n=!1){if(super(),Array.isArray(e))throw TypeError(`THREE.BufferAttribute: array should be a Typed Array.`);this.isBufferAttribute=!0,Object.defineProperty(this,"id",{value:Oc++}),this.name=``,this.array=e,this.itemSize=t,this.count=e===void 0?0:e.length/t,this.normalized=n,this.usage=io,this.updateRanges=[],this.gpuType=Ki,this.version=0,this._normalizationScale=e===void 0?void 0:Ho(e)}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this._normalizationScale=e._normalizationScale,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let r=0,i=this.itemSize;r<i;r++)this.array[e+r]=t.array[n+r];return this}copyArray(e){return this.array.set(e),this}applyMatrix3(e){if(this.itemSize===2)for(let t=0,n=this.count;t<n;t++)Dc.fromBufferAttribute(this,t),Dc.applyMatrix3(e),this.setXY(t,Dc.x,Dc.y);else if(this.itemSize===3)for(let t=0,n=this.count;t<n;t++)Ec.fromBufferAttribute(this,t),Ec.applyMatrix3(e),this.setXYZ(t,Ec.x,Ec.y,Ec.z);return this}applyMatrix4(e){for(let t=0,n=this.count;t<n;t++)Ec.fromBufferAttribute(this,t),Ec.applyMatrix4(e),this.setXYZ(t,Ec.x,Ec.y,Ec.z);return this}applyNormalMatrix(e){for(let t=0,n=this.count;t<n;t++)Ec.fromBufferAttribute(this,t),Ec.applyNormalMatrix(e),this.setXYZ(t,Ec.x,Ec.y,Ec.z);return this}transformDirection(e){for(let t=0,n=this.count;t<n;t++)Ec.fromBufferAttribute(this,t),Ec.transformDirection(e),this.setXYZ(t,Ec.x,Ec.y,Ec.z);return this}set(e,t=0){return this.array.set(e,t),this}getComponent(e,t){let n=this.array[e*this.itemSize+t];return this.normalized&&(n=this._denormalize(n)),n}setComponent(e,t,n){return this.normalized&&(n=this._normalize(n)),this.array[e*this.itemSize+t]=n,this}getX(e){let t=this.array[e*this.itemSize];return this.normalized&&(t=this._denormalize(t)),t}setX(e,t){return this.normalized&&(t=this._normalize(t)),this.array[e*this.itemSize]=t,this}getY(e){let t=this.array[e*this.itemSize+1];return this.normalized&&(t=this._denormalize(t)),t}setY(e,t){return this.normalized&&(t=this._normalize(t)),this.array[e*this.itemSize+1]=t,this}getZ(e){let t=this.array[e*this.itemSize+2];return this.normalized&&(t=this._denormalize(t)),t}setZ(e,t){return this.normalized&&(t=this._normalize(t)),this.array[e*this.itemSize+2]=t,this}getW(e){let t=this.array[e*this.itemSize+3];return this.normalized&&(t=this._denormalize(t)),t}setW(e,t){return this.normalized&&(t=this._normalize(t)),this.array[e*this.itemSize+3]=t,this}setXY(e,t,n){return e*=this.itemSize,this.normalized&&(t=this._normalize(t),n=this._normalize(n)),this.array[e+0]=t,this.array[e+1]=n,this}setXYZ(e,t,n,r){return e*=this.itemSize,this.normalized&&(t=this._normalize(t),n=this._normalize(n),r=this._normalize(r)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=r,this}setXYZW(e,t,n,r,i){return e*=this.itemSize,this.normalized&&(t=this._normalize(t),n=this._normalize(n),r=this._normalize(r),i=this._normalize(i)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=r,this.array[e+3]=i,this}onUpload(e){return this.onUploadCallback=e,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){let e={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return e.name=this.name,e.usage=this.usage,e.gpuType=this.gpuType,e}dispose(){this.dispatchEvent({type:`dispose`})}_denormalize(e){let t=this._normalizationScale;return t===void 0?Uo(e,this.array):Math.max(e/t,-1)}_normalize(e){let t=this._normalizationScale;return t===void 0?Wo(e,this.array):Math.round(e*t)}},Ac=class extends kc{constructor(e,t,n){super(new Uint16Array(e),t,n)}},jc=class extends kc{constructor(e,t,n){super(new Uint32Array(e),t,n)}},Mc=class extends kc{constructor(e,t,n){super(new Float32Array(e),t,n)}},Nc=new dc,Pc=new W,Fc=new W,Ic=class{constructor(e=new W,t=-1){this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){let n=this.center;t===void 0?Nc.setFromPoints(e).getCenter(n):n.copy(t);let r=0;for(let t=0,i=e.length;t<i;t++)r=Math.max(r,n.distanceToSquared(e[t]));return this.radius=Math.sqrt(r),this}copy(e){return this.center.copy(e.center),this.radius=e.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(e){return e.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(e){return e.distanceTo(this.center)-this.radius}intersectsSphere(e){let t=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=t*t}intersectsBox(e){return e.intersectsSphere(this)}intersectsPlane(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius}clampPoint(e,t){let n=this.center.distanceToSquared(e);return t.copy(e),n>this.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius*=e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;Pc.subVectors(e,this.center);let t=Pc.lengthSq();if(t>this.radius*this.radius){let e=Math.sqrt(t),n=(e-this.radius)*.5;this.center.addScaledVector(Pc,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(Fc.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Pc.copy(e.center).add(Fc)),this.expandByPoint(Pc.copy(e.center).sub(Fc))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}toJSON(){return{radius:this.radius,center:this.center.toArray()}}fromJSON(e){return this.radius=e.radius,this.center.fromArray(e.center),this}},Lc=0,Rc=new ms,zc=new Vs,Bc=new W,Vc=new dc,Hc=new dc,Uc=new W,Wc=class e extends vo{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:Lc++}),this.uuid=Co(),this.name=``,this.type=`BufferGeometry`,this.index=null,this.indirect=null,this.indirectOffset=0,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={},this._transformed=!1}getIndex(){return this.index}setIndex(e){return this.index=Array.isArray(e)?new(so(e)?jc:Ac)(e,1):e,this}setIndirect(e,t=0){return this.indirect=e,this.indirectOffset=t,this}getIndirect(){return this.indirect}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return this.attributes[e]!==void 0}addGroup(e,t,n=0){this.groups.push({start:e,count:t,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){let t=this.attributes.position;t!==void 0&&(t.applyMatrix4(e),t.needsUpdate=!0);let n=this.attributes.normal;if(n!==void 0){let t=new G().getNormalMatrix(e);n.applyNormalMatrix(t),n.needsUpdate=!0}let r=this.attributes.tangent;return r!==void 0&&(r.transformDirection(e),r.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this._transformed=!0,this}applyQuaternion(e){return Rc.makeRotationFromQuaternion(e),this.applyMatrix4(Rc),this}rotateX(e){return Rc.makeRotationX(e),this.applyMatrix4(Rc),this}rotateY(e){return Rc.makeRotationY(e),this.applyMatrix4(Rc),this}rotateZ(e){return Rc.makeRotationZ(e),this.applyMatrix4(Rc),this}translate(e,t,n){return Rc.makeTranslation(e,t,n),this.applyMatrix4(Rc),this}scale(e,t,n){return Rc.makeScale(e,t,n),this.applyMatrix4(Rc),this}lookAt(e){return zc.lookAt(e),zc.updateMatrix(),this.applyMatrix4(zc.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(Bc).negate(),this.translate(Bc.x,Bc.y,Bc.z),this}setFromPoints(e){let t=this.getAttribute(`position`);if(t===void 0){let t=[];for(let n=0,r=e.length;n<r;n++){let r=e[n];t.push(r.x,r.y,r.z||0)}this.setAttribute(`position`,new Mc(t,3))}else{let n=Math.min(e.length,t.count);for(let r=0;r<n;r++){let n=e[r];t.setXYZ(r,n.x,n.y,n.z||0)}e.length>t.count&&B(`BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry.`),t.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new dc);let e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)V(`BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.`,this),this.boundingBox.set(new W(-1/0,-1/0,-1/0),new W(1/0,1/0,1/0));else{if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e<n;e++){let n=t[e];Vc.setFromBufferAttribute(n),this.morphTargetsRelative?(Uc.addVectors(this.boundingBox.min,Vc.min),this.boundingBox.expandByPoint(Uc),Uc.addVectors(this.boundingBox.max,Vc.max),this.boundingBox.expandByPoint(Uc)):(this.boundingBox.expandByPoint(Vc.min),this.boundingBox.expandByPoint(Vc.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&V(`BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.`,this)}}computeBoundingSphere(){this.boundingSphere===null&&(this.boundingSphere=new Ic);let e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)V(`BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.`,this),this.boundingSphere.set(new W,1/0);else if(e){let n=this.boundingSphere.center;if(Vc.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e<n;e++){let n=t[e];Hc.setFromBufferAttribute(n),this.morphTargetsRelative?(Uc.addVectors(Vc.min,Hc.min),Vc.expandByPoint(Uc),Uc.addVectors(Vc.max,Hc.max),Vc.expandByPoint(Uc)):(Vc.expandByPoint(Hc.min),Vc.expandByPoint(Hc.max))}Vc.getCenter(n);let r=0;for(let t=0,i=e.count;t<i;t++)Uc.fromBufferAttribute(e,t),r=Math.max(r,n.distanceToSquared(Uc));if(t)for(let i=0,a=t.length;i<a;i++){let a=t[i],o=this.morphTargetsRelative;for(let t=0,i=a.count;t<i;t++)Uc.fromBufferAttribute(a,t),o&&(Bc.fromBufferAttribute(e,t),Uc.add(Bc)),r=Math.max(r,n.distanceToSquared(Uc))}this.boundingSphere.radius=Math.sqrt(r),isNaN(this.boundingSphere.radius)&&V(`BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.`,this)}}computeTangents(){let e=this.index,t=this.attributes;if(e===null||t.position===void 0||t.normal===void 0||t.uv===void 0){V(`BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)`);return}let n=t.position,r=t.normal,i=t.uv,a=this.getAttribute(`tangent`);(a===void 0||a.count!==n.count)&&(a=new kc(new Float32Array(4*n.count),4),this.setAttribute(`tangent`,a));let o=[],s=[],c=new Uint8Array(n.count);for(let e=0;e<n.count;e++)o[e]=new W,s[e]=new W;let l=new W,u=new W,d=new W,f=new U,p=new U,m=new U,h=new W,g=new W;function _(e,t,r){c[e]=c[t]=c[r]=1,l.fromBufferAttribute(n,e),u.fromBufferAttribute(n,t),d.fromBufferAttribute(n,r),f.fromBufferAttribute(i,e),p.fromBufferAttribute(i,t),m.fromBufferAttribute(i,r),u.sub(l),d.sub(l),p.sub(f),m.sub(f);let a=1/(p.x*m.y-m.x*p.y);isFinite(a)&&(h.copy(u).multiplyScalar(m.y).addScaledVector(d,-p.y).multiplyScalar(a),g.copy(d).multiplyScalar(p.x).addScaledVector(u,-m.x).multiplyScalar(a),o[e].add(h),o[t].add(h),o[r].add(h),s[e].add(g),s[t].add(g),s[r].add(g))}let v=this.groups;v.length===0&&(v=[{start:0,count:e.count}]);for(let t=0,n=v.length;t<n;++t){let n=v[t],r=n.start,i=n.count;for(let t=r,n=r+i;t<n;t+=3)_(e.getX(t+0),e.getX(t+1),e.getX(t+2))}let y=new W,b=new W,x=new W,S=new W;function C(e){x.fromBufferAttribute(r,e),S.copy(x);let t=o[e];y.copy(t),y.sub(x.multiplyScalar(x.dot(t))).normalize(),b.crossVectors(S,t);let n=b.dot(s[e])<0?-1:1;a.setXYZW(e,y.x,y.y,y.z,n)}for(let e=0,t=n.count;e<t;++e)c[e]&&C(e);this._transformed=!0}computeVertexNormals(){let e=this.index,t=this.getAttribute(`position`);if(t!==void 0){let n=this.getAttribute(`normal`);if(n===void 0||n.count!==t.count)n=new kc(new Float32Array(t.count*3),3),this.setAttribute(`normal`,n);else for(let e=0,t=n.count;e<t;e++)n.setXYZ(e,0,0,0);let r=new W,i=new W,a=new W,o=new W,s=new W,c=new W,l=new W,u=new W;if(e)for(let d=0,f=e.count;d<f;d+=3){let f=e.getX(d+0),p=e.getX(d+1),m=e.getX(d+2);r.fromBufferAttribute(t,f),i.fromBufferAttribute(t,p),a.fromBufferAttribute(t,m),l.subVectors(a,i),u.subVectors(r,i),l.cross(u),o.fromBufferAttribute(n,f),s.fromBufferAttribute(n,p),c.fromBufferAttribute(n,m),o.add(l),s.add(l),c.add(l),n.setXYZ(f,o.x,o.y,o.z),n.setXYZ(p,s.x,s.y,s.z),n.setXYZ(m,c.x,c.y,c.z)}else for(let e=0,o=t.count;e<o;e+=3)r.fromBufferAttribute(t,e+0),i.fromBufferAttribute(t,e+1),a.fromBufferAttribute(t,e+2),l.subVectors(a,i),u.subVectors(r,i),l.cross(u),n.setXYZ(e+0,l.x,l.y,l.z),n.setXYZ(e+1,l.x,l.y,l.z),n.setXYZ(e+2,l.x,l.y,l.z);this.normalizeNormals(),n.needsUpdate=!0}}normalizeNormals(){let e=this.attributes.normal;for(let t=0,n=e.count;t<n;t++)Uc.fromBufferAttribute(e,t),Uc.normalize(),e.setXYZ(t,Uc.x,Uc.y,Uc.z)}toNonIndexed(){function t(e,t){let n=e.array,r=e.itemSize,i=e.normalized,a=new n.constructor(t.length*r),o=0,s=0;for(let i=0,c=t.length;i<c;i++){o=e.isInterleavedBufferAttribute?t[i]*e.data.stride+e.offset:t[i]*r;for(let e=0;e<r;e++)a[s++]=n[o++]}return new kc(a,r,i)}if(this.index===null)return B(`BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed.`),this;let n=new e,r=this.index.array,i=this.attributes;for(let e in i){let a=i[e],o=t(a,r);n.setAttribute(e,o)}let a=this.morphAttributes;for(let e in a){let i=[],o=a[e];for(let e=0,n=o.length;e<n;e++){let n=o[e],a=t(n,r);i.push(a)}n.morphAttributes[e]=i}n.morphTargetsRelative=this.morphTargetsRelative;let o=this.groups;for(let e=0,t=o.length;e<t;e++){let t=o[e];n.addGroup(t.start,t.count,t.materialIndex)}return n}toJSON(){let e={metadata:{version:4.7,type:`BufferGeometry`,generator:`BufferGeometry.toJSON`}};if(e.uuid=this.uuid,e.type=this.parameters!==void 0&&this._transformed===!0?`BufferGeometry`:this.type,e.name=this.name,Object.keys(this.userData).length>0&&(e.userData=this.userData),this.parameters!==void 0&&this._transformed!==!0){let t=this.parameters;for(let n in t)t[n]!==void 0&&(e[n]=t[n]);return e}e.data={attributes:{}};let t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});let n=this.attributes;for(let t in n){let r=n[t];e.data.attributes[t]=r.toJSON(e.data)}let r={},i=!1;for(let t in this.morphAttributes){let n=this.morphAttributes[t],a=[];for(let t=0,r=n.length;t<r;t++){let r=n[t];a.push(r.toJSON(e.data))}a.length>0&&(r[t]=a,i=!0)}i&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);let a=this.groups;a.length>0&&(e.data.groups=JSON.parse(JSON.stringify(a)));let o=this.boundingSphere;return o!==null&&(e.data.boundingSphere=o.toJSON()),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;let t={};this.name=e.name;let n=e.index;n!==null&&this.setIndex(n.clone());let r=e.attributes;for(let e in r){let n=r[e];this.setAttribute(e,n.clone(t))}let i=e.morphAttributes;for(let e in i){let n=[],r=i[e];for(let e=0,i=r.length;e<i;e++)n.push(r[e].clone(t));this.morphAttributes[e]=n}this.morphTargetsRelative=e.morphTargetsRelative;let a=e.groups;for(let e=0,t=a.length;e<t;e++){let t=a[e];this.addGroup(t.start,t.count,t.materialIndex)}let o=e.boundingBox;o!==null&&(this.boundingBox=o.clone());let s=e.boundingSphere;return s!==null&&(this.boundingSphere=s.clone()),this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,this.userData=e.userData,this._transformed=e._transformed,this}dispose(){this.dispatchEvent({type:`dispose`})}},Gc=new W,Kc=new W,qc=new G,Jc=class{constructor(e=new W(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,n,r){return this.normal.set(e,t,n),this.constant=r,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,n){let r=Gc.subVectors(n,t).cross(Kc.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(r,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){let e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t,n=!0){let r=e.delta(Gc),i=this.normal.dot(r);if(i===0)return this.distanceToPoint(e.start)===0?t.copy(e.start):null;let a=-(e.start.dot(this.normal)+this.constant)/i;return n===!0&&(a<0||a>1)?null:t.copy(e.start).addScaledVector(r,a)}intersectsLine(e){let t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){let n=t||qc.getNormalMatrix(e),r=this.coplanarPoint(Gc).applyMatrix4(e),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}toJSON(){return{normal:this.normal.toArray(),constant:this.constant}}fromJSON(e){return this.normal.fromArray(e.normal),this.constant=e.constant,this}},Yc=0,Xc=class extends vo{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:Yc++}),this.uuid=Co(),this.name=``,this.type=`Material`,this.blending=1,this.side=0,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=100,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new q(0,0,0),this.blendAlpha=0,this.depthFunc=3,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=519,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=ro,this.stencilZFail=ro,this.stencilZPass=ro,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.allowOverride=!0,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(let t in e){let n=e[t];if(n===void 0){B(`Material: parameter '${t}' has value of undefined.`);continue}let r=this[t];r===void 0?B(`Material: '${t}' is not a property of THREE.${this.type}.`):r&&r.isColor?r.set(n):r&&r.isVector2&&n&&n.isVector2||r&&r.isEuler&&n&&n.isEuler||r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;t&&(e={textures:{},images:{}});let n={metadata:{version:4.7,type:`Material`,generator:`Material.toJSON`}};n.uuid=this.uuid,n.type=this.type,n.blending=this.blending,n.side=this.side,n.shadowSide=this.shadowSide,n.vertexColors=this.vertexColors,n.opacity=this.opacity,n.transparent=this.transparent,n.blendSrc=this.blendSrc,n.blendDst=this.blendDst,n.blendEquation=this.blendEquation,n.blendSrcAlpha=this.blendSrcAlpha,n.blendDstAlpha=this.blendDstAlpha,n.blendEquationAlpha=this.blendEquationAlpha,n.blendColor=this.blendColor.getHex(),n.blendAlpha=this.blendAlpha,n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,n.colorWrite=this.colorWrite,n.clipIntersection=this.clipIntersection,n.clipShadows=this.clipShadows,n.stencilWriteMask=this.stencilWriteMask,n.stencilFunc=this.stencilFunc,n.stencilRef=this.stencilRef,n.stencilFuncMask=this.stencilFuncMask,n.stencilFail=this.stencilFail,n.stencilZFail=this.stencilZFail,n.stencilZPass=this.stencilZPass,n.stencilWrite=this.stencilWrite,n.polygonOffset=this.polygonOffset,n.polygonOffsetFactor=this.polygonOffsetFactor,n.polygonOffsetUnits=this.polygonOffsetUnits,n.dithering=this.dithering,n.alphaTest=this.alphaTest,n.alphaHash=this.alphaHash,n.alphaToCoverage=this.alphaToCoverage,n.premultipliedAlpha=this.premultipliedAlpha,n.forceSinglePass=this.forceSinglePass,n.allowOverride=this.allowOverride,n.visible=this.visible,n.toneMapped=this.toneMapped,n.name=this.name,this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.sheen!==void 0&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearcoat!==void 0&&(n.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(n.clearcoatRoughness=this.clearcoatRoughness),this.diffuseRoughness!==void 0&&(n.diffuseRoughness=this.diffuseRoughness),this.diffuseRoughnessMap&&this.diffuseRoughnessMap.isTexture&&(n.diffuseRoughnessMap=this.diffuseRoughnessMap.toJSON(e).uuid),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.sheenColorMap&&this.sheenColorMap.isTexture&&(n.sheenColorMap=this.sheenColorMap.toJSON(e).uuid),this.sheenRoughnessMap&&this.sheenRoughnessMap.isTexture&&(n.sheenRoughnessMap=this.sheenRoughnessMap.toJSON(e).uuid),this.dispersion!==void 0&&(n.dispersion=this.dispersion),this.retroreflectivity!==void 0&&(n.retroreflectivity=this.retroreflectivity),this.iridescence!==void 0&&(n.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(n.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessMinimum!==void 0&&(n.iridescenceThicknessMinimum=this.iridescenceThicknessMinimum),this.iridescenceThicknessMaximum!==void 0&&(n.iridescenceThicknessMaximum=this.iridescenceThicknessMaximum),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(n.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(n.combine=this.combine)),this.envMapRotation!==void 0&&(n.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(n.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&(n.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(n.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(n.size=this.size),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),Array.isArray(this.clippingPlanes)&&this.clippingPlanes.length>0&&(n.clippingPlanes=this.clippingPlanes.map(e=>e.toJSON())),this.rotation!==void 0&&(n.rotation=this.rotation),this.depthPacking!==void 0&&(n.depthPacking=this.depthPacking),this.linewidth!==void 0&&(n.linewidth=this.linewidth),this.linecap!==void 0&&(n.linecap=this.linecap),this.linejoin!==void 0&&(n.linejoin=this.linejoin),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.wireframe!==void 0&&(n.wireframe=this.wireframe),this.wireframeLinewidth!==void 0&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!==void 0&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!==void 0&&(n.wireframeLinejoin=this.wireframeLinejoin),this.flatShading!==void 0&&(n.flatShading=this.flatShading),this.fog!==void 0&&(n.fog=this.fog),Object.keys(this.userData).length>0&&(n.userData=this.userData);function r(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}if(t){let t=r(e.textures),i=r(e.images);t.length>0&&(n.textures=t),i.length>0&&(n.images=i)}return n}fromJSON(e,t){if(e.uuid!==void 0&&(this.uuid=e.uuid),e.name!==void 0&&(this.name=e.name),e.color!==void 0&&this.color!==void 0&&this.color.setHex(e.color),e.roughness!==void 0&&(this.roughness=e.roughness),e.metalness!==void 0&&(this.metalness=e.metalness),e.sheen!==void 0&&(this.sheen=e.sheen),e.sheenColor!==void 0&&(this.sheenColor=new q().setHex(e.sheenColor)),e.sheenRoughness!==void 0&&(this.sheenRoughness=e.sheenRoughness),e.emissive!==void 0&&this.emissive!==void 0&&this.emissive.setHex(e.emissive),e.specular!==void 0&&this.specular!==void 0&&this.specular.setHex(e.specular),e.specularIntensity!==void 0&&(this.specularIntensity=e.specularIntensity),e.specularColor!==void 0&&this.specularColor!==void 0&&this.specularColor.setHex(e.specularColor),e.shininess!==void 0&&(this.shininess=e.shininess),e.clearcoat!==void 0&&(this.clearcoat=e.clearcoat),e.clearcoatRoughness!==void 0&&(this.clearcoatRoughness=e.clearcoatRoughness),e.diffuseRoughness!==void 0&&(this.diffuseRoughness=e.diffuseRoughness),e.dispersion!==void 0&&(this.dispersion=e.dispersion),e.retroreflectivity!==void 0&&(this.retroreflectivity=e.retroreflectivity),e.iridescence!==void 0&&(this.iridescence=e.iridescence),e.iridescenceIOR!==void 0&&(this.iridescenceIOR=e.iridescenceIOR),e.iridescenceThicknessMinimum!==void 0&&(this.iridescenceThicknessMinimum=e.iridescenceThicknessMinimum),e.iridescenceThicknessMaximum!==void 0&&(this.iridescenceThicknessMaximum=e.iridescenceThicknessMaximum),e.iridescenceThicknessRange!==void 0&&(this.iridescenceThicknessMinimum=e.iridescenceThicknessRange[0],this.iridescenceThicknessMaximum=e.iridescenceThicknessRange[1]),e.transmission!==void 0&&(this.transmission=e.transmission),e.thickness!==void 0&&(this.thickness=e.thickness),e.attenuationDistance!==void 0&&(this.attenuationDistance=e.attenuationDistance),e.attenuationColor!==void 0&&this.attenuationColor!==void 0&&this.attenuationColor.setHex(e.attenuationColor),e.anisotropy!==void 0&&(this.anisotropy=e.anisotropy),e.anisotropyRotation!==void 0&&(this.anisotropyRotation=e.anisotropyRotation),e.fog!==void 0&&(this.fog=e.fog),e.flatShading!==void 0&&(this.flatShading=e.flatShading),e.blending!==void 0&&(this.blending=e.blending),e.combine!==void 0&&(this.combine=e.combine),e.side!==void 0&&(this.side=e.side),e.shadowSide!==void 0&&(this.shadowSide=e.shadowSide),e.opacity!==void 0&&(this.opacity=e.opacity),e.transparent!==void 0&&(this.transparent=e.transparent),e.alphaTest!==void 0&&(this.alphaTest=e.alphaTest),e.alphaHash!==void 0&&(this.alphaHash=e.alphaHash),e.depthFunc!==void 0&&(this.depthFunc=e.depthFunc),e.depthTest!==void 0&&(this.depthTest=e.depthTest),e.depthWrite!==void 0&&(this.depthWrite=e.depthWrite),e.colorWrite!==void 0&&(this.colorWrite=e.colorWrite),e.clippingPlanes!==void 0&&(this.clippingPlanes=e.clippingPlanes.map(e=>new Jc().fromJSON(e))),e.clipIntersection!==void 0&&(this.clipIntersection=e.clipIntersection),e.clipShadows!==void 0&&(this.clipShadows=e.clipShadows),e.depthPacking!==void 0&&(this.depthPacking=e.depthPacking),e.blendSrc!==void 0&&(this.blendSrc=e.blendSrc),e.blendDst!==void 0&&(this.blendDst=e.blendDst),e.blendEquation!==void 0&&(this.blendEquation=e.blendEquation),e.blendSrcAlpha!==void 0&&(this.blendSrcAlpha=e.blendSrcAlpha),e.blendDstAlpha!==void 0&&(this.blendDstAlpha=e.blendDstAlpha),e.blendEquationAlpha!==void 0&&(this.blendEquationAlpha=e.blendEquationAlpha),e.blendColor!==void 0&&this.blendColor!==void 0&&this.blendColor.setHex(e.blendColor),e.blendAlpha!==void 0&&(this.blendAlpha=e.blendAlpha),e.stencilWriteMask!==void 0&&(this.stencilWriteMask=e.stencilWriteMask),e.stencilFunc!==void 0&&(this.stencilFunc=e.stencilFunc),e.stencilRef!==void 0&&(this.stencilRef=e.stencilRef),e.stencilFuncMask!==void 0&&(this.stencilFuncMask=e.stencilFuncMask),e.stencilFail!==void 0&&(this.stencilFail=e.stencilFail),e.stencilZFail!==void 0&&(this.stencilZFail=e.stencilZFail),e.stencilZPass!==void 0&&(this.stencilZPass=e.stencilZPass),e.stencilWrite!==void 0&&(this.stencilWrite=e.stencilWrite),e.wireframe!==void 0&&(this.wireframe=e.wireframe),e.wireframeLinewidth!==void 0&&(this.wireframeLinewidth=e.wireframeLinewidth),e.wireframeLinecap!==void 0&&(this.wireframeLinecap=e.wireframeLinecap),e.wireframeLinejoin!==void 0&&(this.wireframeLinejoin=e.wireframeLinejoin),e.rotation!==void 0&&(this.rotation=e.rotation),e.linewidth!==void 0&&(this.linewidth=e.linewidth),e.linecap!==void 0&&(this.linecap=e.linecap),e.linejoin!==void 0&&(this.linejoin=e.linejoin),e.dashSize!==void 0&&(this.dashSize=e.dashSize),e.gapSize!==void 0&&(this.gapSize=e.gapSize),e.scale!==void 0&&(this.scale=e.scale),e.polygonOffset!==void 0&&(this.polygonOffset=e.polygonOffset),e.polygonOffsetFactor!==void 0&&(this.polygonOffsetFactor=e.polygonOffsetFactor),e.polygonOffsetUnits!==void 0&&(this.polygonOffsetUnits=e.polygonOffsetUnits),e.dithering!==void 0&&(this.dithering=e.dithering),e.alphaToCoverage!==void 0&&(this.alphaToCoverage=e.alphaToCoverage),e.premultipliedAlpha!==void 0&&(this.premultipliedAlpha=e.premultipliedAlpha),e.forceSinglePass!==void 0&&(this.forceSinglePass=e.forceSinglePass),e.allowOverride!==void 0&&(this.allowOverride=e.allowOverride),e.visible!==void 0&&(this.visible=e.visible),e.toneMapped!==void 0&&(this.toneMapped=e.toneMapped),e.userData!==void 0&&(this.userData=e.userData),e.vertexColors!==void 0&&(this.vertexColors=typeof e.vertexColors==`number`?e.vertexColors>0:e.vertexColors),e.size!==void 0&&(this.size=e.size),e.sizeAttenuation!==void 0&&(this.sizeAttenuation=e.sizeAttenuation),e.map!==void 0&&(this.map=t[e.map]||null),e.matcap!==void 0&&(this.matcap=t[e.matcap]||null),e.alphaMap!==void 0&&(this.alphaMap=t[e.alphaMap]||null),e.bumpMap!==void 0&&(this.bumpMap=t[e.bumpMap]||null),e.bumpScale!==void 0&&(this.bumpScale=e.bumpScale),e.normalMap!==void 0&&(this.normalMap=t[e.normalMap]||null),e.normalMapType!==void 0&&(this.normalMapType=e.normalMapType),e.normalScale!==void 0){let t=e.normalScale;Array.isArray(t)===!1&&(t=[t,t]),this.normalScale=new U().fromArray(t)}return e.displacementMap!==void 0&&(this.displacementMap=t[e.displacementMap]||null),e.displacementScale!==void 0&&(this.displacementScale=e.displacementScale),e.displacementBias!==void 0&&(this.displacementBias=e.displacementBias),e.roughnessMap!==void 0&&(this.roughnessMap=t[e.roughnessMap]||null),e.metalnessMap!==void 0&&(this.metalnessMap=t[e.metalnessMap]||null),e.emissiveMap!==void 0&&(this.emissiveMap=t[e.emissiveMap]||null),e.emissiveIntensity!==void 0&&(this.emissiveIntensity=e.emissiveIntensity),e.specularMap!==void 0&&(this.specularMap=t[e.specularMap]||null),e.specularIntensityMap!==void 0&&(this.specularIntensityMap=t[e.specularIntensityMap]||null),e.specularColorMap!==void 0&&(this.specularColorMap=t[e.specularColorMap]||null),e.envMap!==void 0&&(this.envMap=t[e.envMap]||null),e.envMapRotation!==void 0&&this.envMapRotation.fromArray(e.envMapRotation),e.envMapIntensity!==void 0&&(this.envMapIntensity=e.envMapIntensity),e.reflectivity!==void 0&&(this.reflectivity=e.reflectivity),e.refractionRatio!==void 0&&(this.refractionRatio=e.refractionRatio),e.lightMap!==void 0&&(this.lightMap=t[e.lightMap]||null),e.lightMapIntensity!==void 0&&(this.lightMapIntensity=e.lightMapIntensity),e.aoMap!==void 0&&(this.aoMap=t[e.aoMap]||null),e.aoMapIntensity!==void 0&&(this.aoMapIntensity=e.aoMapIntensity),e.gradientMap!==void 0&&(this.gradientMap=t[e.gradientMap]||null),e.clearcoatMap!==void 0&&(this.clearcoatMap=t[e.clearcoatMap]||null),e.clearcoatRoughnessMap!==void 0&&(this.clearcoatRoughnessMap=t[e.clearcoatRoughnessMap]||null),e.clearcoatNormalMap!==void 0&&(this.clearcoatNormalMap=t[e.clearcoatNormalMap]||null),e.clearcoatNormalScale!==void 0&&(this.clearcoatNormalScale=new U().fromArray(e.clearcoatNormalScale)),e.diffuseRoughnessMap!==void 0&&(this.diffuseRoughnessMap=t[e.diffuseRoughnessMap]||null),e.iridescenceMap!==void 0&&(this.iridescenceMap=t[e.iridescenceMap]||null),e.iridescenceThicknessMap!==void 0&&(this.iridescenceThicknessMap=t[e.iridescenceThicknessMap]||null),e.transmissionMap!==void 0&&(this.transmissionMap=t[e.transmissionMap]||null),e.thicknessMap!==void 0&&(this.thicknessMap=t[e.thicknessMap]||null),e.anisotropyMap!==void 0&&(this.anisotropyMap=t[e.anisotropyMap]||null),e.sheenColorMap!==void 0&&(this.sheenColorMap=t[e.sheenColorMap]||null),e.sheenRoughnessMap!==void 0&&(this.sheenRoughnessMap=t[e.sheenRoughnessMap]||null),this}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;let t=e.clippingPlanes,n=null;if(t!==null){let e=t.length;n=Array(e);for(let r=0;r!==e;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.allowOverride=e.allowOverride,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:`dispose`})}set needsUpdate(e){e===!0&&this.version++}},Zc=new W,Qc=new W,$c=new W,el=new W,tl=class{constructor(e=new W,t=new W(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,Zc)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);let n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){let t=Zc.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(Zc.copy(this.origin).addScaledVector(this.direction,t),Zc.distanceToSquared(e))}distanceSqToSegment(e,t,n,r){Qc.copy(e).add(t).multiplyScalar(.5),$c.copy(t).sub(e).normalize(),el.copy(this.origin).sub(Qc);let i=e.distanceTo(t)*.5,a=-this.direction.dot($c),o=el.dot(this.direction),s=-el.dot($c),c=el.lengthSq(),l=Math.abs(1-a*a),u,d,f,p;if(l>0){if(u=a*s-o,d=a*o-s,p=i*l,u>=0){if(d>=-p){if(d<=p){let e=1/l;u*=e,d*=e,f=u*(u+a*d+2*o)+d*(a*u+d+2*s)+c}else d=i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c}else d=-i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c}else d<=-p?(u=Math.max(0,-(-a*i+o)),d=u>0?-i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c):d<=p?(u=0,d=Math.min(Math.max(-i,-s),i),f=d*(d+2*s)+c):(u=Math.max(0,-(a*i+o)),d=u>0?i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c)}else d=a>0?-i:i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c;return n&&n.copy(this.origin).addScaledVector(this.direction,u),r&&r.copy(Qc).addScaledVector($c,d),f}intersectSphere(e,t){if(e.radius<0)return null;Zc.subVectors(e.center,this.origin);let n=Zc.dot(this.direction),r=Zc.dot(Zc)-n*n,i=e.radius*e.radius;if(r>i)return null;let a=Math.sqrt(i-r),o=n-a,s=n+a;return s<0?null:o<0?this.at(s,t):this.at(o,t)}intersectsSphere(e){return e.radius<0?!1:this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){let t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;let n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){let n=this.distanceToPlane(e);return n===null?null:this.at(n,t)}intersectsPlane(e){let t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,r,i,a,o,s,c=1/this.direction.x,l=1/this.direction.y,u=1/this.direction.z,d=this.origin;return c>=0?(n=(e.min.x-d.x)*c,r=(e.max.x-d.x)*c):(n=(e.max.x-d.x)*c,r=(e.min.x-d.x)*c),l>=0?(i=(e.min.y-d.y)*l,a=(e.max.y-d.y)*l):(i=(e.max.y-d.y)*l,a=(e.min.y-d.y)*l),n>a||i>r||((i>n||isNaN(n))&&(n=i),(a<r||isNaN(r))&&(r=a),u>=0?(o=(e.min.z-d.z)*u,s=(e.max.z-d.z)*u):(o=(e.max.z-d.z)*u,s=(e.min.z-d.z)*u),n>s||o>r)||((o>n||n!==n)&&(n=o),(s<r||r!==r)&&(r=s),r<0)?null:this.at(n>=0?n:r,t)}intersectsBox(e){return this.intersectBox(e,Zc)!==null}intersectTriangle(e,t,n,r,i){let a=this.origin,o=this.direction,s=o.x,c=o.y,l=o.z,u=e.x-a.x,d=e.y-a.y,f=e.z-a.z,p=t.x-a.x,m=t.y-a.y,h=t.z-a.z,g=n.x-a.x,_=n.y-a.y,v=n.z-a.z,y=Math.abs(s),b=Math.abs(c),x=Math.abs(l),S,C,w,T,E,D,O,k,A,j,M,N;if(y>=b&&y>=x?(w=s,D=u,A=p,N=g,s>=0?(S=c,C=l,T=d,E=f,O=m,k=h,j=_,M=v):(S=l,C=c,T=f,E=d,O=h,k=m,j=v,M=_)):b>=x?(w=c,D=d,A=m,N=_,c>=0?(S=l,C=s,T=f,E=u,O=h,k=p,j=v,M=g):(S=s,C=l,T=u,E=f,O=p,k=h,j=g,M=v)):(w=l,D=f,A=h,N=v,l>=0?(S=s,C=c,T=u,E=d,O=p,k=m,j=g,M=_):(S=c,C=s,T=d,E=u,O=m,k=p,j=_,M=g)),w===0)return null;let ee=S/w,te=C/w,P=1/w,ne=T-ee*D,re=E-te*D,ie=O-ee*A,ae=k-te*A,oe=j-ee*N,se=M-te*N,ce=oe*ae-se*ie,le=ne*se-re*oe,ue=ie*re-ae*ne;if(r){if(ce<0||le<0||ue<0)return null}else if((ce<0||le<0||ue<0)&&(ce>0||le>0||ue>0))return null;let de=ce+le+ue;if(de===0)return null;let fe=P*(ce*D+le*A+ue*N);return(de>0?fe<0:fe>0)?null:this.at(fe/de,i)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}},nl=class extends Xc{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type=`MeshBasicMaterial`,this.color=new q(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new ws,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}},rl=new ms,il=new tl,al=new Ic,ol=new W,sl=new W,cl=new W,ll=new W,ul=new W,dl=new W,fl=new W,pl=new W,ml=class extends Vs{constructor(e=new Wc,t=new nl){super(),this.isMesh=!0,this.type=`Mesh`,this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.count=1,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.morphTargetInfluences=e.morphTargetInfluences===void 0?void 0:e.morphTargetInfluences.slice(),this.morphTargetDictionary=e.morphTargetDictionary===void 0?void 0:Object.assign({},e.morphTargetDictionary),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}updateMorphTargets(){let e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e<t;e++){let t=n[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[t]=e}}}}getVertexPosition(e,t){let n=this.geometry,r=n.attributes.position,i=n.morphAttributes.position,a=n.morphTargetsRelative;t.fromBufferAttribute(r,e);let o=this.morphTargetInfluences;if(i&&o){dl.set(0,0,0);for(let n=0,r=i.length;n<r;n++){let r=o[n],s=i[n];r!==0&&(ul.fromBufferAttribute(s,e),a?dl.addScaledVector(ul,r):dl.addScaledVector(ul.sub(t),r))}t.add(dl)}return t}intersectsFrustum(e){return e.intersectsObject(this)}raycast(e,t){let n=this.geometry,r=this.material,i=this.matrixWorld;r!==void 0&&(n.boundingSphere===null&&n.computeBoundingSphere(),al.copy(n.boundingSphere),al.applyMatrix4(i),il.copy(e.ray).recast(e.near),al.containsPoint(il.origin)===!1&&(il.intersectSphere(al,ol)===null||il.origin.distanceToSquared(ol)>(e.far-e.near)**2)||(rl.copy(i).invert(),il.copy(e.ray).applyMatrix4(rl),(n.boundingBox===null||il.intersectsBox(n.boundingBox)!==!1)&&this._computeIntersections(e,t,il)))}_computeIntersections(e,t,n){let r,i=this.geometry,a=this.material,o=i.index,s=i.attributes.position,c=i.attributes.uv,l=i.attributes.uv1,u=i.attributes.normal,d=i.groups,f=i.drawRange;if(o!==null){if(Array.isArray(a))for(let i=0,s=d.length;i<s;i++){let s=d[i],p=a[s.materialIndex],m=Math.max(s.start,f.start),h=Math.min(o.count,Math.min(s.start+s.count,f.start+f.count));for(let i=m,a=h;i<a;i+=3){let a=o.getX(i),d=o.getX(i+1),f=o.getX(i+2);r=gl(this,p,e,n,c,l,u,a,d,f),r&&(r.faceIndex=Math.floor(i/3),r.face.materialIndex=s.materialIndex,t.push(r))}}else{let i=Math.max(0,f.start),s=Math.min(o.count,f.start+f.count);for(let d=i,f=s;d<f;d+=3){let i=o.getX(d),s=o.getX(d+1),f=o.getX(d+2);r=gl(this,a,e,n,c,l,u,i,s,f),r&&(r.faceIndex=Math.floor(d/3),t.push(r))}}}else if(s!==void 0){if(Array.isArray(a))for(let i=0,o=d.length;i<o;i++){let o=d[i],p=a[o.materialIndex],m=Math.max(o.start,f.start),h=Math.min(s.count,Math.min(o.start+o.count,f.start+f.count));for(let i=m,a=h;i<a;i+=3){let a=i,s=i+1,d=i+2;r=gl(this,p,e,n,c,l,u,a,s,d),r&&(r.faceIndex=Math.floor(i/3),r.face.materialIndex=o.materialIndex,t.push(r))}}else{let i=Math.max(0,f.start),o=Math.min(s.count,f.start+f.count);for(let s=i,d=o;s<d;s+=3){let i=s,o=s+1,d=s+2;r=gl(this,a,e,n,c,l,u,i,o,d),r&&(r.faceIndex=Math.floor(s/3),t.push(r))}}}}};function hl(e,t,n,r,i,a,o,s){let c;if(c=t.side===1?r.intersectTriangle(o,a,i,!0,s):r.intersectTriangle(i,a,o,t.side===0,s),c===null)return null;pl.copy(s),pl.applyMatrix4(e.matrixWorld);let l=n.ray.origin.distanceTo(pl);return l<n.near||l>n.far?null:{distance:l,point:pl.clone(),object:e}}function gl(e,t,n,r,i,a,o,s,c,l){e.getVertexPosition(s,sl),e.getVertexPosition(c,cl),e.getVertexPosition(l,ll);let u=hl(e,t,n,r,sl,cl,ll,fl);if(u){let e=new W;uc.getBarycoord(fl,sl,cl,ll,e),i&&(u.uv=uc.getInterpolatedAttribute(i,s,c,l,e,new U)),a&&(u.uv1=uc.getInterpolatedAttribute(a,s,c,l,e,new U)),o&&(u.normal=uc.getInterpolatedAttribute(o,s,c,l,e,new W),u.normal.dot(r.direction)>0&&u.normal.multiplyScalar(-1));let t={a:s,b:c,c:l,normal:new W,materialIndex:0};uc.getNormal(sl,cl,ll,t.normal),u.face=t,u.barycoord=e}return u}var _l=class extends cs{constructor(e=null,t=1,n=1,r,i,a,o,s,c=Pi,l=Pi,u,d){super(null,a,o,s,c,l,r,i,u,d),this.isDataTexture=!0,this.image={data:e,width:t,height:n},this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}},vl=class extends kc{constructor(e,t,n,r=1){super(e,t,n),this.isInstancedBufferAttribute=!0,this.meshPerAttribute=r}copy(e){return super.copy(e),this.meshPerAttribute=e.meshPerAttribute,this}toJSON(){let e=super.toJSON();return e.meshPerAttribute=this.meshPerAttribute,e.isInstancedBufferAttribute=!0,e}},yl=new ms,bl=new ms,xl=[],Sl=new dc,Cl=new ms,wl=new ml,Tl=new Ic,El=class extends ml{constructor(e,t,n){super(e,t),this.isInstancedMesh=!0,this.instanceMatrix=new vl(new Float32Array(n*16),16),this.instanceColor=null,this.morphTexture=null,this.count=n,this.boundingBox=null,this.boundingSphere=null;for(let e=0;e<n;e++)this.setMatrixAt(e,Cl)}computeBoundingBox(){let e=this.geometry,t=this.count;this.boundingBox===null&&(this.boundingBox=new dc),e.boundingBox===null&&e.computeBoundingBox(),this.boundingBox.makeEmpty();for(let n=0;n<t;n++)this.getMatrixAt(n,yl),Sl.copy(e.boundingBox).applyMatrix4(yl),this.boundingBox.union(Sl)}computeBoundingSphere(){let e=this.geometry,t=this.count;this.boundingSphere===null&&(this.boundingSphere=new Ic),e.boundingSphere===null&&e.computeBoundingSphere(),this.boundingSphere.makeEmpty();for(let n=0;n<t;n++)this.getMatrixAt(n,yl),Tl.copy(e.boundingSphere).applyMatrix4(yl),this.boundingSphere.union(Tl)}copy(e,t){return super.copy(e,t),this.instanceMatrix.copy(e.instanceMatrix),this.morphTexture=e.morphTexture===null?null:e.morphTexture.clone(),this.instanceColor=e.instanceColor===null?null:e.instanceColor.clone(),this.count=e.count,this.boundingBox=e.boundingBox===null?null:e.boundingBox.clone(),this.boundingSphere=e.boundingSphere===null?null:e.boundingSphere.clone(),this}getColorAt(e,t){return this.instanceColor===null?t.setRGB(1,1,1):t.fromArray(this.instanceColor.array,e*3)}getMatrixAt(e,t){return t.fromArray(this.instanceMatrix.array,e*16)}getMorphAt(e,t){let n=t.morphTargetInfluences,r=this.morphTexture.source.data.data,i=e*(n.length+1)+1;for(let e=0;e<n.length;e++)n[e]=r[i+e]}raycast(e,t){let n=this.matrixWorld,r=this.count;if(wl.geometry=this.geometry,wl.material=this.material,wl.material!==void 0&&(this.boundingSphere===null&&this.computeBoundingSphere(),Tl.copy(this.boundingSphere),Tl.applyMatrix4(n),e.ray.intersectsSphere(Tl)!==!1))for(let i=0;i<r;i++){this.getMatrixAt(i,yl),bl.multiplyMatrices(n,yl),wl.matrixWorld=bl,wl.raycast(e,xl);for(let e=0,n=xl.length;e<n;e++){let n=xl[e];n.instanceId=i,n.object=this,t.push(n)}xl.length=0}}setColorAt(e,t){return this.instanceColor===null&&(this.instanceColor=new vl(new Float32Array(this.instanceMatrix.count*3).fill(1),3)),t.toArray(this.instanceColor.array,e*3),this}setMatrixAt(e,t){return t.toArray(this.instanceMatrix.array,e*16),this}setMorphAt(e,t){let n=t.morphTargetInfluences,r=n.length+1;this.morphTexture===null&&(this.morphTexture=new _l(new Float32Array(r*this.count),r,this.count,ia,Ki));let i=this.morphTexture.source.data.data,a=0;for(let e=0;e<n.length;e++)a+=n[e];let o=this.geometry.morphTargetsRelative?1:1-a,s=r*e;return i[s]=o,i.set(n,s+1),this}updateMorphTargets(){}dispose(){super.dispose(),this.instanceMatrix.dispose(),this.instanceColor!==null&&this.instanceColor.dispose(),this.morphTexture!==null&&(this.morphTexture.dispose(),this.morphTexture=null)}},Dl=new Ic,Ol=new U(.5,.5),kl=new W,Al=class{constructor(e=new Jc,t=new Jc,n=new Jc,r=new Jc,i=new Jc,a=new Jc){this.planes=[e,t,n,r,i,a]}set(e,t,n,r,i,a){let o=this.planes;return o[0].copy(e),o[1].copy(t),o[2].copy(n),o[3].copy(r),o[4].copy(i),o[5].copy(a),this}copy(e){let t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e,t=oo,n=!1){let r=this.planes,i=e.elements,a=i[0],o=i[1],s=i[2],c=i[3],l=i[4],u=i[5],d=i[6],f=i[7],p=i[8],m=i[9],h=i[10],g=i[11],_=i[12],v=i[13],y=i[14],b=i[15];if(r[0].setComponents(c-a,f-l,g-p,b-_).normalize(),r[1].setComponents(c+a,f+l,g+p,b+_).normalize(),r[2].setComponents(c+o,f+u,g+m,b+v).normalize(),r[3].setComponents(c-o,f-u,g-m,b-v).normalize(),n)r[4].setComponents(s,d,h,y).normalize(),r[5].setComponents(c-s,f-d,g-h,b-y).normalize();else if(r[4].setComponents(c-s,f-d,g-h,b-y).normalize(),t===2e3)r[5].setComponents(c+s,f+d,g+h,b+y).normalize();else if(t===2001)r[5].setComponents(s,d,h,y).normalize();else throw Error(`THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: `+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),Dl.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{let t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),Dl.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Dl)}intersectsSprite(e){return Dl.center.set(0,0,0),Dl.radius=.7071067811865476+Ol.distanceTo(e.center),Dl.applyMatrix4(e.matrixWorld),this.intersectsSphere(Dl)}intersectsSphere(e){let t=this.planes,n=e.center,r=-e.radius;for(let e=0;e<6;e++)if(t[e].distanceToPoint(n)<r)return!1;return!0}intersectsBox(e){let t=this.planes;for(let n=0;n<6;n++){let r=t[n];if(kl.x=r.normal.x>0?e.max.x:e.min.x,kl.y=r.normal.y>0?e.max.y:e.min.y,kl.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(kl)<0)return!1}return!0}containsPoint(e){let t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}},jl=new ms,Ml=class e{constructor(){this.coordinateSystem=oo,this._frustums=[],this._count=0}setFromArrayCamera(e){let t=e.cameras,n=this._frustums;for(let e=0;e<t.length;e++){let r=t[e];jl.multiplyMatrices(r.projectionMatrix,r.matrixWorldInverse),n[e]===void 0&&(n[e]=new Al),n[e].setFromProjectionMatrix(jl,r.coordinateSystem,r.reversedDepth)}return this._count=t.length,this}getFrustum(e){return this._frustums[e]}intersectsObject(e){let t=this._frustums;for(let n=0;n<this._count;n++)if(t[n].intersectsObject(e))return!0;return!1}intersectsSprite(e){let t=this._frustums;for(let n=0;n<this._count;n++)if(t[n].intersectsSprite(e))return!0;return!1}intersectsSphere(e){let t=this._frustums;for(let n=0;n<this._count;n++)if(t[n].intersectsSphere(e))return!0;return!1}intersectsBox(e){let t=this._frustums;for(let n=0;n<this._count;n++)if(t[n].intersectsBox(e))return!0;return!1}containsPoint(e){let t=this._frustums;for(let n=0;n<this._count;n++)if(t[n].containsPoint(e))return!0;return!1}copy(e){this.coordinateSystem=e.coordinateSystem;let t=this._frustums,n=e._frustums;for(let r=0;r<e._count;r++)t[r]===void 0&&(t[r]=new Al),t[r].copy(n[r]);return this._count=e._count,this}clone(){return new e().copy(this)}},Nl=class extends Xc{constructor(e){super(),this.isLineBasicMaterial=!0,this.type=`LineBasicMaterial`,this.color=new q(16777215),this.map=null,this.linewidth=1,this.linecap=`round`,this.linejoin=`round`,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}},Pl=new W,Fl=new W,Il=new ms,Ll=new tl,Rl=new Ic,zl=new W,Bl=new W,Vl=class extends Vs{constructor(e=new Wc,t=new Nl){super(),this.isLine=!0,this.type=`Line`,this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.morphTargetInfluences=e.morphTargetInfluences===void 0?void 0:e.morphTargetInfluences.slice(),this.morphTargetDictionary=e.morphTargetDictionary===void 0?void 0:Object.assign({},e.morphTargetDictionary),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){let e=this.geometry;if(e.index===null){let t=e.attributes.position,n=[0];for(let e=1,r=t.count;e<r;e++)Pl.fromBufferAttribute(t,e-1),Fl.fromBufferAttribute(t,e),n[e]=n[e-1],n[e]+=Pl.distanceTo(Fl);e.setAttribute(`lineDistance`,new Mc(n,1))}else B(`Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.`);return this}intersectsFrustum(e){return e.intersectsObject(this)}raycast(e,t){let n=this.geometry,r=this.matrixWorld,i=e.params.Line.threshold,a=n.drawRange;if(n.boundingSphere===null&&n.computeBoundingSphere(),Rl.copy(n.boundingSphere),Rl.applyMatrix4(r),Rl.radius+=i,e.ray.intersectsSphere(Rl)===!1)return;Il.copy(r).invert(),Ll.copy(e.ray).applyMatrix4(Il);let o=i/((this.scale.x+this.scale.y+this.scale.z)/3),s=o*o,c=this.isLineSegments?2:1,l=n.index,u=n.attributes.position;if(l!==null){let n=Math.max(0,a.start),r=Math.min(l.count,a.start+a.count);for(let i=n,a=r-1;i<a;i+=c){let n=l.getX(i),r=l.getX(i+1),a=Hl(this,e,Ll,s,n,r,i);a&&t.push(a)}if(this.isLineLoop){let i=l.getX(r-1),a=l.getX(n),o=Hl(this,e,Ll,s,i,a,r-1);o&&t.push(o)}}else{let n=Math.max(0,a.start),r=Math.min(u.count,a.start+a.count);for(let i=n,a=r-1;i<a;i+=c){let n=Hl(this,e,Ll,s,i,i+1,i);n&&t.push(n)}if(this.isLineLoop){let i=Hl(this,e,Ll,s,r-1,n,r-1);i&&t.push(i)}}}updateMorphTargets(){let e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e<t;e++){let t=n[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[t]=e}}}}};function Hl(e,t,n,r,i,a,o){let s=e.geometry.attributes.position;if(Pl.fromBufferAttribute(s,i),Fl.fromBufferAttribute(s,a),n.distanceSqToSegment(Pl,Fl,zl,Bl)>r)return;zl.applyMatrix4(e.matrixWorld);let c=t.ray.origin.distanceTo(zl);if(!(c<t.near||c>t.far))return{distance:c,point:Bl.clone().applyMatrix4(e.matrixWorld),index:o,face:null,faceIndex:null,barycoord:null,object:e}}var Ul=class extends cs{constructor(e=[],t=301,n,r,i,a,o,s,c,l){super(e,t,n,r,i,a,o,s,c,l),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}},Wl=class extends cs{constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r,i,a,o,s,c),this.isCanvasTexture=!0,this.needsUpdate=!0}},Gl=class extends cs{constructor(e,t,n=Gi,r,i,a,o=Pi,s=Pi,c,l=na,u=1){if(l!==1026&&l!==1027)throw Error(`THREE.DepthTexture: format must be either THREE.DepthFormat or THREE.DepthStencilFormat`);super({width:e,height:t,depth:u},r,i,a,o,s,l,n,c),this.isDepthTexture=!0,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.source=new is(Object.assign({},e.image)),this.compareFunction=e.compareFunction,this}toJSON(e){let t=super.toJSON(e);return t.compareFunction=this.compareFunction,t}},Kl=class extends Gl{constructor(e,t=Gi,n=301,r,i,a=Pi,o=Pi,s,c=na){let l={width:e,height:e,depth:1},u=[l,l,l,l,l,l];super(e,e,t,n,r,i,a,o,s,c),this.image=u,this.isCubeDepthTexture=!0,this.isCubeTexture=!0}get images(){return this.image}set images(e){this.image=e}},ql=class extends cs{constructor(e=null){super(),this.sourceTexture=e,this.isExternalTexture=!0}copy(e){return super.copy(e),this.sourceTexture=e.sourceTexture,this}},Jl=class e extends Wc{constructor(e=1,t=1,n=1,r=1,i=1,a=1){super(),this.type=`BoxGeometry`,this.parameters={width:e,height:t,depth:n,widthSegments:r,heightSegments:i,depthSegments:a};let o=this;r=Math.floor(r),i=Math.floor(i),a=Math.floor(a);let s=[],c=[],l=[],u=[],d=0,f=0;p(`z`,`y`,`x`,-1,-1,n,t,e,a,i,0),p(`z`,`y`,`x`,1,-1,n,t,-e,a,i,1),p(`x`,`z`,`y`,1,1,e,n,t,r,a,2),p(`x`,`z`,`y`,1,-1,e,n,-t,r,a,3),p(`x`,`y`,`z`,1,-1,e,t,n,r,i,4),p(`x`,`y`,`z`,-1,-1,e,t,-n,r,i,5),this.setIndex(s),this.setAttribute(`position`,new Mc(c,3)),this.setAttribute(`normal`,new Mc(l,3)),this.setAttribute(`uv`,new Mc(u,2));function p(e,t,n,r,i,a,p,m,h,g,_){let v=a/h,y=p/g,b=a/2,x=p/2,S=m/2,C=h+1,w=g+1,T=0,E=0,D=new W;for(let a=0;a<w;a++){let o=a*y-x;for(let s=0;s<C;s++)D[e]=(s*v-b)*r,D[t]=o*i,D[n]=S,c.push(D.x,D.y,D.z),D[e]=0,D[t]=0,D[n]=m>0?1:-1,l.push(D.x,D.y,D.z),u.push(s/h),u.push(1-a/g),T+=1}for(let e=0;e<g;e++)for(let t=0;t<h;t++){let n=d+t+C*e,r=d+t+C*(e+1),i=d+(t+1)+C*(e+1),a=d+(t+1)+C*e;s.push(n,r,a),s.push(r,i,a),E+=6}o.addGroup(f,E,_),f+=E,d+=T}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(t){return new e(t.width,t.height,t.depth,t.widthSegments,t.heightSegments,t.depthSegments)}},Yl=class e extends Wc{constructor(e=1,t=1,n=1,r=1){super(),this.type=`PlaneGeometry`,this.parameters={width:e,height:t,widthSegments:n,heightSegments:r};let i=e/2,a=t/2,o=Math.floor(n),s=Math.floor(r),c=o+1,l=s+1,u=e/o,d=t/s,f=[],p=[],m=[],h=[];for(let e=0;e<l;e++){let t=e*d-a;for(let n=0;n<c;n++){let r=n*u-i;p.push(r,-t,0),m.push(0,0,1),h.push(n/o),h.push(1-e/s)}}for(let e=0;e<s;e++)for(let t=0;t<o;t++){let n=t+c*e,r=t+c*(e+1),i=t+1+c*(e+1),a=t+1+c*e;f.push(n,r,a),f.push(r,i,a)}this.setIndex(f),this.setAttribute(`position`,new Mc(p,3)),this.setAttribute(`normal`,new Mc(m,3)),this.setAttribute(`uv`,new Mc(h,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(t){return new e(t.width,t.height,t.widthSegments,t.heightSegments)}},Xl=class e extends Wc{constructor(e=.5,t=1,n=32,r=1,i=0,a=Math.PI*2){super(),this.type=`RingGeometry`,this.parameters={innerRadius:e,outerRadius:t,thetaSegments:n,phiSegments:r,thetaStart:i,thetaLength:a},n=Math.max(3,n),r=Math.max(1,r);let o=[],s=[],c=[],l=[],u=e,d=(t-e)/r,f=new W,p=new U;for(let e=0;e<=r;e++){for(let e=0;e<=n;e++){let r=i+e/n*a;f.x=u*Math.cos(r),f.y=u*Math.sin(r),s.push(f.x,f.y,f.z),c.push(0,0,1),p.x=(f.x/t+1)/2,p.y=(f.y/t+1)/2,l.push(p.x,p.y)}u+=d}for(let e=0;e<r;e++){let t=e*(n+1);for(let e=0;e<n;e++){let r=e+t,i=r,a=r+n+1,s=r+n+2,c=r+1;o.push(i,a,c),o.push(a,s,c)}}this.setIndex(o),this.setAttribute(`position`,new Mc(s,3)),this.setAttribute(`normal`,new Mc(c,3)),this.setAttribute(`uv`,new Mc(l,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(t){return new e(t.innerRadius,t.outerRadius,t.thetaSegments,t.phiSegments,t.thetaStart,t.thetaLength)}},Zl=class e extends Wc{constructor(e=1,t=32,n=16,r=0,i=Math.PI*2,a=0,o=Math.PI){super(),this.type=`SphereGeometry`,this.parameters={radius:e,widthSegments:t,heightSegments:n,phiStart:r,phiLength:i,thetaStart:a,thetaLength:o},t=Math.max(3,Math.floor(t)),n=Math.max(2,Math.floor(n));let s=Math.min(a+o,Math.PI),c=0,l=[],u=new W,d=new W,f=[],p=[],m=[],h=[];for(let f=0;f<=n;f++){let g=[],_=f/n,v=a+_*o,y=e*Math.cos(v),b=Math.sqrt(e*e-y*y),x=0;f===0&&a===0?x=.5/t:f===n&&s===Math.PI&&(x=-.5/t);for(let e=0;e<=t;e++){let n=e/t,a=r+n*i;u.x=-b*Math.cos(a),u.y=y,u.z=b*Math.sin(a),p.push(u.x,u.y,u.z),d.copy(u).normalize(),m.push(d.x,d.y,d.z),h.push(n+x,1-_),g.push(c++)}l.push(g)}for(let e=0;e<n;e++)for(let r=0;r<t;r++){let t=l[e][r+1],i=l[e][r],o=l[e+1][r],c=l[e+1][r+1];(e!==0||a>0)&&f.push(t,i,c),(e!==n-1||s<Math.PI)&&f.push(i,o,c)}this.setIndex(f),this.setAttribute(`position`,new Mc(p,3)),this.setAttribute(`normal`,new Mc(m,3)),this.setAttribute(`uv`,new Mc(h,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(t){return new e(t.radius,t.widthSegments,t.heightSegments,t.phiStart,t.phiLength,t.thetaStart,t.thetaLength)}};function Ql(e){let t={};for(let n in e){t[n]={};for(let r in e[n]){let i=e[n][r];if(eu(i))i.isRenderTargetTexture?(B(`UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms().`),t[n][r]=null):t[n][r]=i.clone();else if(Array.isArray(i)){if(eu(i[0])){let e=[];for(let t=0,n=i.length;t<n;t++)e[t]=i[t].clone();t[n][r]=e}else t[n][r]=i.slice()}else t[n][r]=i}}return t}function $l(e){let t={};for(let n=0;n<e.length;n++){let r=Ql(e[n]);for(let e in r)t[e]=r[e]}return t}function eu(e){return e&&(e.isColor||e.isMatrix3||e.isMatrix4||e.isVector2||e.isVector3||e.isVector4||e.isTexture||e.isQuaternion)}function tu(e){let t=[];for(let n=0;n<e.length;n++)t.push(e[n].clone());return t}function nu(e){let t=e.getRenderTarget();return t===null?e.outputColorSpace:t.isXRRenderTarget===!0?t.texture.colorSpace:K.workingColorSpace}var ru={clone:Ql,merge:$l},iu=`void main() {
566 gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
567}`,au=`void main() {
568 gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
569}`,ou=class extends Xc{constructor(e){super(),this.isShaderMaterial=!0,this.type=`ShaderMaterial`,this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader=iu,this.fragmentShader=au,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.forceSinglePass=!0,this.extensions={clipCullDistance:!1,multiDraw:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv1:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,e!==void 0&&this.setValues(e)}copy(e){return super.copy(e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=Ql(e.uniforms),this.uniformsGroups=tu(e.uniformsGroups),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.fog=e.fog,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this.defaultAttributeValues=Object.assign({},e.defaultAttributeValues),this.index0AttributeName=e.index0AttributeName,this.uniformsNeedUpdate=e.uniformsNeedUpdate,this}toJSON(e){let t=super.toJSON(e);t.glslVersion=this.glslVersion,t.uniforms={};for(let n in this.uniforms){let r=this.uniforms[n].value;r&&r.isTexture?t.uniforms[n]={type:`t`,value:r.toJSON(e).uuid}:r&&r.isColor?t.uniforms[n]={type:`c`,value:r.getHex()}:r&&r.isVector2?t.uniforms[n]={type:`v2`,value:r.toArray()}:r&&r.isVector3?t.uniforms[n]={type:`v3`,value:r.toArray()}:r&&r.isVector4?t.uniforms[n]={type:`v4`,value:r.toArray()}:r&&r.isMatrix3?t.uniforms[n]={type:`m3`,value:r.toArray()}:r&&r.isMatrix4?t.uniforms[n]={type:`m4`,value:r.toArray()}:t.uniforms[n]={value:r}}Object.keys(this.defines).length>0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;let n={};for(let e in this.extensions)this.extensions[e]===!0&&(n[e]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}fromJSON(e,t){if(super.fromJSON(e,t),e.uniforms!==void 0)for(let n in e.uniforms){let r=e.uniforms[n];switch(this.uniforms[n]={},r.type){case`t`:this.uniforms[n].value=t[r.value]||null;break;case`c`:this.uniforms[n].value=new q().setHex(r.value);break;case`v2`:this.uniforms[n].value=new U().fromArray(r.value);break;case`v3`:this.uniforms[n].value=new W().fromArray(r.value);break;case`v4`:this.uniforms[n].value=new ls().fromArray(r.value);break;case`m3`:this.uniforms[n].value=new G().fromArray(r.value);break;case`m4`:this.uniforms[n].value=new ms().fromArray(r.value);break;default:this.uniforms[n].value=r.value}}if(e.defines!==void 0&&(this.defines=e.defines),e.vertexShader!==void 0&&(this.vertexShader=e.vertexShader),e.fragmentShader!==void 0&&(this.fragmentShader=e.fragmentShader),e.glslVersion!==void 0&&(this.glslVersion=e.glslVersion),e.extensions!==void 0)for(let t in e.extensions)this.extensions[t]=e.extensions[t];return e.lights!==void 0&&(this.lights=e.lights),e.clipping!==void 0&&(this.clipping=e.clipping),this}},su=class extends ou{constructor(e){super(e),this.isRawShaderMaterial=!0,this.type=`RawShaderMaterial`}},cu=class extends Xc{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type=`MeshPhongMaterial`,this.color=new q(16777215),this.specular=new q(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new q(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new U(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new ws,this.combine=0,this.reflectivity=1,this.envMapIntensity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.envMapIntensity=e.envMapIntensity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}},lu=class extends Xc{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type=`MeshDepthMaterial`,this.depthPacking=Qa,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}},uu=class extends Xc{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type=`MeshDistanceMaterial`,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}};function du(e,t){return!e||e.constructor===t?e:typeof t.BYTES_PER_ELEMENT==`number`?new t(e):Array.prototype.slice.call(e)}function fu(e){return e!==void 0&&e.inTangents!==void 0&&e.outTangents!==void 0}var pu=class{constructor(e,t,n,r){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=r===void 0?new t.constructor(n):r,this.sampleValues=t,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(e){let t=this.parameterPositions,n=this._cachedIndex,r=t[n],i=t[n-1];validate_interval:{seek:{let a;linear_scan:{forward_scan:if(!(e<r)){for(let a=n+2;;){if(r===void 0){if(e<i)break forward_scan;return n=t.length,this._cachedIndex=n,this.copySampleValue_(n-1)}if(n===a)break;if(i=r,r=t[++n],e<r)break seek}a=t.length;break linear_scan}if(!(e>=i)){let o=t[1];e<o&&(n=2,i=o);for(let a=n-2;;){if(i===void 0)return this._cachedIndex=0,this.copySampleValue_(0);if(n===a)break;if(r=i,i=t[--n-1],e>=i)break seek}a=n,n=0;break linear_scan}break validate_interval}for(;n<a;){let r=n+a>>>1;e<t[r]?a=r:n=r+1}if(r=t[n],i=t[n-1],i===void 0)return this._cachedIndex=0,this.copySampleValue_(0);if(r===void 0)return n=t.length,this._cachedIndex=n,this.copySampleValue_(n-1)}this._cachedIndex=n,this.intervalChanged_(n,i,r)}return this.interpolate_(n,i,e,r)}getSettings_(){return this.settings||this.DefaultSettings_}copySampleValue_(e){let t=this.resultBuffer,n=this.sampleValues,r=this.valueSize,i=e*r;for(let e=0;e!==r;++e)t[e]=n[i+e];return t}interpolate_(){throw Error(`THREE.Interpolant: Call to abstract method.`)}intervalChanged_(){}},mu=class extends pu{constructor(e,t,n,r){super(e,t,n,r),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0,this.DefaultSettings_={endingStart:Ya,endingEnd:Ya}}intervalChanged_(e,t,n){let r=this.parameterPositions,i=e-2,a=e+1,o=r[i],s=r[a];if(o===void 0)switch(this.getSettings_().endingStart){case Xa:i=e,o=2*t-n;break;case Za:i=r.length-2,o=t+r[i]-r[i+1];break;default:i=e,o=n}if(s===void 0)switch(this.getSettings_().endingEnd){case Xa:a=e,s=2*n-t;break;case Za:a=1,s=n+r[1]-r[0];break;default:a=e-1,s=t}let c=(n-t)*.5,l=this.valueSize;this._weightPrev=c/(t-o),this._weightNext=c/(s-n),this._offsetPrev=i*l,this._offsetNext=a*l}interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=e*o,c=s-o,l=this._offsetPrev,u=this._offsetNext,d=this._weightPrev,f=this._weightNext,p=(n-t)/(r-t),m=p*p,h=m*p,g=-d*h+2*d*m-d*p,_=(1+d)*h+(-1.5-2*d)*m+(-.5+d)*p+1,v=(-1-f)*h+(1.5+f)*m+.5*p,y=f*h-f*m;for(let e=0;e!==o;++e)i[e]=g*a[l+e]+_*a[c+e]+v*a[s+e]+y*a[u+e];return i}},hu=class extends pu{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=e*o,c=s-o,l=(n-t)/(r-t),u=1-l;for(let e=0;e!==o;++e)i[e]=a[c+e]*u+a[s+e]*l;return i}},gu=class extends pu{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e){return this.copySampleValue_(e-1)}},_u=class extends pu{interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=e*o,c=s-o,l=this.inTangents,u=this.outTangents;if(!l||!u){let e=(n-t)/(r-t),l=1-e;for(let t=0;t!==o;++t)i[t]=a[c+t]*l+a[s+t]*e;return i}let d=o*2,f=e-1;for(let p=0;p!==o;++p){let o=a[c+p],m=a[s+p],h=f*d+p*2,g=u[h],_=u[h+1],v=e*d+p*2,y=l[v],b=l[v+1],x=bu(n,t,g,y,r);i[p]=vu(x,o,_,b,m)}return i}};function vu(e,t,n,r,i){let a=1-e;return a*a*a*t+3*a*a*e*n+3*a*e*e*r+e*e*e*i}function yu(e,t,n,r,i){let a=1-e;return 3*a*a*(n-t)+6*a*e*(r-n)+3*e*e*(i-r)}function bu(e,t,n,r,i){let a=(e-t)/(i-t);for(let o=0;o<8;o++){let o=vu(a,t,n,r,i)-e;if(Math.abs(o)<1e-10)break;let s=yu(a,t,n,r,i);if(Math.abs(s)<1e-10)break;a=Math.max(0,Math.min(1,a-o/s))}return a}var xu=class{constructor(e,t,n,r){if(e===void 0)throw Error(`THREE.KeyframeTrack: track name is undefined`);if(t===void 0||t.length===0)throw Error(`THREE.KeyframeTrack: no keyframes in track named `+e);this.name=e,this.times=du(t,this.TimeBufferType),this.values=du(n,this.ValueBufferType),this.setInterpolation(r||this.DefaultInterpolation)}static toJSON(e){let t=e.constructor,n;if(t.toJSON!==this.toJSON)n=t.toJSON(e);else{n={name:e.name,times:du(e.times,Array),values:du(e.values,Array)};let t=e.getInterpolation();t!==e.DefaultInterpolation&&(n.interpolation=t),fu(e.settings)&&(n.settings={inTangents:du(e.settings.inTangents,Array),outTangents:du(e.settings.outTangents,Array)})}return n.type=e.ValueTypeName,n}InterpolantFactoryMethodDiscrete(e){return new gu(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodLinear(e){return new hu(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodSmooth(e){return new mu(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodBezier(e){let t=new _u(this.times,this.values,this.getValueSize(),e);return this.settings&&(t.inTangents=this.settings.inTangents,t.outTangents=this.settings.outTangents),t}setInterpolation(e){let t;switch(e){case Ga:t=this.InterpolantFactoryMethodDiscrete;break;case Ka:t=this.InterpolantFactoryMethodLinear;break;case qa:t=this.InterpolantFactoryMethodSmooth;break;case Ja:t=this.InterpolantFactoryMethodBezier}if(t===void 0){let t=`unsupported interpolation for `+this.ValueTypeName+` keyframe track named `+this.name;if(this.createInterpolant===void 0){if(e!==this.DefaultInterpolation)this.setInterpolation(this.DefaultInterpolation);else throw Error(t)}return B(`KeyframeTrack:`,t),this}return this.createInterpolant=t,this}getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return Ga;case this.InterpolantFactoryMethodLinear:return Ka;case this.InterpolantFactoryMethodSmooth:return qa;case this.InterpolantFactoryMethodBezier:return Ja}}getValueSize(){return this.values.length/this.times.length}shift(e){if(e!==0){let t=this.times;for(let n=0,r=t.length;n!==r;++n)t[n]+=e;fu(this.settings)&&(Su(this.settings.inTangents,e),Su(this.settings.outTangents,e))}return this}scale(e){if(e!==1){let t=this.times;for(let n=0,r=t.length;n!==r;++n)t[n]*=e;fu(this.settings)&&(Cu(this.settings.inTangents,e),Cu(this.settings.outTangents,e))}return this}trim(e,t){let n=this.times,r=n.length,i=0,a=r-1;for(;i!==r&&n[i]<e;)++i;for(;a!==-1&&n[a]>t;)--a;if(++a,i!==0||a!==r){i>=a&&(a=Math.max(a,1),i=a-1);let e=this.getValueSize();this.times=n.slice(i,a),this.values=this.values.slice(i*e,a*e)}return this}validate(){let e=!0,t=this.getValueSize();t-Math.floor(t)!==0&&(V(`KeyframeTrack: Invalid value size in track.`,this),e=!1);let n=this.times,r=this.values,i=n.length;i===0&&(V(`KeyframeTrack: Track is empty.`,this),e=!1);let a=null;for(let t=0;t!==i;t++){let r=n[t];if(typeof r==`number`&&isNaN(r)){V(`KeyframeTrack: Time is not a valid number.`,this,t,r),e=!1;break}if(a!==null&&a>r){V(`KeyframeTrack: Out of order keys.`,this,t,r,a),e=!1;break}a=r}if(r!==void 0&&co(r))for(let t=0,n=r.length;t!==n;++t){let n=r[t];if(isNaN(n)){V(`KeyframeTrack: Value is not a valid number.`,this,t,n),e=!1;break}}return e}optimize(){let e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),r=this.getInterpolation()===qa,i=e.length-1,a=1;for(let o=1;o<i;++o){let i=!1,s=e[o];if(s!==e[o+1]&&(o!==1||s!==e[0])){if(r)i=!0;else{let e=o*n,r=e-n,a=e+n;for(let o=0;o!==n;++o){let n=t[e+o];if(n!==t[r+o]||n!==t[a+o]){i=!0;break}}}}if(i){if(o!==a){e[a]=e[o];let r=o*n,i=a*n;for(let e=0;e!==n;++e)t[i+e]=t[r+e]}++a}}if(i>0){e[a]=e[i];for(let e=i*n,r=a*n,o=0;o!==n;++o)t[r+o]=t[e+o];++a}return a===e.length?(this.times=e,this.values=t):(this.times=e.slice(0,a),this.values=t.slice(0,a*n)),this}clone(){let e=this.times.slice(),t=this.values.slice(),n=this.constructor,r=new n(this.name,e,t);return r.createInterpolant=this.createInterpolant,fu(this.settings)&&(r.settings={inTangents:this.settings.inTangents.slice(),outTangents:this.settings.outTangents.slice()}),r}};function Su(e,t){for(let n=0,r=e.length;n!==r;n+=2)e[n]+=t}function Cu(e,t){for(let n=0,r=e.length;n!==r;n+=2)e[n]*=t}xu.prototype.ValueTypeName=``,xu.prototype.TimeBufferType=Float32Array,xu.prototype.ValueBufferType=Float32Array,xu.prototype.DefaultInterpolation=Ka;var wu=class extends xu{constructor(e,t,n){super(e,t,n)}};wu.prototype.ValueTypeName=`bool`,wu.prototype.ValueBufferType=Array,wu.prototype.DefaultInterpolation=Ga,wu.prototype.InterpolantFactoryMethodLinear=void 0,wu.prototype.InterpolantFactoryMethodSmooth=void 0;var Tu=class extends xu{constructor(e,t,n,r){super(e,t,n,r)}};Tu.prototype.ValueTypeName=`color`;var Eu=class extends xu{constructor(e,t,n,r){super(e,t,n,r)}};Eu.prototype.ValueTypeName=`number`;var Du=class extends pu{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=(n-t)/(r-t),c=e*o;for(let e=c+o;c!==e;c+=4)Ko.slerpFlat(i,0,a,c-o,a,c,s);return i}},Ou=class extends xu{constructor(e,t,n,r){super(e,t,n,r)}InterpolantFactoryMethodLinear(e){return new Du(this.times,this.values,this.getValueSize(),e)}};Ou.prototype.ValueTypeName=`quaternion`,Ou.prototype.InterpolantFactoryMethodSmooth=void 0;var ku=class extends xu{constructor(e,t,n){super(e,t,n)}};ku.prototype.ValueTypeName=`string`,ku.prototype.ValueBufferType=Array,ku.prototype.DefaultInterpolation=Ga,ku.prototype.InterpolantFactoryMethodLinear=void 0,ku.prototype.InterpolantFactoryMethodSmooth=void 0;var Au=class extends xu{constructor(e,t,n,r){super(e,t,n,r)}};Au.prototype.ValueTypeName=`vector`;var ju={enabled:!1,files:{},add:function(e,t){this.enabled!==!1&&(Mu(e)||(this.files[e]=t))},get:function(e){if(this.enabled!==!1&&!Mu(e))return this.files[e]},remove:function(e){delete this.files[e]},clear:function(){this.files={}}};function Mu(e){try{let t=e.slice(e.indexOf(`:`)+1);return new URL(t).protocol===`blob:`}catch{return!1}}var Nu=new class{constructor(e,t,n){let r=this,i=!1,a=0,o=0,s,c=[];this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=n,this._abortController=null,this.itemStart=function(e){o++,i===!1&&r.onStart!==void 0&&r.onStart(e,a,o),i=!0},this.itemEnd=function(e){a++,r.onProgress!==void 0&&r.onProgress(e,a,o),a===o&&(i=!1,r.onLoad!==void 0&&r.onLoad())},this.itemError=function(e){r.onError!==void 0&&r.onError(e)},this.resolveURL=function(e){return e=e.normalize(`NFC`),s?s(e):e},this.setURLModifier=function(e){return s=e,this},this.addHandler=function(e,t){return c.push(e,t),this},this.removeHandler=function(e){let t=c.indexOf(e);return t!==-1&&c.splice(t,2),this},this.getHandler=function(e){for(let t=0,n=c.length;t<n;t+=2){let n=c[t],r=c[t+1];if(n.global&&(n.lastIndex=0),n.test(e))return r}return null},this.abort=function(){return this.abortController.abort(),this._abortController=null,this}}get abortController(){return this._abortController||=new AbortController,this._abortController}},Pu=class{constructor(e){this.manager=e===void 0?Nu:e,this.crossOrigin=`anonymous`,this.withCredentials=!1,this.path=``,this.resourcePath=``,this.requestHeader={},this.priority=`auto`,this.cache=`default`,typeof __THREE_DEVTOOLS__<`u`&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent(`observe`,{detail:this}))}load(){}loadAsync(e,t){let n=this;return new Promise(function(r,i){n.load(e,r,t,i)})}parse(){}setCrossOrigin(e){return this.crossOrigin=e,this}setWithCredentials(e){return this.withCredentials=e,this}setPath(e){return this.path=e,this}setResourcePath(e){return this.resourcePath=e,this}setRequestHeader(e){return this.requestHeader=e,this}setPriority(e){return this.priority=e,this}setCache(e){return this.cache=e,this}abort(){return this}};Pu.DEFAULT_MATERIAL_NAME=`__DEFAULT`;var Fu=new WeakMap,Iu=class extends Pu{constructor(e){super(e)}load(e,t,n,r){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);let i=this,a=ju.get(`image:${e}`);if(a!==void 0){if(a.complete===!0)i.manager.itemStart(e),setTimeout(function(){t&&t(a),i.manager.itemEnd(e)},0);else{let e=Fu.get(a);e===void 0&&(e=[],Fu.set(a,e)),e.push({onLoad:t,onError:r})}return a}let o=lo(`img`);function s(){l(),t&&t(this);let n=Fu.get(this)||[];for(let e=0;e<n.length;e++){let t=n[e];t.onLoad&&t.onLoad(this)}Fu.delete(this),i.manager.itemEnd(e)}function c(t){l(),r&&r(t),ju.remove(`image:${e}`);let n=Fu.get(this)||[];for(let e=0;e<n.length;e++){let r=n[e];r.onError&&r.onError(t)}Fu.delete(this),i.manager.itemError(e),i.manager.itemEnd(e)}function l(){o.removeEventListener(`load`,s,!1),o.removeEventListener(`error`,c,!1)}return o.addEventListener(`load`,s,!1),o.addEventListener(`error`,c,!1),e.slice(0,5)!==`data:`&&this.crossOrigin!==void 0&&(o.crossOrigin=this.crossOrigin),ju.add(`image:${e}`,o),i.manager.itemStart(e),o.fetchPriority=this.priority,o.src=e,o}},Lu=class extends Pu{constructor(e){super(e)}load(e,t,n,r){let i=new cs,a=new Iu(this.manager);return a.setPriority(this.priority),a.setCache(this.cache),a.setCrossOrigin(this.crossOrigin),a.setPath(this.path),a.load(e,function(e){i.image=e,i.needsUpdate=!0,t!==void 0&&t(i)},n,r),i}},Ru=class extends Vs{static registerNode(e){this.prototype._lightNode=e}constructor(e,t=1){super(),this.isLight=!0,this.type=`Light`,this.color=new q(e),this.intensity=t}copy(e,t){return super.copy(e,t),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){let t=super.toJSON(e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,t}},zu=new ms,Bu=new W,Vu=new W,Hu=class{constructor(e){this.camera=e,this.intensity=1,this.bias=0,this.biasNode=null,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new U(512,512),this.mapType=Bi,this.map=null,this.mapPass=null,this.matrix=new ms,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new Al,this._frameExtents=new U(1,1),this._viewportCount=1,this._viewports=[new ls(0,0,1,1)]}getViewportCount(){return this._viewportCount}getCamera(){return this.camera}getFrustum(){return this._frustum}updateMatrices(e){let t=this.camera;Bu.setFromMatrixPosition(e.matrixWorld),t.position.copy(Bu),Vu.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(Vu),t.updateMatrixWorld(),this._updateMatrix(t,this.matrix,this._frustum)}_updateMatrix(e,t,n,r){zu.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),n.setFromProjectionMatrix(zu,e.coordinateSystem,e.reversedDepth);let i=this._frameExtents,a=r?r.z/i.x:1,o=r?r.w/i.y:1,s=r?r.x/i.x:0,c=r?r.y/i.y:0;e.coordinateSystem===2001||e.reversedDepth?t.set(.5*a,0,0,.5*a+s,0,.5*o,0,.5*o+c,0,0,1,0,0,0,0,1):t.set(.5*a,0,0,.5*a+s,0,.5*o,0,.5*o+c,0,0,.5,.5,0,0,0,1),t.multiply(zu)}getViewport(e){return this._viewports[e]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(e){return this.camera=e.camera.clone(),this.intensity=e.intensity,this.bias=e.bias,this.radius=e.radius,this.autoUpdate=e.autoUpdate,this.needsUpdate=e.needsUpdate,this.normalBias=e.normalBias,this.blurSamples=e.blurSamples,this.mapSize.copy(e.mapSize),this.mapType=e.mapType,this.biasNode=e.biasNode,this}clone(){return new this.constructor().copy(this)}toJSON(){let e={};return e.intensity=this.intensity,e.bias=this.bias,e.normalBias=this.normalBias,e.radius=this.radius,e.blurSamples=this.blurSamples,e.mapSize=this.mapSize.toArray(),e.mapType=this.mapType,e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}},Uu=new W,Wu=new Ko,Gu=new W,Ku=class extends Vs{constructor(){super(),this.isCamera=!0,this.type=`Camera`,this.matrixWorldInverse=new ms,this.projectionMatrix=new ms,this.projectionMatrixInverse=new ms,this.coordinateSystem=oo,this._reversedDepth=!1}get reversedDepth(){return this._reversedDepth}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorld.decompose(Uu,Wu,Gu),Gu.x===1&&Gu.y===1&&Gu.z===1?this.matrixWorldInverse.copy(this.matrixWorld).invert():this.matrixWorldInverse.compose(Uu,Wu,Gu.set(1,1,1)).invert()}updateWorldMatrix(e,t,n=!1){super.updateWorldMatrix(e,t,n),this.matrixWorld.decompose(Uu,Wu,Gu),Gu.x===1&&Gu.y===1&&Gu.z===1?this.matrixWorldInverse.copy(this.matrixWorld).invert():this.matrixWorldInverse.compose(Uu,Wu,Gu.set(1,1,1)).invert()}clone(){return new this.constructor().copy(this)}},qu=new W,Ju=new U,Yu=new U,Xu=class extends Ku{constructor(e=50,t=1,n=.1,r=2e3){super(),this.isPerspectiveCamera=!0,this.type=`PerspectiveCamera`,this.fov=e,this.zoom=1,this.near=n,this.far=r,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){let t=.5*this.getFilmHeight()/e;this.fov=So*2*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){let e=Math.tan(xo*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return So*2*Math.atan(Math.tan(xo*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(e,t,n){qu.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),t.set(qu.x,qu.y).multiplyScalar(-e/qu.z),qu.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),n.set(qu.x,qu.y).multiplyScalar(-e/qu.z)}getViewSize(e,t){return this.getViewBounds(e,Ju,Yu),t.subVectors(Yu,Ju)}setViewOffset(e,t,n,r,i,a){this.aspect=e/t,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){let e=this.near,t=e*Math.tan(xo*.5*this.fov)/this.zoom,n=2*t,r=this.aspect*n,i=-.5*r,a=this.view;if(this.view!==null&&this.view.enabled){let e=a.fullWidth,o=a.fullHeight;i+=a.offsetX*r/e,t-=a.offsetY*n/o,r*=a.width/e,n*=a.height/o}let o=this.filmOffset;o!==0&&(i+=e*o/this.getFilmWidth()),this.projectionMatrix.makePerspective(i,i+r,t,t-n,e,this.far,this.coordinateSystem,this.reversedDepth),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){let t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}},Zu=class extends Ku{constructor(e=-1,t=1,n=1,r=-1,i=.1,a=2e3){super(),this.isOrthographicCamera=!0,this.type=`OrthographicCamera`,this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=n,this.bottom=r,this.near=i,this.far=a,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,t,n,r,i,a){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){let e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,r=(this.top+this.bottom)/2,i=n-e,a=n+e,o=r+t,s=r-t;if(this.view!==null&&this.view.enabled){let e=(this.right-this.left)/this.view.fullWidth/this.zoom,t=(this.top-this.bottom)/this.view.fullHeight/this.zoom;i+=e*this.view.offsetX,a=i+e*this.view.width,o-=t*this.view.offsetY,s=o-t*this.view.height}this.projectionMatrix.makeOrthographic(i,a,o,s,this.near,this.far,this.coordinateSystem,this.reversedDepth),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){let t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}},Qu=class extends Hu{constructor(){super(new Zu(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}},$u=class extends Ru{constructor(e,t){super(e,t),this.isDirectionalLight=!0,this.type=`DirectionalLight`,this.position.copy(Vs.DEFAULT_UP),this.updateMatrix(),this.target=new Vs,this.shadow=new Qu}dispose(){super.dispose(),this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}toJSON(e){let t=super.toJSON(e);return t.object.shadow=this.shadow.toJSON(),t.object.target=this.target.uuid,t}},ed=class extends Ru{constructor(e,t){super(e,t),this.isAmbientLight=!0,this.type=`AmbientLight`}},td=-90,nd=1,rd=class extends Vs{constructor(e,t,n){super(),this.type=`CubeCamera`,this.renderTarget=n,this.coordinateSystem=null,this.activeMipmapLevel=0;let r=new Xu(td,nd,e,t);r.layers=this.layers,this.add(r);let i=new Xu(td,nd,e,t);i.layers=this.layers,this.add(i);let a=new Xu(td,nd,e,t);a.layers=this.layers,this.add(a);let o=new Xu(td,nd,e,t);o.layers=this.layers,this.add(o);let s=new Xu(td,nd,e,t);s.layers=this.layers,this.add(s);let c=new Xu(td,nd,e,t);c.layers=this.layers,this.add(c)}updateCoordinateSystem(){let e=this.coordinateSystem,t=this.children.concat(),[n,r,i,a,o,s]=t;for(let e of t)this.remove(e);if(e===2e3)n.up.set(0,1,0),n.lookAt(1,0,0),r.up.set(0,1,0),r.lookAt(-1,0,0),i.up.set(0,0,-1),i.lookAt(0,1,0),a.up.set(0,0,1),a.lookAt(0,-1,0),o.up.set(0,1,0),o.lookAt(0,0,1),s.up.set(0,1,0),s.lookAt(0,0,-1);else if(e===2001)n.up.set(0,-1,0),n.lookAt(-1,0,0),r.up.set(0,-1,0),r.lookAt(1,0,0),i.up.set(0,0,1),i.lookAt(0,1,0),a.up.set(0,0,-1),a.lookAt(0,-1,0),o.up.set(0,-1,0),o.lookAt(0,0,1),s.up.set(0,-1,0),s.lookAt(0,0,-1);else throw Error(`THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: `+e);for(let e of t)this.add(e),e.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();let{renderTarget:n,activeMipmapLevel:r}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());let[i,a,o,s,c,l]=this.children,u=e.getRenderTarget(),d=e.getActiveCubeFace(),f=e.getActiveMipmapLevel(),p=e.xr.enabled;e.xr.enabled=!1;let m=n.texture.mipmapsAutoUpdate;n.texture.mipmapsAutoUpdate=!1;let h=!1;h=e.isWebGLRenderer===!0?e.state.buffers.depth.getReversed():e.reversedDepthBuffer,e.setRenderTarget(n,0,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,i),e.setRenderTarget(n,1,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,a),e.setRenderTarget(n,2,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,o),e.setRenderTarget(n,3,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,s),e.setRenderTarget(n,4,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,c),n.texture.mipmapsAutoUpdate=m,e.setRenderTarget(n,5,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,l),e.setRenderTarget(u,d,f),e.xr.enabled=p,n.texture.needsPMREMUpdate=!0}},id=class extends Xu{constructor(e=[]){super(),this.isArrayCamera=!0,this.isMultiViewCamera=!1,this.cameras=e,this.perCameraFrustumCulled=!1}},ad=`\\[\\]\\.:\\/`,od=RegExp(`[\\[\\]\\.:\\/]`,`g`),sd=`[^\\[\\]\\.:\\/]`,cd=`[^`+ad.replace(`\\.`,``)+`]`,ld=`((?:WC+[\\/:])*)`.replace(`WC`,sd),ud=`(WCOD+)?`.replace(`WCOD`,cd),dd=`(?:\\.(WC+)(?:\\[(.+)\\])?)?`.replace(`WC`,sd),fd=`\\.(WC+)(?:\\[(.+)\\])?`.replace(`WC`,sd),pd=RegExp(`^`+ld+ud+dd+fd+`$`),md=[`material`,`materials`,`bones`,`map`],hd=class{constructor(e,t,n){let r=n||gd.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,r)}getValue(e,t){this.bind();let n=this._targetGroup.nCachedObjects_,r=this._bindings[n];r!==void 0&&r.getValue(e,t)}setValue(e,t){let n=this._bindings;for(let r=this._targetGroup.nCachedObjects_,i=n.length;r!==i;++r)n[r].setValue(e,t)}bind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}unbind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}},gd=class e{constructor(t,n,r){this.path=n,this.parsedPath=r||e.parseTrackName(n),this.node=e.findNode(t,this.parsedPath.nodeName),this.rootNode=t,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(t,n,r){return t&&t.isAnimationObjectGroup?new e.Composite(t,n,r):new e(t,n,r)}static sanitizeNodeName(e){return e.replace(/\s/g,`_`).replace(od,``)}static parseTrackName(e){let t=pd.exec(e);if(t===null)throw Error(`THREE.PropertyBinding: Cannot parse trackName: `+e);let n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},r=n.nodeName&&n.nodeName.lastIndexOf(`.`);if(r!==void 0&&r!==-1){let e=n.nodeName.substring(r+1);md.indexOf(e)!==-1&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=e)}if(n.propertyName===null||n.propertyName.length===0)throw Error(`THREE.PropertyBinding: can not parse propertyName from trackName: `+e);return n}static findNode(e,t){if(t===void 0||t===``||t===`.`||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){let n=e.skeleton.getBoneByName(t);if(n!==void 0)return n}if(e.children){let n=function(e){for(let r=0;r<e.length;r++){let i=e[r];if(i.name===t||i.uuid===t)return i;let a=n(i.children);if(a)return a}return null},r=n(e.children);if(r)return r}return null}_getValue_unavailable(){}_setValue_unavailable(){}_getValue_direct(e,t){e[t]=this.targetObject[this.propertyName]}_getValue_array(e,t){let n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)e[t++]=n[r]}_getValue_arrayElement(e,t){e[t]=this.resolvedProperty[this.propertyIndex]}_getValue_toArray(e,t){this.resolvedProperty.toArray(e,t)}_setValue_direct(e,t){this.targetObject[this.propertyName]=e[t]}_setValue_direct_setNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.needsUpdate=!0}_setValue_direct_setMatrixWorldNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_array(e,t){let n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=e[t++]}_setValue_array_setNeedsUpdate(e,t){let n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=e[t++];this.targetObject.needsUpdate=!0}_setValue_array_setMatrixWorldNeedsUpdate(e,t){let n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=e[t++];this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_arrayElement(e,t){this.resolvedProperty[this.propertyIndex]=e[t]}_setValue_arrayElement_setNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.needsUpdate=!0}_setValue_arrayElement_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_fromArray(e,t){this.resolvedProperty.fromArray(e,t)}_setValue_fromArray_setNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.needsUpdate=!0}_setValue_fromArray_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.matrixWorldNeedsUpdate=!0}_getValue_unbound(e,t){this.bind(),this.getValue(e,t)}_setValue_unbound(e,t){this.bind(),this.setValue(e,t)}bind(){let t=this.node,n=this.parsedPath,r=n.objectName,i=n.propertyName,a=n.propertyIndex;if(t||(t=e.findNode(this.rootNode,n.nodeName),this.node=t),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!t){B(`PropertyBinding: No target node found for track: `+this.path+`.`);return}if(r){let e=n.objectIndex;switch(r){case`materials`:if(!t.material){V(`PropertyBinding: Can not bind to material as node does not have a material.`,this);return}if(!t.material.materials){V(`PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.`,this);return}t=t.material.materials;break;case`bones`:if(!t.skeleton){V(`PropertyBinding: Can not bind to bones as node does not have a skeleton.`,this);return}t=t.skeleton.bones;for(let n=0;n<t.length;n++)if(t[n].name===e){e=n;break}break;case`map`:if(`map`in t){t=t.map;break}if(!t.material){V(`PropertyBinding: Can not bind to material as node does not have a material.`,this);return}if(!t.material.map){V(`PropertyBinding: Can not bind to material.map as node.material does not have a map.`,this);return}t=t.material.map;break;default:if(t[r]===void 0){V(`PropertyBinding: Can not bind to objectName of node undefined.`,this);return}t=t[r]}if(e!==void 0){if(t[e]===void 0){V(`PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.`,this,t);return}t=t[e]}}let o=t[i];if(o===void 0){let e=n.nodeName;V(`PropertyBinding: Trying to update property for track: `+e+`.`+i+` but it wasn't found.`,t);return}let s=this.Versioning.None;this.targetObject=t,t.isMaterial===!0?s=this.Versioning.NeedsUpdate:t.isObject3D===!0&&(s=this.Versioning.MatrixWorldNeedsUpdate);let c=this.BindingType.Direct;if(a!==void 0){if(i===`morphTargetInfluences`){if(!t.geometry){V(`PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.`,this);return}if(!t.geometry.morphAttributes){V(`PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.`,this);return}t.morphTargetDictionary[a]!==void 0&&(a=t.morphTargetDictionary[a])}c=this.BindingType.ArrayElement,this.resolvedProperty=o,this.propertyIndex=a}else o.fromArray!==void 0&&o.toArray!==void 0?(c=this.BindingType.HasFromToArray,this.resolvedProperty=o):Array.isArray(o)?(c=this.BindingType.EntireArray,this.resolvedProperty=o):this.propertyName=i;this.getValue=this.GetterByBindingType[c],this.setValue=this.SetterByBindingTypeAndVersioning[c][s]}unbind(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}};gd.Composite=hd,gd.prototype.BindingType={Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},gd.prototype.Versioning={None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},gd.prototype.GetterByBindingType=[gd.prototype._getValue_direct,gd.prototype._getValue_array,gd.prototype._getValue_arrayElement,gd.prototype._getValue_toArray],gd.prototype.SetterByBindingTypeAndVersioning=[[gd.prototype._setValue_direct,gd.prototype._setValue_direct_setNeedsUpdate,gd.prototype._setValue_direct_setMatrixWorldNeedsUpdate],[gd.prototype._setValue_array,gd.prototype._setValue_array_setNeedsUpdate,gd.prototype._setValue_array_setMatrixWorldNeedsUpdate],[gd.prototype._setValue_arrayElement,gd.prototype._setValue_arrayElement_setNeedsUpdate,gd.prototype._setValue_arrayElement_setMatrixWorldNeedsUpdate],[gd.prototype._setValue_fromArray,gd.prototype._setValue_fromArray_setNeedsUpdate,gd.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate]];var _d=new ms,vd=class{constructor(e,t,n=0,r=1/0){this.ray=new tl(e,t),this.near=n,this.far=r,this.camera=null,this.layers=new Ts,this.params={Mesh:{},Line:{threshold:1},LOD:{},Points:{threshold:1},Sprite:{}}}set(e,t){this.ray.set(e,t)}setFromCamera(e,t){t.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(t.matrixWorld),this.ray.direction.set(e.x,e.y,.5).unproject(t).sub(this.ray.origin).normalize(),this.camera=t):t.isOrthographicCamera?(this.ray.origin.set(e.x,e.y,t.projectionMatrix.elements[14]).unproject(t),this.ray.direction.set(0,0,-1).transformDirection(t.matrixWorld),this.camera=t):V(`Raycaster: Unsupported camera type: `+t.type)}setFromXRController(e){return _d.identity().extractRotation(e.matrixWorld),this.ray.origin.setFromMatrixPosition(e.matrixWorld),this.ray.direction.set(0,0,-1).applyMatrix4(_d),this}intersectObject(e,t=!0,n=[]){return bd(e,this,n,t),n.sort(yd),n}intersectObjects(e,t=!0,n=[]){for(let r=0,i=e.length;r<i;r++)bd(e[r],this,n,t);return n.sort(yd),n}};function yd(e,t){return e.distance-t.distance}function bd(e,t,n,r){let i=!0;if(e.layers.test(t.layers)&&e.raycast(t,n)===!1&&(i=!1),i===!0&&r===!0){let r=e.children;for(let e=0,i=r.length;e<i;e++)bd(r[e],t,n,!0)}}var xd=class{constructor(e=1,t=0,n=0){this.radius=e,this.phi=t,this.theta=n}set(e,t,n){return this.radius=e,this.phi=t,this.theta=n,this}copy(e){return this.radius=e.radius,this.phi=e.phi,this.theta=e.theta,this}makeSafe(){let e=1e-6;return this.phi=H(this.phi,e,Math.PI-e),this}setFromVector3(e){return this.setFromCartesianCoords(e.x,e.y,e.z)}setFromCartesianCoords(e,t,n){return this.radius=Math.sqrt(e*e+t*t+n*n),this.radius===0?(this.theta=0,this.phi=0):(this.theta=Math.atan2(e,n),this.phi=Math.acos(H(t/this.radius,-1,1))),this}clone(){return new this.constructor().copy(this)}};(class{static{this.prototype.isMatrix2=!0}constructor(e,t,n,r){this.elements=[1,0,0,1],e!==void 0&&this.set(e,t,n,r)}identity(){return this.set(1,0,0,1),this}fromArray(e,t=0){for(let n=0;n<4;n++)this.elements[n]=e[n+t];return this}set(e,t,n,r){let i=this.elements;return i[0]=e,i[2]=t,i[1]=n,i[3]=r,this}});var Sd=class extends vo{constructor(e,t=null){super(),this.object=e,this.domElement=t,this.enabled=!0,this.state=-1,this.keys={},this.mouseButtons={LEFT:null,MIDDLE:null,RIGHT:null},this.touches={ONE:null,TWO:null}}connect(e){this.domElement!==null&&this.disconnect(),this.domElement=e}disconnect(){}dispose(){}update(){}};function Cd(e,t,n,r){let i=wd(r);switch(n){case $i:return e*t;case ia:return e*t/i.components*i.byteLength;case aa:return e*t/i.components*i.byteLength;case oa:return e*t*2/i.components*i.byteLength;case sa:return e*t*2/i.components*i.byteLength;case ea:return e*t*3/i.components*i.byteLength;case ta:return e*t*4/i.components*i.byteLength;case ca:return e*t*4/i.components*i.byteLength;case la:case ua:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*8;case da:case fa:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*16;case ma:case ga:return Math.max(e,16)*Math.max(t,8)/4;case pa:case ha:return Math.max(e,8)*Math.max(t,8)/2;case _a:case va:case ba:case xa:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*8;case ya:case Sa:case Ca:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*16;case wa:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*16;case Ta:return Math.floor((e+4)/5)*Math.floor((t+3)/4)*16;case Ea:return Math.floor((e+4)/5)*Math.floor((t+4)/5)*16;case Da:return Math.floor((e+5)/6)*Math.floor((t+4)/5)*16;case Oa:return Math.floor((e+5)/6)*Math.floor((t+5)/6)*16;case ka:return Math.floor((e+7)/8)*Math.floor((t+4)/5)*16;case Aa:return Math.floor((e+7)/8)*Math.floor((t+5)/6)*16;case ja:return Math.floor((e+7)/8)*Math.floor((t+7)/8)*16;case Ma:return Math.floor((e+9)/10)*Math.floor((t+4)/5)*16;case Na:return Math.floor((e+9)/10)*Math.floor((t+5)/6)*16;case Pa:return Math.floor((e+9)/10)*Math.floor((t+7)/8)*16;case Fa:return Math.floor((e+9)/10)*Math.floor((t+9)/10)*16;case Ia:return Math.floor((e+11)/12)*Math.floor((t+9)/10)*16;case La:return Math.floor((e+11)/12)*Math.floor((t+11)/12)*16;case Ra:case za:case Ba:return Math.ceil(e/4)*Math.ceil(t/4)*16;case Va:case Ha:return Math.ceil(e/4)*Math.ceil(t/4)*8;case Ua:case Wa:return Math.ceil(e/4)*Math.ceil(t/4)*16}throw Error(`Unable to determine texture byte length for ${n} format.`)}function wd(e){switch(e){case Bi:case Vi:return{byteLength:1,components:1};case Ui:case Hi:case qi:return{byteLength:2,components:1};case Ji:case Yi:return{byteLength:2,components:4};case Gi:case Wi:case Ki:return{byteLength:4,components:1};case Zi:case Qi:return{byteLength:4,components:3}}throw Error(`THREE.TextureUtils: Unknown texture type ${e}.`)}typeof __THREE_DEVTOOLS__<`u`&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent(`register`,{detail:{revision:`187`}})),typeof window<`u`&&(window.__THREE__?B(`WARNING: Multiple instances of Three.js being imported.`):window.__THREE__=`187`);function Td(){let e=null,t=!1,n=null,r=null;function i(t,a){r=e.requestAnimationFrame(i),n(t,a)}return{start:function(){t!==!0&&n!==null&&e!==null&&(r=e.requestAnimationFrame(i),t=!0)},stop:function(){e!==null&&e.cancelAnimationFrame(r),t=!1},setAnimationLoop:function(e){n=e},setContext:function(t){e=t}}}function Ed(e){let t=new WeakMap;function n(t,n){let r=t.array,i=t.usage,a=r.byteLength,o=e.createBuffer();e.bindBuffer(n,o),e.bufferData(n,r,i),t.onUploadCallback();let s;if(r instanceof Float32Array)s=e.FLOAT;else if(typeof Float16Array<`u`&&r instanceof Float16Array)s=e.HALF_FLOAT;else if(r instanceof Uint16Array)s=t.isFloat16BufferAttribute?e.HALF_FLOAT:e.UNSIGNED_SHORT;else if(r instanceof Int16Array)s=e.SHORT;else if(r instanceof Uint32Array)s=e.UNSIGNED_INT;else if(r instanceof Int32Array)s=e.INT;else if(r instanceof Int8Array)s=e.BYTE;else if(r instanceof Uint8Array)s=e.UNSIGNED_BYTE;else if(r instanceof Uint8ClampedArray)s=e.UNSIGNED_BYTE;else throw Error(`THREE.WebGLAttributes: Unsupported buffer data format: `+r);return{buffer:o,type:s,bytesPerElement:r.BYTES_PER_ELEMENT,version:t.version,size:a}}function r(t,n,r){let i=n.array,a=n.updateRanges;if(e.bindBuffer(r,t),a.length===0)e.bufferSubData(r,0,i);else{a.sort((e,t)=>e.start-t.start);let t=0;for(let e=1;e<a.length;e++){let n=a[t],r=a[e];r.start<=n.start+n.count+1?n.count=Math.max(n.count,r.start+r.count-n.start):(++t,a[t]=r)}a.length=t+1;for(let t=0,n=a.length;t<n;t++){let n=a[t];e.bufferSubData(r,n.start*i.BYTES_PER_ELEMENT,i,n.start,n.count)}n.clearUpdateRanges()}n.onUploadCallback()}function i(e){return e.isInterleavedBufferAttribute&&(e=e.data),t.get(e)}function a(n){n.isInterleavedBufferAttribute&&(n=n.data);let r=t.get(n);r&&(e.deleteBuffer(r.buffer),t.delete(n))}function o(e,i){if(e.isInterleavedBufferAttribute&&(e=e.data),e.isGLBufferAttribute){let n=t.get(e);(!n||n.version<e.version)&&t.set(e,{buffer:e.buffer,type:e.type,bytesPerElement:e.elementSize,version:e.version});return}let a=t.get(e);if(a===void 0)t.set(e,n(e,i));else if(a.version<e.version){if(a.size!==e.array.byteLength)throw Error(`THREE.WebGLAttributes: The size of the buffer attribute's array buffer does not match the original size. Resizing buffer attributes is not supported.`);r(a.buffer,e,i),a.version=e.version}}return{get:i,remove:a,update:o}}var J={alphahash_fragment:`#ifdef USE_ALPHAHASH
570 if ( diffuseColor.a < getAlphaHashThreshold( vPosition ) ) discard;
571#endif`,alphahash_pars_fragment:`#ifdef USE_ALPHAHASH
572 const float ALPHA_HASH_SCALE = 0.05;
573 float hash2D( vec2 value ) {
574 return fract( 1.0e4 * sin( 17.0 * value.x + 0.1 * value.y ) * ( 0.1 + abs( sin( 13.0 * value.y + value.x ) ) ) );
575 }
576 float hash3D( vec3 value ) {
577 return hash2D( vec2( hash2D( value.xy ), value.z ) );
578 }
579 float getAlphaHashThreshold( vec3 position ) {
580 float maxDeriv = max(
581 length( dFdx( position.xyz ) ),
582 length( dFdy( position.xyz ) )
583 );
584 float pixScale = 1.0 / ( ALPHA_HASH_SCALE * maxDeriv );
585 vec2 pixScales = vec2(
586 exp2( floor( log2( pixScale ) ) ),
587 exp2( ceil( log2( pixScale ) ) )
588 );
589 vec2 alpha = vec2(
590 hash3D( floor( pixScales.x * position.xyz ) ),
591 hash3D( floor( pixScales.y * position.xyz ) )
592 );
593 float lerpFactor = fract( log2( pixScale ) );
594 float x = ( 1.0 - lerpFactor ) * alpha.x + lerpFactor * alpha.y;
595 float a = min( lerpFactor, 1.0 - lerpFactor );
596 vec3 cases = vec3(
597 x * x / ( 2.0 * a * ( 1.0 - a ) ),
598 ( x - 0.5 * a ) / ( 1.0 - a ),
599 1.0 - ( ( 1.0 - x ) * ( 1.0 - x ) / ( 2.0 * a * ( 1.0 - a ) ) )
600 );
601 float threshold = ( x < ( 1.0 - a ) )
602 ? ( ( x < a ) ? cases.x : cases.y )
603 : cases.z;
604 return clamp( threshold , 1.0e-6, 1.0 );
605 }
606#endif`,alphamap_fragment:`#ifdef USE_ALPHAMAP
607 diffuseColor.a *= texture2D( alphaMap, vAlphaMapUv ).g;
608#endif`,alphamap_pars_fragment:`#ifdef USE_ALPHAMAP
609 uniform sampler2D alphaMap;
610#endif`,alphatest_fragment:`#ifdef USE_ALPHATEST
611 #ifdef ALPHA_TO_COVERAGE
612 diffuseColor.a = smoothstep( alphaTest, alphaTest + fwidth( diffuseColor.a ), diffuseColor.a );
613 if ( diffuseColor.a == 0.0 ) discard;
614 #else
615 if ( diffuseColor.a < alphaTest ) discard;
616 #endif
617#endif`,alphatest_pars_fragment:`#ifdef USE_ALPHATEST
618 uniform float alphaTest;
619#endif`,aomap_fragment:`#ifdef USE_AOMAP
620 float ambientOcclusion = ( texture2D( aoMap, vAoMapUv ).r - 1.0 ) * aoMapIntensity + 1.0;
621 reflectedLight.indirectDiffuse *= ambientOcclusion;
622 #if defined( USE_CLEARCOAT )
623 clearcoatSpecularIndirect *= ambientOcclusion;
624 #endif
625 #if defined( USE_SHEEN )
626 sheenSpecularIndirect *= ambientOcclusion;
627 #endif
628 #if defined( USE_ENVMAP ) && defined( STANDARD )
629 float dotNV = saturate( dot( geometryNormal, geometryViewDir ) );
630 reflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness );
631 #endif
632#endif`,aomap_pars_fragment:`#ifdef USE_AOMAP
633 uniform sampler2D aoMap;
634 uniform float aoMapIntensity;
635#endif`,batching_pars_vertex:`#ifdef USE_BATCHING
636 #if ! defined( GL_ANGLE_multi_draw )
637 #define gl_DrawID _gl_DrawID
638 uniform int _gl_DrawID;
639 #endif
640 uniform highp sampler2D batchingTexture;
641 uniform highp usampler2D batchingIdTexture;
642 mat4 getBatchingMatrix( const in float i ) {
643 int size = textureSize( batchingTexture, 0 ).x;
644 int j = int( i ) * 4;
645 int x = j % size;
646 int y = j / size;
647 vec4 v1 = texelFetch( batchingTexture, ivec2( x, y ), 0 );
648 vec4 v2 = texelFetch( batchingTexture, ivec2( x + 1, y ), 0 );
649 vec4 v3 = texelFetch( batchingTexture, ivec2( x + 2, y ), 0 );
650 vec4 v4 = texelFetch( batchingTexture, ivec2( x + 3, y ), 0 );
651 return mat4( v1, v2, v3, v4 );
652 }
653 float getIndirectIndex( const in int i ) {
654 int size = textureSize( batchingIdTexture, 0 ).x;
655 int x = i % size;
656 int y = i / size;
657 return float( texelFetch( batchingIdTexture, ivec2( x, y ), 0 ).r );
658 }
659#endif
660#ifdef USE_BATCHING_COLOR
661 uniform sampler2D batchingColorTexture;
662 vec4 getBatchingColor( const in float i ) {
663 int size = textureSize( batchingColorTexture, 0 ).x;
664 int j = int( i );
665 int x = j % size;
666 int y = j / size;
667 return texelFetch( batchingColorTexture, ivec2( x, y ), 0 );
668 }
669#endif`,batching_vertex:`#ifdef USE_BATCHING
670 mat4 batchingMatrix = getBatchingMatrix( getIndirectIndex( gl_DrawID ) );
671#endif`,begin_vertex:`vec3 transformed = vec3( position );
672#ifdef USE_ALPHAHASH
673 vPosition = vec3( position );
674#endif`,beginnormal_vertex:`vec3 objectNormal = vec3( normal );
675#ifdef USE_TANGENT
676 vec3 objectTangent = vec3( tangent.xyz );
677#endif`,bsdfs:`float G_BlinnPhong_Implicit( ) {
678 return 0.25;
679}
680float D_BlinnPhong( const in float shininess, const in float dotNH ) {
681 return RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );
682}
683vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) {
684 vec3 halfDir = normalize( lightDir + viewDir );
685 float dotNH = saturate( dot( normal, halfDir ) );
686 float dotVH = saturate( dot( viewDir, halfDir ) );
687 vec3 F = F_Schlick( specularColor, 1.0, dotVH );
688 float G = G_BlinnPhong_Implicit( );
689 float D = D_BlinnPhong( shininess, dotNH );
690 return F * ( G * D );
691} // validated`,iridescence_fragment:`#ifdef USE_IRIDESCENCE
692 const mat3 XYZ_TO_REC709 = mat3(
693 3.2404542, -0.9692660, 0.0556434,
694 -1.5371385, 1.8760108, -0.2040259,
695 -0.4985314, 0.0415560, 1.0572252
696 );
697 vec3 Fresnel0ToIor( vec3 fresnel0 ) {
698 vec3 sqrtF0 = sqrt( fresnel0 );
699 return ( vec3( 1.0 ) + sqrtF0 ) / ( vec3( 1.0 ) - sqrtF0 );
700 }
701 vec3 IorToFresnel0( vec3 transmittedIor, float incidentIor ) {
702 return pow2( ( transmittedIor - vec3( incidentIor ) ) / ( transmittedIor + vec3( incidentIor ) ) );
703 }
704 float IorToFresnel0( float transmittedIor, float incidentIor ) {
705 return pow2( ( transmittedIor - incidentIor ) / ( transmittedIor + incidentIor ));
706 }
707 vec3 evalSensitivity( float OPD, vec3 shift ) {
708 float phase = 2.0 * PI * OPD * 1.0e-9;
709 vec3 val = vec3( 5.4856e-13, 4.4201e-13, 5.2481e-13 );
710 vec3 pos = vec3( 1.6810e+06, 1.7953e+06, 2.2084e+06 );
711 vec3 var = vec3( 4.3278e+09, 9.3046e+09, 6.6121e+09 );
712 vec3 xyz = val * sqrt( 2.0 * PI * var ) * cos( pos * phase + shift ) * exp( - pow2( phase ) * var );
713 xyz.x += 9.7470e-14 * sqrt( 2.0 * PI * 4.5282e+09 ) * cos( 2.2399e+06 * phase + shift[ 0 ] ) * exp( - 4.5282e+09 * pow2( phase ) );
714 xyz /= 1.0685e-7;
715 vec3 rgb = XYZ_TO_REC709 * xyz;
716 return rgb;
717 }
718 vec3 evalIridescence( float outsideIOR, float eta2, float cosTheta1, float thinFilmThickness, vec3 baseF0 ) {
719 vec3 I;
720 float iridescenceIOR = mix( outsideIOR, eta2, smoothstep( 0.0, 0.03, thinFilmThickness ) );
721 float sinTheta2Sq = pow2( outsideIOR / iridescenceIOR ) * ( 1.0 - pow2( cosTheta1 ) );
722 float cosTheta2Sq = 1.0 - sinTheta2Sq;
723 if ( cosTheta2Sq < 0.0 ) {
724 return vec3( 1.0 );
725 }
726 float cosTheta2 = sqrt( cosTheta2Sq );
727 float R0 = IorToFresnel0( iridescenceIOR, outsideIOR );
728 float R12 = F_Schlick( R0, 1.0, cosTheta1 );
729 float T121 = 1.0 - R12;
730 float phi12 = 0.0;
731 if ( iridescenceIOR < outsideIOR ) phi12 = PI;
732 float phi21 = PI - phi12;
733 vec3 baseIOR = Fresnel0ToIor( clamp( baseF0, 0.0, 0.9999 ) ); vec3 R1 = IorToFresnel0( baseIOR, iridescenceIOR );
734 vec3 R23 = F_Schlick( R1, 1.0, cosTheta2 );
735 vec3 phi23 = vec3( 0.0 );
736 if ( baseIOR[ 0 ] < iridescenceIOR ) phi23[ 0 ] = PI;
737 if ( baseIOR[ 1 ] < iridescenceIOR ) phi23[ 1 ] = PI;
738 if ( baseIOR[ 2 ] < iridescenceIOR ) phi23[ 2 ] = PI;
739 float OPD = 2.0 * iridescenceIOR * thinFilmThickness * cosTheta2;
740 vec3 phi = vec3( phi21 ) + phi23;
741 vec3 R123 = clamp( R12 * R23, 1e-5, 0.9999 );
742 vec3 r123 = sqrt( R123 );
743 vec3 Rs = pow2( T121 ) * R23 / ( vec3( 1.0 ) - R123 );
744 vec3 C0 = R12 + Rs;
745 I = C0;
746 vec3 Cm = Rs - T121;
747 for ( int m = 1; m <= 2; ++ m ) {
748 Cm *= r123;
749 vec3 Sm = 2.0 * evalSensitivity( float( m ) * OPD, float( m ) * phi );
750 I += Cm * Sm;
751 }
752 return max( I, vec3( 0.0 ) );
753 }
754#endif`,bumpmap_pars_fragment:`#ifdef USE_BUMPMAP
755 uniform sampler2D bumpMap;
756 uniform float bumpScale;
757 vec2 dHdxy_fwd() {
758 vec2 dSTdx = dFdx( vBumpMapUv );
759 vec2 dSTdy = dFdy( vBumpMapUv );
760 float Hll = bumpScale * texture2D( bumpMap, vBumpMapUv ).x;
761 float dBx = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdx ).x - Hll;
762 float dBy = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdy ).x - Hll;
763 return vec2( dBx, dBy );
764 }
765 vec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {
766 vec3 vSigmaX = normalize( dFdx( surf_pos.xyz ) );
767 vec3 vSigmaY = normalize( dFdy( surf_pos.xyz ) );
768 vec3 vN = surf_norm;
769 vec3 R1 = cross( vSigmaY, vN );
770 vec3 R2 = cross( vN, vSigmaX );
771 float fDet = dot( vSigmaX, R1 ) * faceDirection;
772 vec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );
773 return normalize( abs( fDet ) * surf_norm - vGrad );
774 }
775#endif`,clipping_planes_fragment:`#if NUM_CLIPPING_PLANES > 0
776 vec4 plane;
777 #ifdef ALPHA_TO_COVERAGE
778 float distanceToPlane, distanceGradient;
779 float clipOpacity = 1.0;
780 #pragma unroll_loop_start
781 for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {
782 plane = clippingPlanes[ i ];
783 distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;
784 distanceGradient = fwidth( distanceToPlane ) / 2.0;
785 clipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane );
786 if ( clipOpacity == 0.0 ) discard;
787 }
788 #pragma unroll_loop_end
789 #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES
790 float unionClipOpacity = 1.0;
791 #pragma unroll_loop_start
792 for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {
793 plane = clippingPlanes[ i ];
794 distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;
795 distanceGradient = fwidth( distanceToPlane ) / 2.0;
796 unionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane );
797 }
798 #pragma unroll_loop_end
799 clipOpacity *= 1.0 - unionClipOpacity;
800 #endif
801 diffuseColor.a *= clipOpacity;
802 if ( diffuseColor.a == 0.0 ) discard;
803 #else
804 #pragma unroll_loop_start
805 for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {
806 plane = clippingPlanes[ i ];
807 if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;
808 }
809 #pragma unroll_loop_end
810 #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES
811 bool clipped = true;
812 #pragma unroll_loop_start
813 for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {
814 plane = clippingPlanes[ i ];
815 clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;
816 }
817 #pragma unroll_loop_end
818 if ( clipped ) discard;
819 #endif
820 #endif
821#endif`,clipping_planes_pars_fragment:`#if NUM_CLIPPING_PLANES > 0
822 varying vec3 vClipPosition;
823 uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];
824#endif`,clipping_planes_pars_vertex:`#if NUM_CLIPPING_PLANES > 0
825 varying vec3 vClipPosition;
826#endif`,clipping_planes_vertex:`#if NUM_CLIPPING_PLANES > 0
827 vClipPosition = - mvPosition.xyz;
828#endif`,color_fragment:`#if defined( USE_COLOR ) || defined( USE_COLOR_ALPHA )
829 diffuseColor *= vColor;
830#endif`,color_pars_fragment:`#if defined( USE_COLOR ) || defined( USE_COLOR_ALPHA )
831 varying vec4 vColor;
832#endif`,color_pars_vertex:`#if defined( USE_COLOR ) || defined( USE_COLOR_ALPHA ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR )
833 varying vec4 vColor;
834#endif`,color_vertex:`#if defined( USE_COLOR ) || defined( USE_COLOR_ALPHA ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR )
835 vColor = vec4( 1.0 );
836#endif
837#ifdef USE_COLOR_ALPHA
838 vColor *= color;
839#elif defined( USE_COLOR )
840 vColor.rgb *= color;
841#endif
842#ifdef USE_INSTANCING_COLOR
843 vColor.rgb *= instanceColor.rgb;
844#endif
845#ifdef USE_BATCHING_COLOR
846 vColor *= getBatchingColor( getIndirectIndex( gl_DrawID ) );
847#endif`,common:`#define PI 3.141592653589793
848#define PI2 6.283185307179586
849#define PI_HALF 1.5707963267948966
850#define RECIPROCAL_PI 0.3183098861837907
851#define RECIPROCAL_PI2 0.15915494309189535
852#define EPSILON 1e-6
853#ifndef saturate
854#define saturate( a ) clamp( a, 0.0, 1.0 )
855#endif
856#define whiteComplement( a ) ( 1.0 - saturate( a ) )
857float pow2( const in float x ) { return x*x; }
858vec3 pow2( const in vec3 x ) { return x*x; }
859float pow3( const in float x ) { return x*x*x; }
860float pow4( const in float x ) { float x2 = x*x; return x2*x2; }
861float max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }
862float average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }
863highp float rand( const in vec2 uv ) {
864 const highp float a = 12.9898, b = 78.233, c = 43758.5453;
865 highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );
866 return fract( sin( sn ) * c );
867}
868#ifdef HIGH_PRECISION
869 float precisionSafeLength( vec3 v ) { return length( v ); }
870#else
871 float precisionSafeLength( vec3 v ) {
872 float maxComponent = max3( abs( v ) );
873 return length( v / maxComponent ) * maxComponent;
874 }
875#endif
876struct IncidentLight {
877 vec3 color;
878 vec3 direction;
879 bool visible;
880};
881struct ReflectedLight {
882 vec3 directDiffuse;
883 vec3 directSpecular;
884 vec3 indirectDiffuse;
885 vec3 indirectSpecular;
886};
887#ifdef USE_ALPHAHASH
888 varying vec3 vPosition;
889#endif
890vec3 transformDirection( in vec3 dir, in mat4 matrix ) {
891 return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );
892}
893#define inverseTransformDirection transformDirectionByInverseViewMatrix
894vec3 transformNormalByInverseViewMatrix( in vec3 normal, in mat4 viewMatrix ) {
895 return normalize( ( vec4( normal, 0.0 ) * viewMatrix ).xyz );
896}
897vec3 transformDirectionByInverseViewMatrix( in vec3 dir, in mat4 viewMatrix ) {
898 return normalize( ( vec4( dir, 0.0 ) * viewMatrix ).xyz );
899}
900bool isPerspectiveMatrix( mat4 m ) {
901 return m[ 2 ][ 3 ] == - 1.0;
902}
903vec2 equirectUv( in vec3 dir ) {
904 float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;
905 float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;
906 return vec2( u, v );
907}
908vec3 BRDF_Lambert( const in vec3 diffuseColor ) {
909 return RECIPROCAL_PI * diffuseColor;
910}
911vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {
912 float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );
913 return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );
914}
915float F_Schlick( const in float f0, const in float f90, const in float dotVH ) {
916 float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );
917 return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );
918} // validated`,defaultnormal_vertex:`vec3 transformedNormal = objectNormal;
919#ifdef USE_TANGENT
920 vec3 transformedTangent = objectTangent;
921#endif
922#ifdef USE_BATCHING
923 mat3 bm = mat3( batchingMatrix );
924 transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) );
925 transformedNormal = bm * transformedNormal;
926 #ifdef USE_TANGENT
927 transformedTangent = bm * transformedTangent;
928 #endif
929#endif
930#ifdef USE_INSTANCING
931 mat3 im = mat3( instanceMatrix );
932 transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) );
933 transformedNormal = im * transformedNormal;
934 #ifdef USE_TANGENT
935 transformedTangent = im * transformedTangent;
936 #endif
937#endif
938transformedNormal = normalMatrix * transformedNormal;
939#ifdef FLIP_SIDED
940 transformedNormal = - transformedNormal;
941#endif
942#ifdef USE_TANGENT
943 transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz;
944#endif`,displacementmap_pars_vertex:`#ifdef USE_DISPLACEMENTMAP
945 uniform sampler2D displacementMap;
946 uniform float displacementScale;
947 uniform float displacementBias;
948#endif`,displacementmap_vertex:`#ifdef USE_DISPLACEMENTMAP
949 transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );
950#endif`,emissivemap_fragment:`#ifdef USE_EMISSIVEMAP
951 vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );
952 #ifdef DECODE_VIDEO_TEXTURE_EMISSIVE
953 emissiveColor = sRGBTransferEOTF( emissiveColor );
954 #endif
955 totalEmissiveRadiance *= emissiveColor.rgb;
956#endif`,emissivemap_pars_fragment:`#ifdef USE_EMISSIVEMAP
957 uniform sampler2D emissiveMap;
958#endif`,colorspace_fragment:`gl_FragColor = linearToOutputTexel( gl_FragColor );`,colorspace_pars_fragment:`vec4 LinearTransferOETF( in vec4 value ) {
959 return value;
960}
961vec4 sRGBTransferEOTF( in vec4 value ) {
962 return vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a );
963}
964vec4 sRGBTransferOETF( in vec4 value ) {
965 return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );
966}`,envmap_fragment:`#ifdef USE_ENVMAP
967 #ifdef ENV_WORLDPOS
968 vec3 cameraToFrag;
969 if ( isOrthographic ) {
970 cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );
971 } else {
972 cameraToFrag = normalize( vWorldPosition - cameraPosition );
973 }
974 vec3 worldNormal = transformNormalByInverseViewMatrix( normal, viewMatrix );
975 #ifdef ENVMAP_MODE_REFLECTION
976 vec3 reflectVec = reflect( cameraToFrag, worldNormal );
977 #else
978 vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );
979 #endif
980 #else
981 vec3 reflectVec = vReflect;
982 #endif
983 #ifdef ENVMAP_TYPE_CUBE
984 vec4 envColor = textureCube( envMap, envMapRotation * reflectVec );
985 #ifdef ENVMAP_BLENDING_MULTIPLY
986 outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );
987 #elif defined( ENVMAP_BLENDING_MIX )
988 outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );
989 #elif defined( ENVMAP_BLENDING_ADD )
990 outgoingLight += envColor.xyz * specularStrength * reflectivity;
991 #endif
992 #endif
993#endif`,envmap_common_pars_fragment:`#ifdef USE_ENVMAP
994 uniform float envMapIntensity;
995 uniform mat3 envMapRotation;
996 uniform samplerCube envMap;
997 #ifdef ENVMAP_TYPE_PMREM
998 float roughnessToMip( const in float roughness ) {
999 float r = clamp( roughness, 0.0, 1.0 );
1000 return ENVMAP_MAX_LOD * r * ( 2.0 - r );
1001 }
1002 #endif
1003#endif`,envmap_pars_fragment:`#ifdef USE_ENVMAP
1004 uniform float reflectivity;
1005 #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )
1006 #define ENV_WORLDPOS
1007 #endif
1008 #ifdef ENV_WORLDPOS
1009 varying vec3 vWorldPosition;
1010 uniform float refractionRatio;
1011 #else
1012 varying vec3 vReflect;
1013 #endif
1014#endif`,envmap_pars_vertex:`#ifdef USE_ENVMAP
1015 #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )
1016 #define ENV_WORLDPOS
1017 #endif
1018 #ifdef ENV_WORLDPOS
1019
1020 varying vec3 vWorldPosition;
1021 #else
1022 varying vec3 vReflect;
1023 uniform float refractionRatio;
1024 #endif
1025#endif`,envmap_physical_pars_fragment:`#ifdef USE_ENVMAP
1026 vec3 getIBLIrradiance( const in vec3 normal ) {
1027 #ifdef ENVMAP_TYPE_PMREM
1028 vec3 worldNormal = transformNormalByInverseViewMatrix( normal, viewMatrix );
1029 vec4 envMapColor = textureLod( envMap, envMapRotation * worldNormal, ENVMAP_MAX_LOD );
1030 return PI * envMapColor.rgb * envMapIntensity;
1031 #else
1032 return vec3( 0.0 );
1033 #endif
1034 }
1035 vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {
1036 #ifdef ENVMAP_TYPE_PMREM
1037 vec3 reflectVec = reflect( - viewDir, normal );
1038 reflectVec = normalize( mix( reflectVec, normal, pow4( roughness ) ) );
1039 reflectVec = transformDirectionByInverseViewMatrix( reflectVec, viewMatrix );
1040 vec4 envMapColor = textureLod( envMap, envMapRotation * reflectVec, roughnessToMip( roughness ) );
1041 return envMapColor.rgb * envMapIntensity;
1042 #else
1043 return vec3( 0.0 );
1044 #endif
1045 }
1046 #ifdef USE_RETROREFLECTION
1047 vec3 getIBLRetroRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {
1048 #ifdef ENVMAP_TYPE_PMREM
1049 vec3 retroVec = normalize( mix( viewDir, normal, pow4( roughness ) ) );
1050 retroVec = transformDirectionByInverseViewMatrix( retroVec, viewMatrix );
1051 vec4 envMapColor = textureLod( envMap, envMapRotation * retroVec, roughnessToMip( roughness ) );
1052 return envMapColor.rgb * envMapIntensity;
1053 #else
1054 return vec3( 0.0 );
1055 #endif
1056 }
1057 #endif
1058 #ifdef USE_ANISOTROPY
1059 vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) {
1060 #ifdef ENVMAP_TYPE_PMREM
1061 vec3 bentNormal = cross( bitangent, viewDir );
1062 bentNormal = normalize( cross( bentNormal, bitangent ) );
1063 bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) );
1064 return getIBLRadiance( viewDir, bentNormal, roughness );
1065 #else
1066 return vec3( 0.0 );
1067 #endif
1068 }
1069 #ifdef USE_RETROREFLECTION
1070 vec3 getIBLAnisotropyRetroRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) {
1071 #ifdef ENVMAP_TYPE_PMREM
1072 vec3 bentNormal = cross( bitangent, viewDir );
1073 bentNormal = normalize( cross( bentNormal, bitangent ) );
1074 bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) );
1075 return getIBLRetroRadiance( viewDir, bentNormal, roughness );
1076 #else
1077 return vec3( 0.0 );
1078 #endif
1079 }
1080 #endif
1081 #endif
1082#endif`,envmap_vertex:`#ifdef USE_ENVMAP
1083 #ifdef ENV_WORLDPOS
1084 vWorldPosition = worldPosition.xyz;
1085 #else
1086 vec3 cameraToVertex;
1087 if ( isOrthographic ) {
1088 cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );
1089 } else {
1090 cameraToVertex = normalize( worldPosition.xyz - cameraPosition );
1091 }
1092 vec3 worldNormal = transformNormalByInverseViewMatrix( transformedNormal, viewMatrix );
1093 #ifdef ENVMAP_MODE_REFLECTION
1094 vReflect = reflect( cameraToVertex, worldNormal );
1095 #else
1096 vReflect = refract( cameraToVertex, worldNormal, refractionRatio );
1097 #endif
1098 #endif
1099#endif`,fog_vertex:`#ifdef USE_FOG
1100 vFogDepth = - mvPosition.z;
1101#endif`,fog_pars_vertex:`#ifdef USE_FOG
1102 varying float vFogDepth;
1103#endif`,fog_fragment:`#ifdef USE_FOG
1104 #ifdef FOG_EXP2
1105 float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );
1106 #else
1107 float fogFactor = smoothstep( fogNear, fogFar, vFogDepth );
1108 #endif
1109 gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );
1110#endif`,fog_pars_fragment:`#ifdef USE_FOG
1111 uniform vec3 fogColor;
1112 varying float vFogDepth;
1113 #ifdef FOG_EXP2
1114 uniform float fogDensity;
1115 #else
1116 uniform float fogNear;
1117 uniform float fogFar;
1118 #endif
1119#endif`,gradientmap_pars_fragment:`#ifdef USE_GRADIENTMAP
1120 uniform sampler2D gradientMap;
1121#endif
1122vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {
1123 float dotNL = dot( normal, lightDirection );
1124 vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );
1125 #ifdef USE_GRADIENTMAP
1126 return vec3( texture2D( gradientMap, coord ).r );
1127 #else
1128 vec2 fw = fwidth( coord ) * 0.5;
1129 return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );
1130 #endif
1131}`,lightmap_pars_fragment:`#ifdef USE_LIGHTMAP
1132 uniform sampler2D lightMap;
1133 uniform float lightMapIntensity;
1134#endif`,lights_lambert_fragment:`LambertMaterial material;
1135material.diffuseColor = diffuseColor.rgb;
1136material.specularStrength = specularStrength;`,lights_lambert_pars_fragment:`varying vec3 vViewPosition;
1137struct LambertMaterial {
1138 vec3 diffuseColor;
1139 float specularStrength;
1140};
1141void RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {
1142 float dotNL = saturate( dot( geometryNormal, directLight.direction ) );
1143 vec3 irradiance = dotNL * directLight.color;
1144 reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
1145}
1146void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {
1147 reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
1148}
1149#define RE_Direct RE_Direct_Lambert
1150#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,lights_pars_begin:`uniform bool receiveShadow;
1151uniform vec3 ambientLightColor;
1152#if defined( USE_LIGHT_PROBES )
1153 uniform vec3 lightProbe[ 9 ];
1154#endif
1155vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {
1156 float x = normal.x, y = normal.y, z = normal.z;
1157 vec3 result = shCoefficients[ 0 ] * 0.886227;
1158 result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;
1159 result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;
1160 result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;
1161 result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;
1162 result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;
1163 result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );
1164 result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;
1165 result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );
1166 return result;
1167}
1168vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {
1169 vec3 worldNormal = transformNormalByInverseViewMatrix( normal, viewMatrix );
1170 vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );
1171 return irradiance;
1172}
1173vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {
1174 vec3 irradiance = ambientLightColor;
1175 return irradiance;
1176}
1177float getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {
1178 float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );
1179 if ( cutoffDistance > 0.0 ) {
1180 distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );
1181 }
1182 return distanceFalloff;
1183}
1184float getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {
1185 return smoothstep( coneCosine, penumbraCosine, angleCosine );
1186}
1187#if NUM_SUN_LIGHTS > 0
1188 struct SunLight {
1189 vec3 direction;
1190 vec3 color;
1191 };
1192 uniform SunLight sunLights[ NUM_SUN_LIGHTS ];
1193 void getSunLightInfo( const in SunLight sunLight, out IncidentLight light ) {
1194 light.color = sunLight.color;
1195 light.direction = sunLight.direction;
1196 light.visible = true;
1197 }
1198#endif
1199#if NUM_DIR_LIGHTS > 0
1200 struct DirectionalLight {
1201 vec3 direction;
1202 vec3 color;
1203 };
1204 uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];
1205 void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) {
1206 light.color = directionalLight.color;
1207 light.direction = directionalLight.direction;
1208 light.visible = true;
1209 }
1210#endif
1211#if NUM_POINT_LIGHTS > 0
1212 struct PointLight {
1213 vec3 position;
1214 vec3 color;
1215 float distance;
1216 float decay;
1217 };
1218 uniform PointLight pointLights[ NUM_POINT_LIGHTS ];
1219 void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) {
1220 vec3 lVector = pointLight.position - geometryPosition;
1221 light.direction = normalize( lVector );
1222 float lightDistance = length( lVector );
1223 light.color = pointLight.color;
1224 light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );
1225 light.visible = ( light.color != vec3( 0.0 ) );
1226 }
1227#endif
1228#if NUM_SPOT_LIGHTS > 0
1229 struct SpotLight {
1230 vec3 position;
1231 vec3 direction;
1232 vec3 color;
1233 float distance;
1234 float decay;
1235 float coneCos;
1236 float penumbraCos;
1237 };
1238 uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];
1239 void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) {
1240 vec3 lVector = spotLight.position - geometryPosition;
1241 light.direction = normalize( lVector );
1242 float angleCos = dot( light.direction, spotLight.direction );
1243 float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );
1244 if ( spotAttenuation > 0.0 ) {
1245 float lightDistance = length( lVector );
1246 light.color = spotLight.color * spotAttenuation;
1247 light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );
1248 light.visible = ( light.color != vec3( 0.0 ) );
1249 } else {
1250 light.color = vec3( 0.0 );
1251 light.visible = false;
1252 }
1253 }
1254#endif
1255#if NUM_RECT_AREA_LIGHTS > 0
1256 struct RectAreaLight {
1257 vec3 color;
1258 vec3 position;
1259 vec3 halfWidth;
1260 vec3 halfHeight;
1261 };
1262 uniform sampler2D ltc_1; uniform sampler2D ltc_2;
1263 uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];
1264#endif
1265#if NUM_HEMI_LIGHTS > 0
1266 struct HemisphereLight {
1267 vec3 direction;
1268 vec3 skyColor;
1269 vec3 groundColor;
1270 };
1271 uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];
1272 vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {
1273 float dotNL = dot( normal, hemiLight.direction );
1274 float hemiDiffuseWeight = 0.5 * dotNL + 0.5;
1275 vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );
1276 return irradiance;
1277 }
1278#endif
1279#include <lightprobes_pars_fragment>`,lights_toon_fragment:`ToonMaterial material;
1280material.diffuseColor = diffuseColor.rgb;`,lights_toon_pars_fragment:`varying vec3 vViewPosition;
1281struct ToonMaterial {
1282 vec3 diffuseColor;
1283};
1284void RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {
1285 vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color;
1286 reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
1287}
1288void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {
1289 reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
1290}
1291#define RE_Direct RE_Direct_Toon
1292#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,lights_phong_fragment:`BlinnPhongMaterial material;
1293material.diffuseColor = diffuseColor.rgb;
1294material.specularColor = specular;
1295material.specularShininess = shininess;
1296material.specularStrength = specularStrength;`,lights_phong_pars_fragment:`varying vec3 vViewPosition;
1297struct BlinnPhongMaterial {
1298 vec3 diffuseColor;
1299 vec3 specularColor;
1300 float specularShininess;
1301 float specularStrength;
1302};
1303void RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {
1304 float dotNL = saturate( dot( geometryNormal, directLight.direction ) );
1305 vec3 irradiance = dotNL * directLight.color;
1306 reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
1307 reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength;
1308}
1309void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {
1310 reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
1311}
1312#define RE_Direct RE_Direct_BlinnPhong
1313#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,lights_physical_fragment:`PhysicalMaterial material;
1314material.diffuseColor = diffuseColor.rgb;
1315material.diffuseContribution = diffuseColor.rgb * ( 1.0 - metalnessFactor );
1316material.metalness = metalnessFactor;
1317vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) );
1318float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );
1319material.roughness = max( roughnessFactor, 0.045 );
1320material.roughness += geometryRoughness;
1321material.roughness = min( material.roughness, 1.0 );
1322#ifdef USE_DIFFUSE_ROUGHNESS
1323 float diffuseRoughnessFactor = diffuseRoughness;
1324 #ifdef USE_DIFFUSE_ROUGHNESSMAP
1325 diffuseRoughnessFactor *= texture2D( diffuseRoughnessMap, vDiffuseRoughnessMapUv ).r;
1326 #endif
1327 material.diffuseRoughness = saturate( diffuseRoughnessFactor );
1328#endif
1329#ifdef IOR
1330 material.ior = ior;
1331 #ifdef USE_SPECULAR
1332 float specularIntensityFactor = specularIntensity;
1333 vec3 specularColorFactor = specularColor;
1334 #ifdef USE_SPECULAR_COLORMAP
1335 specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;
1336 #endif
1337 #ifdef USE_SPECULAR_INTENSITYMAP
1338 specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;
1339 #endif
1340 material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );
1341 #else
1342 float specularIntensityFactor = 1.0;
1343 vec3 specularColorFactor = vec3( 1.0 );
1344 material.specularF90 = 1.0;
1345 #endif
1346 material.specularColor = min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor;
1347 material.specularColorBlended = mix( material.specularColor, diffuseColor.rgb, metalnessFactor );
1348#else
1349 material.specularColor = vec3( 0.04 );
1350 material.specularColorBlended = mix( material.specularColor, diffuseColor.rgb, metalnessFactor );
1351 material.specularF90 = 1.0;
1352#endif
1353#ifdef USE_CLEARCOAT
1354 material.clearcoat = clearcoat;
1355 material.clearcoatRoughness = clearcoatRoughness;
1356 material.clearcoatF0 = vec3( 0.04 );
1357 material.clearcoatF90 = 1.0;
1358 #ifdef USE_CLEARCOATMAP
1359 material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;
1360 #endif
1361 #ifdef USE_CLEARCOAT_ROUGHNESSMAP
1362 material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;
1363 #endif
1364 material.clearcoat = saturate( material.clearcoat ); material.clearcoatRoughness = max( material.clearcoatRoughness, 0.045 );
1365 material.clearcoatRoughness += geometryRoughness;
1366 material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );
1367#endif
1368#ifdef USE_DISPERSION
1369 material.dispersion = dispersion;
1370#endif
1371#ifdef USE_RETROREFLECTION
1372 material.retroreflectivity = retroreflectivity;
1373#endif
1374#ifdef USE_IRIDESCENCE
1375 material.iridescence = iridescence;
1376 material.iridescenceIOR = iridescenceIOR;
1377 #ifdef USE_IRIDESCENCEMAP
1378 material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;
1379 #endif
1380 #ifdef USE_IRIDESCENCE_THICKNESSMAP
1381 material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;
1382 #else
1383 material.iridescenceThickness = iridescenceThicknessMaximum;
1384 #endif
1385#endif
1386#ifdef USE_SHEEN
1387 material.sheenColor = sheenColor;
1388 #ifdef USE_SHEEN_COLORMAP
1389 material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;
1390 #endif
1391 material.sheenRoughness = clamp( sheenRoughness, 0.0001, 1.0 );
1392 #ifdef USE_SHEEN_ROUGHNESSMAP
1393 material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;
1394 #endif
1395#endif
1396#ifdef USE_ANISOTROPY
1397 #ifdef USE_ANISOTROPYMAP
1398 mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x );
1399 vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb;
1400 vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b;
1401 #else
1402 vec2 anisotropyV = anisotropyVector;
1403 #endif
1404 material.anisotropy = length( anisotropyV );
1405 if( material.anisotropy == 0.0 ) {
1406 anisotropyV = vec2( 1.0, 0.0 );
1407 } else {
1408 anisotropyV /= material.anisotropy;
1409 material.anisotropy = saturate( material.anisotropy );
1410 }
1411 material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );
1412 material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y;
1413 material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y;
1414#endif`,lights_physical_pars_fragment:`uniform sampler2D dfgLUT;
1415struct PhysicalMaterial {
1416 vec3 diffuseColor;
1417 vec3 diffuseContribution;
1418 vec3 specularColor;
1419 vec3 specularColorBlended;
1420 float roughness;
1421 float metalness;
1422 float specularF90;
1423 float dispersion;
1424 vec2 dfg;
1425 vec3 multiScatteringCompensation;
1426 #ifdef USE_DIFFUSE_ROUGHNESS
1427 float diffuseRoughness;
1428 #endif
1429 #ifdef USE_RETROREFLECTION
1430 float retroreflectivity;
1431 #endif
1432 #ifdef USE_CLEARCOAT
1433 float clearcoat;
1434 float clearcoatRoughness;
1435 vec3 clearcoatF0;
1436 float clearcoatF90;
1437 #endif
1438 #ifdef USE_IRIDESCENCE
1439 float iridescence;
1440 float iridescenceIOR;
1441 float iridescenceThickness;
1442 vec3 iridescenceFresnel;
1443 vec3 iridescenceF0Dielectric;
1444 vec3 iridescenceF0Metallic;
1445 #endif
1446 #ifdef USE_SHEEN
1447 vec3 sheenColor;
1448 float sheenRoughness;
1449 #endif
1450 #ifdef IOR
1451 float ior;
1452 #endif
1453 #ifdef USE_TRANSMISSION
1454 float transmission;
1455 float transmissionAlpha;
1456 float thickness;
1457 float attenuationDistance;
1458 vec3 attenuationColor;
1459 #endif
1460 #ifdef USE_ANISOTROPY
1461 float anisotropy;
1462 float alphaT;
1463 vec3 anisotropyT;
1464 vec3 anisotropyB;
1465 #endif
1466};
1467vec3 clearcoatSpecularDirect = vec3( 0.0 );
1468vec3 clearcoatSpecularIndirect = vec3( 0.0 );
1469vec3 sheenSpecularDirect = vec3( 0.0 );
1470vec3 sheenSpecularIndirect = vec3(0.0 );
1471vec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {
1472 float x = clamp( 1.0 - dotVH, 0.0, 1.0 );
1473 float x2 = x * x;
1474 float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );
1475 return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );
1476}
1477#ifdef USE_DIFFUSE_ROUGHNESS
1478 const float EON_EPSILON = 1e-7;
1479 float FON_DirectionalAlbedo( const in float mu, const in float roughness, const in float A ) {
1480 float muComp = 1.0 - mu;
1481 float gOverPi = muComp * ( 0.0571085289 + muComp * ( 0.491881867 + muComp * ( - 0.332181442 + muComp * 0.0714429953 ) ) );
1482 return A * ( 1.0 + roughness * gOverPi );
1483 }
1484 vec3 BRDF_EON( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 diffuseColor, const in float roughness ) {
1485 vec3 rho = saturate( diffuseColor );
1486 if ( roughness <= EON_EPSILON ) return BRDF_Lambert( rho );
1487 float dotNL = saturate( dot( normal, lightDir ) );
1488 float dotNV = saturate( dot( normal, viewDir ) );
1489 float s = dot( lightDir, viewDir ) - dotNL * dotNV;
1490 float sOverT = ( s > 0.0 ) ? s / max( max( dotNL, dotNV ), EON_EPSILON ) : s;
1491 float A = 1.0 / ( 1.0 + ( 0.5 - 2.0 / ( 3.0 * PI ) ) * roughness );
1492 vec3 singleScatter = rho * RECIPROCAL_PI * A * ( 1.0 + roughness * sOverT );
1493 float averageAlbedo = A * ( 1.0 + ( 2.0 / 3.0 - 28.0 / ( 15.0 * PI ) ) * roughness );
1494 float albedoV = FON_DirectionalAlbedo( dotNV, roughness, A );
1495 float albedoL = FON_DirectionalAlbedo( dotNL, roughness, A );
1496 vec3 rhoMultiScatter = rho * rho * averageAlbedo / max( vec3( EON_EPSILON ), vec3( 1.0 ) - rho * ( 1.0 - averageAlbedo ) );
1497 vec3 multiScatter = rhoMultiScatter * RECIPROCAL_PI
1498 * max( EON_EPSILON, 1.0 - albedoV )
1499 * max( EON_EPSILON, 1.0 - albedoL )
1500 / max( EON_EPSILON, 1.0 - averageAlbedo );
1501 return singleScatter + multiScatter;
1502 }
1503 vec3 EON_DirectionalAlbedo( const in vec3 diffuseColor, const in float roughness, const in float dotNV ) {
1504 vec3 rho = saturate( diffuseColor );
1505 if ( roughness <= EON_EPSILON ) return rho;
1506 float A = 1.0 / ( 1.0 + ( 0.5 - 2.0 / ( 3.0 * PI ) ) * roughness );
1507 float directionalAlbedo = FON_DirectionalAlbedo( dotNV, roughness, A );
1508 float averageAlbedo = A * ( 1.0 + ( 2.0 / 3.0 - 28.0 / ( 15.0 * PI ) ) * roughness );
1509 vec3 rhoMultiScatter = rho * rho * averageAlbedo / max( vec3( EON_EPSILON ), vec3( 1.0 ) - rho * ( 1.0 - averageAlbedo ) );
1510 return rho * directionalAlbedo + rhoMultiScatter * ( 1.0 - directionalAlbedo );
1511 }
1512#endif
1513float V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {
1514 float a2 = pow2( alpha );
1515 float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );
1516 float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );
1517 return 0.5 / max( gv + gl, EPSILON );
1518}
1519float D_GGX( const in float alpha, const in float dotNH ) {
1520 float a2 = pow2( alpha );
1521 float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;
1522 return RECIPROCAL_PI * a2 / pow2( denom );
1523}
1524#ifdef USE_ANISOTROPY
1525 float V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) {
1526 float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) );
1527 float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) );
1528 return 0.5 / max( gv + gl, EPSILON );
1529 }
1530 float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) {
1531 float a2 = alphaT * alphaB;
1532 highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH );
1533 highp float v2 = dot( v, v );
1534 float w2 = a2 / v2;
1535 return RECIPROCAL_PI * a2 * pow2 ( w2 );
1536 }
1537#endif
1538#ifdef USE_CLEARCOAT
1539 vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {
1540 vec3 f0 = material.clearcoatF0;
1541 float f90 = material.clearcoatF90;
1542 float roughness = max( material.clearcoatRoughness, 0.045 );
1543 float alpha = pow2( roughness );
1544 vec3 halfDir = normalize( lightDir + viewDir );
1545 float dotNL = saturate( dot( normal, lightDir ) );
1546 float dotNV = saturate( dot( normal, viewDir ) );
1547 float dotNH = saturate( dot( normal, halfDir ) );
1548 float dotVH = saturate( dot( viewDir, halfDir ) );
1549 vec3 F = F_Schlick( f0, f90, dotVH );
1550 float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );
1551 float D = D_GGX( alpha, dotNH );
1552 return F * ( V * D );
1553 }
1554#endif
1555vec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {
1556 vec3 f0 = material.specularColorBlended;
1557 float f90 = material.specularF90;
1558 float roughness = max( material.roughness, 0.045 );
1559 float alpha = pow2( roughness );
1560 vec3 halfDir = normalize( lightDir + viewDir );
1561 float dotNL = saturate( dot( normal, lightDir ) );
1562 float dotNV = saturate( dot( normal, viewDir ) );
1563 float dotNH = saturate( dot( normal, halfDir ) );
1564 float dotVH = saturate( dot( viewDir, halfDir ) );
1565 vec3 F = F_Schlick( f0, f90, dotVH );
1566 #ifdef USE_IRIDESCENCE
1567 F = mix( F, material.iridescenceFresnel, material.iridescence );
1568 #endif
1569 #ifdef USE_ANISOTROPY
1570 float dotTL = dot( material.anisotropyT, lightDir );
1571 float dotTV = dot( material.anisotropyT, viewDir );
1572 float dotTH = dot( material.anisotropyT, halfDir );
1573 float dotBL = dot( material.anisotropyB, lightDir );
1574 float dotBV = dot( material.anisotropyB, viewDir );
1575 float dotBH = dot( material.anisotropyB, halfDir );
1576 float alphaT = max( material.alphaT, alpha );
1577 float V = V_GGX_SmithCorrelated_Anisotropic( alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL );
1578 float D = D_GGX_Anisotropic( alphaT, alpha, dotNH, dotTH, dotBH );
1579 #else
1580 float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );
1581 float D = D_GGX( alpha, dotNH );
1582 #endif
1583 return F * ( V * D );
1584}
1585vec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {
1586 const float LUT_SIZE = 64.0;
1587 const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;
1588 const float LUT_BIAS = 0.5 / LUT_SIZE;
1589 float dotNV = saturate( dot( N, V ) );
1590 vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );
1591 uv = uv * LUT_SCALE + LUT_BIAS;
1592 return uv;
1593}
1594float LTC_ClippedSphereFormFactor( const in vec3 f ) {
1595 float l = length( f );
1596 return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );
1597}
1598vec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {
1599 float x = dot( v1, v2 );
1600 float y = abs( x );
1601 float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;
1602 float b = 3.4175940 + ( 4.1616724 + y ) * y;
1603 float v = a / b;
1604 float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;
1605 return cross( v1, v2 ) * theta_sintheta;
1606}
1607vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {
1608 vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];
1609 vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];
1610 vec3 lightNormal = cross( v1, v2 );
1611 if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );
1612 vec3 T1, T2;
1613 T1 = normalize( V - N * dot( V, N ) );
1614 T2 = - cross( N, T1 );
1615 mat3 mat = mInv * transpose( mat3( T1, T2, N ) );
1616 vec3 coords[ 4 ];
1617 coords[ 0 ] = mat * ( rectCoords[ 0 ] - P );
1618 coords[ 1 ] = mat * ( rectCoords[ 1 ] - P );
1619 coords[ 2 ] = mat * ( rectCoords[ 2 ] - P );
1620 coords[ 3 ] = mat * ( rectCoords[ 3 ] - P );
1621 coords[ 0 ] = normalize( coords[ 0 ] );
1622 coords[ 1 ] = normalize( coords[ 1 ] );
1623 coords[ 2 ] = normalize( coords[ 2 ] );
1624 coords[ 3 ] = normalize( coords[ 3 ] );
1625 vec3 vectorFormFactor = vec3( 0.0 );
1626 vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );
1627 vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );
1628 vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );
1629 vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );
1630 float result = LTC_ClippedSphereFormFactor( vectorFormFactor );
1631 return vec3( result );
1632}
1633#if defined( USE_SHEEN )
1634float D_Charlie( float roughness, float dotNH ) {
1635 float alpha = pow2( roughness );
1636 float invAlpha = 1.0 / alpha;
1637 float cos2h = dotNH * dotNH;
1638 float sin2h = max( 1.0 - cos2h, 0.0078125 );
1639 return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );
1640}
1641float V_Neubelt( float dotNV, float dotNL ) {
1642 return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );
1643}
1644vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {
1645 vec3 halfDir = normalize( lightDir + viewDir );
1646 float dotNL = saturate( dot( normal, lightDir ) );
1647 float dotNV = saturate( dot( normal, viewDir ) );
1648 float dotNH = saturate( dot( normal, halfDir ) );
1649 float D = D_Charlie( sheenRoughness, dotNH );
1650 float V = V_Neubelt( dotNV, dotNL );
1651 return sheenColor * ( D * V );
1652}
1653#endif
1654float IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {
1655 float dotNV = saturate( dot( normal, viewDir ) );
1656 float r2 = roughness * roughness;
1657 float rInv = 1.0 / ( roughness + 0.1 );
1658 float a = -1.9362 + 1.0678 * roughness + 0.4573 * r2 - 0.8469 * rInv;
1659 float b = -0.6014 + 0.5538 * roughness - 0.4670 * r2 - 0.1255 * rInv;
1660 float DG = exp( a * dotNV + b );
1661 return saturate( DG );
1662}
1663vec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {
1664 float dotNV = saturate( dot( normal, viewDir ) );
1665 vec2 fab = texture2D( dfgLUT, vec2( roughness, dotNV ) ).rg;
1666 return specularColor * fab.x + specularF90 * fab.y;
1667}
1668#ifdef USE_IRIDESCENCE
1669void computeMultiscatteringIridescence( const in vec2 fab, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, inout vec3 singleScatter, inout vec3 multiScatter ) {
1670#else
1671void computeMultiscattering( const in vec2 fab, const in vec3 specularColor, const in float specularF90, inout vec3 singleScatter, inout vec3 multiScatter ) {
1672#endif
1673 #ifdef USE_IRIDESCENCE
1674 vec3 Fr = mix( specularColor, iridescenceF0, iridescence );
1675 #else
1676 vec3 Fr = specularColor;
1677 #endif
1678 vec3 FssEss = Fr * fab.x + specularF90 * fab.y;
1679 float Ess = fab.x + fab.y;
1680 float Ems = 1.0 - Ess;
1681 vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619; vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );
1682 singleScatter += FssEss;
1683 multiScatter += Fms * Ems;
1684}
1685#if NUM_RECT_AREA_LIGHTS > 0
1686 void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {
1687 vec3 normal = geometryNormal;
1688 vec3 viewDir = geometryViewDir;
1689 vec3 position = geometryPosition;
1690 vec3 lightPos = rectAreaLight.position;
1691 vec3 halfWidth = rectAreaLight.halfWidth;
1692 vec3 halfHeight = rectAreaLight.halfHeight;
1693 vec3 lightColor = rectAreaLight.color;
1694 float roughness = material.roughness;
1695 vec3 rectCoords[ 4 ];
1696 rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight;
1697 rectCoords[ 2 ] = lightPos - halfWidth + halfHeight;
1698 rectCoords[ 3 ] = lightPos + halfWidth + halfHeight;
1699 vec2 uv = LTC_Uv( normal, viewDir, roughness );
1700 vec4 t1 = texture2D( ltc_1, uv );
1701 vec4 t2 = texture2D( ltc_2, uv );
1702 mat3 mInv = mat3(
1703 vec3( t1.x, 0, t1.y ),
1704 vec3( 0, 1, 0 ),
1705 vec3( t1.z, 0, t1.w )
1706 );
1707 vec3 fresnel = ( material.specularColorBlended * t2.x + ( material.specularF90 - material.specularColorBlended ) * t2.y );
1708 reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );
1709 reflectedLight.directDiffuse += lightColor * material.diffuseContribution * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );
1710 #ifdef USE_CLEARCOAT
1711 vec3 Ncc = geometryClearcoatNormal;
1712 vec2 uvClearcoat = LTC_Uv( Ncc, viewDir, material.clearcoatRoughness );
1713 vec4 t1Clearcoat = texture2D( ltc_1, uvClearcoat );
1714 vec4 t2Clearcoat = texture2D( ltc_2, uvClearcoat );
1715 mat3 mInvClearcoat = mat3(
1716 vec3( t1Clearcoat.x, 0, t1Clearcoat.y ),
1717 vec3( 0, 1, 0 ),
1718 vec3( t1Clearcoat.z, 0, t1Clearcoat.w )
1719 );
1720 vec3 fresnelClearcoat = material.clearcoatF0 * t2Clearcoat.x + ( material.clearcoatF90 - material.clearcoatF0 ) * t2Clearcoat.y;
1721 clearcoatSpecularDirect += lightColor * fresnelClearcoat * LTC_Evaluate( Ncc, viewDir, position, mInvClearcoat, rectCoords );
1722 #endif
1723 }
1724#endif
1725void RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {
1726 float dotNL = saturate( dot( geometryNormal, directLight.direction ) );
1727 vec3 irradiance = dotNL * directLight.color;
1728 #ifdef USE_CLEARCOAT
1729 float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) );
1730 vec3 ccIrradiance = dotNLcc * directLight.color;
1731 clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material );
1732 #endif
1733 #ifdef USE_SHEEN
1734
1735 sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness );
1736
1737 float sheenAlbedoV = IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );
1738 float sheenAlbedoL = IBLSheenBRDF( geometryNormal, directLight.direction, material.sheenRoughness );
1739
1740 float sheenEnergyComp = 1.0 - max3( material.sheenColor ) * max( sheenAlbedoV, sheenAlbedoL );
1741
1742 irradiance *= sheenEnergyComp;
1743
1744 #endif
1745 vec3 specularBRDF = BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material );
1746 #ifdef USE_RETROREFLECTION
1747 vec3 retroViewDir = reflect( - geometryViewDir, geometryNormal );
1748 vec3 retroSpecularBRDF = BRDF_GGX( directLight.direction, retroViewDir, geometryNormal, material );
1749 specularBRDF = mix( specularBRDF, retroSpecularBRDF, saturate( material.retroreflectivity ) );
1750 #endif
1751 reflectedLight.directSpecular += irradiance * specularBRDF * material.multiScatteringCompensation;
1752 vec3 halfDir = normalize( directLight.direction + geometryViewDir );
1753 float dotVH = saturate( dot( geometryViewDir, halfDir ) );
1754 vec3 F = F_Schlick( material.specularColor, material.specularF90, dotVH );
1755 #ifdef USE_RETROREFLECTION
1756 vec3 retroHalfDir = normalize( directLight.direction + retroViewDir );
1757 float dotRetroVH = saturate( dot( retroViewDir, retroHalfDir ) );
1758 vec3 retroF = F_Schlick( material.specularColor, material.specularF90, dotRetroVH );
1759 F = mix( F, retroF, saturate( material.retroreflectivity ) );
1760 #endif
1761 #ifdef USE_DIFFUSE_ROUGHNESS
1762 vec3 diffuseBRDF = BRDF_EON( directLight.direction, geometryViewDir, geometryNormal, material.diffuseColor, material.diffuseRoughness ) * ( 1.0 - material.metalness );
1763 #else
1764 vec3 diffuseBRDF = BRDF_Lambert( material.diffuseContribution );
1765 #endif
1766 reflectedLight.directDiffuse += irradiance * diffuseBRDF * ( 1.0 - F );
1767}
1768void RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {
1769 vec3 singleScattering = vec3( 0.0 );
1770 vec3 multiScattering = vec3( 0.0 );
1771 #ifdef USE_IRIDESCENCE
1772 computeMultiscatteringIridescence( material.dfg, material.specularColor, material.specularF90, material.iridescence, material.iridescenceF0Dielectric, singleScattering, multiScattering );
1773 #else
1774 computeMultiscattering( material.dfg, material.specularColor, material.specularF90, singleScattering, multiScattering );
1775 #endif
1776 #ifdef USE_DIFFUSE_ROUGHNESS
1777 float dotNV = saturate( dot( geometryNormal, geometryViewDir ) );
1778 vec3 diffuseAlbedo = EON_DirectionalAlbedo( material.diffuseColor, material.diffuseRoughness, dotNV ) * ( 1.0 - material.metalness );
1779 vec3 diffuse = irradiance * RECIPROCAL_PI * diffuseAlbedo * ( 1.0 - singleScattering - multiScattering );
1780 #else
1781 vec3 diffuse = irradiance * BRDF_Lambert( material.diffuseContribution ) * ( 1.0 - singleScattering - multiScattering );
1782 #endif
1783 #ifdef USE_SHEEN
1784 float sheenAlbedo = IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );
1785 sheenSpecularIndirect += irradiance * material.sheenColor * sheenAlbedo * RECIPROCAL_PI;
1786 float sheenEnergyComp = 1.0 - max3( material.sheenColor ) * sheenAlbedo;
1787 diffuse *= sheenEnergyComp;
1788 #endif
1789 reflectedLight.indirectDiffuse += diffuse;
1790}
1791void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {
1792 #ifdef USE_CLEARCOAT
1793 clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );
1794 #endif
1795 #ifdef USE_SHEEN
1796 sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ) * RECIPROCAL_PI;
1797 #endif
1798 vec3 singleScatteringDielectric = vec3( 0.0 );
1799 vec3 multiScatteringDielectric = vec3( 0.0 );
1800 vec3 singleScatteringMetallic = vec3( 0.0 );
1801 vec3 multiScatteringMetallic = vec3( 0.0 );
1802 #ifdef USE_IRIDESCENCE
1803 computeMultiscatteringIridescence( material.dfg, material.specularColor, material.specularF90, material.iridescence, material.iridescenceF0Dielectric, singleScatteringDielectric, multiScatteringDielectric );
1804 computeMultiscatteringIridescence( material.dfg, material.diffuseColor, material.specularF90, material.iridescence, material.iridescenceF0Metallic, singleScatteringMetallic, multiScatteringMetallic );
1805 #else
1806 computeMultiscattering( material.dfg, material.specularColor, material.specularF90, singleScatteringDielectric, multiScatteringDielectric );
1807 computeMultiscattering( material.dfg, material.diffuseColor, material.specularF90, singleScatteringMetallic, multiScatteringMetallic );
1808 #endif
1809 vec3 singleScattering = mix( singleScatteringDielectric, singleScatteringMetallic, material.metalness );
1810 vec3 multiScattering = mix( multiScatteringDielectric, multiScatteringMetallic, material.metalness );
1811 vec3 totalScatteringDielectric = singleScatteringDielectric + multiScatteringDielectric;
1812 #ifdef USE_DIFFUSE_ROUGHNESS
1813 float dotNV = saturate( dot( geometryNormal, geometryViewDir ) );
1814 vec3 diffuse = EON_DirectionalAlbedo( material.diffuseColor, material.diffuseRoughness, dotNV ) * ( 1.0 - material.metalness ) * ( 1.0 - totalScatteringDielectric );
1815 #else
1816 vec3 diffuse = material.diffuseContribution * ( 1.0 - totalScatteringDielectric );
1817 #endif
1818 vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;
1819 vec3 indirectSpecular = radiance * singleScattering;
1820 indirectSpecular += multiScattering * cosineWeightedIrradiance;
1821 vec3 indirectDiffuse = diffuse * cosineWeightedIrradiance;
1822 #ifdef USE_SHEEN
1823 float sheenAlbedo = IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );
1824 float sheenEnergyComp = 1.0 - max3( material.sheenColor ) * sheenAlbedo;
1825 indirectSpecular *= sheenEnergyComp;
1826 indirectDiffuse *= sheenEnergyComp;
1827 #endif
1828 reflectedLight.indirectSpecular += indirectSpecular;
1829 reflectedLight.indirectDiffuse += indirectDiffuse;
1830}
1831#define RE_Direct RE_Direct_Physical
1832#define RE_Direct_RectArea RE_Direct_RectArea_Physical
1833#define RE_IndirectDiffuse RE_IndirectDiffuse_Physical
1834#define RE_IndirectSpecular RE_IndirectSpecular_Physical
1835float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {
1836 return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );
1837}`,lights_fragment_begin:`
1838vec3 geometryPosition = - vViewPosition;
1839vec3 geometryNormal = normal;
1840vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );
1841vec3 geometryClearcoatNormal = vec3( 0.0 );
1842#ifdef USE_CLEARCOAT
1843 geometryClearcoatNormal = clearcoatNormal;
1844#endif
1845#ifdef USE_IRIDESCENCE
1846 float dotNVi = saturate( dot( normal, geometryViewDir ) );
1847 if ( material.iridescenceThickness == 0.0 ) {
1848 material.iridescence = 0.0;
1849 } else {
1850 material.iridescence = saturate( material.iridescence );
1851 }
1852 if ( material.iridescence > 0.0 ) {
1853 vec3 iridescenceFresnelDielectric = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );
1854 vec3 iridescenceFresnelMetallic = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.diffuseColor );
1855 material.iridescenceFresnel = mix( iridescenceFresnelDielectric, iridescenceFresnelMetallic, material.metalness );
1856 material.iridescenceF0Dielectric = Schlick_to_F0( iridescenceFresnelDielectric, 1.0, dotNVi );
1857 material.iridescenceF0Metallic = Schlick_to_F0( iridescenceFresnelMetallic, 1.0, dotNVi );
1858 }
1859#endif
1860#ifdef STANDARD
1861 float dotNVms = saturate( dot( geometryNormal, geometryViewDir ) );
1862 material.dfg = texture2D( dfgLUT, vec2( material.roughness, dotNVms ) ).rg;
1863 #if ( NUM_SUN_LIGHTS > 0 || NUM_DIR_LIGHTS > 0 || NUM_POINT_LIGHTS > 0 || NUM_SPOT_LIGHTS > 0 )
1864 float EssMs = material.dfg.x + material.dfg.y;
1865 material.multiScatteringCompensation = 1.0 + material.specularColorBlended * ( 1.0 / EssMs - 1.0 );
1866 #endif
1867#endif
1868IncidentLight directLight;
1869#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )
1870 PointLight pointLight;
1871 #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0
1872 PointLightShadow pointLightShadow;
1873 #endif
1874 #pragma unroll_loop_start
1875 for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {
1876 pointLight = pointLights[ i ];
1877 getPointLightInfo( pointLight, geometryPosition, directLight );
1878 #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS ) && ( defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_BASIC ) )
1879 pointLightShadow = pointLightShadows[ i ];
1880 directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowIntensity, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;
1881 #endif
1882 RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
1883 }
1884 #pragma unroll_loop_end
1885#endif
1886#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )
1887 SpotLight spotLight;
1888 vec4 spotColor;
1889 vec3 spotLightCoord;
1890 bool inSpotLightMap;
1891 #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0
1892 SpotLightShadow spotLightShadow;
1893 #endif
1894 #pragma unroll_loop_start
1895 for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {
1896 spotLight = spotLights[ i ];
1897 getSpotLightInfo( spotLight, geometryPosition, directLight );
1898 #if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )
1899 #define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX
1900 #elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )
1901 #define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS
1902 #else
1903 #define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )
1904 #endif
1905 #if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )
1906 spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;
1907 inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );
1908 spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );
1909 directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;
1910 #endif
1911 #undef SPOT_LIGHT_MAP_INDEX
1912 #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )
1913 spotLightShadow = spotLightShadows[ i ];
1914 directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowIntensity, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;
1915 #endif
1916 RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
1917 }
1918 #pragma unroll_loop_end
1919#endif
1920#if ( NUM_SUN_LIGHTS > 0 ) && defined( RE_Direct )
1921 SunLight sunLight;
1922 #if defined( USE_SHADOWMAP ) && NUM_SUN_LIGHT_SHADOWS > 0
1923 SunLightShadow sunLightShadow;
1924 #endif
1925 #pragma unroll_loop_start
1926 for ( int i = 0; i < NUM_SUN_LIGHTS; i ++ ) {
1927 sunLight = sunLights[ i ];
1928 getSunLightInfo( sunLight, directLight );
1929 #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SUN_LIGHT_SHADOWS )
1930 sunLightShadow = sunLightShadows[ i ];
1931 directLight.color *= ( directLight.visible && receiveShadow ) ? getSunShadow( sunShadowMap[ i ], sunLightShadow, UNROLLED_LOOP_INDEX ) : 1.0;
1932 #endif
1933 RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
1934 }
1935 #pragma unroll_loop_end
1936#endif
1937#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )
1938 DirectionalLight directionalLight;
1939 #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0
1940 DirectionalLightShadow directionalLightShadow;
1941 #endif
1942 #pragma unroll_loop_start
1943 for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {
1944 directionalLight = directionalLights[ i ];
1945 getDirectionalLightInfo( directionalLight, directLight );
1946 #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )
1947 directionalLightShadow = directionalLightShadows[ i ];
1948 directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowIntensity, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;
1949 #endif
1950 RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
1951 }
1952 #pragma unroll_loop_end
1953#endif
1954#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )
1955 RectAreaLight rectAreaLight;
1956 #pragma unroll_loop_start
1957 for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {
1958 rectAreaLight = rectAreaLights[ i ];
1959 RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
1960 }
1961 #pragma unroll_loop_end
1962#endif
1963#if defined( RE_IndirectDiffuse )
1964 vec3 iblIrradiance = vec3( 0.0 );
1965 vec3 irradiance = getAmbientLightIrradiance( ambientLightColor );
1966 #if defined( USE_LIGHT_PROBES )
1967 irradiance += getLightProbeIrradiance( lightProbe, geometryNormal );
1968 #endif
1969 #if ( NUM_HEMI_LIGHTS > 0 )
1970 #pragma unroll_loop_start
1971 for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {
1972 irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal );
1973 }
1974 #pragma unroll_loop_end
1975 #endif
1976 #if NUM_LIGHT_PROBE_GRIDS > 0
1977 vec3 probeWorldPos = ( ( vec4( geometryPosition, 1.0 ) - viewMatrix[ 3 ] ) * viewMatrix ).xyz;
1978 vec3 probeWorldNormal = transformNormalByInverseViewMatrix( geometryNormal, viewMatrix );
1979 int probeGrid = - 1;
1980 #pragma unroll_loop_start
1981 for ( int i = 0; i < NUM_LIGHT_PROBE_GRIDS; i ++ ) {
1982 if ( isInsideLightProbeGrid( probeWorldPos, probeWorldNormal, probesMin[ i ], probesMax[ i ], probesResolution[ i ] ) ) probeGrid = UNROLLED_LOOP_INDEX;
1983 }
1984 #pragma unroll_loop_end
1985 #pragma unroll_loop_start
1986 for ( int i = 0; i < NUM_LIGHT_PROBE_GRIDS; i ++ ) {
1987 if ( probeGrid == UNROLLED_LOOP_INDEX ) irradiance += getLightProbeGridIrradiance( probesSH[ i ], probesMin[ i ], probesMax[ i ], probesResolution[ i ], probeWorldPos, probeWorldNormal );
1988 }
1989 #pragma unroll_loop_end
1990 #endif
1991#endif
1992#if defined( RE_IndirectSpecular )
1993 vec3 radiance = vec3( 0.0 );
1994 vec3 clearcoatRadiance = vec3( 0.0 );
1995#endif`,lights_fragment_maps:`#if defined( RE_IndirectDiffuse )
1996 #ifdef USE_LIGHTMAP
1997 vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );
1998 vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;
1999 irradiance += lightMapIrradiance;
2000 #endif
2001 #if defined( USE_ENVMAP ) && defined( ENVMAP_TYPE_PMREM )
2002 #if defined( STANDARD ) || defined( LAMBERT ) || defined( PHONG )
2003 iblIrradiance += getIBLIrradiance( geometryNormal );
2004 #endif
2005 #endif
2006#endif
2007#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )
2008 #ifdef USE_ANISOTROPY
2009 vec3 iblRadiance = getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy );
2010 #else
2011 vec3 iblRadiance = getIBLRadiance( geometryViewDir, geometryNormal, material.roughness );
2012 #endif
2013 #ifdef USE_RETROREFLECTION
2014 #ifdef USE_ANISOTROPY
2015 vec3 retroIBLRadiance = getIBLAnisotropyRetroRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy );
2016 #else
2017 vec3 retroIBLRadiance = getIBLRetroRadiance( geometryViewDir, geometryNormal, material.roughness );
2018 #endif
2019 iblRadiance = mix( iblRadiance, retroIBLRadiance, saturate( material.retroreflectivity ) );
2020 #endif
2021 radiance += iblRadiance;
2022 #ifdef USE_CLEARCOAT
2023 clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness );
2024 #endif
2025#endif`,lights_fragment_end:`#if defined( RE_IndirectDiffuse )
2026 #if defined( LAMBERT ) || defined( PHONG )
2027 irradiance += iblIrradiance;
2028 #endif
2029 RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
2030#endif
2031#if defined( RE_IndirectSpecular )
2032 RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
2033#endif`,lightprobes_pars_fragment:`#if NUM_LIGHT_PROBE_GRIDS > 0
2034uniform highp sampler3D probesSH[ NUM_LIGHT_PROBE_GRIDS ];
2035uniform vec3 probesMin[ NUM_LIGHT_PROBE_GRIDS ];
2036uniform vec3 probesMax[ NUM_LIGHT_PROBE_GRIDS ];
2037uniform vec3 probesResolution[ NUM_LIGHT_PROBE_GRIDS ];
2038bool isInsideLightProbeGrid( vec3 worldPos, vec3 worldNormal, vec3 probesMin, vec3 probesMax, vec3 probesResolution ) {
2039 vec3 spacing = ( probesMax - probesMin ) / probesResolution;
2040 vec3 samplePos = worldPos + worldNormal * spacing * 0.5;
2041 vec3 margin = spacing * 0.01;
2042 return all( greaterThanEqual( samplePos, probesMin - margin ) ) && all( lessThanEqual( samplePos, probesMax + margin ) );
2043}
2044vec3 getLightProbeGridIrradiance( highp sampler3D probesSH, vec3 probesMin, vec3 probesMax, vec3 probesResolution, vec3 worldPos, vec3 worldNormal ) {
2045 vec3 res = probesResolution;
2046 vec3 gridRange = probesMax - probesMin;
2047 vec3 probeSpacing = gridRange / res;
2048 vec3 samplePos = worldPos + worldNormal * probeSpacing * 0.5;
2049 vec3 uvw = clamp( ( samplePos - probesMin ) / gridRange, 0.5 / res, 1.0 - 0.5 / res );
2050 float nz = res.z;
2051 float paddedSlices = nz + 2.0;
2052 float atlasDepth = 7.0 * paddedSlices;
2053 float uvZBase = uvw.z * nz + 1.0;
2054 vec4 s0 = texture( probesSH, vec3( uvw.xy, ( uvZBase ) / atlasDepth ) );
2055 vec4 s1 = texture( probesSH, vec3( uvw.xy, ( uvZBase + paddedSlices ) / atlasDepth ) );
2056 vec4 s2 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 2.0 * paddedSlices ) / atlasDepth ) );
2057 vec4 s3 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 3.0 * paddedSlices ) / atlasDepth ) );
2058 vec4 s4 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 4.0 * paddedSlices ) / atlasDepth ) );
2059 vec4 s5 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 5.0 * paddedSlices ) / atlasDepth ) );
2060 vec4 s6 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 6.0 * paddedSlices ) / atlasDepth ) );
2061 vec3 c0 = s0.xyz;
2062 vec3 c1 = vec3( s0.w, s1.xy );
2063 vec3 c2 = vec3( s1.zw, s2.x );
2064 vec3 c3 = s2.yzw;
2065 vec3 c4 = s3.xyz;
2066 vec3 c5 = vec3( s3.w, s4.xy );
2067 vec3 c6 = vec3( s4.zw, s5.x );
2068 vec3 c7 = s5.yzw;
2069 vec3 c8 = s6.xyz;
2070 float x = worldNormal.x, y = worldNormal.y, z = worldNormal.z;
2071 vec3 result = c0 * 0.886227;
2072 result += c1 * 2.0 * 0.511664 * y;
2073 result += c2 * 2.0 * 0.511664 * z;
2074 result += c3 * 2.0 * 0.511664 * x;
2075 result += c4 * 2.0 * 0.429043 * x * y;
2076 result += c5 * 2.0 * 0.429043 * y * z;
2077 result += c6 * ( 0.743125 * z * z - 0.247708 );
2078 result += c7 * 2.0 * 0.429043 * x * z;
2079 result += c8 * 0.429043 * ( x * x - y * y );
2080 return max( result, vec3( 0.0 ) );
2081}
2082#endif`,logdepthbuf_fragment:`#if defined( USE_LOGARITHMIC_DEPTH_BUFFER )
2083 gl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;
2084#endif`,logdepthbuf_pars_fragment:`#if defined( USE_LOGARITHMIC_DEPTH_BUFFER )
2085 uniform float logDepthBufFC;
2086 varying float vFragDepth;
2087 varying float vIsPerspective;
2088#endif`,logdepthbuf_pars_vertex:`#ifdef USE_LOGARITHMIC_DEPTH_BUFFER
2089 varying float vFragDepth;
2090 varying float vIsPerspective;
2091#endif`,logdepthbuf_vertex:`#ifdef USE_LOGARITHMIC_DEPTH_BUFFER
2092 vFragDepth = 1.0 + gl_Position.w;
2093 vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );
2094#endif`,map_fragment:`#ifdef USE_MAP
2095 vec4 sampledDiffuseColor = texture2D( map, vMapUv );
2096 #ifdef DECODE_VIDEO_TEXTURE
2097 sampledDiffuseColor = sRGBTransferEOTF( sampledDiffuseColor );
2098 #endif
2099 diffuseColor *= sampledDiffuseColor;
2100#endif`,map_pars_fragment:`#ifdef USE_MAP
2101 uniform sampler2D map;
2102#endif`,map_particle_fragment:`#if defined( USE_MAP ) || defined( USE_ALPHAMAP )
2103 #if defined( USE_POINTS_UV )
2104 vec2 uv = vUv;
2105 #else
2106 vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;
2107 #endif
2108#endif
2109#ifdef USE_MAP
2110 diffuseColor *= texture2D( map, uv );
2111#endif
2112#ifdef USE_ALPHAMAP
2113 diffuseColor.a *= texture2D( alphaMap, uv ).g;
2114#endif`,map_particle_pars_fragment:`#if defined( USE_POINTS_UV )
2115 varying vec2 vUv;
2116#else
2117 #if defined( USE_MAP ) || defined( USE_ALPHAMAP )
2118 uniform mat3 uvTransform;
2119 #endif
2120#endif
2121#ifdef USE_MAP
2122 uniform sampler2D map;
2123#endif
2124#ifdef USE_ALPHAMAP
2125 uniform sampler2D alphaMap;
2126#endif`,metalnessmap_fragment:`float metalnessFactor = metalness;
2127#ifdef USE_METALNESSMAP
2128 vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );
2129 metalnessFactor *= texelMetalness.b;
2130#endif`,metalnessmap_pars_fragment:`#ifdef USE_METALNESSMAP
2131 uniform sampler2D metalnessMap;
2132#endif`,morphinstance_vertex:`#ifdef USE_INSTANCING_MORPH
2133 float morphTargetInfluences[ MORPHTARGETS_COUNT ];
2134 float morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r;
2135 for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
2136 morphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r;
2137 }
2138#endif`,morphcolor_vertex:`#if defined( USE_MORPHCOLORS )
2139 #if defined( USE_COLOR_ALPHA )
2140 vColor *= morphTargetBaseInfluence;
2141 #elif defined( USE_COLOR )
2142 vColor.rgb *= morphTargetBaseInfluence;
2143 #endif
2144 for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
2145 #if defined( USE_COLOR_ALPHA )
2146 if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];
2147 #elif defined( USE_COLOR )
2148 if ( morphTargetInfluences[ i ] != 0.0 ) vColor.rgb += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];
2149 #endif
2150 }
2151#endif`,morphnormal_vertex:`#ifdef USE_MORPHNORMALS
2152 objectNormal *= morphTargetBaseInfluence;
2153 for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
2154 if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];
2155 }
2156#endif`,morphtarget_pars_vertex:`#ifdef USE_MORPHTARGETS
2157 #ifndef USE_INSTANCING_MORPH
2158 uniform float morphTargetBaseInfluence;
2159 uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];
2160 #endif
2161 uniform sampler2DArray morphTargetsTexture;
2162 uniform ivec2 morphTargetsTextureSize;
2163 vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {
2164 int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;
2165 int y = texelIndex / morphTargetsTextureSize.x;
2166 int x = texelIndex - y * morphTargetsTextureSize.x;
2167 ivec3 morphUV = ivec3( x, y, morphTargetIndex );
2168 return texelFetch( morphTargetsTexture, morphUV, 0 );
2169 }
2170#endif`,morphtarget_vertex:`#ifdef USE_MORPHTARGETS
2171 transformed *= morphTargetBaseInfluence;
2172 for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
2173 if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];
2174 }
2175#endif`,normal_fragment_begin:`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;
2176#ifdef FLAT_SHADED
2177 vec3 fdx = dFdx( vViewPosition );
2178 vec3 fdy = dFdy( vViewPosition );
2179 vec3 normal = normalize( cross( fdx, fdy ) );
2180#else
2181 vec3 normal = normalize( vNormal );
2182 #ifdef DOUBLE_SIDED
2183 normal *= faceDirection;
2184 #endif
2185#endif
2186#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY )
2187 #ifdef USE_TANGENT
2188 mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );
2189 #else
2190 mat3 tbn = getTangentFrame( - vViewPosition, normal,
2191 #if defined( USE_NORMALMAP )
2192 vNormalMapUv
2193 #elif defined( USE_CLEARCOAT_NORMALMAP )
2194 vClearcoatNormalMapUv
2195 #else
2196 vUv
2197 #endif
2198 );
2199 #endif
2200 #ifdef DOUBLE_SIDED
2201 tbn[0] *= faceDirection;
2202 tbn[1] *= faceDirection;
2203 #endif
2204#endif
2205#ifdef USE_CLEARCOAT_NORMALMAP
2206 #ifdef USE_TANGENT
2207 mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );
2208 #else
2209 mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );
2210 #endif
2211 #ifdef DOUBLE_SIDED
2212 tbn2[0] *= faceDirection;
2213 tbn2[1] *= faceDirection;
2214 #endif
2215#endif
2216vec3 nonPerturbedNormal = normal;`,normal_fragment_maps:`#ifdef USE_NORMALMAP_OBJECTSPACE
2217 normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;
2218 #ifdef FLIP_SIDED
2219 normal = - normal;
2220 #endif
2221 #ifdef DOUBLE_SIDED
2222 normal = normal * faceDirection;
2223 #endif
2224 normal = normalize( normalMatrix * normal );
2225#elif defined( USE_NORMALMAP_TANGENTSPACE )
2226 vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;
2227 #if defined( USE_PACKED_NORMALMAP )
2228 mapN = vec3( mapN.xy, sqrt( saturate( 1.0 - dot( mapN.xy, mapN.xy ) ) ) );
2229 #endif
2230 mapN.xy *= normalScale;
2231 normal = normalize( tbn * mapN );
2232#elif defined( USE_BUMPMAP )
2233 normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );
2234#endif`,normal_pars_fragment:`#ifndef FLAT_SHADED
2235 varying vec3 vNormal;
2236 #ifdef USE_TANGENT
2237 varying vec3 vTangent;
2238 varying vec3 vBitangent;
2239 #endif
2240#endif`,normal_pars_vertex:`#ifndef FLAT_SHADED
2241 varying vec3 vNormal;
2242 #ifdef USE_TANGENT
2243 varying vec3 vTangent;
2244 varying vec3 vBitangent;
2245 #endif
2246#endif`,normal_vertex:`#ifndef FLAT_SHADED
2247 vNormal = normalize( transformedNormal );
2248 #ifdef USE_TANGENT
2249 vTangent = normalize( transformedTangent );
2250 vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );
2251 #ifdef FLIP_SIDED
2252 vBitangent = - vBitangent;
2253 #endif
2254 #endif
2255#endif`,normalmap_pars_fragment:`#ifdef USE_NORMALMAP
2256 uniform sampler2D normalMap;
2257 uniform vec2 normalScale;
2258#endif
2259#ifdef USE_NORMALMAP_OBJECTSPACE
2260 uniform mat3 normalMatrix;
2261#endif
2262#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) )
2263 mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {
2264 vec3 q0 = dFdx( eye_pos.xyz );
2265 vec3 q1 = dFdy( eye_pos.xyz );
2266 vec2 st0 = dFdx( uv.st );
2267 vec2 st1 = dFdy( uv.st );
2268 vec3 N = surf_norm;
2269 vec3 q1perp = cross( q1, N );
2270 vec3 q0perp = cross( N, q0 );
2271 vec3 T = q1perp * st0.x + q0perp * st1.x;
2272 vec3 B = q1perp * st0.y + q0perp * st1.y;
2273 float det = max( dot( T, T ), dot( B, B ) );
2274 float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );
2275 return mat3( T * scale, B * scale, N );
2276 }
2277#endif`,clearcoat_normal_fragment_begin:`#ifdef USE_CLEARCOAT
2278 vec3 clearcoatNormal = nonPerturbedNormal;
2279#endif`,clearcoat_normal_fragment_maps:`#ifdef USE_CLEARCOAT_NORMALMAP
2280 vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;
2281 clearcoatMapN.xy *= clearcoatNormalScale;
2282 clearcoatNormal = normalize( tbn2 * clearcoatMapN );
2283#endif`,clearcoat_pars_fragment:`#ifdef USE_CLEARCOATMAP
2284 uniform sampler2D clearcoatMap;
2285#endif
2286#ifdef USE_CLEARCOAT_NORMALMAP
2287 uniform sampler2D clearcoatNormalMap;
2288 uniform vec2 clearcoatNormalScale;
2289#endif
2290#ifdef USE_CLEARCOAT_ROUGHNESSMAP
2291 uniform sampler2D clearcoatRoughnessMap;
2292#endif`,iridescence_pars_fragment:`#ifdef USE_IRIDESCENCEMAP
2293 uniform sampler2D iridescenceMap;
2294#endif
2295#ifdef USE_IRIDESCENCE_THICKNESSMAP
2296 uniform sampler2D iridescenceThicknessMap;
2297#endif`,opaque_fragment:`#ifdef OPAQUE
2298diffuseColor.a = 1.0;
2299#endif
2300#ifdef USE_TRANSMISSION
2301diffuseColor.a *= material.transmissionAlpha;
2302#endif
2303gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,packing:`vec3 packNormalToRGB( const in vec3 normal ) {
2304 return normalize( normal ) * 0.5 + 0.5;
2305}
2306vec3 unpackRGBToNormal( const in vec3 rgb ) {
2307 return 2.0 * rgb.xyz - 1.0;
2308}
2309const float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;const float ShiftRight8 = 1. / 256.;
2310const float Inv255 = 1. / 255.;
2311const vec4 PackFactors = vec4( 1.0, 256.0, 256.0 * 256.0, 256.0 * 256.0 * 256.0 );
2312const vec2 UnpackFactors2 = vec2( UnpackDownscale, 1.0 / PackFactors.g );
2313const vec3 UnpackFactors3 = vec3( UnpackDownscale / PackFactors.rg, 1.0 / PackFactors.b );
2314const vec4 UnpackFactors4 = vec4( UnpackDownscale / PackFactors.rgb, 1.0 / PackFactors.a );
2315vec4 packDepthToRGBA( const in float v ) {
2316 if( v <= 0.0 )
2317 return vec4( 0., 0., 0., 0. );
2318 if( v >= 1.0 )
2319 return vec4( 1., 1., 1., 1. );
2320 float vuf;
2321 float af = modf( v * PackFactors.a, vuf );
2322 float bf = modf( vuf * ShiftRight8, vuf );
2323 float gf = modf( vuf * ShiftRight8, vuf );
2324 return vec4( vuf * Inv255, gf * PackUpscale, bf * PackUpscale, af );
2325}
2326vec3 packDepthToRGB( const in float v ) {
2327 if( v <= 0.0 )
2328 return vec3( 0., 0., 0. );
2329 if( v >= 1.0 )
2330 return vec3( 1., 1., 1. );
2331 float vuf;
2332 float bf = modf( v * PackFactors.b, vuf );
2333 float gf = modf( vuf * ShiftRight8, vuf );
2334 return vec3( vuf * Inv255, gf * PackUpscale, bf );
2335}
2336vec2 packDepthToRG( const in float v ) {
2337 if( v <= 0.0 )
2338 return vec2( 0., 0. );
2339 if( v >= 1.0 )
2340 return vec2( 1., 1. );
2341 float vuf;
2342 float gf = modf( v * 256., vuf );
2343 return vec2( vuf * Inv255, gf );
2344}
2345float unpackRGBAToDepth( const in vec4 v ) {
2346 return dot( v, UnpackFactors4 );
2347}
2348float unpackRGBToDepth( const in vec3 v ) {
2349 return dot( v, UnpackFactors3 );
2350}
2351float unpackRGToDepth( const in vec2 v ) {
2352 return v.r * UnpackFactors2.r + v.g * UnpackFactors2.g;
2353}
2354vec4 pack2HalfToRGBA( const in vec2 v ) {
2355 vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );
2356 return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );
2357}
2358vec2 unpackRGBATo2Half( const in vec4 v ) {
2359 return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );
2360}
2361float viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {
2362 return ( viewZ + near ) / ( near - far );
2363}
2364float orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {
2365 #ifdef USE_REVERSED_DEPTH_BUFFER
2366
2367 return depth * ( far - near ) - far;
2368 #else
2369 return depth * ( near - far ) - near;
2370 #endif
2371}
2372float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {
2373 return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );
2374}
2375float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {
2376
2377 #ifdef USE_REVERSED_DEPTH_BUFFER
2378 return ( near * far ) / ( ( near - far ) * depth - near );
2379 #else
2380 return ( near * far ) / ( ( far - near ) * depth - far );
2381 #endif
2382}`,premultiplied_alpha_fragment:`#ifdef PREMULTIPLIED_ALPHA
2383 gl_FragColor.rgb *= gl_FragColor.a;
2384#endif`,project_vertex:`vec4 mvPosition = vec4( transformed, 1.0 );
2385#ifdef USE_BATCHING
2386 mvPosition = batchingMatrix * mvPosition;
2387#endif
2388#ifdef USE_INSTANCING
2389 mvPosition = instanceMatrix * mvPosition;
2390#endif
2391mvPosition = modelViewMatrix * mvPosition;
2392gl_Position = projectionMatrix * mvPosition;`,dithering_fragment:`#ifdef DITHERING
2393 gl_FragColor.rgb = dithering( gl_FragColor.rgb );
2394#endif`,dithering_pars_fragment:`#ifdef DITHERING
2395 vec3 dithering( vec3 color ) {
2396 float grid_position = rand( gl_FragCoord.xy );
2397 vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );
2398 dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );
2399 return color + dither_shift_RGB;
2400 }
2401#endif`,roughnessmap_fragment:`float roughnessFactor = roughness;
2402#ifdef USE_ROUGHNESSMAP
2403 vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );
2404 roughnessFactor *= texelRoughness.g;
2405#endif`,roughnessmap_pars_fragment:`#ifdef USE_ROUGHNESSMAP
2406 uniform sampler2D roughnessMap;
2407#endif`,shadowmap_pars_fragment:`#if NUM_SPOT_LIGHT_COORDS > 0
2408 varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];
2409#endif
2410#if NUM_SPOT_LIGHT_MAPS > 0
2411 uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];
2412#endif
2413#ifdef USE_SHADOWMAP
2414 #if NUM_SUN_LIGHT_SHADOWS > 0
2415 #define SUN_LIGHT_CASCADES 2
2416 #if defined( SHADOWMAP_TYPE_PCF )
2417 uniform sampler2DShadow sunShadowMap[ NUM_SUN_LIGHT_SHADOWS ];
2418 #else
2419 uniform sampler2D sunShadowMap[ NUM_SUN_LIGHT_SHADOWS ];
2420 #endif
2421 uniform mat4 sunShadowMatrix[ NUM_SUN_LIGHT_SHADOWS * SUN_LIGHT_CASCADES ];
2422 uniform vec4 sunShadowCascade[ NUM_SUN_LIGHT_SHADOWS * SUN_LIGHT_CASCADES ];
2423 varying vec4 vSunShadowWorldPosition;
2424 varying vec3 vSunShadowWorldNormal;
2425 struct SunLightShadow {
2426 float shadowIntensity;
2427 float shadowBias;
2428 float shadowNormalBias;
2429 float shadowRadius;
2430 vec2 shadowMapSize;
2431 };
2432 uniform SunLightShadow sunLightShadows[ NUM_SUN_LIGHT_SHADOWS ];
2433 #endif
2434 #if NUM_DIR_LIGHT_SHADOWS > 0
2435 #if defined( SHADOWMAP_TYPE_PCF )
2436 uniform sampler2DShadow directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];
2437 #else
2438 uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];
2439 #endif
2440 varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];
2441 struct DirectionalLightShadow {
2442 float shadowIntensity;
2443 float shadowBias;
2444 float shadowNormalBias;
2445 float shadowRadius;
2446 vec2 shadowMapSize;
2447 };
2448 uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];
2449 #endif
2450 #if NUM_SPOT_LIGHT_SHADOWS > 0
2451 #if defined( SHADOWMAP_TYPE_PCF )
2452 uniform sampler2DShadow spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];
2453 #else
2454 uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];
2455 #endif
2456 struct SpotLightShadow {
2457 float shadowIntensity;
2458 float shadowBias;
2459 float shadowNormalBias;
2460 float shadowRadius;
2461 vec2 shadowMapSize;
2462 };
2463 uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];
2464 #endif
2465 #if NUM_POINT_LIGHT_SHADOWS > 0
2466 #if defined( SHADOWMAP_TYPE_PCF )
2467 uniform samplerCubeShadow pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];
2468 #elif defined( SHADOWMAP_TYPE_BASIC )
2469 uniform samplerCube pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];
2470 #endif
2471 varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];
2472 struct PointLightShadow {
2473 float shadowIntensity;
2474 float shadowBias;
2475 float shadowNormalBias;
2476 float shadowRadius;
2477 vec2 shadowMapSize;
2478 float shadowCameraNear;
2479 float shadowCameraFar;
2480 };
2481 uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];
2482 #endif
2483 #if defined( SHADOWMAP_TYPE_PCF )
2484 float interleavedGradientNoise( vec2 position ) {
2485 return fract( 52.9829189 * fract( dot( position, vec2( 0.06711056, 0.00583715 ) ) ) );
2486 }
2487 vec2 vogelDiskSample( int sampleIndex, int samplesCount, float phi ) {
2488 const float goldenAngle = 2.399963229728653;
2489 float r = sqrt( ( float( sampleIndex ) + 0.5 ) / float( samplesCount ) );
2490 float theta = float( sampleIndex ) * goldenAngle + phi;
2491 return vec2( cos( theta ), sin( theta ) ) * r;
2492 }
2493 #endif
2494 #if defined( SHADOWMAP_TYPE_PCF )
2495 float getShadow( sampler2DShadow shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) {
2496 float shadow = 1.0;
2497 shadowCoord.xyz /= shadowCoord.w;
2498 #ifdef USE_REVERSED_DEPTH_BUFFER
2499 shadowCoord.z -= shadowBias;
2500 #else
2501 shadowCoord.z += shadowBias;
2502 #endif
2503 bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;
2504 bool frustumTest = inFrustum && shadowCoord.z <= 1.0;
2505 if ( frustumTest ) {
2506 vec2 texelSize = vec2( 1.0 ) / shadowMapSize;
2507 vec2 radius = shadowRadius * texelSize;
2508 float phi = interleavedGradientNoise( gl_FragCoord.xy ) * PI2;
2509 shadow = (
2510 texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 0, 5, phi ) * radius, shadowCoord.z ) ) +
2511 texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 1, 5, phi ) * radius, shadowCoord.z ) ) +
2512 texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 2, 5, phi ) * radius, shadowCoord.z ) ) +
2513 texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 3, 5, phi ) * radius, shadowCoord.z ) ) +
2514 texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 4, 5, phi ) * radius, shadowCoord.z ) )
2515 ) * 0.2;
2516 }
2517 return mix( 1.0, shadow, shadowIntensity );
2518 }
2519 #elif defined( SHADOWMAP_TYPE_VSM )
2520 float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) {
2521 float shadow = 1.0;
2522 shadowCoord.xyz /= shadowCoord.w;
2523 #ifdef USE_REVERSED_DEPTH_BUFFER
2524 shadowCoord.z -= shadowBias;
2525 #else
2526 shadowCoord.z += shadowBias;
2527 #endif
2528 bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;
2529 bool frustumTest = inFrustum && shadowCoord.z <= 1.0;
2530 if ( frustumTest ) {
2531 vec2 distribution = texture2D( shadowMap, shadowCoord.xy ).rg;
2532 float mean = distribution.x;
2533 float variance = distribution.y * distribution.y;
2534 #ifdef USE_REVERSED_DEPTH_BUFFER
2535 float hard_shadow = step( mean, shadowCoord.z );
2536 #else
2537 float hard_shadow = step( shadowCoord.z, mean );
2538 #endif
2539
2540 if ( hard_shadow == 1.0 ) {
2541 shadow = 1.0;
2542 } else {
2543 variance = max( variance, 0.0000001 );
2544 float d = shadowCoord.z - mean;
2545 float p_max = variance / ( variance + d * d );
2546 p_max = clamp( ( p_max - 0.3 ) / 0.65, 0.0, 1.0 );
2547 shadow = max( hard_shadow, p_max );
2548 }
2549 }
2550 return mix( 1.0, shadow, shadowIntensity );
2551 }
2552 #else
2553 float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) {
2554 float shadow = 1.0;
2555 shadowCoord.xyz /= shadowCoord.w;
2556 #ifdef USE_REVERSED_DEPTH_BUFFER
2557 shadowCoord.z -= shadowBias;
2558 #else
2559 shadowCoord.z += shadowBias;
2560 #endif
2561 bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;
2562 bool frustumTest = inFrustum && shadowCoord.z <= 1.0;
2563 if ( frustumTest ) {
2564 float depth = texture2D( shadowMap, shadowCoord.xy ).r;
2565 #ifdef USE_REVERSED_DEPTH_BUFFER
2566 shadow = step( depth, shadowCoord.z );
2567 #else
2568 shadow = step( shadowCoord.z, depth );
2569 #endif
2570 }
2571 return mix( 1.0, shadow, shadowIntensity );
2572 }
2573 #endif
2574 #if NUM_SUN_LIGHT_SHADOWS > 0
2575 float getSunShadow(
2576 #if defined( SHADOWMAP_TYPE_PCF )
2577 sampler2DShadow shadowMap,
2578 #else
2579 sampler2D shadowMap,
2580 #endif
2581 SunLightShadow sunLightShadow,
2582 int shadowIndex
2583 ) {
2584 vec4 shadowWorldPosition = vec4( vSunShadowWorldPosition.xyz + vSunShadowWorldNormal * sunLightShadow.shadowNormalBias, 1.0 );
2585 float viewDepth = vSunShadowWorldPosition.w;
2586 int cascadeOffset = shadowIndex * SUN_LIGHT_CASCADES;
2587 float shadow = 1.0;
2588 for ( int i = SUN_LIGHT_CASCADES - 1; i >= 0; i -- ) {
2589 vec4 cascade = sunShadowCascade[ cascadeOffset + i ];
2590 if ( viewDepth >= cascade.x && viewDepth < cascade.y ) {
2591 float cascadeShadow = getShadow(
2592 shadowMap,
2593 sunLightShadow.shadowMapSize,
2594 sunLightShadow.shadowIntensity,
2595 sunLightShadow.shadowBias,
2596 sunLightShadow.shadowRadius,
2597 sunShadowMatrix[ cascadeOffset + i ] * shadowWorldPosition
2598 );
2599 shadow = mix( cascadeShadow, shadow, smoothstep( cascade.z, cascade.y, viewDepth ) );
2600 }
2601 }
2602 return shadow;
2603 }
2604 #endif
2605 #if NUM_POINT_LIGHT_SHADOWS > 0
2606 #if defined( SHADOWMAP_TYPE_PCF )
2607 float getPointShadow( samplerCubeShadow shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {
2608 float shadow = 1.0;
2609 vec3 lightToPosition = shadowCoord.xyz;
2610 vec3 bd3D = normalize( lightToPosition );
2611 vec3 absVec = abs( lightToPosition );
2612 float viewSpaceZ = max( max( absVec.x, absVec.y ), absVec.z );
2613 if ( viewSpaceZ - shadowCameraFar <= 0.0 && viewSpaceZ - shadowCameraNear >= 0.0 ) {
2614 float lightDistance = length( lightToPosition );
2615 float depthRange = shadowCameraFar - shadowCameraNear;
2616 #ifdef USE_REVERSED_DEPTH_BUFFER
2617 float depthA = - shadowCameraNear / depthRange - shadowBias;
2618 float depthB = shadowCameraNear * shadowCameraFar / ( depthRange * lightDistance );
2619 #else
2620 float depthA = shadowCameraFar / depthRange + shadowBias;
2621 float depthB = - shadowCameraNear * shadowCameraFar / ( depthRange * lightDistance );
2622 #endif
2623 float texelSize = shadowRadius / shadowMapSize.x;
2624 vec3 absDir = abs( bd3D );
2625 vec3 tangent = absDir.x > absDir.z ? vec3( 0.0, 1.0, 0.0 ) : vec3( 1.0, 0.0, 0.0 );
2626 tangent = normalize( cross( bd3D, tangent ) );
2627 vec3 bitangent = cross( bd3D, tangent );
2628 float phi = interleavedGradientNoise( gl_FragCoord.xy ) * PI2;
2629 shadow = 0.0;
2630 for ( int i = 0; i < 5; i ++ ) {
2631 vec2 offset = vogelDiskSample( i, 5, phi );
2632 vec3 direction = bd3D + ( tangent * offset.x + bitangent * offset.y ) * texelSize;
2633 vec3 absDirection = abs( direction );
2634 float dp = depthA + depthB / max( max( absDirection.x, absDirection.y ), absDirection.z );
2635 shadow += texture( shadowMap, vec4( direction, dp ) );
2636 }
2637 shadow *= 0.2;
2638 }
2639 return mix( 1.0, shadow, shadowIntensity );
2640 }
2641 #elif defined( SHADOWMAP_TYPE_BASIC )
2642 float getPointShadow( samplerCube shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {
2643 float shadow = 1.0;
2644 vec3 lightToPosition = shadowCoord.xyz;
2645 vec3 absVec = abs( lightToPosition );
2646 float viewSpaceZ = max( max( absVec.x, absVec.y ), absVec.z );
2647 if ( viewSpaceZ - shadowCameraFar <= 0.0 && viewSpaceZ - shadowCameraNear >= 0.0 ) {
2648 float dp = ( shadowCameraFar * ( viewSpaceZ - shadowCameraNear ) ) / ( viewSpaceZ * ( shadowCameraFar - shadowCameraNear ) );
2649 dp += shadowBias;
2650 vec3 bd3D = normalize( lightToPosition );
2651 float depth = textureCube( shadowMap, bd3D ).r;
2652 #ifdef USE_REVERSED_DEPTH_BUFFER
2653 depth = 1.0 - depth;
2654 #endif
2655 shadow = step( dp, depth );
2656 }
2657 return mix( 1.0, shadow, shadowIntensity );
2658 }
2659 #endif
2660 #endif
2661#endif`,shadowmap_pars_vertex:`#if NUM_SPOT_LIGHT_COORDS > 0
2662 uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];
2663 varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];
2664#endif
2665#ifdef USE_SHADOWMAP
2666 #if NUM_SUN_LIGHT_SHADOWS > 0
2667 varying vec4 vSunShadowWorldPosition;
2668 varying vec3 vSunShadowWorldNormal;
2669 #endif
2670 #if NUM_DIR_LIGHT_SHADOWS > 0
2671 uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];
2672 varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];
2673 struct DirectionalLightShadow {
2674 float shadowIntensity;
2675 float shadowBias;
2676 float shadowNormalBias;
2677 float shadowRadius;
2678 vec2 shadowMapSize;
2679 };
2680 uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];
2681 #endif
2682 #if NUM_SPOT_LIGHT_SHADOWS > 0
2683 struct SpotLightShadow {
2684 float shadowIntensity;
2685 float shadowBias;
2686 float shadowNormalBias;
2687 float shadowRadius;
2688 vec2 shadowMapSize;
2689 };
2690 uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];
2691 #endif
2692 #if NUM_POINT_LIGHT_SHADOWS > 0
2693 uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];
2694 varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];
2695 struct PointLightShadow {
2696 float shadowIntensity;
2697 float shadowBias;
2698 float shadowNormalBias;
2699 float shadowRadius;
2700 vec2 shadowMapSize;
2701 float shadowCameraNear;
2702 float shadowCameraFar;
2703 };
2704 uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];
2705 #endif
2706#endif`,shadowmap_vertex:`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_SUN_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )
2707 #ifdef HAS_NORMAL
2708 vec3 shadowWorldNormal = transformNormalByInverseViewMatrix( transformedNormal, viewMatrix );
2709 #else
2710 vec3 shadowWorldNormal = vec3( 0.0 );
2711 #endif
2712 vec4 shadowWorldPosition;
2713#endif
2714#if defined( USE_SHADOWMAP )
2715 #if NUM_SUN_LIGHT_SHADOWS > 0
2716 vSunShadowWorldPosition = vec4( worldPosition.xyz, - mvPosition.z );
2717 vSunShadowWorldNormal = shadowWorldNormal;
2718 #endif
2719 #if NUM_DIR_LIGHT_SHADOWS > 0
2720 #pragma unroll_loop_start
2721 for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {
2722 shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );
2723 vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;
2724 }
2725 #pragma unroll_loop_end
2726 #endif
2727 #if NUM_POINT_LIGHT_SHADOWS > 0
2728 #pragma unroll_loop_start
2729 for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {
2730 shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );
2731 vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;
2732 }
2733 #pragma unroll_loop_end
2734 #endif
2735#endif
2736#if NUM_SPOT_LIGHT_COORDS > 0
2737 #pragma unroll_loop_start
2738 for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {
2739 shadowWorldPosition = worldPosition;
2740 #if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )
2741 shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;
2742 #endif
2743 vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;
2744 }
2745 #pragma unroll_loop_end
2746#endif`,shadowmask_pars_fragment:`float getShadowMask() {
2747 float shadow = 1.0;
2748 #ifdef USE_SHADOWMAP
2749 #if NUM_SUN_LIGHT_SHADOWS > 0
2750 SunLightShadow sunLight;
2751 #pragma unroll_loop_start
2752 for ( int i = 0; i < NUM_SUN_LIGHT_SHADOWS; i ++ ) {
2753 sunLight = sunLightShadows[ i ];
2754 shadow *= receiveShadow ? getSunShadow( sunShadowMap[ i ], sunLight, UNROLLED_LOOP_INDEX ) : 1.0;
2755 }
2756 #pragma unroll_loop_end
2757 #endif
2758 #if NUM_DIR_LIGHT_SHADOWS > 0
2759 DirectionalLightShadow directionalLight;
2760 #pragma unroll_loop_start
2761 for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {
2762 directionalLight = directionalLightShadows[ i ];
2763 shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowIntensity, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;
2764 }
2765 #pragma unroll_loop_end
2766 #endif
2767 #if NUM_SPOT_LIGHT_SHADOWS > 0
2768 SpotLightShadow spotLight;
2769 #pragma unroll_loop_start
2770 for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {
2771 spotLight = spotLightShadows[ i ];
2772 shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowIntensity, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;
2773 }
2774 #pragma unroll_loop_end
2775 #endif
2776 #if NUM_POINT_LIGHT_SHADOWS > 0 && ( defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_BASIC ) )
2777 PointLightShadow pointLight;
2778 #pragma unroll_loop_start
2779 for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {
2780 pointLight = pointLightShadows[ i ];
2781 shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowIntensity, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;
2782 }
2783 #pragma unroll_loop_end
2784 #endif
2785 #endif
2786 return shadow;
2787}`,skinbase_vertex:`#ifdef USE_SKINNING
2788 mat4 boneMatX = getBoneMatrix( skinIndex.x );
2789 mat4 boneMatY = getBoneMatrix( skinIndex.y );
2790 mat4 boneMatZ = getBoneMatrix( skinIndex.z );
2791 mat4 boneMatW = getBoneMatrix( skinIndex.w );
2792#endif`,skinning_pars_vertex:`#ifdef USE_SKINNING
2793 uniform mat4 bindMatrix;
2794 uniform mat4 bindMatrixInverse;
2795 uniform highp sampler2D boneTexture;
2796 mat4 getBoneMatrix( const in float i ) {
2797 int size = textureSize( boneTexture, 0 ).x;
2798 int j = int( i ) * 4;
2799 int x = j % size;
2800 int y = j / size;
2801 vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 );
2802 vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 );
2803 vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 );
2804 vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 );
2805 return mat4( v1, v2, v3, v4 );
2806 }
2807#endif`,skinning_vertex:`#ifdef USE_SKINNING
2808 vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );
2809 vec4 skinned = vec4( 0.0 );
2810 skinned += boneMatX * skinVertex * skinWeight.x;
2811 skinned += boneMatY * skinVertex * skinWeight.y;
2812 skinned += boneMatZ * skinVertex * skinWeight.z;
2813 skinned += boneMatW * skinVertex * skinWeight.w;
2814 transformed = ( bindMatrixInverse * skinned ).xyz;
2815#endif`,skinnormal_vertex:`#ifdef USE_SKINNING
2816 mat4 skinMatrix = mat4( 0.0 );
2817 skinMatrix += skinWeight.x * boneMatX;
2818 skinMatrix += skinWeight.y * boneMatY;
2819 skinMatrix += skinWeight.z * boneMatZ;
2820 skinMatrix += skinWeight.w * boneMatW;
2821 skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;
2822 objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;
2823 #ifdef USE_TANGENT
2824 objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;
2825 #endif
2826#endif`,specularmap_fragment:`float specularStrength;
2827#ifdef USE_SPECULARMAP
2828 vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );
2829 specularStrength = texelSpecular.r;
2830#else
2831 specularStrength = 1.0;
2832#endif`,specularmap_pars_fragment:`#ifdef USE_SPECULARMAP
2833 uniform sampler2D specularMap;
2834#endif`,tonemapping_fragment:`#if defined( TONE_MAPPING )
2835 gl_FragColor.rgb = toneMapping( gl_FragColor.rgb );
2836#endif`,tonemapping_pars_fragment:`#ifndef saturate
2837#define saturate( a ) clamp( a, 0.0, 1.0 )
2838#endif
2839uniform float toneMappingExposure;
2840vec3 LinearToneMapping( vec3 color ) {
2841 return saturate( toneMappingExposure * color );
2842}
2843vec3 ReinhardToneMapping( vec3 color ) {
2844 color *= toneMappingExposure;
2845 return saturate( color / ( vec3( 1.0 ) + color ) );
2846}
2847vec3 CineonToneMapping( vec3 color ) {
2848 color *= toneMappingExposure;
2849 color = max( vec3( 0.0 ), color - 0.004 );
2850 return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );
2851}
2852vec3 RRTAndODTFit( vec3 v ) {
2853 vec3 a = v * ( v + 0.0245786 ) - 0.000090537;
2854 vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;
2855 return a / b;
2856}
2857vec3 ACESFilmicToneMapping( vec3 color ) {
2858 const mat3 ACESInputMat = mat3(
2859 vec3( 0.59719, 0.07600, 0.02840 ), vec3( 0.35458, 0.90834, 0.13383 ),
2860 vec3( 0.04823, 0.01566, 0.83777 )
2861 );
2862 const mat3 ACESOutputMat = mat3(
2863 vec3( 1.60475, -0.10208, -0.00327 ), vec3( -0.53108, 1.10813, -0.07276 ),
2864 vec3( -0.07367, -0.00605, 1.07602 )
2865 );
2866 color *= toneMappingExposure / 0.6;
2867 color = ACESInputMat * color;
2868 color = RRTAndODTFit( color );
2869 color = ACESOutputMat * color;
2870 return saturate( color );
2871}
2872const mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3(
2873 vec3( 1.6605, - 0.1246, - 0.0182 ),
2874 vec3( - 0.5876, 1.1329, - 0.1006 ),
2875 vec3( - 0.0728, - 0.0083, 1.1187 )
2876);
2877const mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3(
2878 vec3( 0.6274, 0.0691, 0.0164 ),
2879 vec3( 0.3293, 0.9195, 0.0880 ),
2880 vec3( 0.0433, 0.0113, 0.8956 )
2881);
2882vec3 agxDefaultContrastApprox( vec3 x ) {
2883 vec3 x2 = x * x;
2884 vec3 x4 = x2 * x2;
2885 return + 15.5 * x4 * x2
2886 - 40.14 * x4 * x
2887 + 31.96 * x4
2888 - 6.868 * x2 * x
2889 + 0.4298 * x2
2890 + 0.1191 * x
2891 - 0.00232;
2892}
2893vec3 AgXToneMapping( vec3 color ) {
2894 const mat3 AgXInsetMatrix = mat3(
2895 vec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ),
2896 vec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ),
2897 vec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 )
2898 );
2899 const mat3 AgXOutsetMatrix = mat3(
2900 vec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ),
2901 vec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ),
2902 vec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 )
2903 );
2904 const float AgxMinEv = - 12.47393; const float AgxMaxEv = 4.026069;
2905 color *= toneMappingExposure;
2906 color = LINEAR_SRGB_TO_LINEAR_REC2020 * color;
2907 color = AgXInsetMatrix * color;
2908 color = max( color, 1e-10 ); color = log2( color );
2909 color = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv );
2910 color = clamp( color, 0.0, 1.0 );
2911 color = agxDefaultContrastApprox( color );
2912 color = AgXOutsetMatrix * color;
2913 color = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) );
2914 color = LINEAR_REC2020_TO_LINEAR_SRGB * color;
2915 color = clamp( color, 0.0, 1.0 );
2916 return color;
2917}
2918vec3 NeutralToneMapping( vec3 color ) {
2919 const float StartCompression = 0.8 - 0.04;
2920 const float Desaturation = 0.15;
2921 color *= toneMappingExposure;
2922 float x = min( color.r, min( color.g, color.b ) );
2923 float offset = x < 0.08 ? x - 6.25 * x * x : 0.04;
2924 color -= offset;
2925 float peak = max( color.r, max( color.g, color.b ) );
2926 if ( peak < StartCompression ) return color;
2927 float d = 1. - StartCompression;
2928 float newPeak = 1. - d * d / ( peak + d - StartCompression );
2929 color *= newPeak / peak;
2930 float g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. );
2931 return mix( color, vec3( newPeak ), g );
2932}
2933vec3 CustomToneMapping( vec3 color ) { return color; }`,transmission_fragment:`#ifdef USE_TRANSMISSION
2934 material.transmission = transmission;
2935 material.transmissionAlpha = 1.0;
2936 material.thickness = thickness;
2937 material.attenuationDistance = attenuationDistance;
2938 material.attenuationColor = attenuationColor;
2939 #ifdef USE_TRANSMISSIONMAP
2940 material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;
2941 #endif
2942 #ifdef USE_THICKNESSMAP
2943 material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;
2944 #endif
2945 vec3 pos = vWorldPosition;
2946 vec3 v = normalize( cameraPosition - pos );
2947 vec3 n = transformNormalByInverseViewMatrix( normal, viewMatrix );
2948 vec4 transmitted = getIBLVolumeRefraction(
2949 n, v, material.roughness, material.diffuseContribution, material.specularColorBlended, material.specularF90,
2950 pos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness,
2951 material.attenuationColor, material.attenuationDistance );
2952 material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );
2953 totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );
2954#endif`,transmission_pars_fragment:`#ifdef USE_TRANSMISSION
2955 uniform float transmission;
2956 uniform float thickness;
2957 uniform float attenuationDistance;
2958 uniform vec3 attenuationColor;
2959 #ifdef USE_TRANSMISSIONMAP
2960 uniform sampler2D transmissionMap;
2961 #endif
2962 #ifdef USE_THICKNESSMAP
2963 uniform sampler2D thicknessMap;
2964 #endif
2965 uniform vec2 transmissionSamplerSize;
2966 uniform sampler2D transmissionSamplerMap;
2967 uniform mat4 modelMatrix;
2968 uniform mat4 projectionMatrix;
2969 varying vec3 vWorldPosition;
2970 float w0( float a ) {
2971 return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );
2972 }
2973 float w1( float a ) {
2974 return ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 );
2975 }
2976 float w2( float a ){
2977 return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );
2978 }
2979 float w3( float a ) {
2980 return ( 1.0 / 6.0 ) * ( a * a * a );
2981 }
2982 float g0( float a ) {
2983 return w0( a ) + w1( a );
2984 }
2985 float g1( float a ) {
2986 return w2( a ) + w3( a );
2987 }
2988 float h0( float a ) {
2989 return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );
2990 }
2991 float h1( float a ) {
2992 return 1.0 + w3( a ) / ( w2( a ) + w3( a ) );
2993 }
2994 vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) {
2995 uv = uv * texelSize.zw + 0.5;
2996 vec2 iuv = floor( uv );
2997 vec2 fuv = fract( uv );
2998 float g0x = g0( fuv.x );
2999 float g1x = g1( fuv.x );
3000 float h0x = h0( fuv.x );
3001 float h1x = h1( fuv.x );
3002 float h0y = h0( fuv.y );
3003 float h1y = h1( fuv.y );
3004 vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;
3005 vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;
3006 vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;
3007 vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;
3008 return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +
3009 g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );
3010 }
3011 vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {
3012 vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );
3013 vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );
3014 vec2 fLodSizeInv = 1.0 / fLodSize;
3015 vec2 cLodSizeInv = 1.0 / cLodSize;
3016 vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) );
3017 vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) );
3018 return mix( fSample, cSample, fract( lod ) );
3019 }
3020 vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {
3021 vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );
3022 vec3 modelScale;
3023 modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );
3024 modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );
3025 modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );
3026 return normalize( refractionVector ) * thickness * modelScale;
3027 }
3028 float applyIorToRoughness( const in float roughness, const in float ior ) {
3029 return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );
3030 }
3031 vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {
3032 float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );
3033 return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );
3034 }
3035 vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {
3036 if ( isinf( attenuationDistance ) ) {
3037 return vec3( 1.0 );
3038 } else {
3039 vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;
3040 vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance ); return transmittance;
3041 }
3042 }
3043 vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,
3044 const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,
3045 const in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness,
3046 const in vec3 attenuationColor, const in float attenuationDistance ) {
3047 vec4 transmittedLight;
3048 vec3 transmittance;
3049 #ifdef USE_DISPERSION
3050 float halfSpread = ( ior - 1.0 ) * 0.025 * dispersion;
3051 vec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread );
3052 for ( int i = 0; i < 3; i ++ ) {
3053 vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix );
3054 vec3 refractedRayExit = position + transmissionRay;
3055 vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );
3056 vec2 refractionCoords = ndcPos.xy / ndcPos.w;
3057 refractionCoords += 1.0;
3058 refractionCoords /= 2.0;
3059 vec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] );
3060 transmittedLight[ i ] = transmissionSample[ i ];
3061 transmittedLight.a += transmissionSample.a;
3062 transmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ];
3063 }
3064 transmittedLight.a /= 3.0;
3065 #else
3066 vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );
3067 vec3 refractedRayExit = position + transmissionRay;
3068 vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );
3069 vec2 refractionCoords = ndcPos.xy / ndcPos.w;
3070 refractionCoords += 1.0;
3071 refractionCoords /= 2.0;
3072 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );
3073 transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance );
3074 #endif
3075 vec3 attenuatedColor = transmittance * transmittedLight.rgb;
3076 vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );
3077 float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0;
3078 return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor );
3079 }
3080#endif`,uv_pars_fragment:`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
3081 varying vec2 vUv;
3082#endif
3083#ifdef USE_MAP
3084 varying vec2 vMapUv;
3085#endif
3086#ifdef USE_ALPHAMAP
3087 varying vec2 vAlphaMapUv;
3088#endif
3089#ifdef USE_LIGHTMAP
3090 varying vec2 vLightMapUv;
3091#endif
3092#ifdef USE_AOMAP
3093 varying vec2 vAoMapUv;
3094#endif
3095#ifdef USE_BUMPMAP
3096 varying vec2 vBumpMapUv;
3097#endif
3098#ifdef USE_NORMALMAP
3099 varying vec2 vNormalMapUv;
3100#endif
3101#ifdef USE_EMISSIVEMAP
3102 varying vec2 vEmissiveMapUv;
3103#endif
3104#ifdef USE_METALNESSMAP
3105 varying vec2 vMetalnessMapUv;
3106#endif
3107#ifdef USE_ROUGHNESSMAP
3108 varying vec2 vRoughnessMapUv;
3109#endif
3110#ifdef USE_DIFFUSE_ROUGHNESSMAP
3111 varying vec2 vDiffuseRoughnessMapUv;
3112#endif
3113#ifdef USE_ANISOTROPYMAP
3114 varying vec2 vAnisotropyMapUv;
3115#endif
3116#ifdef USE_CLEARCOATMAP
3117 varying vec2 vClearcoatMapUv;
3118#endif
3119#ifdef USE_CLEARCOAT_NORMALMAP
3120 varying vec2 vClearcoatNormalMapUv;
3121#endif
3122#ifdef USE_CLEARCOAT_ROUGHNESSMAP
3123 varying vec2 vClearcoatRoughnessMapUv;
3124#endif
3125#ifdef USE_IRIDESCENCEMAP
3126 varying vec2 vIridescenceMapUv;
3127#endif
3128#ifdef USE_IRIDESCENCE_THICKNESSMAP
3129 varying vec2 vIridescenceThicknessMapUv;
3130#endif
3131#ifdef USE_SHEEN_COLORMAP
3132 varying vec2 vSheenColorMapUv;
3133#endif
3134#ifdef USE_SHEEN_ROUGHNESSMAP
3135 varying vec2 vSheenRoughnessMapUv;
3136#endif
3137#ifdef USE_SPECULARMAP
3138 varying vec2 vSpecularMapUv;
3139#endif
3140#ifdef USE_SPECULAR_COLORMAP
3141 varying vec2 vSpecularColorMapUv;
3142#endif
3143#ifdef USE_SPECULAR_INTENSITYMAP
3144 varying vec2 vSpecularIntensityMapUv;
3145#endif
3146#ifdef USE_TRANSMISSIONMAP
3147 uniform mat3 transmissionMapTransform;
3148 varying vec2 vTransmissionMapUv;
3149#endif
3150#ifdef USE_THICKNESSMAP
3151 uniform mat3 thicknessMapTransform;
3152 varying vec2 vThicknessMapUv;
3153#endif`,uv_pars_vertex:`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
3154 varying vec2 vUv;
3155#endif
3156#ifdef USE_MAP
3157 uniform mat3 mapTransform;
3158 varying vec2 vMapUv;
3159#endif
3160#ifdef USE_ALPHAMAP
3161 uniform mat3 alphaMapTransform;
3162 varying vec2 vAlphaMapUv;
3163#endif
3164#ifdef USE_LIGHTMAP
3165 uniform mat3 lightMapTransform;
3166 varying vec2 vLightMapUv;
3167#endif
3168#ifdef USE_AOMAP
3169 uniform mat3 aoMapTransform;
3170 varying vec2 vAoMapUv;
3171#endif
3172#ifdef USE_BUMPMAP
3173 uniform mat3 bumpMapTransform;
3174 varying vec2 vBumpMapUv;
3175#endif
3176#ifdef USE_NORMALMAP
3177 uniform mat3 normalMapTransform;
3178 varying vec2 vNormalMapUv;
3179#endif
3180#ifdef USE_DISPLACEMENTMAP
3181 uniform mat3 displacementMapTransform;
3182 varying vec2 vDisplacementMapUv;
3183#endif
3184#ifdef USE_EMISSIVEMAP
3185 uniform mat3 emissiveMapTransform;
3186 varying vec2 vEmissiveMapUv;
3187#endif
3188#ifdef USE_METALNESSMAP
3189 uniform mat3 metalnessMapTransform;
3190 varying vec2 vMetalnessMapUv;
3191#endif
3192#ifdef USE_ROUGHNESSMAP
3193 uniform mat3 roughnessMapTransform;
3194 varying vec2 vRoughnessMapUv;
3195#endif
3196#ifdef USE_DIFFUSE_ROUGHNESSMAP
3197 uniform mat3 diffuseRoughnessMapTransform;
3198 varying vec2 vDiffuseRoughnessMapUv;
3199#endif
3200#ifdef USE_ANISOTROPYMAP
3201 uniform mat3 anisotropyMapTransform;
3202 varying vec2 vAnisotropyMapUv;
3203#endif
3204#ifdef USE_CLEARCOATMAP
3205 uniform mat3 clearcoatMapTransform;
3206 varying vec2 vClearcoatMapUv;
3207#endif
3208#ifdef USE_CLEARCOAT_NORMALMAP
3209 uniform mat3 clearcoatNormalMapTransform;
3210 varying vec2 vClearcoatNormalMapUv;
3211#endif
3212#ifdef USE_CLEARCOAT_ROUGHNESSMAP
3213 uniform mat3 clearcoatRoughnessMapTransform;
3214 varying vec2 vClearcoatRoughnessMapUv;
3215#endif
3216#ifdef USE_SHEEN_COLORMAP
3217 uniform mat3 sheenColorMapTransform;
3218 varying vec2 vSheenColorMapUv;
3219#endif
3220#ifdef USE_SHEEN_ROUGHNESSMAP
3221 uniform mat3 sheenRoughnessMapTransform;
3222 varying vec2 vSheenRoughnessMapUv;
3223#endif
3224#ifdef USE_IRIDESCENCEMAP
3225 uniform mat3 iridescenceMapTransform;
3226 varying vec2 vIridescenceMapUv;
3227#endif
3228#ifdef USE_IRIDESCENCE_THICKNESSMAP
3229 uniform mat3 iridescenceThicknessMapTransform;
3230 varying vec2 vIridescenceThicknessMapUv;
3231#endif
3232#ifdef USE_SPECULARMAP
3233 uniform mat3 specularMapTransform;
3234 varying vec2 vSpecularMapUv;
3235#endif
3236#ifdef USE_SPECULAR_COLORMAP
3237 uniform mat3 specularColorMapTransform;
3238 varying vec2 vSpecularColorMapUv;
3239#endif
3240#ifdef USE_SPECULAR_INTENSITYMAP
3241 uniform mat3 specularIntensityMapTransform;
3242 varying vec2 vSpecularIntensityMapUv;
3243#endif
3244#ifdef USE_TRANSMISSIONMAP
3245 uniform mat3 transmissionMapTransform;
3246 varying vec2 vTransmissionMapUv;
3247#endif
3248#ifdef USE_THICKNESSMAP
3249 uniform mat3 thicknessMapTransform;
3250 varying vec2 vThicknessMapUv;
3251#endif`,uv_vertex:`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
3252 vUv = vec3( uv, 1 ).xy;
3253#endif
3254#ifdef USE_MAP
3255 vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;
3256#endif
3257#ifdef USE_ALPHAMAP
3258 vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;
3259#endif
3260#ifdef USE_LIGHTMAP
3261 vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;
3262#endif
3263#ifdef USE_AOMAP
3264 vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;
3265#endif
3266#ifdef USE_BUMPMAP
3267 vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;
3268#endif
3269#ifdef USE_NORMALMAP
3270 vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;
3271#endif
3272#ifdef USE_DISPLACEMENTMAP
3273 vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;
3274#endif
3275#ifdef USE_EMISSIVEMAP
3276 vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;
3277#endif
3278#ifdef USE_METALNESSMAP
3279 vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;
3280#endif
3281#ifdef USE_ROUGHNESSMAP
3282 vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;
3283#endif
3284#ifdef USE_DIFFUSE_ROUGHNESSMAP
3285 vDiffuseRoughnessMapUv = ( diffuseRoughnessMapTransform * vec3( DIFFUSE_ROUGHNESSMAP_UV, 1 ) ).xy;
3286#endif
3287#ifdef USE_ANISOTROPYMAP
3288 vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy;
3289#endif
3290#ifdef USE_CLEARCOATMAP
3291 vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;
3292#endif
3293#ifdef USE_CLEARCOAT_NORMALMAP
3294 vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;
3295#endif
3296#ifdef USE_CLEARCOAT_ROUGHNESSMAP
3297 vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;
3298#endif
3299#ifdef USE_IRIDESCENCEMAP
3300 vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;
3301#endif
3302#ifdef USE_IRIDESCENCE_THICKNESSMAP
3303 vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;
3304#endif
3305#ifdef USE_SHEEN_COLORMAP
3306 vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;
3307#endif
3308#ifdef USE_SHEEN_ROUGHNESSMAP
3309 vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;
3310#endif
3311#ifdef USE_SPECULARMAP
3312 vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;
3313#endif
3314#ifdef USE_SPECULAR_COLORMAP
3315 vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;
3316#endif
3317#ifdef USE_SPECULAR_INTENSITYMAP
3318 vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;
3319#endif
3320#ifdef USE_TRANSMISSIONMAP
3321 vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;
3322#endif
3323#ifdef USE_THICKNESSMAP
3324 vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;
3325#endif`,worldpos_vertex:`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0
3326 vec4 worldPosition = vec4( transformed, 1.0 );
3327 #ifdef USE_BATCHING
3328 worldPosition = batchingMatrix * worldPosition;
3329 #endif
3330 #ifdef USE_INSTANCING
3331 worldPosition = instanceMatrix * worldPosition;
3332 #endif
3333 worldPosition = modelMatrix * worldPosition;
3334#endif`,background_vert:`varying vec2 vUv;
3335uniform mat3 uvTransform;
3336void main() {
3337 vUv = ( uvTransform * vec3( uv, 1 ) ).xy;
3338 gl_Position = vec4( position.xy, 1.0, 1.0 );
3339}`,background_frag:`uniform sampler2D t2D;
3340uniform float backgroundIntensity;
3341varying vec2 vUv;
3342void main() {
3343 vec4 texColor = texture2D( t2D, vUv );
3344 #ifdef DECODE_VIDEO_TEXTURE
3345 texColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );
3346 #endif
3347 texColor.rgb *= backgroundIntensity;
3348 gl_FragColor = texColor;
3349 #include <tonemapping_fragment>
3350 #include <colorspace_fragment>
3351}`,backgroundCube_vert:`varying vec3 vWorldDirection;
3352#include <common>
3353void main() {
3354 vWorldDirection = transformDirection( position, modelMatrix );
3355 #include <begin_vertex>
3356 #include <project_vertex>
3357 gl_Position.z = gl_Position.w;
3358}`,backgroundCube_frag:`uniform float backgroundBlurriness;
3359uniform float backgroundIntensity;
3360uniform mat3 backgroundRotation;
3361varying vec3 vWorldDirection;
3362#include <envmap_common_pars_fragment>
3363void main() {
3364 #ifdef ENVMAP_TYPE_PMREM
3365 vec4 texColor = textureLod( envMap, backgroundRotation * vWorldDirection, roughnessToMip( backgroundBlurriness ) );
3366 #else
3367 vec4 texColor = textureCube( envMap, backgroundRotation * vWorldDirection );
3368 #endif
3369 texColor.rgb *= backgroundIntensity;
3370 gl_FragColor = texColor;
3371 #include <tonemapping_fragment>
3372 #include <colorspace_fragment>
3373}`,cube_vert:`varying vec3 vWorldDirection;
3374#include <common>
3375void main() {
3376 vWorldDirection = transformDirection( position, modelMatrix );
3377 #include <begin_vertex>
3378 #include <project_vertex>
3379 gl_Position.z = gl_Position.w;
3380}`,cube_frag:`uniform samplerCube tCube;
3381uniform float tFlip;
3382uniform float opacity;
3383varying vec3 vWorldDirection;
3384void main() {
3385 vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );
3386 gl_FragColor = texColor;
3387 gl_FragColor.a *= opacity;
3388 #include <tonemapping_fragment>
3389 #include <colorspace_fragment>
3390}`,depth_vert:`#include <common>
3391#include <batching_pars_vertex>
3392#include <uv_pars_vertex>
3393#include <displacementmap_pars_vertex>
3394#include <morphtarget_pars_vertex>
3395#include <skinning_pars_vertex>
3396#include <logdepthbuf_pars_vertex>
3397#include <clipping_planes_pars_vertex>
3398varying vec2 vHighPrecisionZW;
3399void main() {
3400 #include <uv_vertex>
3401 #include <batching_vertex>
3402 #include <skinbase_vertex>
3403 #include <morphinstance_vertex>
3404 #ifdef USE_DISPLACEMENTMAP
3405 #include <beginnormal_vertex>
3406 #include <morphnormal_vertex>
3407 #include <skinnormal_vertex>
3408 #endif
3409 #include <begin_vertex>
3410 #include <morphtarget_vertex>
3411 #include <skinning_vertex>
3412 #include <displacementmap_vertex>
3413 #include <project_vertex>
3414 #include <logdepthbuf_vertex>
3415 #include <clipping_planes_vertex>
3416 vHighPrecisionZW = gl_Position.zw;
3417}`,depth_frag:`#if DEPTH_PACKING == 3200
3418 uniform float opacity;
3419#endif
3420#include <common>
3421#include <packing>
3422#include <uv_pars_fragment>
3423#include <map_pars_fragment>
3424#include <alphamap_pars_fragment>
3425#include <alphatest_pars_fragment>
3426#include <alphahash_pars_fragment>
3427#include <logdepthbuf_pars_fragment>
3428#include <clipping_planes_pars_fragment>
3429varying vec2 vHighPrecisionZW;
3430void main() {
3431 vec4 diffuseColor = vec4( 1.0 );
3432 #include <clipping_planes_fragment>
3433 #if DEPTH_PACKING == 3200
3434 diffuseColor.a = opacity;
3435 #endif
3436 #include <map_fragment>
3437 #include <alphamap_fragment>
3438 #include <alphatest_fragment>
3439 #include <alphahash_fragment>
3440 #include <logdepthbuf_fragment>
3441 #ifdef USE_REVERSED_DEPTH_BUFFER
3442 float fragCoordZ = vHighPrecisionZW[ 0 ] / vHighPrecisionZW[ 1 ];
3443 #else
3444 float fragCoordZ = 0.5 * vHighPrecisionZW[ 0 ] / vHighPrecisionZW[ 1 ] + 0.5;
3445 #endif
3446 #if DEPTH_PACKING == 3200
3447 gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );
3448 #elif DEPTH_PACKING == 3201
3449 gl_FragColor = packDepthToRGBA( fragCoordZ );
3450 #elif DEPTH_PACKING == 3202
3451 gl_FragColor = vec4( packDepthToRGB( fragCoordZ ), 1.0 );
3452 #elif DEPTH_PACKING == 3203
3453 gl_FragColor = vec4( packDepthToRG( fragCoordZ ), 0.0, 1.0 );
3454 #endif
3455}`,distance_vert:`#define DISTANCE
3456varying vec3 vWorldPosition;
3457#include <common>
3458#include <batching_pars_vertex>
3459#include <uv_pars_vertex>
3460#include <displacementmap_pars_vertex>
3461#include <morphtarget_pars_vertex>
3462#include <skinning_pars_vertex>
3463#include <clipping_planes_pars_vertex>
3464void main() {
3465 #include <uv_vertex>
3466 #include <batching_vertex>
3467 #include <skinbase_vertex>
3468 #include <morphinstance_vertex>
3469 #ifdef USE_DISPLACEMENTMAP
3470 #include <beginnormal_vertex>
3471 #include <morphnormal_vertex>
3472 #include <skinnormal_vertex>
3473 #endif
3474 #include <begin_vertex>
3475 #include <morphtarget_vertex>
3476 #include <skinning_vertex>
3477 #include <displacementmap_vertex>
3478 #include <project_vertex>
3479 #include <worldpos_vertex>
3480 #include <clipping_planes_vertex>
3481 vWorldPosition = worldPosition.xyz;
3482}`,distance_frag:`#define DISTANCE
3483uniform vec3 referencePosition;
3484uniform float nearDistance;
3485uniform float farDistance;
3486varying vec3 vWorldPosition;
3487#include <common>
3488#include <uv_pars_fragment>
3489#include <map_pars_fragment>
3490#include <alphamap_pars_fragment>
3491#include <alphatest_pars_fragment>
3492#include <alphahash_pars_fragment>
3493#include <clipping_planes_pars_fragment>
3494void main() {
3495 vec4 diffuseColor = vec4( 1.0 );
3496 #include <clipping_planes_fragment>
3497 #include <map_fragment>
3498 #include <alphamap_fragment>
3499 #include <alphatest_fragment>
3500 #include <alphahash_fragment>
3501 float dist = length( vWorldPosition - referencePosition );
3502 dist = ( dist - nearDistance ) / ( farDistance - nearDistance );
3503 dist = saturate( dist );
3504 gl_FragColor = vec4( dist, 0.0, 0.0, 1.0 );
3505}`,equirect_vert:`varying vec3 vWorldDirection;
3506#include <common>
3507void main() {
3508 vWorldDirection = transformDirection( position, modelMatrix );
3509 #include <begin_vertex>
3510 #include <project_vertex>
3511}`,equirect_frag:`uniform sampler2D tEquirect;
3512varying vec3 vWorldDirection;
3513#include <common>
3514void main() {
3515 vec3 direction = normalize( vWorldDirection );
3516 vec2 sampleUV = equirectUv( direction );
3517 gl_FragColor = texture2D( tEquirect, sampleUV );
3518 #include <tonemapping_fragment>
3519 #include <colorspace_fragment>
3520}`,linedashed_vert:`uniform float scale;
3521attribute float lineDistance;
3522varying float vLineDistance;
3523#include <common>
3524#include <uv_pars_vertex>
3525#include <color_pars_vertex>
3526#include <fog_pars_vertex>
3527#include <morphtarget_pars_vertex>
3528#include <logdepthbuf_pars_vertex>
3529#include <clipping_planes_pars_vertex>
3530void main() {
3531 vLineDistance = scale * lineDistance;
3532 #include <uv_vertex>
3533 #include <color_vertex>
3534 #include <morphinstance_vertex>
3535 #include <morphcolor_vertex>
3536 #include <begin_vertex>
3537 #include <morphtarget_vertex>
3538 #include <project_vertex>
3539 #include <logdepthbuf_vertex>
3540 #include <clipping_planes_vertex>
3541 #include <fog_vertex>
3542}`,linedashed_frag:`uniform vec3 diffuse;
3543uniform float opacity;
3544uniform float dashSize;
3545uniform float totalSize;
3546varying float vLineDistance;
3547#include <common>
3548#include <color_pars_fragment>
3549#include <uv_pars_fragment>
3550#include <map_pars_fragment>
3551#include <fog_pars_fragment>
3552#include <logdepthbuf_pars_fragment>
3553#include <clipping_planes_pars_fragment>
3554void main() {
3555 vec4 diffuseColor = vec4( diffuse, opacity );
3556 #include <clipping_planes_fragment>
3557 if ( mod( vLineDistance, totalSize ) > dashSize ) {
3558 discard;
3559 }
3560 vec3 outgoingLight = vec3( 0.0 );
3561 #include <logdepthbuf_fragment>
3562 #include <map_fragment>
3563 #include <color_fragment>
3564 outgoingLight = diffuseColor.rgb;
3565 #include <opaque_fragment>
3566 #include <tonemapping_fragment>
3567 #include <colorspace_fragment>
3568 #include <fog_fragment>
3569 #include <premultiplied_alpha_fragment>
3570}`,meshbasic_vert:`#include <common>
3571#include <batching_pars_vertex>
3572#include <uv_pars_vertex>
3573#include <envmap_pars_vertex>
3574#include <color_pars_vertex>
3575#include <fog_pars_vertex>
3576#include <morphtarget_pars_vertex>
3577#include <skinning_pars_vertex>
3578#include <logdepthbuf_pars_vertex>
3579#include <clipping_planes_pars_vertex>
3580void main() {
3581 #include <uv_vertex>
3582 #include <color_vertex>
3583 #include <morphinstance_vertex>
3584 #include <morphcolor_vertex>
3585 #include <batching_vertex>
3586 #if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )
3587 #include <beginnormal_vertex>
3588 #include <morphnormal_vertex>
3589 #include <skinbase_vertex>
3590 #include <skinnormal_vertex>
3591 #include <defaultnormal_vertex>
3592 #endif
3593 #include <begin_vertex>
3594 #include <morphtarget_vertex>
3595 #include <skinning_vertex>
3596 #include <project_vertex>
3597 #include <logdepthbuf_vertex>
3598 #include <clipping_planes_vertex>
3599 #include <worldpos_vertex>
3600 #include <envmap_vertex>
3601 #include <fog_vertex>
3602}`,meshbasic_frag:`uniform vec3 diffuse;
3603uniform float opacity;
3604#ifndef FLAT_SHADED
3605 varying vec3 vNormal;
3606#endif
3607#include <common>
3608#include <dithering_pars_fragment>
3609#include <color_pars_fragment>
3610#include <uv_pars_fragment>
3611#include <map_pars_fragment>
3612#include <alphamap_pars_fragment>
3613#include <alphatest_pars_fragment>
3614#include <alphahash_pars_fragment>
3615#include <aomap_pars_fragment>
3616#include <lightmap_pars_fragment>
3617#include <envmap_common_pars_fragment>
3618#include <envmap_pars_fragment>
3619#include <fog_pars_fragment>
3620#include <specularmap_pars_fragment>
3621#include <logdepthbuf_pars_fragment>
3622#include <clipping_planes_pars_fragment>
3623void main() {
3624 vec4 diffuseColor = vec4( diffuse, opacity );
3625 #include <clipping_planes_fragment>
3626 #include <logdepthbuf_fragment>
3627 #include <map_fragment>
3628 #include <color_fragment>
3629 #include <alphamap_fragment>
3630 #include <alphatest_fragment>
3631 #include <alphahash_fragment>
3632 #include <specularmap_fragment>
3633 ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
3634 #ifdef USE_LIGHTMAP
3635 vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );
3636 reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;
3637 #else
3638 reflectedLight.indirectDiffuse += vec3( 1.0 );
3639 #endif
3640 #include <aomap_fragment>
3641 reflectedLight.indirectDiffuse *= diffuseColor.rgb;
3642 vec3 outgoingLight = reflectedLight.indirectDiffuse;
3643 #include <envmap_fragment>
3644 #include <opaque_fragment>
3645 #include <tonemapping_fragment>
3646 #include <colorspace_fragment>
3647 #include <fog_fragment>
3648 #include <premultiplied_alpha_fragment>
3649 #include <dithering_fragment>
3650}`,meshlambert_vert:`#define LAMBERT
3651varying vec3 vViewPosition;
3652#include <common>
3653#include <batching_pars_vertex>
3654#include <uv_pars_vertex>
3655#include <displacementmap_pars_vertex>
3656#include <envmap_pars_vertex>
3657#include <color_pars_vertex>
3658#include <fog_pars_vertex>
3659#include <normal_pars_vertex>
3660#include <morphtarget_pars_vertex>
3661#include <skinning_pars_vertex>
3662#include <shadowmap_pars_vertex>
3663#include <logdepthbuf_pars_vertex>
3664#include <clipping_planes_pars_vertex>
3665void main() {
3666 #include <uv_vertex>
3667 #include <color_vertex>
3668 #include <morphinstance_vertex>
3669 #include <morphcolor_vertex>
3670 #include <batching_vertex>
3671 #include <beginnormal_vertex>
3672 #include <morphnormal_vertex>
3673 #include <skinbase_vertex>
3674 #include <skinnormal_vertex>
3675 #include <defaultnormal_vertex>
3676 #include <normal_vertex>
3677 #include <begin_vertex>
3678 #include <morphtarget_vertex>
3679 #include <skinning_vertex>
3680 #include <displacementmap_vertex>
3681 #include <project_vertex>
3682 #include <logdepthbuf_vertex>
3683 #include <clipping_planes_vertex>
3684 vViewPosition = - mvPosition.xyz;
3685 #include <worldpos_vertex>
3686 #include <envmap_vertex>
3687 #include <shadowmap_vertex>
3688 #include <fog_vertex>
3689}`,meshlambert_frag:`#define LAMBERT
3690uniform vec3 diffuse;
3691uniform vec3 emissive;
3692uniform float opacity;
3693#include <common>
3694#include <dithering_pars_fragment>
3695#include <color_pars_fragment>
3696#include <uv_pars_fragment>
3697#include <map_pars_fragment>
3698#include <alphamap_pars_fragment>
3699#include <alphatest_pars_fragment>
3700#include <alphahash_pars_fragment>
3701#include <aomap_pars_fragment>
3702#include <lightmap_pars_fragment>
3703#include <emissivemap_pars_fragment>
3704#include <envmap_common_pars_fragment>
3705#include <envmap_pars_fragment>
3706#include <envmap_physical_pars_fragment>
3707#include <fog_pars_fragment>
3708#include <bsdfs>
3709#include <lights_pars_begin>
3710#include <normal_pars_fragment>
3711#include <lights_lambert_pars_fragment>
3712#include <shadowmap_pars_fragment>
3713#include <bumpmap_pars_fragment>
3714#include <normalmap_pars_fragment>
3715#include <specularmap_pars_fragment>
3716#include <logdepthbuf_pars_fragment>
3717#include <clipping_planes_pars_fragment>
3718void main() {
3719 vec4 diffuseColor = vec4( diffuse, opacity );
3720 #include <clipping_planes_fragment>
3721 ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
3722 vec3 totalEmissiveRadiance = emissive;
3723 #include <logdepthbuf_fragment>
3724 #include <map_fragment>
3725 #include <color_fragment>
3726 #include <alphamap_fragment>
3727 #include <alphatest_fragment>
3728 #include <alphahash_fragment>
3729 #include <specularmap_fragment>
3730 #include <normal_fragment_begin>
3731 #include <normal_fragment_maps>
3732 #include <emissivemap_fragment>
3733 #include <lights_lambert_fragment>
3734 #include <lights_fragment_begin>
3735 #include <lights_fragment_maps>
3736 #include <lights_fragment_end>
3737 #include <aomap_fragment>
3738 vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;
3739 #include <envmap_fragment>
3740 #include <opaque_fragment>
3741 #include <tonemapping_fragment>
3742 #include <colorspace_fragment>
3743 #include <fog_fragment>
3744 #include <premultiplied_alpha_fragment>
3745 #include <dithering_fragment>
3746}`,meshmatcap_vert:`#define MATCAP
3747varying vec3 vViewPosition;
3748#include <common>
3749#include <batching_pars_vertex>
3750#include <uv_pars_vertex>
3751#include <color_pars_vertex>
3752#include <displacementmap_pars_vertex>
3753#include <fog_pars_vertex>
3754#include <normal_pars_vertex>
3755#include <morphtarget_pars_vertex>
3756#include <skinning_pars_vertex>
3757#include <logdepthbuf_pars_vertex>
3758#include <clipping_planes_pars_vertex>
3759void main() {
3760 #include <uv_vertex>
3761 #include <color_vertex>
3762 #include <morphinstance_vertex>
3763 #include <morphcolor_vertex>
3764 #include <batching_vertex>
3765 #include <beginnormal_vertex>
3766 #include <morphnormal_vertex>
3767 #include <skinbase_vertex>
3768 #include <skinnormal_vertex>
3769 #include <defaultnormal_vertex>
3770 #include <normal_vertex>
3771 #include <begin_vertex>
3772 #include <morphtarget_vertex>
3773 #include <skinning_vertex>
3774 #include <displacementmap_vertex>
3775 #include <project_vertex>
3776 #include <logdepthbuf_vertex>
3777 #include <clipping_planes_vertex>
3778 #include <fog_vertex>
3779 vViewPosition = - mvPosition.xyz;
3780}`,meshmatcap_frag:`#define MATCAP
3781uniform vec3 diffuse;
3782uniform float opacity;
3783uniform sampler2D matcap;
3784varying vec3 vViewPosition;
3785#include <common>
3786#include <dithering_pars_fragment>
3787#include <color_pars_fragment>
3788#include <uv_pars_fragment>
3789#include <map_pars_fragment>
3790#include <alphamap_pars_fragment>
3791#include <alphatest_pars_fragment>
3792#include <alphahash_pars_fragment>
3793#include <fog_pars_fragment>
3794#include <normal_pars_fragment>
3795#include <bumpmap_pars_fragment>
3796#include <normalmap_pars_fragment>
3797#include <logdepthbuf_pars_fragment>
3798#include <clipping_planes_pars_fragment>
3799void main() {
3800 vec4 diffuseColor = vec4( diffuse, opacity );
3801 #include <clipping_planes_fragment>
3802 #include <logdepthbuf_fragment>
3803 #include <map_fragment>
3804 #include <color_fragment>
3805 #include <alphamap_fragment>
3806 #include <alphatest_fragment>
3807 #include <alphahash_fragment>
3808 #include <normal_fragment_begin>
3809 #include <normal_fragment_maps>
3810 vec3 viewDir = normalize( vViewPosition );
3811 vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );
3812 vec3 y = cross( viewDir, x );
3813 vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;
3814 #ifdef USE_MATCAP
3815 vec4 matcapColor = texture2D( matcap, uv );
3816 #else
3817 vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );
3818 #endif
3819 vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;
3820 #include <opaque_fragment>
3821 #include <tonemapping_fragment>
3822 #include <colorspace_fragment>
3823 #include <fog_fragment>
3824 #include <premultiplied_alpha_fragment>
3825 #include <dithering_fragment>
3826}`,meshnormal_vert:`#define NORMAL
3827#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )
3828 varying vec3 vViewPosition;
3829#endif
3830#include <common>
3831#include <batching_pars_vertex>
3832#include <uv_pars_vertex>
3833#include <displacementmap_pars_vertex>
3834#include <normal_pars_vertex>
3835#include <morphtarget_pars_vertex>
3836#include <skinning_pars_vertex>
3837#include <logdepthbuf_pars_vertex>
3838#include <clipping_planes_pars_vertex>
3839void main() {
3840 #include <uv_vertex>
3841 #include <batching_vertex>
3842 #include <beginnormal_vertex>
3843 #include <morphinstance_vertex>
3844 #include <morphnormal_vertex>
3845 #include <skinbase_vertex>
3846 #include <skinnormal_vertex>
3847 #include <defaultnormal_vertex>
3848 #include <normal_vertex>
3849 #include <begin_vertex>
3850 #include <morphtarget_vertex>
3851 #include <skinning_vertex>
3852 #include <displacementmap_vertex>
3853 #include <project_vertex>
3854 #include <logdepthbuf_vertex>
3855 #include <clipping_planes_vertex>
3856#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )
3857 vViewPosition = - mvPosition.xyz;
3858#endif
3859}`,meshnormal_frag:`#define NORMAL
3860uniform float opacity;
3861#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )
3862 varying vec3 vViewPosition;
3863#endif
3864#include <uv_pars_fragment>
3865#include <normal_pars_fragment>
3866#include <bumpmap_pars_fragment>
3867#include <normalmap_pars_fragment>
3868#include <logdepthbuf_pars_fragment>
3869#include <clipping_planes_pars_fragment>
3870void main() {
3871 vec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity );
3872 #include <clipping_planes_fragment>
3873 #include <logdepthbuf_fragment>
3874 #include <normal_fragment_begin>
3875 #include <normal_fragment_maps>
3876 gl_FragColor = vec4( normalize( normal ) * 0.5 + 0.5, diffuseColor.a );
3877 #ifdef OPAQUE
3878 gl_FragColor.a = 1.0;
3879 #endif
3880}`,meshphong_vert:`#define PHONG
3881varying vec3 vViewPosition;
3882#include <common>
3883#include <batching_pars_vertex>
3884#include <uv_pars_vertex>
3885#include <displacementmap_pars_vertex>
3886#include <envmap_pars_vertex>
3887#include <color_pars_vertex>
3888#include <fog_pars_vertex>
3889#include <normal_pars_vertex>
3890#include <morphtarget_pars_vertex>
3891#include <skinning_pars_vertex>
3892#include <shadowmap_pars_vertex>
3893#include <logdepthbuf_pars_vertex>
3894#include <clipping_planes_pars_vertex>
3895void main() {
3896 #include <uv_vertex>
3897 #include <color_vertex>
3898 #include <morphcolor_vertex>
3899 #include <batching_vertex>
3900 #include <beginnormal_vertex>
3901 #include <morphinstance_vertex>
3902 #include <morphnormal_vertex>
3903 #include <skinbase_vertex>
3904 #include <skinnormal_vertex>
3905 #include <defaultnormal_vertex>
3906 #include <normal_vertex>
3907 #include <begin_vertex>
3908 #include <morphtarget_vertex>
3909 #include <skinning_vertex>
3910 #include <displacementmap_vertex>
3911 #include <project_vertex>
3912 #include <logdepthbuf_vertex>
3913 #include <clipping_planes_vertex>
3914 vViewPosition = - mvPosition.xyz;
3915 #include <worldpos_vertex>
3916 #include <envmap_vertex>
3917 #include <shadowmap_vertex>
3918 #include <fog_vertex>
3919}`,meshphong_frag:`#define PHONG
3920uniform vec3 diffuse;
3921uniform vec3 emissive;
3922uniform vec3 specular;
3923uniform float shininess;
3924uniform float opacity;
3925#include <common>
3926#include <dithering_pars_fragment>
3927#include <color_pars_fragment>
3928#include <uv_pars_fragment>
3929#include <map_pars_fragment>
3930#include <alphamap_pars_fragment>
3931#include <alphatest_pars_fragment>
3932#include <alphahash_pars_fragment>
3933#include <aomap_pars_fragment>
3934#include <lightmap_pars_fragment>
3935#include <emissivemap_pars_fragment>
3936#include <envmap_common_pars_fragment>
3937#include <envmap_pars_fragment>
3938#include <envmap_physical_pars_fragment>
3939#include <fog_pars_fragment>
3940#include <bsdfs>
3941#include <lights_pars_begin>
3942#include <normal_pars_fragment>
3943#include <lights_phong_pars_fragment>
3944#include <shadowmap_pars_fragment>
3945#include <bumpmap_pars_fragment>
3946#include <normalmap_pars_fragment>
3947#include <specularmap_pars_fragment>
3948#include <logdepthbuf_pars_fragment>
3949#include <clipping_planes_pars_fragment>
3950void main() {
3951 vec4 diffuseColor = vec4( diffuse, opacity );
3952 #include <clipping_planes_fragment>
3953 ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
3954 vec3 totalEmissiveRadiance = emissive;
3955 #include <logdepthbuf_fragment>
3956 #include <map_fragment>
3957 #include <color_fragment>
3958 #include <alphamap_fragment>
3959 #include <alphatest_fragment>
3960 #include <alphahash_fragment>
3961 #include <specularmap_fragment>
3962 #include <normal_fragment_begin>
3963 #include <normal_fragment_maps>
3964 #include <emissivemap_fragment>
3965 #include <lights_phong_fragment>
3966 #include <lights_fragment_begin>
3967 #include <lights_fragment_maps>
3968 #include <lights_fragment_end>
3969 #include <aomap_fragment>
3970 vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;
3971 #include <envmap_fragment>
3972 #include <opaque_fragment>
3973 #include <tonemapping_fragment>
3974 #include <colorspace_fragment>
3975 #include <fog_fragment>
3976 #include <premultiplied_alpha_fragment>
3977 #include <dithering_fragment>
3978}`,meshphysical_vert:`#define STANDARD
3979varying vec3 vViewPosition;
3980#ifdef USE_TRANSMISSION
3981 varying vec3 vWorldPosition;
3982#endif
3983#include <common>
3984#include <batching_pars_vertex>
3985#include <uv_pars_vertex>
3986#include <displacementmap_pars_vertex>
3987#include <color_pars_vertex>
3988#include <fog_pars_vertex>
3989#include <normal_pars_vertex>
3990#include <morphtarget_pars_vertex>
3991#include <skinning_pars_vertex>
3992#include <shadowmap_pars_vertex>
3993#include <logdepthbuf_pars_vertex>
3994#include <clipping_planes_pars_vertex>
3995void main() {
3996 #include <uv_vertex>
3997 #include <color_vertex>
3998 #include <morphinstance_vertex>
3999 #include <morphcolor_vertex>
4000 #include <batching_vertex>
4001 #include <beginnormal_vertex>
4002 #include <morphnormal_vertex>
4003 #include <skinbase_vertex>
4004 #include <skinnormal_vertex>
4005 #include <defaultnormal_vertex>
4006 #include <normal_vertex>
4007 #include <begin_vertex>
4008 #include <morphtarget_vertex>
4009 #include <skinning_vertex>
4010 #include <displacementmap_vertex>
4011 #include <project_vertex>
4012 #include <logdepthbuf_vertex>
4013 #include <clipping_planes_vertex>
4014 vViewPosition = - mvPosition.xyz;
4015 #include <worldpos_vertex>
4016 #include <shadowmap_vertex>
4017 #include <fog_vertex>
4018#ifdef USE_TRANSMISSION
4019 vWorldPosition = worldPosition.xyz;
4020#endif
4021}`,meshphysical_frag:`#define STANDARD
4022#ifdef PHYSICAL
4023 #define IOR
4024 #define USE_SPECULAR
4025#endif
4026uniform vec3 diffuse;
4027uniform vec3 emissive;
4028uniform float roughness;
4029uniform float metalness;
4030uniform float opacity;
4031#ifdef IOR
4032 uniform float ior;
4033#endif
4034#ifdef USE_SPECULAR
4035 uniform float specularIntensity;
4036 uniform vec3 specularColor;
4037 #ifdef USE_SPECULAR_COLORMAP
4038 uniform sampler2D specularColorMap;
4039 #endif
4040 #ifdef USE_SPECULAR_INTENSITYMAP
4041 uniform sampler2D specularIntensityMap;
4042 #endif
4043#endif
4044#ifdef USE_CLEARCOAT
4045 uniform float clearcoat;
4046 uniform float clearcoatRoughness;
4047#endif
4048#ifdef USE_DIFFUSE_ROUGHNESS
4049 uniform float diffuseRoughness;
4050 #ifdef USE_DIFFUSE_ROUGHNESSMAP
4051 uniform sampler2D diffuseRoughnessMap;
4052 #endif
4053#endif
4054#ifdef USE_DISPERSION
4055 uniform float dispersion;
4056#endif
4057#ifdef USE_RETROREFLECTION
4058 uniform float retroreflectivity;
4059#endif
4060#ifdef USE_IRIDESCENCE
4061 uniform float iridescence;
4062 uniform float iridescenceIOR;
4063 uniform float iridescenceThicknessMinimum;
4064 uniform float iridescenceThicknessMaximum;
4065#endif
4066#ifdef USE_SHEEN
4067 uniform vec3 sheenColor;
4068 uniform float sheenRoughness;
4069 #ifdef USE_SHEEN_COLORMAP
4070 uniform sampler2D sheenColorMap;
4071 #endif
4072 #ifdef USE_SHEEN_ROUGHNESSMAP
4073 uniform sampler2D sheenRoughnessMap;
4074 #endif
4075#endif
4076#ifdef USE_ANISOTROPY
4077 uniform vec2 anisotropyVector;
4078 #ifdef USE_ANISOTROPYMAP
4079 uniform sampler2D anisotropyMap;
4080 #endif
4081#endif
4082varying vec3 vViewPosition;
4083#include <common>
4084#include <dithering_pars_fragment>
4085#include <color_pars_fragment>
4086#include <uv_pars_fragment>
4087#include <map_pars_fragment>
4088#include <alphamap_pars_fragment>
4089#include <alphatest_pars_fragment>
4090#include <alphahash_pars_fragment>
4091#include <aomap_pars_fragment>
4092#include <lightmap_pars_fragment>
4093#include <emissivemap_pars_fragment>
4094#include <iridescence_fragment>
4095#include <envmap_common_pars_fragment>
4096#include <envmap_physical_pars_fragment>
4097#include <fog_pars_fragment>
4098#include <lights_pars_begin>
4099#include <normal_pars_fragment>
4100#include <lights_physical_pars_fragment>
4101#include <transmission_pars_fragment>
4102#include <shadowmap_pars_fragment>
4103#include <bumpmap_pars_fragment>
4104#include <normalmap_pars_fragment>
4105#include <clearcoat_pars_fragment>
4106#include <iridescence_pars_fragment>
4107#include <roughnessmap_pars_fragment>
4108#include <metalnessmap_pars_fragment>
4109#include <logdepthbuf_pars_fragment>
4110#include <clipping_planes_pars_fragment>
4111void main() {
4112 vec4 diffuseColor = vec4( diffuse, opacity );
4113 #include <clipping_planes_fragment>
4114 ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
4115 vec3 totalEmissiveRadiance = emissive;
4116 #include <logdepthbuf_fragment>
4117 #include <map_fragment>
4118 #include <color_fragment>
4119 #include <alphamap_fragment>
4120 #include <alphatest_fragment>
4121 #include <alphahash_fragment>
4122 #include <roughnessmap_fragment>
4123 #include <metalnessmap_fragment>
4124 #include <normal_fragment_begin>
4125 #include <normal_fragment_maps>
4126 #include <clearcoat_normal_fragment_begin>
4127 #include <clearcoat_normal_fragment_maps>
4128 #include <emissivemap_fragment>
4129 #include <lights_physical_fragment>
4130 #include <lights_fragment_begin>
4131 #include <lights_fragment_maps>
4132 #include <lights_fragment_end>
4133 #include <aomap_fragment>
4134 vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;
4135 vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;
4136 #include <transmission_fragment>
4137 vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;
4138 #ifdef USE_SHEEN
4139
4140 outgoingLight = outgoingLight + sheenSpecularDirect + sheenSpecularIndirect;
4141
4142 #endif
4143 #ifdef USE_CLEARCOAT
4144 float dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) );
4145 vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );
4146 outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat;
4147 #endif
4148 #include <opaque_fragment>
4149 #include <tonemapping_fragment>
4150 #include <colorspace_fragment>
4151 #include <fog_fragment>
4152 #include <premultiplied_alpha_fragment>
4153 #include <dithering_fragment>
4154}`,meshtoon_vert:`#define TOON
4155varying vec3 vViewPosition;
4156#include <common>
4157#include <batching_pars_vertex>
4158#include <uv_pars_vertex>
4159#include <displacementmap_pars_vertex>
4160#include <color_pars_vertex>
4161#include <fog_pars_vertex>
4162#include <normal_pars_vertex>
4163#include <morphtarget_pars_vertex>
4164#include <skinning_pars_vertex>
4165#include <shadowmap_pars_vertex>
4166#include <logdepthbuf_pars_vertex>
4167#include <clipping_planes_pars_vertex>
4168void main() {
4169 #include <uv_vertex>
4170 #include <color_vertex>
4171 #include <morphinstance_vertex>
4172 #include <morphcolor_vertex>
4173 #include <batching_vertex>
4174 #include <beginnormal_vertex>
4175 #include <morphnormal_vertex>
4176 #include <skinbase_vertex>
4177 #include <skinnormal_vertex>
4178 #include <defaultnormal_vertex>
4179 #include <normal_vertex>
4180 #include <begin_vertex>
4181 #include <morphtarget_vertex>
4182 #include <skinning_vertex>
4183 #include <displacementmap_vertex>
4184 #include <project_vertex>
4185 #include <logdepthbuf_vertex>
4186 #include <clipping_planes_vertex>
4187 vViewPosition = - mvPosition.xyz;
4188 #include <worldpos_vertex>
4189 #include <shadowmap_vertex>
4190 #include <fog_vertex>
4191}`,meshtoon_frag:`#define TOON
4192uniform vec3 diffuse;
4193uniform vec3 emissive;
4194uniform float opacity;
4195#include <common>
4196#include <dithering_pars_fragment>
4197#include <color_pars_fragment>
4198#include <uv_pars_fragment>
4199#include <map_pars_fragment>
4200#include <alphamap_pars_fragment>
4201#include <alphatest_pars_fragment>
4202#include <alphahash_pars_fragment>
4203#include <aomap_pars_fragment>
4204#include <lightmap_pars_fragment>
4205#include <emissivemap_pars_fragment>
4206#include <gradientmap_pars_fragment>
4207#include <fog_pars_fragment>
4208#include <bsdfs>
4209#include <lights_pars_begin>
4210#include <normal_pars_fragment>
4211#include <lights_toon_pars_fragment>
4212#include <shadowmap_pars_fragment>
4213#include <bumpmap_pars_fragment>
4214#include <normalmap_pars_fragment>
4215#include <logdepthbuf_pars_fragment>
4216#include <clipping_planes_pars_fragment>
4217void main() {
4218 vec4 diffuseColor = vec4( diffuse, opacity );
4219 #include <clipping_planes_fragment>
4220 ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
4221 vec3 totalEmissiveRadiance = emissive;
4222 #include <logdepthbuf_fragment>
4223 #include <map_fragment>
4224 #include <color_fragment>
4225 #include <alphamap_fragment>
4226 #include <alphatest_fragment>
4227 #include <alphahash_fragment>
4228 #include <normal_fragment_begin>
4229 #include <normal_fragment_maps>
4230 #include <emissivemap_fragment>
4231 #include <lights_toon_fragment>
4232 #include <lights_fragment_begin>
4233 #include <lights_fragment_maps>
4234 #include <lights_fragment_end>
4235 #include <aomap_fragment>
4236 vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;
4237 #include <opaque_fragment>
4238 #include <tonemapping_fragment>
4239 #include <colorspace_fragment>
4240 #include <fog_fragment>
4241 #include <premultiplied_alpha_fragment>
4242 #include <dithering_fragment>
4243}`,points_vert:`uniform float size;
4244uniform float scale;
4245#include <common>
4246#include <color_pars_vertex>
4247#include <fog_pars_vertex>
4248#include <morphtarget_pars_vertex>
4249#include <logdepthbuf_pars_vertex>
4250#include <clipping_planes_pars_vertex>
4251#ifdef USE_POINTS_UV
4252 varying vec2 vUv;
4253 uniform mat3 uvTransform;
4254#endif
4255void main() {
4256 #ifdef USE_POINTS_UV
4257 vUv = ( uvTransform * vec3( uv, 1 ) ).xy;
4258 #endif
4259 #include <color_vertex>
4260 #include <morphinstance_vertex>
4261 #include <morphcolor_vertex>
4262 #include <begin_vertex>
4263 #include <morphtarget_vertex>
4264 #include <project_vertex>
4265 gl_PointSize = size;
4266 #ifdef USE_SIZEATTENUATION
4267 bool isPerspective = isPerspectiveMatrix( projectionMatrix );
4268 if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );
4269 #endif
4270 #include <logdepthbuf_vertex>
4271 #include <clipping_planes_vertex>
4272 #include <worldpos_vertex>
4273 #include <fog_vertex>
4274}`,points_frag:`uniform vec3 diffuse;
4275uniform float opacity;
4276#include <common>
4277#include <color_pars_fragment>
4278#include <map_particle_pars_fragment>
4279#include <alphatest_pars_fragment>
4280#include <alphahash_pars_fragment>
4281#include <fog_pars_fragment>
4282#include <logdepthbuf_pars_fragment>
4283#include <clipping_planes_pars_fragment>
4284void main() {
4285 vec4 diffuseColor = vec4( diffuse, opacity );
4286 #include <clipping_planes_fragment>
4287 vec3 outgoingLight = vec3( 0.0 );
4288 #include <logdepthbuf_fragment>
4289 #include <map_particle_fragment>
4290 #include <color_fragment>
4291 #include <alphatest_fragment>
4292 #include <alphahash_fragment>
4293 outgoingLight = diffuseColor.rgb;
4294 #include <opaque_fragment>
4295 #include <tonemapping_fragment>
4296 #include <colorspace_fragment>
4297 #include <fog_fragment>
4298 #include <premultiplied_alpha_fragment>
4299}`,shadow_vert:`#include <common>
4300#include <batching_pars_vertex>
4301#include <fog_pars_vertex>
4302#include <morphtarget_pars_vertex>
4303#include <skinning_pars_vertex>
4304#include <logdepthbuf_pars_vertex>
4305#include <shadowmap_pars_vertex>
4306void main() {
4307 #include <batching_vertex>
4308 #include <beginnormal_vertex>
4309 #include <morphinstance_vertex>
4310 #include <morphnormal_vertex>
4311 #include <skinbase_vertex>
4312 #include <skinnormal_vertex>
4313 #include <defaultnormal_vertex>
4314 #include <begin_vertex>
4315 #include <morphtarget_vertex>
4316 #include <skinning_vertex>
4317 #include <project_vertex>
4318 #include <logdepthbuf_vertex>
4319 #include <worldpos_vertex>
4320 #include <shadowmap_vertex>
4321 #include <fog_vertex>
4322}`,shadow_frag:`uniform vec3 color;
4323uniform float opacity;
4324#include <common>
4325#include <fog_pars_fragment>
4326#include <bsdfs>
4327#include <lights_pars_begin>
4328#include <logdepthbuf_pars_fragment>
4329#include <shadowmap_pars_fragment>
4330#include <shadowmask_pars_fragment>
4331void main() {
4332 #include <logdepthbuf_fragment>
4333 gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );
4334 #include <tonemapping_fragment>
4335 #include <colorspace_fragment>
4336 #include <fog_fragment>
4337 #include <premultiplied_alpha_fragment>
4338}`,sprite_vert:`uniform float rotation;
4339uniform vec2 center;
4340#include <common>
4341#include <uv_pars_vertex>
4342#include <fog_pars_vertex>
4343#include <logdepthbuf_pars_vertex>
4344#include <clipping_planes_pars_vertex>
4345void main() {
4346 #include <uv_vertex>
4347 vec4 mvPosition = modelViewMatrix[ 3 ];
4348 vec2 scale = vec2( length( modelMatrix[ 0 ].xyz ), length( modelMatrix[ 1 ].xyz ) );
4349 #ifndef USE_SIZEATTENUATION
4350 bool isPerspective = isPerspectiveMatrix( projectionMatrix );
4351 if ( isPerspective ) scale *= - mvPosition.z;
4352 #endif
4353 vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;
4354 vec2 rotatedPosition;
4355 rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;
4356 rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;
4357 mvPosition.xy += rotatedPosition;
4358 gl_Position = projectionMatrix * mvPosition;
4359 #include <logdepthbuf_vertex>
4360 #include <clipping_planes_vertex>
4361 #include <fog_vertex>
4362}`,sprite_frag:`uniform vec3 diffuse;
4363uniform float opacity;
4364#include <common>
4365#include <uv_pars_fragment>
4366#include <map_pars_fragment>
4367#include <alphamap_pars_fragment>
4368#include <alphatest_pars_fragment>
4369#include <alphahash_pars_fragment>
4370#include <fog_pars_fragment>
4371#include <logdepthbuf_pars_fragment>
4372#include <clipping_planes_pars_fragment>
4373void main() {
4374 vec4 diffuseColor = vec4( diffuse, opacity );
4375 #include <clipping_planes_fragment>
4376 vec3 outgoingLight = vec3( 0.0 );
4377 #include <logdepthbuf_fragment>
4378 #include <map_fragment>
4379 #include <alphamap_fragment>
4380 #include <alphatest_fragment>
4381 #include <alphahash_fragment>
4382 outgoingLight = diffuseColor.rgb;
4383 #include <opaque_fragment>
4384 #include <tonemapping_fragment>
4385 #include <colorspace_fragment>
4386 #include <fog_fragment>
4387}`},Y={common:{diffuse:{value:new q(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new G},alphaMap:{value:null},alphaMapTransform:{value:new G},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new G}},envmap:{envMap:{value:null},envMapRotation:{value:new G},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98},dfgLUT:{value:null}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new G}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new G}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new G},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new G},normalScale:{value:new U(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new G},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new G}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new G}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new G}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new q(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},sunLights:{value:[],properties:{direction:{},color:{}}},sunLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},sunShadowMatrix:{value:[]},sunShadowCascade:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null},probesSH:{value:[]},probesMin:{value:[]},probesMax:{value:[]},probesResolution:{value:[]}},points:{diffuse:{value:new q(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new G},alphaTest:{value:0},uvTransform:{value:new G}},sprite:{diffuse:{value:new q(16777215)},opacity:{value:1},center:{value:new U(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new G},alphaMap:{value:null},alphaMapTransform:{value:new G},alphaTest:{value:0}}},Dd={basic:{uniforms:$l([Y.common,Y.specularmap,Y.envmap,Y.aomap,Y.lightmap,Y.fog]),vertexShader:J.meshbasic_vert,fragmentShader:J.meshbasic_frag},lambert:{uniforms:$l([Y.common,Y.specularmap,Y.envmap,Y.aomap,Y.lightmap,Y.emissivemap,Y.bumpmap,Y.normalmap,Y.displacementmap,Y.fog,Y.lights,{emissive:{value:new q(0)},envMapIntensity:{value:1}}]),vertexShader:J.meshlambert_vert,fragmentShader:J.meshlambert_frag},phong:{uniforms:$l([Y.common,Y.specularmap,Y.envmap,Y.aomap,Y.lightmap,Y.emissivemap,Y.bumpmap,Y.normalmap,Y.displacementmap,Y.fog,Y.lights,{emissive:{value:new q(0)},specular:{value:new q(1118481)},shininess:{value:30},envMapIntensity:{value:1}}]),vertexShader:J.meshphong_vert,fragmentShader:J.meshphong_frag},standard:{uniforms:$l([Y.common,Y.envmap,Y.aomap,Y.lightmap,Y.emissivemap,Y.bumpmap,Y.normalmap,Y.displacementmap,Y.roughnessmap,Y.metalnessmap,Y.fog,Y.lights,{emissive:{value:new q(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:J.meshphysical_vert,fragmentShader:J.meshphysical_frag},toon:{uniforms:$l([Y.common,Y.aomap,Y.lightmap,Y.emissivemap,Y.bumpmap,Y.normalmap,Y.displacementmap,Y.gradientmap,Y.fog,Y.lights,{emissive:{value:new q(0)}}]),vertexShader:J.meshtoon_vert,fragmentShader:J.meshtoon_frag},matcap:{uniforms:$l([Y.common,Y.bumpmap,Y.normalmap,Y.displacementmap,Y.fog,{matcap:{value:null}}]),vertexShader:J.meshmatcap_vert,fragmentShader:J.meshmatcap_frag},points:{uniforms:$l([Y.points,Y.fog]),vertexShader:J.points_vert,fragmentShader:J.points_frag},dashed:{uniforms:$l([Y.common,Y.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:J.linedashed_vert,fragmentShader:J.linedashed_frag},depth:{uniforms:$l([Y.common,Y.displacementmap]),vertexShader:J.depth_vert,fragmentShader:J.depth_frag},normal:{uniforms:$l([Y.common,Y.bumpmap,Y.normalmap,Y.displacementmap,{opacity:{value:1}}]),vertexShader:J.meshnormal_vert,fragmentShader:J.meshnormal_frag},sprite:{uniforms:$l([Y.sprite,Y.fog]),vertexShader:J.sprite_vert,fragmentShader:J.sprite_frag},background:{uniforms:{uvTransform:{value:new G},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:J.background_vert,fragmentShader:J.background_frag},backgroundCube:{uniforms:{envMap:{value:null},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new G}},vertexShader:J.backgroundCube_vert,fragmentShader:J.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:J.cube_vert,fragmentShader:J.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:J.equirect_vert,fragmentShader:J.equirect_frag},distance:{uniforms:$l([Y.common,Y.displacementmap,{referencePosition:{value:new W},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:J.distance_vert,fragmentShader:J.distance_frag},shadow:{uniforms:$l([Y.lights,Y.fog,{color:{value:new q(0)},opacity:{value:1}}]),vertexShader:J.shadow_vert,fragmentShader:J.shadow_frag}};Dd.physical={uniforms:$l([Dd.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new G},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new G},clearcoatNormalScale:{value:new U(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new G},diffuseRoughness:{value:0},diffuseRoughnessMap:{value:null},diffuseRoughnessMapTransform:{value:new G},dispersion:{value:0},retroreflectivity:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new G},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new G},sheen:{value:0},sheenColor:{value:new q(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new G},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new G},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new G},transmissionSamplerSize:{value:new U},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new G},attenuationDistance:{value:0},attenuationColor:{value:new q(0)},specularColor:{value:new q(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new G},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new G},anisotropyVector:{value:new U},anisotropyMap:{value:null},anisotropyMapTransform:{value:new G}}]),vertexShader:J.meshphysical_vert,fragmentShader:J.meshphysical_frag};var Od={r:0,b:0,g:0},kd=new ms,Ad=new G;Ad.set(-1,0,0,0,1,0,0,0,1);function jd(e,t,n,r,i,a){let o=new q(0),s=i===!0?0:1,c,l,u=null,d=0,f=null;function p(e){let n=e.isScene===!0?e.background:null;if(n&&n.isTexture){let r=e.backgroundBlurriness>0;n=t.get(n,r)}return n}function m(t){let r=!1,i=p(t);i===null?g(o,s):i&&i.isColor&&(g(i,1),r=!0);let c=e.xr.getEnvironmentBlendMode();c===`additive`?n.buffers.color.setClear(0,0,0,1,a):c===`alpha-blend`&&n.buffers.color.setClear(0,0,0,0,a),(e.autoClear||r)&&(n.buffers.depth.setTest(!0),n.buffers.depth.setMask(!0),n.buffers.color.setMask(!0),e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil))}function h(t,n){let i=p(n);i&&i.isCubeTexture?(l===void 0&&(l=new ml(new Jl(1,1,1),new ou({name:`BackgroundCubeMaterial`,uniforms:Ql(Dd.backgroundCube.uniforms),vertexShader:Dd.backgroundCube.vertexShader,fragmentShader:Dd.backgroundCube.fragmentShader,side:1,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),l.geometry.deleteAttribute(`normal`),l.geometry.deleteAttribute(`uv`),l.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(l.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(l)),l.material.uniforms.envMap.value=i,l.material.uniforms.backgroundBlurriness.value=n.backgroundBlurriness,l.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,l.material.uniforms.backgroundRotation.value.setFromMatrix4(kd.makeRotationFromEuler(n.backgroundRotation)).transpose(),i.isRenderTargetTexture===!1&&l.material.uniforms.backgroundRotation.value.premultiply(Ad),l.material.toneMapped=K.getTransfer(i.colorSpace)!==no,(u!==i||d!==i.version||f!==e.toneMapping)&&(l.material.needsUpdate=!0,u=i,d=i.version,f=e.toneMapping),l.layers.enableAll(),t.unshift(l,l.geometry,l.material,0,0,null)):i&&i.isTexture&&(c===void 0&&(c=new ml(new Yl(2,2),new ou({name:`BackgroundMaterial`,uniforms:Ql(Dd.background.uniforms),vertexShader:Dd.background.vertexShader,fragmentShader:Dd.background.fragmentShader,side:0,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),c.geometry.deleteAttribute(`normal`),Object.defineProperty(c.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(c)),c.material.uniforms.t2D.value=i,c.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,c.material.toneMapped=K.getTransfer(i.colorSpace)!==no,i.matrixAutoUpdate===!0&&i.updateMatrix(),c.material.uniforms.uvTransform.value.copy(i.matrix),(u!==i||d!==i.version||f!==e.toneMapping)&&(c.material.needsUpdate=!0,u=i,d=i.version,f=e.toneMapping),c.layers.enableAll(),t.unshift(c,c.geometry,c.material,0,0,null))}function g(t,r){t.getRGB(Od,nu(e)),n.buffers.color.setClear(Od.r,Od.g,Od.b,r,a)}function _(){l!==void 0&&(l.geometry.dispose(),l.material.dispose(),l=void 0),c!==void 0&&(c.geometry.dispose(),c.material.dispose(),c=void 0)}return{getClearColor:function(){return o},setClearColor:function(e,t=1){o.set(e),s=t,g(o,s)},getClearAlpha:function(){return s},setClearAlpha:function(e){s=e,g(o,s)},render:m,addToRenderList:h,dispose:_}}function Md(e,t){let n=e.getParameter(e.MAX_VERTEX_ATTRIBS),r={},i=f(null),a=i,o=!1;function s(n,r,i,s,c){let u=!1,f=d(n,s,i,r);a!==f&&(a=f,l(a.object)),u=p(n,s,i,c),u&&m(n,s,i,c),c!==null&&t.update(c,e.ELEMENT_ARRAY_BUFFER),(u||o)&&(o=!1,b(n,r,i,s),c!==null&&e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t.get(c).buffer))}function c(){return e.createVertexArray()}function l(t){return e.bindVertexArray(t)}function u(t){return e.deleteVertexArray(t)}function d(e,t,n,i){let a=i.wireframe===!0,o=r[t.id];o===void 0&&(o={},r[t.id]=o);let s=e.isInstancedMesh===!0?e.id:0,l=o[s];l===void 0&&(l={},o[s]=l);let u=l[n.id];u===void 0&&(u={},l[n.id]=u);let d=u[a];return d===void 0&&(d=f(c()),u[a]=d),d}function f(e){let t=[],r=[],i=[];for(let e=0;e<n;e++)t[e]=0,r[e]=0,i[e]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:t,enabledAttributes:r,attributeDivisors:i,object:e,attributes:{},index:null}}function p(e,t,n,r){let i=a.attributes,o=t.attributes,s=0,c=n.getAttributes();for(let t in c)if(c[t].location>=0){let n=i[t],r=o[t];if(r===void 0&&(t===`instanceMatrix`&&e.instanceMatrix&&(r=e.instanceMatrix),t===`instanceColor`&&e.instanceColor&&(r=e.instanceColor)),n===void 0||n.attribute!==r||r&&n.data!==r.data)return!0;s++}return a.attributesNum!==s||a.index!==r}function m(e,t,n,r){let i={},o=t.attributes,s=0,c=n.getAttributes();for(let t in c)if(c[t].location>=0){let n=o[t];n===void 0&&(t===`instanceMatrix`&&e.instanceMatrix&&(n=e.instanceMatrix),t===`instanceColor`&&e.instanceColor&&(n=e.instanceColor));let r={};r.attribute=n,n&&n.data&&(r.data=n.data),i[t]=r,s++}a.attributes=i,a.attributesNum=s,a.index=r}function h(){let e=a.newAttributes;for(let t=0,n=e.length;t<n;t++)e[t]=0}function g(e){_(e,0)}function _(t,n){let r=a.newAttributes,i=a.enabledAttributes,o=a.attributeDivisors;r[t]=1,i[t]===0&&(e.enableVertexAttribArray(t),i[t]=1),o[t]!==n&&(e.vertexAttribDivisor(t,n),o[t]=n)}function v(){let t=a.newAttributes,n=a.enabledAttributes;for(let r=0,i=n.length;r<i;r++)n[r]!==t[r]&&(e.disableVertexAttribArray(r),n[r]=0)}function y(t,n,r,i,a,o,s){s===!0?e.vertexAttribIPointer(t,n,r,a,o):e.vertexAttribPointer(t,n,r,i,a,o)}function b(n,r,i,a){h();let o=a.attributes,s=i.getAttributes(),c=r.defaultAttributeValues;for(let r in s){let i=s[r];if(i.location>=0){let s=o[r];if(s===void 0&&(r===`instanceMatrix`&&n.instanceMatrix&&(s=n.instanceMatrix),r===`instanceColor`&&n.instanceColor&&(s=n.instanceColor)),s!==void 0){let r=s.normalized,o=s.itemSize,c=t.get(s);if(c===void 0)continue;let l=c.buffer,u=c.type,d=c.bytesPerElement,f=u===e.INT||u===e.UNSIGNED_INT||s.gpuType===1013;if(s.isInterleavedBufferAttribute){let t=s.data,c=t.isInterleavedBuffer===!0?t.stride:t.itemSize,p=s.offset;if(t.isInstancedInterleavedBuffer||t.isInstancedBufferAttribute){for(let e=0;e<i.locationSize;e++)_(i.location+e,t.meshPerAttribute);n.isInstancedMesh!==!0&&a._maxInstanceCount===void 0&&(a._maxInstanceCount=t.meshPerAttribute*t.count)}else for(let e=0;e<i.locationSize;e++)g(i.location+e);e.bindBuffer(e.ARRAY_BUFFER,l);for(let e=0;e<i.locationSize;e++)y(i.location+e,o/i.locationSize,u,r,c*d,(p+o/i.locationSize*e)*d,f)}else{if(s.isInstancedBufferAttribute){for(let e=0;e<i.locationSize;e++)_(i.location+e,s.meshPerAttribute);n.isInstancedMesh!==!0&&a._maxInstanceCount===void 0&&(a._maxInstanceCount=s.meshPerAttribute*s.count)}else for(let e=0;e<i.locationSize;e++)g(i.location+e);e.bindBuffer(e.ARRAY_BUFFER,l);for(let e=0;e<i.locationSize;e++)y(i.location+e,o/i.locationSize,u,r,o*d,o/i.locationSize*e*d,f)}}else if(c!==void 0){let t=c[r];if(t!==void 0)switch(t.length){case 2:e.vertexAttrib2fv(i.location,t);break;case 3:e.vertexAttrib3fv(i.location,t);break;case 4:e.vertexAttrib4fv(i.location,t);break;default:e.vertexAttrib1fv(i.location,t)}}}}v()}function x(){T();for(let e in r){let t=r[e];for(let e in t){let n=t[e];for(let e in n){let t=n[e];for(let e in t)u(t[e].object),delete t[e];delete n[e]}}delete r[e]}}function S(e){if(r[e.id]===void 0)return;let t=r[e.id];for(let e in t){let n=t[e];for(let e in n){let t=n[e];for(let e in t)u(t[e].object),delete t[e];delete n[e]}}delete r[e.id]}function C(e){for(let t in r){let n=r[t];for(let t in n){let r=n[t];if(r[e.id]===void 0)continue;let i=r[e.id];for(let e in i)u(i[e].object),delete i[e];delete r[e.id]}}}function w(e){for(let t in r){let n=r[t],i=e.isInstancedMesh===!0?e.id:0,a=n[i];if(a!==void 0){for(let e in a){let t=a[e];for(let e in t)u(t[e].object),delete t[e];delete a[e]}delete n[i],Object.keys(n).length===0&&delete r[t]}}}function T(){E(),o=!0,a!==i&&(a=i,l(a.object))}function E(){i.geometry=null,i.program=null,i.wireframe=!1}return{setup:s,reset:T,resetDefaultState:E,dispose:x,releaseStatesOfGeometry:S,releaseStatesOfObject:w,releaseStatesOfProgram:C,initAttributes:h,enableAttribute:g,disableUnusedAttributes:v}}function Nd(e,t,n){let r;function i(e){r=e}function a(t,i){e.drawArrays(r,t,i),n.update(i,r,1)}function o(t,i,a){a!==0&&(e.drawArraysInstanced(r,t,i,a),n.update(i,r,a))}function s(e,i,a){if(a===0)return;t.get(`WEBGL_multi_draw`).multiDrawArraysWEBGL(r,e,0,i,0,a);let o=0;for(let e=0;e<a;e++)o+=i[e];n.update(o,r,1)}this.setMode=i,this.render=a,this.renderInstances=o,this.renderMultiDraw=s}function Pd(e,t,n,r){let i;function a(){if(i!==void 0)return i;if(t.has(`EXT_texture_filter_anisotropic`)===!0){let n=t.get(`EXT_texture_filter_anisotropic`);i=e.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else i=0;return i}function o(t){return t===1023||r.convert(t)===e.getParameter(e.IMPLEMENTATION_COLOR_READ_FORMAT)}function s(n){let i=n===1016&&(t.has(`EXT_color_buffer_half_float`)||t.has(`EXT_color_buffer_float`));return!(n!==1009&&n!==1015&&!i&&r.convert(n)!==e.getParameter(e.IMPLEMENTATION_COLOR_READ_TYPE))}function c(t){if(t===`highp`){if(e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.HIGH_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision>0)return`highp`;t=`mediump`}return t===`mediump`&&e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).precision>0?`mediump`:`lowp`}let l=n.precision===void 0?`highp`:n.precision,u=c(l);u!==l&&(B(`WebGLRenderer:`,l,`not supported, using`,u,`instead.`),l=u);let d=n.reversedDepthBuffer===!0&&t.has(`EXT_clip_control`),f=n.logarithmicDepthBuffer===!0&&d===!1;n.reversedDepthBuffer===!0&&d===!1&&B(`WebGLRenderer: Unable to use reversed depth buffer due to missing EXT_clip_control extension. Fallback to default depth buffer.`),n.logarithmicDepthBuffer===!0&&d===!0&&B(`WebGLRenderer: Logarithmic depth buffer is ignored when reversed depth buffer is enabled.`);let p=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),m=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS),h=e.getParameter(e.MAX_TEXTURE_SIZE),g=e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),_=e.getParameter(e.MAX_VERTEX_ATTRIBS),v=e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),y=e.getParameter(e.MAX_VARYING_VECTORS),b=e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),x=e.getParameter(e.MAX_SAMPLES),S=e.getParameter(e.SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:a,getMaxPrecision:c,textureFormatReadable:o,textureTypeReadable:s,precision:l,logarithmicDepthBuffer:f,reversedDepthBuffer:d,maxTextures:p,maxVertexTextures:m,maxTextureSize:h,maxCubemapSize:g,maxAttributes:_,maxVertexUniforms:v,maxVaryings:y,maxFragmentUniforms:b,maxSamples:x,samples:S}}function Fd(e){let t=this,n=null,r=0,i=!1,a=!1,o=new Jc,s=new G,c={value:null,needsUpdate:!1};this.uniform=c,this.numPlanes=0,this.numIntersection=0,this.init=function(e,t){let n=e.length!==0||t||r!==0||i;return i=t,r=e.length,n},this.beginShadows=function(){a=!0,u(null)},this.endShadows=function(){a=!1},this.setGlobalState=function(e,t){n=u(e,t,0)},this.setState=function(t,o,s){let d=t.clippingPlanes,f=t.clipIntersection,p=t.clipShadows,m=e.get(t);if(!i||d===null||d.length===0||a&&!p)a?u(null):l();else{let e=a?0:r,t=e*4,i=m.clippingState||null;c.value=i,i=u(d,o,t,s);for(let e=0;e!==t;++e)i[e]=n[e];m.clippingState=i,this.numIntersection=f?this.numPlanes:0,this.numPlanes+=e}};function l(){c.value!==n&&(c.value=n,c.needsUpdate=r>0),t.numPlanes=r,t.numIntersection=0}function u(e,n,r,i){let a=e===null?0:e.length,l=null;if(a!==0){if(l=c.value,i!==!0||l===null){let t=r+a*4,i=n.matrixWorldInverse;s.getNormalMatrix(i),(l===null||l.length<t)&&(l=new Float32Array(t));for(let t=0,n=r;t!==a;++t,n+=4)o.copy(e[t]).applyMatrix4(i,s),o.normal.toArray(l,n),l[n+3]=o.constant}c.value=l,c.needsUpdate=!0}return t.numPlanes=a,t.numIntersection=0,l}}var Id=class extends ds{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;let n={width:e,height:e,depth:1},r=[n,n,n,n,n,n];this.texture=new Ul(r),this._setTextureOptions(t),this.texture.isRenderTargetTexture=!0}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;let n={uniforms:{tEquirect:{value:null}},vertexShader:`
4388
4389 varying vec3 vWorldDirection;
4390
4391 vec3 transformDirection( in vec3 dir, in mat4 matrix ) {
4392
4393 return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );
4394
4395 }
4396
4397 void main() {
4398
4399 vWorldDirection = transformDirection( position, modelMatrix );
4400
4401 #include <begin_vertex>
4402 #include <project_vertex>
4403
4404 }
4405 `,fragmentShader:`
4406
4407 uniform sampler2D tEquirect;
4408
4409 varying vec3 vWorldDirection;
4410
4411 #include <common>
4412
4413 void main() {
4414
4415 vec3 direction = normalize( vWorldDirection );
4416
4417 vec2 sampleUV = equirectUv( direction );
4418
4419 gl_FragColor = texture2D( tEquirect, sampleUV );
4420
4421 }
4422 `},r=new Jl(5,5,5),i=new ou({name:`CubemapFromEquirect`,uniforms:Ql(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:1,blending:0});i.uniforms.tEquirect.value=t;let a=new ml(r,i),o=t.minFilter;return t.minFilter===1008&&(t.minFilter=Li),new rd(1,10,this).update(e,a),t.minFilter=o,a.geometry.dispose(),a.material.dispose(),this}clear(e,t=!0,n=!0,r=!0){let i=e.getRenderTarget();for(let i=0;i<6;i++)e.setRenderTarget(this,i),e.clear(t,n,r);e.setRenderTarget(i)}},Ld=256,Rd=3,zd=20,Bd=256,Vd=16,Hd=3,Ud=new W,Wd=new q,Gd=class e{constructor(e){this._renderer=e,this._cubeSize=0,this._sourceTarget=null,this._cubeCamera=new rd(1,10,null),this._boxMesh=new ml(new Jl(5,5,5),null),this._cubemapMaterial=null,this._equirectMaterial=null,this._blurMaterial=null,this._ggxMaterial=null,this._integrationMaterial=null}fromScene(e,t=0,n=.1,r=100,i={}){let{size:a=256,position:o=Ud}=i,s=this._renderer;this._setSize(a);let c=this._allocateTarget(),l=this._getSourceTarget(!0);t>0&&(l.texture.mipmapsAutoUpdate=!1);let u=s.autoClear,d=s.autoClearColor,f=s.autoClearDepth,p=s.autoClearStencil,m=e.background;s.autoClear=!0,s.autoClearColor=!0,s.autoClearDepth=!0,s.autoClearStencil=!0,m===null&&(e.background=s.getClearColor(Wd));let h=new rd(n,r,l);return h.position.copy(o),h.update(s,e),s.autoClear=u,s.autoClearColor=d,s.autoClearDepth=f,s.autoClearStencil=p,e.background=m,t>0&&(l.texture.mipmapsAutoUpdate=!0,this._blur(c,t)),this._applyPMREM(c),c}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=Qd(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=Zd(),this._compileMaterial(this._equirectMaterial))}dispose(){this._sourceTarget!==null&&this._sourceTarget.dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose(),this._blurMaterial!==null&&this._blurMaterial.dispose(),this._ggxMaterial!==null&&this._ggxMaterial.dispose(),this._integrationMaterial!==null&&this._integrationMaterial.dispose(),this._boxMesh.geometry.dispose()}static lodToRoughness(e,t){return t>0?1-Math.sqrt(1-e/t):0}_setSize(e){this._cubeSize=Math.max(Ld,Bo(e))}_fromTexture(e,t){e.mapping===301||e.mapping===302?this._setSize(e.image.length===0?Ld:e.image[0].width||e.image[0].image.width):this._setSize(e.image.width/4);let n=t||this._allocateTarget();return this._textureToCubemap(e),this._applyPMREM(n),n}_allocateTarget(){let e=this._cubeSize,t=Kd(e,!1,!1),n=Math.log2(e)-Rd;for(let r=0;r<=n;r++)t.texture.mipmaps.push({width:e>>r,height:e>>r});return t.texture.name=`PMREM`,t.texture.isPMREMTexture=!0,t}_getSourceTarget(e=!1){let t=this._cubeSize,n=this._sourceTarget;return(n===null||n.width!==t||e&&n.depthBuffer===!1)&&(n!==null&&n.dispose(),this._sourceTarget=Kd(t,!0,e)),this._sourceTarget}_compileMaterial(e){this._boxMesh.material=e,this._renderer.compile(this._boxMesh,this._cubeCamera.children[0])}_renderCube(e,t,n){let r=this._boxMesh,i=this._cubeCamera;r.material=n,i.renderTarget=e,i.activeMipmapLevel=t;let a=e.width>>t;e.viewport.set(0,0,a,a),i.update(this._renderer,r),e.viewport.set(0,0,e.width,e.height)}_textureToCubemap(e){let t;e.mapping===301||e.mapping===302?(this._cubemapMaterial===null&&(this._cubemapMaterial=Qd()),t=this._cubemapMaterial,t.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):(this._equirectMaterial===null&&(this._equirectMaterial=Zd()),t=this._equirectMaterial),t.uniforms.envMap.value=e,this._renderCube(this._getSourceTarget(),0,t)}_applyPMREM(t){this._ggxMaterial===null&&(this._ggxMaterial=Jd(),this._integrationMaterial=Yd());let n=this._cubeSize,r=t.texture.mipmaps.length-1,i=this._ggxMaterial.uniforms;i.envMap.value=this._sourceTarget.texture;let a=this._integrationMaterial.uniforms;a.envMap.value=this._sourceTarget.texture,a.sourceLod.value=Math.log2(n/Vd);for(let o=0;o<=r;o++){let s=e.lodToRoughness(o,r);if(o>r-Hd)a.roughness.value=s,this._renderCube(t,o,this._integrationMaterial);else{let e=s>0?Math.log2(n)+.5*Math.log2(6/(Bd*s**4))+.5:0;i.roughness.value=s,i.lodBias.value=e,this._renderCube(t,o,this._ggxMaterial)}}}_blur(e,t){this._blurMaterial===null&&(this._blurMaterial=Xd());let n=this._blurMaterial,r=n.uniforms,i=this._sourceTarget;r.sigma.value=Math.min(t,Math.PI)/Math.SQRT2,r.envMap.value=i.texture,this._renderCube(e,0,n),r.envMap.value=e.texture,this._renderCube(i,0,n)}};function Kd(e,t,n){return new Id(e,{minFilter:zi,generateMipmaps:t,type:qi,colorSpace:eo,depthBuffer:n})}function qd(e,t,n){return new ou({name:e,uniforms:t,vertexShader:J.cube_vert,fragmentShader:n,side:1,blending:0,depthTest:!1,depthWrite:!1})}function Jd(){return qd(`PMREMGGXConvolution`,{envMap:{value:null},roughness:{value:0},lodBias:{value:0}},`
4423
4424 #define GGX_SAMPLES ${Bd}u
4425
4426 varying vec3 vWorldDirection;
4427
4428 uniform samplerCube envMap;
4429 uniform float roughness;
4430 uniform float lodBias;
4431
4432 #include <common>
4433
4434 // Van der Corput radical inverse
4435 float radicalInverse_VdC( uint bits ) {
4436
4437 bits = ( bits << 16u ) | ( bits >> 16u );
4438 bits = ( ( bits & 0x55555555u ) << 1u ) | ( ( bits & 0xAAAAAAAAu ) >> 1u );
4439 bits = ( ( bits & 0x33333333u ) << 2u ) | ( ( bits & 0xCCCCCCCCu ) >> 2u );
4440 bits = ( ( bits & 0x0F0F0F0Fu ) << 4u ) | ( ( bits & 0xF0F0F0F0u ) >> 4u );
4441 bits = ( ( bits & 0x00FF00FFu ) << 8u ) | ( ( bits & 0xFF00FF00u ) >> 8u );
4442 return float( bits ) * 2.3283064365386963e-10; // / 0x100000000
4443
4444 }
4445
4446 // Hammersley sequence
4447 vec2 hammersley( uint i, uint N ) {
4448
4449 return vec2( float( i ) / float( N ), radicalInverse_VdC( i ) );
4450
4451 }
4452
4453 void main() {
4454
4455 vec3 N = normalize( vWorldDirection );
4456
4457 // For very low roughness, just sample the environment directly
4458 if ( roughness < 0.001 ) {
4459
4460 gl_FragColor = vec4( textureLod( envMap, N, 0.0 ).rgb, 1.0 );
4461 return;
4462
4463 }
4464
4465 float alpha = roughness * roughness;
4466 float alpha2 = alpha * alpha;
4467
4468 // Tangent space basis for VNDF sampling
4469 vec3 up = abs( N.z ) < 0.999 ? vec3( 0.0, 0.0, 1.0 ) : vec3( 1.0, 0.0, 0.0 );
4470 vec3 tangent = normalize( cross( up, N ) );
4471 vec3 bitangent = cross( N, tangent );
4472
4473 vec3 prefilteredColor = vec3( 0.0 );
4474 float totalWeight = 0.0;
4475
4476 for ( uint i = 0u; i < GGX_SAMPLES; i ++ ) {
4477
4478 vec2 Xi = hammersley( i, GGX_SAMPLES );
4479
4480 // With V = N, sample the reflected direction directly.
4481 float invQ = 1.0 / ( 1.0 - Xi.x + alpha2 * Xi.x );
4482 float NdotL = ( 1.0 - Xi.x - alpha2 * Xi.x ) * invQ;
4483
4484 if ( NdotL > 0.0 ) {
4485
4486 float phi = 2.0 * PI * Xi.y;
4487 float sinTheta = 2.0 * alpha * sqrt( Xi.x * ( 1.0 - Xi.x ) ) * invQ;
4488 vec3 L = N * NdotL + ( tangent * cos( phi ) + bitangent * sin( phi ) ) * sinTheta;
4489
4490 // Match the source mip to the sample's solid angle. The terms
4491 // independent of the sample are precomputed in lodBias.
4492 float d = alpha2 * invQ;
4493 float lod = max( log2( d ) + lodBias, 0.0 );
4494
4495 // Weight by NdotL for the split-sum approximation
4496 prefilteredColor += textureLod( envMap, L, lod ).rgb * NdotL;
4497 totalWeight += NdotL;
4498
4499 }
4500
4501 }
4502
4503 gl_FragColor = vec4( prefilteredColor / totalWeight, 1.0 );
4504
4505 }
4506 `)}function Yd(){return qd(`PMREMGGXIntegration`,{envMap:{value:null},roughness:{value:0},sourceLod:{value:0},sourceSize:{value:Vd}},`
4507
4508 varying vec3 vWorldDirection;
4509
4510 uniform samplerCube envMap;
4511 uniform float roughness;
4512 uniform float sourceLod;
4513 uniform int sourceSize;
4514
4515 void main() {
4516
4517 vec3 N = normalize( vWorldDirection );
4518
4519 float alpha = roughness * roughness;
4520 float alpha2 = alpha * alpha;
4521
4522 float texelSize = 2.0 / float( sourceSize );
4523
4524 vec3 prefilteredColor = vec3( 0.0 );
4525 float totalWeight = 0.0;
4526
4527 // Pair opposite texels: only the one in N's hemisphere contributes.
4528 for ( int face = 0; face < 3; face ++ ) {
4529
4530 for ( int y = 0; y < sourceSize; y ++ ) {
4531
4532 for ( int x = 0; x < sourceSize; x ++ ) {
4533
4534 vec2 uv = ( vec2( x, y ) + 0.5 ) * texelSize - 1.0;
4535 vec3 texelDirection = face == 0 ? vec3( 1.0, uv ) : ( face == 1 ? vec3( uv.x, 1.0, uv.y ) : vec3( uv, 1.0 ) );
4536
4537 float invDistance = inversesqrt( 1.0 + dot( uv, uv ) );
4538 float NdotL = dot( N, texelDirection );
4539 texelDirection *= NdotL < 0.0 ? - 1.0 : 1.0;
4540 NdotL = abs( NdotL ) * invDistance;
4541
4542 // With V = N, NdotH squared is ( 1 + NdotL ) / 2. Common factors
4543 // in the GGX distribution and texel solid angle cancel when normalized.
4544 float d = 1.0 + alpha2 + ( alpha2 - 1.0 ) * NdotL;
4545 float weight = NdotL * invDistance * invDistance * invDistance / ( d * d );
4546
4547 prefilteredColor += textureLod( envMap, texelDirection, sourceLod ).rgb * weight;
4548 totalWeight += weight;
4549
4550 }
4551
4552 }
4553
4554 }
4555
4556 gl_FragColor = vec4( prefilteredColor / totalWeight, 1.0 );
4557
4558 }
4559 `)}function Xd(){return qd(`PMREMSphericalGaussianBlur`,{envMap:{value:null},sigma:{value:0}},`
4560
4561 #define SAMPLES ${zd}
4562 #define GOLDEN_ANGLE 2.39996322973
4563
4564 varying vec3 vWorldDirection;
4565
4566 uniform samplerCube envMap;
4567 uniform float sigma;
4568
4569 #include <common>
4570
4571 void main() {
4572
4573 vec3 outputDirection = normalize( vWorldDirection );
4574
4575 vec3 up = abs( outputDirection.z ) < 0.999 ? vec3( 0.0, 0.0, 1.0 ) : vec3( 1.0, 0.0, 0.0 );
4576 vec3 tangent = normalize( cross( up, outputDirection ) );
4577 vec3 bitangent = cross( outputDirection, tangent );
4578
4579 // Truncate the kernel at three standard deviations or at the antipode.
4580 float thetaMax = min( 3.0 * sigma, PI );
4581 float truncation = 1.0 - exp( - 0.5 * thetaMax * thetaMax / ( sigma * sigma ) );
4582
4583 vec3 accumColor = vec3( 0.0 );
4584 float accumWeight = 0.0;
4585
4586 for ( int i = 0; i < SAMPLES; i ++ ) {
4587
4588 // Stratified inverse-CDF sampling of the Gaussian, placed on a golden-angle spiral.
4589 float stratum = ( float( i ) + 0.5 ) / float( SAMPLES );
4590 float theta = sigma * sqrt( - 2.0 * log( 1.0 - stratum * truncation ) );
4591 float phi = float( i ) * GOLDEN_ANGLE;
4592
4593 vec3 offset = cos( phi ) * tangent + sin( phi ) * bitangent;
4594 vec3 sampleDirection = cos( theta ) * outputDirection + sin( theta ) * offset;
4595
4596 // Correct the planar sample density to solid angle.
4597 float weight = sin( theta ) / theta;
4598
4599 accumColor += weight * textureLod( envMap, sampleDirection, 0.0 ).rgb;
4600 accumWeight += weight;
4601
4602 }
4603
4604 gl_FragColor = vec4( accumColor / accumWeight, 1.0 );
4605
4606 }
4607 `)}function Zd(){return qd(`PMREMEquirectangularToCubemap`,{envMap:{value:null}},`
4608
4609 varying vec3 vWorldDirection;
4610
4611 uniform sampler2D envMap;
4612
4613 #include <common>
4614
4615 void main() {
4616
4617 // Average four subpixel samples to preserve small, bright features.
4618 vec3 direction = normalize( vWorldDirection );
4619 vec3 dx = dFdx( direction ) * 0.25;
4620 vec3 dy = dFdy( direction ) * 0.25;
4621
4622 vec3 color = textureLod( envMap, equirectUv( normalize( direction - dx - dy ) ), 0.0 ).rgb;
4623 color += textureLod( envMap, equirectUv( normalize( direction + dx - dy ) ), 0.0 ).rgb;
4624 color += textureLod( envMap, equirectUv( normalize( direction - dx + dy ) ), 0.0 ).rgb;
4625 color += textureLod( envMap, equirectUv( normalize( direction + dx + dy ) ), 0.0 ).rgb;
4626 gl_FragColor = vec4( color * 0.25, 1.0 );
4627
4628 }
4629 `)}function Qd(){return qd(`PMREMCubemapToCubemap`,{envMap:{value:null},flipEnvMap:{value:-1}},`
4630
4631 varying vec3 vWorldDirection;
4632
4633 uniform samplerCube envMap;
4634 uniform float flipEnvMap;
4635
4636 void main() {
4637
4638 gl_FragColor = vec4( textureCube( envMap, vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) ).rgb, 1.0 );
4639
4640 }
4641 `)}function $d(e){let t=new WeakMap,n=new WeakMap,r=null;function i(e,t=!1){return e==null?null:t?o(e):a(e)}function a(n){if(n&&n.isTexture){let r=n.mapping;if(r===303||r===304){if(t.has(n)){let e=t.get(n).texture;return s(e,n.mapping)}{let r=n.image;if(r&&r.height>0){let i=new Id(r.height);return i.fromEquirectangularTexture(e,n),t.set(n,i),n.addEventListener(`dispose`,l),s(i.texture,n.mapping)}return null}}}return n}function o(t){if(t&&t.isTexture&&t.isPMREMTexture!==!0){let i=t.mapping,a=i===303||i===304,o=i===301||i===302;if(a||o){let i=n.get(t),s=i===void 0?0:i.texture.pmremVersion;if(t.isRenderTargetTexture&&t.pmremVersion!==s)return r===null&&(r=new Gd(e)),i=a?r.fromEquirectangular(t,i):r.fromCubemap(t,i),i.texture.pmremVersion=t.pmremVersion,n.set(t,i),i.texture;if(i!==void 0)return i.texture;{let s=t.image;return a&&s&&s.height>0||o&&s&&c(s)?(r===null&&(r=new Gd(e)),i=a?r.fromEquirectangular(t):r.fromCubemap(t),i.texture.pmremVersion=t.pmremVersion,n.set(t,i),t.addEventListener(`dispose`,u),i.texture):null}}}return t}function s(e,t){return t===303?e.mapping=301:t===304&&(e.mapping=302),e}function c(e){let t=0;for(let n=0;n<6;n++)e[n]!==void 0&&t++;return t===6}function l(e){let n=e.target;n.removeEventListener(`dispose`,l);let r=t.get(n);r!==void 0&&(t.delete(n),r.dispose())}function u(e){let t=e.target;t.removeEventListener(`dispose`,u);let r=n.get(t);r!==void 0&&(n.delete(t),r.dispose())}function d(){t=new WeakMap,n=new WeakMap,r!==null&&(r.dispose(),r=null)}return{get:i,dispose:d}}function ef(e){let t={};function n(n){if(t[n]!==void 0)return t[n];let r=e.getExtension(n);return t[n]=r,r}return{has:function(e){return n(e)!==null},init:function(){n(`EXT_color_buffer_float`),n(`WEBGL_clip_cull_distance`),n(`OES_texture_float_linear`),n(`EXT_color_buffer_half_float`),n(`WEBGL_multisampled_render_to_texture`),n(`WEBGL_render_shared_exponent`)},get:function(e){let t=n(e);return t===null&&ho(`WebGLRenderer: `+e+` extension not supported.`),t}}}function tf(e,t,n,r){let i={},a=new WeakMap,o=new FinalizationRegistry(e=>delete i[e]);function s(e){c(e.target)}function c(e){e.index!==null&&t.remove(e.index);for(let n in e.attributes)t.remove(e.attributes[n]);e.removeEventListener(`dispose`,s),delete i[e.id],o.unregister(e);let c=a.get(e);c&&(t.remove(c),a.delete(e)),r.releaseStatesOfGeometry(e),e.isInstancedBufferGeometry===!0&&delete e._maxInstanceCount,n.memory.geometries--}function l(e,t){return i[t.id]===void 0&&(t.addEventListener(`dispose`,s),i[t.id]=new WeakRef(t),o.register(t,t.id,t),n.memory.geometries++),t}function u(n){let r=n.attributes;for(let n in r)t.update(r[n],e.ARRAY_BUFFER)}function d(e){let n=e.index,r=e.attributes.position,i=0;if(r===void 0)return;let o=n===null?r.array.length/3-1:n.array.length,s=new(r.count>=65535?jc:Ac)(Math.ceil(o/3)*6,1),c=s.array;if(n!==null){let e=n.array;i=n.version;for(let t=0,n=0;t<o;t+=3){let r=e[t+0],i=e[t+1],a=e[t+2];c[n++]=r,c[n++]=i,c[n++]=i,c[n++]=a,c[n++]=a,c[n++]=r}}else{i=r.version;for(let e=0,t=0;e<o;e+=3){let n=e+0,r=e+1,i=e+2;c[t++]=n,c[t++]=r,c[t++]=r,c[t++]=i,c[t++]=i,c[t++]=n}}s.version=i;let l=a.get(e);l&&t.remove(l),a.set(e,s)}function f(e){let t=a.get(e);if(t){let n=e.index;n!==null&&t.version<n.version&&d(e)}else d(e);return a.get(e)}function p(){for(let e in i){let t=i[e].deref();t!==void 0&&c(t)}}return{get:l,update:u,getWireframeAttribute:f,dispose:p}}function nf(e,t,n){let r;function i(e){r=e}let a,o;function s(e){a=e.type,o=e.bytesPerElement}function c(t,i){e.drawElements(r,i,a,t*o),n.update(i,r,1)}function l(t,i,s){s!==0&&(e.drawElementsInstanced(r,i,a,t*o,s),n.update(i,r,s))}function u(e,i,o){if(o===0)return;t.get(`WEBGL_multi_draw`).multiDrawElementsWEBGL(r,i,0,a,e,0,o);let s=0;for(let e=0;e<o;e++)s+=i[e];n.update(s,r,1)}this.setMode=i,this.setIndex=s,this.render=c,this.renderInstances=l,this.renderMultiDraw=u}function rf(e){let t={geometries:0,textures:0},n={frame:0,calls:0,triangles:0,points:0,lines:0};function r(t,r,i){switch(n.calls++,r){case e.TRIANGLES:n.triangles+=t/3*i;break;case e.LINES:n.lines+=t/2*i;break;case e.LINE_STRIP:n.lines+=i*(t-1);break;case e.LINE_LOOP:n.lines+=i*t;break;case e.POINTS:n.points+=i*t;break;default:V(`WebGLInfo: Unknown draw mode:`,r)}}function i(){n.calls=0,n.triangles=0,n.points=0,n.lines=0}return{memory:t,render:n,programs:null,autoReset:!0,reset:i,update:r}}function af(e,t,n){let r=new WeakMap,i=new ls;function a(a,o,s){let c=a.morphTargetInfluences,l=o.morphAttributes.position||o.morphAttributes.normal||o.morphAttributes.color,u=l===void 0?0:l.length,d=r.get(o);if(d===void 0||d.count!==u){d!==void 0&&d.texture.dispose();let e=o.morphAttributes.position!==void 0,n=o.morphAttributes.normal!==void 0,a=o.morphAttributes.color!==void 0,s=o.morphAttributes.position||[],c=o.morphAttributes.normal||[],l=o.morphAttributes.color||[],f=0;e===!0&&(f=1),n===!0&&(f=2),a===!0&&(f=3);let p=o.attributes.position.count*f,m=1;p>t.maxTextureSize&&(m=Math.ceil(p/t.maxTextureSize),p=t.maxTextureSize);let h=new Float32Array(p*m*4*u),g=new fs(h,p,m,u);g.type=Ki,g.needsUpdate=!0;let _=f*4;for(let t=0;t<u;t++){let r=s[t],o=c[t],u=l[t],d=p*m*4*t;for(let t=0;t<r.count;t++){let s=t*_;e===!0&&(i.fromBufferAttribute(r,t),h[d+s+0]=i.x,h[d+s+1]=i.y,h[d+s+2]=i.z,h[d+s+3]=0),n===!0&&(i.fromBufferAttribute(o,t),h[d+s+4]=i.x,h[d+s+5]=i.y,h[d+s+6]=i.z,h[d+s+7]=0),a===!0&&(i.fromBufferAttribute(u,t),h[d+s+8]=i.x,h[d+s+9]=i.y,h[d+s+10]=i.z,h[d+s+11]=u.itemSize===4?i.w:1)}}d={count:u,texture:g,size:new U(p,m)},r.set(o,d);function v(){g.dispose(),r.delete(o),o.removeEventListener(`dispose`,v)}o.addEventListener(`dispose`,v)}if(a.isInstancedMesh===!0&&a.morphTexture!==null)s.getUniforms().setValue(e,`morphTexture`,a.morphTexture,n);else{let t=0;for(let e=0;e<c.length;e++)t+=c[e];let n=o.morphTargetsRelative?1:1-t;s.getUniforms().setValue(e,`morphTargetBaseInfluence`,n),s.getUniforms().setValue(e,`morphTargetInfluences`,c)}s.getUniforms().setValue(e,`morphTargetsTexture`,d.texture,n),s.getUniforms().setValue(e,`morphTargetsTextureSize`,d.size)}return{update:a}}function of(e,t,n,r,i){let a=new WeakMap;function o(r){let o=i.render.frame,s=r.geometry,l=t.get(r,s);if(a.get(l)!==o&&(t.update(l),a.set(l,o)),r.isInstancedMesh&&(r.hasEventListener(`dispose`,c)===!1&&r.addEventListener(`dispose`,c),a.get(r)!==o&&(n.update(r.instanceMatrix,e.ARRAY_BUFFER),r.instanceColor!==null&&n.update(r.instanceColor,e.ARRAY_BUFFER),a.set(r,o))),r.isSkinnedMesh){let e=r.skeleton;a.get(e)!==o&&(e.update(),a.set(e,o))}return l}function s(){a=new WeakMap}function c(e){let t=e.target;t.removeEventListener(`dispose`,c),r.releaseStatesOfObject(t),n.remove(t.instanceMatrix),t.instanceColor!==null&&n.remove(t.instanceColor)}return{update:o,dispose:s}}var sf={1:`LINEAR_TONE_MAPPING`,2:`REINHARD_TONE_MAPPING`,3:`CINEON_TONE_MAPPING`,4:`ACES_FILMIC_TONE_MAPPING`,6:`AGX_TONE_MAPPING`,7:`NEUTRAL_TONE_MAPPING`,5:`CUSTOM_TONE_MAPPING`};function cf(e,t,n,r,i,a){let o=new ds(t,n,{type:e,depthBuffer:i,stencilBuffer:a,samples:r?4:0,storeMultisampledDepthBuffer:!1,storeMultisampledStencilBuffer:!1,resolveDepthBuffer:!1,resolveStencilBuffer:!1}),s=null,c=null,l=null,u=new Wc;u.setAttribute(`position`,new Mc([-1,3,0,-1,-1,0,3,-1,0],3)),u.setAttribute(`uv`,new Mc([0,2,0,0,2,0],2));let d=new su({uniforms:{tDiffuse:{value:null}},vertexShader:`
4642 precision highp float;
4643
4644 uniform mat4 modelViewMatrix;
4645 uniform mat4 projectionMatrix;
4646
4647 attribute vec3 position;
4648 attribute vec2 uv;
4649
4650 varying vec2 vUv;
4651
4652 void main() {
4653 vUv = uv;
4654 gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
4655 }`,fragmentShader:`
4656 precision highp float;
4657
4658 uniform sampler2D tDiffuse;
4659
4660 varying vec2 vUv;
4661
4662 #include <tonemapping_pars_fragment>
4663 #include <colorspace_pars_fragment>
4664
4665 void main() {
4666 gl_FragColor = texture2D( tDiffuse, vUv );
4667
4668 #ifdef LINEAR_TONE_MAPPING
4669 gl_FragColor.rgb = LinearToneMapping( gl_FragColor.rgb );
4670 #elif defined( REINHARD_TONE_MAPPING )
4671 gl_FragColor.rgb = ReinhardToneMapping( gl_FragColor.rgb );
4672 #elif defined( CINEON_TONE_MAPPING )
4673 gl_FragColor.rgb = CineonToneMapping( gl_FragColor.rgb );
4674 #elif defined( ACES_FILMIC_TONE_MAPPING )
4675 gl_FragColor.rgb = ACESFilmicToneMapping( gl_FragColor.rgb );
4676 #elif defined( AGX_TONE_MAPPING )
4677 gl_FragColor.rgb = AgXToneMapping( gl_FragColor.rgb );
4678 #elif defined( NEUTRAL_TONE_MAPPING )
4679 gl_FragColor.rgb = NeutralToneMapping( gl_FragColor.rgb );
4680 #elif defined( CUSTOM_TONE_MAPPING )
4681 gl_FragColor.rgb = CustomToneMapping( gl_FragColor.rgb );
4682 #endif
4683
4684 #ifdef SRGB_TRANSFER
4685 gl_FragColor = sRGBTransferOETF( gl_FragColor );
4686 #endif
4687 }`,depthTest:!1,depthWrite:!1}),f=new ml(u,d),p=new Zu(-1,1,1,-1,0,1),m=null,h=null,g=!1,_,v=null,y=[],b=!1;this.setSize=function(e,t){o.setSize(e,t),s!==null&&s.setSize(e,t),c!==null&&c.setSize(e,t);for(let n=0;n<y.length;n++){let r=y[n];r.setSize&&r.setSize(e,t)}},this.setEffects=function(e){y=e,b=y.length>0&&y[0].isRenderPass===!0;let t=o.width,n=o.height;y.length>0&&s===null&&(s=new ds(t,n,{type:qi,depthBuffer:!1,stencilBuffer:!1}),c=new ds(t,n,{type:qi,depthBuffer:!1,stencilBuffer:!1}));let r=i===!0&&y.some(e=>e.needsDepthTexture===!0);r!==(o.depthTexture!==null)&&(r===!0&&l===null&&(l=new Gl(t,n),a===!0&&(l.format=ra,l.type=Xi)),o.dispose(),o.depthTexture=r?l:null,o.resolveDepthBuffer=r,o.storeMultisampledDepthBuffer=r);for(let e=0;e<y.length;e++){let i=y[e];i.setSize&&i.setSize(t,n),r&&i.needsDepthTexture===!0&&i.setDepthTexture&&i.setDepthTexture(l)}},this.begin=function(e,t){if(g||e.toneMapping===0&&y.length===0)return!1;if(v=t,t!==null){let e=t.width,n=t.height;(o.width!==e||o.height!==n)&&this.setSize(e,n)}return b===!1&&e.setRenderTarget(o),_=e.toneMapping,e.toneMapping=0,!0},this.hasRenderPass=function(){return b},this.end=function(e,t){e.toneMapping=_,g=!0;let n=o,r=s;for(let i=0;i<y.length;i++){let a=y[i];a.enabled!==!1&&(a.render(e,r,n,t),a.needsSwap!==!1&&(n=r,r=r===s?c:s))}if(m!==e.outputColorSpace||h!==e.toneMapping){m=e.outputColorSpace,h=e.toneMapping,d.defines={},K.getTransfer(m)===`srgb`&&(d.defines.SRGB_TRANSFER=``);let t=sf[h];t&&(d.defines[t]=``),d.needsUpdate=!0}d.uniforms.tDiffuse.value=n.texture,e.setRenderTarget(v),e.render(f,p),v=null,g=!1},this.isCompositing=function(){return g},this.dispose=function(){o.dispose(),s!==null&&s.dispose(),c!==null&&c.dispose(),u.dispose(),d.dispose()}}var lf=new cs,uf=new Gl(1,1),df=new Kl(1),ff=new fs,pf=new ps,mf=new Ul,hf=[],gf=[],_f=new Float32Array(16),vf=new Float32Array(9),yf=new Float32Array(4);function bf(e,t,n){let r=e[0];if(r<=0||r>0)return e;let i=t*n,a=hf[i];if(a===void 0&&(a=new Float32Array(i),hf[i]=a),t!==0){r.toArray(a,0);for(let r=1,i=0;r!==t;++r)i+=n,e[r].toArray(a,i)}return a}function xf(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}function Sf(e,t){for(let n=0,r=t.length;n<r;n++)e[n]=t[n]}function Cf(e,t){let n=gf[t];n===void 0&&(n=new Int32Array(t),gf[t]=n);for(let r=0;r!==t;++r)n[r]=e.allocateTextureUnit();return n}function wf(e,t){let n=this.cache;n[0]!==t&&(e.uniform1f(this.addr,t),n[0]=t)}function Tf(e,t){let n=this.cache;if(t.x!==void 0)(n[0]!==t.x||n[1]!==t.y)&&(e.uniform2f(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(xf(n,t))return;e.uniform2fv(this.addr,t),Sf(n,t)}}function Ef(e,t){let n=this.cache;if(t.x!==void 0)(n[0]!==t.x||n[1]!==t.y||n[2]!==t.z)&&(e.uniform3f(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else if(t.r!==void 0)(n[0]!==t.r||n[1]!==t.g||n[2]!==t.b)&&(e.uniform3f(this.addr,t.r,t.g,t.b),n[0]=t.r,n[1]=t.g,n[2]=t.b);else{if(xf(n,t))return;e.uniform3fv(this.addr,t),Sf(n,t)}}function Df(e,t){let n=this.cache;if(t.x!==void 0)(n[0]!==t.x||n[1]!==t.y||n[2]!==t.z||n[3]!==t.w)&&(e.uniform4f(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(xf(n,t))return;e.uniform4fv(this.addr,t),Sf(n,t)}}function Of(e,t){let n=this.cache,r=t.elements;if(r===void 0){if(xf(n,t))return;e.uniformMatrix2fv(this.addr,!1,t),Sf(n,t)}else{if(xf(n,r))return;yf.set(r),e.uniformMatrix2fv(this.addr,!1,yf),Sf(n,r)}}function kf(e,t){let n=this.cache,r=t.elements;if(r===void 0){if(xf(n,t))return;e.uniformMatrix3fv(this.addr,!1,t),Sf(n,t)}else{if(xf(n,r))return;vf.set(r),e.uniformMatrix3fv(this.addr,!1,vf),Sf(n,r)}}function Af(e,t){let n=this.cache,r=t.elements;if(r===void 0){if(xf(n,t))return;e.uniformMatrix4fv(this.addr,!1,t),Sf(n,t)}else{if(xf(n,r))return;_f.set(r),e.uniformMatrix4fv(this.addr,!1,_f),Sf(n,r)}}function jf(e,t){let n=this.cache;n[0]!==t&&(e.uniform1i(this.addr,t),n[0]=t)}function Mf(e,t){let n=this.cache;if(t.x!==void 0)(n[0]!==t.x||n[1]!==t.y)&&(e.uniform2i(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(xf(n,t))return;e.uniform2iv(this.addr,t),Sf(n,t)}}function Nf(e,t){let n=this.cache;if(t.x!==void 0)(n[0]!==t.x||n[1]!==t.y||n[2]!==t.z)&&(e.uniform3i(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else{if(xf(n,t))return;e.uniform3iv(this.addr,t),Sf(n,t)}}function Pf(e,t){let n=this.cache;if(t.x!==void 0)(n[0]!==t.x||n[1]!==t.y||n[2]!==t.z||n[3]!==t.w)&&(e.uniform4i(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(xf(n,t))return;e.uniform4iv(this.addr,t),Sf(n,t)}}function Ff(e,t){let n=this.cache;n[0]!==t&&(e.uniform1ui(this.addr,t),n[0]=t)}function If(e,t){let n=this.cache;if(t.x!==void 0)(n[0]!==t.x||n[1]!==t.y)&&(e.uniform2ui(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(xf(n,t))return;e.uniform2uiv(this.addr,t),Sf(n,t)}}function Lf(e,t){let n=this.cache;if(t.x!==void 0)(n[0]!==t.x||n[1]!==t.y||n[2]!==t.z)&&(e.uniform3ui(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else{if(xf(n,t))return;e.uniform3uiv(this.addr,t),Sf(n,t)}}function Rf(e,t){let n=this.cache;if(t.x!==void 0)(n[0]!==t.x||n[1]!==t.y||n[2]!==t.z||n[3]!==t.w)&&(e.uniform4ui(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(xf(n,t))return;e.uniform4uiv(this.addr,t),Sf(n,t)}}function zf(e){return e.version===0&&(e.compareFunction=519,e.needsUpdate=!0),e}function Bf(e,t,n){let r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i);let a;a=this.type===e.SAMPLER_2D_SHADOW?zf(uf):lf,n.setTexture2D(t||a,i)}function Vf(e,t,n){let r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i),n.setTexture3D(t||pf,i)}function Hf(e,t,n){let r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i);let a;a=this.type===e.SAMPLER_CUBE_SHADOW?zf(df):mf,n.setTextureCube(t||a,i)}function Uf(e,t,n){let r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i),n.setTexture2DArray(t||ff,i)}function Wf(e){switch(e){case 5126:return wf;case 35664:return Tf;case 35665:return Ef;case 35666:return Df;case 35674:return Of;case 35675:return kf;case 35676:return Af;case 5124:case 35670:return jf;case 35667:case 35671:return Mf;case 35668:case 35672:return Nf;case 35669:case 35673:return Pf;case 5125:return Ff;case 36294:return If;case 36295:return Lf;case 36296:return Rf;case 35678:case 36198:case 36298:case 36306:case 35682:return Bf;case 35679:case 36299:case 36307:return Vf;case 35680:case 36300:case 36308:case 36293:return Hf;case 36289:case 36303:case 36311:case 36292:return Uf}}function Gf(e,t){e.uniform1fv(this.addr,t)}function Kf(e,t){let n=bf(t,this.size,2);e.uniform2fv(this.addr,n)}function qf(e,t){let n=bf(t,this.size,3);e.uniform3fv(this.addr,n)}function Jf(e,t){let n=bf(t,this.size,4);e.uniform4fv(this.addr,n)}function Yf(e,t){let n=bf(t,this.size,4);e.uniformMatrix2fv(this.addr,!1,n)}function Xf(e,t){let n=bf(t,this.size,9);e.uniformMatrix3fv(this.addr,!1,n)}function Zf(e,t){let n=bf(t,this.size,16);e.uniformMatrix4fv(this.addr,!1,n)}function Qf(e,t){e.uniform1iv(this.addr,t)}function $f(e,t){e.uniform2iv(this.addr,t)}function ep(e,t){e.uniform3iv(this.addr,t)}function tp(e,t){e.uniform4iv(this.addr,t)}function np(e,t){e.uniform1uiv(this.addr,t)}function rp(e,t){e.uniform2uiv(this.addr,t)}function ip(e,t){e.uniform3uiv(this.addr,t)}function ap(e,t){e.uniform4uiv(this.addr,t)}function op(e,t,n){let r=this.cache,i=t.length,a=Cf(n,i);xf(r,a)||(e.uniform1iv(this.addr,a),Sf(r,a));let o;o=this.type===e.SAMPLER_2D_SHADOW?zf(uf):lf;for(let e=0;e!==i;++e)n.setTexture2D(t[e]||o,a[e])}function sp(e,t,n){let r=this.cache,i=t.length,a=Cf(n,i);xf(r,a)||(e.uniform1iv(this.addr,a),Sf(r,a));for(let e=0;e!==i;++e)n.setTexture3D(t[e]||pf,a[e])}function cp(e,t,n){let r=this.cache,i=t.length,a=Cf(n,i);xf(r,a)||(e.uniform1iv(this.addr,a),Sf(r,a));let o;o=this.type===e.SAMPLER_CUBE_SHADOW?zf(df):mf;for(let e=0;e!==i;++e)n.setTextureCube(t[e]||o,a[e])}function lp(e,t,n){let r=this.cache,i=t.length,a=Cf(n,i);xf(r,a)||(e.uniform1iv(this.addr,a),Sf(r,a));for(let e=0;e!==i;++e)n.setTexture2DArray(t[e]||ff,a[e])}function up(e){switch(e){case 5126:return Gf;case 35664:return Kf;case 35665:return qf;case 35666:return Jf;case 35674:return Yf;case 35675:return Xf;case 35676:return Zf;case 5124:case 35670:return Qf;case 35667:case 35671:return $f;case 35668:case 35672:return ep;case 35669:case 35673:return tp;case 5125:return np;case 36294:return rp;case 36295:return ip;case 36296:return ap;case 35678:case 36198:case 36298:case 36306:case 35682:return op;case 35679:case 36299:case 36307:return sp;case 35680:case 36300:case 36308:case 36293:return cp;case 36289:case 36303:case 36311:case 36292:return lp}}var dp=class{constructor(e,t,n){this.id=e,this.addr=n,this.cache=[],this.type=t.type,this.setValue=Wf(t.type)}},fp=class{constructor(e,t,n){this.id=e,this.addr=n,this.cache=[],this.type=t.type,this.size=t.size,this.setValue=up(t.type)}},pp=class{constructor(e){this.id=e,this.seq=[],this.map={}}setValue(e,t,n){let r=this.seq;for(let i=0,a=r.length;i!==a;++i){let a=r[i];a.setValue(e,t[a.id],n)}}},mp=/(\w+)(\])?(\[|\.)?/g;function hp(e,t){e.seq.push(t),e.map[t.id]=t}function gp(e,t,n){let r=e.name,i=r.length;for(mp.lastIndex=0;;){let a=mp.exec(r),o=mp.lastIndex,s=a[1],c=a[2]===`]`,l=a[3];if(c&&(s|=0),l===void 0||l===`[`&&o+2===i){hp(n,l===void 0?new dp(s,e,t):new fp(s,e,t));break}{let e=n.map[s];e===void 0&&(e=new pp(s),hp(n,e)),n=e}}}var _p=class{constructor(e,t){this.seq=[],this.map={};let n=e.getProgramParameter(t,e.ACTIVE_UNIFORMS);for(let r=0;r<n;++r){let n=e.getActiveUniform(t,r);gp(n,e.getUniformLocation(t,n.name),this)}let r=[],i=[];for(let t of this.seq)t.type===e.SAMPLER_2D_SHADOW||t.type===e.SAMPLER_CUBE_SHADOW||t.type===e.SAMPLER_2D_ARRAY_SHADOW?r.push(t):i.push(t);r.length>0&&(this.seq=r.concat(i))}setValue(e,t,n,r){let i=this.map[t];i!==void 0&&i.setValue(e,n,r)}setOptional(e,t,n){let r=t[n];r!==void 0&&this.setValue(e,n,r)}static upload(e,t,n,r){for(let i=0,a=t.length;i!==a;++i){let a=t[i],o=n[a.id];o.needsUpdate!==!1&&a.setValue(e,o.value,r)}}static seqWithValue(e,t){let n=[];for(let r=0,i=e.length;r!==i;++r){let i=e[r];i.id in t&&n.push(i)}return n}};function vp(e,t,n){let r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),r}var yp=37297,bp=0;function xp(e,t){let n=e.split(`
4688`),r=[],i=Math.max(t-6,0),a=Math.min(t+6,n.length);for(let e=i;e<a;e++){let i=e+1;r.push(`${i===t?`>`:` `} ${i}: ${n[e]}`)}return r.join(`
4689`)}var Sp=new G;function Cp(e){K._getMatrix(Sp,K.workingColorSpace,e);let t=`mat3( ${Sp.elements.map(e=>e.toFixed(4))} )`;switch(K.getTransfer(e)){case to:return[t,`LinearTransferOETF`];case no:return[t,`sRGBTransferOETF`];default:return B(`WebGLProgram: Unsupported color space: `,e),[t,`LinearTransferOETF`]}}function wp(e,t,n){let r=e.getShaderParameter(t,e.COMPILE_STATUS),i=(e.getShaderInfoLog(t)||``).trim();if(r&&i===``)return``;let a=/ERROR: 0:(\d+)/.exec(i);if(a){let r=parseInt(a[1]);return n.toUpperCase()+`
4690
4691`+i+`
4692
4693`+xp(e.getShaderSource(t),r)}return i}function Tp(e,t){let n=Cp(t);return[`vec4 ${e}( vec4 value ) {`,` return ${n[1]}( vec4( ${n[0]} * value.rgb, value.a ) );`,`}`].join(`
4694`)}var Ep={1:`Linear`,2:`Reinhard`,3:`Cineon`,4:`ACESFilmic`,6:`AgX`,7:`Neutral`,5:`Custom`};function Dp(e,t){let n=Ep[t];return n===void 0?(B(`WebGLProgram: Unsupported toneMapping:`,t),`vec3 `+e+`( vec3 color ) { return LinearToneMapping( color ); }`):`vec3 `+e+`( vec3 color ) { return `+n+`ToneMapping( color ); }`}var Op=new W;function kp(){return K.getLuminanceCoefficients(Op),[`float luminance( const in vec3 rgb ) {`,` const vec3 weights = vec3( ${Op.x.toFixed(4)}, ${Op.y.toFixed(4)}, ${Op.z.toFixed(4)} );`,` return dot( weights, rgb );`,`}`].join(`
4695`)}function Ap(e){return[e.extensionClipCullDistance?`#extension GL_ANGLE_clip_cull_distance : require`:``,e.extensionMultiDraw?`#extension GL_ANGLE_multi_draw : require`:``].filter(Np).join(`
4696`)}function jp(e){let t=[];for(let n in e){let r=e[n];r!==!1&&t.push(`#define `+n+` `+r)}return t.join(`
4697`)}function Mp(e,t){let n={},r=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let i=0;i<r;i++){let r=e.getActiveAttrib(t,i),a=r.name,o=1;r.type===e.FLOAT_MAT2&&(o=2),r.type===e.FLOAT_MAT3&&(o=3),r.type===e.FLOAT_MAT4&&(o=4),n[a]={type:r.type,location:e.getAttribLocation(t,a),locationSize:o}}return n}function Np(e){return e!==``}function Pp(e,t){let n=t.numSpotLightShadows+t.numSpotLightMaps-t.numSpotLightShadowsWithMaps;return e.replace(/NUM_SUN_LIGHTS/g,t.numSunLights).replace(/NUM_DIR_LIGHTS/g,t.numDirLights).replace(/NUM_SPOT_LIGHTS/g,t.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g,t.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g,n).replace(/NUM_RECT_AREA_LIGHTS/g,t.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,t.numPointLights).replace(/NUM_HEMI_LIGHTS/g,t.numHemiLights).replace(/NUM_SUN_LIGHT_SHADOWS/g,t.numSunLightShadows).replace(/NUM_DIR_LIGHT_SHADOWS/g,t.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS/g,t.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g,t.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,t.numPointLightShadows).replace(/NUM_LIGHT_PROBE_GRIDS/g,t.numLightProbeGrids)}function Fp(e,t){return e.replace(/NUM_CLIPPING_PLANES/g,t.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,t.numClippingPlanes-t.numClipIntersection)}var Ip=/^[ \t]*#include +<([\w\d./]+)>/gm;function Lp(e){return e.replace(Ip,Rp)}function Rp(e,t){let n=J[t];if(n===void 0)throw Error(`THREE.WebGLProgram: Can not resolve #include <`+t+`>`);return Lp(n)}var zp=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Bp(e){return e.replace(zp,Vp)}function Vp(e,t,n,r){let i=``;for(let e=parseInt(t);e<parseInt(n);e++)i+=r.replace(/\[\s*i\s*\]/g,`[ `+e+` ]`).replace(/UNROLLED_LOOP_INDEX/g,e);return i}function Hp(e){let t=`precision ${e.precision} float;
4698 precision ${e.precision} int;
4699 precision ${e.precision} sampler2D;
4700 precision ${e.precision} samplerCube;
4701 precision ${e.precision} sampler3D;
4702 precision ${e.precision} sampler2DArray;
4703 precision ${e.precision} sampler2DShadow;
4704 precision ${e.precision} samplerCubeShadow;
4705 precision ${e.precision} sampler2DArrayShadow;
4706 precision ${e.precision} isampler2D;
4707 precision ${e.precision} isampler3D;
4708 precision ${e.precision} isamplerCube;
4709 precision ${e.precision} isampler2DArray;
4710 precision ${e.precision} usampler2D;
4711 precision ${e.precision} usampler3D;
4712 precision ${e.precision} usamplerCube;
4713 precision ${e.precision} usampler2DArray;
4714 `;return e.precision===`highp`?t+=`
4715#define HIGH_PRECISION`:e.precision===`mediump`?t+=`
4716#define MEDIUM_PRECISION`:e.precision===`lowp`&&(t+=`
4717#define LOW_PRECISION`),t}var Up={1:`SHADOWMAP_TYPE_PCF`,3:`SHADOWMAP_TYPE_VSM`};function Wp(e){return Up[e.shadowMapType]||`SHADOWMAP_TYPE_BASIC`}var Gp={302:`ENVMAP_MODE_REFRACTION`};function Kp(e){return e.envMap===!1?`ENVMAP_MODE_REFLECTION`:Gp[e.envMapMode]||`ENVMAP_MODE_REFLECTION`}var qp={0:`ENVMAP_BLENDING_MULTIPLY`,1:`ENVMAP_BLENDING_MIX`,2:`ENVMAP_BLENDING_ADD`};function Jp(e){return e.envMap===!1?`ENVMAP_BLENDING_NONE`:qp[e.combine]||`ENVMAP_BLENDING_NONE`}function Yp(e,t,n,r){let i=e.getContext(),a=n.defines,o=n.vertexShader,s=n.fragmentShader,c=Wp(n),l=n.envMapPMREM===!0?`ENVMAP_TYPE_PMREM`:`ENVMAP_TYPE_CUBE`,u=Kp(n),d=Jp(n),f=Ap(n),p=jp(a),m=i.createProgram(),h,g,_=n.glslVersion?`#version `+n.glslVersion+`
4718`:``;n.isRawShaderMaterial?(h=[`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,p].filter(Np).join(`
4719`),h.length>0&&(h+=`
4720`),g=[`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,p].filter(Np).join(`
4721`),g.length>0&&(g+=`
4722`)):(h=[Hp(n),`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,p,n.extensionClipCullDistance?`#define USE_CLIP_DISTANCE`:``,n.batching?`#define USE_BATCHING`:``,n.batchingColor?`#define USE_BATCHING_COLOR`:``,n.instancing?`#define USE_INSTANCING`:``,n.instancingColor?`#define USE_INSTANCING_COLOR`:``,n.instancingMorph?`#define USE_INSTANCING_MORPH`:``,n.useFog&&n.fog?`#define USE_FOG`:``,n.useFog&&n.fogExp2?`#define FOG_EXP2`:``,n.map?`#define USE_MAP`:``,n.envMap?`#define USE_ENVMAP`:``,n.envMap?`#define `+u:``,n.lightMap?`#define USE_LIGHTMAP`:``,n.aoMap?`#define USE_AOMAP`:``,n.bumpMap?`#define USE_BUMPMAP`:``,n.normalMap?`#define USE_NORMALMAP`:``,n.normalMapObjectSpace?`#define USE_NORMALMAP_OBJECTSPACE`:``,n.normalMapTangentSpace?`#define USE_NORMALMAP_TANGENTSPACE`:``,n.displacementMap?`#define USE_DISPLACEMENTMAP`:``,n.emissiveMap?`#define USE_EMISSIVEMAP`:``,n.anisotropy?`#define USE_ANISOTROPY`:``,n.anisotropyMap?`#define USE_ANISOTROPYMAP`:``,n.clearcoatMap?`#define USE_CLEARCOATMAP`:``,n.clearcoatRoughnessMap?`#define USE_CLEARCOAT_ROUGHNESSMAP`:``,n.clearcoatNormalMap?`#define USE_CLEARCOAT_NORMALMAP`:``,n.diffuseRoughnessMap?`#define USE_DIFFUSE_ROUGHNESSMAP`:``,n.iridescenceMap?`#define USE_IRIDESCENCEMAP`:``,n.iridescenceThicknessMap?`#define USE_IRIDESCENCE_THICKNESSMAP`:``,n.specularMap?`#define USE_SPECULARMAP`:``,n.specularColorMap?`#define USE_SPECULAR_COLORMAP`:``,n.specularIntensityMap?`#define USE_SPECULAR_INTENSITYMAP`:``,n.roughnessMap?`#define USE_ROUGHNESSMAP`:``,n.metalnessMap?`#define USE_METALNESSMAP`:``,n.alphaMap?`#define USE_ALPHAMAP`:``,n.alphaHash?`#define USE_ALPHAHASH`:``,n.transmission?`#define USE_TRANSMISSION`:``,n.transmissionMap?`#define USE_TRANSMISSIONMAP`:``,n.thicknessMap?`#define USE_THICKNESSMAP`:``,n.sheenColorMap?`#define USE_SHEEN_COLORMAP`:``,n.sheenRoughnessMap?`#define USE_SHEEN_ROUGHNESSMAP`:``,n.mapUv?`#define MAP_UV `+n.mapUv:``,n.alphaMapUv?`#define ALPHAMAP_UV `+n.alphaMapUv:``,n.lightMapUv?`#define LIGHTMAP_UV `+n.lightMapUv:``,n.aoMapUv?`#define AOMAP_UV `+n.aoMapUv:``,n.emissiveMapUv?`#define EMISSIVEMAP_UV `+n.emissiveMapUv:``,n.bumpMapUv?`#define BUMPMAP_UV `+n.bumpMapUv:``,n.normalMapUv?`#define NORMALMAP_UV `+n.normalMapUv:``,n.displacementMapUv?`#define DISPLACEMENTMAP_UV `+n.displacementMapUv:``,n.metalnessMapUv?`#define METALNESSMAP_UV `+n.metalnessMapUv:``,n.roughnessMapUv?`#define ROUGHNESSMAP_UV `+n.roughnessMapUv:``,n.anisotropyMapUv?`#define ANISOTROPYMAP_UV `+n.anisotropyMapUv:``,n.clearcoatMapUv?`#define CLEARCOATMAP_UV `+n.clearcoatMapUv:``,n.clearcoatNormalMapUv?`#define CLEARCOAT_NORMALMAP_UV `+n.clearcoatNormalMapUv:``,n.clearcoatRoughnessMapUv?`#define CLEARCOAT_ROUGHNESSMAP_UV `+n.clearcoatRoughnessMapUv:``,n.diffuseRoughnessMapUv?`#define DIFFUSE_ROUGHNESSMAP_UV `+n.diffuseRoughnessMapUv:``,n.iridescenceMapUv?`#define IRIDESCENCEMAP_UV `+n.iridescenceMapUv:``,n.iridescenceThicknessMapUv?`#define IRIDESCENCE_THICKNESSMAP_UV `+n.iridescenceThicknessMapUv:``,n.sheenColorMapUv?`#define SHEEN_COLORMAP_UV `+n.sheenColorMapUv:``,n.sheenRoughnessMapUv?`#define SHEEN_ROUGHNESSMAP_UV `+n.sheenRoughnessMapUv:``,n.specularMapUv?`#define SPECULARMAP_UV `+n.specularMapUv:``,n.specularColorMapUv?`#define SPECULAR_COLORMAP_UV `+n.specularColorMapUv:``,n.specularIntensityMapUv?`#define SPECULAR_INTENSITYMAP_UV `+n.specularIntensityMapUv:``,n.transmissionMapUv?`#define TRANSMISSIONMAP_UV `+n.transmissionMapUv:``,n.thicknessMapUv?`#define THICKNESSMAP_UV `+n.thicknessMapUv:``,n.vertexTangents&&n.flatShading===!1?`#define USE_TANGENT`:``,n.vertexNormals?`#define HAS_NORMAL`:``,n.vertexColors?`#define USE_COLOR`:``,n.vertexAlphas?`#define USE_COLOR_ALPHA`:``,n.vertexUv1s?`#define USE_UV1`:``,n.vertexUv2s?`#define USE_UV2`:``,n.vertexUv3s?`#define USE_UV3`:``,n.pointsUvs?`#define USE_POINTS_UV`:``,n.flatShading?`#define FLAT_SHADED`:``,n.skinning?`#define USE_SKINNING`:``,n.morphTargets?`#define USE_MORPHTARGETS`:``,n.morphNormals&&n.flatShading===!1?`#define USE_MORPHNORMALS`:``,n.morphColors?`#define USE_MORPHCOLORS`:``,n.morphTargetsCount>0?`#define MORPHTARGETS_TEXTURE_STRIDE `+n.morphTextureStride:``,n.morphTargetsCount>0?`#define MORPHTARGETS_COUNT `+n.morphTargetsCount:``,n.doubleSided?`#define DOUBLE_SIDED`:``,n.flipSided?`#define FLIP_SIDED`:``,n.shadowMapEnabled?`#define USE_SHADOWMAP`:``,n.shadowMapEnabled?`#define `+c:``,n.sizeAttenuation?`#define USE_SIZEATTENUATION`:``,n.numLightProbes>0?`#define USE_LIGHT_PROBES`:``,n.logarithmicDepthBuffer?`#define USE_LOGARITHMIC_DEPTH_BUFFER`:``,n.reversedDepthBuffer?`#define USE_REVERSED_DEPTH_BUFFER`:``,`uniform mat4 modelMatrix;`,`uniform mat4 modelViewMatrix;`,`uniform mat4 projectionMatrix;`,`uniform mat4 viewMatrix;`,`uniform mat3 normalMatrix;`,`uniform vec3 cameraPosition;`,`uniform bool isOrthographic;`,`#ifdef USE_INSTANCING`,` attribute mat4 instanceMatrix;`,`#endif`,`#ifdef USE_INSTANCING_COLOR`,` attribute vec3 instanceColor;`,`#endif`,`#ifdef USE_INSTANCING_MORPH`,` uniform sampler2D morphTexture;`,`#endif`,`attribute vec3 position;`,`attribute vec3 normal;`,`attribute vec2 uv;`,`#ifdef USE_UV1`,` attribute vec2 uv1;`,`#endif`,`#ifdef USE_UV2`,` attribute vec2 uv2;`,`#endif`,`#ifdef USE_UV3`,` attribute vec2 uv3;`,`#endif`,`#ifdef USE_TANGENT`,` attribute vec4 tangent;`,`#endif`,`#if defined( USE_COLOR_ALPHA )`,` attribute vec4 color;`,`#elif defined( USE_COLOR )`,` attribute vec3 color;`,`#endif`,`#ifdef USE_SKINNING`,` attribute vec4 skinIndex;`,` attribute vec4 skinWeight;`,`#endif`,`
4723`].filter(Np).join(`
4724`),g=[Hp(n),`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,p,n.useFog&&n.fog?`#define USE_FOG`:``,n.useFog&&n.fogExp2?`#define FOG_EXP2`:``,n.alphaToCoverage?`#define ALPHA_TO_COVERAGE`:``,n.map?`#define USE_MAP`:``,n.matcap?`#define USE_MATCAP`:``,n.envMap?`#define USE_ENVMAP`:``,n.envMap?`#define `+l:``,n.envMap?`#define `+u:``,n.envMap?`#define `+d:``,n.envMapPMREM?`#define ENVMAP_MAX_LOD `+n.envMapMaxLod+`.0`:``,n.envMapPMREM?`#define ENVMAP_SIZE `+n.envMapSize+`.0`:``,n.lightMap?`#define USE_LIGHTMAP`:``,n.aoMap?`#define USE_AOMAP`:``,n.bumpMap?`#define USE_BUMPMAP`:``,n.normalMap?`#define USE_NORMALMAP`:``,n.normalMapObjectSpace?`#define USE_NORMALMAP_OBJECTSPACE`:``,n.normalMapTangentSpace?`#define USE_NORMALMAP_TANGENTSPACE`:``,n.packedNormalMap?`#define USE_PACKED_NORMALMAP`:``,n.emissiveMap?`#define USE_EMISSIVEMAP`:``,n.anisotropy?`#define USE_ANISOTROPY`:``,n.anisotropyMap?`#define USE_ANISOTROPYMAP`:``,n.clearcoat?`#define USE_CLEARCOAT`:``,n.clearcoatMap?`#define USE_CLEARCOATMAP`:``,n.clearcoatRoughnessMap?`#define USE_CLEARCOAT_ROUGHNESSMAP`:``,n.clearcoatNormalMap?`#define USE_CLEARCOAT_NORMALMAP`:``,n.diffuseRoughness?`#define USE_DIFFUSE_ROUGHNESS`:``,n.diffuseRoughnessMap?`#define USE_DIFFUSE_ROUGHNESSMAP`:``,n.dispersion?`#define USE_DISPERSION`:``,n.retroreflection?`#define USE_RETROREFLECTION`:``,n.iridescence?`#define USE_IRIDESCENCE`:``,n.iridescenceMap?`#define USE_IRIDESCENCEMAP`:``,n.iridescenceThicknessMap?`#define USE_IRIDESCENCE_THICKNESSMAP`:``,n.specularMap?`#define USE_SPECULARMAP`:``,n.specularColorMap?`#define USE_SPECULAR_COLORMAP`:``,n.specularIntensityMap?`#define USE_SPECULAR_INTENSITYMAP`:``,n.roughnessMap?`#define USE_ROUGHNESSMAP`:``,n.metalnessMap?`#define USE_METALNESSMAP`:``,n.alphaMap?`#define USE_ALPHAMAP`:``,n.alphaTest?`#define USE_ALPHATEST`:``,n.alphaHash?`#define USE_ALPHAHASH`:``,n.sheen?`#define USE_SHEEN`:``,n.sheenColorMap?`#define USE_SHEEN_COLORMAP`:``,n.sheenRoughnessMap?`#define USE_SHEEN_ROUGHNESSMAP`:``,n.transmission?`#define USE_TRANSMISSION`:``,n.transmissionMap?`#define USE_TRANSMISSIONMAP`:``,n.thicknessMap?`#define USE_THICKNESSMAP`:``,n.vertexTangents&&n.flatShading===!1?`#define USE_TANGENT`:``,n.vertexColors||n.instancingColor?`#define USE_COLOR`:``,n.vertexAlphas||n.batchingColor?`#define USE_COLOR_ALPHA`:``,n.vertexUv1s?`#define USE_UV1`:``,n.vertexUv2s?`#define USE_UV2`:``,n.vertexUv3s?`#define USE_UV3`:``,n.pointsUvs?`#define USE_POINTS_UV`:``,n.gradientMap?`#define USE_GRADIENTMAP`:``,n.flatShading?`#define FLAT_SHADED`:``,n.doubleSided?`#define DOUBLE_SIDED`:``,n.flipSided?`#define FLIP_SIDED`:``,n.shadowMapEnabled?`#define USE_SHADOWMAP`:``,n.shadowMapEnabled?`#define `+c:``,n.premultipliedAlpha?`#define PREMULTIPLIED_ALPHA`:``,n.numLightProbes>0?`#define USE_LIGHT_PROBES`:``,n.decodeVideoTexture?`#define DECODE_VIDEO_TEXTURE`:``,n.decodeVideoTextureEmissive?`#define DECODE_VIDEO_TEXTURE_EMISSIVE`:``,n.logarithmicDepthBuffer?`#define USE_LOGARITHMIC_DEPTH_BUFFER`:``,n.reversedDepthBuffer?`#define USE_REVERSED_DEPTH_BUFFER`:``,`uniform mat4 viewMatrix;`,`uniform vec3 cameraPosition;`,`uniform bool isOrthographic;`,n.toneMapping===0?``:`#define TONE_MAPPING`,n.toneMapping===0?``:J.tonemapping_pars_fragment,n.toneMapping===0?``:Dp(`toneMapping`,n.toneMapping),n.dithering?`#define DITHERING`:``,n.opaque?`#define OPAQUE`:``,J.colorspace_pars_fragment,Tp(`linearToOutputTexel`,n.outputColorSpace),kp(),n.useDepthPacking?`#define DEPTH_PACKING `+n.depthPacking:``,`
4725`].filter(Np).join(`
4726`)),o=Lp(o),o=Pp(o,n),o=Fp(o,n),s=Lp(s),s=Pp(s,n),s=Fp(s,n),o=Bp(o),s=Bp(s),n.isRawShaderMaterial!==!0&&(_=`#version 300 es
4727`,h=[f,`#define attribute in`,`#define varying out`,`#define texture2D texture`].join(`
4728`)+`
4729`+h,g=[`#define varying in`,n.glslVersion===`300 es`?``:`layout(location = 0) out highp vec4 pc_fragColor;`,n.glslVersion===`300 es`?``:`#define gl_FragColor pc_fragColor`,`#define gl_FragDepthEXT gl_FragDepth`,`#define texture2D texture`,`#define textureCube texture`,`#define texture2DProj textureProj`,`#define texture2DLodEXT textureLod`,`#define texture2DProjLodEXT textureProjLod`,`#define textureCubeLodEXT textureLod`,`#define texture2DGradEXT textureGrad`,`#define texture2DProjGradEXT textureProjGrad`,`#define textureCubeGradEXT textureGrad`].join(`
4730`)+`
4731`+g);let v=_+h+o,y=_+g+s,b=vp(i,i.VERTEX_SHADER,v),x=vp(i,i.FRAGMENT_SHADER,y);i.attachShader(m,b),i.attachShader(m,x),n.index0AttributeName===void 0?n.hasPositionAttribute===!0&&i.bindAttribLocation(m,0,`position`):i.bindAttribLocation(m,0,n.index0AttributeName),i.linkProgram(m);function S(t){if(e.debug.checkShaderErrors){let n=i.getProgramInfoLog(m)||``,r=i.getShaderInfoLog(b)||``,a=i.getShaderInfoLog(x)||``,o=n.trim(),s=r.trim(),c=a.trim(),l=!0,u=!0;if(i.getProgramParameter(m,i.LINK_STATUS)===!1){if(l=!1,typeof e.debug.onShaderError==`function`)e.debug.onShaderError(i,m,b,x);else{let e=wp(i,b,`vertex`),n=wp(i,x,`fragment`);V(`WebGLProgram: Shader Error `+i.getError()+` - VALIDATE_STATUS `+i.getProgramParameter(m,i.VALIDATE_STATUS)+`
4732
4733Material Name: `+t.name+`
4734Material Type: `+t.type+`
4735
4736Program Info Log: `+o+`
4737`+e+`
4738`+n)}}else o===``?(s===``||c===``)&&(u=!1):B(`WebGLProgram: Program Info Log:`,o);u&&(t.diagnostics={runnable:l,programLog:o,vertexShader:{log:s,prefix:h},fragmentShader:{log:c,prefix:g}})}i.deleteShader(b),i.deleteShader(x),C=new _p(i,m),w=Mp(i,m)}let C;this.getUniforms=function(){return C===void 0&&S(this),C};let w;this.getAttributes=function(){return w===void 0&&S(this),w};let T=n.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return T===!1&&(T=i.getProgramParameter(m,yp)),T},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(m),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=bp++,this.cacheKey=t,this.usedTimes=1,this.program=m,this.vertexShader=b,this.fragmentShader=x,this}var Xp=0,Zp=class{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e,t,n){let r=this._getShaderCacheForMaterial(e);return r.has(t)===!1&&(r.add(t),t.usedTimes++),r.has(n)===!1&&(r.add(n),n.usedTimes++),this}remove(e){let t=this.materialCache.get(e);for(let e of t)e.usedTimes--,e.usedTimes===0&&this.shaderCache.delete(e.code);return this.materialCache.delete(e),this}getVertexShaderStage(e){return this._getShaderStage(e.vertexShader)}getFragmentShaderStage(e){return this._getShaderStage(e.fragmentShader)}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){let t=this.materialCache,n=t.get(e);return n===void 0&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){let t=this.shaderCache,n=t.get(e);return n===void 0&&(n=new Qp(e),t.set(e,n)),n}},Qp=class{constructor(e){this.id=Xp++,this.code=e,this.usedTimes=0}};function $p(e){return e===1030||e===37490||e===36285}function em(e,t,n,r,i,a){let o=new Ts,s=new Zp,c=new Set,l=[],u=new Map,d=r.logarithmicDepthBuffer,f={MeshDepthMaterial:`depth`,MeshDistanceMaterial:`distance`,MeshNormalMaterial:`normal`,MeshBasicMaterial:`basic`,MeshLambertMaterial:`lambert`,MeshPhongMaterial:`phong`,MeshToonMaterial:`toon`,MeshStandardMaterial:`physical`,MeshPhysicalMaterial:`physical`,MeshMatcapMaterial:`matcap`,LineBasicMaterial:`basic`,LineDashedMaterial:`dashed`,PointsMaterial:`points`,ShadowMaterial:`shadow`,SpriteMaterial:`sprite`};function p(e){return c.add(e),e===0?`uv`:`uv${e}`}function m(i,o,l,u,m,h){let g=u.fog,_=m.geometry,v=i.isMeshStandardMaterial||i.isMeshLambertMaterial||i.isMeshPhongMaterial?u.environment:null,y=i.isMeshStandardMaterial||i.isMeshLambertMaterial&&!i.envMap||i.isMeshPhongMaterial&&!i.envMap,b=t.get(i.envMap||v,y),x=f[i.type],S=r.precision;i.precision!==null&&(S=r.getMaxPrecision(i.precision),S!==i.precision&&B(`WebGLProgram.getParameters:`,i.precision,`not supported, using`,S,`instead.`));let C=_.morphAttributes.position||_.morphAttributes.normal||_.morphAttributes.color,w=C===void 0?0:C.length,T=0;_.morphAttributes.position!==void 0&&(T=1),_.morphAttributes.normal!==void 0&&(T=2),_.morphAttributes.color!==void 0&&(T=3);let E,D,O,k;if(x){let e=Dd[x];E=e.vertexShader,D=e.fragmentShader}else{E=i.vertexShader,D=i.fragmentShader;let e=s.getVertexShaderStage(i),t=s.getFragmentShaderStage(i);s.update(i,e,t),O=e.id,k=t.id}let A=e.getRenderTarget(),j=e.state.buffers.depth.getReversed(),M=m.isInstancedMesh===!0,N=m.isBatchedMesh===!0,ee=!!i.map,te=!!i.matcap,P=!!b,ne=P&&b.isPMREMTexture===!0,re=!!i.aoMap,ie=!!i.lightMap,ae=!!i.bumpMap&&i.wireframe===!1,oe=!!i.normalMap,se=!!i.displacementMap,ce=!!i.emissiveMap,le=!!i.metalnessMap,ue=!!i.roughnessMap,de=i.anisotropy>0,fe=i.clearcoat>0,pe=i.diffuseRoughness>0,me=i.dispersion>0,he=i.retroreflectivity>0,ge=i.iridescence>0,_e=i.sheen>0,ve=i.transmission>0,ye=de&&!!i.anisotropyMap,be=fe&&!!i.clearcoatMap,xe=fe&&!!i.clearcoatNormalMap,Se=fe&&!!i.clearcoatRoughnessMap,Ce=pe&&!!i.diffuseRoughnessMap,F=ge&&!!i.iridescenceMap,we=ge&&!!i.iridescenceThicknessMap,Te=_e&&!!i.sheenColorMap,Ee=_e&&!!i.sheenRoughnessMap,I=!!i.specularMap,De=!!i.specularColorMap,L=!!i.specularIntensityMap,R=ve&&!!i.transmissionMap,Oe=ve&&!!i.thicknessMap,ke=!!i.gradientMap,Ae=!!i.alphaMap,je=i.alphaTest>0,z=!!i.alphaHash,Me=!!i.extensions,Ne=0;i.toneMapped&&(A===null||A.isXRRenderTarget===!0)&&(Ne=e.toneMapping);let Pe=ne?b.isCompressedCubeTexture?b.image[0].mipmaps:b.mipmaps:null,Fe={shaderID:x,shaderType:i.type,shaderName:i.name,vertexShader:E,fragmentShader:D,defines:i.defines,customVertexShaderID:O,customFragmentShaderID:k,isRawShaderMaterial:i.isRawShaderMaterial===!0,glslVersion:i.glslVersion,precision:S,batching:N,batchingColor:N&&m._colorsTexture!==null,instancing:M,instancingColor:M&&m.instanceColor!==null,instancingMorph:M&&m.morphTexture!==null,outputColorSpace:A===null?e.outputColorSpace:A.isXRRenderTarget===!0?A.texture.colorSpace:K.workingColorSpace,alphaToCoverage:!!i.alphaToCoverage,map:ee,matcap:te,envMap:P,envMapMode:P&&b.mapping,envMapPMREM:ne,envMapMaxLod:ne?Pe.length-1:null,envMapSize:ne?Pe[0].width:null,aoMap:re,lightMap:ie,bumpMap:ae,normalMap:oe,displacementMap:se,emissiveMap:ce,normalMapObjectSpace:oe&&i.normalMapType===1,normalMapTangentSpace:oe&&i.normalMapType===0,packedNormalMap:oe&&i.normalMapType===0&&$p(i.normalMap.format),metalnessMap:le,roughnessMap:ue,anisotropy:de,anisotropyMap:ye,clearcoat:fe,clearcoatMap:be,clearcoatNormalMap:xe,clearcoatRoughnessMap:Se,diffuseRoughness:pe,diffuseRoughnessMap:Ce,dispersion:me,retroreflection:he,iridescence:ge,iridescenceMap:F,iridescenceThicknessMap:we,sheen:_e,sheenColorMap:Te,sheenRoughnessMap:Ee,specularMap:I,specularColorMap:De,specularIntensityMap:L,transmission:ve,transmissionMap:R,thicknessMap:Oe,gradientMap:ke,opaque:i.transparent===!1&&i.blending===1&&i.alphaToCoverage===!1,alphaMap:Ae,alphaTest:je,alphaHash:z,combine:i.combine,mapUv:ee&&p(i.map.channel),aoMapUv:re&&p(i.aoMap.channel),lightMapUv:ie&&p(i.lightMap.channel),bumpMapUv:ae&&p(i.bumpMap.channel),normalMapUv:oe&&p(i.normalMap.channel),displacementMapUv:se&&p(i.displacementMap.channel),emissiveMapUv:ce&&p(i.emissiveMap.channel),metalnessMapUv:le&&p(i.metalnessMap.channel),roughnessMapUv:ue&&p(i.roughnessMap.channel),anisotropyMapUv:ye&&p(i.anisotropyMap.channel),clearcoatMapUv:be&&p(i.clearcoatMap.channel),clearcoatNormalMapUv:xe&&p(i.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:Se&&p(i.clearcoatRoughnessMap.channel),diffuseRoughnessMapUv:Ce&&p(i.diffuseRoughnessMap.channel),iridescenceMapUv:F&&p(i.iridescenceMap.channel),iridescenceThicknessMapUv:we&&p(i.iridescenceThicknessMap.channel),sheenColorMapUv:Te&&p(i.sheenColorMap.channel),sheenRoughnessMapUv:Ee&&p(i.sheenRoughnessMap.channel),specularMapUv:I&&p(i.specularMap.channel),specularColorMapUv:De&&p(i.specularColorMap.channel),specularIntensityMapUv:L&&p(i.specularIntensityMap.channel),transmissionMapUv:R&&p(i.transmissionMap.channel),thicknessMapUv:Oe&&p(i.thicknessMap.channel),alphaMapUv:Ae&&p(i.alphaMap.channel),vertexTangents:!!_.attributes.tangent&&(oe||de),vertexNormals:!!_.attributes.normal,vertexColors:i.vertexColors,vertexAlphas:i.vertexColors===!0&&!!_.attributes.color&&_.attributes.color.itemSize===4,pointsUvs:m.isPoints===!0&&!!_.attributes.uv&&(ee||Ae),fog:!!g,useFog:i.fog===!0,fogExp2:!!g&&g.isFogExp2,flatShading:i.wireframe===!1&&(i.flatShading===!0||_.attributes.normal===void 0&&oe===!1&&(i.isMeshLambertMaterial||i.isMeshPhongMaterial||i.isMeshStandardMaterial||i.isMeshPhysicalMaterial)),sizeAttenuation:i.sizeAttenuation===!0,logarithmicDepthBuffer:d,reversedDepthBuffer:j,skinning:m.isSkinnedMesh===!0,hasPositionAttribute:_.attributes.position!==void 0,morphTargets:_.morphAttributes.position!==void 0,morphNormals:_.morphAttributes.normal!==void 0,morphColors:_.morphAttributes.color!==void 0,morphTargetsCount:w,morphTextureStride:T,numSunLights:o.sun.length,numDirLights:o.directional.length,numPointLights:o.point.length,numSpotLights:o.spot.length,numSpotLightMaps:o.spotLightMap.length,numRectAreaLights:o.rectArea.length,numHemiLights:o.hemi.length,numSunLightShadows:o.sunShadowMap.length,numDirLightShadows:o.directionalShadowMap.length,numPointLightShadows:o.pointShadowMap.length,numSpotLightShadows:o.spotShadowMap.length,numSpotLightShadowsWithMaps:o.numSpotLightShadowsWithMaps,numLightProbes:o.numLightProbes,numLightProbeGrids:h.filter(e=>e.texture!==null).length,numClippingPlanes:a.numPlanes,numClipIntersection:a.numIntersection,dithering:i.dithering,shadowMapEnabled:e.shadowMap.enabled&&l.length>0,shadowMapType:e.shadowMap.type,toneMapping:Ne,decodeVideoTexture:ee&&i.map.isVideoTexture===!0&&K.getTransfer(i.map.colorSpace)===`srgb`,decodeVideoTextureEmissive:ce&&i.emissiveMap.isVideoTexture===!0&&K.getTransfer(i.emissiveMap.colorSpace)===`srgb`,premultipliedAlpha:i.premultipliedAlpha,doubleSided:i.side===2,flipSided:i.side===1,useDepthPacking:i.depthPacking>=0,depthPacking:i.depthPacking||0,index0AttributeName:i.index0AttributeName,extensionClipCullDistance:Me&&i.extensions.clipCullDistance===!0&&n.has(`WEBGL_clip_cull_distance`),extensionMultiDraw:(Me&&i.extensions.multiDraw===!0||N)&&n.has(`WEBGL_multi_draw`),rendererExtensionParallelShaderCompile:n.has(`KHR_parallel_shader_compile`),customProgramCacheKey:i.customProgramCacheKey()};return Fe.vertexUv1s=c.has(1),Fe.vertexUv2s=c.has(2),Fe.vertexUv3s=c.has(3),c.clear(),Fe}function h(t){let n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),t.defines!==void 0)for(let e in t.defines)n.push(e),n.push(t.defines[e]);return t.isRawShaderMaterial===!1&&(g(n,t),_(n,t),n.push(e.outputColorSpace)),n.push(t.customProgramCacheKey),n.join()}function g(e,t){e.push(t.precision),e.push(t.outputColorSpace),e.push(t.envMapMode),e.push(t.envMapPMREM),e.push(t.envMapMaxLod),e.push(t.envMapSize),e.push(t.mapUv),e.push(t.alphaMapUv),e.push(t.lightMapUv),e.push(t.aoMapUv),e.push(t.bumpMapUv),e.push(t.normalMapUv),e.push(t.displacementMapUv),e.push(t.emissiveMapUv),e.push(t.metalnessMapUv),e.push(t.roughnessMapUv),e.push(t.anisotropyMapUv),e.push(t.clearcoatMapUv),e.push(t.clearcoatNormalMapUv),e.push(t.clearcoatRoughnessMapUv),e.push(t.diffuseRoughnessMapUv),e.push(t.iridescenceMapUv),e.push(t.iridescenceThicknessMapUv),e.push(t.sheenColorMapUv),e.push(t.sheenRoughnessMapUv),e.push(t.specularMapUv),e.push(t.specularColorMapUv),e.push(t.specularIntensityMapUv),e.push(t.transmissionMapUv),e.push(t.thicknessMapUv),e.push(t.combine),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.morphTargetsCount),e.push(t.numSunLights),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numSpotLightMaps),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numSunLightShadows),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.numSpotLightShadowsWithMaps),e.push(t.numLightProbes),e.push(t.numLightProbeGrids),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.depthPacking)}function _(e,t){o.disableAll(),t.instancing&&o.enable(0),t.instancingColor&&o.enable(1),t.instancingMorph&&o.enable(2),t.matcap&&o.enable(3),t.envMap&&o.enable(4),t.normalMapObjectSpace&&o.enable(5),t.normalMapTangentSpace&&o.enable(6),t.clearcoat&&o.enable(7),t.iridescence&&o.enable(8),t.alphaTest&&o.enable(9),t.vertexColors&&o.enable(10),t.vertexAlphas&&o.enable(11),t.vertexUv1s&&o.enable(12),t.vertexUv2s&&o.enable(13),t.vertexUv3s&&o.enable(14),t.vertexTangents&&o.enable(15),t.anisotropy&&o.enable(16),t.alphaHash&&o.enable(17),t.batching&&o.enable(18),t.dispersion&&o.enable(19),t.retroreflection&&o.enable(24),t.diffuseRoughness&&o.enable(25),t.batchingColor&&o.enable(20),t.gradientMap&&o.enable(21),t.packedNormalMap&&o.enable(22),t.vertexNormals&&o.enable(23),e.push(o.mask),o.disableAll(),t.fog&&o.enable(0),t.useFog&&o.enable(1),t.flatShading&&o.enable(2),t.logarithmicDepthBuffer&&o.enable(3),t.reversedDepthBuffer&&o.enable(4),t.skinning&&o.enable(5),t.morphTargets&&o.enable(6),t.morphNormals&&o.enable(7),t.morphColors&&o.enable(8),t.premultipliedAlpha&&o.enable(9),t.shadowMapEnabled&&o.enable(10),t.doubleSided&&o.enable(11),t.flipSided&&o.enable(12),t.useDepthPacking&&o.enable(13),t.dithering&&o.enable(14),t.transmission&&o.enable(15),t.sheen&&o.enable(16),t.opaque&&o.enable(17),t.pointsUvs&&o.enable(18),t.decodeVideoTexture&&o.enable(19),t.decodeVideoTextureEmissive&&o.enable(20),t.alphaToCoverage&&o.enable(21),t.numLightProbeGrids>0&&o.enable(22),t.hasPositionAttribute&&o.enable(23),e.push(o.mask)}function v(e){let t=f[e.type],n;if(t){let e=Dd[t];n=ru.clone(e.uniforms)}else n=e.uniforms;return n}function y(t,n){let r=u.get(n);return r===void 0?(r=new Yp(e,n,t,i),l.push(r),u.set(n,r)):++r.usedTimes,r}function b(e){if(--e.usedTimes===0){let t=l.indexOf(e);l[t]=l[l.length-1],l.pop(),u.delete(e.cacheKey),e.destroy()}}function x(e){s.remove(e)}function S(){s.dispose()}return{getParameters:m,getProgramCacheKey:h,getUniforms:v,acquireProgram:y,releaseProgram:b,releaseShaderCache:x,programs:l,dispose:S}}function tm(){let e=new WeakMap;function t(t){return e.has(t)}function n(t){let n=e.get(t);return n===void 0&&(n={},e.set(t,n)),n}function r(t){e.delete(t)}function i(t,n,r){e.get(t)[n]=r}function a(){e=new WeakMap}return{has:t,get:n,remove:r,update:i,dispose:a}}function nm(e,t){return e.groupOrder===t.groupOrder?e.renderOrder===t.renderOrder?e.material.id===t.material.id?e.materialVariant===t.materialVariant?e.z===t.z?e.id-t.id:e.z-t.z:e.materialVariant-t.materialVariant:e.material.id-t.material.id:e.renderOrder-t.renderOrder:e.groupOrder-t.groupOrder}function rm(e,t){return e.groupOrder===t.groupOrder?e.renderOrder===t.renderOrder?e.z===t.z?e.id-t.id:t.z-e.z:e.renderOrder-t.renderOrder:e.groupOrder-t.groupOrder}function im(){let e=[],t=0,n=[],r=[],i=[];function a(){t=0,n.length=0,r.length=0,i.length=0}function o(e){let t=0;return e.isInstancedMesh&&(t+=2),e.isSkinnedMesh&&(t+=1),t}function s(n,r,i,a,s,c){let l=e[t];return l===void 0?(l={id:n.id,object:n,geometry:r,material:i,materialVariant:o(n),groupOrder:a,renderOrder:n.renderOrder,z:s,group:c},e[t]=l):(l.id=n.id,l.object=n,l.geometry=r,l.material=i,l.materialVariant=o(n),l.groupOrder=a,l.renderOrder=n.renderOrder,l.z=s,l.group=c),t++,l}function c(e,t,a,o,c,l,u){u.reversedDepth===!0&&(c=-c);let d=s(e,t,a,o,c,l);a.transmission>0?r.push(d):a.transparent===!0?i.push(d):n.push(d)}function l(e,t,a,o,c,l){let u=s(e,t,a,o,c,l);a.transmission>0?r.unshift(u):a.transparent===!0?i.unshift(u):n.unshift(u)}function u(e,t){n.length>1&&n.sort(e||nm),r.length>1&&r.sort(t||rm),i.length>1&&i.sort(t||rm)}function d(){for(let n=t,r=e.length;n<r;n++){let t=e[n];if(t.id===null)break;t.id=null,t.object=null,t.geometry=null,t.material=null,t.group=null}}return{opaque:n,transmissive:r,transparent:i,init:a,push:c,unshift:l,finish:d,sort:u}}function am(){let e=new WeakMap;function t(t,n){let r=e.get(t),i;return r===void 0?(i=new im,e.set(t,[i])):n>=r.length?(i=new im,r.push(i)):i=r[n],i}function n(){e=new WeakMap}return{get:t,dispose:n}}function om(){let e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case`SunLight`:case`DirectionalLight`:n={direction:new W,color:new q};break;case`SpotLight`:n={position:new W,direction:new W,color:new q,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case`PointLight`:n={position:new W,color:new q,distance:0,decay:0};break;case`HemisphereLight`:n={direction:new W,skyColor:new q,groundColor:new q};break;case`RectAreaLight`:n={color:new q,position:new W,halfWidth:new W,halfHeight:new W}}return e[t.id]=n,n}}}function sm(){let e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case`SunLight`:case`DirectionalLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new U};break;case`SpotLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new U};break;case`PointLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new U,shadowCameraNear:1,shadowCameraFar:1e3}}return e[t.id]=n,n}}}var cm=0;function lm(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+ +!!t.map-!!e.map}function um(e){let t=new om,n=sm(),r={version:0,hash:{sunLength:-1,directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numSunShadows:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],sun:[],sunShadow:[],sunShadowMap:[],sunShadowMatrix:[],sunShadowCascade:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let e=0;e<9;e++)r.probe.push(new W);let i=new W,a=new ms,o=new ms;function s(i){let a=0,o=0,s=0;for(let e=0;e<9;e++)r.probe[e].set(0,0,0);let c=0,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0,_=0,v=0,y=0,b=0,x=0;i.sort(lm);for(let e=0,S=i.length;e<S;e++){let S=i[e],C=S.color,w=S.intensity,T=S.distance,E=null;if(S.shadow&&S.shadow.map&&(E=S.shadow.map.texture.format===1030?S.shadow.map.texture:S.shadow.map.depthTexture||S.shadow.map.texture),S.isAmbientLight)a+=C.r*w,o+=C.g*w,s+=C.b*w;else if(S.isLightProbe){for(let e=0;e<9;e++)r.probe[e].addScaledVector(S.sh.coefficients[e],w);x++}else if(S.isSunLight){let e=t.get(S);if(e.color.copy(S.color).multiplyScalar(S.intensity),S.castShadow){let e=S.shadow,t=n.get(S);t.shadowIntensity=e.intensity,t.shadowBias=e.bias,t.shadowNormalBias=e.normalBias,t.shadowRadius=e.radius,t.shadowMapSize.copy(e.mapSize).multiply(e.getFrameExtents()),r.sunShadow[l]=t,r.sunShadowMap[l]=E;let i=e.getViewportCount();for(let t=0;t<i;t++)r.sunShadowMatrix[u+t]=e.getMatrix(t),r.sunShadowCascade[u+t]=e._cascadeData[t];u+=i,l++}r.sun[c]=e,c++}else if(S.isDirectionalLight){let e=t.get(S);if(e.color.copy(S.color).multiplyScalar(S.intensity),S.castShadow){let e=S.shadow,t=n.get(S);t.shadowIntensity=e.intensity,t.shadowBias=e.bias,t.shadowNormalBias=e.normalBias,t.shadowRadius=e.radius,t.shadowMapSize=e.mapSize,r.directionalShadow[d]=t,r.directionalShadowMap[d]=E,r.directionalShadowMatrix[d]=S.shadow.matrix,g++}r.directional[d]=e,d++}else if(S.isSpotLight){let e=t.get(S);e.position.setFromMatrixPosition(S.matrixWorld),e.color.copy(C).multiplyScalar(w),e.distance=T,e.coneCos=Math.cos(S.angle),e.penumbraCos=Math.cos(S.angle*(1-S.penumbra)),e.decay=S.decay,r.spot[p]=e;let i=S.shadow;if(S.map&&(r.spotLightMap[y]=S.map,y++,i.updateMatrices(S),S.castShadow&&b++),r.spotLightMatrix[p]=i.matrix,S.castShadow){let e=n.get(S);e.shadowIntensity=i.intensity,e.shadowBias=i.bias,e.shadowNormalBias=i.normalBias,e.shadowRadius=i.radius,e.shadowMapSize=i.mapSize,r.spotShadow[p]=e,r.spotShadowMap[p]=E,v++}p++}else if(S.isRectAreaLight){let e=t.get(S);e.color.copy(C).multiplyScalar(w),e.halfWidth.set(S.width*.5,0,0),e.halfHeight.set(0,S.height*.5,0),r.rectArea[m]=e,m++}else if(S.isPointLight){let e=t.get(S);if(e.color.copy(S.color).multiplyScalar(S.intensity),e.distance=S.distance,e.decay=S.decay,S.castShadow){let e=S.shadow,t=n.get(S);t.shadowIntensity=e.intensity,t.shadowBias=e.bias,t.shadowNormalBias=e.normalBias,t.shadowRadius=e.radius,t.shadowMapSize=e.mapSize,t.shadowCameraNear=e.camera.near,t.shadowCameraFar=e.camera.far,r.pointShadow[f]=t,r.pointShadowMap[f]=E,r.pointShadowMatrix[f]=S.shadow.matrix,_++}r.point[f]=e,f++}else if(S.isHemisphereLight){let e=t.get(S);e.skyColor.copy(S.color).multiplyScalar(w),e.groundColor.copy(S.groundColor).multiplyScalar(w),r.hemi[h]=e,h++}}m>0&&(e.has(`OES_texture_float_linear`)===!0?(r.rectAreaLTC1=Y.LTC_FLOAT_1,r.rectAreaLTC2=Y.LTC_FLOAT_2):(r.rectAreaLTC1=Y.LTC_HALF_1,r.rectAreaLTC2=Y.LTC_HALF_2)),r.ambient[0]=a,r.ambient[1]=o,r.ambient[2]=s;let S=r.hash;(S.sunLength!==c||S.directionalLength!==d||S.pointLength!==f||S.spotLength!==p||S.rectAreaLength!==m||S.hemiLength!==h||S.numSunShadows!==l||S.numDirectionalShadows!==g||S.numPointShadows!==_||S.numSpotShadows!==v||S.numSpotMaps!==y||S.numLightProbes!==x)&&(r.sun.length=c,r.directional.length=d,r.spot.length=p,r.rectArea.length=m,r.point.length=f,r.hemi.length=h,r.sunShadow.length=l,r.sunShadowMap.length=l,r.sunShadowMatrix.length=u,r.sunShadowCascade.length=u,r.directionalShadow.length=g,r.directionalShadowMap.length=g,r.directionalShadowMatrix.length=g,r.pointShadow.length=_,r.pointShadowMap.length=_,r.pointShadowMatrix.length=_,r.spotShadow.length=v,r.spotShadowMap.length=v,r.spotLightMatrix.length=v+y-b,r.spotLightMap.length=y,r.numSpotLightShadowsWithMaps=b,r.numLightProbes=x,S.sunLength=c,S.directionalLength=d,S.pointLength=f,S.spotLength=p,S.rectAreaLength=m,S.hemiLength=h,S.numSunShadows=l,S.numDirectionalShadows=g,S.numPointShadows=_,S.numSpotShadows=v,S.numSpotMaps=y,S.numLightProbes=x,r.version=cm++)}function c(e,t){let n=0,s=0,c=0,l=0,u=0,d=0,f=t.matrixWorldInverse;for(let t=0,p=e.length;t<p;t++){let p=e[t];if(p.isSunLight){let e=r.sun[n];e.direction.setFromMatrixPosition(p.matrixWorld),e.direction.transformDirection(f),n++}else if(p.isDirectionalLight){let e=r.directional[s];e.direction.setFromMatrixPosition(p.matrixWorld),i.setFromMatrixPosition(p.target.matrixWorld),e.direction.sub(i),e.direction.transformDirection(f),s++}else if(p.isSpotLight){let e=r.spot[l];e.position.setFromMatrixPosition(p.matrixWorld),e.position.applyMatrix4(f),e.direction.setFromMatrixPosition(p.matrixWorld),i.setFromMatrixPosition(p.target.matrixWorld),e.direction.sub(i),e.direction.transformDirection(f),l++}else if(p.isRectAreaLight){let e=r.rectArea[u];e.position.setFromMatrixPosition(p.matrixWorld),e.position.applyMatrix4(f),o.identity(),a.copy(p.matrixWorld),a.premultiply(f),o.extractRotation(a),e.halfWidth.set(p.width*.5,0,0),e.halfHeight.set(0,p.height*.5,0),e.halfWidth.applyMatrix4(o),e.halfHeight.applyMatrix4(o),u++}else if(p.isPointLight){let e=r.point[c];e.position.setFromMatrixPosition(p.matrixWorld),e.position.applyMatrix4(f),c++}else if(p.isHemisphereLight){let e=r.hemi[d];e.direction.setFromMatrixPosition(p.matrixWorld),e.direction.transformDirection(f),d++}}}return{setup:s,setupView:c,state:r}}function dm(e){let t=new um(e),n=[],r=[],i=[];function a(e){u.camera=e,n.length=0,r.length=0,i.length=0}function o(e){e.isLightProbeGrid?i.push(e):n.push(e)}function s(e){r.push(e)}function c(){t.setup(n),i.sort((e,t)=>e.priority-t.priority||e.id-t.id)}function l(e){t.setupView(n,e)}let u={lightsArray:n,shadowsArray:r,lightProbeGridArray:i,camera:null,lights:t,transmissionRenderTarget:{},textureUnits:0};return{init:a,state:u,setupLights:c,setupLightsView:l,pushLight:o,pushShadow:s}}function fm(e){let t=new WeakMap;function n(n,r=0){let i=t.get(n),a;return i===void 0?(a=new dm(e),t.set(n,[a])):r>=i.length?(a=new dm(e),i.push(a)):a=i[r],a}function r(){t=new WeakMap}return{get:n,dispose:r}}var pm=`void main() {
4739 gl_Position = vec4( position, 1.0 );
4740}`,mm=`uniform sampler2D shadow_pass;
4741uniform vec2 resolution;
4742uniform float radius;
4743void main() {
4744 const float samples = float( VSM_SAMPLES );
4745 float mean = 0.0;
4746 float squared_mean = 0.0;
4747 float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );
4748 float uvStart = samples <= 1.0 ? 0.0 : - 1.0;
4749 for ( float i = 0.0; i < samples; i ++ ) {
4750 float uvOffset = uvStart + i * uvStride;
4751 #ifdef HORIZONTAL_PASS
4752 vec2 distribution = texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ).rg;
4753 mean += distribution.x;
4754 squared_mean += distribution.y * distribution.y + distribution.x * distribution.x;
4755 #else
4756 float depth = texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ).r;
4757 mean += depth;
4758 squared_mean += depth * depth;
4759 #endif
4760 }
4761 mean = mean / samples;
4762 squared_mean = squared_mean / samples;
4763 float std_dev = sqrt( max( 0.0, squared_mean - mean * mean ) );
4764 gl_FragColor = vec4( mean, std_dev, 0.0, 1.0 );
4765}`,hm=[new W(1,0,0),new W(-1,0,0),new W(0,1,0),new W(0,-1,0),new W(0,0,1),new W(0,0,-1)],gm=[new W(0,-1,0),new W(0,-1,0),new W(0,0,1),new W(0,0,-1),new W(0,-1,0),new W(0,-1,0)],_m=new ms,vm=new W,ym=new W;function bm(e,t,n){let r=new Al,i=new U,a=new U,o=new ls,s=new lu,c=new uu,l={},u=n.maxTextureSize,d={0:1,1:0,2:2},f=new ou({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new U},radius:{value:4}},vertexShader:pm,fragmentShader:mm}),p=f.clone();p.defines.HORIZONTAL_PASS=1;let m=new Wc;m.setAttribute(`position`,new kc(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));let h=new ml(m,f),g=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=1;let _=this.type;this.render=function(t,n,s){if(g.enabled===!1||g.autoUpdate===!1&&g.needsUpdate===!1||t.length===0)return;this.type===2&&(B(`WebGLShadowMap: PCFSoftShadowMap has been removed. Using PCFShadowMap instead.`),this.type=1);let c=e.getRenderTarget(),l=e.getActiveCubeFace(),d=e.getActiveMipmapLevel(),f=e.state;f.setBlending(0),f.buffers.depth.getReversed()===!0?f.buffers.color.setClear(0,0,0,0):f.buffers.color.setClear(1,1,1,1),f.buffers.depth.setTest(!0),f.setScissorTest(!1);let p=_!==this.type;p&&n.traverse(function(e){e.material&&(Array.isArray(e.material)?e.material.forEach(e=>e.needsUpdate=!0):e.material.needsUpdate=!0)});for(let c=0,l=t.length;c<l;c++){let l=t[c],d=l.shadow;if(d===void 0){B(`WebGLShadowMap:`,l,`has no shadow.`);continue}if(d.autoUpdate===!1&&d.needsUpdate===!1)continue;i.copy(d.mapSize);let m=d.getFrameExtents();i.multiply(m),a.copy(d.mapSize),(i.x>u||i.y>u)&&(i.x>u&&(a.x=Math.floor(u/m.x),i.x=a.x*m.x,d.mapSize.x=a.x),i.y>u&&(a.y=Math.floor(u/m.y),i.y=a.y*m.y,d.mapSize.y=a.y));let h=e.state.buffers.depth.getReversed();if(d.camera._reversedDepth=h,d.map===null||p===!0){if(d.map!==null&&(d.map.depthTexture!==null&&(d.map.depthTexture.dispose(),d.map.depthTexture=null),d.map.dispose()),this.type===3){if(l.isPointLight){B(`WebGLShadowMap: VSM shadow maps are not supported for PointLights. Use PCF or BasicShadowMap instead.`);continue}d.map=new ds(i.x,i.y,{format:oa,type:qi,minFilter:Li,magFilter:Li,generateMipmaps:!1}),d.map.texture.name=l.name+`.shadowMap`,d.map.depthTexture=new Gl(i.x,i.y,Ki),d.map.depthTexture.name=l.name+`.shadowMapDepth`,d.map.depthTexture.format=na,d.map.depthTexture.compareFunction=null,d.map.depthTexture.minFilter=Pi,d.map.depthTexture.magFilter=Pi}else l.isPointLight?(d.map=new Id(i.x),d.map.depthTexture=new Kl(i.x,Gi)):(d.map=new ds(i.x,i.y),d.map.depthTexture=new Gl(i.x,i.y,Gi)),d.map.depthTexture.name=l.name+`.shadowMap`,d.map.depthTexture.format=na,this.type===1?(d.map.depthTexture.compareFunction=h?518:515,d.map.depthTexture.minFilter=Li,d.map.depthTexture.magFilter=Li):(d.map.depthTexture.compareFunction=null,d.map.depthTexture.minFilter=Pi,d.map.depthTexture.magFilter=Pi);d.camera.updateProjectionMatrix()}d.map.isWebGLCubeRenderTarget!==!0&&(d.map.width!==i.x||d.map.height!==i.y)&&d.map.setSize(i.x,i.y);let g=d.map.isWebGLCubeRenderTarget?6:d.getViewportCount();l.isPointLight!==!0&&d.updateMatrices(l,s);let _=d.camera.layers.mask&4294967294?d.camera.layers:s.layers;for(let t=0;t<g;t++){let i=d.getCamera(t);if(l.isPointLight){let e=d.camera,n=d.matrix,r=l.distance||e.far;r!==e.far&&(e.far=r,e.updateProjectionMatrix()),vm.setFromMatrixPosition(l.matrixWorld),e.position.copy(vm),ym.copy(e.position),ym.add(hm[t]),e.up.copy(gm[t]),e.lookAt(ym),e.updateMatrixWorld(),n.makeTranslation(-vm.x,-vm.y,-vm.z),_m.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),d._frustum.setFromProjectionMatrix(_m,e.coordinateSystem,e.reversedDepth)}if(d.map.isWebGLCubeRenderTarget)e.setRenderTarget(d.map,t),e.clear();else{t===0&&(e.setRenderTarget(d.map),e.clear());let n=d.getViewport(t);o.set(a.x*n.x,a.y*n.y,a.x*n.z,a.y*n.w),f.viewport(o)}r=d.getFrustum(t),b(n,s,i,l,_,this.type)}d.isPointLightShadow!==!0&&this.type===3&&v(d,s),d.needsUpdate=!1}_=this.type,g.needsUpdate=!1,e.setRenderTarget(c,l,d)};function v(n,r){let a=t.update(h);f.defines.VSM_SAMPLES!==n.blurSamples&&(f.defines.VSM_SAMPLES=n.blurSamples,p.defines.VSM_SAMPLES=n.blurSamples,f.needsUpdate=!0,p.needsUpdate=!0),n.mapPass===null?n.mapPass=new ds(i.x,i.y,{format:oa,type:qi}):(n.mapPass.width!==n.map.width||n.mapPass.height!==n.map.height)&&n.mapPass.setSize(n.map.width,n.map.height),f.uniforms.shadow_pass.value=n.map.depthTexture,f.uniforms.resolution.value.set(n.map.width,n.map.height),f.uniforms.radius.value=n.radius,e.setRenderTarget(n.mapPass),e.clear(),e.renderBufferDirect(r,null,a,f,h,null),p.uniforms.shadow_pass.value=n.mapPass.texture,p.uniforms.resolution.value.set(n.map.width,n.map.height),p.uniforms.radius.value=n.radius,e.setRenderTarget(n.map),e.clear(),e.renderBufferDirect(r,null,a,p,h,null)}function y(t,n,r,i){let a=null,o=r.isPointLight===!0?t.customDistanceMaterial:t.customDepthMaterial;if(o!==void 0)a=o;else if(a=r.isPointLight===!0?c:s,e.localClippingEnabled&&n.clipShadows===!0&&Array.isArray(n.clippingPlanes)&&n.clippingPlanes.length!==0||n.displacementMap&&n.displacementScale!==0||n.alphaMap&&n.alphaTest>0||n.map&&n.alphaTest>0||n.alphaToCoverage===!0){let e=a.uuid,t=n.uuid,r=l[e];r===void 0&&(r={},l[e]=r);let i=r[t];i===void 0&&(i=a.clone(),r[t]=i,n.addEventListener(`dispose`,x)),a=i}if(a.visible=n.visible,a.wireframe=n.wireframe,i===3?a.side=n.shadowSide===null?n.side:n.shadowSide:a.side=n.shadowSide===null?d[n.side]:n.shadowSide,a.alphaMap=n.alphaMap,a.alphaTest=n.alphaToCoverage===!0?.5:n.alphaTest,a.map=n.map,a.clipShadows=n.clipShadows,a.clippingPlanes=n.clippingPlanes,a.clipIntersection=n.clipIntersection,a.displacementMap=n.displacementMap,a.displacementScale=n.displacementScale,a.displacementBias=n.displacementBias,a.wireframeLinewidth=n.wireframeLinewidth,a.linewidth=n.linewidth,r.isPointLight===!0&&a.isMeshDistanceMaterial===!0){let t=e.properties.get(a);t.light=r}return a}function b(n,i,a,o,s,c){if(n.visible===!1)return;if(n.layers.test(s)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&c===3)&&(!n.frustumCulled||n.intersectsFrustum(r))){n.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,n.matrixWorld);let r=t.update(n),s=n.material;if(Array.isArray(s)){let t=r.groups;for(let l=0,u=t.length;l<u;l++){let u=t[l],d=s[u.materialIndex];if(d&&d.visible){let t=y(n,d,o,c);n.onBeforeShadow(e,n,i,a,r,t,u),e.renderBufferDirect(a,null,r,t,n,u),n.onAfterShadow(e,n,i,a,r,t,u)}}}else if(s.visible){let t=y(n,s,o,c);n.onBeforeShadow(e,n,i,a,r,t,null),e.renderBufferDirect(a,null,r,t,n,null),n.onAfterShadow(e,n,i,a,r,t,null)}}let l=n.children;for(let e=0,t=l.length;e<t;e++)b(l[e],i,a,o,s,c)}function x(e){e.target.removeEventListener(`dispose`,x);for(let t in l){let n=l[t],r=e.target.uuid;r in n&&(n[r].dispose(),delete n[r])}}}function xm(e,t){function n(){let t=!1,n=new ls,r=null,i=new ls(0,0,0,0);return{setMask:function(n){r!==n&&!t&&(e.colorMask(n,n,n,n),r=n)},setLocked:function(e){t=e},setClear:function(t,r,a,o,s){s===!0&&(t*=o,r*=o,a*=o),n.set(t,r,a,o),i.equals(n)===!1&&(e.clearColor(t,r,a,o),i.copy(n))},reset:function(){t=!1,r=null,i.set(-1,0,0,0)}}}function r(){let n=!1,r=!1,i=null,a=null,o=null;return{setReversed:function(e){if(r!==e){let n=t.get(`EXT_clip_control`);e?n.clipControlEXT(n.LOWER_LEFT_EXT,n.ZERO_TO_ONE_EXT):n.clipControlEXT(n.LOWER_LEFT_EXT,n.NEGATIVE_ONE_TO_ONE_EXT),r=e;let i=o;o=null,this.setClear(i)}},getReversed:function(){return r},setTest:function(t){t?le(e.DEPTH_TEST):ue(e.DEPTH_TEST)},setMask:function(t){i!==t&&!n&&(e.depthMask(t),i=t)},setFunc:function(t){if(r&&(t=_o[t]),a!==t){switch(t){case 0:e.depthFunc(e.NEVER);break;case 1:e.depthFunc(e.ALWAYS);break;case 2:e.depthFunc(e.LESS);break;case 3:e.depthFunc(e.LEQUAL);break;case 4:e.depthFunc(e.EQUAL);break;case 5:e.depthFunc(e.GEQUAL);break;case 6:e.depthFunc(e.GREATER);break;case 7:e.depthFunc(e.NOTEQUAL);break;default:e.depthFunc(e.LEQUAL)}a=t}},setLocked:function(e){n=e},setClear:function(t){o!==t&&(o=t,r&&(t=1-t),e.clearDepth(t))},reset:function(){n=!1,i=null,a=null,o=null,r=!1}}}function i(){let t=!1,n=null,r=null,i=null,a=null,o=null,s=null,c=null,l=null;return{setTest:function(n){t||(n?le(e.STENCIL_TEST):ue(e.STENCIL_TEST))},setMask:function(r){n!==r&&!t&&(e.stencilMask(r),n=r)},setFunc:function(t,n,o){(r!==t||i!==n||a!==o)&&(e.stencilFunc(t,n,o),r=t,i=n,a=o)},setOp:function(t,n,r){(o!==t||s!==n||c!==r)&&(e.stencilOp(t,n,r),o=t,s=n,c=r)},setLocked:function(e){t=e},setClear:function(t){l!==t&&(e.clearStencil(t),l=t)},reset:function(){t=!1,n=null,r=null,i=null,a=null,o=null,s=null,c=null,l=null}}}let a=new n,o=new r,s=new i,c={},l=new WeakMap,u={},d={},f={},p=new WeakMap,m=[],h=null,g=!1,_=null,v=null,y=null,b=null,x=null,S=null,C=null,w=new q(0,0,0),T=0,E=!1,D=null,O=null,k=null,A=null,j=null,M=e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS),N=!1,ee=0,te=e.getParameter(e.VERSION);te.indexOf(`WebGL`)===-1?te.indexOf(`OpenGL ES`)!==-1&&(ee=parseFloat(/^OpenGL ES (\d)/.exec(te)[1]),N=ee>=2):(ee=parseFloat(/^WebGL (\d)/.exec(te)[1]),N=ee>=1);let P=null,ne={},re=e.getParameter(e.SCISSOR_BOX),ie=e.getParameter(e.VIEWPORT),ae=new ls().fromArray(re),oe=new ls().fromArray(ie);function se(t,n,r,i){let a=new Uint8Array(4),o=e.createTexture();e.bindTexture(t,o),e.texParameteri(t,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(t,e.TEXTURE_MAG_FILTER,e.NEAREST);for(let o=0;o<r;o++)t===e.TEXTURE_3D||t===e.TEXTURE_2D_ARRAY?e.texImage3D(n,0,e.RGBA,1,1,i,0,e.RGBA,e.UNSIGNED_BYTE,a):e.texImage2D(n+o,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,a);return o}let ce={};ce[e.TEXTURE_2D]=se(e.TEXTURE_2D,e.TEXTURE_2D,1),ce[e.TEXTURE_CUBE_MAP]=se(e.TEXTURE_CUBE_MAP,e.TEXTURE_CUBE_MAP_POSITIVE_X,6),ce[e.TEXTURE_2D_ARRAY]=se(e.TEXTURE_2D_ARRAY,e.TEXTURE_2D_ARRAY,1,1),ce[e.TEXTURE_3D]=se(e.TEXTURE_3D,e.TEXTURE_3D,1,1),a.setClear(0,0,0,1),o.setClear(1),s.setClear(0),le(e.DEPTH_TEST),o.setFunc(3),ve(!1),ye(1),le(e.CULL_FACE),ge(0);function le(t){u[t]!==!0&&(e.enable(t),u[t]=!0)}function ue(t){u[t]!==!1&&(e.disable(t),u[t]=!1)}function de(t,n){return f[t]!==n&&(e.bindFramebuffer(t,n),f[t]=n,t===e.DRAW_FRAMEBUFFER&&(f[e.FRAMEBUFFER]=n),t===e.FRAMEBUFFER&&(f[e.DRAW_FRAMEBUFFER]=n),!0)}function fe(t,n){let r=m,i=!1;if(t){r=p.get(n),r===void 0&&(r=[],p.set(n,r));let a=t.textures;if(r.length!==a.length||r[0]!==e.COLOR_ATTACHMENT0){for(let t=0,n=a.length;t<n;t++)r[t]=e.COLOR_ATTACHMENT0+t;r.length=a.length,i=!0}}else r[0]!==e.BACK&&(r[0]=e.BACK,i=!0);i&&e.drawBuffers(r)}function pe(t){return h!==t&&(e.useProgram(t),h=t,!0)}let me={100:e.FUNC_ADD,101:e.FUNC_SUBTRACT,102:e.FUNC_REVERSE_SUBTRACT};me[103]=e.MIN,me[104]=e.MAX;let he={200:e.ZERO,201:e.ONE,202:e.SRC_COLOR,204:e.SRC_ALPHA,210:e.SRC_ALPHA_SATURATE,208:e.DST_COLOR,206:e.DST_ALPHA,203:e.ONE_MINUS_SRC_COLOR,205:e.ONE_MINUS_SRC_ALPHA,209:e.ONE_MINUS_DST_COLOR,207:e.ONE_MINUS_DST_ALPHA,211:e.CONSTANT_COLOR,212:e.ONE_MINUS_CONSTANT_COLOR,213:e.CONSTANT_ALPHA,214:e.ONE_MINUS_CONSTANT_ALPHA};function ge(t,n,r,i,a,o,s,c,l,u){if(t===0)g===!0&&(ue(e.BLEND),g=!1);else if(g===!1&&(le(e.BLEND),g=!0),t!==5){if(t!==_||u!==E){if((v!==100||x!==100)&&(e.blendEquation(e.FUNC_ADD),v=100,x=100),u)switch(t){case 1:e.blendFuncSeparate(e.ONE,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA);break;case 2:e.blendFunc(e.ONE,e.ONE);break;case 3:e.blendFuncSeparate(e.ZERO,e.ONE_MINUS_SRC_COLOR,e.ZERO,e.ONE);break;case 4:e.blendFuncSeparate(e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA,e.ZERO,e.ONE);break;default:V(`WebGLState: Invalid blending: `,t)}else switch(t){case 1:e.blendFuncSeparate(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA);break;case 2:e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case 3:V(`WebGLState: SubtractiveBlending requires material.premultipliedAlpha = true`);break;case 4:V(`WebGLState: MultiplyBlending requires material.premultipliedAlpha = true`);break;default:V(`WebGLState: Invalid blending: `,t)}y=null,b=null,S=null,C=null,w.set(0,0,0),T=0,_=t,E=u}}else a||=n,o||=r,s||=i,(n!==v||a!==x)&&(e.blendEquationSeparate(me[n],me[a]),v=n,x=a),(r!==y||i!==b||o!==S||s!==C)&&(e.blendFuncSeparate(he[r],he[i],he[o],he[s]),y=r,b=i,S=o,C=s),(c.equals(w)===!1||l!==T)&&(e.blendColor(c.r,c.g,c.b,l),w.copy(c),T=l),_=t,E=!1}function _e(t,n){t.side===2?ue(e.CULL_FACE):le(e.CULL_FACE);let r=t.side===1;n&&(r=!r),ve(r),t.blending===1&&t.transparent===!1?ge(0):ge(t.blending,t.blendEquation,t.blendSrc,t.blendDst,t.blendEquationAlpha,t.blendSrcAlpha,t.blendDstAlpha,t.blendColor,t.blendAlpha,t.premultipliedAlpha),o.setFunc(t.depthFunc),o.setTest(t.depthTest),o.setMask(t.depthWrite),a.setMask(t.colorWrite);let i=t.stencilWrite;s.setTest(i),i&&(s.setMask(t.stencilWriteMask),s.setFunc(t.stencilFunc,t.stencilRef,t.stencilFuncMask),s.setOp(t.stencilFail,t.stencilZFail,t.stencilZPass)),xe(t.polygonOffset,t.polygonOffsetFactor,t.polygonOffsetUnits),t.alphaToCoverage===!0?le(e.SAMPLE_ALPHA_TO_COVERAGE):ue(e.SAMPLE_ALPHA_TO_COVERAGE)}function ve(t){D!==t&&(t?e.frontFace(e.CW):e.frontFace(e.CCW),D=t)}function ye(t){t===0?ue(e.CULL_FACE):(le(e.CULL_FACE),t!==O&&(t===1?e.cullFace(e.BACK):t===2?e.cullFace(e.FRONT):e.cullFace(e.FRONT_AND_BACK))),O=t}function be(t){t!==k&&(N&&e.lineWidth(t),k=t)}function xe(t,n,r){t?(le(e.POLYGON_OFFSET_FILL),(A!==n||j!==r)&&(A=n,j=r,o.getReversed()&&(n=-n,r=-r),e.polygonOffset(n,r))):ue(e.POLYGON_OFFSET_FILL)}function Se(t){t?le(e.SCISSOR_TEST):ue(e.SCISSOR_TEST)}function Ce(t){t===void 0&&(t=e.TEXTURE0+M-1),P!==t&&(e.activeTexture(t),P=t)}function F(t,n,r){r===void 0&&(r=P===null?e.TEXTURE0+M-1:P);let i=ne[r];i===void 0&&(i={type:void 0,texture:void 0},ne[r]=i),(i.type!==t||i.texture!==n)&&(P!==r&&(e.activeTexture(r),P=r),e.bindTexture(t,n||ce[t]),i.type=t,i.texture=n)}function we(){let t=ne[P];t!==void 0&&t.type!==void 0&&(e.bindTexture(t.type,null),t.type=void 0,t.texture=void 0)}function Te(){try{e.compressedTexImage2D(...arguments)}catch(e){V(`WebGLState:`,e)}}function Ee(){try{e.compressedTexImage3D(...arguments)}catch(e){V(`WebGLState:`,e)}}function I(){try{e.texSubImage2D(...arguments)}catch(e){V(`WebGLState:`,e)}}function De(){try{e.texSubImage3D(...arguments)}catch(e){V(`WebGLState:`,e)}}function L(){try{e.compressedTexSubImage2D(...arguments)}catch(e){V(`WebGLState:`,e)}}function R(){try{e.compressedTexSubImage3D(...arguments)}catch(e){V(`WebGLState:`,e)}}function Oe(){try{e.texStorage2D(...arguments)}catch(e){V(`WebGLState:`,e)}}function ke(){try{e.texStorage3D(...arguments)}catch(e){V(`WebGLState:`,e)}}function Ae(){try{e.texImage2D(...arguments)}catch(e){V(`WebGLState:`,e)}}function je(){try{e.texImage3D(...arguments)}catch(e){V(`WebGLState:`,e)}}function z(t){return d[t]===void 0?e.getParameter(t):d[t]}function Me(t,n){d[t]!==n&&(e.pixelStorei(t,n),d[t]=n)}function Ne(t){ae.equals(t)===!1&&(e.scissor(t.x,t.y,t.z,t.w),ae.copy(t))}function Pe(t){oe.equals(t)===!1&&(e.viewport(t.x,t.y,t.z,t.w),oe.copy(t))}function Fe(t,n){let r=l.get(n);r===void 0&&(r=new WeakMap,l.set(n,r));let i=r.get(t);i===void 0&&(i=e.getUniformBlockIndex(n,t.name),e.uniformBlockBinding(n,i,i),r.set(t,i))}function Ie(t,n,r){let i=l.get(n).get(t);c[i]!==r&&(e.bindBufferBase(e.UNIFORM_BUFFER,i,r),c[i]=r)}function Le(){e.disable(e.BLEND),e.disable(e.CULL_FACE),e.disable(e.DEPTH_TEST),e.disable(e.POLYGON_OFFSET_FILL),e.disable(e.SCISSOR_TEST),e.disable(e.STENCIL_TEST),e.disable(e.SAMPLE_ALPHA_TO_COVERAGE),e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO),e.blendFuncSeparate(e.ONE,e.ZERO,e.ONE,e.ZERO),e.blendColor(0,0,0,0),e.colorMask(!0,!0,!0,!0),e.clearColor(0,0,0,0),e.depthMask(!0),e.depthFunc(e.LESS),o.setReversed(!1),e.clearDepth(1),e.stencilMask(4294967295),e.stencilFunc(e.ALWAYS,0,4294967295),e.stencilOp(e.KEEP,e.KEEP,e.KEEP),e.clearStencil(0),e.cullFace(e.BACK),e.frontFace(e.CCW),e.polygonOffset(0,0),e.activeTexture(e.TEXTURE0),e.bindFramebuffer(e.FRAMEBUFFER,null),e.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),e.bindFramebuffer(e.READ_FRAMEBUFFER,null),e.useProgram(null),e.lineWidth(1),e.scissor(0,0,e.canvas.width,e.canvas.height),e.viewport(0,0,e.canvas.width,e.canvas.height),e.pixelStorei(e.PACK_ALIGNMENT,4),e.pixelStorei(e.UNPACK_ALIGNMENT,4),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!1),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,e.BROWSER_DEFAULT_WEBGL),e.pixelStorei(e.PACK_ROW_LENGTH,0),e.pixelStorei(e.PACK_SKIP_PIXELS,0),e.pixelStorei(e.PACK_SKIP_ROWS,0),e.pixelStorei(e.UNPACK_ROW_LENGTH,0),e.pixelStorei(e.UNPACK_IMAGE_HEIGHT,0),e.pixelStorei(e.UNPACK_SKIP_PIXELS,0),e.pixelStorei(e.UNPACK_SKIP_ROWS,0),e.pixelStorei(e.UNPACK_SKIP_IMAGES,0),u={},d={},P=null,ne={},f={},c={},p=new WeakMap,m=[],h=null,g=!1,_=null,v=null,y=null,b=null,x=null,S=null,C=null,w=new q(0,0,0),T=0,E=!1,D=null,O=null,k=null,A=null,j=null,ae.set(0,0,e.canvas.width,e.canvas.height),oe.set(0,0,e.canvas.width,e.canvas.height),a.reset(),o.reset(),s.reset()}return{buffers:{color:a,depth:o,stencil:s},enable:le,disable:ue,bindFramebuffer:de,drawBuffers:fe,useProgram:pe,setBlending:ge,setMaterial:_e,setFlipSided:ve,setCullFace:ye,setLineWidth:be,setPolygonOffset:xe,setScissorTest:Se,activeTexture:Ce,bindTexture:F,unbindTexture:we,compressedTexImage2D:Te,compressedTexImage3D:Ee,texImage2D:Ae,texImage3D:je,pixelStorei:Me,getParameter:z,updateUBOMapping:Fe,uniformBlockBinding:Ie,texStorage2D:Oe,texStorage3D:ke,texSubImage2D:I,texSubImage3D:De,compressedTexSubImage2D:L,compressedTexSubImage3D:R,scissor:Ne,viewport:Pe,reset:Le}}function Sm(e,t,n,r,i,a,o){let s=t.has(`WEBGL_multisampled_render_to_texture`)?t.get(`WEBGL_multisampled_render_to_texture`):null,c=typeof navigator>`u`?!1:/OculusBrowser/g.test(navigator.userAgent),l=new U,u=new WeakMap,d=new Set,f,p=new WeakMap,m=new Set,h=new FinalizationRegistry(e=>m.delete(e)),g=!1;try{g=typeof OffscreenCanvas<`u`&&new OffscreenCanvas(1,1).getContext(`2d`)!==null}catch{}function _(e,t){return g?new OffscreenCanvas(e,t):lo(`canvas`)}function v(e,t,n){let r=1,i=Oe(e);if((i.width>n||i.height>n)&&(r=n/Math.max(i.width,i.height)),r<1){if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap||typeof VideoFrame<`u`&&e instanceof VideoFrame){let n=Math.floor(r*i.width),a=Math.floor(r*i.height);f===void 0&&(f=_(n,a));let o=t?_(n,a):f;return o.width=n,o.height=a,o.getContext(`2d`).drawImage(e,0,0,n,a),B(`WebGLRenderer: Texture has been resized from (`+i.width+`x`+i.height+`) to (`+n+`x`+a+`).`),o}return`data`in e&&B(`WebGLRenderer: Image in DataTexture is too big (`+i.width+`x`+i.height+`).`),e}return e}function y(e){return e.generateMipmaps}function b(t){e.generateMipmap(t)}function x(t){return t.isWebGLCubeRenderTarget?e.TEXTURE_CUBE_MAP:t.isWebGL3DRenderTarget?e.TEXTURE_3D:t.isWebGLArrayRenderTarget||t.isCompressedArrayTexture?e.TEXTURE_2D_ARRAY:e.TEXTURE_2D}function S(n,r,i,a,o,s=!1){if(n!==null){if(e[n]!==void 0)return e[n];B(`WebGLRenderer: Attempt to use non-existing WebGL internal format '`+n+`'`)}let c;a&&(c=t.get(`EXT_texture_norm16`),c||B(`WebGLRenderer: Unable to use normalized textures without EXT_texture_norm16 extension`));let l=r;if(r===e.RED&&(i===e.FLOAT&&(l=e.R32F),i===e.HALF_FLOAT&&(l=e.R16F),i===e.UNSIGNED_BYTE&&(l=e.R8),i===e.UNSIGNED_SHORT&&c&&(l=c.R16_EXT),i===e.SHORT&&c&&(l=c.R16_SNORM_EXT)),r===e.RED_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.R8UI),i===e.UNSIGNED_SHORT&&(l=e.R16UI),i===e.UNSIGNED_INT&&(l=e.R32UI),i===e.BYTE&&(l=e.R8I),i===e.SHORT&&(l=e.R16I),i===e.INT&&(l=e.R32I)),r===e.RG&&(i===e.FLOAT&&(l=e.RG32F),i===e.HALF_FLOAT&&(l=e.RG16F),i===e.UNSIGNED_BYTE&&(l=e.RG8),i===e.UNSIGNED_SHORT&&c&&(l=c.RG16_EXT),i===e.SHORT&&c&&(l=c.RG16_SNORM_EXT)),r===e.RG_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RG8UI),i===e.UNSIGNED_SHORT&&(l=e.RG16UI),i===e.UNSIGNED_INT&&(l=e.RG32UI),i===e.BYTE&&(l=e.RG8I),i===e.SHORT&&(l=e.RG16I),i===e.INT&&(l=e.RG32I)),r===e.RGB_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RGB8UI),i===e.UNSIGNED_SHORT&&(l=e.RGB16UI),i===e.UNSIGNED_INT&&(l=e.RGB32UI),i===e.BYTE&&(l=e.RGB8I),i===e.SHORT&&(l=e.RGB16I),i===e.INT&&(l=e.RGB32I)),r===e.RGBA_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RGBA8UI),i===e.UNSIGNED_SHORT&&(l=e.RGBA16UI),i===e.UNSIGNED_INT&&(l=e.RGBA32UI),i===e.BYTE&&(l=e.RGBA8I),i===e.SHORT&&(l=e.RGBA16I),i===e.INT&&(l=e.RGBA32I)),r===e.RGB&&(i===e.UNSIGNED_SHORT&&c&&(l=c.RGB16_EXT),i===e.SHORT&&c&&(l=c.RGB16_SNORM_EXT),i===e.UNSIGNED_INT_5_9_9_9_REV&&(l=e.RGB9_E5),i===e.UNSIGNED_INT_10F_11F_11F_REV&&(l=e.R11F_G11F_B10F)),r===e.RGBA){let t=s?to:K.getTransfer(o);i===e.FLOAT&&(l=e.RGBA32F),i===e.HALF_FLOAT&&(l=e.RGBA16F),i===e.UNSIGNED_BYTE&&(l=t===`srgb`?e.SRGB8_ALPHA8:e.RGBA8),i===e.UNSIGNED_SHORT&&c&&(l=c.RGBA16_EXT),i===e.SHORT&&c&&(l=c.RGBA16_SNORM_EXT),i===e.UNSIGNED_SHORT_4_4_4_4&&(l=e.RGBA4),i===e.UNSIGNED_SHORT_5_5_5_1&&(l=e.RGB5_A1)}return(l===e.R16F||l===e.R32F||l===e.RG16F||l===e.RG32F||l===e.RGBA16F||l===e.RGBA32F)&&t.get(`EXT_color_buffer_float`),l}function C(t,n){let r;return t?n===null||n===1014||n===1020?r=e.DEPTH24_STENCIL8:n===1015?r=e.DEPTH32F_STENCIL8:n===1012&&(r=e.DEPTH24_STENCIL8,B(`DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.`)):n===null||n===1014||n===1020?r=e.DEPTH_COMPONENT24:n===1015?r=e.DEPTH_COMPONENT32F:n===1012&&(r=e.DEPTH_COMPONENT16),r}function w(e,t){return y(e)===!0||e.isFramebufferTexture&&e.minFilter!==1003&&e.minFilter!==1006?Math.log2(Math.max(t.width,t.height))+1:e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}function T(e){let t=new WeakRef(e);r.get(e).__ref=t,m.add(t),h.register(e,t,t)}function E(e){let t=r.get(e).__ref;t!==void 0&&(m.delete(t),h.unregister(t))}function D(e){k(e.target)}function O(e){A(e.target)}function k(e){e.removeEventListener(`dispose`,D),E(e),M(e),e.isVideoTexture&&u.delete(e),e.isHTMLTexture&&d.delete(e)}function A(e){e.removeEventListener(`dispose`,O),E(e),ee(e)}function j(){for(let e of m){let t=e.deref();t!==void 0&&(t.isRenderTarget===!0?A(t):k(t))}m.clear(),d.clear()}function M(e){let t=r.get(e);if(t.__webglInit===void 0)return;let n=e.source,i=p.get(n);if(i){let r=i[t.__cacheKey];r.usedTimes--,r.usedTimes===0&&N(e),Object.keys(i).length===0&&p.delete(n)}r.remove(e)}function N(t){let n=r.get(t);e.deleteTexture(n.__webglTexture);let i=t.source,a=p.get(i);delete a[n.__cacheKey],o.memory.textures--}function ee(t){let n=r.get(t);n.__depthDisposeCallback&&n.__depthDisposeCallback();let i=t.depthTexture;if(i&&i.renderTarget===t&&k(i),t.isWebGLCubeRenderTarget)for(let t=0;t<6;t++){if(Array.isArray(n.__webglFramebuffer[t]))for(let r=0;r<n.__webglFramebuffer[t].length;r++)e.deleteFramebuffer(n.__webglFramebuffer[t][r]);else e.deleteFramebuffer(n.__webglFramebuffer[t]);n.__webglDepthbuffer&&e.deleteRenderbuffer(n.__webglDepthbuffer[t])}else{if(Array.isArray(n.__webglFramebuffer))for(let t=0;t<n.__webglFramebuffer.length;t++)e.deleteFramebuffer(n.__webglFramebuffer[t]);else e.deleteFramebuffer(n.__webglFramebuffer);if(n.__webglDepthbuffer&&e.deleteRenderbuffer(n.__webglDepthbuffer),n.__webglMultisampledFramebuffer&&e.deleteFramebuffer(n.__webglMultisampledFramebuffer),n.__webglColorRenderbuffer)for(let t=0;t<n.__webglColorRenderbuffer.length;t++)n.__webglColorRenderbuffer[t]&&e.deleteRenderbuffer(n.__webglColorRenderbuffer[t]);n.__webglDepthRenderbuffer&&e.deleteRenderbuffer(n.__webglDepthRenderbuffer)}let a=t.textures;for(let t=0,n=a.length;t<n;t++){let n=r.get(a[t]);n.__webglTexture&&(e.deleteTexture(n.__webglTexture),o.memory.textures--),r.remove(a[t])}r.remove(t)}let te=0;function P(){te=0}function ne(){return te}function re(e){te=e}function ie(){let e=te;return e>=i.maxTextures&&B(`WebGLTextures: Trying to use `+(e+1)+` texture units while this GPU supports only `+i.maxTextures),te+=1,e}function ae(e){let t=[];return t.push(e.wrapS),t.push(e.wrapT),t.push(e.wrapR||0),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.mipmapsAutoUpdate),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.colorSpace),t.join()}function oe(t,i){let a=r.get(t);if(t.isVideoTexture&&L(t),t.isRenderTargetTexture===!1&&t.isExternalTexture!==!0&&t.version>0&&a.__version!==t.version){let e=t.image;if(e===null)B(`WebGLRenderer: Texture marked for update but no image data found.`);else if(e.complete===!1)B(`WebGLRenderer: Texture marked for update but image is incomplete`);else{_e(a,t,i);return}}else t.isExternalTexture&&(a.__webglTexture=t.sourceTexture?t.sourceTexture:null);n.bindTexture(e.TEXTURE_2D,a.__webglTexture,e.TEXTURE0+i)}function se(t,i){let a=r.get(t);t.isRenderTargetTexture===!1&&t.version>0&&a.__version!==t.version?_e(a,t,i):(t.isExternalTexture&&(a.__webglTexture=t.sourceTexture?t.sourceTexture:null),n.bindTexture(e.TEXTURE_2D_ARRAY,a.__webglTexture,e.TEXTURE0+i))}function ce(t,i){let a=r.get(t);t.isRenderTargetTexture===!1&&t.version>0&&a.__version!==t.version?_e(a,t,i):n.bindTexture(e.TEXTURE_3D,a.__webglTexture,e.TEXTURE0+i)}function le(t,i){let a=r.get(t);t.version>0&&a.__version!==t.version?ve(a,t,i):n.bindTexture(e.TEXTURE_CUBE_MAP,a.__webglTexture,e.TEXTURE0+i)}let ue={[ji]:e.REPEAT,[Mi]:e.CLAMP_TO_EDGE,[Ni]:e.MIRRORED_REPEAT},de={[Pi]:e.NEAREST,[Fi]:e.NEAREST_MIPMAP_NEAREST,[Ii]:e.NEAREST_MIPMAP_LINEAR,[Li]:e.LINEAR,[Ri]:e.LINEAR_MIPMAP_NEAREST,[zi]:e.LINEAR_MIPMAP_LINEAR},fe={512:e.NEVER,519:e.ALWAYS,513:e.LESS,515:e.LEQUAL,514:e.EQUAL,518:e.GEQUAL,516:e.GREATER,517:e.NOTEQUAL};function pe(n,a){if(a.type===1015&&t.has(`OES_texture_float_linear`)===!1&&(a.magFilter===1006||a.magFilter===1007||a.magFilter===1005||a.magFilter===1008||a.minFilter===1006||a.minFilter===1007||a.minFilter===1005||a.minFilter===1008)&&B(`WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device.`),e.texParameteri(n,e.TEXTURE_WRAP_S,ue[a.wrapS]),e.texParameteri(n,e.TEXTURE_WRAP_T,ue[a.wrapT]),(n===e.TEXTURE_3D||n===e.TEXTURE_2D_ARRAY)&&e.texParameteri(n,e.TEXTURE_WRAP_R,ue[a.wrapR]),e.texParameteri(n,e.TEXTURE_MAG_FILTER,de[a.magFilter]),e.texParameteri(n,e.TEXTURE_MIN_FILTER,de[a.minFilter]),a.compareFunction&&(e.texParameteri(n,e.TEXTURE_COMPARE_MODE,e.COMPARE_REF_TO_TEXTURE),e.texParameteri(n,e.TEXTURE_COMPARE_FUNC,fe[a.compareFunction])),t.has(`EXT_texture_filter_anisotropic`)===!0){if(a.magFilter===1003||a.minFilter!==1005&&a.minFilter!==1008||a.type===1015&&t.has(`OES_texture_float_linear`)===!1)return;if(a.anisotropy>1||r.get(a).__currentAnisotropy){let o=t.get(`EXT_texture_filter_anisotropic`);e.texParameterf(n,o.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(a.anisotropy,i.getMaxAnisotropy())),r.get(a).__currentAnisotropy=a.anisotropy}}}function me(t,n){let r=!1;t.__webglInit===void 0&&(t.__webglInit=!0,n.addEventListener(`dispose`,D),T(n));let i=n.source,a=p.get(i);a===void 0&&(a={},p.set(i,a));let s=ae(n);if(s!==t.__cacheKey){a[s]===void 0&&(a[s]={texture:e.createTexture(),usedTimes:0},o.memory.textures++,r=!0),a[s].usedTimes++;let i=a[t.__cacheKey];i!==void 0&&(a[t.__cacheKey].usedTimes--,i.usedTimes===0&&N(n)),t.__cacheKey=s,t.__webglTexture=a[s].texture}return r}function he(e,t,n){return Math.floor(Math.floor(e/n)/t)}function ge(t,r,i,a){let o=t.updateRanges;if(o.length===0)n.texSubImage2D(e.TEXTURE_2D,0,0,0,r.width,r.height,i,a,r.data);else{o.sort((e,t)=>e.start-t.start);let s=0;for(let e=1;e<o.length;e++){let t=o[s],n=o[e],i=t.start+t.count,a=he(n.start,r.width,4),c=he(t.start,r.width,4);n.start<=i+1&&a===c&&he(n.start+n.count-1,r.width,4)===a?t.count=Math.max(t.count,n.start+n.count-t.start):(++s,o[s]=n)}o.length=s+1;let c=n.getParameter(e.UNPACK_ROW_LENGTH),l=n.getParameter(e.UNPACK_SKIP_PIXELS),u=n.getParameter(e.UNPACK_SKIP_ROWS);n.pixelStorei(e.UNPACK_ROW_LENGTH,r.width);for(let t=0,s=o.length;t<s;t++){let s=o[t],c=Math.floor(s.start/4),l=Math.ceil(s.count/4),u=c%r.width,d=Math.floor(c/r.width),f=l;n.pixelStorei(e.UNPACK_SKIP_PIXELS,u),n.pixelStorei(e.UNPACK_SKIP_ROWS,d),n.texSubImage2D(e.TEXTURE_2D,0,u,d,f,1,i,a,r.data)}t.clearUpdateRanges(),n.pixelStorei(e.UNPACK_ROW_LENGTH,c),n.pixelStorei(e.UNPACK_SKIP_PIXELS,l),n.pixelStorei(e.UNPACK_SKIP_ROWS,u)}}function _e(t,o,s){let c=e.TEXTURE_2D;(o.isDataArrayTexture||o.isCompressedArrayTexture)&&(c=e.TEXTURE_2D_ARRAY),o.isData3DTexture&&(c=e.TEXTURE_3D);let l=me(t,o),u=o.source;n.bindTexture(c,t.__webglTexture,e.TEXTURE0+s);let f=r.get(u);if(u.version!==f.__version||l===!0){if(n.activeTexture(e.TEXTURE0+s),!(typeof ImageBitmap<`u`&&o.image instanceof ImageBitmap)){let t=K.getPrimaries(K.workingColorSpace),r=o.colorSpace===``?null:K.getPrimaries(o.colorSpace),i=o.colorSpace===``||t===r?e.NONE:e.BROWSER_DEFAULT_WEBGL;n.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,o.flipY),n.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,o.premultiplyAlpha),n.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,i)}n.pixelStorei(e.UNPACK_ALIGNMENT,o.unpackAlignment);let t=v(o.image,!1,i.maxTextureSize);t=R(o,t);let r=a.convert(o.format,o.colorSpace),p=a.convert(o.type),m=S(o.internalFormat,r,p,o.normalized,o.colorSpace,o.isVideoTexture);pe(c,o);let h,g=o.mipmaps,_=o.isVideoTexture!==!0,x=f.__version===void 0||l===!0,T=u.dataReady,E=w(o,t);if(o.isDepthTexture)m=C(o.format===ra,o.type),x&&(_?n.texStorage2D(e.TEXTURE_2D,1,m,t.width,t.height):n.texImage2D(e.TEXTURE_2D,0,m,t.width,t.height,0,r,p,null));else if(o.isDataTexture){if(g.length>0){_&&x&&n.texStorage2D(e.TEXTURE_2D,E,m,g[0].width,g[0].height);for(let t=0,i=g.length;t<i;t++)h=g[t],_?T&&n.texSubImage2D(e.TEXTURE_2D,t,0,0,h.width,h.height,r,p,h.data):n.texImage2D(e.TEXTURE_2D,t,m,h.width,h.height,0,r,p,h.data);o.generateMipmaps=!1}else _?(x&&n.texStorage2D(e.TEXTURE_2D,E,m,t.width,t.height),T&&ge(o,t,r,p)):n.texImage2D(e.TEXTURE_2D,0,m,t.width,t.height,0,r,p,t.data)}else if(o.isCompressedTexture){if(o.isCompressedArrayTexture){_&&x&&n.texStorage3D(e.TEXTURE_2D_ARRAY,E,m,g[0].width,g[0].height,t.depth);for(let i=0,a=g.length;i<a;i++)if(h=g[i],o.format!==1023){if(r!==null){if(_){if(T){if(o.layerUpdates.size>0){let t=Cd(h.width,h.height,o.format,o.type);for(let a of o.layerUpdates){let o=h.data.subarray(a*t/h.data.BYTES_PER_ELEMENT,(a+1)*t/h.data.BYTES_PER_ELEMENT);n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,a,h.width,h.height,1,r,o)}}else n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,0,h.width,h.height,t.depth,r,h.data)}}else n.compressedTexImage3D(e.TEXTURE_2D_ARRAY,i,m,h.width,h.height,t.depth,0,h.data,0,0)}else B(`WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()`)}else _?T&&n.texSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,0,h.width,h.height,t.depth,r,p,h.data):n.texImage3D(e.TEXTURE_2D_ARRAY,i,m,h.width,h.height,t.depth,0,r,p,h.data);o.layerUpdates.size>0&&o.clearLayerUpdates()}else{_&&x&&n.texStorage2D(e.TEXTURE_2D,E,m,g[0].width,g[0].height);for(let t=0,i=g.length;t<i;t++)h=g[t],o.format===1023?_?T&&n.texSubImage2D(e.TEXTURE_2D,t,0,0,h.width,h.height,r,p,h.data):n.texImage2D(e.TEXTURE_2D,t,m,h.width,h.height,0,r,p,h.data):r===null?B(`WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()`):_?T&&n.compressedTexSubImage2D(e.TEXTURE_2D,t,0,0,h.width,h.height,r,h.data):n.compressedTexImage2D(e.TEXTURE_2D,t,m,h.width,h.height,0,h.data)}}else if(o.isDataArrayTexture){if(_){if(x&&n.texStorage3D(e.TEXTURE_2D_ARRAY,E,m,t.width,t.height,t.depth),T){if(o.layerUpdates.size>0){let i=Cd(t.width,t.height,o.format,o.type);for(let a of o.layerUpdates){let o=t.data.subarray(a*i/t.data.BYTES_PER_ELEMENT,(a+1)*i/t.data.BYTES_PER_ELEMENT);n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,a,t.width,t.height,1,r,p,o)}o.clearLayerUpdates()}else n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,0,t.width,t.height,t.depth,r,p,t.data)}}else n.texImage3D(e.TEXTURE_2D_ARRAY,0,m,t.width,t.height,t.depth,0,r,p,t.data)}else if(o.isData3DTexture)_?(x&&n.texStorage3D(e.TEXTURE_3D,E,m,t.width,t.height,t.depth),T&&n.texSubImage3D(e.TEXTURE_3D,0,0,0,0,t.width,t.height,t.depth,r,p,t.data)):n.texImage3D(e.TEXTURE_3D,0,m,t.width,t.height,t.depth,0,r,p,t.data);else if(o.isFramebufferTexture){if(x){if(_)n.texStorage2D(e.TEXTURE_2D,E,m,t.width,t.height);else{let i=t.width,a=t.height;for(let t=0;t<E;t++)n.texImage2D(e.TEXTURE_2D,t,m,i,a,0,r,p,null),i>>=1,a>>=1}}}else if(o.isHTMLTexture){if(`texElementImage2D`in e){let n=e.canvas;if(n.hasAttribute(`layoutsubtree`)||n.setAttribute(`layoutsubtree`,`true`),t.parentNode!==n){n.appendChild(t),d.add(o),n.onpaint=e=>{let t=e.changedElements;for(let e of d)t.includes(e.image)&&(e.needsUpdate=!0)},n.requestPaint();return}if(e.texElementImage2D.length===3)e.texElementImage2D(e.TEXTURE_2D,e.RGBA8,t);else{let n=e.RGBA,r=e.RGBA,i=e.UNSIGNED_BYTE;e.texElementImage2D(e.TEXTURE_2D,0,n,r,i,t)}e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE)}}else if(g.length>0){if(_&&x){let t=Oe(g[0]);n.texStorage2D(e.TEXTURE_2D,E,m,t.width,t.height)}for(let t=0,i=g.length;t<i;t++)h=g[t],_?T&&n.texSubImage2D(e.TEXTURE_2D,t,0,0,r,p,h):n.texImage2D(e.TEXTURE_2D,t,m,r,p,h);o.generateMipmaps=!1}else if(_){if(x){let r=Oe(t);n.texStorage2D(e.TEXTURE_2D,E,m,r.width,r.height)}T&&n.texSubImage2D(e.TEXTURE_2D,0,0,0,r,p,t)}else n.texImage2D(e.TEXTURE_2D,0,m,r,p,t);y(o)&&o.mipmapsAutoUpdate===!0&&b(c),f.__version=u.version,o.onUpdate&&o.onUpdate(o)}t.__version=o.version}function ve(t,o,s){if(o.image.length!==6)return;let c=me(t,o),l=o.source;n.bindTexture(e.TEXTURE_CUBE_MAP,t.__webglTexture,e.TEXTURE0+s);let u=r.get(l);if(l.version!==u.__version||c===!0){n.activeTexture(e.TEXTURE0+s);let t=K.getPrimaries(K.workingColorSpace),r=o.colorSpace===``?null:K.getPrimaries(o.colorSpace),d=o.colorSpace===``||t===r?e.NONE:e.BROWSER_DEFAULT_WEBGL;n.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,o.flipY),n.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,o.premultiplyAlpha),n.pixelStorei(e.UNPACK_ALIGNMENT,o.unpackAlignment),n.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,d);let f=o.isCompressedTexture||o.image[0].isCompressedTexture,p=o.image[0]&&o.image[0].isDataTexture,m=[];for(let e=0;e<6;e++)!f&&!p?m[e]=v(o.image[e],!0,i.maxCubemapSize):m[e]=p?o.image[e].image:o.image[e],m[e]=R(o,m[e]);let h=m[0],g=a.convert(o.format,o.colorSpace),_=a.convert(o.type),x=S(o.internalFormat,g,_,o.normalized,o.colorSpace),T=o.isVideoTexture!==!0,E=u.__version===void 0||c===!0,D=l.dataReady,O=w(o,h);pe(e.TEXTURE_CUBE_MAP,o);let k;if(o.isDepthTexture){if(x=C(o.format===ra,o.type),E){if(T)n.texStorage2D(e.TEXTURE_CUBE_MAP,1,x,h.width,h.height);else for(let t=0;t<6;t++)n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,x,h.width,h.height,0,g,_,null)}}else if(f){T&&E&&n.texStorage2D(e.TEXTURE_CUBE_MAP,O,x,h.width,h.height);for(let t=0;t<6;t++){k=m[t].mipmaps;for(let r=0;r<k.length;r++){let i=k[r];o.format===1023?T?D&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,r,0,0,i.width,i.height,g,_,i.data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,r,x,i.width,i.height,0,g,_,i.data):g===null?B(`WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()`):T?D&&n.compressedTexSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,r,0,0,i.width,i.height,g,i.data):n.compressedTexImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,r,x,i.width,i.height,0,i.data)}}}else{if(k=o.mipmaps,T&&E){k.length>0&&O++;let t=Oe(m[0]);n.texStorage2D(e.TEXTURE_CUBE_MAP,O,x,t.width,t.height)}for(let t=0;t<6;t++)if(p){T?D&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,m[t].width,m[t].height,g,_,m[t].data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,x,m[t].width,m[t].height,0,g,_,m[t].data);for(let r=0;r<k.length;r++){let i=k[r].image[t].image;T?D&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,r+1,0,0,i.width,i.height,g,_,i.data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,r+1,x,i.width,i.height,0,g,_,i.data)}}else{T?D&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,g,_,m[t]):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,x,g,_,m[t]);for(let r=0;r<k.length;r++){let i=k[r];T?D&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,r+1,0,0,g,_,i.image[t]):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,r+1,x,g,_,i.image[t])}}}y(o)&&o.mipmapsAutoUpdate===!0&&b(e.TEXTURE_CUBE_MAP),u.__version=l.version,o.onUpdate&&o.onUpdate(o)}t.__version=o.version}function ye(t,i,o,c,l,u){let d=a.convert(o.format,o.colorSpace),f=a.convert(o.type),p=S(o.internalFormat,d,f,o.normalized,o.colorSpace),m=r.get(i),h=r.get(o);if(h.__renderTarget=i,!m.__hasExternalTextures){let t=Math.max(1,i.width>>u),r=Math.max(1,i.height>>u);l===e.TEXTURE_3D||l===e.TEXTURE_2D_ARRAY?n.texImage3D(l,u,p,t,r,i.depth,0,d,f,null):n.texImage2D(l,u,p,t,r,0,d,f,null)}n.bindFramebuffer(e.FRAMEBUFFER,t),De(i)?s.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,c,l,h.__webglTexture,0,I(i)):(l===e.TEXTURE_2D||l>=e.TEXTURE_CUBE_MAP_POSITIVE_X&&l<=e.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&e.framebufferTexture2D(e.FRAMEBUFFER,c,l,h.__webglTexture,u),n.bindFramebuffer(e.FRAMEBUFFER,null)}function be(t,n,r){if(e.bindRenderbuffer(e.RENDERBUFFER,t),n.depthBuffer){let i=n.depthTexture,a=i&&i.isDepthTexture?i.type:null,o=C(n.stencilBuffer,a),c=n.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT;De(n)?s.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,I(n),o,n.width,n.height):r?e.renderbufferStorageMultisample(e.RENDERBUFFER,I(n),o,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,o,n.width,n.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,c,e.RENDERBUFFER,t)}else{let t=n.textures;for(let i=0;i<t.length;i++){let o=t[i],c=a.convert(o.format,o.colorSpace),l=a.convert(o.type),u=S(o.internalFormat,c,l,o.normalized,o.colorSpace);De(n)?s.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,I(n),u,n.width,n.height):r?e.renderbufferStorageMultisample(e.RENDERBUFFER,I(n),u,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,u,n.width,n.height)}}e.bindRenderbuffer(e.RENDERBUFFER,null)}function xe(t,i,a){let o=i.isWebGLCubeRenderTarget===!0;if(n.bindFramebuffer(e.FRAMEBUFFER,t),!(i.depthTexture&&i.depthTexture.isDepthTexture))throw Error(`THREE.WebGLTextures: renderTarget.depthTexture must be an instance of THREE.DepthTexture.`);let c=r.get(i.depthTexture);c.__renderTarget=i;let l=o?i.depthTexture.image[0]:i.depthTexture.image;c.__webglTexture&&l.width===i.width&&l.height===i.height||(l.width=i.width,l.height=i.height,i.depthTexture.needsUpdate=!0),o?le(i.depthTexture,0):oe(i.depthTexture,0);let u=c.__webglTexture,d=I(i),f=o?e.TEXTURE_CUBE_MAP_POSITIVE_X+a:e.TEXTURE_2D,p=i.depthTexture.format===1027?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT;if(i.depthTexture.format===1026)De(i)?s.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,p,f,u,0,d):e.framebufferTexture2D(e.FRAMEBUFFER,p,f,u,0);else if(i.depthTexture.format===1027)De(i)?s.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,p,f,u,0,d):e.framebufferTexture2D(e.FRAMEBUFFER,p,f,u,0);else throw Error(`THREE.WebGLTextures: Unknown depthTexture format.`)}function Se(t){let i=r.get(t),a=t.isWebGLCubeRenderTarget===!0;if(i.__boundDepthTexture!==t.depthTexture){let e=t.depthTexture;if(i.__depthDisposeCallback&&i.__depthDisposeCallback(),e){let t=()=>{delete i.__boundDepthTexture,delete i.__depthDisposeCallback,e.removeEventListener(`dispose`,t)};e.addEventListener(`dispose`,t),i.__depthDisposeCallback=t}i.__boundDepthTexture=e}if(t.depthTexture&&!i.__autoAllocateDepthBuffer){if(a)for(let e=0;e<6;e++)xe(i.__webglFramebuffer[e],t,e);else t.texture.mipmaps.length>0?xe(i.__webglFramebuffer[0],t,0):xe(i.__webglFramebuffer,t,0)}else if(a){i.__webglDepthbuffer=[];for(let r=0;r<6;r++)if(n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer[r]),i.__webglDepthbuffer[r]===void 0)i.__webglDepthbuffer[r]=e.createRenderbuffer(),be(i.__webglDepthbuffer[r],t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,a=i.__webglDepthbuffer[r];e.bindRenderbuffer(e.RENDERBUFFER,a),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,a)}}else if(t.texture.mipmaps.length>0?n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer[0]):n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer),i.__webglDepthbuffer===void 0)i.__webglDepthbuffer=e.createRenderbuffer(),be(i.__webglDepthbuffer,t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,r=i.__webglDepthbuffer;e.bindRenderbuffer(e.RENDERBUFFER,r),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,r)}n.bindFramebuffer(e.FRAMEBUFFER,null)}function Ce(t,n,i){let a=r.get(t);n!==void 0&&ye(a.__webglFramebuffer,t,t.texture,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,0),i!==void 0&&Se(t)}function F(t){let i=t.texture,s=r.get(t),c=r.get(i);t.addEventListener(`dispose`,O),T(t);let l=t.textures,u=t.isWebGLCubeRenderTarget===!0,d=l.length>1;if(d||(c.__webglTexture===void 0&&(c.__webglTexture=e.createTexture()),c.__version=i.version,o.memory.textures++),u){s.__webglFramebuffer=[];for(let t=0;t<6;t++)if(i.mipmaps.length>0){s.__webglFramebuffer[t]=[];for(let n=0;n<i.mipmaps.length;n++)s.__webglFramebuffer[t][n]=e.createFramebuffer()}else s.__webglFramebuffer[t]=e.createFramebuffer()}else{if(i.mipmaps.length>0){s.__webglFramebuffer=[];for(let t=0;t<i.mipmaps.length;t++)s.__webglFramebuffer[t]=e.createFramebuffer()}else s.__webglFramebuffer=e.createFramebuffer();if(d)for(let t=0,n=l.length;t<n;t++){let n=r.get(l[t]);n.__webglTexture===void 0&&(n.__webglTexture=e.createTexture(),o.memory.textures++)}if(t.samples>0&&De(t)===!1){s.__webglMultisampledFramebuffer=e.createFramebuffer(),s.__webglColorRenderbuffer=[],n.bindFramebuffer(e.FRAMEBUFFER,s.__webglMultisampledFramebuffer);for(let n=0;n<l.length;n++){let r=l[n];s.__webglColorRenderbuffer[n]=e.createRenderbuffer(),e.bindRenderbuffer(e.RENDERBUFFER,s.__webglColorRenderbuffer[n]);let i=a.convert(r.format,r.colorSpace),o=a.convert(r.type),c=S(r.internalFormat,i,o,r.normalized,r.colorSpace,t.isXRRenderTarget===!0),u=I(t);e.renderbufferStorageMultisample(e.RENDERBUFFER,u,c,t.width,t.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+n,e.RENDERBUFFER,s.__webglColorRenderbuffer[n])}e.bindRenderbuffer(e.RENDERBUFFER,null),t.depthBuffer&&(s.__webglDepthRenderbuffer=e.createRenderbuffer(),be(s.__webglDepthRenderbuffer,t,!0)),n.bindFramebuffer(e.FRAMEBUFFER,null)}}if(u){n.bindTexture(e.TEXTURE_CUBE_MAP,c.__webglTexture),pe(e.TEXTURE_CUBE_MAP,i);for(let n=0;n<6;n++)if(i.mipmaps.length>0)for(let r=0;r<i.mipmaps.length;r++)ye(s.__webglFramebuffer[n][r],t,i,e.COLOR_ATTACHMENT0,e.TEXTURE_CUBE_MAP_POSITIVE_X+n,r);else ye(s.__webglFramebuffer[n],t,i,e.COLOR_ATTACHMENT0,e.TEXTURE_CUBE_MAP_POSITIVE_X+n,0);y(i)?b(e.TEXTURE_CUBE_MAP):i.mipmaps.length>0&&e.texParameteri(e.TEXTURE_CUBE_MAP,e.TEXTURE_MAX_LEVEL,i.mipmaps.length-1),n.unbindTexture()}else if(d){for(let i=0,a=l.length;i<a;i++){let a=l[i],o=r.get(a),c=e.TEXTURE_2D;(t.isWebGL3DRenderTarget||t.isWebGLArrayRenderTarget)&&(c=t.isWebGL3DRenderTarget?e.TEXTURE_3D:e.TEXTURE_2D_ARRAY),n.bindTexture(c,o.__webglTexture),pe(c,a),ye(s.__webglFramebuffer,t,a,e.COLOR_ATTACHMENT0+i,c,0),y(a)&&b(c)}n.unbindTexture()}else{let r=e.TEXTURE_2D;if((t.isWebGL3DRenderTarget||t.isWebGLArrayRenderTarget)&&(r=t.isWebGL3DRenderTarget?e.TEXTURE_3D:e.TEXTURE_2D_ARRAY),n.bindTexture(r,c.__webglTexture),pe(r,i),i.mipmaps.length>0)for(let n=0;n<i.mipmaps.length;n++)ye(s.__webglFramebuffer[n],t,i,e.COLOR_ATTACHMENT0,r,n);else ye(s.__webglFramebuffer,t,i,e.COLOR_ATTACHMENT0,r,0);y(i)?b(r):i.mipmaps.length>0&&e.texParameteri(r,e.TEXTURE_MAX_LEVEL,i.mipmaps.length-1),n.unbindTexture()}t.depthBuffer&&Se(t)}function we(e){let t=e.textures;for(let i=0,a=t.length;i<a;i++){let a=t[i];if(y(a)&&a.mipmapsAutoUpdate===!0){let t=x(e),i=r.get(a).__webglTexture;n.bindTexture(t,i),b(t),n.unbindTexture()}}}let Te=[];function Ee(t){if(t.samples>0){if(De(t)===!1){let i=t.textures,a=t.width,o=t.height,s=e.COLOR_BUFFER_BIT,l=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,u=r.get(t),d=i.length>1;if(d)for(let t=0;t<i.length;t++)n.bindFramebuffer(e.FRAMEBUFFER,u.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.RENDERBUFFER,null),n.bindFramebuffer(e.FRAMEBUFFER,u.__webglFramebuffer),e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.TEXTURE_2D,null,0);n.bindFramebuffer(e.READ_FRAMEBUFFER,u.__webglMultisampledFramebuffer),t.texture.mipmaps.length>0?n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer[0]):n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer);for(let n=0;n<i.length;n++){if(t.resolveDepthBuffer&&(t.depthBuffer&&(s|=e.DEPTH_BUFFER_BIT),t.stencilBuffer&&t.resolveStencilBuffer&&(s|=e.STENCIL_BUFFER_BIT)),d){e.framebufferRenderbuffer(e.READ_FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.RENDERBUFFER,u.__webglColorRenderbuffer[n]);let t=r.get(i[n]).__webglTexture;e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0)}e.blitFramebuffer(0,0,a,o,0,0,a,o,s,e.NEAREST),c===!0&&(Te.length=0,Te.push(e.COLOR_ATTACHMENT0+n),t.depthBuffer&&t.storeMultisampledDepthBuffer===!1&&Te.push(l),e.invalidateFramebuffer(e.READ_FRAMEBUFFER,Te))}if(n.bindFramebuffer(e.READ_FRAMEBUFFER,null),n.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),d)for(let t=0;t<i.length;t++){n.bindFramebuffer(e.FRAMEBUFFER,u.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.RENDERBUFFER,u.__webglColorRenderbuffer[t]);let a=r.get(i[t]).__webglTexture;n.bindFramebuffer(e.FRAMEBUFFER,u.__webglFramebuffer),e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.TEXTURE_2D,a,0)}n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglMultisampledFramebuffer)}else if(t.depthBuffer&&t.storeMultisampledDepthBuffer===!1&&c){let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT;e.invalidateFramebuffer(e.DRAW_FRAMEBUFFER,[n])}}}function I(e){return Math.min(i.maxSamples,e.samples)}function De(e){let n=r.get(e);return e.samples>0&&t.has(`WEBGL_multisampled_render_to_texture`)===!0&&n.__useRenderToTexture!==!1}function L(e){let t=o.render.frame;u.get(e)!==t&&(u.set(e,t),e.update())}function R(e,t){let n=e.colorSpace,r=e.format,i=e.type;return e.isCompressedTexture===!0||e.isVideoTexture===!0||n!==`srgb-linear`&&n!==``&&(K.getTransfer(n)===`srgb`?(r!==1023||i!==1009)&&B(`WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.`):V(`WebGLTextures: Unsupported texture color space:`,n)),t}function Oe(e){return typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement?(l.width=e.naturalWidth||e.width,l.height=e.naturalHeight||e.height):typeof VideoFrame<`u`&&e instanceof VideoFrame?(l.width=e.displayWidth,l.height=e.displayHeight):(l.width=e.width,l.height=e.height),l}this.allocateTextureUnit=ie,this.resetTextureUnits=P,this.getTextureUnits=ne,this.setTextureUnits=re,this.setTexture2D=oe,this.setTexture2DArray=se,this.setTexture3D=ce,this.setTextureCube=le,this.rebindTextures=Ce,this.setupRenderTarget=F,this.updateRenderTargetMipmap=we,this.updateMultisampleRenderTarget=Ee,this.setupDepthRenderbuffer=Se,this.setupFrameBufferTexture=ye,this.useMultisampledRTT=De,this.dispose=j}function Cm(e,t){function n(n,r=``){let i,a=K.getTransfer(r);if(n===1009)return e.UNSIGNED_BYTE;if(n===1017)return e.UNSIGNED_SHORT_4_4_4_4;if(n===1018)return e.UNSIGNED_SHORT_5_5_5_1;if(n===35902)return e.UNSIGNED_INT_5_9_9_9_REV;if(n===35899)return e.UNSIGNED_INT_10F_11F_11F_REV;if(n===1010)return e.BYTE;if(n===1011)return e.SHORT;if(n===1012)return e.UNSIGNED_SHORT;if(n===1013)return e.INT;if(n===1014)return e.UNSIGNED_INT;if(n===1015)return e.FLOAT;if(n===1016)return e.HALF_FLOAT;if(n===1021)return e.ALPHA;if(n===1022)return e.RGB;if(n===1023)return e.RGBA;if(n===1026)return e.DEPTH_COMPONENT;if(n===1027)return e.DEPTH_STENCIL;if(n===1028)return e.RED;if(n===1029)return e.RED_INTEGER;if(n===1030)return e.RG;if(n===1031)return e.RG_INTEGER;if(n===1033)return e.RGBA_INTEGER;if(n===33776||n===33777||n===33778||n===33779){if(a===`srgb`){if(i=t.get(`WEBGL_compressed_texture_s3tc_srgb`),i!==null){if(n===33776)return i.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===33777)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===33778)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===33779)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null}else if(i=t.get(`WEBGL_compressed_texture_s3tc`),i!==null){if(n===33776)return i.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===33777)return i.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===33778)return i.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===33779)return i.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null}if(n===35840||n===35841||n===35842||n===35843){if(i=t.get(`WEBGL_compressed_texture_pvrtc`),i!==null){if(n===35840)return i.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===35841)return i.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===35842)return i.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===35843)return i.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null}if(n===36196||n===37492||n===37496||n===37488||n===37489||n===37490||n===37491){if(i=t.get(`WEBGL_compressed_texture_etc`),i!==null){if(n===36196||n===37492)return a===`srgb`?i.COMPRESSED_SRGB8_ETC2:i.COMPRESSED_RGB8_ETC2;if(n===37496)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:i.COMPRESSED_RGBA8_ETC2_EAC;if(n===37488)return i.COMPRESSED_R11_EAC;if(n===37489)return i.COMPRESSED_SIGNED_R11_EAC;if(n===37490)return i.COMPRESSED_RG11_EAC;if(n===37491)return i.COMPRESSED_SIGNED_RG11_EAC}else return null}if(n===37808||n===37809||n===37810||n===37811||n===37812||n===37813||n===37814||n===37815||n===37816||n===37817||n===37818||n===37819||n===37820||n===37821){if(i=t.get(`WEBGL_compressed_texture_astc`),i!==null){if(n===37808)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:i.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===37809)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:i.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===37810)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:i.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===37811)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:i.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===37812)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:i.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===37813)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:i.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===37814)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:i.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===37815)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:i.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===37816)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:i.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===37817)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:i.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===37818)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:i.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===37819)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:i.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===37820)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:i.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===37821)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:i.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null}if(n===36492||n===36494||n===36495){if(i=t.get(`EXT_texture_compression_bptc`),i!==null){if(n===36492)return a===`srgb`?i.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:i.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(n===36494)return i.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(n===36495)return i.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null}if(n===36283||n===36284||n===36285||n===36286){if(i=t.get(`EXT_texture_compression_rgtc`),i!==null){if(n===36283)return i.COMPRESSED_RED_RGTC1_EXT;if(n===36284)return i.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(n===36285)return i.COMPRESSED_RED_GREEN_RGTC2_EXT;if(n===36286)return i.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null}return n===1020?e.UNSIGNED_INT_24_8:e[n]===void 0?null:e[n]}return{convert:n}}var wm=`
4766void main() {
4767
4768 gl_Position = vec4( position, 1.0 );
4769
4770}`,Tm=`
4771uniform sampler2DArray depthColor;
4772uniform float depthWidth;
4773uniform float depthHeight;
4774
4775void main() {
4776
4777 vec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight );
4778
4779 if ( coord.x >= 1.0 ) {
4780
4781 gl_FragDepth = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r;
4782
4783 } else {
4784
4785 gl_FragDepth = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r;
4786
4787 }
4788
4789}`,Em=class{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t){if(this.texture===null){let n=new ql(e.texture);(e.depthNear!==t.depthNear||e.depthFar!==t.depthFar)&&(this.depthNear=e.depthNear,this.depthFar=e.depthFar),this.texture=n}}getMesh(e){if(this.texture!==null&&this.mesh===null){let t=e.cameras[0].viewport,n=new ou({vertexShader:wm,fragmentShader:Tm,uniforms:{depthColor:{value:this.texture},depthWidth:{value:t.z},depthHeight:{value:t.w}}});this.mesh=new ml(new Yl(20,20),n)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}},Dm=class extends vo{constructor(e,t){super();let n=this,r=null,i=1,a=null,o=`local-floor`,s=1,c=null,l=null,u=null,d=null,f=null,p=null,m=typeof XRWebGLBinding<`u`,h=new Em,g={},_=t.getContextAttributes(),v=null,y=null,b=[],x=[],S=new U,C=null,w=null,T=new Xu;T.viewport=new ls;let E=new Xu;E.viewport=new ls;let D=[T,E],O=new id,k=null,A=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(e){let t=b[e];return t===void 0&&(t=new Ws,b[e]=t),t.getTargetRaySpace()},this.getControllerGrip=function(e){let t=b[e];return t===void 0&&(t=new Ws,b[e]=t),t.getGripSpace()},this.getHand=function(e){let t=b[e];return t===void 0&&(t=new Ws,b[e]=t),t.getHandSpace()};function j(e){let t=x.indexOf(e.inputSource);if(t===-1)return;let n=b[t];n!==void 0&&(n.update(e.inputSource,e.frame,c||a),n.dispatchEvent({type:e.type,data:e.inputSource}))}function M(){r.removeEventListener(`select`,j),r.removeEventListener(`selectstart`,j),r.removeEventListener(`selectend`,j),r.removeEventListener(`squeeze`,j),r.removeEventListener(`squeezestart`,j),r.removeEventListener(`squeezeend`,j),r.removeEventListener(`end`,M),r.removeEventListener(`inputsourceschange`,N);for(let e=0;e<b.length;e++){let t=x[e];t!==null&&(x[e]=null,b[e].disconnect(t))}k=null,A=null,h.reset();for(let e in g)delete g[e];if(e.setRenderTarget(v),f=null,d=null,u=null,r=null,y=null,re.stop(),n.isPresenting=!1,e.setPixelRatio(C),e.setSize(S.width,S.height,!1),w!==null){let e=w.camera;e.fov=w.fov,e.zoom=w.zoom,e.updateProjectionMatrix(),w=null}n.dispatchEvent({type:`sessionend`})}this.setFramebufferScaleFactor=function(e){i=e,n.isPresenting===!0&&B(`WebXRManager: Cannot change framebuffer scale while presenting.`)},this.setReferenceSpaceType=function(e){o=e,n.isPresenting===!0&&B(`WebXRManager: Cannot change reference space type while presenting.`)},this.getReferenceSpace=function(){return c||a},this.setReferenceSpace=function(e){c=e},this.getBaseLayer=function(){return d===null?f:d},this.getBinding=function(){return u===null&&m&&(u=new XRWebGLBinding(r,t)),u},this.getFrame=function(){return p},this.getSession=function(){return r},this.setSession=async function(l){if(r=l,r!==null){if(v=e.getRenderTarget(),r.addEventListener(`select`,j),r.addEventListener(`selectstart`,j),r.addEventListener(`selectend`,j),r.addEventListener(`squeeze`,j),r.addEventListener(`squeezestart`,j),r.addEventListener(`squeezeend`,j),r.addEventListener(`end`,M),r.addEventListener(`inputsourceschange`,N),_.xrCompatible!==!0&&await t.makeXRCompatible(),C=e.getPixelRatio(),e.getSize(S),m&&`createProjectionLayer`in XRWebGLBinding.prototype){let n=null,a=null,o=null;_.depth&&(o=_.stencil?t.DEPTH24_STENCIL8:t.DEPTH_COMPONENT24,n=_.stencil?ra:na,a=_.stencil?Xi:Gi);let s={colorFormat:t.RGBA8,depthFormat:o,scaleFactor:i};u=this.getBinding(),d=u.createProjectionLayer(s),r.updateRenderState({layers:[d]}),e.setPixelRatio(1),e.setSize(d.textureWidth,d.textureHeight,!1),y=new ds(d.textureWidth,d.textureHeight,{format:ta,type:Bi,depthTexture:new Gl(d.textureWidth,d.textureHeight,a,void 0,void 0,void 0,void 0,void 0,void 0,n),stencilBuffer:_.stencil,colorSpace:e.outputColorSpace,samples:_.antialias?4:0,resolveDepthBuffer:d.ignoreDepthValues===!1,resolveStencilBuffer:d.ignoreDepthValues===!1,storeMultisampledDepthBuffer:d.ignoreDepthValues===!1,storeMultisampledStencilBuffer:d.ignoreDepthValues===!1})}else{let n={antialias:_.antialias,alpha:!0,depth:_.depth,stencil:_.stencil,framebufferScaleFactor:i};f=new XRWebGLLayer(r,t,n),r.updateRenderState({baseLayer:f}),e.setPixelRatio(1),e.setSize(f.framebufferWidth,f.framebufferHeight,!1),y=new ds(f.framebufferWidth,f.framebufferHeight,{format:ta,type:Bi,colorSpace:e.outputColorSpace,stencilBuffer:_.stencil,resolveDepthBuffer:f.ignoreDepthValues===!1,resolveStencilBuffer:f.ignoreDepthValues===!1,storeMultisampledDepthBuffer:f.ignoreDepthValues===!1,storeMultisampledStencilBuffer:f.ignoreDepthValues===!1})}y.isXRRenderTarget=!0,this.setFoveation(s),c=null,a=await r.requestReferenceSpace(o),re.setContext(r),re.start(),n.isPresenting=!0,n.dispatchEvent({type:`sessionstart`})}},this.getEnvironmentBlendMode=function(){if(r!==null)return r.environmentBlendMode},this.getDepthTexture=function(){return h.getDepthTexture()};function N(e){for(let t=0;t<e.removed.length;t++){let n=e.removed[t],r=x.indexOf(n);r>=0&&(x[r]=null,b[r].disconnect(n))}for(let t=0;t<e.added.length;t++){let n=e.added[t],r=x.indexOf(n);if(r===-1){for(let e=0;e<b.length;e++)if(e>=x.length){x.push(n),r=e;break}else if(x[e]===null){x[e]=n,r=e;break}if(r===-1)break}let i=b[r];i&&i.connect(n)}}function ee(e,t){t===null?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}this.updateCamera=function(e){if(r===null)return;let t=e.near,n=e.far;h.texture!==null&&(h.depthNear>0&&(t=h.depthNear),h.depthFar>0&&(n=h.depthFar)),O.near=E.near=T.near=t,O.far=E.far=T.far=n,(k!==O.near||A!==O.far)&&(r.updateRenderState({depthNear:O.near,depthFar:O.far}),k=O.near,A=O.far),O.layers.mask=e.layers.mask|6,T.layers.mask=O.layers.mask&-5,E.layers.mask=O.layers.mask&-3;let i=e.parent,a=O.cameras;ee(O,i);for(let e=0;e<a.length;e++)ee(a[e],i);O.projectionMatrix.copy(T.projectionMatrix),O.projectionMatrixInverse.copy(T.projectionMatrixInverse),w===null&&e.isPerspectiveCamera&&(w={camera:e,fov:e.fov,zoom:e.zoom}),te(e,O,i)};function te(e,t,n){n===null?e.matrix.copy(t.matrixWorld):(e.matrix.copy(n.matrixWorld),e.matrix.invert(),e.matrix.multiply(t.matrixWorld)),e.matrix.decompose(e.position,e.quaternion,e.scale),e.updateMatrixWorld(!0),e.projectionMatrix.copy(t.projectionMatrix),e.projectionMatrixInverse.copy(t.projectionMatrixInverse),e.isPerspectiveCamera&&(e.fov=So*2*Math.atan(1/e.projectionMatrix.elements[5]),e.zoom=1)}this.getCamera=function(){return O},this.getFoveation=function(){if(d!==null||f!==null)return s},this.setFoveation=function(e){s=e,d!==null&&(d.fixedFoveation=e),f!==null&&f.fixedFoveation!==void 0&&(f.fixedFoveation=e)},this.hasDepthSensing=function(){return h.texture!==null},this.getDepthSensingMesh=function(){return h.getMesh(O)},this.getCameraTexture=function(e){return g[e]};let P=null;function ne(t,i){if(l=i.getViewerPose(c||a),p=i,l!==null){let t=l.views;f!==null&&(e.setRenderTargetFramebuffer(y,f.framebuffer),e.setRenderTarget(y));let i=!1;t.length!==O.cameras.length&&(O.cameras.length=0,i=!0);for(let n=0;n<t.length;n++){let r=t[n],a=null;if(f!==null)a=f.getViewport(r);else{let t=u.getViewSubImage(d,r);a=t.viewport,n===0&&(e.setRenderTargetTextures(y,t.colorTexture,t.depthStencilTexture),e.setRenderTarget(y))}let o=D[n];o===void 0&&(o=new Xu,o.layers.enable(n),o.viewport=new ls,D[n]=o),o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.quaternion,o.scale),o.projectionMatrix.fromArray(r.projectionMatrix),o.projectionMatrixInverse.copy(o.projectionMatrix).invert(),o.viewport.set(a.x,a.y,a.width,a.height),n===0&&(O.matrix.copy(o.matrix),O.matrix.decompose(O.position,O.quaternion,O.scale)),i===!0&&O.cameras.push(o)}let a=r.enabledFeatures;if(a&&a.includes(`depth-sensing`)&&r.depthUsage==`gpu-optimized`&&m){u=n.getBinding();let e=u.getDepthInformation(t[0]);e&&e.isValid&&e.texture&&h.init(e,r.renderState)}if(a&&a.includes(`camera-access`)&&m){e.state.unbindTexture(),u=n.getBinding();for(let e=0;e<t.length;e++){let n=t[e].camera;if(n){let e=g[n];e||(e=new ql,g[n]=e);let t=u.getCameraImage(n);e.sourceTexture=t}}}}for(let e=0;e<b.length;e++){let t=x[e],n=b[e];t!==null&&n!==void 0&&n.update(t,i,c||a)}P&&P(t,i),i.detectedPlanes&&n.dispatchEvent({type:`planesdetected`,data:i}),p=null}let re=new Td;re.setAnimationLoop(ne),this.setAnimationLoop=function(e){P=e},this.dispose=function(){}}},Om=new ms,km=new G;km.set(-1,0,0,0,1,0,0,0,1);function Am(e,t){function n(e,t){e.matrixAutoUpdate===!0&&e.updateMatrix(),t.value.copy(e.matrix)}function r(t,n){n.color.getRGB(t.fogColor.value,nu(e)),n.isFog?(t.fogNear.value=n.near,t.fogFar.value=n.far):n.isFogExp2&&(t.fogDensity.value=n.density)}function i(e,t,n,r,i){t.isNodeMaterial?t.uniformsNeedUpdate=!1:t.isMeshBasicMaterial?a(e,t):t.isMeshLambertMaterial?(a(e,t),t.envMap&&(e.envMapIntensity.value=t.envMapIntensity)):t.isMeshToonMaterial?(a(e,t),d(e,t)):t.isMeshPhongMaterial?(a(e,t),u(e,t),t.envMap&&(e.envMapIntensity.value=t.envMapIntensity)):t.isMeshStandardMaterial?(a(e,t),f(e,t),t.isMeshPhysicalMaterial&&p(e,t,i)):t.isMeshMatcapMaterial?(a(e,t),m(e,t)):t.isMeshDepthMaterial?a(e,t):t.isMeshDistanceMaterial?(a(e,t),h(e,t)):t.isMeshNormalMaterial?a(e,t):t.isLineBasicMaterial?(o(e,t),t.isLineDashedMaterial&&s(e,t)):t.isPointsMaterial?c(e,t,n,r):t.isSpriteMaterial?l(e,t):t.isShadowMaterial?(e.color.value.copy(t.color),e.opacity.value=t.opacity):t.isShaderMaterial&&(t.uniformsNeedUpdate=!1)}function a(e,r){e.opacity.value=r.opacity,r.color&&e.diffuse.value.copy(r.color),r.emissive&&e.emissive.value.copy(r.emissive).multiplyScalar(r.emissiveIntensity),r.map&&(e.map.value=r.map,n(r.map,e.mapTransform)),r.alphaMap&&(e.alphaMap.value=r.alphaMap,n(r.alphaMap,e.alphaMapTransform)),r.bumpMap&&(e.bumpMap.value=r.bumpMap,n(r.bumpMap,e.bumpMapTransform),e.bumpScale.value=r.bumpScale,r.side===1&&(e.bumpScale.value*=-1)),r.normalMap&&(e.normalMap.value=r.normalMap,n(r.normalMap,e.normalMapTransform),e.normalScale.value.copy(r.normalScale),r.side===1&&e.normalScale.value.negate()),r.displacementMap&&(e.displacementMap.value=r.displacementMap,n(r.displacementMap,e.displacementMapTransform),e.displacementScale.value=r.displacementScale,e.displacementBias.value=r.displacementBias),r.emissiveMap&&(e.emissiveMap.value=r.emissiveMap,n(r.emissiveMap,e.emissiveMapTransform)),r.specularMap&&(e.specularMap.value=r.specularMap,n(r.specularMap,e.specularMapTransform)),r.alphaTest>0&&(e.alphaTest.value=r.alphaTest);let i=t.get(r),a=i.envMap,o=i.envMapRotation;a&&(e.envMap.value=a,e.envMapRotation.value.setFromMatrix4(Om.makeRotationFromEuler(o)).transpose(),a.isCubeTexture&&a.isRenderTargetTexture===!1&&e.envMapRotation.value.premultiply(km),e.reflectivity.value=r.reflectivity,e.ior.value=r.ior,e.refractionRatio.value=r.refractionRatio),r.lightMap&&(e.lightMap.value=r.lightMap,e.lightMapIntensity.value=r.lightMapIntensity,n(r.lightMap,e.lightMapTransform)),r.aoMap&&(e.aoMap.value=r.aoMap,e.aoMapIntensity.value=r.aoMapIntensity,n(r.aoMap,e.aoMapTransform))}function o(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform))}function s(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}function c(e,t,r,i){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*r,e.scale.value=i*.5,t.map&&(e.map.value=t.map,n(t.map,e.uvTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function l(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function u(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}function d(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}function f(e,t){e.metalness.value=t.metalness,t.metalnessMap&&(e.metalnessMap.value=t.metalnessMap,n(t.metalnessMap,e.metalnessMapTransform)),e.roughness.value=t.roughness,t.roughnessMap&&(e.roughnessMap.value=t.roughnessMap,n(t.roughnessMap,e.roughnessMapTransform)),t.envMap&&(e.envMapIntensity.value=t.envMapIntensity)}function p(e,t,r){e.ior.value=t.ior,t.diffuseRoughness>0&&(e.diffuseRoughness.value=t.diffuseRoughness,t.diffuseRoughnessMap&&(e.diffuseRoughnessMap.value=t.diffuseRoughnessMap,n(t.diffuseRoughnessMap,e.diffuseRoughnessMapTransform))),t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap,n(t.sheenColorMap,e.sheenColorMapTransform)),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap,n(t.sheenRoughnessMap,e.sheenRoughnessMapTransform))),t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap,n(t.clearcoatMap,e.clearcoatMapTransform)),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap,n(t.clearcoatRoughnessMap,e.clearcoatRoughnessMapTransform)),t.clearcoatNormalMap&&(e.clearcoatNormalMap.value=t.clearcoatNormalMap,n(t.clearcoatNormalMap,e.clearcoatNormalMapTransform),e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),t.side===1&&e.clearcoatNormalScale.value.negate())),t.dispersion>0&&(e.dispersion.value=t.dispersion),t.retroreflectivity>0&&(e.retroreflectivity.value=t.retroreflectivity),t.iridescence>0&&(e.iridescence.value=t.iridescence,e.iridescenceIOR.value=t.iridescenceIOR,e.iridescenceThicknessMinimum.value=t.iridescenceThicknessMinimum,e.iridescenceThicknessMaximum.value=t.iridescenceThicknessMaximum,t.iridescenceMap&&(e.iridescenceMap.value=t.iridescenceMap,n(t.iridescenceMap,e.iridescenceMapTransform)),t.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=t.iridescenceThicknessMap,n(t.iridescenceThicknessMap,e.iridescenceThicknessMapTransform))),t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=r.texture,e.transmissionSamplerSize.value.set(r.width,r.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap,n(t.transmissionMap,e.transmissionMapTransform)),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap,n(t.thicknessMap,e.thicknessMapTransform)),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor)),t.anisotropy>0&&(e.anisotropyVector.value.set(t.anisotropy*Math.cos(t.anisotropyRotation),t.anisotropy*Math.sin(t.anisotropyRotation)),t.anisotropyMap&&(e.anisotropyMap.value=t.anisotropyMap,n(t.anisotropyMap,e.anisotropyMapTransform))),e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap,n(t.specularColorMap,e.specularColorMapTransform)),t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap,n(t.specularIntensityMap,e.specularIntensityMapTransform))}function m(e,t){t.matcap&&(e.matcap.value=t.matcap)}function h(e,n){let r=t.get(n).light;e.referencePosition.value.setFromMatrixPosition(r.matrixWorld),e.nearDistance.value=r.shadow.camera.near,e.farDistance.value=r.shadow.camera.far}return{refreshFogUniforms:r,refreshMaterialUniforms:i}}function jm(e,t,n,r){let i={},a={};function o(e,t){let n=t.program;r.uniformBlockBinding(e,n,i[e.id])}function s(e,n){let o=i[e.id];o===void 0&&(m(e),o=c(e),i[e.id]=o,e.addEventListener(`dispose`,g));let s=n.program;r.updateUBOMapping(e,s);let u=t.render.frame;a[e.id]!==u&&(l(e),a[e.id]=u)}function c(t){let n=e.createBuffer(),r=t.__size,i=t.usage;return e.bindBuffer(e.UNIFORM_BUFFER,n),e.bufferData(e.UNIFORM_BUFFER,r,i),e.bindBuffer(e.UNIFORM_BUFFER,null),n}function l(t){let n=i[t.id],r=t.uniforms,a=t.__cache;e.bindBuffer(e.UNIFORM_BUFFER,n);for(let e=0,t=r.length;e<t;e++){let t=r[e];if(Array.isArray(t))for(let n=0,r=t.length;n<r;n++)u(t[n],e,n,a);else u(t,e,0,a)}e.bindBuffer(e.UNIFORM_BUFFER,null)}function u(t,n,r,i){if(f(t,n,r,i)===!0){let n=t.__offset,r=t.value;if(Array.isArray(r)){let e=0;for(let n=0;n<r.length;n++){let i=r[n],a=h(i,!0);d(i,t.__data,e),e+=a.storage/Float32Array.BYTES_PER_ELEMENT}}else d(r,t.__data,0);e.bufferSubData(e.UNIFORM_BUFFER,n,t.__data)}}function d(e,t,n){typeof e==`number`||typeof e==`boolean`?t[n]=e:e.isMatrix3?(t[n]=e.elements[0],t[n+1]=e.elements[1],t[n+2]=e.elements[2],t[n+3]=0,t[n+4]=e.elements[3],t[n+5]=e.elements[4],t[n+6]=e.elements[5],t[n+7]=0,t[n+8]=e.elements[6],t[n+9]=e.elements[7],t[n+10]=e.elements[8],t[n+11]=0):ArrayBuffer.isView(e)?t.set(e.subarray(0,t.length-n),n):e.toArray(t,n)}function f(e,t,n,r){let i=e.value,a=t+`_`+n;if(Array.isArray(i)){r[a]===void 0&&(r[a]=[]);let e=r[a],t=!1;for(let n=0;n<i.length;n++)p(i[n],e,n)===!0&&(t=!0);return t}return p(i,r,a)}function p(e,t,n){if(t[n]===void 0)return t[n]=typeof e==`number`||typeof e==`boolean`?e:ArrayBuffer.isView(e)?e.slice():e.clone(),!0;{let r=t[n];if(typeof e==`number`||typeof e==`boolean`){if(r!==e)return t[n]=e,!0}else if(ArrayBuffer.isView(e))return!0;else if(r.equals(e)===!1)return r.copy(e),!0}return!1}function m(e){let t=e.uniforms,n=0;for(let e=0,r=t.length;e<r;e++){let r=Array.isArray(t[e])?t[e]:[t[e]];for(let i=0,a=r.length;i<a;i++){let a=r[i],o=Array.isArray(a.value)?a.value:[a.value],s=Array.isArray(t[e])||Array.isArray(a.value),c=n;for(let e=0,t=o.length;e<t;e++){let t=o[e],r=h(t,s),i=n%16,a=i%r.boundary,l=i+a;n+=a,l!==0&&16-l<r.storage&&(n+=16-l),e===0&&(c=n),n+=r.storage}a.__data=new(a.type===`int`?Int32Array:a.type===`uint`?Uint32Array:Float32Array)((n-c)/Float32Array.BYTES_PER_ELEMENT),a.__offset=c}}let r=n%16;return r>0&&(n+=16-r),e.__size=n,e.__cache={},this}function h(e,t){let n={boundary:0,storage:0};return typeof e==`number`||typeof e==`boolean`?(n.boundary=4,n.storage=4):e.isVector2?(n.boundary=8,n.storage=8):e.isVector3||e.isColor?(n.boundary=16,n.storage=12):e.isVector4?(n.boundary=16,n.storage=16):e.isMatrix3?(n.boundary=16,n.storage=48):e.isMatrix4?(n.boundary=16,n.storage=64):e.isTexture?B(`WebGLRenderer: Texture samplers can not be part of an uniforms group.`):ArrayBuffer.isView(e)?(n.boundary=16,n.storage=e.byteLength):B(`WebGLRenderer: Unsupported uniform value type.`,e),t===!0&&(n.boundary=16,n.storage=Math.ceil(n.storage/16)*16),n}function g(t){let n=t.target;n.removeEventListener(`dispose`,g),e.deleteBuffer(i[n.id]),delete i[n.id],delete a[n.id]}function _(){for(let t in i)e.deleteBuffer(i[t]);i={},a={}}return{bind:o,update:s,dispose:_}}var Mm=new Uint16Array([12469,15057,12620,14925,13266,14620,13807,14376,14323,13990,14545,13625,14713,13328,14840,12882,14931,12528,14996,12233,15039,11829,15066,11525,15080,11295,15085,10976,15082,10705,15073,10495,13880,14564,13898,14542,13977,14430,14158,14124,14393,13732,14556,13410,14702,12996,14814,12596,14891,12291,14937,11834,14957,11489,14958,11194,14943,10803,14921,10506,14893,10278,14858,9960,14484,14039,14487,14025,14499,13941,14524,13740,14574,13468,14654,13106,14743,12678,14818,12344,14867,11893,14889,11509,14893,11180,14881,10751,14852,10428,14812,10128,14765,9754,14712,9466,14764,13480,14764,13475,14766,13440,14766,13347,14769,13070,14786,12713,14816,12387,14844,11957,14860,11549,14868,11215,14855,10751,14825,10403,14782,10044,14729,9651,14666,9352,14599,9029,14967,12835,14966,12831,14963,12804,14954,12723,14936,12564,14917,12347,14900,11958,14886,11569,14878,11247,14859,10765,14828,10401,14784,10011,14727,9600,14660,9289,14586,8893,14508,8533,15111,12234,15110,12234,15104,12216,15092,12156,15067,12010,15028,11776,14981,11500,14942,11205,14902,10752,14861,10393,14812,9991,14752,9570,14682,9252,14603,8808,14519,8445,14431,8145,15209,11449,15208,11451,15202,11451,15190,11438,15163,11384,15117,11274,15055,10979,14994,10648,14932,10343,14871,9936,14803,9532,14729,9218,14645,8742,14556,8381,14461,8020,14365,7603,15273,10603,15272,10607,15267,10619,15256,10631,15231,10614,15182,10535,15118,10389,15042,10167,14963,9787,14883,9447,14800,9115,14710,8665,14615,8318,14514,7911,14411,7507,14279,7198,15314,9675,15313,9683,15309,9712,15298,9759,15277,9797,15229,9773,15166,9668,15084,9487,14995,9274,14898,8910,14800,8539,14697,8234,14590,7790,14479,7409,14367,7067,14178,6621,15337,8619,15337,8631,15333,8677,15325,8769,15305,8871,15264,8940,15202,8909,15119,8775,15022,8565,14916,8328,14804,8009,14688,7614,14569,7287,14448,6888,14321,6483,14088,6171,15350,7402,15350,7419,15347,7480,15340,7613,15322,7804,15287,7973,15229,8057,15148,8012,15046,7846,14933,7611,14810,7357,14682,7069,14552,6656,14421,6316,14251,5948,14007,5528,15356,5942,15356,5977,15353,6119,15348,6294,15332,6551,15302,6824,15249,7044,15171,7122,15070,7050,14949,6861,14818,6611,14679,6349,14538,6067,14398,5651,14189,5311,13935,4958,15359,4123,15359,4153,15356,4296,15353,4646,15338,5160,15311,5508,15263,5829,15188,6042,15088,6094,14966,6001,14826,5796,14678,5543,14527,5287,14377,4985,14133,4586,13869,4257,15360,1563,15360,1642,15358,2076,15354,2636,15341,3350,15317,4019,15273,4429,15203,4732,15105,4911,14981,4932,14836,4818,14679,4621,14517,4386,14359,4156,14083,3795,13808,3437,15360,122,15360,137,15358,285,15355,636,15344,1274,15322,2177,15281,2765,15215,3223,15120,3451,14995,3569,14846,3567,14681,3466,14511,3305,14344,3121,14037,2800,13753,2467,15360,0,15360,1,15359,21,15355,89,15346,253,15325,479,15287,796,15225,1148,15133,1492,15008,1749,14856,1882,14685,1886,14506,1783,14324,1608,13996,1398,13702,1183]),Nm=null;function Pm(){return Nm===null&&(Nm=new _l(Mm,16,16,oa,qi),Nm.name=`DFG_LUT`,Nm.minFilter=Li,Nm.magFilter=Li,Nm.wrapS=Mi,Nm.wrapT=Mi,Nm.generateMipmaps=!1,Nm.needsUpdate=!0),Nm}var Fm=class{constructor(e={}){let{canvas:t=uo(),context:n=null,depth:r=!0,stencil:i=!1,alpha:a=!1,antialias:o=!1,premultipliedAlpha:s=!0,preserveDrawingBuffer:c=!1,powerPreference:l=`default`,failIfMajorPerformanceCaveat:u=!1,reversedDepthBuffer:d=!1,outputBufferType:f=Bi}=e;this.isWebGLRenderer=!0;let p;if(n!==null){if(typeof WebGLRenderingContext<`u`&&n instanceof WebGLRenderingContext)throw Error(`THREE.WebGLRenderer: WebGL 1 is not supported since r163.`);p=n.getContextAttributes().alpha}else p=a;let m=f,h=new Set([ca,sa,aa]),g=new Set([Bi,Gi,Ui,Xi,Ji,Yi]),_=new Uint32Array(4),v=new Int32Array(4),y={textures:[],min:[],max:[],resolution:[]},b=null,x=null,S=[],C=[],w=null;this.domElement=t,this.debug={checkShaderErrors:!0,diagnostics:{keywords:!1},onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.toneMapping=0,this.toneMappingExposure=1,this.transmissionResolutionScale=1;let T=this,E=!1,D=null,O=null,k=null,A=null;this._outputColorSpace=$a;let j=0,M=0,N=null,ee=-1,te=null,P=new ls,ne=new ls,re=null,ie=new q(0),ae=0,oe=t.width,se=t.height,ce=1,le=null,ue=null,de=new ls(0,0,oe,se),fe=new ls(0,0,oe,se),pe=!1,me=new Al,he=new Ml,ge=!1,_e=!1,ve=new ms,ye=new W,be=new ls,xe={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0},Se=!1;function Ce(){return N===null?ce:1}let F=n;function we(e,n){return t.getContext(e,n)}let Te,Ee,I,De,L,R,Oe,ke,Ae,je,z,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be,Ve,He,Ue;try{let e={alpha:!0,depth:r,stencil:i,antialias:o,premultipliedAlpha:s,preserveDrawingBuffer:c,powerPreference:l,failIfMajorPerformanceCaveat:u};if(`setAttribute`in t&&t.setAttribute(`data-engine`,`three.js r187`),t.addEventListener(`webglcontextlost`,Ke,!1),t.addEventListener(`webglcontextrestored`,qe,!1),t.addEventListener(`webglcontextcreationerror`,Je,!1),F===null){let t=`webgl2`;if(F=we(t,e),F===null)throw we(t)?Error(`THREE.WebGLRenderer: Error creating WebGL context with your selected attributes.`):Error(`THREE.WebGLRenderer: Error creating WebGL context.`)}We()}catch(e){throw t.removeEventListener(`webglcontextlost`,Ke,!1),t.removeEventListener(`webglcontextrestored`,qe,!1),t.removeEventListener(`webglcontextcreationerror`,Je,!1),V(`WebGLRenderer: `+e.message),e}function We(){Te=new ef(F),Te.init(),Ve=new Cm(F,Te),Ee=new Pd(F,Te,e,Ve),I=new xm(F,Te),Ee.reversedDepthBuffer&&d&&I.buffers.depth.setReversed(!0),O=F.createFramebuffer(),k=F.createFramebuffer(),A=F.createFramebuffer(),De=new rf(F),L=new tm,R=new Sm(F,Te,I,L,Ee,Ve,De),Oe=new $d(T),ke=new Ed(F),He=new Md(F,ke),Ae=new tf(F,ke,De,He),je=new of(F,Ae,ke,He,De),Re=new af(F,Ee,R),Fe=new Fd(L),z=new em(T,Oe,Te,Ee,He,Fe),Me=new Am(T,L),Ne=new am,Pe=new fm(Te),Le=new jd(T,Oe,I,je,p,s),Ie=new bm(T,je,Ee),Ue=new jm(F,De,Ee,I),ze=new Nd(F,Te,De),Be=new nf(F,Te,De),De.programs=z.programs,T.capabilities=Ee,T.extensions=Te,T.properties=L,T.renderLists=Ne,T.shadowMap=Ie,T.state=I,T.info=De}m!==1009&&(w=new cf(m,t.width,t.height,o,r,i));let Ge=new Dm(T,F);this.xr=Ge,this.getContext=function(){return F},this.getContextAttributes=function(){return F.getContextAttributes()},this.forceContextLoss=function(){let e=Te.get(`WEBGL_lose_context`);e&&e.loseContext()},this.forceContextRestore=function(){let e=Te.get(`WEBGL_lose_context`);e&&e.restoreContext()},this.getPixelRatio=function(){return ce},this.setPixelRatio=function(e){e!==void 0&&(ce=e,this.setSize(oe,se,!1))},this.getSize=function(e){return e.set(oe,se)},this.setSize=function(e,n,r=!0){Ge.isPresenting?B(`WebGLRenderer: Can't change size while VR device is presenting.`):(oe=e,se=n,t.width=Math.floor(e*ce),t.height=Math.floor(n*ce),r===!0&&(t.style.width=e+`px`,t.style.height=n+`px`),w!==null&&w.setSize(t.width,t.height),this.setViewport(0,0,e,n))},this.getDrawingBufferSize=function(e){return e.set(oe*ce,se*ce).floor()},this.setDrawingBufferSize=function(e,n,r){oe=e,se=n,ce=r,t.width=Math.floor(e*r),t.height=Math.floor(n*r),this.setViewport(0,0,e,n)},this.setEffects=function(e){if(m===1009)V(`WebGLRenderer: setEffects() requires outputBufferType set to HalfFloatType or FloatType.`);else{if(e){for(let t=0;t<e.length;t++)if(e[t].isOutputPass===!0){B(`WebGLRenderer: OutputPass is not needed in setEffects(). Tone mapping and color space conversion are applied automatically.`);break}}w.setEffects(e||[])}},this.getCurrentViewport=function(e){return e.copy(P)},this.getViewport=function(e){return e.copy(de)},this.setViewport=function(e,t,n,r){e.isVector4?de.set(e.x,e.y,e.z,e.w):de.set(e,t,n,r),I.viewport(P.copy(de).multiplyScalar(Ce()).round())},this.getScissor=function(e){return e.copy(fe)},this.setScissor=function(e,t,n,r){e.isVector4?fe.set(e.x,e.y,e.z,e.w):fe.set(e,t,n,r),I.scissor(ne.copy(fe).multiplyScalar(Ce()).round())},this.getScissorTest=function(){return pe},this.setScissorTest=function(e){I.setScissorTest(pe=e)},this.setOpaqueSort=function(e){le=e},this.setTransparentSort=function(e){ue=e},this.getClearColor=function(e){return e.copy(Le.getClearColor())},this.setClearColor=function(){Le.setClearColor(...arguments)},this.getClearAlpha=function(){return Le.getClearAlpha()},this.setClearAlpha=function(){Le.setClearAlpha(...arguments)},this.clear=function(e=!0,t=!0,n=!0){let r=0;if(e){let e=!1;if(N!==null){let t=N.texture.format;e=h.has(t)}if(e){let e=N.texture.type,t=g.has(e),n=Le.getClearColor(),r=Le.getClearAlpha(),i=n.r,a=n.g,o=n.b;t?(_[0]=i,_[1]=a,_[2]=o,_[3]=r,F.clearBufferuiv(F.COLOR,0,_)):(v[0]=i,v[1]=a,v[2]=o,v[3]=r,F.clearBufferiv(F.COLOR,0,v))}else r|=F.COLOR_BUFFER_BIT}t&&(r|=F.DEPTH_BUFFER_BIT,this.state.buffers.depth.setMask(!0)),n&&(r|=F.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),r!==0&&F.clear(r)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.setNodesHandler=function(e){e.setRenderer(this),D=e},this.dispose=function(){t.removeEventListener(`webglcontextlost`,Ke,!1),t.removeEventListener(`webglcontextrestored`,qe,!1),t.removeEventListener(`webglcontextcreationerror`,Je,!1),Le.dispose(),Ne.dispose(),Pe.dispose(),R.dispose(),L.dispose(),Oe.dispose(),je.dispose(),Ae.dispose(),He.dispose(),Ue.dispose(),z.dispose(),Ge.dispose(),Ge.removeEventListener(`sessionstart`,tt),Ge.removeEventListener(`sessionend`,nt),rt.stop()};function Ke(e){e.preventDefault(),po(`WebGLRenderer: Context Lost.`),E=!0}function qe(){po(`WebGLRenderer: Context Restored.`),E=!1;let e=De.autoReset,t=Ie.enabled,n=Ie.autoUpdate,r=Ie.needsUpdate,i=Ie.type;We(),De.autoReset=e,Ie.enabled=t,Ie.autoUpdate=n,Ie.needsUpdate=r,Ie.type=i}function Je(e){V(`WebGLRenderer: A WebGL context could not be created. Reason: `,e.statusMessage)}function Ye(e){let t=e.target;t.removeEventListener(`dispose`,Ye),Xe(t)}function Xe(e){Ze(e),L.remove(e)}function Ze(e){let t=L.get(e).programs;t!==void 0&&(t.forEach(function(e){z.releaseProgram(e)}),e.isShaderMaterial&&z.releaseShaderCache(e))}this.renderBufferDirect=function(e,t,n,r,i,a){t===null&&(t=xe);let o=i.isMesh&&i.matrixWorld.determinantAffine()<0,s=mt(e,t,n,r,i);I.setMaterial(r,o);let c=n.index,l=1;if(r.wireframe===!0){if(c=Ae.getWireframeAttribute(n),c===void 0)return;l=2}let u=n.drawRange,d=n.attributes.position,f=u.start*l,p=(u.start+u.count)*l;a!==null&&(f=Math.max(f,a.start*l),p=Math.min(p,(a.start+a.count)*l)),c===null?d!=null&&(f=Math.max(f,0),p=Math.min(p,d.count)):(f=Math.max(f,0),p=Math.min(p,c.count));let m=p-f;if(m<0||m===1/0)return;He.setup(i,r,s,n,c);let h,g=ze;if(c!==null&&(h=ke.get(c),g=Be,g.setIndex(h)),i.isMesh)r.wireframe===!0?(I.setLineWidth(r.wireframeLinewidth*Ce()),g.setMode(F.LINES)):g.setMode(F.TRIANGLES);else if(i.isLine){let e=r.linewidth;e===void 0&&(e=1),I.setLineWidth(e*Ce()),i.isLineSegments?g.setMode(F.LINES):i.isLineLoop?g.setMode(F.LINE_LOOP):g.setMode(F.LINE_STRIP)}else i.isPoints?g.setMode(F.POINTS):i.isSprite&&g.setMode(F.TRIANGLES);if(i.isBatchedMesh){if(Te.get(`WEBGL_multi_draw`))g.renderMultiDraw(i._multiDrawStarts,i._multiDrawCounts,i._multiDrawCount);else{let e=i._multiDrawStarts,t=i._multiDrawCounts,n=i._multiDrawCount,a=c?ke.get(c).bytesPerElement:1,o=L.get(r).currentProgram.getUniforms();for(let r=0;r<n;r++)o.setValue(F,`_gl_DrawID`,r),g.render(e[r]/a,t[r])}}else if(i.isInstancedMesh)g.renderInstances(f,m,i.count);else if(n.isInstancedBufferGeometry){let e=n._maxInstanceCount===void 0?1/0:n._maxInstanceCount,t=Math.min(n.instanceCount,e);g.renderInstances(f,m,t)}else g.render(f,m)};function Qe(e,t,n,r){D!==null&&e.isNodeMaterial&&D.setObject(r,e),ge===!0&&Fe.setState(e,n,!1),e.transparent===!0&&e.side===2&&e.forceSinglePass===!1?(e.side=1,e.needsUpdate=!0,ut(e,t,r),e.side=0,e.needsUpdate=!0,ut(e,t,r),e.side=2):ut(e,t,r)}this.compile=function(e,t,n=null){n===null&&(n=e),D!==null&&D.renderStart(e,t,n),x=Pe.get(n),x.init(t),C.push(x),n.traverseVisible(function(e){e.isLight&&e.layers.test(t.layers)&&(x.pushLight(e),e.castShadow&&x.pushShadow(e))}),e!==n&&e.traverseVisible(function(e){e.isLight&&e.layers.test(t.layers)&&(x.pushLight(e),e.castShadow&&x.pushShadow(e))}),x.setupLights(),D!==null&&D.updateLights(x.state.lightsArray),_e=this.localClippingEnabled,ge=Fe.init(this.clippingPlanes,_e),ge===!0&&Fe.setGlobalState(this.clippingPlanes,t),D!==null&&Ie.render(x.state.shadowsArray,n,t);let r=new Set;return e.traverse(function(e){if(!(e.isMesh||e.isPoints||e.isLine||e.isSprite))return;let i=e.material;if(i){if(Array.isArray(i))for(let a=0;a<i.length;a++){let o=i[a];Qe(o,n,t,e),r.add(o)}else Qe(i,n,t,e),r.add(i)}}),x=C.pop(),D!==null&&D.renderEnd(),r},this.compileAsync=function(e,t,n=null){let r=this.compile(e,t,n);return new Promise(t=>{function n(){r.forEach(function(e){let t=L.get(e).currentProgram;(t===void 0||t.isReady())&&r.delete(e)}),r.size===0?t(e):setTimeout(n,10)}Te.get(`KHR_parallel_shader_compile`)===null?setTimeout(n,10):n()})};let $e=null;function et(e){$e&&$e(e)}function tt(){rt.stop()}function nt(){rt.start()}let rt=new Td;rt.setAnimationLoop(et),typeof self<`u`&&rt.setContext(self),this.setAnimationLoop=function(e){$e=e,Ge.setAnimationLoop(e),e===null?rt.stop():rt.start()},Ge.addEventListener(`sessionstart`,tt),Ge.addEventListener(`sessionend`,nt),this.render=function(e,t){if(t!==void 0&&t.isCamera!==!0){V(`WebGLRenderer.render: camera is not an instance of THREE.Camera.`);return}if(E===!0)return;D!==null&&D.renderStart(e,t);let n=Ge.enabled===!0&&Ge.isPresenting===!0,r=w!==null&&(N===null||n)&&w.begin(T,N);if(e.matrixWorldAutoUpdate===!0&&e.updateMatrixWorld(),t.parent===null&&t.matrixWorldAutoUpdate===!0&&t.updateMatrixWorld(),Ge.enabled===!0&&Ge.isPresenting===!0&&(w===null||w.isCompositing()===!1)&&(Ge.cameraAutoUpdate===!0&&Ge.updateCamera(t),t=Ge.getCamera()),e.isScene===!0&&e.onBeforeRender(T,e,t,N),x=Pe.get(e,C.length),x.init(t),x.state.textureUnits=R.getTextureUnits(),C.push(x),ve.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),t.isArrayCamera?he.setFromArrayCamera(t):me.setFromProjectionMatrix(ve,oo,t.reversedDepth),_e=this.localClippingEnabled,ge=Fe.init(this.clippingPlanes,_e),b=Ne.get(e,S.length),b.init(),S.push(b),this.info.render.frame++,Ge.enabled===!0&&Ge.isPresenting===!0){let e=T.xr.getDepthSensingMesh();e!==null&&it(e,t,-1/0,T.sortObjects)}it(e,t,0,T.sortObjects),b.finish(),D!==null&&D.updateLights(x.state.lightsArray),T.sortObjects===!0&&b.sort(le,ue),Se=Ge.enabled===!1||Ge.isPresenting===!1||Ge.hasDepthSensing()===!1,Se&&Le.addToRenderList(b,e),this.info.autoReset===!0&&this.info.reset(),ge===!0&&Fe.beginShadows();let i=x.state.shadowsArray;if(Ie.render(i,e,t),ge===!0&&Fe.endShadows(),(r&&w.hasRenderPass())===!1){let n=b.opaque,r=b.transmissive;if(x.setupLights(),t.isArrayCamera){let i=t.cameras;if(r.length>0)for(let t=0,a=i.length;t<a;t++){let a=i[t];ot(n,r,e,a)}Se&&Le.render(e);for(let t=0,n=i.length;t<n;t++){let n=i[t];at(b,e,n,n.viewport)}}else r.length>0&&ot(n,r,e,t),Se&&Le.render(e),at(b,e,t)}N!==null&&M===0&&(R.updateMultisampleRenderTarget(N),R.updateRenderTargetMipmap(N)),r&&w.end(T),e.isScene===!0&&e.onAfterRender(T,e,t),He.resetDefaultState(),ee=-1,te=null,C.pop(),C.length>0?(x=C[C.length-1],R.setTextureUnits(x.state.textureUnits),ge===!0&&Fe.setGlobalState(T.clippingPlanes,x.state.camera)):x=null,S.pop(),b=S.length>0?S[S.length-1]:null,D!==null&&D.renderEnd()};function it(e,t,n,r){if(e.visible===!1)return;if(e.layers.test(t.layers)){if(e.isGroup)n=e.renderOrder;else if(e.isLOD)e.autoUpdate===!0&&e.update(t);else if(e.isLight)x.pushLight(e),e.castShadow&&x.pushShadow(e);else if(e.isSprite){let i=t.isArrayCamera?he:me;if(!e.frustumCulled||e.intersectsFrustum(i)){r&&be.setFromMatrixPosition(e.matrixWorld).applyMatrix4(ve);let i=je.update(e),a=e.material;a.visible&&b.push(e,i,a,n,be.z,null,t)}}else if(e.isMesh||e.isLine||e.isPoints){let i=t.isArrayCamera?he:me;if(!e.frustumCulled||e.intersectsFrustum(i)){let i=je.update(e),a=e.material;if(r&&(e.boundingSphere===void 0?(i.boundingSphere===null&&i.computeBoundingSphere(),be.copy(i.boundingSphere.center)):(e.boundingSphere===null&&e.computeBoundingSphere(),be.copy(e.boundingSphere.center)),be.applyMatrix4(e.matrixWorld).applyMatrix4(ve)),Array.isArray(a)){let r=i.groups;for(let o=0,s=r.length;o<s;o++){let s=r[o],c=a[s.materialIndex];c&&c.visible&&b.push(e,i,c,n,be.z,s,t)}}else a.visible&&b.push(e,i,a,n,be.z,null,t)}}}let i=e.children;for(let e=0,a=i.length;e<a;e++)it(i[e],t,n,r)}function at(e,t,n,r){let{opaque:i,transmissive:a,transparent:o}=e;x.setupLightsView(n),ge===!0&&Fe.setGlobalState(T.clippingPlanes,n),r&&I.viewport(P.copy(r)),i.length>0&&st(i,t,n),a.length>0&&st(a,t,n),o.length>0&&st(o,t,n),I.buffers.depth.setTest(!0),I.buffers.depth.setMask(!0),I.buffers.color.setMask(!0),I.setPolygonOffset(!1)}function ot(e,t,n,r){if((n.isScene===!0?n.overrideMaterial:null)!==null)return;if(x.state.transmissionRenderTarget[r.id]===void 0){let e=Te.has(`EXT_color_buffer_half_float`)||Te.has(`EXT_color_buffer_float`);x.state.transmissionRenderTarget[r.id]=new ds(1,1,{generateMipmaps:!0,type:e?qi:Bi,minFilter:zi,samples:Math.max(4,Ee.samples),stencilBuffer:i,resolveDepthBuffer:!1,resolveStencilBuffer:!1,storeMultisampledDepthBuffer:!1,storeMultisampledStencilBuffer:!1,colorSpace:K.workingColorSpace})}let a=x.state.transmissionRenderTarget[r.id],o=r.viewport||P;a.setSize(o.z*T.transmissionResolutionScale,o.w*T.transmissionResolutionScale);let s=T.getRenderTarget(),c=T.getActiveCubeFace(),l=T.getActiveMipmapLevel();T.setRenderTarget(a),T.getClearColor(ie),ae=T.getClearAlpha(),ae<1&&T.setClearColor(16777215,.5),T.clear(),Se&&Le.render(n);let u=T.toneMapping;T.toneMapping=0;let d=r.viewport;if(r.viewport!==void 0&&(r.viewport=void 0),x.setupLightsView(r),ge===!0&&Fe.setGlobalState(T.clippingPlanes,r),st(e,n,r),R.updateMultisampleRenderTarget(a),R.updateRenderTargetMipmap(a),Te.has(`WEBGL_multisampled_render_to_texture`)===!1){let e=!1;for(let i=0,a=t.length;i<a;i++){let{object:a,geometry:o,material:s,group:c}=t[i];if(s.side===2&&a.layers.test(r.layers)){let t=s.side;s.side=1,s.needsUpdate=!0,ct(a,n,r,o,s,c),s.side=t,s.needsUpdate=!0,e=!0}}e===!0&&(R.updateMultisampleRenderTarget(a),R.updateRenderTargetMipmap(a))}T.setRenderTarget(s,c,l),T.setClearColor(ie,ae),d!==void 0&&(r.viewport=d),T.toneMapping=u}function st(e,t,n){let r=t.isScene===!0?t.overrideMaterial:null;for(let i=0,a=e.length;i<a;i++){let a=e[i],{object:o,geometry:s,group:c}=a,l=a.material;l.allowOverride===!0&&r!==null&&(l=r),o.layers.test(n.layers)&&ct(o,t,n,s,l,c)}}function ct(e,t,n,r,i,a){D!==null&&i.isNodeMaterial&&D.setObject(e,i),e.onBeforeRender(T,t,n,r,i,a),e.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,e.matrixWorld),e.normalMatrix.getNormalMatrix(e.modelViewMatrix),i.onBeforeRender(T,t,n,r,e,a),i.transparent===!0&&i.side===2&&i.forceSinglePass===!1?(i.side=1,i.needsUpdate=!0,T.renderBufferDirect(n,t,r,i,e,a),i.side=0,i.needsUpdate=!0,T.renderBufferDirect(n,t,r,i,e,a),i.side=2):T.renderBufferDirect(n,t,r,i,e,a),e.onAfterRender(T,t,n,r,i,a)}function lt(e){let t=0;for(let n of e)n.texture!==null&&t++;return t}function ut(e,t,n){t.isScene!==!0&&(t=xe);let r=L.get(e),i=x.state.lights,a=x.state.shadowsArray,o=i.state.version,s=z.getParameters(e,i.state,a,t,n,x.state.lightProbeGridArray),c=z.getProgramCacheKey(s),l=r.programs;r.environment=e.isMeshStandardMaterial||e.isMeshLambertMaterial||e.isMeshPhongMaterial?t.environment:null,r.fog=t.fog;let u=e.isMeshStandardMaterial||e.isMeshLambertMaterial&&!e.envMap||e.isMeshPhongMaterial&&!e.envMap;r.envMap=Oe.get(e.envMap||r.environment,u),r.envMapRotation=r.environment!==null&&e.envMap===null?t.environmentRotation:e.envMapRotation,l===void 0&&(e.addEventListener(`dispose`,Ye),l=new Map,r.programs=l,r.programVariants=new Map);let d=l.get(c);if(d!==void 0){if(r.currentProgram===d&&r.lightsStateVersion===o)return pt(e,s),d}else s.uniforms=z.getUniforms(e),D!==null&&e.isNodeMaterial&&D.build(e,n,s),e.onBeforeCompile(s,T),d=z.acquireProgram(s,c),l.set(c,d),r.uniforms=s.uniforms;let f=r.uniforms;return(!e.isShaderMaterial&&!e.isRawShaderMaterial||e.clipping===!0)&&(f.clippingPlanes=Fe.uniform),pt(e,s),r.needsLights=gt(e),r.lightsStateVersion=o,r.needsLights&&(f.ambientLightColor.value=i.state.ambient,f.lightProbe.value=i.state.probe,f.sunLights.value=i.state.sun,f.sunLightShadows.value=i.state.sunShadow,f.directionalLights.value=i.state.directional,f.directionalLightShadows.value=i.state.directionalShadow,f.spotLights.value=i.state.spot,f.spotLightShadows.value=i.state.spotShadow,f.rectAreaLights.value=i.state.rectArea,f.ltc_1.value=i.state.rectAreaLTC1,f.ltc_2.value=i.state.rectAreaLTC2,f.pointLights.value=i.state.point,f.pointLightShadows.value=i.state.pointShadow,f.hemisphereLights.value=i.state.hemi,f.sunShadowMatrix.value=i.state.sunShadowMatrix,f.sunShadowCascade.value=i.state.sunShadowCascade,f.directionalShadowMatrix.value=i.state.directionalShadowMatrix,f.spotLightMatrix.value=i.state.spotLightMatrix,f.spotLightMap.value=i.state.spotLightMap,f.pointShadowMatrix.value=i.state.pointShadowMatrix),r.numLightProbeGrids=lt(x.state.lightProbeGridArray),r.currentProgram=d,r.uniformsList=null,d}function dt(e,t,n,r,i){let a=L.get(e),o=a.currentProgram.id+`,`+r+`,`+i,s=a.programVariants.get(o);return s===void 0?(s=ut(e,t,n),a.programVariants.set(o,s)):(a.currentProgram=s,a.uniformsList=null,a.outputColorSpace=r,a.toneMapping=i),s}function ft(e){if(e.uniformsList===null){let t=e.currentProgram.getUniforms();e.uniformsList=_p.seqWithValue(t.seq,e.uniforms)}return e.uniformsList}function pt(e,t){let n=L.get(e);n.outputColorSpace=t.outputColorSpace,n.batching=t.batching,n.batchingColor=t.batchingColor,n.instancing=t.instancing,n.instancingColor=t.instancingColor,n.instancingMorph=t.instancingMorph,n.skinning=t.skinning,n.morphTargets=t.morphTargets,n.morphNormals=t.morphNormals,n.morphColors=t.morphColors,n.morphTargetsCount=t.morphTargetsCount,n.numClippingPlanes=t.numClippingPlanes,n.numIntersection=t.numClipIntersection,n.vertexAlphas=t.vertexAlphas,n.vertexTangents=t.vertexTangents,n.toneMapping=t.toneMapping}function mt(e,t,n,r,i){t.isScene!==!0&&(t=xe),R.resetTextureUnits();let a=t.fog,o=r.isMeshStandardMaterial||r.isMeshLambertMaterial||r.isMeshPhongMaterial?t.environment:null,s=N===null?T.outputColorSpace:N.isXRRenderTarget===!0?N.texture.colorSpace:K.workingColorSpace,c=r.isMeshStandardMaterial||r.isMeshLambertMaterial&&!r.envMap||r.isMeshPhongMaterial&&!r.envMap,l=Oe.get(r.envMap||o,c),u=r.vertexColors===!0&&!!n.attributes.color&&n.attributes.color.itemSize===4,d=!!n.attributes.tangent&&(!!r.normalMap||r.anisotropy>0),f=!!n.morphAttributes.position,p=!!n.morphAttributes.normal,m=!!n.morphAttributes.color,h=0;r.toneMapped&&(N===null||N.isXRRenderTarget===!0)&&(h=T.toneMapping);let g=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,_=g===void 0?0:g.length,v=L.get(r),b=x.state.lights;if(ge===!0&&(_e===!0||e!==te)){let t=e===te&&r.id===ee;Fe.setState(r,e,t)}let S=!1,C=!1;r.version===v.__version?v.needsLights&&v.lightsStateVersion!==b.state.version||i.isBatchedMesh&&v.batching===!1||!i.isBatchedMesh&&v.batching===!0||i.isBatchedMesh&&v.batchingColor===!0&&i._colorsTexture===null||i.isBatchedMesh&&v.batchingColor===!1&&i._colorsTexture!==null||i.isInstancedMesh&&v.instancing===!1||!i.isInstancedMesh&&v.instancing===!0||i.isSkinnedMesh&&v.skinning===!1||!i.isSkinnedMesh&&v.skinning===!0||i.isInstancedMesh&&v.instancingColor===!0&&i.instanceColor===null||i.isInstancedMesh&&v.instancingColor===!1&&i.instanceColor!==null||i.isInstancedMesh&&v.instancingMorph===!0&&i.morphTexture===null||i.isInstancedMesh&&v.instancingMorph===!1&&i.morphTexture!==null?S=!0:v.envMap===l?r.fog===!0&&v.fog!==a||v.numClippingPlanes!==void 0&&(v.numClippingPlanes!==Fe.numPlanes||v.numIntersection!==Fe.numIntersection)?S=!0:v.vertexAlphas===u&&v.vertexTangents===d&&v.morphTargets===f&&v.morphNormals===p&&v.morphColors===m&&v.morphTargetsCount===_&&v.numLightProbeGrids===lt(x.state.lightProbeGridArray)?(v.outputColorSpace!==s||v.toneMapping!==h)&&(C=!0):S=!0:S=!0:(S=!0,v.__version=r.version);let w=v.currentProgram;(S===!0||C===!0)&&(w=C===!0?dt(r,t,i,s,h):ut(r,t,i),D&&r.isNodeMaterial&&D.onUpdateProgram(r,w,v));let E=!1,O=!1,k=!1,A=w.getUniforms(),j=v.uniforms;if(I.useProgram(w.program)&&(E=!0,O=!0,k=!0),r.id!==ee&&(ee=r.id,O=!0),E||te!==e){I.buffers.depth.getReversed()&&e.reversedDepth!==!0&&(e._reversedDepth=!0,e.updateProjectionMatrix()),A.setValue(F,`projectionMatrix`,e.projectionMatrix),A.setValue(F,`viewMatrix`,e.matrixWorldInverse);let t=A.map.cameraPosition;t!==void 0&&t.setValue(F,ye.setFromMatrixPosition(e.matrixWorld)),Ee.logarithmicDepthBuffer&&A.setValue(F,`logDepthBufFC`,2/(Math.log(e.far+1)/Math.LN2)),(r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshLambertMaterial||r.isMeshBasicMaterial||r.isMeshStandardMaterial||r.isShaderMaterial)&&A.setValue(F,`isOrthographic`,e.isOrthographicCamera===!0),te!==e&&(te=e,O=!0,k=!0)}if(v.needsLights&&(b.state.sunShadowMap.length>0&&A.setValue(F,`sunShadowMap`,b.state.sunShadowMap,R),b.state.directionalShadowMap.length>0&&A.setValue(F,`directionalShadowMap`,b.state.directionalShadowMap,R),b.state.spotShadowMap.length>0&&A.setValue(F,`spotShadowMap`,b.state.spotShadowMap,R),b.state.pointShadowMap.length>0&&A.setValue(F,`pointShadowMap`,b.state.pointShadowMap,R)),i.isSkinnedMesh){A.setOptional(F,i,`bindMatrix`),A.setOptional(F,i,`bindMatrixInverse`);let e=i.skeleton;e&&(e.boneTexture===null&&e.computeBoneTexture(),A.setValue(F,`boneTexture`,e.boneTexture,R))}i.isBatchedMesh&&(A.setOptional(F,i,`batchingTexture`),A.setValue(F,`batchingTexture`,i._matricesTexture,R),A.setOptional(F,i,`batchingIdTexture`),A.setValue(F,`batchingIdTexture`,i._indirectTexture,R),A.setOptional(F,i,`batchingColorTexture`),i._colorsTexture!==null&&A.setValue(F,`batchingColorTexture`,i._colorsTexture,R));let M=n.morphAttributes;if((M.position!==void 0||M.normal!==void 0||M.color!==void 0)&&Re.update(i,n,w),(O||v.receiveShadow!==i.receiveShadow)&&(v.receiveShadow=i.receiveShadow,A.setValue(F,`receiveShadow`,i.receiveShadow)),(r.isMeshStandardMaterial||r.isMeshLambertMaterial||r.isMeshPhongMaterial)&&r.envMap===null&&t.environment!==null&&(j.envMapIntensity.value=t.environmentIntensity),j.dfgLUT!==void 0&&(j.dfgLUT.value=Pm()),O){if(A.setValue(F,`toneMappingExposure`,T.toneMappingExposure),v.needsLights&&ht(j,k),a&&r.fog===!0&&Me.refreshFogUniforms(j,a),Me.refreshMaterialUniforms(j,r,ce,se,x.state.transmissionRenderTarget[e.id]),v.needsLights&&v.numLightProbeGrids>0){let e=y,t=0;for(let n of x.state.lightProbeGridArray)n.texture!==null&&(e.textures[t]=n.texture,e.min[t]=n.boundingBox.min,e.max[t]=n.boundingBox.max,e.resolution[t]=n.resolution,t++);for(let n in e)e[n].length=t;j.probesSH.value=e.textures,j.probesMin.value=e.min,j.probesMax.value=e.max,j.probesResolution.value=e.resolution}_p.upload(F,ft(v),j,R)}if(r.isShaderMaterial&&r.uniformsNeedUpdate===!0&&(_p.upload(F,ft(v),j,R),r.uniformsNeedUpdate=!1),r.isSpriteMaterial&&A.setValue(F,`center`,i.center),A.setValue(F,`modelViewMatrix`,i.modelViewMatrix),A.setValue(F,`normalMatrix`,i.normalMatrix),A.setValue(F,`modelMatrix`,i.matrixWorld),r.uniformsGroups!==void 0){let e=r.uniformsGroups;for(let t=0,n=e.length;t<n;t++){let n=e[t];Ue.update(n,w),Ue.bind(n,w)}}return w}function ht(e,t){e.ambientLightColor.needsUpdate=t,e.lightProbe.needsUpdate=t,e.sunLights.needsUpdate=t,e.sunLightShadows.needsUpdate=t,e.directionalLights.needsUpdate=t,e.directionalLightShadows.needsUpdate=t,e.pointLights.needsUpdate=t,e.pointLightShadows.needsUpdate=t,e.spotLights.needsUpdate=t,e.spotLightShadows.needsUpdate=t,e.rectAreaLights.needsUpdate=t,e.hemisphereLights.needsUpdate=t}function gt(e){return e.isMeshLambertMaterial||e.isMeshToonMaterial||e.isMeshPhongMaterial||e.isMeshStandardMaterial||e.isShadowMaterial||e.isShaderMaterial&&e.lights===!0}this.getActiveCubeFace=function(){return j},this.getActiveMipmapLevel=function(){return M},this.getRenderTarget=function(){return N},this.setRenderTargetTextures=function(e,t,n){let r=L.get(e);r.__autoAllocateDepthBuffer=e.resolveDepthBuffer===!1,r.__autoAllocateDepthBuffer===!1&&(r.__useRenderToTexture=!1),L.get(e.texture).__webglTexture=t,L.get(e.depthTexture).__webglTexture=r.__autoAllocateDepthBuffer?void 0:n,r.__hasExternalTextures=!0},this.setRenderTargetFramebuffer=function(e,t){let n=L.get(e);n.__webglFramebuffer=t,n.__useDefaultFramebuffer=t===void 0},this.setRenderTarget=function(e,t=0,n=0){N=e,j=t,M=n;let r=null,i=!1,a=!1;if(e){let o=L.get(e);if(o.__useDefaultFramebuffer!==void 0){I.bindFramebuffer(F.FRAMEBUFFER,o.__webglFramebuffer),P.copy(e.viewport),ne.copy(e.scissor),re=e.scissorTest,I.viewport(P),I.scissor(ne),I.setScissorTest(re),ee=-1;return}if(o.__webglFramebuffer===void 0)R.setupRenderTarget(e);else if(o.__hasExternalTextures)R.rebindTextures(e,L.get(e.texture).__webglTexture,L.get(e.depthTexture).__webglTexture);else if(e.depthBuffer){let t=e.depthTexture;if(o.__boundDepthTexture!==t){if(t!==null&&L.has(t)&&(e.width!==t.image.width||e.height!==t.image.height))throw Error(`THREE.WebGLRenderer: Attached DepthTexture is initialized to the incorrect size.`);R.setupDepthRenderbuffer(e)}}let s=e.texture;(s.isData3DTexture||s.isDataArrayTexture||s.isCompressedArrayTexture)&&(a=!0);let c=L.get(e).__webglFramebuffer;e.isWebGLCubeRenderTarget?(r=Array.isArray(c[t])?c[t][n]:c[t],i=!0):r=e.samples>0&&R.useMultisampledRTT(e)===!1?L.get(e).__webglMultisampledFramebuffer:Array.isArray(c)?c[n]:c,P.copy(e.viewport),ne.copy(e.scissor),re=e.scissorTest}else P.copy(de).multiplyScalar(ce).floor(),ne.copy(fe).multiplyScalar(ce).floor(),re=pe;if(n!==0&&(r=O),I.bindFramebuffer(F.FRAMEBUFFER,r)&&I.drawBuffers(e,r),I.viewport(P),I.scissor(ne),I.setScissorTest(re),i){let r=L.get(e.texture);F.framebufferTexture2D(F.FRAMEBUFFER,F.COLOR_ATTACHMENT0,F.TEXTURE_CUBE_MAP_POSITIVE_X+t,r.__webglTexture,n)}else if(a){let r=t;for(let t=0;t<e.textures.length;t++){let i=L.get(e.textures[t]);F.framebufferTextureLayer(F.FRAMEBUFFER,F.COLOR_ATTACHMENT0+t,i.__webglTexture,n,r)}}else if(e!==null&&n!==0){let t=L.get(e.texture);F.framebufferTexture2D(F.FRAMEBUFFER,F.COLOR_ATTACHMENT0,F.TEXTURE_2D,t.__webglTexture,n)}ee=-1};function _t(e){let t=L.get(e);return(t.__readFormat!==e.format||t.__readType!==e.type)&&(t.__readFormat=e.format,t.__readType=e.type,t.__formatReadable=Ee.textureFormatReadable(e.format),t.__typeReadable=Ee.textureTypeReadable(e.type)),t}this.readRenderTargetPixels=function(e,t,n,r,i,a,o,s=0){if(!(e&&e.isWebGLRenderTarget)){V(`WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.`);return}let c=L.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&o!==void 0&&(c=c[o],Array.isArray(c)&&(c=c[0])),c){I.bindFramebuffer(F.FRAMEBUFFER,c);try{let o=e.textures[s],c=o.format,l=o.type;e.textures.length>1&&F.readBuffer(F.COLOR_ATTACHMENT0+s);let u=_t(o);if(u.__formatReadable===!1){V(`WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.`);return}if(u.__typeReadable===!1){V(`WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.`);return}t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i&&F.readPixels(t,n,r,i,Ve.convert(c),Ve.convert(l),a)}finally{let e=N===null?null:L.get(N).__webglFramebuffer;I.bindFramebuffer(F.FRAMEBUFFER,e)}}},this.readRenderTargetPixelsAsync=async function(e,t,n,r,i,a,o,s=0){if(!(e&&e.isWebGLRenderTarget))throw Error(`THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.`);let c=L.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&o!==void 0&&(c=c[o],Array.isArray(c)&&(c=c[0])),c){if(t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i){I.bindFramebuffer(F.FRAMEBUFFER,c);let o=e.textures[s],l=o.format,u=o.type;e.textures.length>1&&F.readBuffer(F.COLOR_ATTACHMENT0+s);let d=_t(o);if(d.__formatReadable===!1)throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.`);if(d.__typeReadable===!1)throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.`);let f=F.createBuffer();F.bindBuffer(F.PIXEL_PACK_BUFFER,f),F.bufferData(F.PIXEL_PACK_BUFFER,a.byteLength,F.STREAM_READ),F.readPixels(t,n,r,i,Ve.convert(l),Ve.convert(u),0),F.bindBuffer(F.PIXEL_PACK_BUFFER,null);let p=N===null?null:L.get(N).__webglFramebuffer;I.bindFramebuffer(F.FRAMEBUFFER,p);let m=F.fenceSync(F.SYNC_GPU_COMMANDS_COMPLETE,0);return F.flush(),await go(F,m,4),F.bindBuffer(F.PIXEL_PACK_BUFFER,f),F.getBufferSubData(F.PIXEL_PACK_BUFFER,0,a),F.bindBuffer(F.PIXEL_PACK_BUFFER,null),F.deleteBuffer(f),F.deleteSync(m),a}throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.`)}},this.copyFramebufferToTexture=function(e,t=null,n=0){let r=2**-n,i=Math.floor(e.image.width*r),a=Math.floor(e.image.height*r),o=t===null?0:t.x,s=t===null?0:t.y;R.setTexture2D(e,0),F.copyTexSubImage2D(F.TEXTURE_2D,n,0,0,o,s,i,a),I.unbindTexture()},this.copyTextureToTexture=function(e,t,n=null,r=null,i=0,a=0){let o,s,c,l,u,d,f,p,m,h=e.isCompressedTexture?e.mipmaps[a]:e.image;if(n!==null)o=n.max.x-n.min.x,s=n.max.y-n.min.y,c=n.isBox3?n.max.z-n.min.z:1,l=n.min.x,u=n.min.y,d=n.isBox3?n.min.z:0;else{let t=2**-i;o=Math.floor(h.width*t),s=Math.floor(h.height*t),c=e.isDataArrayTexture?h.depth:e.isData3DTexture?Math.floor(h.depth*t):1,l=0,u=0,d=0}r===null?(f=0,p=0,m=0):(f=r.x,p=r.y,m=r.z);let g=Ve.convert(t.format),_=Ve.convert(t.type),v;t.isData3DTexture?(R.setTexture3D(t,0),v=F.TEXTURE_3D):t.isDataArrayTexture||t.isCompressedArrayTexture?(R.setTexture2DArray(t,0),v=F.TEXTURE_2D_ARRAY):(R.setTexture2D(t,0),v=F.TEXTURE_2D),I.activeTexture(F.TEXTURE0),I.pixelStorei(F.UNPACK_FLIP_Y_WEBGL,t.flipY),I.pixelStorei(F.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.premultiplyAlpha),I.pixelStorei(F.UNPACK_ALIGNMENT,t.unpackAlignment);let y=I.getParameter(F.UNPACK_ROW_LENGTH),b=I.getParameter(F.UNPACK_IMAGE_HEIGHT),x=I.getParameter(F.UNPACK_SKIP_PIXELS),S=I.getParameter(F.UNPACK_SKIP_ROWS),C=I.getParameter(F.UNPACK_SKIP_IMAGES);I.pixelStorei(F.UNPACK_ROW_LENGTH,h.width),I.pixelStorei(F.UNPACK_IMAGE_HEIGHT,h.height),I.pixelStorei(F.UNPACK_SKIP_PIXELS,l),I.pixelStorei(F.UNPACK_SKIP_ROWS,u),I.pixelStorei(F.UNPACK_SKIP_IMAGES,d);let w=e.isDataArrayTexture||e.isData3DTexture,T=t.isDataArrayTexture||t.isData3DTexture;if(e.isDepthTexture){let n=L.get(e),r=L.get(t),h=L.get(n.__renderTarget),g=L.get(r.__renderTarget);I.bindFramebuffer(F.READ_FRAMEBUFFER,h.__webglFramebuffer),I.bindFramebuffer(F.DRAW_FRAMEBUFFER,g.__webglFramebuffer);for(let n=0;n<c;n++)w&&(F.framebufferTextureLayer(F.READ_FRAMEBUFFER,F.COLOR_ATTACHMENT0,L.get(e).__webglTexture,i,d+n),F.framebufferTextureLayer(F.DRAW_FRAMEBUFFER,F.COLOR_ATTACHMENT0,L.get(t).__webglTexture,a,m+n)),F.blitFramebuffer(l,u,l+o,u+s,f,p,f+o,p+s,F.DEPTH_BUFFER_BIT,F.NEAREST);I.bindFramebuffer(F.READ_FRAMEBUFFER,null),I.bindFramebuffer(F.DRAW_FRAMEBUFFER,null)}else if(i!==0||e.isRenderTargetTexture||L.has(e)){let n=L.get(e),r=L.get(t);I.bindFramebuffer(F.READ_FRAMEBUFFER,k),I.bindFramebuffer(F.DRAW_FRAMEBUFFER,A);for(let e=0;e<c;e++)w?F.framebufferTextureLayer(F.READ_FRAMEBUFFER,F.COLOR_ATTACHMENT0,n.__webglTexture,i,d+e):F.framebufferTexture2D(F.READ_FRAMEBUFFER,F.COLOR_ATTACHMENT0,F.TEXTURE_2D,n.__webglTexture,i),T?F.framebufferTextureLayer(F.DRAW_FRAMEBUFFER,F.COLOR_ATTACHMENT0,r.__webglTexture,a,m+e):F.framebufferTexture2D(F.DRAW_FRAMEBUFFER,F.COLOR_ATTACHMENT0,F.TEXTURE_2D,r.__webglTexture,a),i===0?T?F.copyTexSubImage3D(v,a,f,p,m+e,l,u,o,s):F.copyTexSubImage2D(v,a,f,p,l,u,o,s):F.blitFramebuffer(l,u,l+o,u+s,f,p,f+o,p+s,F.COLOR_BUFFER_BIT,F.NEAREST);I.bindFramebuffer(F.READ_FRAMEBUFFER,null),I.bindFramebuffer(F.DRAW_FRAMEBUFFER,null)}else T?e.isDataTexture||e.isData3DTexture?F.texSubImage3D(v,a,f,p,m,o,s,c,g,_,h.data):t.isCompressedArrayTexture?F.compressedTexSubImage3D(v,a,f,p,m,o,s,c,g,h.data):F.texSubImage3D(v,a,f,p,m,o,s,c,g,_,h):e.isDataTexture?F.texSubImage2D(F.TEXTURE_2D,a,f,p,o,s,g,_,h.data):e.isCompressedTexture?F.compressedTexSubImage2D(F.TEXTURE_2D,a,f,p,h.width,h.height,g,h.data):F.texSubImage2D(F.TEXTURE_2D,a,f,p,o,s,g,_,h);I.pixelStorei(F.UNPACK_ROW_LENGTH,y),I.pixelStorei(F.UNPACK_IMAGE_HEIGHT,b),I.pixelStorei(F.UNPACK_SKIP_PIXELS,x),I.pixelStorei(F.UNPACK_SKIP_ROWS,S),I.pixelStorei(F.UNPACK_SKIP_IMAGES,C),a===0&&t.generateMipmaps===!0&&t.mipmapsAutoUpdate===!0&&F.generateMipmap(v),I.unbindTexture()},this.initRenderTarget=function(e){L.get(e).__webglFramebuffer===void 0&&R.setupRenderTarget(e)},this.initTexture=function(e){e.isCubeTexture?R.setTextureCube(e,0):e.isData3DTexture?R.setTexture3D(e,0):e.isDataArrayTexture||e.isCompressedArrayTexture?R.setTexture2DArray(e,0):R.setTexture2D(e,0),I.unbindTexture()},this.resetState=function(){j=0,M=0,N=null,I.reset(),He.reset()},typeof __THREE_DEVTOOLS__<`u`&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent(`observe`,{detail:this}))}get coordinateSystem(){return oo}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;let t=this.getContext();t.drawingBufferColorSpace=K._getDrawingBufferColorSpace(e),t.unpackColorSpace=K._getUnpackColorSpace()}},Im={type:`change`},Lm={type:`start`},Rm={type:`end`},zm=new tl,Bm=new Jc,Vm=Math.cos(70*Go.DEG2RAD),Hm=new W,Um=2*Math.PI,X={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},Wm=1e-6,Gm=class extends Sd{constructor(e,t=null){super(e,t),this.state=X.NONE,this.target=new W,this.cursor=new W,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minTargetRadius=0,this.maxTargetRadius=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.keyRotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.zoomToCursor=!1,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:`ArrowLeft`,UP:`ArrowUp`,RIGHT:`ArrowRight`,BOTTOM:`ArrowDown`},this.mouseButtons={LEFT:ki.ROTATE,MIDDLE:ki.DOLLY,RIGHT:ki.PAN},this.touches={ONE:Ai.ROTATE,TWO:Ai.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._cursorStyle=`auto`,this._domElementKeyEvents=null,this._lastPosition=new W,this._lastQuaternion=new Ko,this._lastTargetPosition=new W,this._quat=new Ko().setFromUnitVectors(e.up,new W(0,1,0)),this._quatInverse=this._quat.clone().invert(),this._spherical=new xd,this._sphericalDelta=new xd,this._scale=1,this._panOffset=new W,this._rotateStart=new U,this._rotateEnd=new U,this._rotateDelta=new U,this._panStart=new U,this._panEnd=new U,this._panDelta=new U,this._dollyStart=new U,this._dollyEnd=new U,this._dollyDelta=new U,this._dollyDirection=new W,this._mouse=new U,this._performCursorZoom=!1,this._pointers=[],this._pointerPositions={},this._controlActive=!1,this._onPointerMove=qm.bind(this),this._onPointerDown=Km.bind(this),this._onPointerUp=Jm.bind(this),this._onContextMenu=th.bind(this),this._onMouseWheel=Zm.bind(this),this._onKeyDown=Qm.bind(this),this._onTouchStart=$m.bind(this),this._onTouchMove=eh.bind(this),this._onMouseDown=Ym.bind(this),this._onMouseMove=Xm.bind(this),this._interceptControlDown=nh.bind(this),this._interceptControlUp=rh.bind(this),this.domElement!==null&&this.connect(this.domElement),this.update()}set cursorStyle(e){this._cursorStyle=e,e===`grab`?this.domElement.style.cursor=`grab`:this.domElement.style.cursor=`auto`}get cursorStyle(){return this._cursorStyle}connect(e){super.connect(e),this.domElement.addEventListener(`pointerdown`,this._onPointerDown),this.domElement.addEventListener(`pointercancel`,this._onPointerUp),this.domElement.addEventListener(`contextmenu`,this._onContextMenu),this.domElement.addEventListener(`wheel`,this._onMouseWheel,{passive:!1}),this.domElement.ownerDocument.addEventListener(`keydown`,this._interceptControlDown,{passive:!0,capture:!0}),this.domElement.style.touchAction=`none`}disconnect(){this.state=X.NONE,this.domElement.removeEventListener(`pointerdown`,this._onPointerDown),this.domElement.ownerDocument.removeEventListener(`pointermove`,this._onPointerMove),this.domElement.ownerDocument.removeEventListener(`pointerup`,this._onPointerUp),this.domElement.removeEventListener(`pointercancel`,this._onPointerUp),this.domElement.removeEventListener(`wheel`,this._onMouseWheel),this.domElement.removeEventListener(`contextmenu`,this._onContextMenu),this.stopListenToKeyEvents(),this.domElement.ownerDocument.removeEventListener(`keydown`,this._interceptControlDown,{capture:!0}),this.domElement.ownerDocument.removeEventListener(`keyup`,this._interceptControlUp,{capture:!0}),this._controlActive=!1,this._pointers.length=0,this._pointerPositions={},this.domElement.style.touchAction=``,this.domElement.style.cursor=`auto`}dispose(){this.disconnect()}getPolarAngle(){return this._spherical.phi}getAzimuthalAngle(){return this._spherical.theta}getDistance(){return this.object.position.distanceTo(this.target)}listenToKeyEvents(e){e.addEventListener(`keydown`,this._onKeyDown),this._domElementKeyEvents=e}stopListenToKeyEvents(){this._domElementKeyEvents!==null&&(this._domElementKeyEvents.removeEventListener(`keydown`,this._onKeyDown),this._domElementKeyEvents=null)}saveState(){this.target0.copy(this.target),this.position0.copy(this.object.position),this.zoom0=this.object.zoom}reset(){this.target.copy(this.target0),this.object.position.copy(this.position0),this.object.zoom=this.zoom0,this.object.updateProjectionMatrix(),this.dispatchEvent(Im),this.update(),this.state=X.NONE}pan(e,t){this._pan(e,t),this.update()}dollyIn(e){this._dollyIn(e),this.update()}dollyOut(e){this._dollyOut(e),this.update()}rotateLeft(e){this._rotateLeft(e),this.update()}rotateUp(e){this._rotateUp(e),this.update()}update(e=null){let t=this.object.position;Hm.copy(t).sub(this.target),Hm.applyQuaternion(this._quat),this._spherical.setFromVector3(Hm),this.autoRotate&&this.state===X.NONE&&this._rotateLeft(this._getAutoRotationAngle(e)),this.enableDamping?(this._spherical.theta+=this._sphericalDelta.theta*this.dampingFactor,this._spherical.phi+=this._sphericalDelta.phi*this.dampingFactor):(this._spherical.theta+=this._sphericalDelta.theta,this._spherical.phi+=this._sphericalDelta.phi);let n=this.minAzimuthAngle,r=this.maxAzimuthAngle;isFinite(n)&&isFinite(r)&&(n<-Math.PI?n+=Um:n>Math.PI&&(n-=Um),r<-Math.PI?r+=Um:r>Math.PI&&(r-=Um),n<=r?this._spherical.theta=Math.max(n,Math.min(r,this._spherical.theta)):this._spherical.theta=this._spherical.theta>(n+r)/2?Math.max(n,this._spherical.theta):Math.min(r,this._spherical.theta)),this._spherical.phi=Math.max(this.minPolarAngle,Math.min(this.maxPolarAngle,this._spherical.phi)),this._spherical.makeSafe(),this.enableDamping===!0?this.target.addScaledVector(this._panOffset,this.dampingFactor):this.target.add(this._panOffset),this.target.sub(this.cursor),this.target.clampLength(this.minTargetRadius,this.maxTargetRadius),this.target.add(this.cursor);let i=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radius=this._clampDistance(this._spherical.radius);else{let e=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),i=e!=this._spherical.radius}if(Hm.setFromSpherical(this._spherical),Hm.applyQuaternion(this._quatInverse),t.copy(this.target).add(Hm),this.object.lookAt(this.target),this.enableDamping===!0?(this._sphericalDelta.theta*=1-this.dampingFactor,this._sphericalDelta.phi*=1-this.dampingFactor,this._panOffset.multiplyScalar(1-this.dampingFactor)):(this._sphericalDelta.set(0,0,0),this._panOffset.set(0,0,0)),this.zoomToCursor&&this._performCursorZoom){let e=null;if(this.object.isPerspectiveCamera){let t=Hm.length();e=this._clampDistance(t*this._scale);let n=t-e;this.object.position.addScaledVector(this._dollyDirection,n),this.object.updateMatrixWorld(),i=!!n}else if(this.object.isOrthographicCamera){let t=new W(this._mouse.x,this._mouse.y,0);t.unproject(this.object);let n=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),i=n!==this.object.zoom;let r=new W(this._mouse.x,this._mouse.y,0);r.unproject(this.object),this.object.position.sub(r).add(t),this.object.updateMatrixWorld(),e=Hm.length()}else console.warn(`WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled.`),this.zoomToCursor=!1;e!==null&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(e).add(this.object.position):(zm.origin.copy(this.object.position),zm.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(zm.direction))<Vm?this.object.lookAt(this.target):(Bm.setFromNormalAndCoplanarPoint(this.object.up,this.target),zm.intersectPlane(Bm,this.target))))}else if(this.object.isOrthographicCamera){let e=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),e!==this.object.zoom&&(this.object.updateProjectionMatrix(),i=!0)}return this._scale=1,this._performCursorZoom=!1,i||this._lastPosition.distanceToSquared(this.object.position)>Wm||8*(1-this._lastQuaternion.dot(this.object.quaternion))>Wm||this._lastTargetPosition.distanceToSquared(this.target)>Wm?(this.dispatchEvent(Im),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0):!1}_getAutoRotationAngle(e){return e===null?Um/60/60*this.autoRotateSpeed:Um/60*this.autoRotateSpeed*e}_getZoomScale(e){let t=Math.abs(e*.01);return .95**(this.zoomSpeed*t)}_rotateLeft(e){this._sphericalDelta.theta-=e}_rotateUp(e){this._sphericalDelta.phi-=e}_panLeft(e,t){Hm.setFromMatrixColumn(t,0),Hm.multiplyScalar(-e),this._panOffset.add(Hm)}_panUp(e,t){this.screenSpacePanning===!0?Hm.setFromMatrixColumn(t,1):(Hm.setFromMatrixColumn(t,0),Hm.crossVectors(this.object.up,Hm)),Hm.multiplyScalar(e),this._panOffset.add(Hm)}_pan(e,t){let n=this.domElement;if(this.object.isPerspectiveCamera){let r=this.object.position;Hm.copy(r).sub(this.target);let i=Hm.length();i*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*e*i/n.clientHeight,this.object.matrix),this._panUp(2*t*i/n.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(e*(this.object.right-this.object.left)/this.object.zoom/n.clientWidth,this.object.matrix),this._panUp(t*(this.object.top-this.object.bottom)/this.object.zoom/n.clientHeight,this.object.matrix)):(console.warn(`WARNING: OrbitControls.js encountered an unknown camera type - pan disabled.`),this.enablePan=!1)}_dollyOut(e){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=e:(console.warn(`WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled.`),this.enableZoom=!1)}_dollyIn(e){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=e:(console.warn(`WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled.`),this.enableZoom=!1)}_updateZoomParameters(e,t){if(!this.zoomToCursor)return;this._performCursorZoom=!0;let n=this.domElement.getBoundingClientRect(),r=e-n.left,i=t-n.top,a=n.width,o=n.height;this._mouse.x=r/a*2-1,this._mouse.y=-(i/o)*2+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(e){return Math.max(this.minDistance,Math.min(this.maxDistance,e))}_handleMouseDownRotate(e){this._rotateStart.set(e.clientX,e.clientY)}_handleMouseDownDolly(e){this._updateZoomParameters(e.clientX,e.clientY),this._dollyStart.set(e.clientX,e.clientY)}_handleMouseDownPan(e){this._panStart.set(e.clientX,e.clientY)}_handleMouseMoveRotate(e){this._rotateEnd.set(e.clientX,e.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);let t=this.domElement;this._rotateLeft(Um*this._rotateDelta.x/t.clientHeight),this._rotateUp(Um*this._rotateDelta.y/t.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(e){this._dollyEnd.set(e.clientX,e.clientY),this._dollyDelta.subVectors(this._dollyEnd,this._dollyStart),this._dollyDelta.y>0?this._dollyOut(this._getZoomScale(this._dollyDelta.y)):this._dollyDelta.y<0&&this._dollyIn(this._getZoomScale(this._dollyDelta.y)),this._dollyStart.copy(this._dollyEnd),this.zoomToCursor&&(this._performCursorZoom=!0,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()),this.update()}_handleMouseMovePan(e){this._panEnd.set(e.clientX,e.clientY),this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd),this.update()}_handleMouseWheel(e){this._updateZoomParameters(e.clientX,e.clientY),e.deltaY<0?this._dollyIn(this._getZoomScale(e.deltaY)):e.deltaY>0&&this._dollyOut(this._getZoomScale(e.deltaY)),this.update()}_handleKeyDown(e){let t=!1;switch(e.code){case this.keys.UP:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateUp(Um*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),t=!0;break;case this.keys.BOTTOM:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateUp(-Um*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),t=!0;break;case this.keys.LEFT:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateLeft(Um*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),t=!0;break;case this.keys.RIGHT:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateLeft(-Um*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),t=!0}t&&(e.preventDefault(),this.update())}_handleTouchStartRotate(e){if(this._pointers.length===1)this._rotateStart.set(e.pageX,e.pageY);else{let t=this._getSecondPointerPosition(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);this._rotateStart.set(n,r)}}_handleTouchStartPan(e){if(this._pointers.length===1)this._panStart.set(e.pageX,e.pageY);else{let t=this._getSecondPointerPosition(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);this._panStart.set(n,r)}}_handleTouchStartDolly(e){let t=this._getSecondPointerPosition(e),n=e.pageX-t.x,r=e.pageY-t.y,i=Math.sqrt(n*n+r*r);this._dollyStart.set(0,i)}_handleTouchStartDollyPan(e){this.enableZoom&&this._handleTouchStartDolly(e),this.enablePan&&this._handleTouchStartPan(e)}_handleTouchStartDollyRotate(e){this.enableZoom&&this._handleTouchStartDolly(e),this.enableRotate&&this._handleTouchStartRotate(e)}_handleTouchMoveRotate(e){if(this._pointers.length==1)this._rotateEnd.set(e.pageX,e.pageY);else{let t=this._getSecondPointerPosition(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);this._rotateEnd.set(n,r)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);let t=this.domElement;this._rotateLeft(Um*this._rotateDelta.x/t.clientHeight),this._rotateUp(Um*this._rotateDelta.y/t.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(e){if(this._pointers.length===1)this._panEnd.set(e.pageX,e.pageY);else{let t=this._getSecondPointerPosition(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);this._panEnd.set(n,r)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(e){let t=this._getSecondPointerPosition(e),n=e.pageX-t.x,r=e.pageY-t.y,i=Math.sqrt(n*n+r*r);this._dollyEnd.set(0,i),this._dollyDelta.set(0,(this._dollyEnd.y/this._dollyStart.y)**+this.zoomSpeed),this._dollyOut(this._dollyDelta.y),this._dollyStart.copy(this._dollyEnd);let a=(e.pageX+t.x)*.5,o=(e.pageY+t.y)*.5;this._updateZoomParameters(a,o)}_handleTouchMoveDollyPan(e){this.enableZoom&&this._handleTouchMoveDolly(e),this.enablePan&&this._handleTouchMovePan(e)}_handleTouchMoveDollyRotate(e){this.enableZoom&&this._handleTouchMoveDolly(e),this.enableRotate&&this._handleTouchMoveRotate(e)}_addPointer(e){this._pointers.push(e.pointerId)}_removePointer(e){delete this._pointerPositions[e.pointerId];for(let t=0;t<this._pointers.length;t++)if(this._pointers[t]==e.pointerId){this._pointers.splice(t,1);return}}_isTrackingPointer(e){for(let t=0;t<this._pointers.length;t++)if(this._pointers[t]==e.pointerId)return!0;return!1}_trackPointer(e){let t=this._pointerPositions[e.pointerId];t===void 0&&(t=new U,this._pointerPositions[e.pointerId]=t),t.set(e.pageX,e.pageY)}_getSecondPointerPosition(e){let t=e.pointerId===this._pointers[0]?this._pointers[1]:this._pointers[0];return this._pointerPositions[t]}_customWheelEvent(e){let t=e.deltaMode,n={clientX:e.clientX,clientY:e.clientY,deltaY:e.deltaY};switch(t){case 1:n.deltaY*=16;break;case 2:n.deltaY*=100}return e.ctrlKey&&!this._controlActive&&(n.deltaY*=10),n}};function Km(e){this.enabled!==!1&&(this._pointers.length===0&&(this.domElement.setPointerCapture(e.pointerId),this.domElement.ownerDocument.addEventListener(`pointermove`,this._onPointerMove),this.domElement.ownerDocument.addEventListener(`pointerup`,this._onPointerUp)),this._isTrackingPointer(e)||(this._addPointer(e),e.pointerType===`touch`?this._onTouchStart(e):this._onMouseDown(e),this._cursorStyle===`grab`&&(this.domElement.style.cursor=`grabbing`)))}function qm(e){this.enabled!==!1&&(e.pointerType===`touch`?this._onTouchMove(e):this._onMouseMove(e))}function Jm(e){switch(this._removePointer(e),this._pointers.length){case 0:this.domElement.releasePointerCapture(e.pointerId),this.domElement.ownerDocument.removeEventListener(`pointermove`,this._onPointerMove),this.domElement.ownerDocument.removeEventListener(`pointerup`,this._onPointerUp),this.dispatchEvent(Rm),this.state=X.NONE,this._cursorStyle===`grab`&&(this.domElement.style.cursor=`grab`);break;case 1:let t=this._pointers[0],n=this._pointerPositions[t];this._onTouchStart({pointerId:t,pageX:n.x,pageY:n.y})}}function Ym(e){let t;switch(e.button){case 0:t=this.mouseButtons.LEFT;break;case 1:t=this.mouseButtons.MIDDLE;break;case 2:t=this.mouseButtons.RIGHT;break;default:t=-1}switch(t){case ki.DOLLY:if(this.enableZoom===!1)return;this._handleMouseDownDolly(e),this.state=X.DOLLY;break;case ki.ROTATE:if(e.ctrlKey||e.metaKey||e.shiftKey){if(this.enablePan===!1)return;this._handleMouseDownPan(e),this.state=X.PAN}else{if(this.enableRotate===!1)return;this._handleMouseDownRotate(e),this.state=X.ROTATE}break;case ki.PAN:if(e.ctrlKey||e.metaKey||e.shiftKey){if(this.enableRotate===!1)return;this._handleMouseDownRotate(e),this.state=X.ROTATE}else{if(this.enablePan===!1)return;this._handleMouseDownPan(e),this.state=X.PAN}break;default:this.state=X.NONE}this.state!==X.NONE&&this.dispatchEvent(Lm)}function Xm(e){switch(this.state){case X.ROTATE:if(this.enableRotate===!1)return;this._handleMouseMoveRotate(e);break;case X.DOLLY:if(this.enableZoom===!1)return;this._handleMouseMoveDolly(e);break;case X.PAN:if(this.enablePan===!1)return;this._handleMouseMovePan(e)}}function Zm(e){this.enabled!==!1&&this.enableZoom!==!1&&this.state===X.NONE&&(e.preventDefault(),this.dispatchEvent(Lm),this._handleMouseWheel(this._customWheelEvent(e)),this.dispatchEvent(Rm))}function Qm(e){this.enabled!==!1&&this._handleKeyDown(e)}function $m(e){switch(this._trackPointer(e),this._pointers.length){case 1:switch(this.touches.ONE){case Ai.ROTATE:if(this.enableRotate===!1){this.state=X.NONE;break}this._handleTouchStartRotate(e),this.state=X.TOUCH_ROTATE;break;case Ai.PAN:if(this.enablePan===!1){this.state=X.NONE;break}this._handleTouchStartPan(e),this.state=X.TOUCH_PAN;break;default:this.state=X.NONE}break;case 2:switch(this.touches.TWO){case Ai.DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchStartDollyPan(e),this.state=X.TOUCH_DOLLY_PAN;break;case Ai.DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchStartDollyRotate(e),this.state=X.TOUCH_DOLLY_ROTATE;break;default:this.state=X.NONE}break;default:this.state=X.NONE}this.state!==X.NONE&&this.dispatchEvent(Lm)}function eh(e){switch(this._trackPointer(e),this.state){case X.TOUCH_ROTATE:if(this.enableRotate===!1)return;this._handleTouchMoveRotate(e),this.update();break;case X.TOUCH_PAN:if(this.enablePan===!1)return;this._handleTouchMovePan(e),this.update();break;case X.TOUCH_DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchMoveDollyPan(e),this.update();break;case X.TOUCH_DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchMoveDollyRotate(e),this.update();break;default:this.state=X.NONE}}function th(e){this.enabled!==!1&&e.preventDefault()}function nh(e){e.key===`Control`&&(this._controlActive=!0,this.domElement.ownerDocument.addEventListener(`keyup`,this._interceptControlUp,{passive:!0,capture:!0}))}function rh(e){e.key===`Control`&&(this._controlActive=!1,this.domElement.ownerDocument.removeEventListener(`keyup`,this._interceptControlUp,{passive:!0,capture:!0}))}var ih=JSON.parse(`[{"id":"event-q362","year":1939,"title":"World War II","place":"Warsaw, Poland","region":"Europe","lat":52.23,"lon":21.01,"category":"War & conflict","article":"World_War_II","body":"World War II began in Europe with Germany’s invasion of Poland in September 1939, while major fighting in East Asia had already begun. The conflict drew in countries and colonial populations across the globe. Its history includes the Holocaust, widespread attacks on civilians, enormous displacement, and the atomic bombings of Hiroshima and Nagasaki. The defeat of the Axis powers in 1945 reshaped international institutions and the balance of world power.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q362","facts":[{"label":"Associated place","value":"Russia"},{"label":"End year","value":"1945"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q362"},{"title":"World War II — background and references","url":"https://en.wikipedia.org/wiki/World_War_II"}],"editorial":true},{"id":"event-q8740","year":1955,"title":"Vietnam War","place":"Hanoi, Vietnam","region":"Asia","lat":21.03,"lon":105.85,"category":"War & conflict","article":"Vietnam_War","body":"The Vietnam War grew out of the struggle over Vietnam’s political future after French colonial rule and the country’s division. North Vietnam and its allies fought South Vietnam and its allies, including the United States. Fighting extended into Laos and Cambodia. The war caused immense civilian and military losses, provoked international protest, and ended with the fall of Saigon in 1975. The marker represents one major center of a much wider conflict.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q8740","facts":[{"label":"Part of","value":"Cold War"},{"label":"Associated place","value":"Laos"},{"label":"End year","value":"1975"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q8740"},{"title":"Vietnam War — background and references","url":"https://en.wikipedia.org/wiki/Vietnam_War"}],"editorial":true},{"id":"event-q8663","year":1950,"title":"Korean War","place":"Seoul, South Korea","region":"Asia","lat":37.57,"lon":126.98,"category":"War & conflict","article":"Korean_War","body":"The Korean War began when North Korean forces crossed the division between North and South Korea in June 1950. A United Nations force led by the United States intervened for the South, while China entered on the North’s side. The fighting devastated the peninsula. An armistice in 1953 stopped most combat but did not establish a final peace treaty.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q8663","facts":[{"label":"Part of","value":"Cold War"},{"label":"Associated place","value":"Korea Strait"},{"label":"End year","value":"1953"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q8663"},{"title":"Korean War — background and references","url":"https://en.wikipedia.org/wiki/Korean_War"}],"editorial":true},{"id":"event-q8683","year":1947,"title":"Cold War","place":"Berlin, representative Cold War frontier","region":"Europe","lat":52.52,"lon":13.4,"category":"War & conflict","article":"Cold_War","body":"The Cold War was a period of international geopolitical rivalry between the United States (US) and the Soviet Union (USSR) and their respective allies, the capitalist Western Bloc and communist Eastern Bloc. It began in the aftermath of the Second World War and ended with the dissolution of the Soviet Union in 1991. The term cold war is used because there was no direct fighting between the two superpowers, though each supported opposing sides in regional conflicts known as proxy wars.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q8683","facts":[{"label":"Associated place","value":"Latin America"},{"label":"End year","value":"1991"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q8683"},{"title":"Cold War — background and references","url":"https://en.wikipedia.org/wiki/Cold_War"}],"briefSource":{"title":"Cold War","url":"https://en.wikipedia.org/wiki/Cold_War","revision":1381546396,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q8729","year":1917,"title":"Russian Revolution","place":"Petrograd, now Saint Petersburg","region":"Europe","lat":59.93,"lon":30.34,"category":"Revolutions & independence","article":"Russian_Revolution","body":"The Russian Revolution was a period of political and social change in Russia starting in 1917. This period saw Russia abolish its monarchy and adopt a socialist form of government following two successive revolutions and a civil war. It can be seen as the precursor to other revolutions that occurred in the aftermath of World War I, such as the German Revolution of 1918–1919. The Russian Revolution was a key event of the 20th century.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q8729","facts":[{"label":"Part of","value":"revolutions of 1917–1923"},{"label":"Associated place","value":"Russian Empire"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q8729"},{"title":"Russian Revolution — background and references","url":"https://en.wikipedia.org/wiki/Russian_Revolution"}],"briefSource":{"title":"Russian Revolution","url":"https://en.wikipedia.org/wiki/Russian_Revolution","revision":1381272730,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q6534","year":1789,"title":"French Revolution","place":"Paris, France","region":"Europe","lat":48.86,"lon":2.35,"category":"Revolutions & independence","article":"French_Revolution","body":"The French Revolution was a period resulting in the political and societal changes in France that began with the Estates General of 1789 and ended with the Coup of 18 Brumaire on 9 November 1799. Many of the revolution's ideas are considered fundamental principles of liberal democracy, and its values remain central to modern French political discourse. It was caused by a combination of social, political, and economic factors which the existing regime proved unable to manage.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q6534","facts":[{"label":"Associated place","value":"France"},{"label":"End year","value":"1799"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q6534"},{"title":"French Revolution — background and references","url":"https://en.wikipedia.org/wiki/French_Revolution"}],"briefSource":{"title":"French Revolution","url":"https://en.wikipedia.org/wiki/French_Revolution","revision":1383110128,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q192769","year":1775,"title":"American Revolution","place":"Boston, Massachusetts","region":"Americas","lat":42.36,"lon":-71.06,"category":"Revolutions & independence","article":"American_Revolution","body":"Disputes over British taxation and political authority escalated into fighting between Britain and its thirteen North American colonies in 1775. The colonies declared independence the following year, turning a struggle over their rights within the empire into a war to establish a new nation. French military and financial support helped the American cause, while the conflict widened internationally. Britain recognized United States independence in the Treaty of Paris in 1783, creating a republic whose promises of liberty would shape later political struggles.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q192769","facts":[{"label":"Associated place","value":"Thirteen Colonies"},{"label":"End year","value":"1783"}],"sources":[{"title":"National Park Service — Overview of the American Revolution","url":"https://www.nps.gov/inde/learn/historyculture/resources-americanrevolutionoverview.htm"},{"title":"National Archives — Treaty of Paris (1783)","url":"https://www.archives.gov/milestone-documents/treaty-of-paris"},{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q192769"},{"title":"American Revolution — background and references","url":"https://en.wikipedia.org/wiki/American_Revolution"}],"editorial":true},{"id":"event-q127912","year":1776,"title":"United States Declaration of Independence","place":"Philadelphia, United States","region":"Americas","lat":39.95,"lon":-75.15,"category":"Revolutions & independence","article":"United_States_Declaration_of_Independence","body":"The Declaration of Independence, headed The unanimous Declaration of the thirteen united States of America on the document directed to be engrossed by Congress on July 19, 1776, is the founding document of the United States. On July 4, 1776, it was adopted unanimously by the Second Continental Congress, who were convened at the Pennsylvania State House, later renamed Independence Hall, in Philadelphia. These delegates became known as the nation's Founding Fathers. The Declaration explains why the Thirteen Colonies regarded themselves as independent sovereign states no longer subject to British colonial rule, and has become one of the most circulated, reprinted, and influential documents in history.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q127912","facts":[{"label":"Associated place","value":"Independence Hall"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q127912"},{"title":"United States Declaration of Independence — background and references","url":"https://en.wikipedia.org/wiki/United_States_Declaration_of_Independence"}],"briefSource":{"title":"United States Declaration of Independence","url":"https://en.wikipedia.org/wiki/United_States_Declaration_of_Independence","revision":1383760699,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q8676","year":1861,"title":"American Civil War","place":"Fort Sumter, South Carolina","region":"Asia","lat":32.75,"lon":-79.87,"category":"War & conflict","article":"American_Civil_War","body":"The American Civil War (April 12, 1861 – May 26, 1865; also known by other names) was a civil war in the United States between the Union (\\"the North\\") and the Confederacy (\\"the South\\"), which was formed in 1861 by Southern states that had seceded from the Union to preserve the institution of slavery. The South saw slavery as threatened because of the election of Abraham Lincoln as president in 1860, the abolitionist movement, and the growing electoral power of the North. The war ended with a Union victory, dissolution of the Confederacy and the national abolition of slavery, freeing four million African Americans.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q8676","facts":[{"label":"Associated place","value":"Southern United States"},{"label":"End year","value":"1865"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q8676"},{"title":"American Civil War — background and references","url":"https://en.wikipedia.org/wiki/American_Civil_War"}],"briefSource":{"title":"American Civil War","url":"https://en.wikipedia.org/wiki/American_Civil_War","revision":1384162791,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q391358","year":1863,"title":"Emancipation Proclamation","place":"Washington, DC","region":"Americas","lat":38.9,"lon":-77.04,"category":"Rights & society","article":"Emancipation_Proclamation","body":"The Emancipation Proclamation, officially Proclamation 95, was a presidential proclamation and executive order issued by United States president Abraham Lincoln on January 1, 1863, during the American Civil War. The Proclamation changed the legal status of more than 3.5 million enslaved African Americans in the secessionist Confederate states from enslaved to free. As soon as slaves escaped the control of their enslavers, either by fleeing to Union lines or through the advance of federal troops, they were permanently free.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q391358","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q391358"},{"title":"Emancipation Proclamation — background and references","url":"https://en.wikipedia.org/wiki/Emancipation_Proclamation"}],"briefSource":{"title":"Emancipation Proclamation","url":"https://en.wikipedia.org/wiki/Emancipation_Proclamation","revision":1384267880,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q175613","year":1865,"title":"Thirteenth Amendment to the United States Constitution","place":"Washington, DC","region":"Americas","lat":38.9,"lon":-77.04,"category":"Rights & society","article":"Thirteenth_Amendment_to_the_United_States_Constitution","body":"The Thirteenth Amendment (Amendment XIII) to the United States Constitution made slavery and involuntary servitude illegal, except as punishment for a crime. The amendment was passed by the Senate on April 8, 1864, by the House of Representatives on January 31, 1865, and ratified by the required 27 of the then 36 states on December 6, 1865, and proclaimed on December 18, 1865. It was the first of the three Reconstruction Amendments adopted following the American Civil War.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q175613","facts":[{"label":"Part of","value":"United States Constitution"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q175613"},{"title":"Thirteenth Amendment to the United States Constitution — background and references","url":"https://en.wikipedia.org/wiki/Thirteenth_Amendment_to_the_United_States_Constitution"}],"briefSource":{"title":"Thirteenth Amendment to the United States Constitution","url":"https://en.wikipedia.org/wiki/Thirteenth_Amendment_to_the_United_States_Constitution","revision":1383970556,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q585962","year":1964,"title":"Civil Rights Act of 1964","place":"Washington, DC","region":"Americas","lat":38.9,"lon":-77.04,"category":"Rights & society","article":"Civil_Rights_Act_of_1964","body":"The Civil Rights Act of 1964 (Pub. L. 88–352, 78 Stat. 241, enacted July 2, 1964) is a landmark civil rights and labor law in the United States that outlaws discrimination based on race, color, religion, sex, and national origin. It prohibits unequal application of voter registration requirements, racial segregation in schools and public accommodations, and employment discrimination. The act is considered one of the most significant legislative achievements in American history. Initially, powers given to enforce the act were weak, but these were supplemented during later years.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q585962","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q585962"},{"title":"Civil Rights Act of 1964 — background and references","url":"https://en.wikipedia.org/wiki/Civil_Rights_Act_of_1964"}],"briefSource":{"title":"Civil Rights Act of 1964","url":"https://en.wikipedia.org/wiki/Civil_Rights_Act_of_1964","revision":1382202668,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1608064","year":1965,"title":"Voting Rights Act of 1965","place":"Washington, DC","region":"Americas","lat":38.9,"lon":-77.04,"category":"Rights & society","article":"Voting_Rights_Act_of_1965","body":"The Voting Rights Act of 1965 is a landmark U.S. federal statute that prohibits racial discrimination in voting. It was signed into law by President Lyndon B. Johnson during the height of the civil rights movement on August 6, 1965. Congress later amended the act five times to expand its protections. Designed to enforce voting rights protected by the Fourteenth and Fifteenth Amendments to the United States Constitution, the act sought to secure the right to vote for racial minorities throughout the country, especially in the South.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1608064","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1608064"},{"title":"Voting Rights Act of 1965 — background and references","url":"https://en.wikipedia.org/wiki/Voting_Rights_Act_of_1965"}],"briefSource":{"title":"Voting Rights Act of 1965","url":"https://en.wikipedia.org/wiki/Voting_Rights_Act_of_1965","revision":1384340525,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q249367","year":1955,"title":"Montgomery bus boycott","place":"Montgomery, Alabama","region":"Americas","lat":32.37,"lon":-86.3,"category":"Rights & society","article":"Montgomery_bus_boycott","body":"The Montgomery bus boycott was a political and social protest campaign against the policy of racial segregation on the public transit system of Montgomery, Alabama. It was a foundational event in the civil rights movement in the United States. The campaign lasted from December 5, 1955 – the Monday after Rosa Parks, an African-American woman, was arrested for her refusal to surrender her seat to a white person – to December 20, 1956, when the federal ruling Browder v.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q249367","facts":[{"label":"Part of","value":"civil rights movement"},{"label":"Associated place","value":"Montgomery"},{"label":"End year","value":"1956"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q249367"},{"title":"Montgomery bus boycott — background and references","url":"https://en.wikipedia.org/wiki/Montgomery_bus_boycott"}],"briefSource":{"title":"Montgomery bus boycott","url":"https://en.wikipedia.org/wiki/Montgomery_bus_boycott","revision":1379564469,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1128871","year":1963,"title":"March on Washington","place":"Washington, DC","region":"Americas","lat":38.89,"lon":-77.05,"category":"Rights & society","article":"March_on_Washington","body":"The March on Washington for Jobs and Freedom (commonly known as the March on Washington or the Great March on Washington) was held in Washington, D.C., on August 28, 1963. The purpose of the march was to advocate for the civil and economic rights of African Americans. At the march, several popular singers of the time, including Mahalia Jackson and Marian Anderson, performed and many of the movement's leaders gave speeches. The most notable speech came from the final speaker, Martin Luther King Jr., standing in front of the Lincoln Memorial, as he delivered his historic \\"I Have a Dream\\" speech in which he called for an end to legalized racism and racial segregation.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1128871","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1128871"},{"title":"March on Washington — background and references","url":"https://en.wikipedia.org/wiki/March_on_Washington"}],"briefSource":{"title":"March on Washington","url":"https://en.wikipedia.org/wiki/March_on_Washington","revision":1378543622,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q3447247","year":1893,"title":"Women's suffrage in New Zealand","place":"Wellington, New Zealand","region":"Oceania","lat":-41.29,"lon":174.78,"category":"Rights & society","article":"Women's_suffrage_in_New_Zealand","body":"Women's suffrage was an important political issue in late nineteenth-century New Zealand. In early colonial New Zealand, as in other European societies, women were excluded from any involvement in politics. Public opinion began to change in the latter half of the nineteenth century and after years of effort by women's suffrage campaigners, led by Kate Sheppard, New Zealand became the first nation in the world in which all women had the right to vote in parliamentary elections.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q3447247","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q3447247"},{"title":"Women's suffrage in New Zealand — background and references","url":"https://en.wikipedia.org/wiki/Women's_suffrage_in_New_Zealand"}],"briefSource":{"title":"Women's suffrage in New Zealand","url":"https://en.wikipedia.org/wiki/Women%27s_suffrage_in_New_Zealand","revision":1374094914,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q7813","year":1948,"title":"Universal Declaration of Human Rights","place":"Paris, France","region":"Europe","lat":48.86,"lon":2.29,"category":"Rights & society","article":"Universal_Declaration_of_Human_Rights","body":"The Universal Declaration of Human Rights (UDHR) is a document adopted by the United Nations General Assembly that codifies some of the rights and freedoms of all human beings. Drafted by a United Nations (UN) committee chaired by Eleanor Roosevelt, it was accepted by the General Assembly as Resolution 217 during its third session on 10 December 1948 at the Palais de Chaillot in Paris, France. Of the 58 members of the UN at the time, 48 voted in favour, none against, eight abstained, and two did not vote.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q7813","facts":[{"label":"Part of","value":"International Bill of Human Rights"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q7813"},{"title":"Universal Declaration of Human Rights — background and references","url":"https://en.wikipedia.org/wiki/Universal_Declaration_of_Human_Rights"}],"briefSource":{"title":"Universal Declaration of Human Rights","url":"https://en.wikipedia.org/wiki/Universal_Declaration_of_Human_Rights","revision":1383913349,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q12519","year":1215,"title":"Magna Carta","place":"Runnymede, England","region":"Europe","lat":51.44,"lon":-0.56,"category":"Rights & society","article":"Magna_Carta","body":"Magna Carta (Medieval Latin for \\"Great Charter\\"), sometimes spelled Magna Charta, is a royal charter of rights sealed by King John of England at Runnymede, near Windsor, on 15 June 1215. First drafted by the Archbishop of Canterbury, Cardinal Stephen Langton, to make peace between the unpopular king and a group of rebel barons who demanded that the King confirm the Charter of Liberties, it promised the protection of church rights, protection for the barons from illegal imprisonment, access to swift and impartial justice, and limitations on feudal payments to the Crown, to be implemented through a council of 25 barons. Neither side stood by their commitments, and the charter was annulled by Pope Innocent III, leading to the First Barons' War.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q12519","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q12519"},{"title":"Magna Carta — background and references","url":"https://en.wikipedia.org/wiki/Magna_Carta"}],"briefSource":{"title":"Magna Carta","url":"https://en.wikipedia.org/wiki/Magna_Carta","revision":1381090004,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q80330","year":1642,"title":"English Civil War","place":"England, representative location","region":"Europe","lat":52.59,"lon":-0.25,"category":"War & conflict","article":"English_Civil_War","body":"The English Civil War or Great Rebellion was a series of civil wars and political machinations between Royalists and Parliamentarians in the Kingdom of England from 1642 to 1651. Part of the wider 1639 to 1653 Wars of the Three Kingdoms, the struggle consisted of the First English Civil War and the Second English Civil War. The Anglo-Scottish war of 1650 to 1652 is sometimes referred to as the Third English Civil War. The English Civil War also had a significant influence on the development of the English language.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q80330","facts":[{"label":"Part of","value":"Wars of the Three Kingdoms"},{"label":"Associated place","value":"Kingdom of England"},{"label":"End year","value":"1651"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q80330"},{"title":"English Civil War — background and references","url":"https://en.wikipedia.org/wiki/English_Civil_War"}],"briefSource":{"title":"English Civil War","url":"https://en.wikipedia.org/wiki/English_Civil_War","revision":1383762314,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q189508","year":1688,"title":"Glorious Revolution","place":"London, England","region":"Europe","lat":51.51,"lon":-0.13,"category":"Revolutions & independence","article":"Glorious_Revolution","body":"The Glorious Revolution was the deposition of King James II of England in November 1688. He was replaced by his daughter Mary II and her Dutch husband, James's nephew William III of Orange. The two ruled as joint monarchs of England, Scotland, and Ireland until Mary's death in 1694, when William became ruler in his own right. Jacobitism, the political movement that aimed to restore the exiled James or his descendants of the House of Stuart to the throne, persisted into the late 18th century.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q189508","facts":[{"label":"Associated place","value":"British Isles"},{"label":"End year","value":"1689"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q189508"},{"title":"Glorious Revolution — background and references","url":"https://en.wikipedia.org/wiki/Glorious_Revolution"}],"briefSource":{"title":"Glorious Revolution","url":"https://en.wikipedia.org/wiki/Glorious_Revolution","revision":1383319354,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q219447","year":1689,"title":"Bill of Rights 1689","place":"Westminster, London","region":"Europe","lat":51.5,"lon":-0.12,"category":"Rights & society","article":"Bill_of_Rights_1689","body":"The Bill of Rights 1689 (1 Will. & Mar. Sess. 2. c. 2) (sometimes known as the Bill of Rights 1688) is an act of the Parliament of England that set out certain basic civil rights and changed the succession to the English Crown. It remains a crucial statute in English constitutional law. Largely based on the ideas of political theorist John Locke, the Bill sets out a constitutional requirement for the Crown to seek the consent of the people as represented in Parliament.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q219447","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q219447"},{"title":"Bill of Rights 1689 — background and references","url":"https://en.wikipedia.org/wiki/Bill_of_Rights_1689"}],"briefSource":{"title":"Bill of Rights 1689","url":"https://en.wikipedia.org/wiki/Bill_of_Rights_1689","revision":1379095923,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q33143","year":1756,"title":"Seven Years' War","place":"Central Europe, representative location","region":"Europe","lat":50.08,"lon":14.44,"category":"War & conflict","article":"Seven_Years'_War","body":"The Seven Years' War, 1756 to 1763, was a global conflict fought by numerous great powers, primarily in Europe, with significant subsidiary campaigns in North America and the Indian subcontinent. The primary warring states were Great Britain and Prussia fighting against France and Austria, with other countries joining these coalitions: Portugal, Spain, Sweden, and Russia, plus Saxony and many other minor states of the Holy Roman Empire. Related conflicts include the Third Silesian War, French and Indian War, Third Carnatic War, Anglo-Spanish War (1762–1763), and Spanish–Portuguese War.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q33143","facts":[{"label":"Associated place","value":"Europe"},{"label":"End year","value":"1763"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q33143"},{"title":"Seven Years' War — background and references","url":"https://en.wikipedia.org/wiki/Seven_Years'_War"}],"briefSource":{"title":"Seven Years' War","url":"https://en.wikipedia.org/wiki/Seven_Years%27_War","revision":1382244408,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q2487","year":1618,"title":"Thirty Years' War","place":"Prague, Bohemia","region":"Europe","lat":50.09,"lon":14.4,"category":"War & conflict","article":"Thirty_Years'_War","body":"The Thirty Years' War, fought primarily in Central Europe between 1618 and 1648, was one of the most destructive conflicts in European history. An estimated 4.5 to 8 million soldiers and civilians died from the effects of battle, famine, or disease, with parts of Germany reporting population declines of more than 50%. Related conflicts include the Eighty Years' War, the War of the Mantuan Succession, the Franco–Spanish War, the Torstenson War, and Portuguese Restoration War.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q2487","facts":[{"label":"Part of","value":"European Wars of Religion"},{"label":"Associated place","value":"Central Europe"},{"label":"End year","value":"1648"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q2487"},{"title":"Thirty Years' War — background and references","url":"https://en.wikipedia.org/wiki/Thirty_Years'_War"}],"briefSource":{"title":"Thirty Years' War","url":"https://en.wikipedia.org/wiki/Thirty_Years%27_War","revision":1384305013,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q150995","year":1648,"title":"Peace of Westphalia","place":"Münster, Germany","region":"Europe","lat":51.96,"lon":7.63,"category":"Diplomacy & government","article":"Peace_of_Westphalia","body":"The Peace of Westphalia is the collective name for two peace treaties signed in October 1648 in the Westphalian cities of Osnabrück and Münster. They ended the Thirty Years' War (1618–1648) and brought peace to the Holy Roman Empire, closing a calamitous period of European history that killed between 4.5 and 8 million people. Ferdinand III, Holy Roman Emperor, the kingdoms of France and Sweden, and their respective allies among the princes of the Holy Roman Empire, participated in the treaties.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q150995","facts":[{"label":"Associated place","value":"Prinzipalmarkt"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q150995"},{"title":"Peace of Westphalia — background and references","url":"https://en.wikipedia.org/wiki/Peace_of_Westphalia"}],"briefSource":{"title":"Peace of Westphalia","url":"https://en.wikipedia.org/wiki/Peace_of_Westphalia","revision":1381614707,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q46362","year":1815,"title":"Congress of Vienna","place":"Vienna, Austria","region":"Europe","lat":48.21,"lon":16.37,"category":"Diplomacy & government","article":"Congress_of_Vienna","body":"The Congress of Vienna of 1814–1815 was a series of international diplomatic meetings to discuss and agree upon a possible new layout of the European political and constitutional order after the downfall of the French emperor Napoleon Bonaparte. Participants were representatives of all European powers (other than the Ottoman Empire) and other stakeholders. The Congress was chaired by Austrian statesman Klemens von Metternich (Duke Metternich) and was held in Vienna from September 1814 to June 1815.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q46362","facts":[{"label":"Associated place","value":"Vienna"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q46362"},{"title":"Congress of Vienna — background and references","url":"https://en.wikipedia.org/wiki/Congress_of_Vienna"}],"briefSource":{"title":"Congress of Vienna","url":"https://en.wikipedia.org/wiki/Congress_of_Vienna","revision":1383991725,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q78994","year":1803,"title":"Napoleonic Wars","place":"Paris, France, representative location","region":"Europe","lat":48.86,"lon":2.35,"category":"War & conflict","article":"Napoleonic_Wars","body":"The Napoleonic Wars (1803–1815) were a global series of conflicts fought by shared European coalitions against the French First Republic (1803–1804) under the First Consul followed by the First French Empire (1804–1815) under the Emperor of the French, Napoleon I. The wars originated in political forces arising from the French Revolution (1789–1799) and French Revolutionary Wars (1792–1802) and produced a period of French domination over continental Europe. The wars are categorised as seven conflicts, five named after the coalitions that fought Napoleon, plus two named for their respective theatres: the War of the Third Coalition, War of the Fourth Coalition, War of the Fifth Coalition, War of the Sixth Coalition, War of the Seventh Coalition, the Peninsular War, and the French invasion of Russia.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q78994","facts":[{"label":"Associated place","value":"Europe"},{"label":"End year","value":"1815"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q78994"},{"title":"Napoleonic Wars — background and references","url":"https://en.wikipedia.org/wiki/Napoleonic_Wars"}],"briefSource":{"title":"Napoleonic Wars","url":"https://en.wikipedia.org/wiki/Napoleonic_Wars","revision":1384386838,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q48314","year":1815,"title":"Battle of Waterloo","place":"Waterloo, Belgium","region":"Europe","lat":50.68,"lon":4.41,"category":"War & conflict","article":"Battle_of_Waterloo","body":"The Battle of Waterloo was fought on Sunday 18 June 1815, near Waterloo (then in the United Kingdom of the Netherlands, now in Belgium), being the last engagement with Napoleon I. The French Imperial Army under the command of Napoleon I was defeated by two armies of the Seventh Coalition. One was a British-led force with units from the United Kingdom, the Netherlands, Hanover, Brunswick, and Nassau, under the command of Field Marshal Arthur Wellesley, Duke of Wellington.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q48314","facts":[{"label":"Part of","value":"Waterloo Campaign"},{"label":"Associated place","value":"Waterloo Battlefield"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q48314"},{"title":"Battle of Waterloo — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Waterloo"}],"briefSource":{"title":"Battle of Waterloo","url":"https://en.wikipedia.org/wiki/Battle_of_Waterloo","revision":1384448478,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q46083","year":1870,"title":"Franco-Prussian War","place":"France, representative location","region":"Europe","lat":48.86,"lon":2.35,"category":"War & conflict","article":"Franco-Prussian_War","body":"The Franco-Prussian War, occasionally known as the Franco-German War, and sometimes referred to in France as the War of 1870, was a conflict between France and the North German Confederation led by Prussia. Lasting from 19 July 1870 to 28 January 1871, the conflict was caused primarily by France's determination to reassert its dominant position in continental Europe, which appeared in question following the decisive Prussian victory over Austria in 1866. After Prince Leopold of Hohenzollern of the Roman Catholic branch Hohenzollern-Sigmaringen had been offered the vacant Spanish throne in 1870 and had withdrawn his acceptance, the French ambassador approached Prussian King Wilhelm I at his vacationing site in Ems demanding Prussia renounce any future claims, which Wilhelm rejected.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q46083","facts":[{"label":"Part of","value":"unification of Germany"},{"label":"Associated place","value":"France"},{"label":"End year","value":"1871"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q46083"},{"title":"Franco-Prussian War — background and references","url":"https://en.wikipedia.org/wiki/Franco-Prussian_War"}],"briefSource":{"title":"Franco-Prussian War","url":"https://en.wikipedia.org/wiki/Franco-Prussian_War","revision":1384338300,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q154705","year":1871,"title":"Unification of Germany","place":"Versailles, proclamation site","region":"Europe","lat":48.8,"lon":2.12,"category":"Revolutions & independence","article":"Unification_of_Germany","body":"The unification of Germany was a process of building the first nation-state for Germans with federal features based on the concept of Lesser Germany (one without the Habsburgs' multi-ethnic Austria or its German-speaking part). It commenced on 18 August 1866 with the adoption of the North German Confederation Treaty establishing the North German Confederation, initially a military alliance de facto dominated by the Kingdom of Prussia, which was subsequently deepened through adoption of the North German Constitution.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q154705","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q154705"},{"title":"Unification of Germany — background and references","url":"https://en.wikipedia.org/wiki/Unification_of_Germany"}],"briefSource":{"title":"Unification of Germany","url":"https://en.wikipedia.org/wiki/Unification_of_Germany","revision":1384273596,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q51122","year":1861,"title":"Unification of Italy","place":"Turin, Italy","region":"Europe","lat":45.07,"lon":7.69,"category":"Revolutions & independence","article":"Unification_of_Italy","body":"The unification of Italy (Italian: Unità d'Italia [uniˈta ddiˈtaːlja]), also known as the Risorgimento (Italian: [risordʒiˈmento]; lit. 'Resurgence'), was the 19th-century political and social movement that in 1861 ended in the annexation of various states of the Italian Peninsula and its outlying isles to the Kingdom of Sardinia, resulting in the creation of the Kingdom of Italy. Inspired by the rebellions in the 1820s and 1830s against the outcome of the Congress of Vienna, the unification process was precipitated by the Revolutions of 1848, and reached completion in 1871 with the official designation of Rome as capital of Italy, following the capture of Rome in 1870.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q51122","facts":[{"label":"Associated place","value":"Italy"},{"label":"End year","value":"1871"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q51122"},{"title":"Unification of Italy — background and references","url":"https://en.wikipedia.org/wiki/Unification_of_Italy"}],"briefSource":{"title":"Unification of Italy","url":"https://en.wikipedia.org/wiki/Unification_of_Italy","revision":1382624264,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q3588","year":1848,"title":"Revolutions of 1848","place":"Paris, one of many centers","region":"Europe","lat":48.86,"lon":2.35,"category":"Revolutions & independence","article":"Revolutions_of_1848","body":"The revolutions of 1848, also known as the springtime of the peoples, were a series of revolutions throughout Europe that spanned almost two years, between January 1848 and October 1849. They remain the most widespread revolutionary wave in European history to date. The revolutions varied widely in their aims but generally opposed conservative systems, such as absolute monarchy and feudalism, and sought to establish nation states, founded on constitutionalism and popular sovereignty. The revolutionary wave began with the revolution in Sicily in January and spread across Europe after the revolution in France in February 1848.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q3588","facts":[{"label":"Part of","value":"Age of Revolution"},{"label":"Associated place","value":"Europe"},{"label":"End year","value":"1849"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q3588"},{"title":"Revolutions of 1848 — background and references","url":"https://en.wikipedia.org/wiki/Revolutions_of_1848"}],"briefSource":{"title":"Revolutions of 1848","url":"https://en.wikipedia.org/wiki/Revolutions_of_1848","revision":1383328274,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q8736","year":1919,"title":"Treaty of Versailles","place":"Versailles, France","region":"Europe","lat":48.8,"lon":2.12,"category":"Diplomacy & government","article":"Treaty_of_Versailles","body":"The Treaty of Versailles was a peace treaty signed on 28 June 1919. As the most important treaty of World War I, it ended the state of war between Germany and most of the Allied Powers. It was signed in the Palace of Versailles, exactly five years after the assassination of Archduke Franz Ferdinand, the proximate cause of the war. The other Central Powers on the German side signed separate treaties. Although the armistice of 11 November 1918 ended the actual fighting, and agreed certain principles and conditions including the payment of reparations, it took six months of Allied negotiations at the Paris Peace Conference to conclude the peace treaty.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q8736","facts":[{"label":"Part of","value":"League of Nations Treaty Series"},{"label":"Associated place","value":"Hall of Mirrors"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q8736"},{"title":"Treaty of Versailles — background and references","url":"https://en.wikipedia.org/wiki/Treaty_of_Versailles"}],"briefSource":{"title":"Treaty of Versailles","url":"https://en.wikipedia.org/wiki/Treaty_of_Versailles","revision":1384429027,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q38130","year":1920,"title":"League of Nations","place":"Geneva, Switzerland","region":"Europe","lat":46.23,"lon":6.14,"category":"Diplomacy & government","article":"League_of_Nations","body":"The League of Nations was the first worldwide intergovernmental organisation whose principal mission was to maintain world peace. It was founded on 10 January 1920 by the Paris Peace Conference that ended the First World War. The main organisation ceased operations on 18 April 1946 when many of its components were relocated into the new United Nations (UN) which was created in the aftermath of the Second World War. The League of Nations was the precursor organisation to the United Nations.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q38130","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q38130"},{"title":"League of Nations — background and references","url":"https://en.wikipedia.org/wiki/League_of_Nations"}],"briefSource":{"title":"League of Nations","url":"https://en.wikipedia.org/wiki/League_of_Nations","revision":1383593268,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q8698","year":1929,"title":"Great Depression","place":"New York, financial center","region":"Asia","lat":40.71,"lon":-74.01,"category":"Economy & trade","article":"Great_Depression","body":"The Great Depression was a severe global economic downturn from 1929 to 1939. The period was marked by high rates of unemployment and poverty, drastic reductions in industrial production and international trade, and widespread bank and business failures around the world. The economic contagion began in 1929 in the United States, the largest economy in the world, with the devastating Wall Street crash of 1929 often considered the beginning of the Depression. Among the countries with the most unemployed were the U.S., the United Kingdom, and Germany.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q8698","facts":[{"label":"End year","value":"1941"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q8698"},{"title":"Great Depression — background and references","url":"https://en.wikipedia.org/wiki/Great_Depression"}],"briefSource":{"title":"Great Depression","url":"https://en.wikipedia.org/wiki/Great_Depression","revision":1384342175,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q201684","year":1929,"title":"Wall Street crash of 1929","place":"New York, United States","region":"Asia","lat":40.71,"lon":-74.01,"category":"Economy & trade","article":"Wall_Street_crash_of_1929","body":"The Wall Street crash of 1929, also known as the Great Crash, was a major stock market crash in the United States which began in October 1929 with a sharp decline in prices on the New York Stock Exchange (NYSE). It triggered a rapid erosion of confidence in the U.S. banking system and marked what would later cascade into the worldwide Great Depression that lasted until the United States entered into World War II on December 8, 1941, making it the most devastating crash in the country's history. It is most associated with October 24, 1929, known as \\"Black Thursday\\", when a record 12.9 million shares were traded on the exchange, and October 29, 1929, or \\"Black Tuesday\\", when some 16.4 million shares were traded.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q201684","facts":[{"label":"Associated place","value":"United States"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q201684"},{"title":"Wall Street crash of 1929 — background and references","url":"https://en.wikipedia.org/wiki/Wall_Street_crash_of_1929"}],"briefSource":{"title":"Wall Street crash of 1929","url":"https://en.wikipedia.org/wiki/Wall_Street_crash_of_1929","revision":1384432582,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q186356","year":1933,"title":"New Deal","place":"Washington, DC","region":"Americas","lat":38.9,"lon":-77.04,"category":"Economy & trade","article":"New_Deal","body":"The New Deal was a series of economic, social, and political reforms in response to the Great Depression in the United States under the first and second administrations of President Franklin D. Roosevelt. Following a demand-side economic theory, Roosevelt sought to utilize the authority of the federal government to increase spending and introduce programs to spur growth and combat issues specific to the depression, such as unemployment, labor relations, financial reform, and social welfare. Roosevelt introduced the phrase when accepting the Democratic Party presidential nomination in the 1932 United States presidential election, winning in a landslide over incumbent Herbert Hoover, whose administration was widely viewed as ineffective.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q186356","facts":[{"label":"Associated place","value":"United States"},{"label":"End year","value":"1939"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q186356"},{"title":"New Deal — background and references","url":"https://en.wikipedia.org/wiki/New_Deal"}],"briefSource":{"title":"New Deal","url":"https://en.wikipedia.org/wiki/New_Deal","revision":1383972507,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q2763","year":1941,"title":"The Holocaust","place":"Auschwitz, representative memorial site","region":"Europe","lat":50.04,"lon":19.18,"category":"War & conflict","article":"The_Holocaust","body":"The Holocaust, known in Hebrew as the Shoah, was the genocide of European Jews during World War II. From 1941 to 1945, Nazi Germany and its collaborators systematically murdered around six million Jews across German-occupied Europe, approximately two-thirds of Europe's Jewish population. The murders were committed primarily through mass shootings across Eastern Europe and poison gas chambers in extermination camps, chiefly Auschwitz-Birkenau, Treblinka, Belzec, Sobibor, Chełmno and Majdanek death camps in occupied Poland. Concurrent Nazi persecutions killed millions of other non-Jewish civilians and prisoners of war (POWs); the term Holocaust is sometimes used to include the murder and persecution of non-Jewish groups, such as the Romani and Soviet POWs.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q2763","facts":[{"label":"Part of","value":"persecution of Jews"},{"label":"Associated place","value":"German-occupied Europe"},{"label":"End year","value":"1945"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q2763"},{"title":"The Holocaust — background and references","url":"https://en.wikipedia.org/wiki/The_Holocaust"}],"briefSource":{"title":"The Holocaust","url":"https://en.wikipedia.org/wiki/The_Holocaust","revision":1383340310,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q52418","year":1941,"title":"Attack on Pearl Harbor","place":"Pearl Harbor, Hawaii","region":"Americas","lat":21.37,"lon":-157.95,"category":"War & conflict","article":"Attack_on_Pearl_Harbor","body":"The Empire of Japan launched a surprise military attack on the US Pacific Fleet at its naval base at Pearl Harbor in Oahu, Hawaii, on December 7, 1941. At the time, the US was a neutral country in World War II. The air raid on Pearl Harbor, which was launched from aircraft carriers, prompted the US to declare war on Japan the next day. The Japanese military leadership referred to the attack as the Hawaii Operation and Operation AI, and as Operation Z during its planning.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q52418","facts":[{"label":"Part of","value":"South-East Asian theater of World War II"},{"label":"Associated place","value":"Pearl Harbor"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q52418"},{"title":"Attack on Pearl Harbor — background and references","url":"https://en.wikipedia.org/wiki/Attack_on_Pearl_Harbor"}],"briefSource":{"title":"Attack on Pearl Harbor","url":"https://en.wikipedia.org/wiki/Attack_on_Pearl_Harbor","revision":1383926275,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q488","year":1945,"title":"Atomic bombings of Hiroshima and Nagasaki","place":"Hiroshima, Japan; also Nagasaki","region":"Asia","lat":34.39,"lon":132.45,"category":"War & conflict","article":"Atomic_bombings_of_Hiroshima_and_Nagasaki","body":"On 6 and 9 August 1945, the United States detonated two atomic bombs over the Japanese cities of Hiroshima and Nagasaki, respectively, during the final days of World War II. The aerial bombings killed 150,000 to 246,000 people, most of whom were civilians, and remain the first and only uses of nuclear weapons in an armed conflict. In the final year of World War II, the Allies prepared for a costly invasion of the Japanese mainland.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q488","facts":[{"label":"Part of","value":"air raids on Japan"},{"label":"Associated place","value":"Hiroshima"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q488"},{"title":"Atomic bombings of Hiroshima and Nagasaki — background and references","url":"https://en.wikipedia.org/wiki/Atomic_bombings_of_Hiroshima_and_Nagasaki"}],"briefSource":{"title":"Atomic bombings of Hiroshima and Nagasaki","url":"https://en.wikipedia.org/wiki/Atomic_bombings_of_Hiroshima_and_Nagasaki","revision":1383298395,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q16470","year":1944,"title":"Normandy landings","place":"Normandy, France","region":"Europe","lat":49.37,"lon":-0.88,"category":"War & conflict","article":"Normandy_landings","body":"The Normandy landings were the landing operations and associated airborne operations on 6 June 1944 of the Allied invasion of Normandy in Operation Overlord during the Second World War. Codenamed Operation Neptune and often referred to as D-Day (after the military term), it is the largest seaborne invasion in history. The operation began the liberation of France and the rest of Western Europe, and laid the foundations for the Allied victory on the Western Front.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q16470","facts":[{"label":"Part of","value":"Invasion of Normandy"},{"label":"Associated place","value":"Normandy"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q16470"},{"title":"Normandy landings — background and references","url":"https://en.wikipedia.org/wiki/Normandy_landings"}],"briefSource":{"title":"Normandy landings","url":"https://en.wikipedia.org/wiki/Normandy_landings","revision":1384190195,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q38789","year":1942,"title":"Battle of Stalingrad","place":"Stalingrad, now Volgograd","region":"Europe","lat":48.71,"lon":44.51,"category":"War & conflict","article":"Battle_of_Stalingrad","body":"The Battle of Stalingrad was a major battle on the Eastern Front of World War II in which Nazi Germany and its Axis allies fought the Soviet Union for control of the city of Stalingrad (now Volgograd) in southern Russia. Marked by intense close-quarters combat and heavy civilian losses during aerial bombardment, the battle is considered the largest and deadliest urban battle in military history and the deadliest battle in World War II. By the end of the fighting, the German 6th Army had been destroyed, the 4th Panzer Army had suffered severe losses, and Army Group B was routed.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q38789","facts":[{"label":"Part of","value":"Eastern Front"},{"label":"Associated place","value":"Volgograd"},{"label":"End year","value":"1943"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q38789"},{"title":"Battle of Stalingrad — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Stalingrad"}],"briefSource":{"title":"Battle of Stalingrad","url":"https://en.wikipedia.org/wiki/Battle_of_Stalingrad","revision":1381448910,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q154720","year":1940,"title":"Battle of Britain","place":"Britain, representative location","region":"Europe","lat":51.51,"lon":-0.13,"category":"War & conflict","article":"Battle_of_Britain","body":"The Battle of Britain was a military campaign of the Second World War, in which the Royal Air Force (RAF) and the Fleet Air Arm (FAA) of the Royal Navy defended the United Kingdom against large-scale attacks by Nazi Germany's air force, the Luftwaffe. It was the first major military campaign fought entirely by air forces. It takes its name from the speech given by Prime Minister Winston Churchill to the House of Commons on 18 June 1940: \\"What General Weygand called the 'Battle of France' is over.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q154720","facts":[{"label":"Part of","value":"World War II"},{"label":"Associated place","value":"United Kingdom"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q154720"},{"title":"Battle of Britain — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Britain"}],"briefSource":{"title":"Battle of Britain","url":"https://en.wikipedia.org/wiki/Battle_of_Britain","revision":1383917936,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q150812","year":1939,"title":"Invasion of Poland","place":"Poland, representative location","region":"Europe","lat":52.23,"lon":21.01,"category":"War & conflict","article":"Invasion_of_Poland","body":"The invasion of Poland, also known as the September Campaign, Polish Campaign, and Polish Defensive War of 1939 (1 September – 6 October 1939), was a joint attack on the Republic of Poland by Nazi Germany, the Slovak Republic, and the Soviet Union, which marked the beginning of World War II. The invasion began on 1 September 1939 when Germany marched into Poland, preceded by the Danzig crisis and by the Molotov–Ribbentrop Pact between Germany and the Soviet Union, which was signed one week before and approved by the Supreme Soviet of the Soviet Union one day before the invasion. On 17 September the Soviet Union invaded as well, acting on a secret protocol of the pact, which assigned parts of Poland to them.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q150812","facts":[{"label":"Part of","value":"European Theater of World War II"},{"label":"Associated place","value":"Poland"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q150812"},{"title":"Invasion of Poland — background and references","url":"https://en.wikipedia.org/wiki/Invasion_of_Poland"}],"briefSource":{"title":"Invasion of Poland","url":"https://en.wikipedia.org/wiki/Invasion_of_Poland","revision":1382949207,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q4576","year":1948,"title":"Marshall Plan","place":"Washington, DC, policy center","region":"Americas","lat":38.9,"lon":-77.04,"category":"Economy & trade","article":"Marshall_Plan","body":"The Marshall Plan (officially the European Recovery Program, ERP) was an American initiative enacted in 1948 to provide foreign aid to Western Europe. The United States transferred US$13.3 billion to 17 European countries (equivalent to $141 billion in 2025) in economic recovery programs to Western European economies after the end of World War II in Europe. Replacing an earlier proposal for a Morgenthau Plan, it operated for four years beginning on April 3, 1948; though in 1951, the Marshall Plan was largely replaced by the Mutual Security Act.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q4576","facts":[{"label":"End year","value":"1951"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q4576"},{"title":"Marshall Plan — background and references","url":"https://en.wikipedia.org/wiki/Marshall_Plan"}],"briefSource":{"title":"Marshall Plan","url":"https://en.wikipedia.org/wiki/Marshall_Plan","revision":1383441280,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q151349","year":1948,"title":"Berlin Blockade","place":"Berlin, Germany","region":"Europe","lat":52.52,"lon":13.4,"category":"War & conflict","article":"Berlin_Blockade","body":"The Berlin Blockade (24 June 1948 – 12 May 1949) was one of the first major international crises of the Cold War. During the multinational occupation of post–World War II Germany, the Soviet Union blocked the Western Allies' railway, road, and canal access to the sectors of Berlin under Western control. The Soviets offered to drop the blockade if the Western Allies withdrew the newly introduced Deutsche Mark from West Berlin. The Western Allies organised the Berlin Airlift from 26 June 1948 to 30 September 1949 to carry supplies to the people of West Berlin, a difficult feat given the size of the city and the population.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q151349","facts":[{"label":"Part of","value":"Cold War"},{"label":"Associated place","value":"West Berlin"},{"label":"End year","value":"1949"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q151349"},{"title":"Berlin Blockade — background and references","url":"https://en.wikipedia.org/wiki/Berlin_Blockade"}],"briefSource":{"title":"Berlin Blockade","url":"https://en.wikipedia.org/wiki/Berlin_Blockade","revision":1384279404,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q128160","year":1962,"title":"Cuban Missile Crisis","place":"Cuba, representative location","region":"Americas","lat":23.11,"lon":-82.37,"category":"War & conflict","article":"Cuban_Missile_Crisis","body":"The Cuban Missile Crisis, also known as the October Crisis in Cuba (Spanish: Crisis de Octubre), or the Caribbean Crisis , was a 13-day confrontation between the governments of the United States and the Soviet Union, when American deployments of nuclear missiles in the United Kingdom, Italy and Turkey were matched by Soviet deployments of nuclear missiles in Cuba. The crisis lasted from 16 to 28 October 1962. The confrontation is widely considered the closest the Cold War came to escalating into full-scale nuclear war.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q128160","facts":[{"label":"Part of","value":"Cold War"},{"label":"Associated place","value":"Cuba"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q128160"},{"title":"Cuban Missile Crisis — background and references","url":"https://en.wikipedia.org/wiki/Cuban_Missile_Crisis"}],"briefSource":{"title":"Cuban Missile Crisis","url":"https://en.wikipedia.org/wiki/Cuban_Missile_Crisis","revision":1384252485,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q11264","year":1959,"title":"Cuban Revolution","place":"Havana, Cuba","region":"Americas","lat":23.11,"lon":-82.37,"category":"Revolutions & independence","article":"Cuban_Revolution","body":"The Cuban Revolution (Spanish: Revolución cubana) was the military and political movement that overthrew the dictatorship of Fulgencio Batista, who had ruled Cuba from 1952 to 1959. The revolution began after the 1952 Cuban coup d'état, in which Batista overthrew the emerging Cuban democracy and consolidated power. Among those who opposed the coup was Fidel Castro, then a young lawyer, who initially tried to challenge the takeover through legal means in the Cuban courts. When these efforts failed, Fidel Castro and his brother Raúl led an armed assault on the Moncada Barracks, a Cuban military post, on 26 July 1953.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q11264","facts":[{"label":"Part of","value":"history of Cuba"},{"label":"Associated place","value":"Cuba"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q11264"},{"title":"Cuban Revolution — background and references","url":"https://en.wikipedia.org/wiki/Cuban_Revolution"}],"briefSource":{"title":"Cuban Revolution","url":"https://en.wikipedia.org/wiki/Cuban_Revolution","revision":1382575910,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q32993","year":1949,"title":"Chinese Communist Revolution","place":"Beijing, China","region":"Asia","lat":39.91,"lon":116.4,"category":"Revolutions & independence","article":"Chinese_Communist_Revolution","body":"The Chinese Communist Revolution was a social and political revolution in mainland China that began in 1927 and culminated with the proclamation of the People's Republic of China (PRC) in 1949. The revolution was led by the Chinese Communist Party (CCP), which afterwards became the ruling party of China. The political revolution resulted in major social changes within China and has been looked at as a model by revolutionary communist movements in other countries. During the preceding century, termed the century of humiliation, the decline of the Qing dynasty and the rise of foreign imperialism caused escalating social, economic, and political problems in China.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q32993","facts":[{"label":"Part of","value":"Chinese Civil War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q32993"},{"title":"Chinese Communist Revolution — background and references","url":"https://en.wikipedia.org/wiki/Chinese_Communist_Revolution"}],"briefSource":{"title":"Chinese Communist Revolution","url":"https://en.wikipedia.org/wiki/Chinese_Communist_Revolution","revision":1383989466,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q190517","year":1911,"title":"1911 Revolution","place":"Wuchang, now Wuhan","region":"Asia","lat":30.55,"lon":114.31,"category":"Revolutions & independence","article":"1911_Revolution","body":"The 1911 Revolution, also known as the Xinhai Revolution or Hsinhai Revolution, culminated in the end of China's last imperial dynasty, the Qing dynasty, and led to the establishment of the Republic of China (ROC). The revolution was the culmination of a decade of agitation, revolts, and uprisings. Its success marked the end of Chinese monarchy, the 267-year reign of the Qing, over two millennia of imperial rule in China, and the beginning of China's early republican era.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q190517","facts":[{"label":"Part of","value":"Chinese Empire"},{"label":"Associated place","value":"Qing dynasty"},{"label":"End year","value":"1912"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q190517"},{"title":"1911 Revolution — background and references","url":"https://en.wikipedia.org/wiki/1911_Revolution"}],"briefSource":{"title":"1911 Revolution","url":"https://en.wikipedia.org/wiki/1911_Revolution","revision":1384128680,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q192408","year":1850,"title":"Taiping Rebellion","place":"Jintian, Guangxi, China","region":"Asia","lat":23.59,"lon":110.08,"category":"War & conflict","article":"Taiping_Rebellion","body":"The Taiping Rebellion (1850–1864) was a civil war in late imperial China fought between the ruling Qing dynasty and the rebelling Taiping Heavenly Kingdom. It was the deadliest civil war in history and the second-deadliest conflict in history overall. Estimates of the war's death toll range from 20–30 million, around 5–10% of the total Chinese population at the time, to 73–100 million, around 25% of the population. The Rebellion is widely considered to be the most important event in 19th-century Chinese history, and although the kingdom was defeated, the victory came at a great cost to the Qing dynasty's economy and political stability.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q192408","facts":[{"label":"Associated place","value":"China proper"},{"label":"End year","value":"1864"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q192408"},{"title":"Taiping Rebellion — background and references","url":"https://en.wikipedia.org/wiki/Taiping_Rebellion"}],"briefSource":{"title":"Taiping Rebellion","url":"https://en.wikipedia.org/wiki/Taiping_Rebellion","revision":1383913127,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q191282","year":1839,"title":"First Opium War","place":"Guangzhou, China","region":"Asia","lat":23.13,"lon":113.26,"category":"War & conflict","article":"First_Opium_War","body":"The First Opium War , also known as the Anglo-Chinese War, was a series of military engagements fought between the British Empire and Qing China between 1839 and 1842. The immediate issue was the Chinese enforcement of their ban on the opium trade by seizing private opium stocks from mainly British merchants at Guangzhou (then named Canton) and threatening to impose the death penalty for future offenders. Despite the opium ban, the British government supported the merchants' demand for compensation for seized goods, and insisted on the principles of free trade and equal diplomatic recognition with China.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q191282","facts":[{"label":"Part of","value":"timeline of the Qing dynasty"},{"label":"Associated place","value":"People's Republic of China"},{"label":"End year","value":"1842"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q191282"},{"title":"First Opium War — background and references","url":"https://en.wikipedia.org/wiki/First_Opium_War"}],"briefSource":{"title":"First Opium War","url":"https://en.wikipedia.org/wiki/First_Opium_War","revision":1383954910,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q150229","year":1899,"title":"Boxer Rebellion","place":"Northern China, representative location","region":"Asia","lat":39.91,"lon":116.4,"category":"War & conflict","article":"Boxer_Rebellion","body":"The Boxer Rebellion, also known as the Boxer Uprising, Boxer Movement, Yihetuan Movement , or Boxer War, was an uprising in North China between 1899 and 1901, towards the end of the Qing dynasty, by the Society of Righteous and Harmonious Fists. Its members were known as the \\"Boxers\\" in English, owing to many of them practicing Chinese martial arts, which at the time were referred to as \\"Chinese boxing\\". It was defeated by the Eight-Nation Alliance of foreign powers.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q150229","facts":[{"label":"Part of","value":"timeline of the Qing dynasty"},{"label":"Associated place","value":"North China"},{"label":"End year","value":"1901"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q150229"},{"title":"Boxer Rebellion — background and references","url":"https://en.wikipedia.org/wiki/Boxer_Rebellion"}],"briefSource":{"title":"Boxer Rebellion","url":"https://en.wikipedia.org/wiki/Boxer_Rebellion","revision":1381525011,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q8690","year":1966,"title":"Cultural Revolution","place":"Beijing, China","region":"Asia","lat":39.91,"lon":116.4,"category":"Turning points","article":"Cultural_Revolution","body":"The Cultural Revolution, formally known as the Great Proletarian Cultural Revolution, was a sociopolitical movement in the People's Republic of China (PRC). It was launched by Mao Zedong, chairman of the Chinese Communist Party, in 1966 and lasted until his death in 1976. Its stated goal was to advance Chinese communism by purging remnants of capitalist and traditional elements from Chinese society and government. In May 1966, with the help of the Cultural Revolution Group, Mao launched the revolution and said that bourgeois elements had infiltrated the government and society with the aim of restoring capitalism.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q8690","facts":[{"label":"End year","value":"1976"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q8690"},{"title":"Cultural Revolution — background and references","url":"https://en.wikipedia.org/wiki/Cultural_Revolution"}],"briefSource":{"title":"Cultural Revolution","url":"https://en.wikipedia.org/wiki/Cultural_Revolution","revision":1382288765,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q58715","year":1958,"title":"Great Leap Forward","place":"China, representative policy center","region":"Asia","lat":39.91,"lon":116.4,"category":"Turning points","article":"Great_Leap_Forward","body":"The Great Leap Forward was an industrialization campaign within China from 1958 to 1962, initiated by Mao Zedong, chairman of the Chinese Communist Party, whose goal was to transform the country from an agrarian society to an industrialized society through the formation of people's communes. The Great Leap Forward led to between 15 and 55 million deaths in mainland China during the 1959–1961 Great Chinese Famine it caused, making it the largest or second-largest famine in human history. The Great Leap Forward grew out of Mao's push for rapid development through mass mobilization and a reaction against the Soviet development strategy.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q58715","facts":[{"label":"End year","value":"1962"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q58715"},{"title":"Great Leap Forward — background and references","url":"https://en.wikipedia.org/wiki/Great_Leap_Forward"}],"briefSource":{"title":"Great Leap Forward","url":"https://en.wikipedia.org/wiki/Great_Leap_Forward","revision":1384438423,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1205521","year":1978,"title":"Reform and opening up","place":"Beijing, China","region":"Asia","lat":39.91,"lon":116.4,"category":"Economy & trade","article":"Reform_and_opening_up","body":"Reform and opening-up, also known as the Chinese economic reform or Chinese Economic Miracle or Chinese Growth Miracle, is a variety of economic reforms in the People's Republic of China (PRC) that began in the late 20th century, after Mao Zedong's death in 1976. Guided by Deng Xiaoping, who is often credited as the \\"General Architect\\", the reforms were launched by the ruling Chinese Communist Party (CCP) on December 18, 1978 at the third plenary session of the 11th CCP Central Committee, during the Boluan Fanzheng period. In 1979, Deng launched the Four Modernizations, aiming to modernize China's economy.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1205521","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1205521"},{"title":"Reform and opening up — background and references","url":"https://en.wikipedia.org/wiki/Reform_and_opening_up"}],"briefSource":{"title":"Reform and opening up","url":"https://en.wikipedia.org/wiki/Reform_and_opening_up","revision":1383249876,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q99717","year":1989,"title":"1989 Tiananmen Square protests and massacre","place":"Beijing, China","region":"Asia","lat":39.91,"lon":116.4,"category":"Rights & society","article":"1989_Tiananmen_Square_protests_and_massacre","body":"Protests led by students and workers, known in China as the June Fourth Incident, were held in Tiananmen Square in Beijing, China, from 15 April to 4 June 1989. After weeks of unsuccessful attempts between the demonstrators and the Chinese government to find a peaceful resolution, the Chinese government initiated martial law in late May and deployed troops to occupy the square on the night of 3 June in what is referred to as the Tiananmen Square massacre. The events are sometimes called the '89 Democracy Movement, the Tiananmen Square Incident, or the Tiananmen uprising.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q99717","facts":[{"label":"Part of","value":"Cold War"},{"label":"Associated place","value":"Tiananmen Square"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q99717"},{"title":"1989 Tiananmen Square protests and massacre — background and references","url":"https://en.wikipedia.org/wiki/1989_Tiananmen_Square_protests_and_massacre"}],"briefSource":{"title":"1989 Tiananmen Square protests and massacre","url":"https://en.wikipedia.org/wiki/1989_Tiananmen_Square_protests_and_massacre","revision":1384310155,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q852171","year":1241,"title":"Mongol invasion of Europe","place":"Central Europe, representative location","region":"Europe","lat":50.08,"lon":19.94,"category":"War & conflict","article":"Mongol_invasion_of_Europe","body":"From the 1220s to the 1240s, the Mongols conquered the Turkic states of Volga Bulgaria, Cumania and Iranic state of Alania, and various principalities in Eastern Europe. Following this, they began their invasion into Central Europe by launching a two-pronged invasion of then-fragmented Poland, culminating in the Battle of Legnica (April 9, 1241), and the Kingdom of Hungary, culminating in the Battle of Mohi (April 11, 1241). Invasions were also launched into the Caucasus against the Kingdom of Georgia, the Chechens, the Ingush, and Circassia though they failed to fully subjugate the latter.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q852171","facts":[{"label":"Part of","value":"Mongol invasions and conquests"},{"label":"Associated place","value":"Eastern Europe"},{"label":"End year","value":"1242"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q852171"},{"title":"Mongol invasion of Europe — background and references","url":"https://en.wikipedia.org/wiki/Mongol_invasion_of_Europe"}],"briefSource":{"title":"Mongol invasion of Europe","url":"https://en.wikipedia.org/wiki/Mongol_invasion_of_Europe","revision":1383913213,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q160077","year":1453,"title":"Fall of Constantinople","place":"Constantinople, now Istanbul","region":"Asia","lat":41.01,"lon":28.98,"category":"War & conflict","article":"Fall_of_Constantinople","body":"Constantinople, the capital city of the Byzantine Empire, was captured by the Ottoman Empire on 29 May 1453 as part of the culmination of a 53-day siege which had begun on 6 April. The attacking Ottoman Army, which significantly outnumbered Constantinople's defenders, was commanded by Sultan Mehmed II (later titled \\"the Conqueror\\"), while the Byzantine army was led by Emperor Constantine XI Palaiologos. After conquering the city, Mehmed II made Constantinople the new Ottoman capital, replacing Adrianople.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q160077","facts":[{"label":"Part of","value":"Byzantine–Ottoman wars"},{"label":"Associated place","value":"Constantinople"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q160077"},{"title":"Fall of Constantinople — background and references","url":"https://en.wikipedia.org/wiki/Fall_of_Constantinople"}],"briefSource":{"title":"Fall of Constantinople","url":"https://en.wikipedia.org/wiki/Fall_of_Constantinople","revision":1383589370,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q12560","year":1299,"title":"Ottoman Empire","place":"Söğüt, Anatolia, traditional foundation region","region":"Asia","lat":40.02,"lon":30.18,"category":"Civilizations","article":"Ottoman_Empire","body":"The Ottoman Empire, also known historically as Turkey or the Turkish Empire, was a state that spanned much of Southeastern Europe, West Asia, and North Africa from the 14th century to the early 20th century, centred in modern-day Turkey. It also controlled parts of southeastern Central Europe between the early 16th and early 18th centuries. The empire emerged from a beylik, or principality, founded in northwestern Anatolia in c. 1299 by the Turkoman tribal leader Osman I.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q12560","facts":[{"label":"Part of","value":"Central Powers"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q12560"},{"title":"Ottoman Empire — background and references","url":"https://en.wikipedia.org/wiki/Ottoman_Empire"}],"briefSource":{"title":"Ottoman Empire","url":"https://en.wikipedia.org/wiki/Ottoman_Empire","revision":1384418286,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q200032","year":1071,"title":"Battle of Manzikert","place":"Manzikert, now Malazgirt","region":"Asia","lat":39.15,"lon":42.54,"category":"War & conflict","article":"Battle_of_Manzikert","body":"The Battle of Manzikert or Malazgirt was fought between the Byzantine Empire and the Seljuk Empire on 26 August 1071 near Manzikert, Iberia (modern Malazgirt in Muş Province, eastern Turkey). The decisive defeat of the Byzantine army and the capture of the emperor Romanos IV Diogenes played an important role in undermining Byzantine authority in Anatolia and Armenia, and allowed for the gradual Turkification of Anatolia. Many Turks, travelling westward during the 11th century, saw the victory at Manzikert as an entrance to Asia Minor.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q200032","facts":[{"label":"Part of","value":"Byzantine–Seljuq Wars"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q200032"},{"title":"Battle of Manzikert — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Manzikert"}],"briefSource":{"title":"Battle of Manzikert","url":"https://en.wikipedia.org/wiki/Battle_of_Manzikert","revision":1371431660,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q51649","year":1096,"title":"First Crusade","place":"Eastern Mediterranean, representative location","region":"Asia","lat":41.01,"lon":28.98,"category":"War & conflict","article":"First_Crusade","body":"The First Crusade (1096–1099) was the first of a series of religious wars, or Crusades, which were initiated, supported and at times directed by the Latin Church in the Middle Ages. Their aim was to return the Holy Land to Christian rule after its conquest by the Rashidun Caliphate in the 7th century. By the 11th century, although Jerusalem had then been ruled by Muslims for hundreds of years, the practices of the Seljuk rulers in the region began to threaten local Christian populations, pilgrimages from the West, and the Byzantine Empire itself.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q51649","facts":[{"label":"Part of","value":"Crusades"},{"label":"Associated place","value":"Levant"},{"label":"End year","value":"1099"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q51649"},{"title":"First Crusade — background and references","url":"https://en.wikipedia.org/wiki/First_Crusade"}],"briefSource":{"title":"First Crusade","url":"https://en.wikipedia.org/wiki/First_Crusade","revision":1381348160,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q12546","year":1095,"title":"Crusades","place":"Clermont, France, proclamation site","region":"Europe","lat":45.78,"lon":3.08,"category":"War & conflict","article":"Crusades","body":"The Crusades were a series of military campaigns launched by the papacy between 1095 and 1291 against Muslim rulers for the recovery and defence of the Holy Land, as part of a wider crusading movement. The First Crusade was proclaimed by Pope Urban II at the Council of Clermont in November 1095—a call to arms for Christians to reconquer Jerusalem from the Muslims, with promises of spiritual reward. By this time, the papacy's position as head of the Catholic Church had strengthened, and earlier conflicts with secular rulers and wars on the frontiers of Western Christendom had prepared it for the direction of armed force in religious causes.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q12546","facts":[{"label":"End year","value":"1291"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q12546"},{"title":"Crusades — background and references","url":"https://en.wikipedia.org/wiki/Crusades"}],"briefSource":{"title":"Crusades","url":"https://en.wikipedia.org/wiki/Crusades","revision":1381209140,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q79791","year":1492,"title":"Reconquista","place":"Granada, final conquest","region":"Europe","lat":37.18,"lon":-3.6,"category":"War & conflict","article":"Reconquista","body":"The Reconquista (Spanish and Portuguese for 'reconquest') or the fall of al-Andalus was a series of military campaigns by northern Iberian Christian polities against Muslim-ruled al-Andalus, which had been part of the Visigothic Kingdom before the Muslim Conquest of 711. The Reconquista concluded in 1492 with the capture of Granada by the Catholic Monarchs of Spain, thereby ending the presence of any Muslim rule on the Iberian Peninsula. The beginning of the Reconquista is traditionally dated to the Battle of Covadonga (c. 718 or 722), approximately a decade after the Muslim conquest of the Iberian Peninsula began, in which the army of the Kingdom of Asturias achieved the first Christian victory over the forces of the Umayyad Caliphate since the beginning of the military invasion.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q79791","facts":[{"label":"Part of","value":"history of the Iberian Peninsula"},{"label":"Associated place","value":"Iberian Peninsula"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q79791"},{"title":"Reconquista — background and references","url":"https://en.wikipedia.org/wiki/Reconquista"}],"briefSource":{"title":"Reconquista","url":"https://en.wikipedia.org/wiki/Reconquista","revision":1384245460,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q828435","year":1521,"title":"Spanish conquest of the Aztec Empire","place":"Tenochtitlan, now Mexico City","region":"Americas","lat":19.43,"lon":-99.13,"category":"War & conflict","article":"Spanish_conquest_of_the_Aztec_Empire","body":"The Spanish conquest of the Aztec Empire, also known as the Conquest of Mexico-Tenochtitlan, was a pivotal event that took place during the Spanish colonization of the Americas (the broader European colonization of the Americas), marked by the collision of the Aztec Triple Alliance and the Spanish Empire with a coalition of Native Indigenous allies. Between 1519 and 1521, Spanish conquistador Hernán Cortés, his small army of European soldiers and the large allied army of Indian auxiliaries, overthrew the most powerful pre-Columbian empire to exist in Mesoamerica. Led by the Aztec ruler Moctezuma II, the Aztec Empire had established dominance over modern central Mexico through military conquest and intricate alliances.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q828435","facts":[{"label":"Part of","value":"Spanish colonization of the Americas"},{"label":"Associated place","value":"Aztec Empire"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q828435"},{"title":"Spanish conquest of the Aztec Empire — background and references","url":"https://en.wikipedia.org/wiki/Spanish_conquest_of_the_Aztec_Empire"}],"briefSource":{"title":"Spanish conquest of the Aztec Empire","url":"https://en.wikipedia.org/wiki/Spanish_conquest_of_the_Aztec_Empire","revision":1380873691,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q636771","year":1532,"title":"Spanish conquest of the Inca Empire","place":"Cajamarca, Peru","region":"Americas","lat":-7.16,"lon":-78.52,"category":"War & conflict","article":"Spanish_conquest_of_the_Inca_Empire","body":"The Spanish empires's conquest of the Inca Empire, also known as the Conquest of Peru (Spanish: Conquista española del Imperio incaico), was one of the most important campaigns in the Spanish colonization of the Americas (the broader European colonization of the Americas). After years of preliminary exploration and military skirmishes, 168 Spanish soldiers under conquistador Francisco Pizarro, along with his brothers in arms and their Indigenous auxiliaries, captured the last Sapa Inca, Atahualpa, at the Battle of Cajamarca in 1532. It was the first step in a long campaign that took decades of fighting but ended in Spanish victory in 1572 and colonization of the region as the Viceroyalty of Peru.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q636771","facts":[{"label":"Part of","value":"Spanish colonization of the Americas"},{"label":"Associated place","value":"Inca Empire"},{"label":"End year","value":"1572"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q636771"},{"title":"Spanish conquest of the Inca Empire — background and references","url":"https://en.wikipedia.org/wiki/Spanish_conquest_of_the_Inca_Empire"}],"briefSource":{"title":"Spanish conquest of the Inca Empire","url":"https://en.wikipedia.org/wiki/Spanish_conquest_of_the_Inca_Empire","revision":1384179375,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q28573","year":1438,"title":"Inca Empire","place":"Cusco, Peru","region":"Americas","lat":-13.52,"lon":-71.98,"category":"Civilizations","article":"Inca_Empire","body":"The Inca Empire, officially known as the Realm of the Four Parts , was the largest empire in pre-Columbian America. The administrative, political, and military center of the empire was in the city of Cusco. The Inca civilisation rose from the Peruvian highlands sometime in the early 13th century. The Portuguese explorer Aleixo Garcia was the first European to reach the Inca Empire in 1524. Later, in 1532, the Spanish began the conquest of the Inca Empire, and by 1572 the last Inca state was fully conquered.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q28573","facts":[{"label":"End year","value":"1533"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q28573"},{"title":"Inca Empire — background and references","url":"https://en.wikipedia.org/wiki/Inca_Empire"}],"briefSource":{"title":"Inca Empire","url":"https://en.wikipedia.org/wiki/Inca_Empire","revision":1384146704,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q676203","year":1450,"title":"Machu Picchu","place":"Andes, Peru","region":"Americas","lat":-13.16,"lon":-72.55,"category":"Art & culture","article":"Machu_Picchu","body":"Machu Picchu is a 15th-century Inca citadel located in the Eastern Cordillera of southern Peru on a mountain ridge at 2,430 meters (7,970 ft). It is situated in the Machupicchu District of Urubamba Province about 80 kilometers (50 miles) northwest of Cusco, above the Sacred Valley and along the Urubamba River, which forms a deep canyon with a subtropical mountain climate. Often referred to as the \\"Lost City of the Incas\\", Machu Picchu is one of the most iconic symbols of the Inca civilization and a major archaeological site in the Americas.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q676203","facts":[{"label":"Associated place","value":"Aguas Calientes"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q676203"},{"title":"Machu Picchu — background and references","url":"https://en.wikipedia.org/wiki/Machu_Picchu"}],"briefSource":{"title":"Machu Picchu","url":"https://en.wikipedia.org/wiki/Machu_Picchu","revision":1383799600,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q68750","year":1810,"title":"Mexican War of Independence","place":"Dolores Hidalgo, Mexico","region":"Americas","lat":21.16,"lon":-100.93,"category":"Revolutions & independence","article":"Mexican_War_of_Independence","body":"The Mexican War of Independence (Spanish: Guerra de Independencia de México, 16 September 1810 – 27 September 1821) was an armed conflict and political movement that eventually resulted in Mexico's independence from the Spanish Empire. It was not a single, coherent event, but local and regional struggles that occurred within the same period, and can be considered a revolutionary civil war. It culminated with the drafting of the Declaration of Independence of the Mexican Empire in Mexico City on September 28, 1821, following the collapse of royal government and the military triumph of forces for independence.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q68750","facts":[{"label":"Part of","value":"Spanish American wars of independence"},{"label":"Associated place","value":"Northern America and Mexico"},{"label":"End year","value":"1821"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q68750"},{"title":"Mexican War of Independence — background and references","url":"https://en.wikipedia.org/wiki/Mexican_War_of_Independence"}],"briefSource":{"title":"Mexican War of Independence","url":"https://en.wikipedia.org/wiki/Mexican_War_of_Independence","revision":1383634346,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q214426","year":1910,"title":"Mexican Revolution","place":"Mexico, representative location","region":"Americas","lat":19.43,"lon":-99.13,"category":"Revolutions & independence","article":"Mexican_Revolution","body":"The Mexican Revolution (Spanish: Revolución mexicana) was an extended sequence of armed regional conflicts in Mexico from 20 November 1910 to 1 December 1920. It has been called \\"the defining event of modern Mexican history\\". It saw the destruction of the Federal Army, its replacement by a revolutionary army, and the transformation of Mexican culture and government. The northern Constitutionalist faction prevailed on the battlefield and drafted the present-day Constitution of Mexico, which aimed to create a strong central government.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q214426","facts":[{"label":"Associated place","value":"Mexico"},{"label":"End year","value":"1920"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q214426"},{"title":"Mexican Revolution — background and references","url":"https://en.wikipedia.org/wiki/Mexican_Revolution"}],"briefSource":{"title":"Mexican Revolution","url":"https://en.wikipedia.org/wiki/Mexican_Revolution","revision":1382681202,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1548600","year":1822,"title":"Independence of Brazil","place":"São Paulo, Brazil","region":"Americas","lat":-23.58,"lon":-46.61,"category":"Revolutions & independence","article":"Independence_of_Brazil","body":"The independence of Brazil (Portuguese: independência do Brasil) began after a series of political and military events that led the Kingdom of Brazil to separate from the United Kingdom of Portugal, Brazil and the Algarves. It is celebrated on 7 September, the date in 1822 when prince regent Pedro of Braganza, beside the Ipiranga brook, declared independence from Portugal – a declaration that became known as the Cry of Ipiranga. Formal recognition by Portugal came with the Treaty of Rio de Janeiro, signed in 1825.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1548600","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1548600"},{"title":"Independence of Brazil — background and references","url":"https://en.wikipedia.org/wiki/Independence_of_Brazil"}],"briefSource":{"title":"Independence of Brazil","url":"https://en.wikipedia.org/wiki/Independence_of_Brazil","revision":1382267892,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1123201","year":1808,"title":"Spanish American wars of independence","place":"Quito, one of many revolutionary centers","region":"Americas","lat":-0.18,"lon":-78.47,"category":"Revolutions & independence","article":"Spanish_American_wars_of_independence","body":"The Spanish American wars of independence (Spanish: Guerras de independencia hispanoamericanas) were a series of early 19th-century conflicts across the Spanish Empire that resulted in new independent nation states in the Americas. They began shortly after the outbreak of the Peninsular War, part of the broader Napoleonic Wars. The process unfolded in two main phases. First, the Spanish Crown broke up, beginning in Spain in 1808 with the French invasion, the Spanish uprising against the Bonapartes, the vacancy of the throne, and the emergence of juntas later replicated in America.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1123201","facts":[{"label":"Part of","value":"Atlantic Revolutions"},{"label":"Associated place","value":"Hispanic America"},{"label":"End year","value":"1833"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1123201"},{"title":"Spanish American wars of independence — background and references","url":"https://en.wikipedia.org/wiki/Spanish_American_wars_of_independence"}],"briefSource":{"title":"Spanish American wars of independence","url":"https://en.wikipedia.org/wiki/Spanish_American_wars_of_independence","revision":1384475048,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q617409","year":1810,"title":"Argentine War of Independence","place":"Buenos Aires, Argentina","region":"Americas","lat":-34.6,"lon":-58.38,"category":"Revolutions & independence","article":"Argentine_War_of_Independence","body":"The Argentine War of Independence (Spanish: guerra de la independencia argentina) was a set of military events from 1810 to 1825 which resulted in the consolidation of Argentina as an independent country from Spanish rule. The historiographical term encompasses battles and military feats such as the Crossing of the Andes. Formal independence was declared in 1816 by the Congress of Tucumán.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q617409","facts":[{"label":"Part of","value":"Spanish American wars of independence"},{"label":"Associated place","value":"Argentina"},{"label":"End year","value":"1816"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q617409"},{"title":"Argentine War of Independence — background and references","url":"https://en.wikipedia.org/wiki/Argentine_War_of_Independence"}],"briefSource":{"title":"Argentine War of Independence","url":"https://en.wikipedia.org/wiki/Argentine_War_of_Independence","revision":1379024709,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1072889","year":1810,"title":"Chilean War of Independence","place":"Santiago, Chile","region":"Americas","lat":-33.45,"lon":-70.67,"category":"Revolutions & independence","article":"Chilean_War_of_Independence","body":"The Chilean War of Independence (Spanish: Guerra de la Independencia de Chile, 'War of Independence of Chile') was a military and political event that allowed the emancipation of Chile from the Spanish Monarchy, ending the colonial period and initiating the formation of an independent republic. It developed in the context of the Spanish American Wars of independence, a military and political process that began after the formation of self-government juntas in the Spanish-American colonies, in response to the capture of King Ferdinand VII of Spain by Napoleonic forces in 1808. The First Government Junta of Chile was formed for that purpose.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1072889","facts":[{"label":"Part of","value":"Spanish American wars of independence"},{"label":"Associated place","value":"Chile"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1072889"},{"title":"Chilean War of Independence — background and references","url":"https://en.wikipedia.org/wiki/Chilean_War_of_Independence"}],"briefSource":{"title":"Chilean War of Independence","url":"https://en.wikipedia.org/wiki/Chilean_War_of_Independence","revision":1381834335,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q129864","year":1857,"title":"Indian Rebellion of 1857","place":"Meerut, India","region":"Asia","lat":28.98,"lon":77.71,"category":"Revolutions & independence","article":"Indian_Rebellion_of_1857","body":"The Indian Rebellion of 1857 was a major uprising in India in 1857–58 against the rule of the British East India Company, which functioned as a sovereign power on behalf of the British Crown. The rebellion began on 10 May 1857 as a mutiny of sepoys of the company's garrison in Meerut, a town 40 miles (64 km) northeast of Delhi. It then erupted into other mutinies and civilian rebellions, chiefly in the upper Gangetic plain and central India, though incidents of revolt also occurred farther north and east.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q129864","facts":[{"label":"Associated place","value":"Company rule in India"},{"label":"End year","value":"1858"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q129864"},{"title":"Indian Rebellion of 1857 — background and references","url":"https://en.wikipedia.org/wiki/Indian_Rebellion_of_1857"}],"briefSource":{"title":"Indian Rebellion of 1857","url":"https://en.wikipedia.org/wiki/Indian_Rebellion_of_1857","revision":1383144882,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q239344","year":1930,"title":"Salt March","place":"Dandi, India","region":"Asia","lat":20.88,"lon":72.8,"category":"Revolutions & independence","article":"Salt_March","body":"The Salt March, also known as the Salt Satyagraha, Dandi March, and the Dandi Satyagraha, was an act of nonviolent civil disobedience in colonial India, led by Mahatma Gandhi. The 24-day march (padayatra) lasted from 12 March 1930 to 6 April 1930 as a direct action campaign of tax resistance and nonviolent protest against the British salt monopoly. Another reason for this march was that the Civil Disobedience Movement needed a strong inauguration that would inspire more people to follow Gandhi's example.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q239344","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q239344"},{"title":"Salt March — background and references","url":"https://en.wikipedia.org/wiki/Salt_March"}],"briefSource":{"title":"Salt March","url":"https://en.wikipedia.org/wiki/Salt_March","revision":1382619103,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1992677","year":1942,"title":"Quit India Movement","place":"Bombay, now Mumbai","region":"Asia","lat":18.96,"lon":72.81,"category":"Revolutions & independence","article":"Quit_India_Movement","body":"The Quit India Movement was a political campaign launched at the Bombay session of the All India Congress Committee by Mahatma Gandhi on 8 August 1942, during World War II, demanding an end to British rule in India. After Britain failed to secure Indian support for the British war effort with the Cripps Mission, Gandhi made a call to Do or Die in his Quit India speech delivered in Bombay on 8 August 1942 at the Gowalia Tank Maidan. Viceroy Linlithgow described the movement as \\"by far the most serious rebellion since 1857\\".","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1992677","facts":[{"label":"Part of","value":"Indian independence movement"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1992677"},{"title":"Quit India Movement — background and references","url":"https://en.wikipedia.org/wiki/Quit_India_Movement"}],"briefSource":{"title":"Quit India Movement","url":"https://en.wikipedia.org/wiki/Quit_India_Movement","revision":1379628188,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q371394","year":1971,"title":"Bangladesh Liberation War","place":"Dhaka, Bangladesh","region":"Asia","lat":23.81,"lon":90.41,"category":"Revolutions & independence","article":"Bangladesh_Liberation_War","body":"The Bangladesh Liberation War , also known as the Bangladesh War of Independence, was an armed conflict sparked by the rise of the Bengali nationalist and self-determination movement in East Pakistan, which resulted in the independence of Bangladesh with the help of India. The war began when the Pakistani military junta based in West Pakistan—under the orders of Yahya Khan—launched Operation Searchlight against East Pakistanis on the night of 25 March 1971, initiating the Bangladesh genocide. In response to the violence, members of the Mukti Bahini—a guerrilla resistance movement formed by Bengali military, paramilitary and civilians—launched a mass guerrilla war against the Pakistani military, liberating numerous towns and cities in the war's initial months.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q371394","facts":[{"label":"Part of","value":"Cold War"},{"label":"Associated place","value":"East Pakistan"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q371394"},{"title":"Bangladesh Liberation War — background and references","url":"https://en.wikipedia.org/wiki/Bangladesh_Liberation_War"}],"briefSource":{"title":"Bangladesh Liberation War","url":"https://en.wikipedia.org/wiki/Bangladesh_Liberation_War","revision":1382074513,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q213394","year":1983,"title":"Sri Lankan civil war","place":"Sri Lanka, representative location","region":"Asia","lat":6.93,"lon":79.86,"category":"War & conflict","article":"Sri_Lankan_civil_war","body":"A civil war was fought in Sri Lanka from 1983 to 2009. Beginning on 23 July 1983, it was an intermittent insurgency against the government by the Liberation Tigers of Tamil Eelam (LTTE, also known as the Tamil Tigers) led by Velupillai Prabhakaran. The LTTE fought to create an independent Tamil state called Tamil Eelam in the north-east of the island in response to continuous discrimination and violent persecution against Sri Lankan Tamils by the predominantly Sinhalese government of Sri Lanka.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q213394","facts":[{"label":"Associated place","value":"Sri Lanka"},{"label":"End year","value":"2009"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q213394"},{"title":"Sri Lankan civil war — background and references","url":"https://en.wikipedia.org/wiki/Sri_Lankan_civil_war"}],"briefSource":{"title":"Sri Lankan civil war","url":"https://en.wikipedia.org/wiki/Sri_Lankan_civil_war","revision":1384419357,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q49101","year":1956,"title":"Suez Crisis","place":"Suez Canal, Egypt","region":"Africa","lat":30.59,"lon":32.27,"category":"War & conflict","article":"Suez_Crisis","body":"The Suez Crisis, also known as the second Arab–Israeli war, the Tripartite Aggression in the Arab world and the Sinai War in Israel, was a British–French–Israeli invasion of Egypt in 1956. Israel invaded on 29 October, with the primary objective of re-opening the Straits of Tiran and the Gulf of Aqaba as the recent tightening of the eight-year-long Egyptian blockade prevented Israeli passage. After issuing a joint ultimatum for a ceasefire, the United Kingdom and France joined the Israelis on 31 October in an attempt to depose Egyptian President Gamal Abdel Nasser and regain control of the Suez Canal (which Nasser had nationalised earlier that year).","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q49101","facts":[{"label":"Part of","value":"Arab–Israeli conflict"},{"label":"Associated place","value":"Sinai Peninsula"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q49101"},{"title":"Suez Crisis — background and references","url":"https://en.wikipedia.org/wiki/Suez_Crisis"}],"briefSource":{"title":"Suez Crisis","url":"https://en.wikipedia.org/wiki/Suez_Crisis","revision":1383784144,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q126065","year":1979,"title":"Iranian Revolution","place":"Tehran, Iran","region":"Asia","lat":35.69,"lon":51.39,"category":"Revolutions & independence","article":"Iranian_Revolution","body":"The Iranian Revolution, also known as the Islamic Revolution, culminated in the overthrow of the Pahlavi dynasty in 1979. The revolution led to the replacement of the Imperial State of Iran by the Islamic Republic of Iran, as the monarchical government of Shah Mohammad Reza Pahlavi was superseded by Ruhollah Khomeini, an Islamist cleric who had headed one of the rebel factions, and became the country’s supreme leader.The ousting of Mohammad Reza Pahlavi, the last Shah of Iran, formally marked the end of Iran's historical monarchy. In 1953, the CIA and MI6-backed 1953 Iranian coup d'état overthrew Iran's prime minister, Mohammad Mossadegh, who had nationalized the Anglo-Persian Oil Company.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q126065","facts":[{"label":"Associated place","value":"Iran"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q126065"},{"title":"Iranian Revolution — background and references","url":"https://en.wikipedia.org/wiki/Iranian_Revolution"}],"briefSource":{"title":"Iranian Revolution","url":"https://en.wikipedia.org/wiki/Iranian_Revolution","revision":1382707136,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q82664","year":1980,"title":"Iran–Iraq War","place":"Iraq–Iran border, representative location","region":"Asia","lat":30.51,"lon":47.82,"category":"War & conflict","article":"Iran–Iraq_War","body":"The Iran–Iraq War, also called the First Imposed War, Eight-Year War, or Sacred Defense by Iran, began with the Iraqi invasion of Iran in September 1980. After eight years of conflict, both countries accepted a ceasefire deal brokered by the United Nations, which became effective in August 1988. The war caused around 500,000 deaths (excluding numbers from the related Anfal campaign), making it the deadliest conventional war ever fought between regular armies of developing countries.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q82664","facts":[{"label":"Part of","value":"Gulf War"},{"label":"Associated place","value":"Iran"},{"label":"End year","value":"1988"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q82664"},{"title":"Iran–Iraq War — background and references","url":"https://en.wikipedia.org/wiki/Iran%E2%80%93Iraq_War"}],"briefSource":{"title":"Iran–Iraq War","url":"https://en.wikipedia.org/wiki/Iran%E2%80%93Iraq_War","revision":1384444086,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q37643","year":1990,"title":"Gulf War","place":"Kuwait City, Kuwait","region":"Asia","lat":29.38,"lon":47.99,"category":"War & conflict","article":"Gulf_War","body":"The Gulf War was an armed conflict between Iraq and a 42-country coalition led by the United States in response to the Iraqi invasion of Kuwait on 2 August 1990. The coalition's efforts were carried out in two phases: Operation Desert Shield, which marked the military buildup in the Persian Gulf region from August 1990 to January 1991; and Operation Desert Storm, which began with the bombing campaign against Iraq on 17 January and continued until the liberation of Kuwait on 28 February. Iraq's invasion of Kuwait was met with immediate international condemnation as well as unanimous resolutions by the UN Security Council, which demanded Iraq's immediate withdrawal on the day of the invasion and authorized a total embargo four days later.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q37643","facts":[{"label":"Associated place","value":"Kuwait"},{"label":"End year","value":"1991"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q37643"},{"title":"Gulf War — background and references","url":"https://en.wikipedia.org/wiki/Gulf_War"}],"briefSource":{"title":"Gulf War","url":"https://en.wikipedia.org/wiki/Gulf_War","revision":1384019139,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q545449","year":2003,"title":"Iraq War","place":"Baghdad, Iraq","region":"Asia","lat":33.32,"lon":44.37,"category":"War & conflict","article":"Iraq_War","body":"The Iraq War , also referred to as the Second Gulf War (Gulf War II), was a protracted armed conflict in Iraq from 2003 to 2011. It began in March 2003 with the invasion by a United States–led coalition, which resulted in the overthrow of the Ba'athist government of Saddam Hussein. During the US occupation of Iraq, the conflict persisted as an insurgency that arose against coalition forces and the newly established Iraqi government. US forces were officially withdrawn in 2011.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q545449","facts":[{"label":"Part of","value":"Iraqi conflict"},{"label":"Associated place","value":"Iraq"},{"label":"End year","value":"2011"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q545449"},{"title":"Iraq War — background and references","url":"https://en.wikipedia.org/wiki/Iraq_War"}],"briefSource":{"title":"Iraq War","url":"https://en.wikipedia.org/wiki/Iraq_War","revision":1384044192,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q83085","year":1979,"title":"Soviet–Afghan War","place":"Kabul, Afghanistan","region":"Asia","lat":34.56,"lon":69.21,"category":"War & conflict","article":"Soviet–Afghan_War","body":"The Soviet–Afghan War took place in Afghanistan from December 1979 to February 1989. Marking the beginning of the 48-year-long Afghan conflict, it saw the Soviet Union and the Communist-led Afghan military fight against the rebelling Afghan mujahideen. While backed by various countries and organizations, the majority of the mujahideen's external support came from Pakistan, the United States (as part of Operation Cyclone), the United Kingdom, China, Iran, and the Arab states of the Persian Gulf, in addition to a large influx of foreign fighters known as the Afghan Arabs.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q83085","facts":[{"label":"Part of","value":"Afghan Conflict"},{"label":"Associated place","value":"Democratic Republic of Afghanistan"},{"label":"End year","value":"1989"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q83085"},{"title":"Soviet–Afghan War — background and references","url":"https://en.wikipedia.org/wiki/Soviet%E2%80%93Afghan_War"}],"briefSource":{"title":"Soviet–Afghan War","url":"https://en.wikipedia.org/wiki/Soviet%E2%80%93Afghan_War","revision":1382531574,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q182865","year":2001,"title":"War in Afghanistan (2001–2021)","place":"Afghanistan, representative location","region":"Asia","lat":34.56,"lon":69.21,"category":"War & conflict","article":"War_in_Afghanistan_(2001–2021)","body":"The war in Afghanistan was a prolonged armed conflict from 2001 to 2021. It began with an invasion by a United States–led coalition under the name Operation Enduring Freedom in response to the September 11 attacks (9/11) carried out by the Taliban-allied and Afghanistan-based al-Qaeda. The Taliban were expelled from major population centers by American-led forces supporting the anti-Taliban Northern Alliance, thus toppling the Taliban-ruled Islamic Emirate. In 2004, the U.S.-backed Islamic Republic was established, but by then, the Taliban, led by founder Mullah Omar, had reorganized and begun an insurgency against the Afghan government and coalition forces.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q182865","facts":[{"label":"Part of","value":"War on Terrorism"},{"label":"Associated place","value":"Afghanistan"},{"label":"End year","value":"2021"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q182865"},{"title":"War in Afghanistan (2001–2021) — background and references","url":"https://en.wikipedia.org/wiki/War_in_Afghanistan_(2001%E2%80%932021)"}],"briefSource":{"title":"War in Afghanistan (2001–2021)","url":"https://en.wikipedia.org/wiki/War_in_Afghanistan_(2001%E2%80%932021)","revision":1384433030,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q223732","year":1948,"title":"Israeli Declaration of Independence","place":"Tel Aviv, declaration site","region":"Asia","lat":32.06,"lon":34.77,"category":"Revolutions & independence","article":"Israeli_Declaration_of_Independence","body":"The Israeli Declaration of Independence, formally the Declaration of the Establishment of the State of Israel (Hebrew: הכרזה על הקמת מדינת ישראל), was proclaimed at the Tel Aviv Museum on 14 May 1948 (5 Iyar 5708), at the end of the civil war phase and beginning of the Arab–Israeli War of the 1948 Palestine war, by the Va'ad Leumi led by David Ben-Gurion, the executive head of the World Zionist Organization and chairman of the Jewish Agency for Palestine. It declared the establishment of a Jewish state in Palestine (or the Land of Israel in the Jewish tradition), to be known as the State of Israel, which would come into effect on termination of the British Mandate at midnight that day.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q223732","facts":[{"label":"Part of","value":"declaration of Israeli independence"},{"label":"Associated place","value":"Palestine"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q223732"},{"title":"Israeli Declaration of Independence — background and references","url":"https://en.wikipedia.org/wiki/Israeli_Declaration_of_Independence"}],"briefSource":{"title":"Israeli Declaration of Independence","url":"https://en.wikipedia.org/wiki/Israeli_Declaration_of_Independence","revision":1381291994,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q49092","year":1948,"title":"1948 Arab–Israeli War","place":"Palestine, representative location","region":"Asia","lat":31.77,"lon":35.21,"category":"War & conflict","article":"1948_Arab–Israeli_War","body":"The 1948 Arab–Israeli War (15 May 1948 – 10 March 1949), also known as the First Arab–Israeli War, followed the civil war in Mandatory Palestine (29 November 1947 – 14 May 1948) as the second and final stage of the 1948 Palestine war. The civil war became a war of separate states with the Israeli Declaration of Independence on 14 May 1948, the end of the British Mandate for Palestine at midnight, and the entry of a military coalition of Arab states into the territory of Mandatory Palestine the following morning. The war formally ended with the 1949 Armistice Agreements which established the Green Line.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q49092","facts":[{"label":"Part of","value":"1948 Palestine war"},{"label":"Associated place","value":"Sinai Peninsula"},{"label":"End year","value":"1949"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q49092"},{"title":"1948 Arab–Israeli War — background and references","url":"https://en.wikipedia.org/wiki/1948_Arab%E2%80%93Israeli_War"}],"briefSource":{"title":"1948 Arab–Israeli War","url":"https://en.wikipedia.org/wiki/1948_Arab%E2%80%93Israeli_War","revision":1383914062,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q3266633","year":1948,"title":"Nakba","place":"Palestine, representative location","region":"Asia","lat":31.77,"lon":35.21,"category":"Rights & society","article":"Nakba","body":"The Nakba is the ethnic cleansing of Palestinian Arabs by Zionists through their violent displacement and dispossession of land, property, and belongings, along with the destruction of their society and the suppression of their culture, identity, political rights, and national aspirations. The term is used to describe the events of the 1948 Palestine war, during which Zionists depopulated territories in Mandatory Palestine and declared the establishment of the State of Israel, as well as to describe Israel's ongoing persecution and displacement of Palestinians. As a whole, it covers the fracturing of Palestinian society and the longstanding rejection of the right of return for Palestinian refugees and their descendants.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q3266633","facts":[{"label":"Associated place","value":"Mandatory Palestine"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q3266633"},{"title":"Nakba — background and references","url":"https://en.wikipedia.org/wiki/Nakba"}],"briefSource":{"title":"Nakba","url":"https://en.wikipedia.org/wiki/Nakba","revision":1384460048,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q49077","year":1967,"title":"Six-Day War","place":"Middle East, representative location","region":"Asia","lat":31.77,"lon":35.21,"category":"War & conflict","article":"Six-Day_War","body":"The Six-Day War, or the 1967 Arab–Israeli war (5–10 June 1967), was fought between Israel and a coalition of six Arab states, primarily Egypt, Syria, and Jordan, in the context of the Arab–Israeli conflict. The war, in which Israel conquered and occupied the Sinai Peninsula, the Gaza Strip, the West Bank of the Jordan River, East Jerusalem, and the Golan Heights, shaped the political and strategic landscape of the Middle East into the 21st century. Many of the war's consequences remain unresolved.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q49077","facts":[{"label":"Part of","value":"Arab–Israeli conflict"},{"label":"Associated place","value":"Middle East"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q49077"},{"title":"Six-Day War — background and references","url":"https://en.wikipedia.org/wiki/Six-Day_War"}],"briefSource":{"title":"Six-Day War","url":"https://en.wikipedia.org/wiki/Six-Day_War","revision":1384373542,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q17013132","year":1993,"title":"Oslo Accords","place":"Oslo, negotiation site","region":"Europe","lat":59.91,"lon":10.75,"category":"Diplomacy & government","article":"Oslo_Accords","body":"The Oslo Accords are a pair of interim agreements between Israel and the Palestine Liberation Organization (PLO): the Oslo I Accord, signed in Washington, D.C., in 1993; and the Oslo II Accord, signed in Taba, Egypt, in 1995. They marked the start of the Oslo process, a peace process aimed at achieving a peace treaty based on Resolution 242 and Resolution 338 of the United Nations Security Council. The Oslo process began after secret negotiations in Oslo, Norway, resulting in both the recognition of Israel by the PLO and the recognition by Israel of the PLO as the representative of the Palestinian people and as a partner in bilateral negotiations.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q17013132","facts":[{"label":"Part of","value":"Israeli–Palestinian peace process"},{"label":"Associated place","value":"Oslo"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q17013132"},{"title":"Oslo Accords — background and references","url":"https://en.wikipedia.org/wiki/Oslo_Accords"}],"briefSource":{"title":"Oslo Accords","url":"https://en.wikipedia.org/wiki/Oslo_Accords","revision":1384398479,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q33761","year":2010,"title":"Arab Spring","place":"Sidi Bouzid, Tunisia","region":"Africa","lat":35.04,"lon":9.49,"category":"Revolutions & independence","article":"Arab_Spring","body":"The Arab Spring was a series of pro-democracy anti-government protests, uprisings, and armed rebellions that spread across much of the Arab world in the early 2010s. It began in Tunisia in response to the death of Mohamed Bouazizi by self-immolation. From Tunisia, the protests initially spread to five other countries: Libya, Egypt, Yemen, Syria and Bahrain. The rulers deposed include: Zine El Abidine Ben Ali of Tunisia, Muammar Gaddafi of Libya, and Hosni Mubarak of Egypt, all in 2011; and Ali Abdullah Saleh of Yemen in 2012.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q33761","facts":[{"label":"Associated place","value":"Arab world"},{"label":"End year","value":"2012"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q33761"},{"title":"Arab Spring — background and references","url":"https://en.wikipedia.org/wiki/Arab_Spring"}],"briefSource":{"title":"Arab Spring","url":"https://en.wikipedia.org/wiki/Arab_Spring","revision":1384119973,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q178810","year":2011,"title":"Syrian civil war","place":"Daraa, Syria","region":"Asia","lat":32.62,"lon":36.1,"category":"War & conflict","article":"Syrian_civil_war","body":"The Syrian civil war was an armed conflict that began with the Syrian revolution in March 2011, when popular discontent with the Ba'athist regime ruled by Bashar al-Assad triggered large-scale protests and pro-democracy rallies across Syria, as part of the wider Arab Spring. The Assad regime responded to the protests with lethal force, which led to a series of defections, the emergence of armed opposition groups, and the civilian uprising descending into a civil war. The war lasted almost 14 years and culminated in the fall of the Assad regime in December 2024.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q178810","facts":[{"label":"Part of","value":"Arab Spring"},{"label":"Associated place","value":"Syria"},{"label":"End year","value":"2024"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q178810"},{"title":"Syrian civil war — background and references","url":"https://en.wikipedia.org/wiki/Syrian_civil_war"}],"briefSource":{"title":"Syrian civil war","url":"https://en.wikipedia.org/wiki/Syrian_civil_war","revision":1384502260,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q131297","year":1994,"title":"Rwandan genocide","place":"Rwanda, representative location","region":"Africa","lat":-1.94,"lon":30.06,"category":"War & conflict","article":"Rwandan_genocide","body":"The Rwandan genocide, also known as the genocide against Tutsi, occurred from 7 April to 19 July 1994 during the Rwandan Civil War. Over a span of approximately 100 days, members of the Tutsi ethnic group, as well as some moderate Hutu and Twa, were systematically killed by Hutu militias. While the Rwandan Constitution states that over 1 million people were killed, most scholarly estimates suggest between 500,000 and 662,000 Tutsi died. The genocide was marked by extreme violence, with victims often murdered by neighbours, and widespread sexual violence, with between 250,000 and 500,000 cases of rape.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q131297","facts":[{"label":"Associated place","value":"Rwanda"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q131297"},{"title":"Rwandan genocide — background and references","url":"https://en.wikipedia.org/wiki/Rwandan_genocide"}],"briefSource":{"title":"Rwandan genocide","url":"https://en.wikipedia.org/wiki/Rwandan_genocide","revision":1384108952,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q200790","year":1954,"title":"Algerian War","place":"Algeria, representative location","region":"Africa","lat":36.75,"lon":3.06,"category":"Revolutions & independence","article":"Algerian_War","body":"The Algerian War, also known as the Algerian Revolution, the Franco-Algerian War, or the Algerian War of Independence, was an armed conflict between France and the Algerian National Liberation Front (FLN) from 1954 to 1962, which led to Algeria winning its independence from France. An important decolonization war, it was a complex conflict characterized by guerrilla warfare and war crimes. The conflict also became a civil war between the different communities and within the communities.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q200790","facts":[{"label":"Part of","value":"Cold War"},{"label":"Associated place","value":"French Algeria"},{"label":"End year","value":"1962"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q200790"},{"title":"Algerian War — background and references","url":"https://en.wikipedia.org/wiki/Algerian_War"}],"briefSource":{"title":"Algerian War","url":"https://en.wikipedia.org/wiki/Algerian_War","revision":1383125618,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q476855","year":1952,"title":"Mau Mau rebellion","place":"Kenya, representative location","region":"Africa","lat":-1.29,"lon":36.82,"category":"Revolutions & independence","article":"Mau_Mau_rebellion","body":"The Mau Mau rebellion (1952–1960), also known as the Mau Mau uprising or Kenya Emergency, was an armed conflict in the British Colony of Kenya between the Kenya Land and Freedom Army (KLFA) and the British colonial authorities. While the KLFA was primarily composed of Kikuyu, Meru, and Embu fighters, the movement also drew support from units of Kamba and Maasai. Groups such as the Luo and Kalenjin – who had led significant earlier resistance movements against colonial establishment, such as the Nandi Resistance (1890–1906) were largely not part of the KLFA's core structure.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q476855","facts":[{"label":"Part of","value":"decolonisation of Africa"},{"label":"Associated place","value":"Kenya Colony"},{"label":"End year","value":"1960"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q476855"},{"title":"Mau Mau rebellion — background and references","url":"https://en.wikipedia.org/wiki/Mau_Mau_rebellion"}],"briefSource":{"title":"Mau Mau rebellion","url":"https://en.wikipedia.org/wiki/Mau_Mau_rebellion","revision":1382337349,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1773926","year":1960,"title":"Congo Crisis","place":"Léopoldville, now Kinshasa","region":"Africa","lat":-4.32,"lon":15.31,"category":"Turning points","article":"Congo_Crisis","body":"The Congo Crisis was a period of political upheaval and conflict between 1960 and 1965 in the Republic of the Congo (today the Democratic Republic of the Congo). The crisis began almost immediately after the Congo became independent from Belgium and ended, unofficially, with the entire country under the rule of Joseph-Désiré Mobutu. Constituting a series of civil wars, the Congo Crisis was also a proxy conflict in the Cold War, in which the Soviet Union and the United States supported opposing factions.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1773926","facts":[{"label":"Part of","value":"Cold War"},{"label":"Associated place","value":"Republic of the Congo (Léopoldville)"},{"label":"End year","value":"1966"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1773926"},{"title":"Congo Crisis — background and references","url":"https://en.wikipedia.org/wiki/Congo_Crisis"}],"briefSource":{"title":"Congo Crisis","url":"https://en.wikipedia.org/wiki/Congo_Crisis","revision":1378967413,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q829875","year":1967,"title":"Nigerian Civil War","place":"Enugu, Nigeria","region":"Africa","lat":6.45,"lon":7.51,"category":"War & conflict","article":"Nigerian_Civil_War","body":"The Nigerian Civil War (6 July 1967 – 15 January 1970), also known as the Biafran War, Nigeria–Biafra War, or Biafra War, was an armed conflict fought between Nigeria and the Republic of Biafra, a secessionist state that had declared its independence from Nigeria in 1967. During the war years, General Yakubu Gowon served as the head of state of Nigeria, while Biafra was led by Lieutenant Colonel Chukwuemeka \\"Emeka\\" Odumegwu Ojukwu. The conflict emerged from political, ethnic, cultural, and religious tensions that preceded the United Kingdom's formal decolonisation of Nigeria from 1960 to 1963.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q829875","facts":[{"label":"Associated place","value":"Southeastern Nigeria"},{"label":"End year","value":"1970"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q829875"},{"title":"Nigerian Civil War — background and references","url":"https://en.wikipedia.org/wiki/Nigerian_Civil_War"}],"briefSource":{"title":"Nigerian Civil War","url":"https://en.wikipedia.org/wiki/Nigerian_Civil_War","revision":1384524406,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1780216","year":1961,"title":"Angolan War of Independence","place":"Angola, representative location","region":"Africa","lat":-8.84,"lon":13.23,"category":"Revolutions & independence","article":"Angolan_War_of_Independence","body":"The Angolan War of Independence (Portuguese: Guerra de Independência de Angola; 1961–1974), known as the Armed Struggle of National Liberation (Portuguese: Luta Armada de Libertação Nacional) in Angola, was a war of independence fought by the Angolan nationalist forces of the MPLA, UNITA and FNLA against Portugal. It began as an uprising by Angolans against the Portuguese imposition of forced cultivation of only cotton as a commodity crop. As the resistance spread against colonial authorities, multiple factions developed that struggled for control of Portugal's overseas province of Angola.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1780216","facts":[{"label":"Part of","value":"Portuguese Colonial War"},{"label":"Associated place","value":"Angola"},{"label":"End year","value":"1974"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1780216"},{"title":"Angolan War of Independence — background and references","url":"https://en.wikipedia.org/wiki/Angolan_War_of_Independence"}],"briefSource":{"title":"Angolan War of Independence","url":"https://en.wikipedia.org/wiki/Angolan_War_of_Independence","revision":1376388119,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q153081","year":1976,"title":"Soweto uprising","place":"Soweto, South Africa","region":"Africa","lat":-26.25,"lon":27.86,"category":"Rights & society","article":"Soweto_uprising","body":"The Soweto uprising, also known as the Soweto riots or the Soweto rebellion, was a series of demonstrations and protests led by black school children in South Africa during apartheid that began on the morning of 16 June 1976. Students from various schools began to protest in the streets of the Soweto township in response to the introduction of Afrikaans, considered by many black South Africans as the \\"language of the oppressor\\", as the medium of instruction in black schools. It is estimated that 20,000 students took part in the protests.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q153081","facts":[{"label":"Associated place","value":"Soweto"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q153081"},{"title":"Soweto uprising — background and references","url":"https://en.wikipedia.org/wiki/Soweto_uprising"}],"briefSource":{"title":"Soweto uprising","url":"https://en.wikipedia.org/wiki/Soweto_uprising","revision":1383084794,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q13582","year":1884,"title":"Berlin Conference","place":"Berlin, Germany","region":"Europe","lat":52.52,"lon":13.4,"category":"Diplomacy & government","article":"Berlin_Conference","body":"The Berlin Conference of 1884–1885 was a meeting of colonial powers that concluded with the signing of the General Act of Berlin, an agreement regulating European colonisation and trade in Africa during the New Imperialism period. The conference of fourteen countries was organised by Otto von Bismarck, the first chancellor of Germany, at the request of Leopold II of Belgium at a building (No. 77, now No. 92) on Berlin's central Wilhelmstrasse. It met on 15 November 1884 and, after an adjournment, concluded on 26 February 1885 with the signing of the General Act.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q13582","facts":[{"label":"Part of","value":"Scramble for Africa"},{"label":"Associated place","value":"Reich Chancellery"},{"label":"End year","value":"1885"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q13582"},{"title":"Berlin Conference — background and references","url":"https://en.wikipedia.org/wiki/Berlin_Conference"}],"briefSource":{"title":"Berlin Conference","url":"https://en.wikipedia.org/wiki/Berlin_Conference","revision":1383333307,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q179848","year":1881,"title":"Scramble for Africa","place":"Africa; representative continental marker","region":"Africa","lat":0,"lon":20,"category":"Turning points","article":"Scramble_for_Africa","body":"The Scramble for Africa was the invasion, conquest, and colonisation of most of Africa by seven Western European powers, which were driven by the Second Industrial Revolution during the late 19th and early 20th centuries through the era of \\"New Imperialism\\". Belgium, France, Germany, Italy, Portugal, Spain and the United Kingdom were the contending powers. The 1884–1885 Berlin Conference regulated European colonisation and trade in Africa, and is seen as emblematic of the \\"scramble\\". In the last quarter of the 19th century, there were considerable political rivalries among the European empires, which provided the impetus for the colonisation.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q179848","facts":[{"label":"End year","value":"1914"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q179848"},{"title":"Scramble for Africa — background and references","url":"https://en.wikipedia.org/wiki/Scramble_for_Africa"}],"briefSource":{"title":"Scramble for Africa","url":"https://en.wikipedia.org/wiki/Scramble_for_Africa","revision":1383355159,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q729768","year":1816,"title":"Zulu Kingdom","place":"KwaZulu-Natal, southern Africa","region":"Africa","lat":-28.33,"lon":31.42,"category":"Civilizations","article":"Zulu_Kingdom","body":"The Zulu Kingdom ( ZOO-loo; Zulu: KwaZulu), sometimes referred to as the Zulu Empire, was a monarchy in Southern Africa. During the 1810s, Shaka established a standing army that consolidated rival clans and built a large following which ruled a wide expanse of Southern Africa that extended along the coast of the Indian Ocean from the Tugela River in the south to the Pongola River in the north, centred on the present KwaZulu-Natal province of South Africa. A civil war in the mid-19th century erupted which culminated in the 1856 Battle of Ndondakusuka between the brothers Cetshwayo and Mbuyazi.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q729768","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q729768"},{"title":"Zulu Kingdom — background and references","url":"https://en.wikipedia.org/wiki/Zulu_Kingdom"}],"briefSource":{"title":"Zulu Kingdom","url":"https://en.wikipedia.org/wiki/Zulu_Kingdom","revision":1384057386,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q209217","year":1200,"title":"Great Zimbabwe","place":"Zimbabwe plateau","region":"Africa","lat":-20.27,"lon":30.93,"category":"Civilizations","article":"Great_Zimbabwe","body":"Great Zimbabwe was a city in the south-eastern hills of the modern country of Zimbabwe, near Masvingo. It was settled from around 1000 AD, and served as the capital of the Kingdom of Great Zimbabwe from the 13th century. It is the largest stone structure in precolonial Southern Africa. Major construction on the city began in the 11th century and continued until the 15th century. The city was abandoned in the 16th or 17th century.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q209217","facts":[{"label":"Part of","value":"Kingdom of Zimbabwe"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q209217"},{"title":"Great Zimbabwe — background and references","url":"https://en.wikipedia.org/wiki/Great_Zimbabwe"}],"briefSource":{"title":"Great Zimbabwe","url":"https://en.wikipedia.org/wiki/Great_Zimbabwe","revision":1381423922,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q202687","year":1464,"title":"Songhai Empire","place":"Gao, West Africa","region":"Africa","lat":16.27,"lon":-0.04,"category":"Civilizations","article":"Songhai_Empire","body":"The Songhai Empire was a state located in the western part of the Sahel during the 15th and 16th centuries. At its peak, it was one of the largest African empires in history. The state is known by its historiographical name, derived from its largest ethnic group and ruling elite, the Songhai people. Sonni Ali established Gao as the empire's capital, although a Songhai state had existed in and around Gao since the 11th century.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q202687","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q202687"},{"title":"Songhai Empire — background and references","url":"https://en.wikipedia.org/wiki/Songhai_Empire"}],"briefSource":{"title":"Songhai Empire","url":"https://en.wikipedia.org/wiki/Songhai_Empire","revision":1383922797,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q139377","year":100,"title":"Kingdom of Aksum","place":"Aksum, Ethiopia","region":"Africa","lat":14.12,"lon":38.72,"category":"Civilizations","article":"Kingdom_of_Aksum","body":"The Kingdom of Aksum, or the Aksumite Empire, was a kingdom in the Horn of Africa and South Arabia from classical antiquity to the Middle Ages, based in what is now Eritrea and Northern Ethiopia, and spanning present-day Djibouti, Sudan, Yemen and Saudi Arabia. Emerging from the earlier Dʿmt civilization, the kingdom was founded in the 1st century. The city of Axum served as the kingdom's capital. The Kingdom of Aksum was considered one of the four great powers of the 3rd century by Mani, the founder of Manichaeism, alongside Persia, Rome, and China.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q139377","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q139377"},{"title":"Kingdom of Aksum — background and references","url":"https://en.wikipedia.org/wiki/Kingdom_of_Aksum"}],"briefSource":{"title":"Kingdom of Aksum","url":"https://en.wikipedia.org/wiki/Kingdom_of_Aksum","revision":1382181955,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q241790","year":-1070,"title":"Kingdom of Kush","place":"Napata, present-day Sudan","region":"Africa","lat":18.53,"lon":31.82,"category":"Civilizations","article":"Kingdom_of_Kush","body":"The Kingdom of Kush, also known as the Kushite Empire, or simply Kush, was an ancient kingdom in Nubia, centered along the Nile Valley in what is now northern Sudan and southern Egypt. The region of Nubia was an early cradle of civilization, producing several complex societies that engaged in trade and industry. The city-state of Kerma emerged as the dominant political force between 2450 and 1450 BC, controlling the Nile Valley between the first and fourth cataracts, an area as large as Egypt.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q241790","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q241790"},{"title":"Kingdom of Kush — background and references","url":"https://en.wikipedia.org/wiki/Kingdom_of_Kush"}],"briefSource":{"title":"Kingdom of Kush","url":"https://en.wikipedia.org/wiki/Kingdom_of_Kush","revision":1384187491,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q171203","year":1200,"title":"Kingdom of Benin","place":"Benin City, present-day Nigeria","region":"Africa","lat":6.34,"lon":5.63,"category":"Civilizations","article":"Kingdom_of_Benin","body":"The Kingdom of Benin or Empire of Benin, also known as Great Benin, is a traditional kingdom in southern Nigeria. It has no historical relation to the modern Republic of Benin, which was known as Dahomey from the 17th century until 1975. The Kingdom of Benin's capital was Edo, now known as Benin City in Edo State, Nigeria. The Benin Kingdom was one of the oldest and most developed states in the coastal hinterland of West Africa.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q171203","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q171203"},{"title":"Kingdom of Benin — background and references","url":"https://en.wikipedia.org/wiki/Kingdom_of_Benin"}],"briefSource":{"title":"Kingdom of Benin","url":"https://en.wikipedia.org/wiki/Kingdom_of_Benin","revision":1384520473,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q184536","year":1235,"title":"Mali Empire","place":"West Africa, representative location","region":"Africa","lat":12.6,"lon":-8,"category":"Civilizations","article":"Mali_Empire","body":"The Mali Empire was an empire in West Africa from c. 1235 to 1610. The empire was founded by Sundiata Keita (c. 1214 – c. 1255) and became renowned for the wealth of its monarchs, especially Mansa Musa (Musa Keita). At its peak, Mali was the largest empire in West Africa, widely influencing the culture of the region through the spread of its language, laws, and customs. The empire began as a small Mandinka kingdom at the upper reaches of the Niger River, centered around the Manding region.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q184536","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q184536"},{"title":"Mali Empire — background and references","url":"https://en.wikipedia.org/wiki/Mali_Empire"}],"briefSource":{"title":"Mali Empire","url":"https://en.wikipedia.org/wiki/Mali_Empire","revision":1383590998,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q206789","year":700,"title":"Ghana Empire","place":"Koumbi Saleh, representative site","region":"Africa","lat":15.66,"lon":-7.96,"category":"Civilizations","article":"Ghana_Empire","body":"The Ghana Empire , also known as simply Ghana, Ghanata, or Wagadu, was an ancient western-Sahelian empire based in the modern-day southeast of Mauritania and western Mali. It is uncertain among historians when Ghana's ruling dynasty began. The first identifiable mention of the imperial dynasty in written records was made by Muḥammad ibn Mūsā al-Khwārizmī in 830. Further information about the empire was provided by the accounts of Cordoban scholar al-Bakri when he wrote about the region in the 11th century.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q206789","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q206789"},{"title":"Ghana Empire — background and references","url":"https://en.wikipedia.org/wiki/Ghana_Empire"}],"briefSource":{"title":"Ghana Empire","url":"https://en.wikipedia.org/wiki/Ghana_Empire","revision":1383802965,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q83891","year":224,"title":"Sasanian Empire","place":"Fars, Iran","region":"Asia","lat":28.85,"lon":52.57,"category":"Civilizations","article":"Sasanian_Empire","body":"The Sasanian Empire (), officially Eranshahr (Middle Persian: 𐭠𐭩𐭥𐭠𐭭𐭱𐭲𐭥𐭩, romanized: Ērānšahr, lit. 'Empire of the Iranians'), was an Iranian empire that was founded and ruled by the House of Sasan from 224 to 651 AD (the era of late antiquity). Lasting for over four centuries, the length of the Sasanian dynasty's reign over ancient Iran was second only to that of the Arsacid dynasty of Parthia which immediately preceded it. Founded by Ardashir I, whose rise coincided with the decline of Arsacid influence in the face of both internal and external strife, the House of Sasan was highly determined to restore the legacy of the Achaemenid Empire by expanding and consolidating the dominions of the Iranian nation.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q83891","facts":[{"label":"Part of","value":"Persian Empire"},{"label":"End year","value":"651"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q83891"},{"title":"Sasanian Empire — background and references","url":"https://en.wikipedia.org/wiki/Sasanian_Empire"}],"briefSource":{"title":"Sasanian Empire","url":"https://en.wikipedia.org/wiki/Sasanian_Empire","revision":1383855796,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q389688","year":-550,"title":"Achaemenid Empire","place":"Pasargadae, present-day Iran","region":"Asia","lat":29.94,"lon":52.89,"category":"Civilizations","article":"Achaemenid_Empire","body":"The Achaemenid Empire (, ə-KEE-mə-nid; Old Persian: 𐎧𐏁𐏂, Xšāça, lit. 'The Empire' or 'The Kingdom') was an ancient Iranian empire founded by Cyrus the Great of the Achaemenid dynasty in 550 BC. At peak, its territorial extent was roughly 5.5 million square kilometres (2.1 million square miles), making it the largest empire of its time. Based in the Iranian plateau, it stretched from the Balkans and Cyrenaica in the west to the Indus Valley (Pakistan) in the east, including Anatolia, Cyprus, Mesopotamia, the Levant, the South Caucasus, parts of Eastern Arabia, and large parts of Central Asia.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q389688","facts":[{"label":"Part of","value":"Achaemenid Period"},{"label":"End year","value":"-330"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q389688"},{"title":"Achaemenid Empire — background and references","url":"https://en.wikipedia.org/wiki/Achaemenid_Empire"}],"briefSource":{"title":"Achaemenid Empire","url":"https://en.wikipedia.org/wiki/Achaemenid_Empire","revision":1384382735,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q93180","year":-312,"title":"Seleucid Empire","place":"Babylon, early power center","region":"Asia","lat":32.54,"lon":44.42,"category":"Civilizations","article":"Seleucid_Empire","body":"The Seleucid Empire ( sih-LEW-sid) was a Greek state in West Asia during the Hellenistic period. It was founded by the Macedonian general Seleucus I Nicator in 312 BC, following the division of Alexander the Great's Empire, and was ruled by the Seleucid dynasty from Seleucia and later Antioch until its annexation by the Roman Republic under Pompey in 63 BC. After receiving the Mesopotamian regions of Babylonia and Assyria in 321 BC, Seleucus I began expanding his dominions to include the Near Eastern territories that include modern Iraq, Iran, Afghanistan, Syria and Lebanon, all of which had been under Macedonian control after the fall of the former Achaemenid Empire.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q93180","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q93180"},{"title":"Seleucid Empire — background and references","url":"https://en.wikipedia.org/wiki/Seleucid_Empire"}],"briefSource":{"title":"Seleucid Empire","url":"https://en.wikipedia.org/wiki/Seleucid_Empire","revision":1383092372,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q7209","year":-202,"title":"Han dynasty","place":"Chang'an, now Xi'an","region":"Asia","lat":34.26,"lon":108.95,"category":"Civilizations","article":"Han_dynasty","body":"The Han dynasty (202 BC – 9 AD, 25–220 AD) was an imperial dynasty of China established by Liu Bang, and preceded by the short-lived Qin dynasty (221–206 BC) and the interregnum known as the Chu–Han Contention (206–202 BC). It was succeeded by the Three Kingdoms period (220–280 AD) and also briefly interrupted by the Xin dynasty (9–23 AD) established by the usurping regent Wang Mang. It is thus separated into two periods—the Western Han (202 BC – 9 AD) and the Eastern Han (25–220 AD).","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q7209","facts":[{"label":"Part of","value":"Qin Han"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q7209"},{"title":"Han dynasty — background and references","url":"https://en.wikipedia.org/wiki/Han_dynasty"}],"briefSource":{"title":"Han dynasty","url":"https://en.wikipedia.org/wiki/Han_dynasty","revision":1384162459,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q9683","year":618,"title":"Tang dynasty","place":"Chang'an, now Xi'an","region":"Asia","lat":34.26,"lon":108.95,"category":"Civilizations","article":"Tang_dynasty","body":"The Tang dynasty was an imperial dynasty of China that ruled from 618 to 907, with an interregnum between 690 and 705. It was preceded by the Sui dynasty and followed by the Five Dynasties and Ten Kingdoms period. Historians generally regard the Tang as a high point of Chinese civilisation, and a golden age of cosmopolitan culture. Tang territory, acquired through the military campaigns of its early rulers, surpassed that of the Han dynasty.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q9683","facts":[{"label":"Part of","value":"Sui Tang"},{"label":"End year","value":"907"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q9683"},{"title":"Tang dynasty — background and references","url":"https://en.wikipedia.org/wiki/Tang_dynasty"}],"briefSource":{"title":"Tang dynasty","url":"https://en.wikipedia.org/wiki/Tang_dynasty","revision":1379356857,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q7462","year":960,"title":"Song dynasty","place":"Kaifeng, China","region":"Asia","lat":34.8,"lon":114.31,"category":"Civilizations","article":"Song_dynasty","body":"The Song dynasty ( SUUNG) was an imperial dynasty of China that ruled from 960 to 1279. The dynasty was founded by Emperor Taizu of Song, who usurped the throne of the Later Zhou dynasty and went on to conquer the rest of the Ten Kingdoms, ending the Five Dynasties and Ten Kingdoms period. The Song often came into conflict with the contemporaneous Liao, Western Xia, and Jin dynasties in northern China. After retreating to southern China following attacks by the Jin dynasty, the Song was eventually conquered by the Mongol-led Yuan dynasty.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q7462","facts":[{"label":"Part of","value":"Song Liao Jin Xia"},{"label":"End year","value":"1279"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q7462"},{"title":"Song dynasty — background and references","url":"https://en.wikipedia.org/wiki/Song_dynasty"}],"briefSource":{"title":"Song dynasty","url":"https://en.wikipedia.org/wiki/Song_dynasty","revision":1383389361,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q7313","year":1271,"title":"Yuan dynasty","place":"Dadu, now Beijing","region":"Asia","lat":39.91,"lon":116.4,"category":"Civilizations","article":"Yuan_dynasty","body":"The Yuan dynasty, officially the Great Yuan, was a Mongol-led imperial dynasty of China and a successor state to the Mongol Empire after its division. It was established by Kublai (Emperor Shizu or Setsen Khan), the fifth khagan-emperor of the Mongol Empire from the Borjigin clan, and lasted from 1271 to 1368 CE. In Chinese history, the Yuan dynasty followed the Song dynasty and preceded the Ming dynasty. Although Genghis Khan's enthronement as khagan in 1206 was described in Chinese as the Han-style title of emperor and the Mongol Empire had ruled territories including modern-day northern China for decades, it was not until 1271 that Kublai Khan officially proclaimed the dynasty in the traditional Han style, and the conquest was not complete until 1279 when the Southern Song dynasty was defeated in the Battle of Yamen.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q7313","facts":[{"label":"Part of","value":"Mongol Empire"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q7313"},{"title":"Yuan dynasty — background and references","url":"https://en.wikipedia.org/wiki/Yuan_dynasty"}],"briefSource":{"title":"Yuan dynasty","url":"https://en.wikipedia.org/wiki/Yuan_dynasty","revision":1379512616,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q9903","year":1368,"title":"Ming dynasty","place":"Nanjing, China","region":"Asia","lat":32.06,"lon":118.8,"category":"Civilizations","article":"Ming_dynasty","body":"The Ming dynasty, officially the Great Ming, was an imperial dynasty of China that ruled from 1368 to 1644, following the collapse of the Mongol-led Yuan dynasty. The Ming was the last imperial dynasty of China ruled by the Han people, the majority ethnic group in China. Although the primary capital of Beijing fell in 1644 to a rebellion led by Li Zicheng (who established the short-lived Shun dynasty), numerous rump regimes ruled by remnants of the Ming imperial family, collectively called the Southern Ming, survived until 1662.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q9903","facts":[{"label":"Part of","value":"Ming Qing"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q9903"},{"title":"Ming dynasty — background and references","url":"https://en.wikipedia.org/wiki/Ming_dynasty"}],"briefSource":{"title":"Ming dynasty","url":"https://en.wikipedia.org/wiki/Ming_dynasty","revision":1383668785,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q8733","year":1636,"title":"Qing dynasty","place":"Shenyang, China","region":"Asia","lat":41.8,"lon":123.43,"category":"Civilizations","article":"Qing_dynasty","body":"The Qing dynasty ( CHING), officially the Great Qing, also known as the Qing Empire or Qing China, was a Manchu-led imperial dynasty of China and an early modern empire in East Asia which existed from 1636/1644 to 1912. The last imperial dynasty in Chinese history, the Qing dynasty was preceded by the Ming dynasty and succeeded by the Republic of China. At the height of its power, the empire stretched from the Sea of Japan in the east to the Pamir Mountains in the west, and from the Mongolian Plateau in the north to the South China Sea in the south.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q8733","facts":[{"label":"Part of","value":"Ming Qing"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q8733"},{"title":"Qing dynasty — background and references","url":"https://en.wikipedia.org/wiki/Qing_dynasty"}],"briefSource":{"title":"Qing dynasty","url":"https://en.wikipedia.org/wiki/Qing_dynasty","revision":1383692029,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q28208","year":918,"title":"Goryeo","place":"Kaesong, Korean Peninsula","region":"Asia","lat":37.97,"lon":126.55,"category":"Civilizations","article":"Goryeo","body":"Goryeo (Korean: 고려; Hanja: 高麗; Middle Korean: 고ᇢ롕〮, romanized: kwòwlyéy) was a Korean state founded in 918, during a time of national division called the Later Three Kingdoms period, that unified and ruled the Korean Peninsula until the establishment of Joseon in 1392. Goryeo achieved what has been called a \\"true national unification\\" by Korean historians, as it not only unified the Later Three Kingdoms but also incorporated much of the ruling class of the northern kingdom of Balhae, who had origins in Goguryeo of the earlier Three Kingdoms of Korea. According to Korean historians, it was during the Goryeo period that the individual identities of Goguryeo, Baekje and Silla were successfully merged into a single entity that became the basis of the modern-day Korean identity.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q28208","facts":[{"label":"End year","value":"1392"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q28208"},{"title":"Goryeo — background and references","url":"https://en.wikipedia.org/wiki/Goryeo"}],"briefSource":{"title":"Goryeo","url":"https://en.wikipedia.org/wiki/Goryeo","revision":1381439442,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q28179","year":1392,"title":"Joseon","place":"Seoul, Korean Peninsula","region":"Asia","lat":37.57,"lon":126.98,"category":"Civilizations","article":"Joseon","body":"Joseon (English: CHOH-sun; Korean: 조선; Hanja: 朝鮮; also romanized as Chosun), officially Great Joseon State (대조선국; 大朝鮮國), was a dynastic kingdom of Korea that existed for 505 years. It was founded by Taejo of Joseon in 1392 and replaced by the Korean Empire in 1897. The kingdom was founded after the overthrow of Goryeo in what is today the city of Kaesong. In 1393, Korea was retitled and the capital was moved to modern-day Seoul.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q28179","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q28179"},{"title":"Joseon — background and references","url":"https://en.wikipedia.org/wiki/Joseon"}],"briefSource":{"title":"Joseon","url":"https://en.wikipedia.org/wiki/Joseon","revision":1383784385,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q205662","year":1603,"title":"Tokugawa shogunate","place":"Edo, now Tokyo","region":"Asia","lat":35.68,"lon":139.69,"category":"Civilizations","article":"Tokugawa_shogunate","body":"The Tokugawa shogunate, also known as the Edo shogunate, was the military government of Japan during the Edo period from 1603 to 1868. The Tokugawa shogunate was established by Tokugawa Ieyasu after victory at the Battle of Sekigahara, ending the civil wars of the Sengoku period following the collapse of the Ashikaga shogunate. Ieyasu became the shōgun, and the Tokugawa clan governed Japan from Edo Castle in the eastern city of Edo (Tokyo) along with the daimyō lords of the samurai class.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q205662","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q205662"},{"title":"Tokugawa shogunate — background and references","url":"https://en.wikipedia.org/wiki/Tokugawa_shogunate"}],"briefSource":{"title":"Tokugawa shogunate","url":"https://en.wikipedia.org/wiki/Tokugawa_shogunate","revision":1382524692,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q841364","year":1351,"title":"Ayutthaya Kingdom","place":"Ayutthaya, present-day Thailand","region":"Asia","lat":14.35,"lon":100.56,"category":"Civilizations","article":"Ayutthaya_Kingdom","body":"The Ayutthaya Kingdom or the Empire of Ayutthaya was a Thai kingdom that existed in Southeast Asia from 1351 to 1767, centered around the city of Ayutthaya, in Siam, or present-day Thailand. European travellers in the early 16th century called Ayutthaya one of the three great powers of Asia alongside Vijayanagara and Ming China. Ayutthaya is considered the precursor of modern Thailand. The name derives from the Sanskrit Ayodhya, by way of the Ramakien, Thailand's national epic.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q841364","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q841364"},{"title":"Ayutthaya Kingdom — background and references","url":"https://en.wikipedia.org/wiki/Ayutthaya_Kingdom"}],"briefSource":{"title":"Ayutthaya Kingdom","url":"https://en.wikipedia.org/wiki/Ayutthaya_Kingdom","revision":1383864167,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q49326","year":1293,"title":"Majapahit","place":"Trowulan, Java","region":"Asia","lat":-7.56,"lon":112.38,"category":"Civilizations","article":"Majapahit","body":"Majapahit or [mad͡ʒapaɪt] (western dialect)), also known as Wilwatikta , was a Javanese Hindu-Buddhist thalassocratic empire in Southeast Asia based on the island of Java (in modern-day Indonesia). At its greatest extent, following significant military expansions, the territory of the empire and its tributary states covered almost the entire Nusantara archipelago, spanning both Asia and Oceania. After a civil war that weakened control over the vassal states, the empire slowly declined before collapsing in 1527 due to an invasion by the Sultanate of Demak.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q49326","facts":[{"label":"Associated place","value":"East Java"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q49326"},{"title":"Majapahit — background and references","url":"https://en.wikipedia.org/wiki/Majapahit"}],"briefSource":{"title":"Majapahit","url":"https://en.wikipedia.org/wiki/Majapahit","revision":1380983337,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q234197","year":650,"title":"Srivijaya","place":"Palembang, Sumatra, representative center","region":"Asia","lat":-2.99,"lon":104.76,"category":"Civilizations","article":"Srivijaya","body":"Srivijaya, also spelled Sri Vijaya or Sriwijaya, was a Malay Buddhist thalassocratic empire based on the island of Sumatra (in modern-day Indonesia) that influenced much of Southeast Asia. Srivijaya was an important centre for the expansion of Buddhism from the 7th to 11th century. Srivijaya was the first polity to dominate much of western Maritime Southeast Asia. Its economy became progressively reliant on the booming trade in the region, thus transforming it into a prestige goods-based economy.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q234197","facts":[{"label":"Associated place","value":"South Sumatra"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q234197"},{"title":"Srivijaya — background and references","url":"https://en.wikipedia.org/wiki/Srivijaya"}],"briefSource":{"title":"Srivijaya","url":"https://en.wikipedia.org/wiki/Srivijaya","revision":1382633200,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1332160","year":1945,"title":"Indonesian National Revolution","place":"Jakarta, Indonesia","region":"Asia","lat":-6.18,"lon":106.83,"category":"Revolutions & independence","article":"Indonesian_National_Revolution","body":"The Indonesian National Revolution (Indonesian: Revolusi Nasional Indonesia), also known as the Indonesian War of Independence, was an armed conflict and diplomatic struggle between the Republic of Indonesia and the Dutch Empire and an internal social revolution during postwar and postcolonial Indonesia. It took place between Indonesia's declaration of independence in 1945 and the Netherlands' transfer of sovereignty over the Dutch East Indies to the Republic of the United States of Indonesia at the end of 1949. The four-year struggle involved sporadic but bloody armed conflict, internal Indonesian political and communal upheavals, and two major international diplomatic interventions.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1332160","facts":[{"label":"Part of","value":"decolonisation of Asia"},{"label":"Associated place","value":"Indonesia"},{"label":"End year","value":"1949"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1332160"},{"title":"Indonesian National Revolution — background and references","url":"https://en.wikipedia.org/wiki/Indonesian_National_Revolution"}],"briefSource":{"title":"Indonesian National Revolution","url":"https://en.wikipedia.org/wiki/Indonesian_National_Revolution","revision":1383912130,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q422082","year":1896,"title":"Philippine Revolution","place":"Manila, Philippines","region":"Asia","lat":14.6,"lon":120.98,"category":"Revolutions & independence","article":"Philippine_Revolution","body":"The Philippine Revolution was a war of independence waged by the revolutionary organization Katipunan against the Spanish Empire from 1896 to 1898. It was the culmination of the 333-year colonial rule of Spain in the archipelago. The Philippines was one of the last major colonies of the Spanish Empire, which had already suffered a massive decline in the 1820s. Cuba rebelled in 1895, and in 1898, the United States intervened and the Spanish soon capitulated.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q422082","facts":[{"label":"Associated place","value":"Philippines"},{"label":"End year","value":"1898"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q422082"},{"title":"Philippine Revolution — background and references","url":"https://en.wikipedia.org/wiki/Philippine_Revolution"}],"briefSource":{"title":"Philippine Revolution","url":"https://en.wikipedia.org/wiki/Philippine_Revolution","revision":1384498287,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1274389","year":1986,"title":"People Power Revolution","place":"Manila, Philippines","region":"Asia","lat":14.59,"lon":121.06,"category":"Revolutions & independence","article":"People_Power_Revolution","body":"The People Power Revolution, also known as the EDSA Revolution or the February Revolution, was a series of popular demonstrations in the Philippines, mostly in Metro Manila, from February 22 to 25, 1986. There was a sustained campaign of civil resistance against regime violence and electoral fraud. The nonviolent revolution led to the departure of Ferdinand Marcos, the end of his 20-year dictatorship, and restoration of democracy in the Philippines. It is also referred to as the Yellow Revolution due to the presence of yellow ribbons during demonstrations (in reference to the Tony Orlando and Dawn song \\"Tie a Yellow Ribbon Round the Ole Oak Tree\\") as a symbol of protest following the assassination of Filipino senator Benigno \\"Ninoy\\" Aquino Jr. in August 1983 upon his return to the Philippines from exile.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q1274389","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1274389"},{"title":"People Power Revolution — background and references","url":"https://en.wikipedia.org/wiki/People_Power_Revolution"}],"briefSource":{"title":"People Power Revolution","url":"https://en.wikipedia.org/wiki/People_Power_Revolution","revision":1382300506,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q2885072","year":1975,"title":"Cambodian genocide","place":"Cambodia, representative location","region":"Asia","lat":11.56,"lon":104.93,"category":"War & conflict","article":"Cambodian_genocide","body":"The Cambodian genocide was the systematic persecution and killing of Cambodian citizens by the Khmer Rouge under the general secretaryship of Pol Pot. It resulted in the deaths of approximately 2 million people from 1975 to 1979, around 25% of Cambodia's population in 1975 (c. 7.8 million). For many years, Pol Pot and the Khmer Rouge were supported by the Chinese Communist Party (CCP), led by Mao Zedong; it is estimated that at least 90% of the foreign aid which the Khmer Rouge received came from China, including at least US $1 billion in interest-free economic and military aid in 1975 alone.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q2885072","facts":[{"label":"Associated place","value":"Democratic Kampuchea"},{"label":"End year","value":"1979"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q2885072"},{"title":"Cambodian genocide — background and references","url":"https://en.wikipedia.org/wiki/Cambodian_genocide"}],"briefSource":{"title":"Cambodian genocide","url":"https://en.wikipedia.org/wiki/Cambodian_genocide","revision":1384319326,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q3310872","year":1901,"title":"Federation of Australia","place":"Sydney, Australia","region":"Oceania","lat":-33.87,"lon":151.21,"category":"Diplomacy & government","article":"Federation_of_Australia","body":"The federation of Australia was the process by which the six separate British self-governing Australian colonies—New South Wales, Queensland, South Australia (which also governed what is now the Northern Territory), Tasmania, Victoria, and Western Australia—united to form the Commonwealth of Australia, establishing a system of federalism in Australia. The colonies of Fiji and New Zealand were originally part of this process, but they decided not to join the federation. Following federation, the six colonies that united to form the Commonwealth of Australia as states kept the systems of government (and the bicameral legislatures) that they had developed as separate colonies, but they also agreed to have a federal government that was responsible for matters concerning the whole nation.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q3310872","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q3310872"},{"title":"Federation of Australia — background and references","url":"https://en.wikipedia.org/wiki/Federation_of_Australia"}],"briefSource":{"title":"Federation of Australia","url":"https://en.wikipedia.org/wiki/Federation_of_Australia","revision":1382220435,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1520743","year":1867,"title":"Canadian Confederation","place":"Ottawa, Canada","region":"Americas","lat":45.42,"lon":-75.7,"category":"Diplomacy & government","article":"Canadian_Confederation","body":"Canadian Confederation was the process by which three British North American provinces—the Province of Canada, Nova Scotia, and New Brunswick—were united into one federation, called the Dominion of Canada, on July 1, 1867. This process occurred with the rising tide of Canadian nationalism that was then beginning to swell within these provinces and others. It reached fruition through the British North America Act, 1867 (today known as the Constitution Act, 1867) which had been based on resolutions agreed to by colonial delegates in the 1864 Quebec Conference, later finalized in the 1866 London Conference.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1520743","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1520743"},{"title":"Canadian Confederation — background and references","url":"https://en.wikipedia.org/wiki/Canadian_Confederation"}],"briefSource":{"title":"Canadian Confederation","url":"https://en.wikipedia.org/wiki/Canadian_Confederation","revision":1384348187,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1545405","year":1845,"title":"New Zealand Wars","place":"North Island, Aotearoa New Zealand","region":"Oceania","lat":-35.28,"lon":174.12,"category":"War & conflict","article":"New_Zealand_Wars","body":"The New Zealand Wars (Māori: ngā pakanga o Aotearoa) took place from 1845 to 1872 between the New Zealand colonial government and allied Māori on one side, and Māori and Māori-allied settlers on the other. The conflicts did not divide neatly along ethnic lines, as Māori fought on both sides and individuals of European origin also fought alongside Māori forces. Though the wars were initially localised conflicts triggered by tensions over disputed land purchases (by European settlers from Māori), they escalated dramatically from 1860 as the government became convinced it was facing a united Māori resistance to further land sales and a refusal to acknowledge Crown sovereignty.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1545405","facts":[{"label":"Associated place","value":"New Zealand"},{"label":"End year","value":"1872"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1545405"},{"title":"New Zealand Wars — background and references","url":"https://en.wikipedia.org/wiki/New_Zealand_Wars"}],"briefSource":{"title":"New Zealand Wars","url":"https://en.wikipedia.org/wiki/New_Zealand_Wars","revision":1380588701,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q193689","year":1916,"title":"Easter Rising","place":"Dublin, Ireland","region":"Europe","lat":53.35,"lon":-6.26,"category":"Revolutions & independence","article":"Easter_Rising","body":"The Easter Rising (Irish: Éirí Amach na Cásca), also known as the Easter Rebellion, was an armed insurrection in Ireland during Easter Week in April 1916. The Rising was launched by Irish republicans against British rule in Ireland with the aim of establishing an independent Irish Republic while the United Kingdom was fighting the First World War. It was the most significant uprising in Ireland since the rebellion of 1798 and the first armed conflict of the Irish revolutionary period.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q193689","facts":[{"label":"Part of","value":"Irish War of Independence"},{"label":"Associated place","value":"Dublin"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q193689"},{"title":"Easter Rising — background and references","url":"https://en.wikipedia.org/wiki/Easter_Rising"}],"briefSource":{"title":"Easter Rising","url":"https://en.wikipedia.org/wiki/Easter_Rising","revision":1384039955,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q208297","year":1919,"title":"Irish War of Independence","place":"Ireland, representative location","region":"Europe","lat":53.35,"lon":-6.26,"category":"Revolutions & independence","article":"Irish_War_of_Independence","body":"The Irish War of Independence (Irish: Cogadh na Saoirse), also known as the Anglo-Irish War or the Tan War, was a guerrilla war fought in Ireland from 1919 to 1921 between the Irish Republican Army (IRA, the army of the Irish Republic) and British forces: the British Army, along with the quasi-military Royal Irish Constabulary (RIC) and its paramilitary forces the Auxiliaries and Ulster Special Constabulary (USC). It was part of the Irish revolutionary period. In April 1916, Irish republicans launched the Easter Rising against British rule and proclaimed an Irish Republic.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q208297","facts":[{"label":"Associated place","value":"Ireland"},{"label":"End year","value":"1921"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q208297"},{"title":"Irish War of Independence — background and references","url":"https://en.wikipedia.org/wiki/Irish_War_of_Independence"}],"briefSource":{"title":"Irish War of Independence","url":"https://en.wikipedia.org/wiki/Irish_War_of_Independence","revision":1384355447,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q5167679","year":1991,"title":"Dissolution of the Soviet Union","place":"Moscow, Russia","region":"Europe","lat":55.75,"lon":37.62,"category":"Turning points","article":"Dissolution_of_the_Soviet_Union","body":"On 26 December 1991, the Soviet Union was formally dissolved and ceased to exist as a sovereign state. It also brought an end to the Soviet Union's federal government and to Soviet leader Mikhail Gorbachev's efforts to reform the Soviet political and economic system in an attempt to stop a period of political and economic stagnation. The collapse of the Soviet Union in 1991 resulted from several factors: chronic economic stagnation, the unsustainable financial burden of the arms race with the United States and foreign conflicts, intense ethnic nationalism and separatism within its union republics, and the destabilizing effects of Gorbachev's reforms (particularly glasnost and perestroika).","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q5167679","facts":[{"label":"Part of","value":"Revolutions of 1989"},{"label":"Associated place","value":"Soviet Union"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q5167679"},{"title":"Dissolution of the Soviet Union — background and references","url":"https://en.wikipedia.org/wiki/Dissolution_of_the_Soviet_Union"}],"briefSource":{"title":"Dissolution of the Soviet Union","url":"https://en.wikipedia.org/wiki/Dissolution_of_the_Soviet_Union","revision":1384463538,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q242352","year":1991,"title":"Yugoslav Wars","place":"Former Yugoslavia, representative location","region":"Europe","lat":44.82,"lon":20.46,"category":"War & conflict","article":"Yugoslav_Wars","body":"The Yugoslav Wars were a series of separate but related ethnic conflicts, wars of independence, and insurgencies that took place from 1991 to 2001 in what had been the Socialist Federal Republic of Yugoslavia. The conflicts both led up to and resulted from the breakup of Yugoslavia, which began in mid-1991, into six independent countries matching the six republics that had previously constituted Yugoslavia: Slovenia, Croatia, Bosnia and Herzegovina, Montenegro, Serbia, and Macedonia, which was later renamed to North Macedonia. The breakup of Yugoslavia and the accompanying Yugoslav Wars are commonly attributed to increasing nationalism and unresolved ethnic tensions in Yugoslavia.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q242352","facts":[{"label":"Part of","value":"breakup of Yugoslavia"},{"label":"Associated place","value":"Yugoslavia"},{"label":"End year","value":"2001"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q242352"},{"title":"Yugoslav Wars — background and references","url":"https://en.wikipedia.org/wiki/Yugoslav_Wars"}],"briefSource":{"title":"Yugoslav Wars","url":"https://en.wikipedia.org/wiki/Yugoslav_Wars","revision":1383295591,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q170334","year":1995,"title":"Srebrenica massacre","place":"Srebrenica, Bosnia and Herzegovina","region":"Europe","lat":44.11,"lon":19.3,"category":"War & conflict","article":"Srebrenica_massacre","body":"The Srebrenica massacre, also known as the Srebrenica genocide, was the July 1995 genocidal killing of more than 8,000 Bosniak men and boys in and around the town of Srebrenica during the Bosnian War. It was mainly perpetrated by units of the Bosnian Serb Army of Republika Srpska under Ratko Mladić, though the Serb paramilitary unit Scorpions also participated. In addition, 25,000 to 30,000 Bosniaks, mainly women and children, were abused and forcibly moved out of Srebrenica.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q170334","facts":[{"label":"Part of","value":"Bosnian Genocide"},{"label":"Associated place","value":"Srebrenica"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q170334"},{"title":"Srebrenica massacre — background and references","url":"https://en.wikipedia.org/wiki/Srebrenica_massacre"}],"briefSource":{"title":"Srebrenica massacre","url":"https://en.wikipedia.org/wiki/Srebrenica_massacre","revision":1383080298,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q182817","year":1989,"title":"Velvet Revolution","place":"Prague, Czechoslovakia","region":"Europe","lat":50.08,"lon":14.43,"category":"Revolutions & independence","article":"Velvet_Revolution","body":"The Velvet Revolution (Czech: sametová revoluce) or Gentle Revolution (Slovak: nežná revolúcia) was a non-violent transition of power in what was then Czechoslovakia, occurring from 17 November to 28 November 1989. Popular demonstrations against the one-party government of the Communist Party of Czechoslovakia included students and older dissidents. The result was the end of 41 years of one-party rule in Czechoslovakia, and the subsequent dismantling of the command economy and conversion to a parliamentary republic.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q182817","facts":[{"label":"Associated place","value":"Czechoslovakia"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q182817"},{"title":"Velvet Revolution — background and references","url":"https://en.wikipedia.org/wiki/Velvet_Revolution"}],"briefSource":{"title":"Velvet Revolution","url":"https://en.wikipedia.org/wiki/Velvet_Revolution","revision":1379373025,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q193245","year":1974,"title":"Carnation Revolution","place":"Lisbon, Portugal","region":"Asia","lat":38.72,"lon":-9.14,"category":"Revolutions & independence","article":"Carnation_Revolution","body":"The Carnation Revolution (Portuguese: Revolução dos Cravos), code-named Operation Historic Turn, also known as the 25 April, and Portuguese Revolution (Portuguese: Revolução Portuguesa) was a military coup in Portugal by officers that on 25 April 1974 overthrew Marcelo Caetano and the Estado Novo regime established by António de Oliveira Salazar (r. 1932–1968). The coup came in the midst of the Portuguese Colonial War (1961–1974) in its overseas colonies and produced major social, economic, territorial, demographic, and political changes in Portugal and in Angola, Guinea-Bissau, Mozambique, and other former Portuguese colonies through the Ongoing Revolutionary Process.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q193245","facts":[{"label":"Associated place","value":"Portugal"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q193245"},{"title":"Carnation Revolution — background and references","url":"https://en.wikipedia.org/wiki/Carnation_Revolution"}],"briefSource":{"title":"Carnation Revolution","url":"https://en.wikipedia.org/wiki/Carnation_Revolution","revision":1382253246,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q458","year":1993,"title":"European Union","place":"Maastricht, Netherlands, treaty site","region":"Europe","lat":50.85,"lon":5.69,"category":"Diplomacy & government","article":"European_Union","body":"The European Union (EU) is a political and economic union of 27 member states that are located primarily in Europe. A supranational union with a total area of 4,233,255 km2 (1,634,469 sq mi) and an estimated population of just under 452 million as of 2026, its member states generated a nominal gross domestic product (GDP) of around €18.802 trillion in 2025, accounting for approximately one sixth of global economic output. The EU is often described as a sui generis political entity combining characteristics of both a federation and a confederation.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q458","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q458"},{"title":"European Union — background and references","url":"https://en.wikipedia.org/wiki/European_Union"}],"briefSource":{"title":"European Union","url":"https://en.wikipedia.org/wiki/European_Union","revision":1384502542,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q167457","year":1957,"title":"Treaty of Rome","place":"Rome, Italy","region":"Europe","lat":41.89,"lon":12.48,"category":"Diplomacy & government","article":"Treaty_of_Rome","body":"The Treaty of Rome, or EEC Treaty (officially the Treaty establishing the European Economic Community), brought about the creation of the European Economic Community (EEC), the best known of the European Communities (EC). The treaty was signed on 25 March 1957 by Belgium, France, Italy, Luxembourg, the Netherlands and West Germany, and it came into force on 1 January 1958. Originally the \\"Treaty establishing the European Economic Community\\", and now continuing under the name \\"Treaty on the Functioning of the European Union\\", it remains one of the two most important treaties in what is now the European Union (EU).","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q167457","facts":[{"label":"Part of","value":"Treaties of Rome"},{"label":"Associated place","value":"Rome"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q167457"},{"title":"Treaty of Rome — background and references","url":"https://en.wikipedia.org/wiki/Treaty_of_Rome"}],"briefSource":{"title":"Treaty of Rome","url":"https://en.wikipedia.org/wiki/Treaty_of_Rome","revision":1383098912,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q7888194","year":2020,"title":"Brexit","place":"London, United Kingdom","region":"Europe","lat":51.5,"lon":-0.12,"category":"Diplomacy & government","article":"Brexit","body":"Brexit (; a portmanteau of \\"Britain\\" and \\"exit\\") was the withdrawal of the United Kingdom (UK) from the European Union (EU). Brexit took place at 23:00 GMT on 31 January 2020 (00:00 1 February 2020 CET). The UK, which joined the EU precursor, the European Communities (EC), on 1 January 1973, is the only EU member state to have withdrawn, although four overseas territories of member states had previously ceased to exercise membership. Following Brexit, EU law and the Court of Justice of the European Union no longer have primacy over British law, but the UK remains bound by obligations in treaties it has with other countries around the world, including many with EU member states and with the EU itself.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q7888194","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q7888194"},{"title":"Brexit — background and references","url":"https://en.wikipedia.org/wiki/Brexit"}],"briefSource":{"title":"Brexit","url":"https://en.wikipedia.org/wiki/Brexit","revision":1383451016,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q42005","year":1347,"title":"Black Death","place":"Mediterranean Europe, representative location","region":"Europe","lat":37.94,"lon":13.37,"category":"Health & environment","article":"Black_Death","body":"The Black Death was a plague pandemic that occurred in Europe from 1346 to 1353. It was one of the most fatal pandemics in human history, leading to the death of up to 50 million people, around 30% to 60% of the European population and approximately 33% of the Middle Eastern population. The disease was caused by the bacterium Yersinia pestis, which is primarily spread by flea bites, though it may also spread through contact with infected tissues or fluids and, in pneumonic cases, through respiratory droplets.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q42005","facts":[{"label":"Associated place","value":"Asia"},{"label":"End year","value":"1352"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q42005"},{"title":"Black Death — background and references","url":"https://en.wikipedia.org/wiki/Black_Death"}],"briefSource":{"title":"Black Death","url":"https://en.wikipedia.org/wiki/Black_Death","revision":1384230911,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q821711","year":541,"title":"Plague of Justinian","place":"Constantinople, now Istanbul","region":"Asia","lat":41.01,"lon":28.98,"category":"Health & environment","article":"Plague_of_Justinian","body":"The plague of Justinian or Justinianic plague (AD 541–549) was an epidemic of plague that afflicted the entire Mediterranean Basin, Europe, and the Near East, especially the Sasanian Empire and the Byzantine Empire. The plague is named for the Byzantine Emperor Justinian I (r. 527–565) who, according to his court historian Procopius, contracted the disease and recovered in 542, at the height of the epidemic which killed about a fifth of the population in the imperial capital Constantinople. The contagion arrived in Roman Egypt in 541, spread around the Mediterranean Sea until 544, and persisted in Northern Europe and the Arabian Peninsula until 549.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q821711","facts":[{"label":"End year","value":"750"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q821711"},{"title":"Plague of Justinian — background and references","url":"https://en.wikipedia.org/wiki/Plague_of_Justinian"}],"briefSource":{"title":"Plague of Justinian","url":"https://en.wikipedia.org/wiki/Plague_of_Justinian","revision":1383940942,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q178275","year":1918,"title":"Spanish flu","place":"Global pandemic; representative location","region":"Americas","lat":38.9,"lon":-77.04,"category":"Health & environment","article":"Spanish_flu","body":"The 1918–1920 flu pandemic, also known as the Great Influenza epidemic or by the misleading name Spanish flu, was an exceptionally deadly global influenza pandemic caused by the H1N1 subtype of the influenza A virus. The earliest probable cases were documented in March 1918 in Haskell County, Kansas, United States, with further cases recorded in France, Germany and the United Kingdom in April. Two years later, nearly a third of the global population, or an estimated 500 million people, had been infected.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q178275","facts":[{"label":"End year","value":"1920"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q178275"},{"title":"Spanish flu — background and references","url":"https://en.wikipedia.org/wiki/Spanish_flu"}],"briefSource":{"title":"Spanish flu","url":"https://en.wikipedia.org/wiki/Spanish_flu","revision":1379623881,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q5868867","year":1980,"title":"History of smallpox","place":"Geneva, WHO declaration","region":"Europe","lat":46.23,"lon":6.13,"category":"Health & environment","article":"History_of_smallpox","body":"The history of smallpox extends into pre-history. Genetic evidence suggests that the smallpox virus emerged 3,000 to 4,000 years ago. Prior to that, similar ancestral viruses circulated, but possibly only in other mammals, and possibly with different symptoms. Only a few written reports dating from about 500–1000 CE are considered reliable historical descriptions of smallpox, so understanding of the disease prior to that has relied on genetics and archaeology. However, during the second millennium, especially starting in the 16th century, reliable written reports become more common.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q5868867","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q5868867"},{"title":"History of smallpox — background and references","url":"https://en.wikipedia.org/wiki/History_of_smallpox"}],"briefSource":{"title":"History of smallpox","url":"https://en.wikipedia.org/wiki/History_of_smallpox","revision":1384348995,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q12190","year":1928,"title":"Penicillin","place":"London, discovery site","region":"Europe","lat":51.52,"lon":-0.17,"category":"Discovery","article":"Penicillin","body":"Penicillins (P, PCN or PEN) are a group of β-lactam antibiotics originally obtained from Penicillium moulds, principally P. chrysogenum and P. rubens. Eight species of Penicillium, in the section Chrysogena, produce penicillins. Most penicillins in clinical use are synthesised by P. chrysogenum using deep tank fermentation and then purified. A number of natural penicillins have been discovered, but only two purified compounds are in clinical use: penicillin G (intramuscular or intravenous use) and penicillin V (given by mouth).","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q12190","facts":[{"label":"Part of","value":"penicilina:]"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q12190"},{"title":"Penicillin — background and references","url":"https://en.wikipedia.org/wiki/Penicillin"}],"briefSource":{"title":"Penicillin","url":"https://en.wikipedia.org/wiki/Penicillin","revision":1383921405,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1425837","year":1861,"title":"Germ theory of disease","place":"Paris, representative research center","region":"Europe","lat":48.84,"lon":2.31,"category":"Discovery","article":"Germ_theory_of_disease","body":"The germ theory of disease is the currently accepted scientific theory explaining the cause of infectious diseases. It states that microorganisms known as pathogens or \\"germs\\" can cause disease. These small organisms, which are too small to be seen without magnification, invade animals, plants, and even bacteria. Their growth and reproduction within their hosts can cause disease. \\"Germ\\" refers not just to bacteria but to any type of microorganism, such as protists or fungi, or other pathogens, including parasites, viruses, prions, or viroids.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1425837","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1425837"},{"title":"Germ theory of disease — background and references","url":"https://en.wikipedia.org/wiki/Germ_theory_of_disease"}],"briefSource":{"title":"Germ theory of disease","url":"https://en.wikipedia.org/wiki/Germ_theory_of_disease","revision":1363463071,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q20124","year":1859,"title":"On the Origin of Species","place":"London, publication site","region":"Europe","lat":51.51,"lon":-0.13,"category":"Discovery","article":"On_the_Origin_of_Species","body":"On the Origin of Species by Means of Natural Selection, or the Preservation of Favoured Races in the Struggle for Life is a work of scientific literature by the English naturalist Charles Darwin that is considered to be the foundation of evolutionary biology. It was published on 24 November 1859. Darwin's book introduced the scientific theory that populations evolve over the course of generations through a process of natural selection, although Lamarckism was also included as a mechanism of lesser importance.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q20124","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q20124"},{"title":"On the Origin of Species — background and references","url":"https://en.wikipedia.org/wiki/On_the_Origin_of_Species"}],"briefSource":{"title":"On the Origin of Species","url":"https://en.wikipedia.org/wiki/On_the_Origin_of_Species","revision":1384221011,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q205921","year":1687,"title":"Philosophiæ Naturalis Principia Mathematica","place":"London, publication site","region":"Europe","lat":51.51,"lon":-0.13,"category":"Discovery","article":"Philosophiæ_Naturalis_Principia_Mathematica","body":"Philosophiæ Naturalis Principia Mathematica (English: The Mathematical Principles of Natural Philosophy), often called simply the Principia (), is a book by Sir Isaac Newton that expounds Newton's laws of motion and his law of universal gravitation. The Principia is written in Latin and comprises three volumes, and was authorized (imprimatur) by Samuel Pepys, then-president of the Royal Society on 5 July 1686 and first published in 1687. After annotating and correcting his personal copy of the first edition, Newton published two further editions, one of 1713 with errors in the 1687 version corrected, and another, improved one of 1726.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q205921","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q205921"},{"title":"Philosophiæ Naturalis Principia Mathematica — background and references","url":"https://en.wikipedia.org/wiki/Philosophi%C3%A6_Naturalis_Principia_Mathematica"}],"briefSource":{"title":"Philosophiæ Naturalis Principia Mathematica","url":"https://en.wikipedia.org/wiki/Philosophi%C3%A6_Naturalis_Principia_Mathematica","revision":1384221506,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q845981","year":1543,"title":"De revolutionibus orbium coelestium","place":"Nuremberg, publication site","region":"Europe","lat":49.45,"lon":11.08,"category":"Discovery","article":"De_revolutionibus_orbium_coelestium","body":"De revolutionibus orbium coelestium (On the Revolutions of the Heavenly Spheres) is the seminal work on the heliocentric theory of the astronomer Nicolaus Copernicus (1473–1543 CE). The book, first printed in 1543 CE in Nuremberg, Holy Roman Empire, offered an alternative model of the universe to Ptolemy's geocentric system, which had been widely accepted since ancient times.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q845981","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q845981"},{"title":"De revolutionibus orbium coelestium — background and references","url":"https://en.wikipedia.org/wiki/De_revolutionibus_orbium_coelestium"}],"briefSource":{"title":"De revolutionibus orbium coelestium","url":"https://en.wikipedia.org/wiki/De_revolutionibus_orbium_coelestium","revision":1384234965,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q43514","year":1905,"title":"Theory of relativity","place":"Bern, Switzerland","region":"Europe","lat":46.95,"lon":7.45,"category":"Discovery","article":"Theory_of_relativity","body":"The theory of relativity comprises two physics theories by Albert Einstein: special relativity and general relativity, proposed and published in 1905 and 1915, respectively. Special relativity applies to all physical phenomena in the absence of gravity. General relativity explains the law of gravitation and its relation to the forces of nature. It applies to the cosmological and astrophysical realm, including astronomy. The theory transformed theoretical physics and astronomy during the 20th century, superseding a 200-year-old theory of mechanics created primarily by Isaac Newton.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q43514","facts":[{"label":"Part of","value":"modern physics"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q43514"},{"title":"Theory of relativity — background and references","url":"https://en.wikipedia.org/wiki/Theory_of_relativity"}],"briefSource":{"title":"Theory of relativity","url":"https://en.wikipedia.org/wiki/Theory_of_relativity","revision":1371853284,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1344449","year":1938,"title":"Discovery of nuclear fission","place":"Berlin, research site","region":"Europe","lat":52.45,"lon":13.29,"category":"Discovery","article":"Discovery_of_nuclear_fission","body":"Nuclear fission was discovered in December 1938 by chemists Otto Hahn and Fritz Strassmann and physicists Lise Meitner and Otto Robert Frisch. Fission is a nuclear reaction or radioactive decay process in which the nucleus of an atom splits into two or more smaller, lighter nuclei and often other particles. The fission process often produces gamma rays and releases a very large amount of energy, even by the energetic standards of radioactive decay. Scientists already knew about alpha decay and beta decay, but fission assumed great importance because the discovery that a nuclear chain reaction was possible led to the development of nuclear power and nuclear weapons.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1344449","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1344449"},{"title":"Discovery of nuclear fission — background and references","url":"https://en.wikipedia.org/wiki/Discovery_of_nuclear_fission"}],"briefSource":{"title":"Discovery of nuclear fission","url":"https://en.wikipedia.org/wiki/Discovery_of_nuclear_fission","revision":1381619386,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q127050","year":1942,"title":"Manhattan Project","place":"Los Alamos, representative research site","region":"Americas","lat":35.88,"lon":-106.3,"category":"Discovery","article":"Manhattan_Project","body":"The Manhattan Project was a research and development program undertaken during World War II to produce the first nuclear weapons. It was led by the United States in collaboration with the United Kingdom and Canada. The Manhattan Project employed nearly 130,000 people at its peak and cost nearly US$2 billion (equivalent to about $28 billion in 2025). From 1942 to 1946, the project was directed by Major General Leslie Groves of the U.S. Army Corps of Engineers.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q127050","facts":[{"label":"Associated place","value":"Oak Ridge"},{"label":"End year","value":"1946"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q127050"},{"title":"Manhattan Project — background and references","url":"https://en.wikipedia.org/wiki/Manhattan_Project"}],"briefSource":{"title":"Manhattan Project","url":"https://en.wikipedia.org/wiki/Manhattan_Project","revision":1384063802,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q207342","year":1945,"title":"Trinity (nuclear test)","place":"New Mexico, United States","region":"Americas","lat":33.68,"lon":-106.48,"category":"Discovery","article":"Trinity_(nuclear_test)","body":"Trinity was the first detonation of a nuclear weapon, conducted by the United States Army at 5:29 a.m. Mountain War Time (11:29:21 GMT) on July 16, 1945, as part of the Manhattan Project. The test was of an implosion-design plutonium bomb, or \\"gadget\\" – the same design as the Fat Man bomb later detonated over Nagasaki, Japan, on August 9, 1945. Concerns about whether the complex Fat Man design would work led to a decision to conduct the first nuclear test.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q207342","facts":[{"label":"Part of","value":"Manhattan Project"},{"label":"Associated place","value":"Trinity Site"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q207342"},{"title":"Trinity (nuclear test) — background and references","url":"https://en.wikipedia.org/wiki/Trinity_(nuclear_test)"}],"briefSource":{"title":"Trinity (nuclear test)","url":"https://en.wikipedia.org/wiki/Trinity_(nuclear_test)","revision":1379426945,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q80811","year":1957,"title":"Sputnik 1","place":"Baikonur, launch site","region":"Asia","lat":45.92,"lon":63.34,"category":"Discovery","article":"Sputnik_1","body":"Sputnik 1 , often referred to as simply Sputnik, was the first artificial Earth satellite. It was launched into an elliptical low Earth orbit by the Soviet Union on 4 October 1957 as part of the Soviet space program. It sent a radio signal back to Earth for three weeks before its three silver-zinc batteries became depleted. Aerodynamic drag caused it to fall back into the atmosphere on 4 January 1958. It was a polished metal sphere 58 cm (23 in) in diameter with four external radio antennas to broadcast radio pulses.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q80811","facts":[{"label":"Part of","value":"Sputnik programme"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q80811"},{"title":"Sputnik 1 — background and references","url":"https://en.wikipedia.org/wiki/Sputnik_1"}],"briefSource":{"title":"Sputnik 1","url":"https://en.wikipedia.org/wiki/Sputnik_1","revision":1383247326,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q182524","year":1961,"title":"Vostok 1","place":"Baikonur, launch site","region":"Asia","lat":45.92,"lon":63.34,"category":"Discovery","article":"Vostok_1","body":"Vostok 1 was the first spaceflight of the Vostok programme and the first human orbital spaceflight in history. The Vostok 3KA space capsule was launched from Baikonur Cosmodrome on 12 April 1961, with Soviet cosmonaut Yuri Gagarin aboard, making him the first human to reach orbital velocity around the Earth and to complete a full orbit around the Earth. The orbital spaceflight consisted of a single orbit around the Earth that reached a maximum altitude of 327 kilometers (203 miles; 177 nautical miles) and a minimum of 181 kilometers (112 miles; 98 nautical miles).","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q182524","facts":[{"label":"Part of","value":"Vostok programme"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q182524"},{"title":"Vostok 1 — background and references","url":"https://en.wikipedia.org/wiki/Vostok_1"}],"briefSource":{"title":"Vostok 1","url":"https://en.wikipedia.org/wiki/Vostok_1","revision":1373619528,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q48469","year":1977,"title":"Voyager 1","place":"Cape Canaveral, launch site","region":"Asia","lat":28.61,"lon":-80.6,"category":"Discovery","article":"Voyager_1","body":"Voyager 1 is a space probe launched by NASA on September 5, 1977, as part of the Voyager program, to study the outer Solar System and the interstellar space beyond the Sun's heliosphere. It was launched 16 days after its twin, Voyager 2. It communicates through the NASA Deep Space Network (DSN) to receive routine commands and to transmit data to Earth. Real-time distance and velocity data are provided by NASA and JPL. At a distance of 172.52 AU (25.8 billion km; 16.0 billion mi) as of October 2026, it is the most distant human-made object from Earth.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q48469","facts":[{"label":"Part of","value":"Voyager program"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q48469"},{"title":"Voyager 1 — background and references","url":"https://en.wikipedia.org/wiki/Voyager_1"}],"briefSource":{"title":"Voyager 1","url":"https://en.wikipedia.org/wiki/Voyager_1","revision":1384232577,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q2513","year":1990,"title":"Hubble Space Telescope","place":"Kennedy Space Center, launch site","region":"Asia","lat":28.61,"lon":-80.6,"category":"Discovery","article":"Hubble_Space_Telescope","body":"The Hubble Space Telescope (HST or Hubble) is a space telescope that was launched into low Earth orbit in 1990 during the STS-31 and remains in operation. It is regarded as one of the largest and most versatile space telescopes, renowned as a vital research tool and as a public relations boon for astronomy. The Hubble Space Telescope is named after astronomer Edwin Hubble and is one of NASA's Great Observatories. The Space Telescope Science Institute (STScI) selects Hubble's targets and processes the resulting data, while the Goddard Space Flight Center (GSFC) controls the spacecraft.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q2513","facts":[{"label":"Part of","value":"Great Observatories program"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q2513"},{"title":"Hubble Space Telescope — background and references","url":"https://en.wikipedia.org/wiki/Hubble_Space_Telescope"}],"briefSource":{"title":"Hubble Space Telescope","url":"https://en.wikipedia.org/wiki/Hubble_Space_Telescope","revision":1384231189,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q186447","year":2021,"title":"James Webb Space Telescope","place":"Kourou, launch site","region":"Europe","lat":5.24,"lon":-52.77,"category":"Discovery","article":"James_Webb_Space_Telescope","body":"The James Webb Space Telescope (JWST) is a space telescope designed to conduct infrared astronomy. It is the largest telescope in space, and is equipped with high-resolution and high-sensitivity instruments, allowing it to view objects too old, distant, or faint for the Hubble Space Telescope. This enables investigations across many fields of astronomy and cosmology, such as observation of the first stars and the formation of the first galaxies, and detailed atmospheric characterization of potentially habitable exoplanets.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q186447","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q186447"},{"title":"James Webb Space Telescope — background and references","url":"https://en.wikipedia.org/wiki/James_Webb_Space_Telescope"}],"briefSource":{"title":"James Webb Space Telescope","url":"https://en.wikipedia.org/wiki/James_Webb_Space_Telescope","revision":1384141444,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q192446","year":2003,"title":"The Human Genome Project is completed","place":"Bethesda, representative research center","region":"Americas","lat":38.99,"lon":-77.1,"category":"Discovery","article":"Human_Genome_Project","body":"The Human Genome Project (HGP) was an international scientific research project with the goal of determining the base pairs that make up human DNA, and of identifying, mapping and sequencing all of the genes of the human genome from both a physical and a functional standpoint. It started in 1990 and was completed in 2003. It was the world's largest collaborative biological project. Planning for the project began in 1984 by the US government, and it officially launched in 1990.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q192446","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q192446"},{"title":"Human Genome Project — background and references","url":"https://en.wikipedia.org/wiki/Human_Genome_Project"}],"briefSource":{"title":"Human Genome Project","url":"https://en.wikipedia.org/wiki/Human_Genome_Project","revision":1376331013,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q15108645","year":2012,"title":"The Higgs boson is discovered","place":"CERN, Switzerland","region":"Europe","lat":46.23,"lon":6.05,"category":"Discovery","article":"Search_for_the_Higgs_boson","body":"On July 4, 2012, CERN’s ATLAS and CMS collaborations announced a new particle consistent with the long-predicted Higgs boson. Later measurements strengthened its identification. The discovery supported the explanation of how certain elementary particles acquire mass and demonstrated the value of experiments built and analyzed by international scientific teams.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q15108645","facts":[],"sources":[{"title":"CERN — The Higgs boson","url":"https://home.cern/science/physics/higgs-boson/"},{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q15108645"},{"title":"Search for the Higgs boson — background and references","url":"https://en.wikipedia.org/wiki/Search_for_the_Higgs_boson"}],"editorial":true},{"id":"event-q3944788","year":2019,"title":"The first image of a black hole","place":"ALMA, one of the participating observatories","region":"Americas","lat":-23.03,"lon":-67.75,"category":"Discovery","article":"Event_Horizon_Telescope","body":"In April 2019, the Event Horizon Telescope collaboration released the first image of a black hole’s shadow, surrounded by glowing material in the galaxy Messier 87. Researchers combined observations from radio telescopes around the world to create a virtual instrument the size of Earth. The result provided a new way to test ideas about gravity under extreme conditions. It also demonstrated how international coordination and large-scale data analysis could reveal objects previously beyond direct imaging.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q3944788","facts":[],"sources":[{"title":"Event Horizon Telescope — First black hole image","url":"https://eventhorizontelescope.org/press-release-april-10-2019-astronomers-capture-first-image-black-hole"},{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q3944788"},{"title":"Event Horizon Telescope — background and references","url":"https://en.wikipedia.org/wiki/Event_Horizon_Telescope"}],"editorial":true},{"id":"event-q65049774","year":2023,"title":"Chandrayaan-3","place":"Sriharikota, launch site","region":"Asia","lat":13.72,"lon":80.23,"category":"Discovery","article":"Chandrayaan-3","body":"Chandrayaan-3 (CHUN-drə-YAHN ; ; from Sanskrit: Chandra, \\"Moon\\" and yāna, \\"craft, vehicle\\") is the third mission in the Chandrayaan programme, a series of lunar-exploration missions developed by ISRO. The mission consists of Vikram, a lunar lander, and Pragyan, a lunar rover, as replacements for the equivalents on Chandrayaan-2, which had crashed on landing in 2019. Chandrayaan-3 was launched on 14 July 2023, at 14:35 IST from Satish Dhawan Space Centre (SDSC) in Sriharikota, Andhra Pradesh.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q65049774","facts":[{"label":"Part of","value":"Chandrayaan programme"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q65049774"},{"title":"Chandrayaan-3 — background and references","url":"https://en.wikipedia.org/wiki/Chandrayaan-3"}],"briefSource":{"title":"Chandrayaan-3","url":"https://en.wikipedia.org/wiki/Chandrayaan-3","revision":1384409611,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q16947045","year":2026,"title":"Astronauts return to the Moon’s neighborhood","place":"Kennedy Space Center, launch site","region":"Asia","lat":28.61,"lon":-80.6,"category":"Discovery","article":"Artemis_II","body":"Artemis II launched on April 1, 2026, carrying Reid Wiseman, Victor Glover, Christina Koch, and Jeremy Hansen on a crewed journey around the Moon. The mission returned to Earth on April 10. It tested the Orion spacecraft with people aboard and marked a major step in renewed human lunar exploration. This marker shows the Florida launch site; the flight itself traveled through space.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q16947045","facts":[{"label":"Part of","value":"Artemis program"}],"sources":[{"title":"NASA — Artemis II mission and return","url":"https://www.nasa.gov/news-release/nasa-welcomes-record-setting-artemis-ii-moonfarers-back-to-earth/"},{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q16947045"},{"title":"Artemis II — background and references","url":"https://en.wikipedia.org/wiki/Artemis_II"}],"editorial":true},{"id":"event-q48780688","year":2026,"title":"The high seas treaty enters into force","place":"United Nations, New York","region":"Asia","lat":40.75,"lon":-73.97,"category":"Health & environment","article":"High_Seas_Treaty","body":"The international agreement on marine biodiversity beyond national jurisdiction entered into force on January 17, 2026. Often called the High Seas Treaty, it provides a framework for protecting marine ecosystems beyond national waters, assessing environmental impacts, sharing benefits from marine genetic resources, and supporting scientific capacity. Its entry into force begins implementation; it does not mean that all ocean conservation goals have already been achieved.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q48780688","facts":[{"label":"Part of","value":"United Nations Convention on the Law of the Sea"},{"label":"Associated place","value":"New York City"}],"sources":[{"title":"United Nations — BBNJ Agreement","url":"https://www.un.org/bbnjagreement/en"},{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q48780688"},{"title":"High Seas Treaty — background and references","url":"https://en.wikipedia.org/wiki/High_Seas_Treaty"}],"editorial":true},{"id":"event-q21707860","year":2015,"title":"The Paris climate agreement is adopted","place":"Le Bourget, Paris conference site","region":"Europe","lat":48.94,"lon":2.43,"category":"Health & environment","article":"Paris_Agreement","body":"The Paris Agreement (also called the Paris Accords or Paris Climate Accords) is an international treaty on climate change that was signed in 2016. The treaty covers climate change mitigation, adaptation, and finance. The Paris Agreement was negotiated by 196 parties at the 2015 United Nations Climate Change Conference near Paris, France. As of January 2026, 194 members of the United Nations Framework Convention on Climate Change (UNFCCC) are parties to the agreement. Of the three UNFCCC member states which have not ratified the agreement, the only major emitter is Iran.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q21707860","facts":[{"label":"Part of","value":"United Nations Framework Convention on Climate Change"},{"label":"Associated place","value":"Paris"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q21707860"},{"title":"Paris Agreement — background and references","url":"https://en.wikipedia.org/wiki/Paris_Agreement"}],"briefSource":{"title":"Paris Agreement","url":"https://en.wikipedia.org/wiki/Paris_Agreement","revision":1383987377,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q81068910","year":2020,"title":"COVID-19 becomes a global pandemic","place":"Geneva, WHO pandemic announcement","region":"Europe","lat":46.23,"lon":6.13,"category":"Health & environment","article":"COVID-19_pandemic","body":"On March 11, 2020, the World Health Organization characterized COVID-19 as a pandemic. The spread of SARS-CoV-2 caused a global health emergency and disrupted work, education, travel, and daily life. The response included public-health measures, rapid scientific collaboration, and the development of vaccines. The marker identifies WHO headquarters in Geneva, not the geographical origin or full extent of the outbreak.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q81068910","facts":[{"label":"Associated place","value":"Wuhan"}],"sources":[{"title":"WHO — Timeline of the COVID-19 response","url":"https://www.who.int/news/item/29-06-2020-COVIDtimeline"},{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q81068910"},{"title":"COVID-19 pandemic — background and references","url":"https://en.wikipedia.org/wiki/COVID-19_pandemic"}],"editorial":true},{"id":"event-q110999040","year":2022,"title":"Russia launches its full-scale invasion of Ukraine","place":"Kyiv, Ukraine, representative location","region":"Europe","lat":50.45,"lon":30.52,"category":"War & conflict","article":"Russo-Ukrainian_war_(2022–present)","body":"Russia launched its full-scale invasion of Ukraine on February 24, 2022, expanding a conflict that had begun in 2014. Ukrainian resistance, international military and humanitarian assistance, sanctions, and widespread displacement shaped the war. The fighting also affected food supplies, energy markets, and European security. The marker identifies Kyiv as a representative location; the conflict extends far beyond the capital.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q110999040","facts":[{"label":"Part of","value":"post-Soviet conflicts"},{"label":"Associated place","value":"Eastern Europe"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q110999040"},{"title":"Russo-Ukrainian war (2022–present) — background and references","url":"https://en.wikipedia.org/wiki/Russo-Ukrainian_war_(2022%E2%80%93present)"}],"editorial":true},{"id":"event-q10806","year":2001,"title":"September 11 attacks","place":"New York; also Virginia and Pennsylvania","region":"Asia","lat":40.71,"lon":-74.01,"category":"War & conflict","article":"September_11_attacks","body":"The September 11 attacks, colloquially known as 9/11, were a coordinated series of suicide attacks perpetrated by the Islamic terrorist organization al-Qaeda against the United States in 2001. A total of 19 hijackers commandeered four commercial passenger airliners. The first two planes were flown into each of the Twin Towers at the World Trade Center in New York City, while the third plane crashed into the Pentagon, the headquarters of the United States Department of Defense, in Arlington County, Virginia.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q10806","facts":[{"label":"Associated place","value":"Arlington County"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q10806"},{"title":"September 11 attacks — background and references","url":"https://en.wikipedia.org/wiki/September_11_attacks"}],"briefSource":{"title":"September 11 attacks","url":"https://en.wikipedia.org/wiki/September_11_attacks","revision":1384421083,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q130754","year":2004,"title":"2004 Indian Ocean earthquake and tsunami","place":"Off Sumatra, earthquake epicenter","region":"Asia","lat":3.3,"lon":95.98,"category":"Health & environment","article":"2004_Indian_Ocean_earthquake_and_tsunami","body":"On 26 December 2004, at 07:58:53 local time (UTC+7), a Mw 9.2–9.3 earthquake struck with its epicenter off the west coast of Aceh, in northern Sumatra, Indonesia. The undersea megathrust earthquake, known in the scientific community as the Sumatra–Andaman earthquake, was caused by a rupture along the fault boundary between the Burma plate and the Indian plate, and reached a maximum Mercalli intensity of IX in some areas. The earthquake caused a massive tsunami with waves up to 30 m (100 ft) high, referred to by British and Commonwealth media as the Boxing Day tsunami, after the Boxing Day holiday, or the Asian tsunami, which devastated communities along the surrounding coasts of the Indian Ocean, killing an estimated 227,898 people in 14 countries, especially in Aceh in Indonesia, Sri Lanka, Tamil Nadu in India, and Khao Lak in Thailand.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q130754","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q130754"},{"title":"2004 Indian Ocean earthquake and tsunami — background and references","url":"https://en.wikipedia.org/wiki/2004_Indian_Ocean_earthquake_and_tsunami"}],"briefSource":{"title":"2004 Indian Ocean earthquake and tsunami","url":"https://en.wikipedia.org/wiki/2004_Indian_Ocean_earthquake_and_tsunami","revision":1382904983,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q896666","year":2008,"title":"2008 financial crisis","place":"New York, representative financial center","region":"Asia","lat":40.71,"lon":-74.01,"category":"Economy & trade","article":"2008_financial_crisis","body":"The 2008 financial crisis was a major worldwide financial crisis which started in the United States. The first phase was the subprime mortgage crisis, which began in early 2007 as mortgage-backed securities (MBS) tied to U.S. real estate, and a vast web of derivatives linked to those MBS, collapsed in value. A liquidity crisis spread to global institutions by mid-2007 and climaxed with the bankruptcy of Lehman Brothers in September 2008, which triggered a stock market crash and bank runs in several countries.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q896666","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q896666"},{"title":"2008 financial crisis — background and references","url":"https://en.wikipedia.org/wiki/2008_financial_crisis"}],"briefSource":{"title":"2008 financial crisis","url":"https://en.wikipedia.org/wiki/2008_financial_crisis","revision":1384230935,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q136468555","year":2026,"title":"Navi Pillay receives the 2026 Nobel Peace Prize announcement","place":"Oslo, Norway, announcement site","region":"Europe","lat":59.91,"lon":10.73,"category":"Rights & society","article":"2026_Nobel_Peace_Prize","body":"On October 9, 2026, South African jurist Navi Pillay was announced as the recipient of the Nobel Peace Prize. Her career includes international criminal justice and service as United Nations High Commissioner for Human Rights. The announcement places international law, accountability, and human rights at the center of this milestone. The marker identifies Oslo, the announcement location; the award ceremony follows later in the year.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q136468555","facts":[],"sources":[{"title":"United Nations — 2026 Nobel Peace Prize announcement","url":"https://www.un.org/en/former-un-rights-chief-navi-pillay-awarded-nobel-peace-prize"},{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q136468555"},{"title":"2026 Nobel Peace Prize — background and references","url":"https://en.wikipedia.org/wiki/2026_Nobel_Peace_Prize"}],"editorial":true},{"id":"event-q12562","year":1517,"title":"Reformation","place":"Wittenberg, Germany","region":"Europe","lat":51.87,"lon":12.65,"category":"Ideas & belief","article":"Reformation","body":"The Reformation, also known as the Protestant Reformation or the European Reformation, was a major theological movement in Western Christianity in 16th-century Europe that posed a religious and political challenge to the papacy and the authority of the Catholic Church hierarchy. Towards the end of the Renaissance, the Reformation marked the beginning of Protestantism. It is considered one of the events that signified the end of the Middle Ages and the beginning of the early modern period in Europe.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q12562","facts":[{"label":"Associated place","value":"Northwestern Europe"},{"label":"End year","value":"1648"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q12562"},{"title":"Reformation — background and references","url":"https://en.wikipedia.org/wiki/Reformation"}],"briefSource":{"title":"Reformation","url":"https://en.wikipedia.org/wiki/Reformation","revision":1383929787,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q157506","year":1517,"title":"Ninety-five Theses","place":"Wittenberg, Germany","region":"Europe","lat":51.87,"lon":12.65,"category":"Ideas & belief","article":"Ninety-five_Theses","body":"The Ninety-five Theses or Disputation on the Power and Efficacy of Indulgences is a list of propositions for an academic disputation written in 1517 by Martin Luther, then a professor of moral theology at the University of Wittenberg, Germany. The Theses are retrospectively considered to have launched the Protestant Reformation and the birth of Protestantism, despite various quasi- or proto-Protestant groups having existed previously. The Theses aired contemporary theological misgivings about the theory and practice of indulgences and their relation to repentance, penance and papal authority.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q157506","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q157506"},{"title":"Ninety-five Theses — background and references","url":"https://en.wikipedia.org/wiki/Ninety-five_Theses"}],"briefSource":{"title":"Ninety-five Theses","url":"https://en.wikipedia.org/wiki/Ninety-five_Theses","revision":1384223726,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q5599931","year":1054,"title":"Great Schism","place":"Constantinople, representative location","region":"Asia","lat":41.01,"lon":28.98,"category":"Ideas & belief","article":"East–West_Schism","body":"The rupture traditionally dated to 1054 grew from centuries of disagreement between the Greek-speaking and Latin-speaking churches over authority, doctrine, and religious practice. Exchanges of excommunication in Constantinople became a landmark in the separation of Eastern Orthodox and Roman Catholic Christianity. The division developed over time rather than in a single decisive moment, and later conflicts deepened it. The schism reshaped religious institutions and political relationships across Europe and the eastern Mediterranean.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q51648","facts":[],"sources":[{"title":"East–West Schism — background and references","url":"https://en.wikipedia.org/wiki/East%E2%80%93West_Schism"},{"title":"Wikidata — East–West Schism","url":"https://www.wikidata.org/wiki/Q51648"}],"editorial":true},{"id":"event-q232572","year":325,"title":"Council of Nicaea","place":"Nicaea, now İznik","region":"Asia","lat":40.43,"lon":29.72,"category":"Ideas & belief","article":"First_Council_of_Nicaea","body":"Emperor Constantine convened Christian bishops at Nicaea in 325 to address divisions within the church. Their debates focused especially on the relationship between Jesus Christ and God the Father, producing the first form of the Nicene Creed. The council also addressed church discipline and the observance of Easter. Its decisions became a foundation for later Christian doctrine, while the gathering established an influential model for councils called to resolve disputes across the church.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q133331","facts":[],"sources":[{"title":"First Council of Nicaea — background and references","url":"https://en.wikipedia.org/wiki/First_Council_of_Nicaea"},{"title":"Wikidata — First Council of Nicaea","url":"https://www.wikidata.org/wiki/Q133331"}],"editorial":true},{"id":"event-q180764","year":313,"title":"Edict of Milan","place":"Milan, Italy","region":"Europe","lat":45.46,"lon":9.19,"category":"Ideas & belief","article":"Edict_of_Milan","body":"The Edict of Milan was the 13 February 313 AD agreement to treat Christians benevolently within the Roman Empire and allow religious freedom more broadly. Western Roman Emperor Constantine I and Emperor Licinius, who controlled the Balkans, met in Mediolanum (modern-day Milan) and, among other things, agreed to change policies towards Christians following the edict of toleration issued by Emperor Galerius two years earlier in Serdica. The document is found in Lactantius's De mortibus persecutorum and in Eusebius of Caesarea's History of the Church with marked divergences between the two.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q180764","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q180764"},{"title":"Edict of Milan — background and references","url":"https://en.wikipedia.org/wiki/Edict_of_Milan"}],"briefSource":{"title":"Edict of Milan","url":"https://en.wikipedia.org/wiki/Edict_of_Milan","revision":1382088290,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q172991","year":1545,"title":"Council of Trent","place":"Trent, Italy","region":"Europe","lat":46.07,"lon":11.12,"category":"Ideas & belief","article":"Council_of_Trent","body":"The Council of Trent , held between 1545 and 1563 in Trent (or Trento), in Northern Italy, was the 19th ecumenical council of the Catholic Church. Prompted by the Protestant Reformation at the time, it has been described as the \\"most characteristic embodiment of the ideals of the Counter-Reformation.\\" It was the last time a Catholic ecumenical council was organized outside the city of Rome, and the second time a council was convened in the territory of the Holy Roman Empire (the first being the Council of Constance).","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q172991","facts":[{"label":"Associated place","value":"Trento"},{"label":"End year","value":"1563"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q172991"},{"title":"Council of Trent — background and references","url":"https://en.wikipedia.org/wiki/Council_of_Trent"}],"briefSource":{"title":"Council of Trent","url":"https://en.wikipedia.org/wiki/Council_of_Trent","revision":1382971215,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q4692","year":1400,"title":"Renaissance","place":"Florence, representative center","region":"Europe","lat":43.77,"lon":11.26,"category":"Art & culture","article":"Renaissance","body":"The Renaissance (UK: rin-AY-sənss, US: REN-ə-sahnss, \\"rebirth\\") was a European period of history and cultural movement taking place at the end of the Late Middle Ages and the beginning of the early modern era. It is variously defined as covering the 15th and 16th centuries or, more broadly, as lasting from the 14th century to the 17th. It was characterized by the European rediscovery and revival of the literary, philosophical, and artistic achievements of classical antiquity.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q4692","facts":[{"label":"Associated place","value":"Europe"},{"label":"End year","value":"1650"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q4692"},{"title":"Renaissance — background and references","url":"https://en.wikipedia.org/wiki/Renaissance"}],"briefSource":{"title":"Renaissance","url":"https://en.wikipedia.org/wiki/Renaissance","revision":1381289358,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q15042830","year":1700,"title":"Enlightenment","place":"Paris, representative center","region":"Europe","lat":48.86,"lon":2.35,"category":"Ideas & belief","article":"Age_of_Enlightenment","body":"Across the late seventeenth and eighteenth centuries, Enlightenment thinkers applied reason, observation, and debate to questions of government, religion, science, and society. Books, salons, academies, and expanding print networks carried arguments about liberty, toleration, and political authority across borders. These ideas helped shape reform movements and revolutions, although thinkers disagreed about their meaning and application. The date marks an approximate period of intellectual change rather than a single event or founding moment.","approximate":true,"imageNote":"No verified historical image available","catalog":true,"qid":"Q12539","facts":[],"sources":[{"title":"Age of Enlightenment — background and references","url":"https://en.wikipedia.org/wiki/Age_of_Enlightenment"},{"title":"Wikidata — Age of Enlightenment","url":"https://www.wikidata.org/wiki/Q12539"}],"editorial":true},{"id":"event-q214078","year":1543,"title":"Scientific Revolution","place":"Europe, representative publication site","region":"Europe","lat":49.45,"lon":11.08,"category":"Discovery","article":"Scientific_Revolution","body":"The Scientific Revolution of the 16th and 17th centuries in Europe was an irreversible break with the natural philosophy that had preceded it, fundamentally changing how the natural world was investigated and understood. The New Science that emerged departed from previous Greek conceptions and traditions, was more mechanistic in its worldview and more integrated with mathematics, and was focused on the acquisition and interpretation of new evidence. The Scientific Revolution is a convenient boundary between ancient thought and modern science.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q214078","facts":[{"label":"Associated place","value":"Europe"},{"label":"End year","value":"1687"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q214078"},{"title":"Scientific Revolution — background and references","url":"https://en.wikipedia.org/wiki/Scientific_Revolution"}],"briefSource":{"title":"Scientific Revolution","url":"https://en.wikipedia.org/wiki/Scientific_Revolution","revision":1384488981,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q2269","year":1760,"title":"Industrial Revolution","place":"Britain, representative industrial center","region":"Europe","lat":52.49,"lon":-1.9,"category":"Economy & trade","article":"Industrial_Revolution","body":"The Industrial Revolution, sometimes called the First Industrial Revolution in contrast to the subsequent Second Industrial Revolution, was a transitional period of the global economy toward more widespread, efficient and stable manufacturing processes, succeeding the Second Agricultural Revolution. Beginning in Great Britain around 1760, the Industrial Revolution had spread to continental Europe and the United States by about 1840. Economic historians agree that the onset of the Industrial Revolution is the most important event in human history, comparable only to the adoption of agriculture for material advancement.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q2269","facts":[{"label":"End year","value":"1820"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q2269"},{"title":"Industrial Revolution — background and references","url":"https://en.wikipedia.org/wiki/Industrial_Revolution"}],"briefSource":{"title":"Industrial Revolution","url":"https://en.wikipedia.org/wiki/Industrial_Revolution","revision":1384305441,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q899","year":1869,"title":"Suez Canal","place":"Suez Canal, Egypt","region":"Africa","lat":30.59,"lon":32.27,"category":"Economy & trade","article":"Suez_Canal","body":"The Suez Canal is an artificial sea-level waterway in Egypt, connecting the Mediterranean Sea to the Red Sea through the Isthmus of Suez and dividing Africa and Asia (and by extension, the Sinai Peninsula from the rest of Egypt). The 193.3-kilometre-long (120.1-mile) canal is a key trade route between Europe and Asia. In 1858, French diplomat Ferdinand de Lesseps formed the Compagnie de Suez for the express purpose of building the canal. Construction of the canal lasted from 1859 to 1869 and it officially opened on 17 November 1869.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q899","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q899"},{"title":"Suez Canal — background and references","url":"https://en.wikipedia.org/wiki/Suez_Canal"}],"briefSource":{"title":"Suez Canal","url":"https://en.wikipedia.org/wiki/Suez_Canal","revision":1384487045,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q7350","year":1914,"title":"Panama Canal","place":"Panama","region":"Americas","lat":9.08,"lon":-79.68,"category":"Economy & trade","article":"Panama_Canal","body":"The Panama Canal (Spanish: Canal de Panamá) is an artificial 82-kilometer (51-mile) waterway in Panama that connects the Caribbean Sea in the Atlantic Ocean with the Pacific Ocean. It cuts across the narrowest point of the Isthmus of Panama and is a conduit for maritime trade between the Atlantic Ocean and the Pacific Ocean. Locks at each end lift ships up to Gatun Lake, an artificial fresh water lake 26 meters (85 ft) above sea level, created by damming the Chagres River and Lake Alajuela to reduce the amount of excavation work required for the canal.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q7350","facts":[{"label":"Part of","value":"Seven Wonders of the Modern World"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q7350"},{"title":"Panama Canal — background and references","url":"https://en.wikipedia.org/wiki/Panama_Canal"}],"briefSource":{"title":"Panama Canal","url":"https://en.wikipedia.org/wiki/Panama_Canal","revision":1384443333,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q36288","year":-130,"title":"Silk Road","place":"Chang'an, representative eastern terminus","region":"Asia","lat":34.26,"lon":108.95,"category":"Economy & trade","article":"Silk_Road","body":"The Silk Road was a network of Asian trade routes active from the second century BCE until the mid-15th century. Spanning over 6,400 km (4,000 mi) on land, it played a central role in facilitating economic, cultural, political, and religious interactions between the Eastern and Western worlds. The name \\"Silk Road\\" was coined in the late 19th century, but some 20th- and 21st-century historians instead prefer the term Silk Routes, on the grounds that it more accurately describes the intricate web of land and sea routes connecting Central, East, South, Southeast, and West Asia as well as East Africa and Southern Europe.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q36288","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q36288"},{"title":"Silk Road — background and references","url":"https://en.wikipedia.org/wiki/Silk_Road"}],"briefSource":{"title":"Silk Road","url":"https://en.wikipedia.org/wiki/Silk_Road","revision":1383990391,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q133641","year":1415,"title":"Age of Discovery","place":"Ceuta, representative early expansion site","region":"Africa","lat":35.89,"lon":-5.31,"category":"Discovery","article":"Age_of_Discovery","body":"The Age of Discovery (c. 1418 – c. 1620), also known as the Age of Exploration, was part of the early modern period and overlapped with the Age of Sail. It was a period from approximately the 15th to the 17th century, during which seafarers from European countries explored, colonized, and conquered regions across the globe. The Age of Discovery was a transformative period when previously isolated parts of the world became connected to form the world-system, and laid the groundwork for globalization.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q133641","facts":[{"label":"End year","value":"1800"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q133641"},{"title":"Age of Discovery — background and references","url":"https://en.wikipedia.org/wiki/Age_of_Discovery"}],"briefSource":{"title":"Age of Discovery","url":"https://en.wikipedia.org/wiki/Age_of_Discovery","revision":1383925721,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1225170","year":1519,"title":"Magellan expedition","place":"Sanlúcar de Barrameda, departure site","region":"Europe","lat":36.78,"lon":-6.35,"category":"Discovery","article":"Magellan_expedition","body":"The Magellan–Elcano expedition was a 16th-century Spanish expedition planned and initially led by Portuguese explorer Ferdinand Magellan and completed by the Spanish navigator Juan Sebastián Elcano which resulted in the first circumnavigation of the Earth. Its purpose was to secure a maritime trade route with the Moluccas, or Spice Islands, in present-day Indonesia. The expedition departed Spain in 1519 and returned there in 1522 under the command of Elcano, who continued the voyage after Magellan's death in the Philippines.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1225170","facts":[{"label":"End year","value":"1522"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1225170"},{"title":"Magellan expedition — background and references","url":"https://en.wikipedia.org/wiki/Magellan_expedition"}],"briefSource":{"title":"Magellan expedition","url":"https://en.wikipedia.org/wiki/Magellan_expedition","revision":1383451358,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q7328","year":1498,"title":"A sea route from Europe reaches India","place":"Calicut, arrival of the sea route from Europe","region":"Asia","lat":11.26,"lon":75.78,"category":"Discovery","article":"Vasco_da_Gama","body":"Vasco da Gama’s fleet reached Calicut on India’s southwestern coast in 1498 after sailing around southern Africa and across the Indian Ocean. The voyage connected Europe directly to maritime trade routes already used by African, Arab, Indian, and Asian merchants. It opened a new phase of Portuguese commercial and military expansion in the region. The achievement was a European navigational milestone within a much older, internationally connected Indian Ocean trading world.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q7328","facts":[],"sources":[{"title":"Vasco da Gama — background and references","url":"https://en.wikipedia.org/wiki/Vasco_da_Gama"},{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q7328"}],"editorial":true},{"id":"event-q7333","year":1405,"title":"Zheng He’s treasure fleets set sail","place":"Nanjing, fleet preparation center","region":"Asia","lat":32.06,"lon":118.8,"category":"Discovery","article":"Zheng_He","body":"Beginning in 1405, fleets commanded by Zheng He carried Ming China’s envoys, goods, and military power through the Indian Ocean. Their voyages connected Chinese ports with Southeast Asia, South Asia, the Arabian Peninsula, and eastern Africa. Diplomacy and trade were central purposes, alongside displays of imperial authority. The expeditions illustrate the scale of maritime connections before European oceanic expansion and the influence that state-sponsored voyages could exert on distant trading networks.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q7333","facts":[],"sources":[{"title":"Zheng He — background and references","url":"https://en.wikipedia.org/wiki/Zheng_He"},{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q7333"}],"editorial":true},{"id":"event-q180897","year":1494,"title":"Treaty of Tordesillas","place":"Tordesillas, Spain","region":"Europe","lat":41.5,"lon":-5,"category":"Diplomacy & government","article":"Treaty_of_Tordesillas","body":"The Treaty of Tordesillas, signed in Tordesillas, Spain, on 7 June 1494, and ratified in Setúbal, Portugal, divided the newly discovered lands outside Europe between the Kingdom of Portugal and the Crown of Castile, along a meridian 370 leagues (c. 2,100 km or 1,300 mi) west of the Cape Verde islands, off the west coast of Africa. That line of demarcation was about halfway between Cape Verde (already Portuguese) and the islands visited by Christopher Columbus on his first voyage (claimed for Castile and León), thought then to be Cipangu and Antillia, but in fact Cuba and Hispaniola; the treaty itself does not mention Cipangu nor Antillia. The lands to the east would belong to Portugal and the lands to the west to Castile, modifying an earlier bull by Pope Alexander VI.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q180897","facts":[{"label":"Associated place","value":"Tordesillas"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q180897"},{"title":"Treaty of Tordesillas — background and references","url":"https://en.wikipedia.org/wiki/Treaty_of_Tordesillas"}],"briefSource":{"title":"Treaty of Tordesillas","url":"https://en.wikipedia.org/wiki/Treaty_of_Tordesillas","revision":1381059298,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q238262","year":1842,"title":"Treaty of Nanking","place":"Nanjing, China","region":"Asia","lat":32.06,"lon":118.8,"category":"Diplomacy & government","article":"Treaty_of_Nanking","body":"The Treaty of Nanjing was the peace treaty which ended the First Opium War (1839–1842) between Great Britain and the Qing dynasty of China on 29 August 1842. It was the second of what the Chinese later termed the unequal treaties, after the rejected 1841 Convention of Chuenpi, signed by British Superintendent of trade in China, Charles Elliot, and Qing Imperial Commissioner, Qishan, which the treaty was largely based on. In the wake of China's military defeat, with British warships poised to attack Nanjing (then romanized as Nanking), British and Chinese officials negotiated on board HMS Cornwallis anchored in the Yangtze at the city.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q238262","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q238262"},{"title":"Treaty of Nanking — background and references","url":"https://en.wikipedia.org/wiki/Treaty_of_Nanking"}],"briefSource":{"title":"Treaty of Nanking","url":"https://en.wikipedia.org/wiki/Treaty_of_Nanking","revision":1381667438,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q169390","year":1833,"title":"Britain passes the Slavery Abolition Act","place":"London, British Slavery Abolition Act","region":"Europe","lat":51.5,"lon":-0.12,"category":"Rights & society","article":"Abolitionism","body":"Britain’s Parliament passed the Slavery Abolition Act in 1833 after sustained resistance by enslaved people and campaigning by abolitionists. The act took effect in 1834 across much of the British Empire, but many people were forced into an apprenticeship system that continued until 1838. Compensation went to former slave owners rather than those who had been enslaved. The legislation was a major step toward emancipation, while leaving profound inequalities and colonial systems of coercion in place.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q169390","facts":[],"sources":[{"title":"UK National Archives — The 1833 Act and compensation","url":"https://www.nationalarchives.gov.uk/explore-the-collection/explore-by-time-period/georgians/1833-abolition-of-slavery-act-and-compensation-claims/"},{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q169390"},{"title":"Abolitionism — background and references","url":"https://en.wikipedia.org/wiki/Abolitionism"}],"editorial":true},{"id":"event-q2736155","year":1848,"title":"Seneca Falls Convention","place":"Seneca Falls, New York","region":"Americas","lat":42.91,"lon":-76.8,"category":"Rights & society","article":"Seneca_Falls_Convention","body":"The Seneca Falls Convention was the first women's rights convention. Its organizers advertised it as \\"a convention to discuss the social, civil, and religious condition and rights of woman\\". Held in the Wesleyan Chapel of the town of Seneca Falls, New York, it spanned two days over July 19–20, 1848. Attracting widespread attention, it was soon followed by other women's rights conventions, including the Rochester Women's Rights Convention in Rochester, New York, two weeks later.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q2736155","facts":[{"label":"Associated place","value":"Seneca Falls"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q2736155"},{"title":"Seneca Falls Convention — background and references","url":"https://en.wikipedia.org/wiki/Seneca_Falls_Convention"}],"briefSource":{"title":"Seneca Falls Convention","url":"https://en.wikipedia.org/wiki/Seneca_Falls_Convention","revision":1370695282,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q40591","year":1848,"title":"The Communist Manifesto","place":"London, publication site","region":"Europe","lat":51.51,"lon":-0.13,"category":"Ideas & belief","article":"The_Communist_Manifesto","body":"The Communist Manifesto, originally the Manifesto of the Communist Party, is a political pamphlet written by Karl Marx and Friedrich Engels. It was commissioned by the Communist League and published in London in 1848. The text represents the first and most systematic attempt by the two founders of scientific socialism to codify for wide consumption the historical materialist idea; namely, that \\"the history of all hitherto existing society is the history of class struggles\\", in which social classes are defined by the relationship of people to the means of production.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q40591","facts":[{"label":"Part of","value":"Karl Marx bibliography"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q40591"},{"title":"The Communist Manifesto — background and references","url":"https://en.wikipedia.org/wiki/The_Communist_Manifesto"}],"briefSource":{"title":"The Communist Manifesto","url":"https://en.wikipedia.org/wiki/The_Communist_Manifesto","revision":1384221044,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q233562","year":1776,"title":"The Wealth of Nations","place":"London, publication site","region":"Europe","lat":51.51,"lon":-0.13,"category":"Ideas & belief","article":"The_Wealth_of_Nations","body":"An Inquiry into the Nature and Causes of the Wealth of Nations, usually referred to by its shortened title The Wealth of Nations, is a book by Scottish economist and moral philosopher Adam Smith. Published on 9 March 1776 as Smith's central intellectual project, the treatise sought to examine and explain the underlying political and economic principles by which commercial and industrial societies generate wealth. It has become a fundamental work in classical economics, and been described as \\"the first formulation of a comprehensive system of political economy\\".","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q233562","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q233562"},{"title":"The Wealth of Nations — background and references","url":"https://en.wikipedia.org/wiki/The_Wealth_of_Nations"}],"briefSource":{"title":"The Wealth of Nations","url":"https://en.wikipedia.org/wiki/The_Wealth_of_Nations","revision":1384231650,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q131969","year":-480,"title":"Battle of Thermopylae","place":"Thermopylae","region":"Europe","lat":38.796,"lon":22.537,"category":"War & conflict","article":"Battle_of_Thermopylae","body":"The Battle of Thermopylae () was fought in 480 BC at Thermopylae between the Achaemenid Persian Empire under Xerxes and an alliance of Greek city-states led by Sparta under Leonidas I. The engagement occurred simultaneously with the naval Battle of Artemisium: between July and September during 480 BC. The second Persian invasion under Xerxes was a delayed response to the failure of the first Persian invasion, which had been initiated by Darius I and ended in 490 BC by an Athenian-led Greek victory at the Battle of Marathon.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q131969","facts":[{"label":"Part of","value":"Second Persian invasion of Greece"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q131969"},{"title":"Battle of Thermopylae — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Thermopylae"}],"briefSource":{"title":"Battle of Thermopylae","url":"https://en.wikipedia.org/wiki/Battle_of_Thermopylae","revision":1384142191,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q620735","year":2008,"title":"Russo-Georgian War","place":"South Ossetia","region":"Asia","lat":41.989,"lon":44.418,"category":"War & conflict","article":"Russo-Georgian_War","body":"The Russo-Georgian War, also known as the Russian invasion of Georgia, was a war waged against Georgia by the Russian Federation and the Russian-backed separatist regions of South Ossetia and Abkhazia in August 2008. The fighting took place in the strategically important South Caucasus region. It is regarded as the first European war of the 21st century. Following the 1991 Georgian independence referendum, the Georgian Soviet Socialist Republic declared independence as a sovereign state amidst the dissolution of the Soviet Union.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q620735","facts":[{"label":"Part of","value":"Abkhazia conflict"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q620735"},{"title":"Russo-Georgian War — background and references","url":"https://en.wikipedia.org/wiki/Russo-Georgian_War"}],"briefSource":{"title":"Russo-Georgian War","url":"https://en.wikipedia.org/wiki/Russo-Georgian_War","revision":1384413882,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q486124","year":624,"title":"Battle of Badr","place":"Badr","region":"Asia","lat":23.733,"lon":38.767,"category":"War & conflict","article":"Battle_of_Badr","body":"The Battle of Badr or sometimes called The Raid of Badr , also referred to as The Day of the Criterion in the Qur'an and by Muslims, was fought on 13 March 624 CE (17 Ramadan, 2 AH), near the city of Badr, Medina Province in present-day Saudi Arabia. Muhammad, commanding an army of his Sahaba, defeated an army of the Quraysh led by Amr ibn Hisham, better known among Muslims as Abu Jahl. The battle marked the beginning of the six-year war between Muhammad and his tribe.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q486124","facts":[{"label":"Part of","value":"battles of Muhammad"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q486124"},{"title":"Battle of Badr — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Badr"}],"briefSource":{"title":"Battle of Badr","url":"https://en.wikipedia.org/wiki/Battle_of_Badr","revision":1380867863,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q127751","year":1455,"title":"Wars of the Roses","place":"Kingdom of England","region":"Europe","lat":52.067,"lon":-1.317,"category":"War & conflict","article":"Wars_of_the_Roses","body":"The Wars of the Roses, known at the time and in the following centuries as the Civil Wars, were a series of armed confrontations, machinations, battles and campaigns fought for control of the English throne from 1455 to 1487. The conflict was fought between supporters of the House of York (whose emblem was a white rose) and the House of Lancaster (whose emblem, by 1485, was a red rose), two rival cadet branches of the royal House of Plantagenet. The conflict resulted in the end of Lancaster's male line in 1471, leaving the Tudor family to inherit, through the female line, the Lancaster claim to the throne.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q127751","facts":[{"label":"End year","value":"1487"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q127751"},{"title":"Wars of the Roses — background and references","url":"https://en.wikipedia.org/wiki/Wars_of_the_Roses"}],"briefSource":{"title":"Wars of the Roses","url":"https://en.wikipedia.org/wiki/Wars_of_the_Roses","revision":1382117120,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q6683","year":1846,"title":"Mexican–American War","place":"Mexico","region":"Americas","lat":23,"lon":-102,"category":"War & conflict","article":"Mexican–American_War","body":"The Mexican–American War, also known in the United States as the Mexican War and in Mexico as the United States intervention in Mexico, (April 25, 1846 – February 2, 1848) was an invasion of Mexico by the United States. It followed the 1845 American annexation of Texas, which Mexico still considered its territory because it refused to recognize the Treaties of Velasco, signed by President Antonio López de Santa Anna after he was captured by the Texian Army during the 1836 Texas Revolution. The Republic of Texas was de facto an independent country, but most of its Anglo-American citizens who had moved from the United States to Texas after 1822 wanted to be annexed by the United States.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q6683","facts":[{"label":"Part of","value":"Mexico–United States relations"},{"label":"End year","value":"1848"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q6683"},{"title":"Mexican–American War — background and references","url":"https://en.wikipedia.org/wiki/Mexican%E2%80%93American_War"}],"briefSource":{"title":"Mexican–American War","url":"https://en.wikipedia.org/wiki/Mexican%E2%80%93American_War","revision":1383914260,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q134900605","year":2025,"title":"Twelve-Day War","place":"Middle East","region":"Asia","lat":28,"lon":45,"category":"War & conflict","article":"Twelve-Day_War","body":"The Twelve-Day War, also known as the Second Imposed War by Iran, was an armed conflict between Iran and Israel which lasted from 13 to 24 June 2025. It began when Israel bombed military and nuclear facilities in Iran in a surprise attack, assassinating prominent military leaders, nuclear scientists, and politicians, killing civilians, and damaging or destroying air defenses. Iran retaliated with over 550 ballistic missiles and over 1,000 suicide drones, hitting civilian population centers, one hospital and at least twelve military, energy, and government sites.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q134900605","facts":[{"label":"Part of","value":"Middle Eastern crisis (2023–present)"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q134900605"},{"title":"Twelve-Day War — background and references","url":"https://en.wikipedia.org/wiki/Twelve-Day_War"}],"briefSource":{"title":"Twelve-Day War","url":"https://en.wikipedia.org/wiki/Twelve-Day_War","revision":1384484244,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q134114","year":1805,"title":"Battle of Austerlitz","place":"Slavkov u Brna","region":"Europe","lat":49.128,"lon":16.763,"category":"War & conflict","article":"Battle_of_Austerlitz","body":"The Battle of Austerlitz was fought on Monday 2 December 1805, near Austerlitz (then in the Austrian Empire, now in the Czech Republic), being the decisive engagement of the War of the Third Coalition. The Grande Armée under the command of Emperor Napoleon I defeated a combined Russo-Austrian army. One force was an imperial Russian army under the command of Tsar Alexander I and General Mikhail Kutuzov, while the other comprised an imperial Austrian army under the command of Emperor Francis II.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q134114","facts":[{"label":"Part of","value":"War of the Third Coalition"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q134114"},{"title":"Battle of Austerlitz — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Austerlitz"}],"briefSource":{"title":"Battle of Austerlitz","url":"https://en.wikipedia.org/wiki/Battle_of_Austerlitz","revision":1383573655,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q174205","year":1877,"title":"Russo-Turkish War (1877–1878)","place":"Balkans","region":"Europe","lat":42.75,"lon":44.5,"category":"War & conflict","article":"Russo-Turkish_War_(1877–1878)","body":"The Russo-Turkish War (1877–1878) was a conflict between the Ottoman Empire and a coalition led by the Russian Empire which included Romania, Serbia, and Montenegro. Precipitating factors included the Russian goals of recovering territorial losses endured during the Crimean War of 1853–1856, re-establishing itself in the Black Sea and supporting the political movement attempting to free Balkan nations from the Ottoman Empire. The Russian-led coalition won the war, pushing the Ottomans back all the way to the gates of Constantinople, leading to the intervention of the Western European great powers.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q174205","facts":[{"label":"Part of","value":"Great Eastern Crisis"},{"label":"End year","value":"1878"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q174205"},{"title":"Russo-Turkish War (1877–1878) — background and references","url":"https://en.wikipedia.org/wiki/Russo-Turkish_War_(1877%E2%80%931878)"}],"briefSource":{"title":"Russo-Turkish War (1877–1878)","url":"https://en.wikipedia.org/wiki/Russo-Turkish_War_(1877%E2%80%931878)","revision":1382521346,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q130861","year":1943,"title":"Battle of Kursk","place":"Kursk","region":"Europe","lat":51.7,"lon":36.1,"category":"War & conflict","article":"Battle_of_Kursk","body":"The Battle of Kursk, also called the Battle of the Kursk Salient, was a major World War II Eastern Front battle between the forces of Nazi Germany and the Soviet Union near Kursk in southwestern Russia during the summer of 1943, resulting in a Soviet victory. The Battle of Kursk is the single largest battle in the history of warfare. It ranks only behind the Battle of Stalingrad several months earlier as the most often-cited turning point in the European theatre of the war.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q130861","facts":[{"label":"Part of","value":"Eastern Front"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q130861"},{"title":"Battle of Kursk — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Kursk"}],"briefSource":{"title":"Battle of Kursk","url":"https://en.wikipedia.org/wiki/Battle_of_Kursk","revision":1381518838,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q49104","year":2006,"title":"2006 Lebanon War","place":"Southern Lebanon","region":"Asia","lat":32.833,"lon":35.333,"category":"War & conflict","article":"2006_Lebanon_War","body":"The 2006 Lebanon War was a 34-day armed conflict in Lebanon, fought between Hezbollah and Israel. The war started on 12 July 2006 and continued until a United Nations-brokered ceasefire went into effect in the morning on 14 August 2006, though it formally ended on 8 September 2006 when Israel lifted its naval blockade of Lebanon. It marked the third Israeli invasion into Lebanon since 1978. After Israel's withdrawal from southern Lebanon in 2000, Hezbollah aimed for the release of Lebanese citizens held in Israeli prisons.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q49104","facts":[{"label":"Part of","value":"Israeli–Lebanese conflict"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q49104"},{"title":"2006 Lebanon War — background and references","url":"https://en.wikipedia.org/wiki/2006_Lebanon_War"}],"briefSource":{"title":"2006 Lebanon War","url":"https://en.wikipedia.org/wiki/2006_Lebanon_War","revision":1384413877,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q190029","year":1998,"title":"Kosovo War","place":"Kosovo","region":"Europe","lat":42.5,"lon":21,"category":"War & conflict","article":"Kosovo_War","body":"The Kosovo War (Albanian: Lufta e Kosovës; Serbian: Косовски рат, Kosovski rat) was an armed conflict in Kosovo that lasted from 28 February 1998 until 11 June 1999. It was fought between the forces of the Federal Republic of Yugoslavia (FRY), which controlled Kosovo before the war, and the Kosovo Albanian separatist militia known as the Kosovo Liberation Army (KLA). The conflict ended when the North Atlantic Treaty Organization (NATO) intervened by beginning air strikes in March 1999 which resulted in Yugoslav forces withdrawing from Kosovo.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q190029","facts":[{"label":"Part of","value":"Yugoslav Wars"},{"label":"End year","value":"1999"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q190029"},{"title":"Kosovo War — background and references","url":"https://en.wikipedia.org/wiki/Kosovo_War"}],"briefSource":{"title":"Kosovo War","url":"https://en.wikipedia.org/wiki/Kosovo_War","revision":1384439738,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q99659280","year":2020,"title":"Second Nagorno-Karabakh War","place":"Nagorno-Karabakh","region":"Asia","lat":40.3,"lon":47.7,"category":"War & conflict","article":"Second_Nagorno-Karabakh_War","body":"The Second Nagorno-Karabakh War was an armed conflict in 2020 that took place in the disputed region of Nagorno-Karabakh and the surrounding occupied territories. It was a major escalation of an unresolved conflict over the region, involving Azerbaijan, Armenia and the self-declared Armenian breakaway state of Artsakh. The war lasted for 44 days and resulted in Azerbaijani victory, with the defeat igniting anti-government protests in Armenia. Post-war skirmishes continued in the region, including substantial clashes in 2022.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q99659280","facts":[{"label":"Part of","value":"Nagorno-Karabakh conflict"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q99659280"},{"title":"Second Nagorno-Karabakh War — background and references","url":"https://en.wikipedia.org/wiki/Second_Nagorno-Karabakh_War"}],"briefSource":{"title":"Second Nagorno-Karabakh War","url":"https://en.wikipedia.org/wiki/Second_Nagorno-Karabakh_War","revision":1384417370,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q6743","year":1968,"title":"May 68","place":"France","region":"Europe","lat":47,"lon":2,"category":"War & conflict","article":"May_68","body":"May 68 was a period of protests, riots, strikes, and civil unrest in France, that began in May 1968, and became one of the most significant social uprisings in modern European history. Sparked by student demonstrations against university conditions and government repression, the movement escalated into a nationwide general strike involving millions of workers, bringing the country to the brink of revolution. The events have profoundly shaped French politics, labor relations, and cultural life, leaving a legacy of radical thought and activism.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q6743","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q6743"},{"title":"May 68 — background and references","url":"https://en.wikipedia.org/wiki/May_68"}],"briefSource":{"title":"May 68","url":"https://en.wikipedia.org/wiki/May_68","revision":1384175864,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q186284","year":1919,"title":"Polish–Soviet War","place":"Central and Eastern Europe","region":"Europe","lat":50,"lon":20,"category":"War & conflict","article":"Polish–Soviet_War","body":"The Polish–Soviet War (14 February 1919 – 18 March 1921) was fought primarily between the Second Polish Republic and the Russian Soviet Federative Socialist Republic, following World War I and the Russian Revolution. After the collapse of the Central Powers and the Armistice of 11 November 1918, Vladimir Lenin's Soviet Russia annulled the Treaty of Brest-Litovsk and moved forces westward to reclaim the Ober Ost regions abandoned by the Germans. Lenin viewed the newly independent Poland as a critical route for spreading communist revolutions into Europe.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q186284","facts":[{"label":"Part of","value":"Russian Civil War"},{"label":"End year","value":"1921"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q186284"},{"title":"Polish–Soviet War — background and references","url":"https://en.wikipedia.org/wiki/Polish%E2%80%93Soviet_War"}],"briefSource":{"title":"Polish–Soviet War","url":"https://en.wikipedia.org/wiki/Polish%E2%80%93Soviet_War","revision":1377471110,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q153650","year":1866,"title":"Austro-Prussian War","place":"Bohemia","region":"Europe","lat":49.833,"lon":14.333,"category":"War & conflict","article":"Austro-Prussian_War","body":"The Austro-Prussian War was fought in 1866 between the Austrian Empire and the Kingdom of Prussia, with each also being aided by various allies within the German Confederation. Prussia had also allied with the Kingdom of Italy, linking this conflict to the Third Independence War of Italian unification. The Austro-Prussian War was part of the wider rivalry between Austria and Prussia, and resulted in Prussian dominance over the German states, having confirmed Prussia's superiority in military organization and technology over Austria at the time.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q153650","facts":[{"label":"Part of","value":"unification of Germany"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q153650"},{"title":"Austro-Prussian War — background and references","url":"https://en.wikipedia.org/wiki/Austro-Prussian_War"}],"briefSource":{"title":"Austro-Prussian War","url":"https://en.wikipedia.org/wiki/Austro-Prussian_War","revision":1383632690,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q119860532","year":2023,"title":"Wagner Group rebellion","place":"European Russia","region":"Europe","lat":60,"lon":50,"category":"War & conflict","article":"Wagner_Group_rebellion","body":"On 23 June 2023, the Wagner Group, a Russian private military company, staged an uprising against the Russian government. It marked the climax of the Wagner Group–Ministry of Defense conflict, which had begun about six months earlier. Russian oligarch Yevgeny Prigozhin, who had been leading Wagner Group activities in Ukraine, stood down after reaching an agreement a day later. Amidst the Russian invasion of Ukraine, Prigozhin had come to publicly express his resentment towards Minister of Defence Sergei Shoigu and Chief of the General Staff Valery Gerasimov; he frequently blamed both men for Russia's military inadequacies, especially during the Wagner-led battle of Bakhmut, and accused them of handing over \\"Russian territories\\" to the Ukrainians.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q119860532","facts":[{"label":"Part of","value":"Wagner Group–Russian Ministry of Defence conflict"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q119860532"},{"title":"Wagner Group rebellion — background and references","url":"https://en.wikipedia.org/wiki/Wagner_Group_rebellion"}],"briefSource":{"title":"Wagner Group rebellion","url":"https://en.wikipedia.org/wiki/Wagner_Group_rebellion","revision":1372812761,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q178510","year":1526,"title":"Battle of Mohács","place":"Sátorhely","region":"Europe","lat":45.941,"lon":18.633,"category":"War & conflict","article":"Battle_of_Mohács","body":"The Battle of Mohács took place on 29 August 1526 near Mohács, in the Kingdom of Hungary. It was fought between the forces of Hungary, led by King Louis II, and the invading Ottoman Empire, commanded by Suleiman the Magnificent and his grand vizier, Pargalı Ibrahim Pasha. The Ottomans achieved a decisive victory through superior planning, firepower, and a well-executed encirclement that overwhelmed the Hungarian forces. The Hungarian army, encouraged by the nobility to engage prematurely, launched a frontal assault that collapsed under coordinated Ottoman counterattacks.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q178510","facts":[{"label":"Part of","value":"Hungarian–Ottoman War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q178510"},{"title":"Battle of Mohács — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Moh%C3%A1cs"}],"briefSource":{"title":"Battle of Mohács","url":"https://en.wikipedia.org/wiki/Battle_of_Moh%C3%A1cs","revision":1374663967,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q418151","year":1856,"title":"Second Opium War","place":"Qing dynasty","region":"Asia","lat":38,"lon":103,"category":"War & conflict","article":"Second_Opium_War","body":"The Second Opium War , also known as the Second Anglo-Chinese War or Arrow War, was fought between the United Kingdom and France against the Qing dynasty of China between 1856 and 1860. It was the second major conflict in the Opium Wars, which were fought over the right to import opium to China, and resulted in a second defeat for the Qing and the forced legalisation of the opium trade. It caused many Chinese officials to believe that conflicts with the Western powers were no longer traditional wars, but part of a looming national crisis.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q418151","facts":[{"label":"Part of","value":"Opium Wars"},{"label":"End year","value":"1860"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q418151"},{"title":"Second Opium War — background and references","url":"https://en.wikipedia.org/wiki/Second_Opium_War"}],"briefSource":{"title":"Second Opium War","url":"https://en.wikipedia.org/wiki/Second_Opium_War","revision":1384336347,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q151290","year":1941,"title":"Battle of Moscow","place":"Moscow Oblast","region":"Europe","lat":55.752,"lon":37.632,"category":"War & conflict","article":"Battle_of_Moscow","body":"The Battle of Moscow was a military campaign that consisted of two periods of strategically significant fighting on a 600 km (370 mi) sector of the Eastern Front during World War II, between October 1941 and January 1942. The Soviet defensive effort thwarted Germany's attack on Moscow, the capital and largest city of the Soviet Union. Moscow was one of the primary military and political objectives for Axis forces in their invasion of the Soviet Union.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q151290","facts":[{"label":"Part of","value":"World War II"},{"label":"End year","value":"1942"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q151290"},{"title":"Battle of Moscow — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Moscow"}],"briefSource":{"title":"Battle of Moscow","url":"https://en.wikipedia.org/wiki/Battle_of_Moscow","revision":1383720168,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q488278","year":625,"title":"Battle of Uhud","place":"Mount Uhud","region":"Asia","lat":24.503,"lon":39.612,"category":"War & conflict","article":"Battle_of_Uhud","body":"The Battle of Uhud was fought between the early Muslims and the Quraysh during the Muslim–Quraysh wars in a valley north of Medina near Mount Uhud on Saturday, 23 March 625 AD (7 Shawwal, 3 AH). Following the Muslim emigration to Medina, hostilities with the Quraysh intensified, largely due to Muslim raids on Meccan trade caravans. In 624, the Quraysh suffered a major defeat at Badr, during which several of their leaders were killed. The following year, Abu Sufyan ibn Harb led a force of approximately 3,000 men toward Medina to avenge the loss.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q488278","facts":[{"label":"Part of","value":"battles of Muhammad"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q488278"},{"title":"Battle of Uhud — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Uhud"}],"briefSource":{"title":"Battle of Uhud","url":"https://en.wikipedia.org/wiki/Battle_of_Uhud","revision":1384526427,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q184320","year":1812,"title":"Battle of Borodino","place":"Borodino","region":"Europe","lat":55.517,"lon":35.817,"category":"War & conflict","article":"Battle_of_Borodino","body":"The Battle of Borodino or the Battle of the Moskva took place on the outskirts of Moscow near the village of Borodino on 7 September 1812, during Napoleon's invasion of Russia. The Grande Armée fought against the Imperial Russian Army. After the Russian retreat at the Battle of Smolensk, the road to Moscow lay open. Napoleon fought against General Mikhail Kutuzov, whom the Emperor Alexander I had appointed to replace Barclay de Tolly on 29 August after Smolensk was razed and captured by the French and Polish forces.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q184320","facts":[{"label":"Part of","value":"French invasion of Russia"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q184320"},{"title":"Battle of Borodino — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Borodino"}],"briefSource":{"title":"Battle of Borodino","url":"https://en.wikipedia.org/wiki/Battle_of_Borodino","revision":1379952654,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q49097","year":1948,"title":"1948 Palestine war","place":"Levant","region":"Asia","lat":34,"lon":36,"category":"War & conflict","article":"1948_Palestine_war","body":"The 1948 Palestine war (30 November 1947 – 10 March 1949), known in Palestine as the Nakba and in Israel as the War of Independence, was fought in the territory of what had been, at the start of the war, British-ruled Mandatory Palestine. It began as a civil war between the Arab and Jewish communities following the United Nations Partition Plan and became an international conflict with the Declaration of the Establishment of the State of Israel, the termination of the British mandate, and the entry of the armies of neighbouring Arab states into Palestine. During the war, Zionist forces conquered about 78% of the former territory of the mandate, causing the expulsion and flight of over 700,000 Palestinians.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q49097","facts":[{"label":"End year","value":"1949"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q49097"},{"title":"1948 Palestine war — background and references","url":"https://en.wikipedia.org/wiki/1948_Palestine_war"}],"briefSource":{"title":"1948 Palestine war","url":"https://en.wikipedia.org/wiki/1948_Palestine_war","revision":1384211649,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q68969","year":1991,"title":"Croatian War of Independence","place":"Croatia","region":"Europe","lat":45.25,"lon":15.467,"category":"War & conflict","article":"Croatian_War_of_Independence","body":"The Croatian War of Independence was an armed conflict fought in Croatia from 1991 to 1995 between Croat forces loyal to the Government of Croatia—which had declared independence from the Socialist Federal Republic of Yugoslavia (SFRY)—and the Serb-controlled Yugoslav People's Army (JNA) and local Serb forces, with the JNA ending its combat operations by 1992. A majority of Croats supported Croatia's independence from Yugoslavia, while many ethnic Serbs living in Croatia, supported by Serbia, opposed the secession and advocated Serb-claimed lands to be in a common state with Serbia. Most Serbs sought a new Serb state within a Yugoslav federation, including areas of Croatia and Bosnia and Herzegovina with ethnic Serb majorities or significant minorities, and attempted to conquer as much of Croatia as possible.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q68969","facts":[{"label":"Part of","value":"Yugoslav Wars"},{"label":"End year","value":"1995"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q68969"},{"title":"Croatian War of Independence — background and references","url":"https://en.wikipedia.org/wiki/Croatian_War_of_Independence"}],"briefSource":{"title":"Croatian War of Independence","url":"https://en.wikipedia.org/wiki/Croatian_War_of_Independence","revision":1382697616,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q626058","year":680,"title":"Battle of Karbala","place":"Karbala","region":"Asia","lat":32.615,"lon":44.031,"category":"War & conflict","article":"Battle_of_Karbala","body":"The Battle of Karbala was fought on 10 October 680 (10 Muharram in the year 61 AH of the Islamic calendar) between the forces of the second Umayyad caliph Yazid I (r. 680–683), and a small army led by Husayn ibn Ali, second son of Ali and grandson of the Islamic prophet Muhammad, at Karbala, in modern-day southern Iraq. Prior to his death, the Umayyad caliph Mu'awiya I (r. 661–680) appointed his son Yazid as his successor, making the caliphate hereditary. Yazid's nomination was contested by Husayn and other notables, and after Mu'awiya died in 680, Yazid demanded allegiance from Husayn and the other dissidents.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q626058","facts":[{"label":"Part of","value":"Second Fitna"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q626058"},{"title":"Battle of Karbala — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Karbala"}],"briefSource":{"title":"Battle of Karbala","url":"https://en.wikipedia.org/wiki/Battle_of_Karbala","revision":1383935169,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q188495","year":1415,"title":"Battle of Agincourt","place":"Azincourt","region":"Europe","lat":50.463,"lon":2.141,"category":"War & conflict","article":"Battle_of_Agincourt","body":"The Battle of Agincourt was an English victory in the Hundred Years' War (1337–1453). It took place on 25 October 1415 (Saint Crispin's Day) near Azincourt, in northern France. The unexpected victory of the vastly outnumbered English troops over the French army boosted English morale, crippled France, and began a new period of English dominance in the war. This advantage lasted for 14 years, until England was defeated by France in 1429 during the Siege of Orléans.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q188495","facts":[{"label":"Part of","value":"Hundred Years' War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q188495"},{"title":"Battle of Agincourt — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Agincourt"}],"briefSource":{"title":"Battle of Agincourt","url":"https://en.wikipedia.org/wiki/Battle_of_Agincourt","revision":1381691069,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1413732","year":1947,"title":"Kashmir conflict","place":"Kashmir","region":"Asia","lat":34.5,"lon":76,"category":"War & conflict","article":"Kashmir_conflict","body":"The Kashmir conflict is a territorial conflict over the Kashmir region, primarily between India and Pakistan, and also between China and India in the northeastern portion of the region. The conflict started after the partition of India in 1947 as both India and Pakistan claimed the entirety of the former princely state of Jammu and Kashmir. It is a dispute over the region that escalated into three wars between India and Pakistan and several other armed skirmishes.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1413732","facts":[{"label":"Part of","value":"Indo-Pakistani wars and conflicts"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1413732"},{"title":"Kashmir conflict — background and references","url":"https://en.wikipedia.org/wiki/Kashmir_conflict"}],"briefSource":{"title":"Kashmir conflict","url":"https://en.wikipedia.org/wiki/Kashmir_conflict","revision":1384368947,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q58947","year":1864,"title":"Paraguayan War","place":"Southern Cone","region":"Americas","lat":-39.1,"lon":-67.9,"category":"War & conflict","article":"Paraguayan_War","body":"The Paraguayan War, also known as the War of the Triple Alliance, was a war in South America that lasted from 1864 to 1870. It was fought between Paraguay and the Triple Alliance of Argentina, Brazil and Uruguay. It was the deadliest inter-state war in Latin American history. Paraguay sustained immense casualties, but even the approximate numbers are disputed. Paraguay was forced to cede disputed territory to Argentina and Brazil. The war began in late 1864, as a result of a conflict between Paraguay and Brazil caused by the Uruguayan War.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q58947","facts":[{"label":"Part of","value":"Platine Wars"},{"label":"End year","value":"1870"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q58947"},{"title":"Paraguayan War — background and references","url":"https://en.wikipedia.org/wiki/Paraguayan_War"}],"briefSource":{"title":"Paraguayan War","url":"https://en.wikipedia.org/wiki/Paraguayan_War","revision":1384446121,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q246863","year":1558,"title":"Livonian War","place":"Northern Europe","region":"Europe","lat":57,"lon":14,"category":"War & conflict","article":"Livonian_War","body":"The Livonian War (1558–1583) concerned the control of Old Livonia (in the territory of present-day Estonia and Latvia). The Tsardom of Russia faced a varying coalition of the Dano-Norwegian Realm, the Kingdom of Sweden, and the Union (later Commonwealth) of the Grand Duchy of Lithuania and the Kingdom of Poland. From 1558 to 1578, Russia dominated the region with early military successes at Dorpat (Tartu) and Narva. The Russian dissolution of the Livonian Confederation brought Poland–Lithuania into the conflict, and Sweden and Denmark-Norway intervened between 1559 and 1561.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q246863","facts":[{"label":"Part of","value":"Northern Wars"},{"label":"End year","value":"1583"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q246863"},{"title":"Livonian War — background and references","url":"https://en.wikipedia.org/wiki/Livonian_War"}],"briefSource":{"title":"Livonian War","url":"https://en.wikipedia.org/wiki/Livonian_War","revision":1376268115,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q192660","year":1945,"title":"Battle of Okinawa","place":"Okinawa Islands","region":"Asia","lat":26.5,"lon":128,"category":"War & conflict","article":"Battle_of_Okinawa","body":"The Battle of Okinawa , codenamed Operation Iceberg, was a major battle of the Pacific War fought on the island of Okinawa by the United States Army and United States Marine Corps forces against the Imperial Japanese Army. The initial invasion of Okinawa on 1 April 1945 was the largest amphibious assault in the Pacific Theater of World War II. The Kerama Islands surrounding Okinawa were preemptively captured on 26 March 1945 by the U.S.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q192660","facts":[{"label":"Part of","value":"Volcano and Ryukyu Islands campaign"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q192660"},{"title":"Battle of Okinawa — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Okinawa"}],"briefSource":{"title":"Battle of Okinawa","url":"https://en.wikipedia.org/wiki/Battle_of_Okinawa","revision":1383786097,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q200056","year":-202,"title":"Battle of Zama","place":"Zama Regia","region":"Africa","lat":36.299,"lon":9.449,"category":"War & conflict","article":"Battle_of_Zama","body":"The Battle of Zama was fought in 202 BC in what is now Tunisia between a Roman army commanded by Scipio Africanus and a Carthaginian army commanded by Hannibal. The battle was part of the Second Punic War and resulted in such a severe defeat for the Carthaginians that they capitulated, while Hannibal was forced into exile. The Roman army of approximately 40,000 men was outnumbered by the Carthaginians who fielded either 40,000 or 50,000; the Romans were stronger in cavalry, but the Carthaginians had 80 war elephants.","approximate":true,"imageNote":"No verified historical image available","catalog":true,"qid":"Q200056","facts":[{"label":"Part of","value":"Second Punic War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q200056"},{"title":"Battle of Zama — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Zama"}],"briefSource":{"title":"Battle of Zama","url":"https://en.wikipedia.org/wiki/Battle_of_Zama","revision":1384328652,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q826083","year":627,"title":"Battle of the Trench","place":"Medina","region":"Asia","lat":24.47,"lon":39.61,"category":"War & conflict","article":"Battle_of_the_Trench","body":"The Battle of the Trench , also known as the Battle of Khandaq and the Battle of the Confederates , was part of the conflict between the Muslims and the Quraysh. The Quraysh advanced towards the Muslims, who defended themselves in Medina by digging a trench around their settlement at the suggestion of Salman the Persian. The battle took place in 627 and lasted around two weeks, resulting in five to six casualties reported by the Muslim, and three casualties amongst the Quraysh.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q826083","facts":[{"label":"Part of","value":"battles of Muhammad"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q826083"},{"title":"Battle of the Trench — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_the_Trench"}],"briefSource":{"title":"Battle of the Trench","url":"https://en.wikipedia.org/wiki/Battle_of_the_Trench","revision":1381954285,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q203225","year":1066,"title":"Battle of Stamford Bridge","place":"Stamford Bridge","region":"Europe","lat":53.993,"lon":-0.912,"category":"War & conflict","article":"Battle_of_Stamford_Bridge","body":"The Battle of Stamford Bridge took place at the village of Stamford Bridge, East Riding of Yorkshire, in England, on 25 September 1066, between an English army under King Harold Godwinson and an invading Norwegian force led by King Harald Hardrada and the English king's brother Tostig Godwinson. After a bloody battle, both Hardrada and Tostig, along with most of the Norwegians, were killed. Although Harold Godwinson repelled the Norwegian invaders, his army was defeated by the Normans at Hastings less than three weeks later.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q203225","facts":[{"label":"Part of","value":"Viking activity in the British Isles"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q203225"},{"title":"Battle of Stamford Bridge — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Stamford_Bridge"}],"briefSource":{"title":"Battle of Stamford Bridge","url":"https://en.wikipedia.org/wiki/Battle_of_Stamford_Bridge","revision":1381806420,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q242099","year":1931,"title":"Mukden incident","place":"Shenyang","region":"Asia","lat":41.835,"lon":123.466,"category":"War & conflict","article":"Mukden_incident","body":"The Mukden incident was a false flag event staged by Japanese military personnel as a pretext for the 1931 Japanese invasion of Manchuria. On September 18, 1931, Lieutenant Suemori Kawamoto of the Independent Garrison Unit of the 29th Japanese Infantry Regiment detonated a small quantity of dynamite close to a railway line owned by Japan's South Manchuria Railway near Mukden (now Shenyang). The explosion was so weak that it failed to destroy the track, and a train passed over it minutes later.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q242099","facts":[{"label":"Part of","value":"Japanese invasion of Manchuria"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q242099"},{"title":"Mukden incident — background and references","url":"https://en.wikipedia.org/wiki/Mukden_incident"}],"briefSource":{"title":"Mukden incident","url":"https://en.wikipedia.org/wiki/Mukden_incident","revision":1383987327,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q201526","year":-333,"title":"Battle of Issus","place":"Issus","region":"Asia","lat":36.838,"lon":36.211,"category":"War & conflict","article":"Battle_of_Issus","body":"The Battle of Issus (also Issos) occurred in southern Anatolia, on 5 November 333 BC between the Hellenic League led by Alexander the Great and the Achaemenid (or Persian) Empire, led by Darius III. It was the second major battle in Alexander's invasion of the Persian empire, and the first encounter between Darius III and Alexander the Great. The battle resulted in the Macedonian troops defeating the Persian forces. Darius was forced to flee, leaving behind his family and treasury which were captured by Alexander.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q201526","facts":[{"label":"Part of","value":"Wars of Alexander the Great"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q201526"},{"title":"Battle of Issus — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Issus"}],"briefSource":{"title":"Battle of Issus","url":"https://en.wikipedia.org/wiki/Battle_of_Issus","revision":1383040678,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q243684","year":1270,"title":"Eighth Crusade","place":"Tunis","region":"Africa","lat":36.801,"lon":10.18,"category":"War & conflict","article":"Eighth_Crusade","body":"The Eighth Crusade was the second Crusade launched by Louis IX of France, this one against the Hafsid dynasty in Ifriqiya in 1270. It is also known as the Crusade of Louis IX Against Tunis or the Second Crusade of Louis. The Crusade did not see any significant fighting as Louis died of dysentery shortly after arriving on the shores of Tunisia. The Treaty of Tunis was negotiated between the Crusaders and the Hafsids. No changes in territory occurred, though there were commercial and some political rights granted to the Christians.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q243684","facts":[{"label":"Part of","value":"Crusades"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q243684"},{"title":"Eighth Crusade — background and references","url":"https://en.wikipedia.org/wiki/Eighth_Crusade"}],"briefSource":{"title":"Eighth Crusade","url":"https://en.wikipedia.org/wiki/Eighth_Crusade","revision":1379989332,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q209387","year":1402,"title":"Battle of Ankara","place":"Çubuk Ovası","region":"Asia","lat":40.15,"lon":32.95,"category":"War & conflict","article":"Battle_of_Ankara","body":"The Battle of Ankara or Angora (Ottoman Turkish: آنقره محاربه‌سی, romanized: Anḳara Muḥârebesi) was fought on 28 July 1402, at the Çubuk plain near Ankara, between the forces of Timur and the Ottoman sultan Bayezid I. The battle was a major victory for Timur, leading to the Ottoman Interregnum.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q209387","facts":[{"label":"Part of","value":"Timurid invasion of the Ottoman Empire"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q209387"},{"title":"Battle of Ankara — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Ankara"}],"briefSource":{"title":"Battle of Ankara","url":"https://en.wikipedia.org/wiki/Battle_of_Ankara","revision":1382952727,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q152218","year":1688,"title":"Nine Years' War","place":"Europe","region":"Americas","lat":-21,"lon":-59,"category":"War & conflict","article":"Nine_Years'_War","body":"The Nine Years' War was a European great power conflict from 1688 to 1697 between France and the Grand Alliance. Fought primarily in Europe, related conflicts include the Williamite war in Ireland, and King William's War in North America. The 1678 Treaty of Nijmegen that ended the Franco-Dutch War was the highpoint of the French expansionist policies pursued by Louis XIV. Over the next few years, he continued attempts to strengthen France's frontiers, culminating in the 1683 to 1684 War of the Reunions.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q152218","facts":[{"label":"End year","value":"1697"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q152218"},{"title":"Nine Years' War — background and references","url":"https://en.wikipedia.org/wiki/Nine_Years'_War"}],"briefSource":{"title":"Nine Years' War","url":"https://en.wikipedia.org/wiki/Nine_Years%27_War","revision":1382442001,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q404517","year":1999,"title":"Kargil War","place":"Kargil district","region":"Asia","lat":34.017,"lon":76.4,"category":"War & conflict","article":"Kargil_War","body":"The Kargil War, also known as the Kargil conflict, was fought between India and Pakistan from May to July 1999 in the Kargil district of Ladakh, then part of the Indian-administered state of Jammu and Kashmir and along the Line of Control (LoC). In India, the conflict is also referred to as Operation Vijay (lit. 'Victory'), which was the codename of the Indian military operation in the region. The Indian Air Force acted jointly with the Indian Army to flush out the Pakistan Army and paramilitary troops from vacated Indian positions along the LoC, in what was designated as Operation Safed Sagar (lit.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q404517","facts":[{"label":"Part of","value":"Kashmir conflict"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q404517"},{"title":"Kargil War — background and references","url":"https://en.wikipedia.org/wiki/Kargil_War"}],"briefSource":{"title":"Kargil War","url":"https://en.wikipedia.org/wiki/Kargil_War","revision":1383352572,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q210354","year":1380,"title":"Battle of Kulikovo","place":"Kulikovo Field","region":"Europe","lat":53.653,"lon":38.654,"category":"War & conflict","article":"Battle_of_Kulikovo","body":"The Battle of Kulikovo was fought between the forces of Mamai, a powerful Mongol military commander of the Golden Horde, and Russian forces led by Grand Prince Dmitry of Moscow. The battle took place on 8 September 1380, at Kulikovo Field near the Don River (now Tula Oblast, Russia) and was won by Dmitry, who became known as Donskoy (\\"of the Don\\") after the battle. Although the victory did not end Mongol domination over Russia, it is traditionally regarded as the turning point at which Mongol influence began to wane and Moscow's power began to rise.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q210354","facts":[{"label":"Part of","value":"Mongol invasion of Kievan Rus'"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q210354"},{"title":"Battle of Kulikovo — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Kulikovo"}],"briefSource":{"title":"Battle of Kulikovo","url":"https://en.wikipedia.org/wiki/Battle_of_Kulikovo","revision":1373506174,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q204636","year":-479,"title":"Battle of Plataea","place":"Plataea","region":"Europe","lat":38.24,"lon":23.318,"category":"War & conflict","article":"Battle_of_Plataea","body":"The Battle of Plataea was the final land battle during the second Persian invasion of Greece. It took place in August 479 BC near the city of Plataea in Boeotia, and was fought between an Achaemenid army led by Mardonius (allied with Boeotia, Thessaly, and Macedon) and the Spartan-led Hellenic alliance including Athens, Corinth, Tegea, Megara and other city-states. At the preceding Battle of Salamis, the allied Greek navy had won an unlikely but decisive victory, preventing the conquest of the Peloponnese region.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q204636","facts":[{"label":"Part of","value":"Second Persian invasion of Greece"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q204636"},{"title":"Battle of Plataea — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Plataea"}],"briefSource":{"title":"Battle of Plataea","url":"https://en.wikipedia.org/wiki/Battle_of_Plataea","revision":1375049994,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q201692","year":1356,"title":"Battle of Poitiers","place":"Nouaillé-Maupertuis","region":"Europe","lat":46.522,"lon":0.403,"category":"War & conflict","article":"Battle_of_Poitiers","body":"The Battle of Poitiers was fought on 19 September 1356, during the Hundred Years' War, between a French army commanded by King John II and an Anglo-Gascon force under Edward, the Black Prince. It took place in western France, 5 miles (8 km) south of Poitiers, when approximately 14,000 to 16,000 French attacked a strong defensive position held by 6,000 Anglo-Gascons. Nineteen years after the start of the war, Edward, the Black Prince, the eldest son and heir of King Edward III of England, launched a major campaign in south-west France.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q201692","facts":[{"label":"Part of","value":"Hundred Years' War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q201692"},{"title":"Battle of Poitiers — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Poitiers"}],"briefSource":{"title":"Battle of Poitiers","url":"https://en.wikipedia.org/wiki/Battle_of_Poitiers","revision":1384379272,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q200716","year":-338,"title":"Battle of Chaeronea (338 BC)","place":"Chaeronea","region":"Europe","lat":38.495,"lon":22.848,"category":"War & conflict","article":"Battle_of_Chaeronea_(338_BC)","body":"The Battle of Chaeronea was fought in 338 BC, near the city of Chaeronea in Boeotia, between Macedonia under Philip II and an alliance of Greek city-states led by Athens and Thebes. The battle was the culmination of Philip's final campaigns in 339–338 BC and resulted in a decisive victory for the Macedonians and their allies. Philip had brought peace to a war-torn Greece in 346 BC by ending the Third Sacred War and separately concluding his ten-year conflict with Athens for supremacy in the north Aegean with the Peace of Philocrates.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q200716","facts":[{"label":"Part of","value":"Fourth Sacred War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q200716"},{"title":"Battle of Chaeronea (338 BC) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Chaeronea_(338_BC)"}],"briefSource":{"title":"Battle of Chaeronea (338 BC)","url":"https://en.wikipedia.org/wiki/Battle_of_Chaeronea_(338_BC)","revision":1383165436,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q27759","year":1346,"title":"Battle of Crécy","place":"Crécy-en-Ponthieu","region":"Europe","lat":50.256,"lon":1.888,"category":"War & conflict","article":"Battle_of_Crécy","body":"The Battle of Crécy took place on 26 August 1346 in northern France between a French army commanded by King Philip VI and an English army led by King Edward III. The French attacked the English while they were traversing northern France during the Hundred Years' War, resulting in an English victory and heavy loss of life among the French. The English army had landed in the Cotentin Peninsula on 12 July. It had burnt a path of destruction through some of the richest lands in France to within 2 miles (3 km) of Paris, sacking many towns on the way.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q27759","facts":[{"label":"Part of","value":"Hundred Years' War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q27759"},{"title":"Battle of Crécy — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Cr%C3%A9cy"}],"briefSource":{"title":"Battle of Crécy","url":"https://en.wikipedia.org/wiki/Battle_of_Cr%C3%A9cy","revision":1382479459,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q138107","year":1813,"title":"War of the Sixth Coalition","place":"Central Europe","region":"Europe","lat":51,"lon":10,"category":"War & conflict","article":"War_of_the_Sixth_Coalition","body":"The War of the Sixth Coalition , sometimes known in Germany as the Wars of Liberation saw a coalition of Austria, Prussia, Russia, Spain, the United Kingdom, Portugal, Sweden, Sardinia, and a number of German states defeat the First French Empire and force Napoleon into exile on Elba. Following the disastrous French invasion of Russia in 1812 in which they had been forced to support France, Prussia and Austria joined Russia, Britain, Sweden, Portugal and Spain against France. The invasion of Russia cost the French many seasoned soldiers, so Napoleon took action to engage \\"Marie-Louises\\", young conscripts who were barely familiar with military affairs; they were called up from October 1813 to 1815.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q138107","facts":[{"label":"Part of","value":"Coalition Wars"},{"label":"End year","value":"1814"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q138107"},{"title":"War of the Sixth Coalition — background and references","url":"https://en.wikipedia.org/wiki/War_of_the_Sixth_Coalition"}],"briefSource":{"title":"War of the Sixth Coalition","url":"https://en.wikipedia.org/wiki/War_of_the_Sixth_Coalition","revision":1380705347,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q734004","year":1990,"title":"Black January","place":"Baku","region":"Asia","lat":40.373,"lon":49.852,"category":"War & conflict","article":"Black_January","body":"Black January (Azerbaijani: Qara Yanvar), also known as Black Saturday or the January Massacre, was a violent crackdown on anti-Soviet and anti-Armenian sentiments, Azerbaijani nationalism, and irredentism in Baku on 19 and 20 January 1990, as part of a state of emergency during the dissolution of the Soviet Union. General Secretary of the Soviet Communist Party Mikhail Gorbachev and Defence Minister Dmitry Yazov asserted that military law was necessary to thwart efforts by the Azerbaijani independence movement to overthrow the Soviet Azerbaijani government. According to official estimates of Azerbaijan, 147 civilians were killed, 800 people were injured, and five people went missing.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q734004","facts":[{"label":"Part of","value":"dissolution of the Soviet Union"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q734004"},{"title":"Black January — background and references","url":"https://en.wikipedia.org/wiki/Black_January"}],"briefSource":{"title":"Black January","url":"https://en.wikipedia.org/wiki/Black_January","revision":1383066768,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q108102583","year":2021,"title":"Fall of Kabul (2021)","place":"Kabul","region":"Asia","lat":34.5,"lon":69.167,"category":"War & conflict","article":"Fall_of_Kabul_(2021)","body":"On 15 August 2021, Afghanistan's capital city of Kabul was captured by the Taliban after a major insurgent offensive that began in May 2021. It was the final action of the War in Afghanistan, and marked a total victory for the Taliban. This led to the overthrowing of the Islamic Republic of Afghanistan under President Ashraf Ghani and the reinstatement of the Islamic Emirate of Afghanistan under the control of the Taliban. The United States–Taliban deal, signed on 29 February 2020, is considered one of the most critical factors that caused the collapse of the Afghan National Security Forces (ANSF).","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q108102583","facts":[{"label":"Part of","value":"2021 Taliban offensive"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q108102583"},{"title":"Fall of Kabul (2021) — background and references","url":"https://en.wikipedia.org/wiki/Fall_of_Kabul_(2021)"}],"briefSource":{"title":"Fall of Kabul (2021)","url":"https://en.wikipedia.org/wiki/Fall_of_Kabul_(2021)","revision":1382103026,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q213074","year":-326,"title":"Battle of the Hydaspes","place":"Jhelum River","region":"Asia","lat":32.828,"lon":73.639,"category":"War & conflict","article":"Battle_of_the_Hydaspes","body":"The Battle of the Hydaspes also known as Battle of Jhelum, or First Battle of Jhelum, was fought between the Macedonian Empire under Alexander the Great and the Pauravas under Porus in May of 326 BC. It took place on the banks of the Hydaspes River in what is now the Punjab province of Pakistan, as part of Alexander's Indian campaign. In what was possibly their most costly engagement, the Macedonian army secured a decisive victory over the Pauravas and captured Porus.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q213074","facts":[{"label":"Part of","value":"Indian campaign of Alexander the Great"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q213074"},{"title":"Battle of the Hydaspes — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_the_Hydaspes"}],"briefSource":{"title":"Battle of the Hydaspes","url":"https://en.wikipedia.org/wiki/Battle_of_the_Hydaspes","revision":1370600276,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q4373","year":1620,"title":"Battle of White Mountain","place":"Bílá Hora","region":"Europe","lat":50.078,"lon":14.319,"category":"War & conflict","article":"Battle_of_White_Mountain","body":"The Battle of White Mountain was fought on 8 November 1620 outside Prague in the early stages of the Thirty Years' War. An army backing Frederick V led by Christian of Anhalt was defeated by forces supporting his rival Ferdinand II, Holy Roman Emperor, under Bucquoy and Count Tilly. Imperial forces entered Prague on 9 November and Frederick fled into Silesia.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q4373","facts":[{"label":"Part of","value":"Bohemian Revolt"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q4373"},{"title":"Battle of White Mountain — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_White_Mountain"}],"briefSource":{"title":"Battle of White Mountain","url":"https://en.wikipedia.org/wiki/Battle_of_White_Mountain","revision":1376079217,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q652285","year":1947,"title":"India–Pakistan war of 1947–1948","place":"Jammu and Kashmir","region":"Asia","lat":34.5,"lon":76,"category":"War & conflict","article":"India–Pakistan_war_of_1947–1948","body":"The India–Pakistan war of 1947–1948, also known as the first Kashmir war, was a war fought between India and Pakistan over the princely state of Jammu and Kashmir from 1947 to 1948. It was the first of the India–Pakistan wars between the two newly independent nations; both were dominions within the British Commonwealth of Nations. Pakistan precipitated the war a few weeks after its independence by launching tribal lashkar (militias) from Waziristan, in an effort to capture Kashmir and to preempt the possibility of its ruler joining India.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q652285","facts":[{"label":"Part of","value":"Indo-Pakistani wars and conflicts"},{"label":"End year","value":"1949"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q652285"},{"title":"India–Pakistan war of 1947–1948 — background and references","url":"https://en.wikipedia.org/wiki/India%E2%80%93Pakistan_war_of_1947%E2%80%931948"}],"briefSource":{"title":"India–Pakistan war of 1947–1948","url":"https://en.wikipedia.org/wiki/India%E2%80%93Pakistan_war_of_1947%E2%80%931948","revision":1373782125,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q205887","year":-53,"title":"Battle of Carrhae","place":"Harran","region":"Asia","lat":36.867,"lon":39.033,"category":"War & conflict","article":"Battle_of_Carrhae","body":"The Battle of Carrhae was fought in 53 BC between the Roman Republic and the Parthian Empire near the ancient town of Carrhae (present-day Harran, Turkey). An invading force of seven legions of Roman heavy infantry under Marcus Licinius Crassus was lured into the desert and decisively defeated by a mixed cavalry of armoured cataphracts and light horse archers led by the Parthian general Surena. On such flat terrain, the legion proved to have no viable tactics against the highly mobile Parthian horsemen, and the slow and vulnerable Roman formations were surrounded, exhausted by constant attacks, and eventually crushed.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q205887","facts":[{"label":"Part of","value":"Crassus' Parthian campaign"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q205887"},{"title":"Battle of Carrhae — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Carrhae"}],"briefSource":{"title":"Battle of Carrhae","url":"https://en.wikipedia.org/wiki/Battle_of_Carrhae","revision":1375201063,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q570204","year":1223,"title":"Battle of the Kalka River","place":"Kalchyk","region":"Europe","lat":47.251,"lon":37.496,"category":"War & conflict","article":"Battle_of_the_Kalka_River","body":"The Battle of the Kalka River was fought between the Mongol Empire, whose armies were led by Jebe and Subutai, and a coalition of several Rus' principalities, including Kiev and Galicia-Volhynia, and the Cumans under Köten. They were under the joint command of Mstislav the Bold and Mstislav III of Kiev. The battle was fought on May 31, 1223 on the banks of the Kalka River in present-day Donetsk Oblast, Ukraine, and ended in a decisive Mongol victory.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q570204","facts":[{"label":"Part of","value":"Mongol invasions and conquests"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q570204"},{"title":"Battle of the Kalka River — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_the_Kalka_River"}],"briefSource":{"title":"Battle of the Kalka River","url":"https://en.wikipedia.org/wiki/Battle_of_the_Kalka_River","revision":1382834688,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q154426","year":1806,"title":"Battle of Jena–Auerstedt","place":"Jena","region":"Europe","lat":50.95,"lon":11.575,"category":"War & conflict","article":"Battle_of_Jena–Auerstedt","body":"The Battle of Jena–Auerstedt was fought on Tuesday 14 October 1806, near Jena and Auerstedt (then in the Duchy of Saxe-Weimar and Kingdom of Prussia, now in Thuringia and Saxony-Anhalt, Germany), being the decisive engagement of the War of the Fourth Coalition. The Grande Armée under the command of Emperor Napoleon I defeated a combined Prussian and Saxon army. One force was an imperial French force under the command of Napoleon I at Jena, while the other comprised an imperial French corps under the command of Marshal Louis-Nicolas Davout at Auerstedt.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q154426","facts":[{"label":"Part of","value":"Napoleonic Wars"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q154426"},{"title":"Battle of Jena–Auerstedt — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Jena%E2%80%93Auerstedt"}],"briefSource":{"title":"Battle of Jena–Auerstedt","url":"https://en.wikipedia.org/wiki/Battle_of_Jena%E2%80%93Auerstedt","revision":1383888629,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q205422","year":1876,"title":"Battle of the Little Bighorn","place":"Little Bighorn River","region":"Americas","lat":45.001,"lon":-107.627,"category":"War & conflict","article":"Battle_of_the_Little_Bighorn","body":"The 1876 Battle of the Little Bighorn, commonly referred to as Custer's Last Stand and known to the Lakota and other Plains Indians as the Battle of the Greasy Grass, was an armed engagement between combined forces of the Lakota Sioux, Northern Cheyenne, and Arapaho tribes and the 7th Cavalry Regiment of the United States Army. It took place on June 25–26, 1876, along the Little Bighorn River in the Crow Indian Reservation in southeastern Montana Territory. Most battles in the Great Sioux War, including the Battle of the Little Bighorn, were on lands those natives had taken from other tribes since 1851.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q205422","facts":[{"label":"Part of","value":"Great Sioux War of 1876"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q205422"},{"title":"Battle of the Little Bighorn — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_the_Little_Bighorn"}],"briefSource":{"title":"Battle of the Little Bighorn","url":"https://en.wikipedia.org/wiki/Battle_of_the_Little_Bighorn","revision":1382631918,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q107461898","year":2021,"title":"2021 Taliban offensive","place":"Afghanistan","region":"Asia","lat":33,"lon":66,"category":"War & conflict","article":"2021_Taliban_offensive","body":"The Taliban insurgent group and allied militants conducted a military offensive in 2021 that led to the fall of the Islamic Republic of Afghanistan and the end of the nearly 20-year war in Afghanistan that had begun following the United States invasion of the country. The Taliban victory had widespread domestic and international ramifications regarding human rights and proliferation of terrorism. The offensive included a continuation of the bottom-up succession of negotiated or paid surrenders to the Taliban from the village level upwards that started following the February 2020 US–Taliban deal.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q107461898","facts":[{"label":"Part of","value":"War in Afghanistan (2001–2021)"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q107461898"},{"title":"2021 Taliban offensive — background and references","url":"https://en.wikipedia.org/wiki/2021_Taliban_offensive"}],"briefSource":{"title":"2021 Taliban offensive","url":"https://en.wikipedia.org/wiki/2021_Taliban_offensive","revision":1377152771,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q192938","year":-334,"title":"Battle of the Granicus","place":"Biga River","region":"Asia","lat":40.228,"lon":27.242,"category":"War & conflict","article":"Battle_of_the_Granicus","body":"The Battle of the Granicus in May 334 BC was the first of three major battles fought between Alexander the Great of Macedon and the Persian Achaemenid Empire. The battle took place on the road from Abydus to Dascylium, at the crossing of the Granicus in the Troad region, which is now called the Biga River in Turkey. In the battle Alexander defeated the field army of the Persian satraps of Asia Minor, which defended the river crossing.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q192938","facts":[{"label":"Part of","value":"Wars of Alexander the Great"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q192938"},{"title":"Battle of the Granicus — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_the_Granicus"}],"briefSource":{"title":"Battle of the Granicus","url":"https://en.wikipedia.org/wiki/Battle_of_the_Granicus","revision":1372697241,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q212220","year":1396,"title":"Battle of Nicopolis","place":"Nikopol","region":"Europe","lat":43.706,"lon":24.896,"category":"War & conflict","article":"Battle_of_Nicopolis","body":"The Battle of Nicopolis took place on 25 September 1396 and resulted in the rout of an allied Crusader army, assisted by the Venetian navy, at the hands of an Ottoman force, raising the siege of the Danubian fortress of Nicopolis and leading to the end of the Second Bulgarian Empire. It is often referred to as the Crusade of Nicopolis, as it was one of the last major Crusades of the Middle Ages, together with the Crusade of Varna in 1443–1444. By their victory at Nicopolis, the Turks discouraged the formation of European coalitions against them.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q212220","facts":[{"label":"Part of","value":"Ottoman Wars in Europe"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q212220"},{"title":"Battle of Nicopolis — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Nicopolis"}],"briefSource":{"title":"Battle of Nicopolis","url":"https://en.wikipedia.org/wiki/Battle_of_Nicopolis","revision":1382477516,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q32832","year":1444,"title":"Battle of Varna","place":"Varna","region":"Europe","lat":43.217,"lon":27.883,"category":"War & conflict","article":"Battle_of_Varna","body":"The Battle of Varna took place on 10 November 1444 near Varna in what is today eastern Bulgaria. The Ottoman army under Sultan Murad II (who did not actually rule the sultanate at the time) defeated the Crusaders commanded by King Władysław III of Poland and Hungary, John Hunyadi (acting as commander of the combined Christian forces) and Mircea II of Wallachia. It was the final battle of the unsuccessful Crusade of Varna, a last-ditch effort to prevent further Ottoman expansion into the Balkans.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q32832","facts":[{"label":"Part of","value":"Crusade of Varna"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q32832"},{"title":"Battle of Varna — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Varna"}],"briefSource":{"title":"Battle of Varna","url":"https://en.wikipedia.org/wiki/Battle_of_Varna","revision":1383659695,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q106775117","year":2021,"title":"2021 Israel–Palestine crisis","place":"Southern Levant","region":"Asia","lat":31,"lon":35,"category":"War & conflict","article":"2021_Israel–Palestine_crisis","body":"A major outbreak of violence in the Israeli–Palestinian conflict, sometimes called the Unity Intifada, mainly commenced on 10 May 2021 and continued until a ceasefire came into effect on 21 May. It was marked by protests and police riot control, rocket attacks on Israel by Hamas and Palestinian Islamic Jihad (PIJ), and Israeli airstrikes in the Gaza Strip. The crisis was triggered on 6 May, when Palestinians in East Jerusalem began protesting over an anticipated decision of the Supreme Court of Israel on the eviction of six Palestinian families in the East Jerusalem neighborhood of Sheikh Jarrah.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q106775117","facts":[{"label":"Part of","value":"Israeli–Palestinian conflict"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q106775117"},{"title":"2021 Israel–Palestine crisis — background and references","url":"https://en.wikipedia.org/wiki/2021_Israel%E2%80%93Palestine_crisis"}],"briefSource":{"title":"2021 Israel–Palestine crisis","url":"https://en.wikipedia.org/wiki/2021_Israel%E2%80%93Palestine_crisis","revision":1382689329,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q14689","year":1242,"title":"Battle on the Ice","place":"Lake Peipus","region":"Europe","lat":58.233,"lon":27.5,"category":"War & conflict","article":"Battle_on_the_Ice","body":"The Battle on the Ice, also known as the Battle of Lake Peipus, took place on 5 April 1242. It was fought on the frozen Lake Peipus when the united forces of the Republic of Novgorod and Vladimir-Suzdal (also referred to by the proper noun as simply Vladimir), led by Prince Alexander Nevsky, emerged victorious against the forces of the Livonian Order and Bishopric of Dorpat, led by Bishop Hermann of Dorpat. The outcome of the battle has been traditionally interpreted by Russian historiography as significant for the balance of power between Western Catholicism and Eastern Orthodox Christianity.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q14689","facts":[{"label":"Part of","value":"Northern Crusades"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q14689"},{"title":"Battle on the Ice — background and references","url":"https://en.wikipedia.org/wiki/Battle_on_the_Ice"}],"briefSource":{"title":"Battle on the Ice","url":"https://en.wikipedia.org/wiki/Battle_on_the_Ice","revision":1370603346,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q273011","year":1800,"title":"Battle of Marengo","place":"Italy","region":"Europe","lat":44.886,"lon":8.678,"category":"War & conflict","article":"Battle_of_Marengo","body":"The Battle of Marengo was fought on 14 June 1800 between French forces under the First Consul Napoleon Bonaparte and Austrian forces near the city of Alessandria, in Piedmont, Italy. Near the end of the day, the French overcame General Michael von Melas's surprise attack, drove the Austrians out of Italy and consolidated Bonaparte's political position in Paris as First Consul of France in the wake of his coup d'état the previous November. Surprised by the Austrian advance toward Genoa in mid-April 1800, Bonaparte led his army over the Alps in mid-May and reached Milan on 2 June.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q273011","facts":[{"label":"Part of","value":"Napoleonic Wars"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q273011"},{"title":"Battle of Marengo — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Marengo"}],"briefSource":{"title":"Battle of Marengo","url":"https://en.wikipedia.org/wiki/Battle_of_Marengo","revision":1382832341,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q605977","year":1806,"title":"War of the Fourth Coalition","place":"Kingdom of Saxony","region":"Europe","lat":61,"lon":15,"category":"War & conflict","article":"War_of_the_Fourth_Coalition","body":"The War of the Fourth Coalition was a war spanning 1806–1807 that saw a multinational coalition fight against Napoleon's French Empire, subsequently being defeated. The main coalition partners were Prussia and Russia with Saxony, Sweden, and Great Britain also contributing. Excluding Prussia, some members of the coalition had previously been fighting France as part of the Third Coalition, and there was no intervening period of general peace. On 9 October 1806, Prussia declared war on France and joined a renewed coalition, fearing the rise in French power after the defeat of Austria and establishment of the French-sponsored Confederation of the Rhine in addition to having learned of French plans to cede Prussian-desired Hanover to Britain in exchange for peace.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q605977","facts":[{"label":"Part of","value":"Napoleonic Wars"},{"label":"End year","value":"1807"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q605977"},{"title":"War of the Fourth Coalition — background and references","url":"https://en.wikipedia.org/wiki/War_of_the_Fourth_Coalition"}],"briefSource":{"title":"War of the Fourth Coalition","url":"https://en.wikipedia.org/wiki/War_of_the_Fourth_Coalition","revision":1384264927,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q821283","year":1920,"title":"Battle of Warsaw (1920)","place":"Warsaw","region":"Europe","lat":52.3,"lon":20.817,"category":"War & conflict","article":"Battle_of_Warsaw_(1920)","body":"The Battle of Warsaw , also known as the Miracle on the Vistula (Polish: Cud nad Wisłą), was a series of battles that resulted in a decisive Polish victory and complete disintegration of the Red Army in August 1920 during the Polish–Soviet War. After the Polish Kiev offensive, Soviet forces launched a successful counterattack in summer 1920, forcing the Polish army to retreat westward. The Polish forces seemed on the verge of disintegration and observers predicted a decisive Soviet victory.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q821283","facts":[{"label":"Part of","value":"Polish–Soviet War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q821283"},{"title":"Battle of Warsaw (1920) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Warsaw_(1920)"}],"briefSource":{"title":"Battle of Warsaw (1920)","url":"https://en.wikipedia.org/wiki/Battle_of_Warsaw_(1920)","revision":1382287146,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q203681","year":-48,"title":"Battle of Pharsalus","place":"Farsala","region":"Europe","lat":39.3,"lon":22.383,"category":"War & conflict","article":"Battle_of_Pharsalus","body":"The Battle of Pharsalus was the decisive battle of Caesar's Civil War fought on 9 August 48 BC near Pharsalus in Central Greece. Julius Caesar and his allies formed up opposite the army of the Roman Republic under the command of Pompey. Pompey had the backing of a majority of Roman senators and his army significantly outnumbered the veteran Caesarian legions. Pressured by his officers, Pompey reluctantly engaged in battle and suffered an overwhelming defeat, ultimately fleeing the camp and his men, disguised as an ordinary citizen.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q203681","facts":[{"label":"Part of","value":"Caesar's Civil War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q203681"},{"title":"Battle of Pharsalus — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Pharsalus"}],"briefSource":{"title":"Battle of Pharsalus","url":"https://en.wikipedia.org/wiki/Battle_of_Pharsalus","revision":1379786111,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q222013","year":1485,"title":"Battle of Bosworth Field","place":"Ambion Hill","region":"Europe","lat":52.591,"lon":-1.41,"category":"War & conflict","article":"Battle_of_Bosworth_Field","body":"The Battle of Bosworth or Bosworth Field ( BOZ-wərth) was the last significant battle of the Wars of the Roses, the civil war between the houses of Lancaster and York that extended across England and Wales in the latter half of the 15th century. Fought on 22 August 1485, the battle was won by an alliance of Lancastrians and disaffected Yorkists. Their leader Henry Tudor, Earl of Richmond, became the first Welsh monarch of England from the House of Tudor by his victory and subsequent marriage to the de facto Yorkist heiress, Elizabeth of York.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q222013","facts":[{"label":"Part of","value":"Wars of the Roses"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q222013"},{"title":"Battle of Bosworth Field — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Bosworth_Field"}],"briefSource":{"title":"Battle of Bosworth Field","url":"https://en.wikipedia.org/wiki/Battle_of_Bosworth_Field","revision":1380861767,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q684324","year":1809,"title":"War of the Fifth Coalition","place":"Central Europe","region":"Europe","lat":51,"lon":10,"category":"War & conflict","article":"War_of_the_Fifth_Coalition","body":"The War of the Fifth Coalition was a European conflict in 1809 that was part of the Napoleonic Wars and the Coalition Wars. The main conflict took place in Central Europe between the Austrian Empire of Francis I and Napoleon's French Empire. The French were supported by their client states—the Kingdom of Italy, the Confederation of the Rhine and the Duchy of Warsaw. Austria was supported by the Fifth Coalition which included the United Kingdom, Portugal, Spain, and the Kingdoms of Sardinia and Sicily, although the latter two took no part in the fighting.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q684324","facts":[{"label":"Part of","value":"Coalition Wars"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q684324"},{"title":"War of the Fifth Coalition — background and references","url":"https://en.wikipedia.org/wiki/War_of_the_Fifth_Coalition"}],"briefSource":{"title":"War of the Fifth Coalition","url":"https://en.wikipedia.org/wiki/War_of_the_Fifth_Coalition","revision":1384385697,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q318250","year":1977,"title":"Ogaden War","place":"Ogaden","region":"Africa","lat":9,"lon":40,"category":"War & conflict","article":"Ogaden_War","body":"The Ogaden War, also known as the Ethio-Somali War (Somali: Dagaalkii Xoraynta Soomaali Galbeed, Amharic: የኢትዮጵያ ሶማሊያ ጦርነት, romanized: ye’ītiyop’iya somalīya t’orinet), was a military conflict between Somalia and Ethiopia fought from July 1977 to March 1978 over control of the sovereignty of the Ogaden region. Somalia launched an invasion in support of the Western Somali Liberation Front (WSLF) insurgency, triggering a broader inter-state war. The intervention drew the disapproval of the Soviet Union, which subsequently withdrew its support for Somalia and backed Ethiopia instead.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q318250","facts":[{"label":"Part of","value":"Cold War"},{"label":"End year","value":"1978"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q318250"},{"title":"Ogaden War — background and references","url":"https://en.wikipedia.org/wiki/Ogaden_War"}],"briefSource":{"title":"Ogaden War","url":"https://en.wikipedia.org/wiki/Ogaden_War","revision":1383750279,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q635533","year":1977,"title":"Cambodian–Vietnamese War","place":"Cambodia","region":"Asia","lat":12.5,"lon":105,"category":"War & conflict","article":"Cambodian–Vietnamese_War","body":"The Cambodian–Vietnamese War was an armed conflict from 1978 to 1989 between Democratic Kampuchea and the Socialist Republic of Vietnam, and their respective allies. It began in December 1978, with smaller clashes culminating into a Vietnamese invasion of Cambodia which toppled the Khmer Rouge regime and ended in 1989 with the withdrawal of Vietnamese forces from Cambodia. This Cold War conflict was part of the Third Indochina War and Sino-Soviet split with the Soviet Union supporting Vietnam and China supporting Kampuchea.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q635533","facts":[{"label":"Part of","value":"Third Indochina War"},{"label":"End year","value":"1991"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q635533"},{"title":"Cambodian–Vietnamese War — background and references","url":"https://en.wikipedia.org/wiki/Cambodian%E2%80%93Vietnamese_War"}],"briefSource":{"title":"Cambodian–Vietnamese War","url":"https://en.wikipedia.org/wiki/Cambodian%E2%80%93Vietnamese_War","revision":1383983028,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q175653","year":1992,"title":"Siege of Sarajevo","place":"Sarajevo","region":"Europe","lat":43.856,"lon":18.413,"category":"War & conflict","article":"Siege_of_Sarajevo","body":"The siege of Sarajevo (Serbo-Croatian: Опсада Сарајева, Opsada Sarajeva) was a prolonged military blockade of Sarajevo, the capital of the Republic of Bosnia and Herzegovina, during the ethnically charged Bosnian War. The city was initially besieged by the Yugoslav People's Army, before they were replaced by elements of the newly-formed Army of Republika Srpska. Lasting from 5 April 1992 to 29 February 1996 (1,425 days), the siege was three times longer than the Battle of Stalingrad and more than a year longer than the siege of Leningrad, making it the longest siege of a capital city in the history of modern warfare.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q175653","facts":[{"label":"Part of","value":"War in Bosnia and Herzegovina"},{"label":"End year","value":"1996"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q175653"},{"title":"Siege of Sarajevo — background and references","url":"https://en.wikipedia.org/wiki/Siege_of_Sarajevo"}],"briefSource":{"title":"Siege of Sarajevo","url":"https://en.wikipedia.org/wiki/Siege_of_Sarajevo","revision":1384454752,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q339321","year":312,"title":"Battle of the Milvian Bridge","place":"Ponte Milvio","region":"Europe","lat":41.936,"lon":12.467,"category":"War & conflict","article":"Battle_of_the_Milvian_Bridge","body":"The Battle of the Milvian Bridge took place between the Roman Emperors Constantine I and Maxentius on 28 October AD 312. It takes its name from the Milvian Bridge, an important route over the Tiber. Constantine won the battle and started on the path that led him to end the Tetrarchy and become the sole ruler of the Roman Empire. Maxentius drowned in the Tiber during the battle; his body was later taken from the river and decapitated, and his head was paraded through the streets of Rome on the day following the battle before being sent to Africa.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q339321","facts":[{"label":"Part of","value":"Civil Wars of the Tetrarchy"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q339321"},{"title":"Battle of the Milvian Bridge — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_the_Milvian_Bridge"}],"briefSource":{"title":"Battle of the Milvian Bridge","url":"https://en.wikipedia.org/wiki/Battle_of_the_Milvian_Bridge","revision":1382690288,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q392538","year":1086,"title":"Battle of Sagrajas","place":"Badajoz","region":"Europe","lat":38.923,"lon":-6.901,"category":"War & conflict","article":"Battle_of_Sagrajas","body":"The Battle of Sagrajas (23 October 1086), also called Zalaca or Zallaqah , was a conflict fought in 1086 between the Almoravid army, led by their king, Yusuf ibn Tashfin, and the forces of King Alfonso VI of Castile. The Almoravids were called into battle by the taifas, Muslim principalities in Al-Andalus that often fought amongst themselves but united against the expanding Christian kingdoms to the north. In addition to the Almoravid forces, the Taifas, bolstered the Muslim side, tilting the battle in their favor.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q392538","facts":[{"label":"Part of","value":"Almoravid conquest of al-Andalus"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q392538"},{"title":"Battle of Sagrajas — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Sagrajas"}],"briefSource":{"title":"Battle of Sagrajas","url":"https://en.wikipedia.org/wiki/Battle_of_Sagrajas","revision":1377036890,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q123070","year":1768,"title":"Russo-Turkish War (1768–1774)","place":"Eastern Europe","region":"Europe","lat":49,"lon":31,"category":"War & conflict","article":"Russo-Turkish_War_(1768–1774)","body":"The Russo-Turkish War of 1768–1774 was a major armed conflict that saw Russian armies victorious against the Ottoman Empire. Russia's victory brought the Yedisan between the rivers Bug and Dnieper, and Crimea into the Russian sphere of influence. Though a series of victories accrued by the Russian Empire led to substantial territorial conquests, including direct conquest over much of the Pontic–Caspian steppe, less Ottoman territory was directly annexed than might otherwise be expected due to a complex struggle within the European diplomatic system to maintain a balance of power that was acceptable to other European states and avoided direct Russian hegemony over Eastern Europe.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q123070","facts":[{"label":"Part of","value":"Russo-Turkish Wars"},{"label":"End year","value":"1774"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q123070"},{"title":"Russo-Turkish War (1768–1774) — background and references","url":"https://en.wikipedia.org/wiki/Russo-Turkish_War_(1768%E2%80%931774)"}],"briefSource":{"title":"Russo-Turkish War (1768–1774)","url":"https://en.wikipedia.org/wiki/Russo-Turkish_War_(1768%E2%80%931774)","revision":1383916744,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q459447","year":1781,"title":"Siege of Yorktown","place":"Yorktown","region":"Americas","lat":37.231,"lon":-76.502,"category":"War & conflict","article":"Siege_of_Yorktown","body":"The Siege of Yorktown, also known as the Battle of Yorktown and the surrender at Yorktown, took place in 1781 and was the final major land engagement of the American Revolutionary War. It was won decisively by the Continental Army, led by George Washington, with support from the Marquis de Lafayette and French Army troops, led by Comte de Rochambeau, and a French Navy force commanded by the Comte de Grasse, making the British Army commanded by British Lieutenant General Charles Cornwallis surrender. The French and American armies united north of New York City in the summer of 1781.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q459447","facts":[{"label":"Part of","value":"American Revolutionary War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q459447"},{"title":"Siege of Yorktown — background and references","url":"https://en.wikipedia.org/wiki/Siege_of_Yorktown"}],"briefSource":{"title":"Siege of Yorktown","url":"https://en.wikipedia.org/wiki/Siege_of_Yorktown","revision":1384219244,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q332543","year":1798,"title":"Battle of the Pyramids","place":"Imbaba","region":"Africa","lat":30.083,"lon":31.2,"category":"War & conflict","article":"Battle_of_the_Pyramids","body":"The Battle of the Pyramids , also known as the Battle of Embabeh (bataille d'Embabech), was fought on 21 July 1798 during the French invasion of Egypt and Syria. Occurring near the village of Embabeh, Ottoman Egypt, the battle was named by Napoleon after the distant Great Pyramid of Giza. After capturing Alexandria and advancing toward Cairo, Napoleon's army confronted Murad Bey's Mamluk-led forces. The French deployed into large divisional squares that withstood repeated cavalry charges before storming the fortified village of Embabeh.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q332543","facts":[{"label":"Part of","value":"Napoleonic Wars"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q332543"},{"title":"Battle of the Pyramids — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_the_Pyramids"}],"briefSource":{"title":"Battle of the Pyramids","url":"https://en.wikipedia.org/wiki/Battle_of_the_Pyramids","revision":1371801221,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q207250","year":-217,"title":"Battle of Lake Trasimene","place":"Lake Trasimeno","region":"Europe","lat":43.198,"lon":12.085,"category":"War & conflict","article":"Battle_of_Lake_Trasimene","body":"The Battle of Lake Trasimene was fought when a Carthaginian force under Hannibal ambushed a Roman army commanded by Gaius Flaminius on 21 June 217 BC, during the Second Punic War. The battle took place on the north shore of Lake Trasimene, to the south of Cortona, and resulted in a heavy defeat for the Romans. War had broken out between Rome and Carthage early in 218 BC. Hannibal, ruler of the Carthaginian territories in south-east Iberia, marched an army through Gaul, crossed the Alps and arrived in Cisalpine Gaul (northern Italy) later that year.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q207250","facts":[{"label":"Part of","value":"Second Punic War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q207250"},{"title":"Battle of Lake Trasimene — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Lake_Trasimene"}],"briefSource":{"title":"Battle of Lake Trasimene","url":"https://en.wikipedia.org/wiki/Battle_of_Lake_Trasimene","revision":1382553509,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1639459","year":629,"title":"Battle of Mu'tah","place":"Mu'tah","region":"Asia","lat":31.033,"lon":35.697,"category":"War & conflict","article":"Battle_of_Mu'tah","body":"The Battle of Mu'tah took place in September 629 (1 Jumada al-Awwal 8 AH), between the forces of Muhammad and the army of the Byzantine Empire and their Ghassanid vassals. It took place in the village of Mu'tah in Palaestina Salutaris at the east of the Jordan River and modern-day Karak. In Islamic historical sources, the battle is usually described as the Muslims' attempt to take retribution against a Ghassanid chief for taking the life of an emissary.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1639459","facts":[{"label":"Part of","value":"Arab–Byzantine wars"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1639459"},{"title":"Battle of Mu'tah — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Mu'tah"}],"briefSource":{"title":"Battle of Mu'tah","url":"https://en.wikipedia.org/wiki/Battle_of_Mu%27tah","revision":1371972982,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q504172","year":711,"title":"Battle of Guadalete","place":"Iberian Peninsula","region":"Europe","lat":36.6,"lon":-6.217,"category":"War & conflict","article":"Battle_of_Guadalete","body":"The Battle of Guadalete was the first major battle of the Muslim conquest of the Iberian Peninsula, fought in July 711 at an unidentified location in what is now southern Spain between the Visigoths under their king, Roderic, and the invading forces of the Umayyad Caliphate, composed of mainly Berbers and some Arabs under the commander Tariq ibn Ziyad. The battle was significant as the culmination of a series of Umayyad attacks and the beginning of al-Andalus. Roderic was killed in the battle, along with many members of the Visigothic nobility, opening the way for the capture of the Visigothic capital of Toledo.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q504172","facts":[{"label":"Part of","value":"Umayyad conquest of Hispania"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q504172"},{"title":"Battle of Guadalete — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Guadalete"}],"briefSource":{"title":"Battle of Guadalete","url":"https://en.wikipedia.org/wiki/Battle_of_Guadalete","revision":1378269639,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q957186","year":718,"title":"Battle of Covadonga","place":"Covadonga","region":"Europe","lat":43.273,"lon":-4.981,"category":"War & conflict","article":"Battle_of_Covadonga","body":"The Battle of Covadonga took place in 722 between the army of Pelagius of Asturias and the army of Umayyad Caliphate commanders Alqama and Munuza. Fought near Covadonga, in the Picos de Europa, the outcome was victory for the Christian forces of Pelagius. It is traditionally regarded as the foundational event of the Kingdom of Asturias and thus the initial point of the Christian Reconquista (reconquest) of Iberia after the Umayyad conquest of 711.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q957186","facts":[{"label":"Part of","value":"Reconquista"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q957186"},{"title":"Battle of Covadonga — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Covadonga"}],"briefSource":{"title":"Battle of Covadonga","url":"https://en.wikipedia.org/wiki/Battle_of_Covadonga","revision":1379724709,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q745110","year":1514,"title":"Battle of Chaldiran","place":"Chaldoran","region":"Asia","lat":39.089,"lon":44.327,"category":"War & conflict","article":"Battle_of_Chaldiran","body":"The Battle of Chaldiran (Persian: جنگ چالدران; Turkish: Çaldıran Savaşı) took place on 23 August 1514 and ended with a decisive victory for the Ottoman Empire over the Safavid Empire. As a result, the Ottomans annexed Eastern Anatolia and Upper Mesopotamia from Safavid Iran. It marked the first Ottoman expansion into Eastern Anatolia, and the halt of the Safavid expansion to the west. The Battle of Chaldiran was just the beginning of 41 years of destructive war between the Safavids and Ottomans, which only ended in 1555 with the Peace of Amasya.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q745110","facts":[{"label":"Part of","value":"Ottoman–Persian wars"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q745110"},{"title":"Battle of Chaldiran — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Chaldiran"}],"briefSource":{"title":"Battle of Chaldiran","url":"https://en.wikipedia.org/wiki/Battle_of_Chaldiran","revision":1370108848,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q270517","year":1942,"title":"Dieppe Raid","place":"Dieppe","region":"Europe","lat":49.933,"lon":1.083,"category":"War & conflict","article":"Dieppe_Raid","body":"Operation Jubilee or the Dieppe Raid (19 August 1942) was an Allied amphibious attack on the German-occupied port of Dieppe in northern France, during the Second World War. Over 6,050 infantry, predominantly Canadian, supported by a Canadian tank regiment, were landed by a Royal Navy task force under cover of the Royal Air Force and Royal Canadian Air Force. The port was to be captured and held for a short period, to test the feasibility of a landing and to gather intelligence.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q270517","facts":[{"label":"Part of","value":"North West Europe Campaign"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q270517"},{"title":"Dieppe Raid — background and references","url":"https://en.wikipedia.org/wiki/Dieppe_Raid"}],"briefSource":{"title":"Dieppe Raid","url":"https://en.wikipedia.org/wiki/Dieppe_Raid","revision":1379942526,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1133574","year":656,"title":"Battle of the Camel","place":"Basra","region":"Asia","lat":30.5,"lon":47.817,"category":"War & conflict","article":"Battle_of_the_Camel","body":"The Battle of the Camel, also known as the Battle of Basra , took place in 656 CE outside of Basra in Iraq. It was fought between the partisans of the fourth Rashidun caliph Ali and the Uthmaniyya led by Aisha, Talha, and Zubayr. Ali's loyalists consisted predominantly of Kufan and Medinan troops, while his opponents consisted of a coalition of Meccan and Basran forces. Ali was the cousin and son-in-law of the Islamic prophet Muhammad, while Aisha was a widow of Muhammad; Talha and Zubayr were both early converts to Islam and prominent companions.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1133574","facts":[{"label":"Part of","value":"First Fitna"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1133574"},{"title":"Battle of the Camel — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_the_Camel"}],"briefSource":{"title":"Battle of the Camel","url":"https://en.wikipedia.org/wiki/Battle_of_the_Camel","revision":1380561813,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q521799","year":1240,"title":"Battle of the Neva","place":"Neva","region":"Europe","lat":59.945,"lon":30.309,"category":"War & conflict","article":"Battle_of_the_Neva","body":"The Battle of the Neva was fought between the Novgorod Republic, along with Karelians, and the Kingdom of Sweden, including Norwegian, Finnish and Tavastian forces, on the Neva River, near the settlement of Ust-Izhora, on 15 July 1240. The battle is mentioned only in Russian sources, and it remains unclear whether it was a major invasion or a small-scale raid. In Russian historiography, it has become an event of massive scale and importance.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q521799","facts":[{"label":"Part of","value":"Swedish–Novgorodian Wars"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q521799"},{"title":"Battle of the Neva — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_the_Neva"}],"briefSource":{"title":"Battle of the Neva","url":"https://en.wikipedia.org/wiki/Battle_of_the_Neva","revision":1370601512,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q499626","year":1297,"title":"Battle of Stirling Bridge","place":"Stirling","region":"Europe","lat":56.117,"lon":-3.937,"category":"War & conflict","article":"Battle_of_Stirling_Bridge","body":"The Battle of Stirling Bridge (Scottish Gaelic: Blàr Drochaid Shruighlea) was fought during the First War of Scottish Independence. On 11 September 1297, the forces of Andrew Moray and William Wallace defeated the combined English forces of John de Warenne, 6th Earl of Surrey, and Hugh de Cressingham near Stirling, on the River Forth.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q499626","facts":[{"label":"Part of","value":"Wars of Scottish Independence"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q499626"},{"title":"Battle of Stirling Bridge — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Stirling_Bridge"}],"briefSource":{"title":"Battle of Stirling Bridge","url":"https://en.wikipedia.org/wiki/Battle_of_Stirling_Bridge","revision":1382462168,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q589318","year":1298,"title":"Battle of Falkirk","place":"Falkirk","region":"Europe","lat":55.988,"lon":-3.76,"category":"War & conflict","article":"Battle_of_Falkirk","body":"The Battle of Falkirk (Scottish Gaelic: Blàr na h-Eaglaise Brice; Scots: Battle o Fawkirk), on 22 July 1298, was one of the major battles in the First War of Scottish Independence. Led by King Edward I of England, the English army defeated the Scots, led by William Wallace. Shortly after the battle Wallace resigned as Guardian of Scotland.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q589318","facts":[{"label":"Part of","value":"Wars of Scottish Independence"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q589318"},{"title":"Battle of Falkirk — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Falkirk"}],"briefSource":{"title":"Battle of Falkirk","url":"https://en.wikipedia.org/wiki/Battle_of_Falkirk","revision":1382462184,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q638587","year":1735,"title":"Russo-Turkish War (1735–1739)","place":"Crimean Khanate","region":"Europe","lat":44.755,"lon":33.853,"category":"War & conflict","article":"Russo-Turkish_War_(1735–1739)","body":"The Russo-Turkish War of 1735–1739 between Russia and the Ottoman Empire was caused by the Ottoman Empire's war with Persia and the continuing raids by the Crimean Tatars. The war also represented Russia's ongoing struggle for access to the Black Sea. In 1737, the Habsburg monarchy joined the war on Russia's side, known in historiography as the Austro-Turkish War of 1737–1739.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q638587","facts":[{"label":"Part of","value":"Russo-Turkish Wars"},{"label":"End year","value":"1739"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q638587"},{"title":"Russo-Turkish War (1735–1739) — background and references","url":"https://en.wikipedia.org/wiki/Russo-Turkish_War_(1735%E2%80%931739)"}],"briefSource":{"title":"Russo-Turkish War (1735–1739)","url":"https://en.wikipedia.org/wiki/Russo-Turkish_War_(1735%E2%80%931739)","revision":1381566835,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q241108","year":1807,"title":"Battle of Friedland","place":"Pravdinsk","region":"Europe","lat":54.45,"lon":21.017,"category":"War & conflict","article":"Battle_of_Friedland","body":"The Battle of Friedland (14 June 1807) was a major engagement of the Napoleonic Wars between the armies of the French Empire and the Russian Empire, led by Napoleon I and General Levin August von Bennigsen respectively. Napoleon and the French obtained a decisive victory that routed much of the Russian army, which retreated chaotically over the Alle river by the end of the fighting. The battlefield is located in modern-day Kaliningrad Oblast, near the town of Pravdinsk, Russia.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q241108","facts":[{"label":"Part of","value":"War of the Fourth Coalition"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q241108"},{"title":"Battle of Friedland — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Friedland"}],"briefSource":{"title":"Battle of Friedland","url":"https://en.wikipedia.org/wiki/Battle_of_Friedland","revision":1380768427,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q2649081","year":1940,"title":"German invasion of the Netherlands","place":"Netherlands","region":"Europe","lat":52.317,"lon":5.55,"category":"War & conflict","article":"German_invasion_of_the_Netherlands","body":"The German invasion of the Netherlands, otherwise known as the Battle of the Netherlands, was a military campaign, part of Case Yellow , the Nazi German invasion of the Low Countries (Belgium, Luxembourg, and the Netherlands) and France during World War II. The battle lasted from 10 May 1940 until the surrender of the main Dutch forces on 14 May. Dutch troops under French command in the far southwestern province of Zealand continued to resist the Wehrmacht until 17 May, when Germany completed its occupation of the whole country.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q2649081","facts":[{"label":"Part of","value":"World War II"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q2649081"},{"title":"German invasion of the Netherlands — background and references","url":"https://en.wikipedia.org/wiki/German_invasion_of_the_Netherlands"}],"briefSource":{"title":"German invasion of the Netherlands","url":"https://en.wikipedia.org/wiki/German_invasion_of_the_Netherlands","revision":1377423623,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q162284","year":1941,"title":"Battle of Kiev (1941)","place":"Kyiv","region":"Europe","lat":50.454,"lon":30.516,"category":"War & conflict","article":"Battle_of_Kiev_(1941)","body":"The First Battle of Kiev or Kiev operation, known as the Battle of Kiev on the German side , was a major battle that resulted in an encirclement of Soviet troops in the vicinity of Kiev during World War II, the capital and most populous city of the Ukrainian Soviet Socialist Republic. This encirclement is the largest in the history of warfare by number of troops. The battle lasted from 7 July to 26 September 1941 as part of Operation Barbarossa, the Axis invasion of the Soviet Union.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q162284","facts":[{"label":"Part of","value":"World War II"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q162284"},{"title":"Battle of Kiev (1941) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Kiev_(1941)"}],"briefSource":{"title":"Battle of Kiev (1941)","url":"https://en.wikipedia.org/wiki/Battle_of_Kiev_(1941)","revision":1384259813,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q565661","year":628,"title":"Battle of Khaybar","place":"Khaybar","region":"Asia","lat":25.699,"lon":39.293,"category":"War & conflict","article":"Battle_of_Khaybar","body":"The Battle of Khaybar was an armed confrontation between the early Muslims and the Jewish community of Khaybar in 628 CE. Khaybar, which is located approximately 150 kilometres (93 mi) to the northwest of Medina, was home to a sizable community of Jewish tribes. As Muhammad's army began to march on Khaybar, the Banu Ghatafan and other Jewish-allied Arabian tribes did not, or could not, send the reinforcements that had been expected to arrive to defend the settlement, further endangering the Jewish army's poor fortifications.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q565661","facts":[{"label":"Part of","value":"battles of Muhammad"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q565661"},{"title":"Battle of Khaybar — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Khaybar"}],"briefSource":{"title":"Battle of Khaybar","url":"https://en.wikipedia.org/wiki/Battle_of_Khaybar","revision":1381125542,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q159512","year":1241,"title":"Battle of Legnica","place":"Legnickie Pole","region":"Europe","lat":51.145,"lon":16.223,"category":"War & conflict","article":"Battle_of_Legnica","body":"The Battle of Legnica (Polish: bitwa pod Legnicą), also known as the Battle of Liegnitz or Battle of Wahlstatt , was fought between the Mongol Empire and combined European forces at the village of Legnickie Pole (Wahlstatt), approximately 10 kilometres (6 mi) southeast of the city of Legnica in the Duchy of Silesia on 9 April 1241. A combined force of Poles and Moravians under the command of Duke Henry II the Pious of Silesia, supported by feudal nobility and a few knights from military orders sent by Pope Gregory IX, attempted to halt the Mongol invasion of Poland. The battle took place two days before the Mongol victory over the Hungarians at the much larger Battle of Mohi.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q159512","facts":[{"label":"Part of","value":"Mongol invasions and conquests"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q159512"},{"title":"Battle of Legnica — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Legnica"}],"briefSource":{"title":"Battle of Legnica","url":"https://en.wikipedia.org/wiki/Battle_of_Legnica","revision":1374130078,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q735349","year":1580,"title":"Russian conquest of Siberia","place":"Siberia","region":"Europe","lat":60,"lon":105,"category":"War & conflict","article":"Russian_conquest_of_Siberia","body":"The Russian conquest of Siberia took place between 1581 and 1778, when the Khanate of Sibir became a loose political structure of vassalages that were being undermined by the activities of Russian explorers. Although outnumbered, the Russians pressured the various family-based tribes into changing their loyalties and establishing distant forts from which they conducted raids. It is traditionally considered that Yermak Timofeyevich's campaign against the Siberian Khanate began in 1581. The annexation of Siberia and the Far East to Russia was resisted by local residents and took place against the backdrop of fierce battles between the indigenous peoples of Siberia and the Russian Cossacks, who often committed atrocities against indigenous Siberians.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q735349","facts":[{"label":"Part of","value":"territorial evolution of Russia"},{"label":"End year","value":"1700"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q735349"},{"title":"Russian conquest of Siberia — background and references","url":"https://en.wikipedia.org/wiki/Russian_conquest_of_Siberia"}],"briefSource":{"title":"Russian conquest of Siberia","url":"https://en.wikipedia.org/wiki/Russian_conquest_of_Siberia","revision":1380703549,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q654006","year":1655,"title":"Northern War of 1655–1660","place":"Denmark–Norway","region":"Europe","lat":55.672,"lon":12.525,"category":"War & conflict","article":"Northern_War_of_1655–1660","body":"The Northern War of 1655–1660 was fought between the Swedish Empire and the Polish–Lithuanian Commonwealth, with participation at different times by Russia, Brandenburg-Prussia, the Habsburg monarchy, and Denmark–Norway. It ended with the treaties of Copenhagen and Oliva in 1660. In 1655, Charles X took advantage of the Russo-Polish War (1654–67) to over-run western Poland. The Grand Duchy of Lithuania was annexed by Sweden, and John II Casimir Vasa took refuge in Vienna. He managed to regain parts of his kingdom in 1656, and the conflict widened when Russia declared war on Sweden, supported by Emperor Leopold and Frederick III of Denmark.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q654006","facts":[{"label":"Part of","value":"Northern Wars"},{"label":"End year","value":"1660"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q654006"},{"title":"Northern War of 1655–1660 — background and references","url":"https://en.wikipedia.org/wiki/Northern_War_of_1655%E2%80%931660"}],"briefSource":{"title":"Northern War of 1655–1660","url":"https://en.wikipedia.org/wiki/Northern_War_of_1655%E2%80%931660","revision":1375282178,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q155726","year":1700,"title":"Battle of Narva (1700)","place":"Narva","region":"Europe","lat":59.379,"lon":28.201,"category":"War & conflict","article":"Battle_of_Narva_(1700)","body":"The Battle of Narva on 30 November 1700 was an early battle in the Great Northern War. A Swedish relief army under Charles XII of Sweden defeated a Russian siege force three to four times its size. Previously, Charles XII had forced Denmark–Norway to sign the Treaty of Travendal. Narva was not followed by further advances of the Swedish army into Russia; instead, Charles XII turned southward to expel August the Strong from Livonia and Poland–Lithuania.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q155726","facts":[{"label":"Part of","value":"Great Northern War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q155726"},{"title":"Battle of Narva (1700) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Narva_(1700)"}],"briefSource":{"title":"Battle of Narva (1700)","url":"https://en.wikipedia.org/wiki/Battle_of_Narva_(1700)","revision":1382484115,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q324916","year":1859,"title":"Battle of Solferino","place":"Italy","region":"Europe","lat":45.367,"lon":10.566,"category":"War & conflict","article":"Battle_of_Solferino","body":"The Battle of Solferino (referred to in Italy as the Battle of Solferino and San Martino) on 24 June 1859 was the climactic battle of the Second Italian War of Independence and resulted in the victory of the allied French army under Napoleon III and the Piedmont-Sardinian army under Victor Emmanuel II (together known as the Franco-Sardinian alliance) against the Austrian army under Emperor Franz Joseph I. It was the last major battle in world history in which all the armies were under the personal command of their monarchs. There were approximately 300,000 soldiers on both sides in the most important battle, the largest since the Battle of Leipzig in 1813.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q324916","facts":[{"label":"Part of","value":"Second Italian War of Independence"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q324916"},{"title":"Battle of Solferino — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Solferino"}],"briefSource":{"title":"Battle of Solferino","url":"https://en.wikipedia.org/wiki/Battle_of_Solferino","revision":1379026770,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q543165","year":1861,"title":"Battle of Fort Sumter","place":"Fort Sumter","region":"Asia","lat":32.752,"lon":-79.874,"category":"War & conflict","article":"Battle_of_Fort_Sumter","body":"The Battle of Fort Sumter (also the Attack on Fort Sumter or the Fall of Fort Sumter) (April 12–13, 1861) was the bombardment of Fort Sumter near Charleston, South Carolina, by the South Carolina militia. It ended with the surrender of the fort by the United States Army, beginning the American Civil War. Following the declaration of secession by South Carolina on December 20, 1860, its authorities demanded that the U.S. Army abandon its facilities in Charleston Harbor.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q543165","facts":[{"label":"Part of","value":"American Civil War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q543165"},{"title":"Battle of Fort Sumter — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Fort_Sumter"}],"briefSource":{"title":"Battle of Fort Sumter","url":"https://en.wikipedia.org/wiki/Battle_of_Fort_Sumter","revision":1383086115,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q271873","year":-218,"title":"Battle of the Trebia","place":"Piacenza","region":"Europe","lat":44.988,"lon":9.568,"category":"War & conflict","article":"Battle_of_the_Trebia","body":"The Battle of the Trebia (or Trebbia) was the first major battle of the Second Punic War, fought between the Carthaginian forces of Hannibal and a Roman army under Sempronius Longus on 22 or 23 December 218 BC. Each army had a strength of about 40,000 men; the Carthaginians were stronger in cavalry, the Romans in infantry. The battle took place on the flood plain of the west bank of the lower Trebia River, not far from the settlement of Placentia (modern Piacenza), and resulted in a heavy defeat for the Romans.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q271873","facts":[{"label":"Part of","value":"Second Punic War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q271873"},{"title":"Battle of the Trebia — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_the_Trebia"}],"briefSource":{"title":"Battle of the Trebia","url":"https://en.wikipedia.org/wiki/Battle_of_the_Trebia","revision":1382553449,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q273069","year":955,"title":"Battle of Lechfeld","place":"Lechfeld","region":"Europe","lat":48.114,"lon":10.793,"category":"War & conflict","article":"Battle_of_Lechfeld","body":"The Battle of Lechfeld, also known as the Second Battle of Lechfeld, was a series of military engagements over the course of three days from 10 to 12 August 955 in which the Kingdom of Germany, led by King Otto I the Great, defeated the Hungarian army led by Harka Bulcsú and the chieftains Lél and Súr. With the German victory, further major invasions by the Magyars into Western Europe were ended. The Hungarians invaded the Duchy of Bavaria in late June or early July 955 with 8,000–10,000 horse archers, infantry, and siege engines, intending to draw the main German army, under Otto I, into battle in the open field and destroy it.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q273069","facts":[{"label":"Part of","value":"Hungarian invasions of Europe"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q273069"},{"title":"Battle of Lechfeld — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Lechfeld"}],"briefSource":{"title":"Battle of Lechfeld","url":"https://en.wikipedia.org/wiki/Battle_of_Lechfeld","revision":1371676552,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q154635","year":1704,"title":"Battle of Blenheim","place":"Blindheim","region":"Europe","lat":48.645,"lon":10.6,"category":"War & conflict","article":"Battle_of_Blenheim","body":"The Battle of Blenheim fought on 13 August [O.S. 2 August] 1704, was a major battle of the War of the Spanish Succession. The overwhelming Allied victory ensured the safety of Vienna from the Franco-Bavarian army, thus preventing the collapse of the reconstituted Grand Alliance. Louis XIV of France sought to knock the Holy Roman Emperor, Leopold, out of the war by seizing Vienna, the Habsburg capital, and gain a favourable peace settlement. The dangers to Vienna were considerable: Maximilian II Emanuel and Marshal Ferdinand de Marsin's forces in Bavaria threatened from the west, and Marshal Louis Joseph, Duke of Vendôme's large army in northern Italy posed a serious danger with a potential offensive through the Brenner Pass.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q154635","facts":[{"label":"Part of","value":"War of the Spanish Succession"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q154635"},{"title":"Battle of Blenheim — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Blenheim"}],"briefSource":{"title":"Battle of Blenheim","url":"https://en.wikipedia.org/wiki/Battle_of_Blenheim","revision":1382486406,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q651919","year":1746,"title":"Battle of Culloden","place":"Culloden","region":"Europe","lat":57.477,"lon":-4.093,"category":"War & conflict","article":"Battle_of_Culloden","body":"The Battle of Culloden took place on 16 April 1746, near Inverness, in the Scottish Highlands. A Jacobite army under Charles Edward Stuart was decisively defeated by a British government force commanded by the Duke of Cumberland, thereby ending the Jacobite rising of 1745. Charles landed in Scotland in July 1745, seeking to restore his father James Francis Edward Stuart to the British throne. He quickly won control of large parts of Scotland, and an invasion of England reached as far south as Derby before being forced to turn back.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q651919","facts":[{"label":"Part of","value":"Jacobite risings"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q651919"},{"title":"Battle of Culloden — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Culloden"}],"briefSource":{"title":"Battle of Culloden","url":"https://en.wikipedia.org/wiki/Battle_of_Culloden","revision":1370109396,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q719252","year":1862,"title":"Battle of Antietam","place":"Washington County","region":"Americas","lat":39.473,"lon":-77.745,"category":"War & conflict","article":"Battle_of_Antietam","body":"The Battle of Antietam ( an-TEE-təm), also called the Battle of Sharpsburg (particularly in the Southern United States) took place during the American Civil War on September 17, 1862, near Antietam Creek and Sharpsburg, Maryland, between the Army of Northern Virginia, led by Confederate General Robert E. Lee, and the Army of the Potomac, led by Union Major General George B. McClellan. Part of the Maryland Campaign, it was the first field army–level engagement in the Eastern Theater of the American Civil War to take place on Union soil.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q719252","facts":[{"label":"Part of","value":"Maryland Campaign"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q719252"},{"title":"Battle of Antietam — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Antietam"}],"briefSource":{"title":"Battle of Antietam","url":"https://en.wikipedia.org/wiki/Battle_of_Antietam","revision":1383110921,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q111012552","year":2022,"title":"Snake Island campaign","place":"Snake Island","region":"Asia","lat":45.255,"lon":30.204,"category":"War & conflict","article":"Snake_Island_campaign","body":"The Snake Island campaign was a Russian military attack on and occupation of Snake Island, a small, strategically located Ukrainian island in the Black Sea. On 24 February 2022, the first day of the 2022 Russian invasion of Ukraine, the Russian Navy attacked Snake Island and captured it along with its garrison, beginning a 126-day military occupation. The attack was widely publicized after a recording of a radio conversation went viral. On the clip, the Russian cruiser Moskva hails the island's garrison over the radio demanding their surrender; a Ukrainian soldier responds, \\"Russian warship, go fuck yourself\\" .","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q111012552","facts":[{"label":"Part of","value":"full-scale Russo-Ukrainian war"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q111012552"},{"title":"Snake Island campaign — background and references","url":"https://en.wikipedia.org/wiki/Snake_Island_campaign"}],"briefSource":{"title":"Snake Island campaign","url":"https://en.wikipedia.org/wiki/Snake_Island_campaign","revision":1370747625,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q461599","year":-371,"title":"Battle of Leuctra","place":"Leuctra","region":"Europe","lat":38.257,"lon":23.172,"category":"War & conflict","article":"Battle_of_Leuctra","body":"The Battle of Leuctra (Ancient Greek: Λεῦκτρα, Ancient Greek: [lêu̯k.tra]) was fought on 6 July 371 BC between the Boeotians led by the Thebans, and the Spartans along with their allies. The battle occurred in the context of the King's Peace, or Peace of Antalcidas, which had ended the Corinthian War in 386 BC. The Peace was formally renewed in 375 BC, but a disagreement between the Spartans and the Thebans over the protocol for renewing the Peace again in 371 led directly to the battle, which took place in the vicinity of Leuctra, a village in Boeotia in the territory of Thespiae.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q461599","facts":[{"label":"Part of","value":"Boeotian War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q461599"},{"title":"Battle of Leuctra — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Leuctra"}],"briefSource":{"title":"Battle of Leuctra","url":"https://en.wikipedia.org/wiki/Battle_of_Leuctra","revision":1383915267,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q44732","year":1302,"title":"Battle of the Golden Spurs","place":"Kortrijk","region":"Europe","lat":50.829,"lon":3.276,"category":"War & conflict","article":"Battle_of_the_Golden_Spurs","body":"The Battle of the Golden Spurs or Battle of Courtrai was a military confrontation between the royal army of France and rebellious forces of the County of Flanders on 11 July 1302 during the 1297–1305 Franco-Flemish War. It took place near the town of Kortrijk in modern-day Belgium and resulted in an unexpected victory for the Flemish. On 18 May 1302, after two years of French military occupation and several years of unrest, many cities in Flanders revolted against French rule, and the local militia massacred many Frenchmen in the city of Bruges.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q44732","facts":[{"label":"Part of","value":"Franco-Flemish War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q44732"},{"title":"Battle of the Golden Spurs — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_the_Golden_Spurs"}],"briefSource":{"title":"Battle of the Golden Spurs","url":"https://en.wikipedia.org/wiki/Battle_of_the_Golden_Spurs","revision":1377726388,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1259218","year":1761,"title":"Third Battle of Panipat","place":"Panipat","region":"Asia","lat":29.39,"lon":76.97,"category":"War & conflict","article":"Third_Battle_of_Panipat","body":"The Third Battle of Panipat took place on 14 January 1761 between the Maratha Empire and the invading army of the Durrani Empire. The battle took place in and around the city of Panipat, approximately 97 kilometres (60 mi) north of Delhi. The Afghans were supported by three key allies in India: Najib-ud-Daula who persuaded the support of the Rohilla chiefs, elements of the declining Mughal Empire, and most prized the Oudh State under Shuja-ud-Daula.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1259218","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1259218"},{"title":"Third Battle of Panipat — background and references","url":"https://en.wikipedia.org/wiki/Third_Battle_of_Panipat"}],"briefSource":{"title":"Third Battle of Panipat","url":"https://en.wikipedia.org/wiki/Third_Battle_of_Panipat","revision":1383907735,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q4411","year":1792,"title":"Battle of Valmy","place":"Sainte-Menehould","region":"Europe","lat":49.08,"lon":4.767,"category":"War & conflict","article":"Battle_of_Valmy","body":"The Battle of Valmy, also known as the Cannonade of Valmy, was the first major victory by the army of France during the Revolutionary Wars that followed the French Revolution. The battle took place on 20 September 1792 as Prussian troops commanded by the Duke of Brunswick attempted to march on Paris. Generals François Kellermann and Charles Dumouriez stopped the advance near the northern village of Valmy in Champagne-Ardenne. In this early part of the Revolutionary Wars—known as the War of the First Coalition—the new French government was in almost every way unproven, and thus the small, localized victory at Valmy became a huge psychological victory for the Revolution at large.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q4411","facts":[{"label":"Part of","value":"War of the First Coalition"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q4411"},{"title":"Battle of Valmy — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Valmy"}],"briefSource":{"title":"Battle of Valmy","url":"https://en.wikipedia.org/wiki/Battle_of_Valmy","revision":1383616436,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q464512","year":1854,"title":"Battle of Balaclava","place":"Balaklava","region":"Europe","lat":44.505,"lon":33.598,"category":"War & conflict","article":"Battle_of_Balaclava","body":"The Battle of Balaclava, fought on 25 October 1854 during the Crimean War, was part of the Siege of Sevastopol (1854–55), an attempt by the British, French and Ottoman allies to capture the port and fortress of Sevastopol, Russia's principal naval base on the Black Sea. The engagement followed the earlier Allied victory in September at the Battle of the Alma, where the Russian General Menshikov had positioned his army in an attempt to stop the Allies progressing south towards their strategic goal. Alma was the first major encounter fought in the Crimean Peninsula since the Allied landings at Kalamita Bay on 14 September, and was a clear battlefield success; but a tardy pursuit by the Allies failed to gain a decisive victory, allowing the Russians to regroup, recover and prepare their defence.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q464512","facts":[{"label":"Part of","value":"Crimean War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q464512"},{"title":"Battle of Balaclava — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Balaclava"}],"briefSource":{"title":"Battle of Balaclava","url":"https://en.wikipedia.org/wiki/Battle_of_Balaclava","revision":1373774434,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q657055","year":1897,"title":"Greco-Turkish War (1897)","place":"Greece","region":"Europe","lat":38.5,"lon":23,"category":"War & conflict","article":"Greco-Turkish_War_(1897)","body":"The Greco-Turkish War of 1897 or the Ottoman-Greek War of 1897 was fought between the Kingdom of Greece and the Ottoman Empire. Its immediate cause involved the ongoing Cretan Revolt and the status of the Ottoman province of Crete, whose Greek-majority population had long desired union with Greece. Despite the Ottoman victory on the field, an autonomous Cretan State under Ottoman suzerainty was established the following year (as a result of the intervention of the Great Powers after the war), with Prince George of Greece and Denmark as its first High Commissioner.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q657055","facts":[{"label":"Part of","value":"Greco-Turkish War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q657055"},{"title":"Greco-Turkish War (1897) — background and references","url":"https://en.wikipedia.org/wiki/Greco-Turkish_War_(1897)"}],"briefSource":{"title":"Greco-Turkish War (1897)","url":"https://en.wikipedia.org/wiki/Greco-Turkish_War_(1897)","revision":1383277935,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q6857636","year":1899,"title":"Military history of South Africa","place":"South Africa","region":"Africa","lat":-29,"lon":24,"category":"War & conflict","article":"Military_history_of_South_Africa","body":"The military history of South Africa chronicles a vast time period and complex events from the dawn of history until the present time. It covers civil wars and wars of aggression and of self-defense both within South Africa and against it. It includes the history of battles fought in the territories of modern South Africa in neighbouring territories, in both world wars and in modern international conflicts.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q6857636","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q6857636"},{"title":"Military history of South Africa — background and references","url":"https://en.wikipedia.org/wiki/Military_history_of_South_Africa"}],"briefSource":{"title":"Military history of South Africa","url":"https://en.wikipedia.org/wiki/Military_history_of_South_Africa","revision":1370173754,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q696848","year":1941,"title":"Anglo-Iraqi War","place":"Kingdom of Iraq","region":"Asia","lat":33.333,"lon":44.383,"category":"War & conflict","article":"Anglo-Iraqi_War","body":"The Anglo-Iraqi War was a British-led Allied military campaign during the Second World War against the Kingdom of Iraq, then ruled by Rashid Ali al-Gaylani who had seized power in the 1941 Iraqi coup d'état with assistance from Germany and Italy. The campaign resulted in the downfall of Gaylani's government, the re-occupation of Iraq by the British, and the return to power of the Regent of Iraq, Prince 'Abd al-Ilah, a British ally. Mandatory Iraq had been governed by the British since 1921.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q696848","facts":[{"label":"Part of","value":"Mediterranean and Middle East Theater of World War II"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q696848"},{"title":"Anglo-Iraqi War — background and references","url":"https://en.wikipedia.org/wiki/Anglo-Iraqi_War"}],"briefSource":{"title":"Anglo-Iraqi War","url":"https://en.wikipedia.org/wiki/Anglo-Iraqi_War","revision":1383945617,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q162357","year":1941,"title":"Battle of Smolensk (1941)","place":"Smolensk","region":"Europe","lat":54.783,"lon":32.045,"category":"War & conflict","article":"Battle_of_Smolensk_(1941)","body":"The first Battle of Smolensk was a battle during the second phase of Operation Barbarossa, the Axis invasion of the Soviet Union, in World War II. It was fought around the city of Smolensk between 10 July and 10 September 1941, about 400 km (250 mi) west of Moscow. The Ostheer had advanced 500 km (310 mi) into the USSR in the 18 days after the invasion on 22 June 1941. The Soviet 16th, 19th and the 20th armies were encircled and destroyed just to the east of Smolensk, though many of the men from the 19th and 20th armies managed to escape the pocket.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q162357","facts":[{"label":"Part of","value":"Operation Barbarossa"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q162357"},{"title":"Battle of Smolensk (1941) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Smolensk_(1941)"}],"briefSource":{"title":"Battle of Smolensk (1941)","url":"https://en.wikipedia.org/wiki/Battle_of_Smolensk_(1941)","revision":1375278859,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1194400","year":1989,"title":"Massacre of Tbilisi","place":"Tbilisi","region":"Asia","lat":41.723,"lon":44.793,"category":"War & conflict","article":"Massacre_of_Tbilisi","body":"Massacre of Tbilisi (also known as the Tbilisi tragedy or April 9 Tragedy) refers to the events in Tbilisi, Georgian Soviet Socialist Republic, on 9 April 1989, when a peaceful anti-Soviet, pro-independence and nationalist demonstration was violently dispersed by the Soviet Army, resulting in the deaths of 21 Georgian civilians, with hundreds more injured. April 9 is now commemorated in Georgia as the National Unity Day (Georgian: ეროვნული ერთიანობის დღე, romanized: erovnuli ertianobis dghe), an annual public holiday.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1194400","facts":[{"label":"Part of","value":"perestroika"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1194400"},{"title":"Massacre of Tbilisi — background and references","url":"https://en.wikipedia.org/wiki/Massacre_of_Tbilisi"}],"briefSource":{"title":"Massacre of Tbilisi","url":"https://en.wikipedia.org/wiki/Massacre_of_Tbilisi","revision":1382643462,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q503982","year":-479,"title":"Battle of Mycale","place":"Mycale","region":"Asia","lat":37.691,"lon":27.157,"category":"War & conflict","article":"Battle_of_Mycale","body":"The Battle of Mycale was one of the two major battles (the other being the Battle of Plataea) that ended the second Persian invasion of Greece during the Greco-Persian Wars. It took place on 27 or 28 August, 479 BC on the slopes of Mount Mycale, which is located on the coast of Ionia opposite the island of Samos. The battle was fought between an alliance of Greek city-states, including Sparta, Athens and Corinth; and the Persian Empire of Xerxes I.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q503982","facts":[{"label":"Part of","value":"Second Persian invasion of Greece"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q503982"},{"title":"Battle of Mycale — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Mycale"}],"briefSource":{"title":"Battle of Mycale","url":"https://en.wikipedia.org/wiki/Battle_of_Mycale","revision":1370270282,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q851504","year":507,"title":"Battle of Vouillé","place":"Vouillé","region":"Europe","lat":46.583,"lon":0.333,"category":"War & conflict","article":"Battle_of_Vouillé","body":"The Battle of Vouillé (from Latin Campus Vogladensis) was a battle in the Franco-Gothic War and was fought in the northern marches of Visigothic territory, at Vouillé, near Poitiers (Gaul), around spring 507 between the Franks, commanded by Clovis, and the Visigoths, commanded by Alaric II. The Franks' victory resulted in their conquest of Gallia Aquitania and the death of Alaric II.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q851504","facts":[{"label":"Part of","value":"Franco-Visigothic Wars"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q851504"},{"title":"Battle of Vouillé — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Vouill%C3%A9"}],"briefSource":{"title":"Battle of Vouillé","url":"https://en.wikipedia.org/wiki/Battle_of_Vouill%C3%A9","revision":1378017638,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q705874","year":1241,"title":"Battle of Mohi","place":"Muhi","region":"Europe","lat":47.978,"lon":20.929,"category":"War & conflict","article":"Battle_of_Mohi","body":"The Battle of Mohi (11 April 1241) was a pivotal conflict between the Mongol Empire and the Kingdom of Hungary during the Mongol invasion of Europe. The battle took place at Muhi (then Mohi), a town located in present-day Hungary, southwest of the Sajó River. The Mongol Empire, led by Batu Khan, sought to expand its territories into Europe, while the Kingdom of Hungary, led by King Béla IV, aimed to protect its borders. The battle resulted in a victory for the Mongols, who destroyed the Hungarian royal army at a heavy cost which contributed to the decision to halt the Mongol campaign.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q705874","facts":[{"label":"Part of","value":"Mongol invasions and conquests"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q705874"},{"title":"Battle of Mohi — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Mohi"}],"briefSource":{"title":"Battle of Mohi","url":"https://en.wikipedia.org/wiki/Battle_of_Mohi","revision":1384069468,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q63468","year":1525,"title":"Battle of Pavia","place":"Pavia","region":"Europe","lat":45.198,"lon":9.165,"category":"War & conflict","article":"Battle_of_Pavia","body":"The Battle of Pavia, fought on the morning of 24 February 1525, was the decisive engagement of the Italian War of 1521–1526 between the Kingdom of France and the Habsburg Empire of Charles V, Holy Roman Emperor as well as ruler of Spain, Austria, the Low Countries, and the Two Sicilies. The French army was led by King Francis I of France, who laid siege to the city of Pavia (then part of the Duchy of Milan within the Holy Roman Empire) in October 1524 with 26,200 troops. The French infantry consisted of 6,000 French foot soldiers and 17,000 foreign mercenaries: 8,000 Swiss, 5,000 Germans, and 4,000 Italians (Black Bands).","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q63468","facts":[{"label":"Part of","value":"Italian campaign of 1524–1525"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q63468"},{"title":"Battle of Pavia — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Pavia"}],"briefSource":{"title":"Battle of Pavia","url":"https://en.wikipedia.org/wiki/Battle_of_Pavia","revision":1383914526,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q168556","year":1546,"title":"Schmalkaldic War","place":"Holy Roman Empire","region":"Europe","lat":50,"lon":10,"category":"War & conflict","article":"Schmalkaldic_War","body":"The Schmalkaldic War was fought within the territories of the Holy Roman Empire between the allied forces of Charles V, Holy Roman Emperor and Maurice, Duke of Saxony against the Lutheran Schmalkaldic League, with the forces directly loyal to Charles fighting under the command of Fernando Álvarez de Toledo, 3rd Duke of Alba.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q168556","facts":[{"label":"Part of","value":"European Wars of Religion"},{"label":"End year","value":"1547"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q168556"},{"title":"Schmalkaldic War — background and references","url":"https://en.wikipedia.org/wiki/Schmalkaldic_War"}],"briefSource":{"title":"Schmalkaldic War","url":"https://en.wikipedia.org/wiki/Schmalkaldic_War","revision":1374728834,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q644960","year":1690,"title":"Battle of the Boyne","place":"Drogheda","region":"Europe","lat":53.723,"lon":-6.424,"category":"War & conflict","article":"Battle_of_the_Boyne","body":"The Battle of the Boyne took place in 1690 between the forces of the deposed King James II, and those of King William III who, with his wife Queen Mary II (his cousin and James's daughter), had acceded to the Crowns of England, Scotland and Ireland in 1689. The battle was fought across the River Boyne close to the town of Drogheda in the Kingdom of Ireland, modern-day Ireland, and resulted in a victory for William. This turned the tide in James's failed attempt to regain the Crowns of England, Scotland and Ireland and ultimately aided in ensuring the continued Protestant ascendancy in Ireland.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q644960","facts":[{"label":"Part of","value":"Williamite War in Ireland"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q644960"},{"title":"Battle of the Boyne — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_the_Boyne"}],"briefSource":{"title":"Battle of the Boyne","url":"https://en.wikipedia.org/wiki/Battle_of_the_Boyne","revision":1383176498,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q778010","year":1775,"title":"Battles of Lexington and Concord","place":"Middlesex County","region":"Americas","lat":42.459,"lon":-71.276,"category":"War & conflict","article":"Battles_of_Lexington_and_Concord","body":"The Battles of Lexington and Concord on April 19, 1775, were the first major military actions between the British Army and Patriot militias from British America's Thirteen Colonies during the American Revolutionary War. The opposing forces fought day-long running battles in Middlesex County in the Province of Massachusetts Bay, in the towns of Lexington, Concord, Lincoln, Menotomy (present-day Arlington), and Cambridge. After the Boston Tea Party (1773), the British Parliament passed the Intolerable Acts (early 1774), including the restrictive Massachusetts Government Act.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q778010","facts":[{"label":"Part of","value":"American Revolutionary War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q778010"},{"title":"Battles of Lexington and Concord — background and references","url":"https://en.wikipedia.org/wiki/Battles_of_Lexington_and_Concord"}],"briefSource":{"title":"Battles of Lexington and Concord","url":"https://en.wikipedia.org/wiki/Battles_of_Lexington_and_Concord","revision":1379281294,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q154942","year":1866,"title":"Battle of Königgrätz","place":"Sadová","region":"Europe","lat":50.297,"lon":15.7,"category":"War & conflict","article":"Battle_of_Königgrätz","body":"The Battle of Königgrätz (or Battle of Sadová; Czech: Bitva u Hradce Králové) was the decisive battle of the Austro-Prussian War in which the Kingdom of Prussia defeated the Austrian Empire. It took place on 3 July 1866, near the Bohemian city of Hradec Králové and village of Sadová, now in the Czech Republic. It was the single largest battle of the war, and the largest battle in the world since the Battle of Leipzig in 1813.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q154942","facts":[{"label":"Part of","value":"Austro-Prussian War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q154942"},{"title":"Battle of Königgrätz — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_K%C3%B6niggr%C3%A4tz"}],"briefSource":{"title":"Battle of Königgrätz","url":"https://en.wikipedia.org/wiki/Battle_of_K%C3%B6niggr%C3%A4tz","revision":1381256183,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q155103","year":1944,"title":"Siege of Budapest","place":"Budapest","region":"Europe","lat":47.498,"lon":19.041,"category":"War & conflict","article":"Siege_of_Budapest","body":"The Siege of Budapest or Battle of Budapest, was a major battle fought between Soviet and Romanian forces and Hungarian and German forces for the Hungarian capital of Budapest, near the end of World War II. The Budapest Offensive began on October 29 1944, while the siege lasted from December 26 1944 to February 13, 1945. The Soviets began advancing into the suburbs of Pest in November and encircled Budapest on December 26. The besieged defenders resisted the Soviets for approximately fifty days, although they had already exhausted most of their supplies in the first days of the fighting.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q155103","facts":[{"label":"Part of","value":"World War II"},{"label":"End year","value":"1945"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q155103"},{"title":"Siege of Budapest — background and references","url":"https://en.wikipedia.org/wiki/Siege_of_Budapest"}],"briefSource":{"title":"Siege of Budapest","url":"https://en.wikipedia.org/wiki/Siege_of_Budapest","revision":1379298016,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1069736","year":1992,"title":"Croat–Bosniak War","place":"Bosnia and Herzegovina","region":"Europe","lat":44,"lon":18,"category":"War & conflict","article":"Croat–Bosniak_War","body":"The Croat–Bosniak War or Croat–Muslim War was a conflict between the Bosniak-dominated Republic of Bosnia and Herzegovina and the Croatian Republic of Herzeg-Bosnia, supported by Croatia, that lasted from 18 October 1992 to 23 February 1994. It is often referred to as a \\"war within a war\\" because it was part of the larger Bosnian War. In the beginning, the Army of the Republic of Bosnia and Herzegovina (ARBiH) and the Croatian Defence Council (HVO) fought together in an alliance against the Yugoslav People's Army (JNA) and the Army of Republika Srpska (VRS).","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1069736","facts":[{"label":"Part of","value":"War in Bosnia and Herzegovina"},{"label":"End year","value":"1994"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1069736"},{"title":"Croat–Bosniak War — background and references","url":"https://en.wikipedia.org/wiki/Croat%E2%80%93Bosniak_War"}],"briefSource":{"title":"Croat–Bosniak War","url":"https://en.wikipedia.org/wiki/Croat%E2%80%93Bosniak_War","revision":1384045146,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q832273","year":1998,"title":"Eritrean–Ethiopian War","place":"Eritrea","region":"Africa","lat":9,"lon":40,"category":"War & conflict","article":"Eritrean–Ethiopian_War","body":"The Eritrean–Ethiopian War, also known as the Badme War, was a major armed conflict between Ethiopia and Eritrea that took place from May 6, 1998 to June 18, 2000. After Eritrea gained independence from Ethiopia in 1993, relations were initially friendly. However, disagreements about where the newly created international border should be caused relations to deteriorate significantly, eventually leading to full-scale war. The conflict was the biggest war in the world at the time, with over 500,000 troops partaking in the fighting on both sides.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q832273","facts":[{"label":"Part of","value":"Conflicts in the Horn of Africa"},{"label":"End year","value":"2000"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q832273"},{"title":"Eritrean–Ethiopian War — background and references","url":"https://en.wikipedia.org/wiki/Eritrean%E2%80%93Ethiopian_War"}],"briefSource":{"title":"Eritrean–Ethiopian War","url":"https://en.wikipedia.org/wiki/Eritrean%E2%80%93Ethiopian_War","revision":1383710836,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q179275","year":2004,"title":"Insurgency in Khyber Pakhtunkhwa","place":"Federally Administered Tribal Areas","region":"Asia","lat":33,"lon":70.167,"category":"War & conflict","article":"Insurgency_in_Khyber_Pakhtunkhwa","body":"Since 2004, an insurgency has been fought in the Pakistani province of Khyber Pakhtunkhwa by Islamist militant groups such as the Tehrik-i-Taliban Pakistan (TTP), Jundallah, Lashkar-e-Islam (LeI), the Tehreek-e-Nafaz-e-Shariat-e-Mohammadi (TNSM), Al-Qaeda, and their Central Asian allies such as the Islamic State – Khorasan Province (ISKP), Islamic Movement of Uzbekistan, East Turkistan Movement, Jamaat-ul-Ahrar, Ittihad-ul-Mujahideen Pakistan, and elements of organised crime. Before being transformed into an insurgency in 2017, the conflict was a war. The armed conflict began in 2004 when tensions rooted in the Pakistan Army's search for Al-Qaeda fighters in its mountainous Waziristan region escalated into large-scale armed resistance.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q179275","facts":[{"label":"Part of","value":"War on Terrorism"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q179275"},{"title":"Insurgency in Khyber Pakhtunkhwa — background and references","url":"https://en.wikipedia.org/wiki/Insurgency_in_Khyber_Pakhtunkhwa"}],"briefSource":{"title":"Insurgency in Khyber Pakhtunkhwa","url":"https://en.wikipedia.org/wiki/Insurgency_in_Khyber_Pakhtunkhwa","revision":1383060851,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q733364","year":-1457,"title":"Battle of Megiddo (15th century BC)","place":"Tel Megiddo","region":"Asia","lat":32.585,"lon":35.184,"category":"War & conflict","article":"Battle_of_Megiddo_(15th_century_BC)","body":"The Battle of Megiddo (fought 15th century BC) was fought between Egyptian forces under the command of Pharaoh Thutmose III and a large rebellious coalition of Canaanite vassal states led by the king of Kadesh. It is the first battle to have been recorded in what is accepted as relatively reliable detail. Megiddo is also the first recorded use of the composite bow and the first body count. All details of the battle come from Egyptian sources—primarily the hieroglyphic writings on the Hall of Annals in the Temple of Amun-Re at Karnak, Thebes (now Luxor), by the military scribe Tjaneni.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q733364","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q733364"},{"title":"Battle of Megiddo (15th century BC) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Megiddo_(15th_century_BC)"}],"briefSource":{"title":"Battle of Megiddo (15th century BC)","url":"https://en.wikipedia.org/wiki/Battle_of_Megiddo_(15th_century_BC)","revision":1370269307,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q830059","year":208,"title":"Battle of Red Cliffs","place":"Chibi","region":"Asia","lat":29.87,"lon":113.62,"category":"War & conflict","article":"Battle_of_Red_Cliffs","body":"The Battle of Red Cliffs, also known as the Battle of Chibi, was a decisive naval battle in China that took place during the winter of 208–209 AD. It was fought on the Yangtze River between the forces of warlords controlling different parts of the country during the end of the Han dynasty. The allied forces of Sun Quan, Liu Bei, and Liu Qi based south of the Yangtze defeated the numerically superior forces of the northern warlord Cao Cao.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q830059","facts":[{"label":"Part of","value":"Three Kingdoms"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q830059"},{"title":"Battle of Red Cliffs — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Red_Cliffs"}],"briefSource":{"title":"Battle of Red Cliffs","url":"https://en.wikipedia.org/wiki/Battle_of_Red_Cliffs","revision":1370587339,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q847287","year":1177,"title":"Battle of Montgisard","place":"Ramla","region":"Asia","lat":31.86,"lon":34.92,"category":"War & conflict","article":"Battle_of_Montgisard","body":"The Battle of Montgisard was fought between the Kingdom of Jerusalem and the Ayyubid Sultanate of Egypt on 25 November 1177 at Montgisard, in the Levant between Ramla and Yibna. Baldwin IV of Jerusalem, severely afflicted by leprosy, alongside Renaud de Châtillon, led Christian forces against Muslim troops led by Saladin in what became one of the most notable engagements of the Crusades. The Egyptian army was quickly routed and pursued for twelve miles. Saladin fled back to Cairo, reaching the city on 8 December, with only a tenth of his army.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q847287","facts":[{"label":"Part of","value":"Crusader battles between 1149 and 1189"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q847287"},{"title":"Battle of Montgisard — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Montgisard"}],"briefSource":{"title":"Battle of Montgisard","url":"https://en.wikipedia.org/wiki/Battle_of_Montgisard","revision":1382245386,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q167259","year":1632,"title":"Battle of Lützen (1632)","place":"Leipzig","region":"Europe","lat":51.341,"lon":12.375,"category":"War & conflict","article":"Battle_of_Lützen_(1632)","body":"The Battle of Lützen, fought on 16 November 1632, was one of the most important of the Thirty Years' War. A Swedish army under Gustavus Adolphus, supported by troops from Saxony and Hesse-Kassel, narrowly defeated an Imperial force under Albrecht von Wallenstein. Both sides suffered heavy casualties, with Gustavus himself among the dead. The battle began with a series of frontal attacks by the Swedish infantry, which nearly succeeded in breaking through before being repulsed with severe losses by Imperial cavalry under Pappenheim.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q167259","facts":[{"label":"Part of","value":"Thirty Years' War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q167259"},{"title":"Battle of Lützen (1632) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_L%C3%BCtzen_(1632)"}],"briefSource":{"title":"Battle of Lützen (1632)","url":"https://en.wikipedia.org/wiki/Battle_of_L%C3%BCtzen_(1632)","revision":1382483670,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q916495","year":1665,"title":"Second Anglo-Dutch War","place":"North Sea","region":"Asia","lat":55,"lon":3,"category":"War & conflict","article":"Second_Anglo-Dutch_War","body":"The Second Anglo-Dutch War began on 4 March 1665 and concluded with the signing of the Treaty of Breda on 31 July 1667. It was the second in a series of naval wars fought between England and the Dutch Republic and it was driven largely by commercial rivalry, competition over maritime trade, and disputes over overseas colonies and trading posts. Despite several major battles, neither side was able to score a decisive victory, and by the end of 1666 the war had reached stalemate.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q916495","facts":[{"label":"Part of","value":"Anglo-Dutch Wars"},{"label":"End year","value":"1667"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q916495"},{"title":"Second Anglo-Dutch War — background and references","url":"https://en.wikipedia.org/wiki/Second_Anglo-Dutch_War"}],"briefSource":{"title":"Second Anglo-Dutch War","url":"https://en.wikipedia.org/wiki/Second_Anglo-Dutch_War","revision":1370733738,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q660004","year":1672,"title":"Russo-Turkish War (1672–1681)","place":"Chyhyryn","region":"Europe","lat":49.083,"lon":32.667,"category":"War & conflict","article":"Russo-Turkish_War_(1672–1681)","body":"The Russo-Turkish War of 1672–1681, also known as the Chyryhyn campaigns, was a war between the Tsardom of Russia and Ottoman Empire, caused by Turkish expansionism in the second half of the 17th century. Is the largest and one of the most important series of military campaigns before the Great Turkish War.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q660004","facts":[{"label":"Part of","value":"Russo-Turkish Wars"},{"label":"End year","value":"1681"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q660004"},{"title":"Russo-Turkish War (1672–1681) — background and references","url":"https://en.wikipedia.org/wiki/Russo-Turkish_War_(1672%E2%80%931681)"}],"briefSource":{"title":"Russo-Turkish War (1672–1681)","url":"https://en.wikipedia.org/wiki/Russo-Turkish_War_(1672%E2%80%931681)","revision":1384168200,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q829104","year":1686,"title":"Russo-Turkish War (1686–1700)","place":"Crimea","region":"Europe","lat":45,"lon":34,"category":"War & conflict","article":"Russo-Turkish_War_(1686–1700)","body":"The Russo-Turkish War of 1686–1700 was part of the joint European effort to confront the Ottoman Empire. The larger European conflict was known as the Great Turkish War. The Russo-Turkish War began after the Tsardom of Russia joined the European anti-Turkish coalition (Habsburg monarchy, Poland–Lithuania, Venice) in 1686, after Poland-Lithuania agreed to recognize Russian incorporation of Kiev and the left bank of Ukraine.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q829104","facts":[{"label":"Part of","value":"Great Turkish War"},{"label":"End year","value":"1700"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q829104"},{"title":"Russo-Turkish War (1686–1700) — background and references","url":"https://en.wikipedia.org/wiki/Russo-Turkish_War_(1686%E2%80%931700)"}],"briefSource":{"title":"Russo-Turkish War (1686–1700)","url":"https://en.wikipedia.org/wiki/Russo-Turkish_War_(1686%E2%80%931700)","revision":1380238405,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q334029","year":1775,"title":"Battle of Bunker Hill","place":"Charlestown","region":"Americas","lat":42.375,"lon":-71.064,"category":"War & conflict","article":"Battle_of_Bunker_Hill","body":"The Battle of Bunker Hill was fought on June 17, 1775, during the siege of Boston in the first campaign of the American Revolutionary War. The battle is named after Bunker Hill in Charlestown, Massachusetts, which was peripherally involved. It was the original objective of both the colonial and British troops, though the majority of combat took place on the adjacent hill, which became known as Breed's Hill. On June 13, 1775, the leaders of the colonial forces besieging Boston learned that the British were planning to send troops out from the city to fortify the unoccupied hills surrounding the city, which would give them control of Boston Harbor.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q334029","facts":[{"label":"Part of","value":"American Revolutionary War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q334029"},{"title":"Battle of Bunker Hill — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Bunker_Hill"}],"briefSource":{"title":"Battle of Bunker Hill","url":"https://en.wikipedia.org/wiki/Battle_of_Bunker_Hill","revision":1383098336,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q696187","year":1992,"title":"1992 Los Angeles riots","place":"Los Angeles","region":"Americas","lat":34.052,"lon":-118.244,"category":"War & conflict","article":"1992_Los_Angeles_riots","body":"Los Angeles, California, experienced a series of riots and civil disturbances from April 29 to May 3, 1992. Civil unrest began in South Central Los Angeles on April 29, after a jury acquitted four officers of the Los Angeles Police Department (LAPD) charged with using excessive force in the arrest and beating of Rodney King. The incident, which had been videotaped by George Holliday, who was a bystander to the incident, was heavily reported on by various news and media outlets, such as CNN.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q696187","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q696187"},{"title":"1992 Los Angeles riots — background and references","url":"https://en.wikipedia.org/wiki/1992_Los_Angeles_riots"}],"briefSource":{"title":"1992 Los Angeles riots","url":"https://en.wikipedia.org/wiki/1992_Los_Angeles_riots","revision":1384310436,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q319124","year":-301,"title":"Battle of Ipsus","place":"Ipsos","region":"Asia","lat":38.95,"lon":30.99,"category":"War & conflict","article":"Battle_of_Ipsus","body":"The Battle of Ipsus (Ancient Greek: Ἱψός) was fought between the successors of Alexander the Great (referred to as the Diadochi) in 301 BC near the town of Ipsus in Phrygia. Antigonus I Monophthalmus, the Greek Macedonian ruler of large parts of Asia, and his son Demetrius were pitted against the coalition of three other successors of Alexander: Cassander, ruler of Macedon; Lysimachus, ruler of Thrace; and Seleucus I Nicator, ruler of Babylonia and Persia.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q319124","facts":[{"label":"Part of","value":"Fourth War of the Diadochi"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q319124"},{"title":"Battle of Ipsus — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Ipsus"}],"briefSource":{"title":"Battle of Ipsus","url":"https://en.wikipedia.org/wiki/Battle_of_Ipsus","revision":1376988647,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q391087","year":-197,"title":"Battle of Cynoscephalae","place":"Thessaly","region":"Europe","lat":39.417,"lon":22.567,"category":"War & conflict","article":"Battle_of_Cynoscephalae","body":"The Battle of Cynoscephalae (Greek: Μάχη τῶν Κυνὸς Κεφαλῶν) was an encounter battle fought in Thessaly in June 197 BC between the Roman-Aetolian army, led by Titus Quinctius Flamininus, and Antigonid Macedon, led by Philip V, during the Second Macedonian War. It was a decisive Roman victory and marked the end of the conflict.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q391087","facts":[{"label":"Part of","value":"Second Macedonian War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q391087"},{"title":"Battle of Cynoscephalae — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Cynoscephalae"}],"briefSource":{"title":"Battle of Cynoscephalae","url":"https://en.wikipedia.org/wiki/Battle_of_Cynoscephalae","revision":1376998509,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q2300090","year":630,"title":"Battle of Hunayn","place":"Hunayn","region":"Asia","lat":21.517,"lon":40.042,"category":"War & conflict","article":"Battle_of_Hunayn","body":"The Battle of Hunayn was a conflict between the Muslims of the Islamic prophet Muhammad and the tribes of Qays in the aftermath of the conquest of Mecca. The battle took place in 8 AH (c. 630) in the Hunayn valley on the route from Mecca to Taif. The battle ultimately ended in a decisive victory for the Muslims, and it is one of the few battles mentioned by name in the Quran, where it appears in Surat at-Tawbah.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q2300090","facts":[{"label":"Part of","value":"battles of Muhammad"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q2300090"},{"title":"Battle of Hunayn — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Hunayn"}],"briefSource":{"title":"Battle of Hunayn","url":"https://en.wikipedia.org/wiki/Battle_of_Hunayn","revision":1370443349,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q939570","year":1371,"title":"Battle of Maritsa","place":"Ormenio","region":"Asia","lat":40.731,"lon":26.035,"category":"War & conflict","article":"Battle_of_Maritsa","body":"The Battle of Maritsa, also known as the Battle of Chernomen (Serbian: Marička bitka / Маричка битка; Turkish: Çirmen Muharebesi, İkinci Meriç Muharebesi; \\"Second Battle of Maritsa\\"), was fought on 26 September 1371 near the Maritsa River, close to the village of Chernomen (present-day Ormenio, Greece). The conflict pitted the Ottoman forces under Lala Şahin Pasha and Hacı İlbey against a coalition of Serbian lords, led by King Vukašin Mrnjavčević and his brother Despot Jovan Uglješa who sought to halt the Ottomans' westward advance. The battle ended in a decisive Ottoman victory in which both Serbian commanders were killed, marking the decline of Serbian power in Macedonia and paving the way for Ottoman expansion into the central Balkans.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q939570","facts":[{"label":"Part of","value":"Serbian–Ottoman Wars"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q939570"},{"title":"Battle of Maritsa — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Maritsa"}],"briefSource":{"title":"Battle of Maritsa","url":"https://en.wikipedia.org/wiki/Battle_of_Maritsa","revision":1380736962,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q465627","year":1527,"title":"Sack of Rome (1527)","place":"Rome","region":"Europe","lat":41.833,"lon":12.5,"category":"War & conflict","article":"Sack_of_Rome_(1527)","body":"The Sack of Rome, then part of the Papal States, followed the capture of Rome on 6 May 1527 by the mutinous troops of Charles V, Holy Roman Emperor, during the War of the League of Cognac. Charles V only intended to threaten military action to make Pope Clement VII accept his terms. However, the Imperial army (14,000 Germans, including Lutherans, 6,000 Spaniards and some Italians) were largely unpaid and mutinied. Despite being ordered not to storm Rome, they broke into the scarcely defended city and began looting, killing, and holding citizens for ransom without any restraint.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q465627","facts":[{"label":"Part of","value":"War of the League of Cognac"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q465627"},{"title":"Sack of Rome (1527) — background and references","url":"https://en.wikipedia.org/wiki/Sack_of_Rome_(1527)"}],"briefSource":{"title":"Sack of Rome (1527)","url":"https://en.wikipedia.org/wiki/Sack_of_Rome_(1527)","revision":1372345219,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q158677","year":1563,"title":"Northern Seven Years' War","place":"Scandinavia","region":"Europe","lat":64.78,"lon":14.761,"category":"War & conflict","article":"Northern_Seven_Years'_War","body":"The Northern Seven Years' War (also known as the Nordic Seven Years' War, the First Northern War, the Seven Years' War of the North or the Seven Years War in Scandinavia) was fought between the Kingdom of Sweden and a coalition of Denmark–Norway, Lübeck, and Poland–Lithuania between 1563 and 1570. The war was motivated by the dissatisfaction of King Frederick II of Denmark with the dissolution of the Kalmar Union, and the will of King Eric XIV of Sweden to break Denmark's dominating position. The fighting continued until both armies had been exhausted, and many men died.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q158677","facts":[{"label":"Part of","value":"Dano-Swedish Wars"},{"label":"End year","value":"1570"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q158677"},{"title":"Northern Seven Years' War — background and references","url":"https://en.wikipedia.org/wiki/Northern_Seven_Years'_War"}],"briefSource":{"title":"Northern Seven Years' War","url":"https://en.wikipedia.org/wiki/Northern_Seven_Years%27_War","revision":1381059213,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q846674","year":1777,"title":"Battles of Saratoga","place":"Stillwater","region":"Americas","lat":42.938,"lon":-73.653,"category":"War & conflict","article":"Battles_of_Saratoga","body":"The Battles of Saratoga were fought September 19 and October 7, 1777 over the same ground by the American Continental Army and the British Army near Saratoga, New York during the American Revolutionary War. The second battle ended with a decisive American victory, and the surrender of the British army there. The outcome greatly affected the course of the war, persuading France to enter the war as an American ally. In both battles, General John Burgoyne commanded the British forces, while Generals Horatio Gates and Benedict Arnold oversaw the American forces.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q846674","facts":[{"label":"Part of","value":"American Revolutionary War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q846674"},{"title":"Battles of Saratoga — background and references","url":"https://en.wikipedia.org/wiki/Battles_of_Saratoga"}],"briefSource":{"title":"Battles of Saratoga","url":"https://en.wikipedia.org/wiki/Battles_of_Saratoga","revision":1384087601,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q221469","year":1861,"title":"First Battle of Bull Run","place":"Fairfax County","region":"Americas","lat":38.83,"lon":-77.28,"category":"War & conflict","article":"First_Battle_of_Bull_Run","body":"The First Battle of Bull Run, called the Battle of First Manassas by Confederate forces, was the first major battle of the American Civil War. The battle was fought on July 21, 1861, in Prince William County, Virginia, just north of what is now the city of Manassas and about thirty miles west-southwest of Washington, D.C. The Union army was slow in positioning themselves, allowing Confederate reinforcements time to arrive by rail. Each side had about 18,000 poorly trained and poorly led troops.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q221469","facts":[{"label":"Part of","value":"Eastern theater of the American Civil War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q221469"},{"title":"First Battle of Bull Run — background and references","url":"https://en.wikipedia.org/wiki/First_Battle_of_Bull_Run"}],"briefSource":{"title":"First Battle of Bull Run","url":"https://en.wikipedia.org/wiki/First_Battle_of_Bull_Run","revision":1383779180,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q202465","year":1978,"title":"Uganda–Tanzania War","place":"Uganda","region":"Africa","lat":-6.307,"lon":34.854,"category":"War & conflict","article":"Uganda–Tanzania_War","body":"The Uganda–Tanzania War, known in Tanzania as the Kagera War (Swahili: Vita vya Kagera) and in Uganda as the 1979 Liberation War, was fought between Uganda and Tanzania from October 1978 until June 1979 and led to the overthrow of Ugandan President Idi Amin. The war was preceded by a deterioration of relations between Uganda and Tanzania following Amin's 1971 overthrow of President Milton Obote, who was close to the President of Tanzania, Julius Nyerere. Over the following years, Amin's regime was destabilised by violent purges, economic problems, and dissatisfaction in the Uganda Army.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q202465","facts":[{"label":"End year","value":"1979"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q202465"},{"title":"Uganda–Tanzania War — background and references","url":"https://en.wikipedia.org/wiki/Uganda%E2%80%93Tanzania_War"}],"briefSource":{"title":"Uganda–Tanzania War","url":"https://en.wikipedia.org/wiki/Uganda%E2%80%93Tanzania_War","revision":1383028829,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q47465940","year":2018,"title":"Operation Olive Branch","place":"Afrin","region":"Asia","lat":36.24,"lon":37.6,"category":"War & conflict","article":"Operation_Olive_Branch","body":"Operation Olive Branch (Turkish: Zeytin Dalı Harekâtı) was an invasion by the Turkish Armed Forces and Syrian National Army (SNA) in the Kurdish-majority Afrin District of northwest Syria, against the People's Protection Units (YPG) of the Syrian Democratic Forces (SDF). The air war and use of major artillery ended as the Arab and Turkmen militias of the SNA entered the city of Afrin on 18 March 2018. Between 395 and 510 civilians were reported killed in the invasion.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q47465940","facts":[{"label":"Part of","value":"Turkish involvement in the Syrian civil war"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q47465940"},{"title":"Operation Olive Branch — background and references","url":"https://en.wikipedia.org/wiki/Operation_Olive_Branch"}],"briefSource":{"title":"Operation Olive Branch","url":"https://en.wikipedia.org/wiki/Operation_Olive_Branch","revision":1380965919,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q111012383","year":2022,"title":"Capture of Chernobyl","place":"Chernobyl Exclusion Zone","region":"Europe","lat":51.267,"lon":30.217,"category":"War & conflict","article":"Capture_of_Chernobyl","body":"During the 2022 Russian invasion of Ukraine, the Chernobyl Exclusion Zone was captured on 24 February, the first day of the invasion, by the Russian Armed Forces, who entered Ukrainian territory from neighbouring Belarus and seized the entire area of the Chernobyl Nuclear Power Plant by the end of that day. On 7 March, it was reported that around 300 people (100 workers and 200 security guards for the plant) were trapped and had been unable to leave the power plant since its capture. On 31 March, it was reported that most of the Russian troops occupying the area had withdrawn, as the Russian military abandoned the Kyiv offensive to focus on operations in Eastern Ukraine.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q111012383","facts":[{"label":"Part of","value":"full-scale Russo-Ukrainian war"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q111012383"},{"title":"Capture of Chernobyl — background and references","url":"https://en.wikipedia.org/wiki/Capture_of_Chernobyl"}],"briefSource":{"title":"Capture of Chernobyl","url":"https://en.wikipedia.org/wiki/Capture_of_Chernobyl","revision":1370608466,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q917811","year":-190,"title":"Battle of Magnesia","place":"Manisa","region":"Asia","lat":38.617,"lon":27.433,"category":"War & conflict","article":"Battle_of_Magnesia","body":"The Battle of Magnesia took place in either December 190 or January 189 BC. It was fought as part of the Roman–Seleucid War, pitting forces of the Roman Republic led by the consul Lucius Cornelius Scipio Asiaticus and the allied Kingdom of Pergamon under Eumenes II against a Seleucid army of Antiochus III the Great. The two armies initially camped northeast of Magnesia ad Sipylum in Asia Minor (modern-day Manisa, Turkey), attempting to provoke each other into a battle on favorable terrain for several days.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q917811","facts":[{"label":"Part of","value":"Roman–Seleucid War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q917811"},{"title":"Battle of Magnesia — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Magnesia"}],"briefSource":{"title":"Battle of Magnesia","url":"https://en.wikipedia.org/wiki/Battle_of_Magnesia","revision":1380641302,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1233475","year":778,"title":"Battle of Roncevaux Pass","place":"Roncevaux Pass","region":"Europe","lat":42.989,"lon":-1.334,"category":"War & conflict","article":"Battle_of_Roncevaux_Pass","body":"The Battle of Roncevaux Pass (French and English spelling, Roncesvalles in Spanish, Orreaga in Basque) in 778 saw a large force of Basques ambush a part of Charlemagne's army in Roncevaux Pass, a high mountain pass in the Pyrenees on the present border between France and Spain, after his invasion of the Iberian Peninsula. The Basque attack was in retaliation for Charlemagne's destruction of the city walls of their capital, Pamplona. As the Franks retreated across the Pyrenees back to Francia, the rearguard of Frankish lords was cut off, stood its ground, and was wiped out.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1233475","facts":[{"label":"Part of","value":"Expedition of Charlemagne of 778"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1233475"},{"title":"Battle of Roncevaux Pass — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Roncevaux_Pass"}],"briefSource":{"title":"Battle of Roncevaux Pass","url":"https://en.wikipedia.org/wiki/Battle_of_Roncevaux_Pass","revision":1382489254,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q940026","year":1191,"title":"Battle of Arsuf","place":"Arsuf","region":"Asia","lat":32.194,"lon":34.807,"category":"War & conflict","article":"Battle_of_Arsuf","body":"The Battle of Arsuf took place on 7 September 1191, as part of the Third Crusade. It saw a multi-national force of Crusaders, led by Richard I of England, defeat a significantly larger army of the Ayyubid Sultanate, led by Saladin. Following the Crusaders' capture of Acre, Saladin moved to intercept Richard's advancing army just outside of the city of Arsuf (Arsur in Latin) as it moved along the coast from Acre towards Jaffa. In an attempt to disrupt the cohesion of the Crusader army as they mobilized, the Ayyubid force launched a series of harassing attacks that were ultimately unsuccessful at breaking their formation.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q940026","facts":[{"label":"Part of","value":"Third Crusade"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q940026"},{"title":"Battle of Arsuf — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Arsuf"}],"briefSource":{"title":"Battle of Arsuf","url":"https://en.wikipedia.org/wiki/Battle_of_Arsuf","revision":1384318320,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q517486","year":1697,"title":"Battle of Zenta","place":"Senta","region":"Europe","lat":45.926,"lon":20.098,"category":"War & conflict","article":"Battle_of_Zenta","body":"The Battle of Zenta, also known as the Battle of Senta, took place on 11 September 1697 near Zenta, in the Kingdom of Hungary, then under Ottoman occupation (present-day Serbia). It was a decisive engagement of the Great Turkish War, fought between the forces of the Ottoman Empire and the Holy League. The battle resulted in a significant Ottoman defeat against a numerically inferior Habsburg force acting on behalf of Leopold I, Holy Roman Emperor.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q517486","facts":[{"label":"Part of","value":"Great Turkish War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q517486"},{"title":"Battle of Zenta — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Zenta"}],"briefSource":{"title":"Battle of Zenta","url":"https://en.wikipedia.org/wiki/Battle_of_Zenta","revision":1382486173,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q841278","year":1836,"title":"Battle of San Jacinto","place":"Spring Branch","region":"Americas","lat":29.749,"lon":-95.081,"category":"War & conflict","article":"Battle_of_San_Jacinto","body":"The Battle of San Jacinto (Spanish: Batalla de San Jacinto), fought on April 21, 1836, in present-day La Porte and Deer Park, Texas, was the final and decisive battle of the Texas Revolution. Led by General Sam Houston, the Texian Army engaged and defeated General Antonio López de Santa Anna's Mexican army in a fight that lasted just 18 minutes. A detailed, first-hand account of the battle was written by General Houston from the headquarters of the Texian Army in San Jacinto on April 25, 1836.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q841278","facts":[{"label":"Part of","value":"Texas Revolution"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q841278"},{"title":"Battle of San Jacinto — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_San_Jacinto"}],"briefSource":{"title":"Battle of San Jacinto","url":"https://en.wikipedia.org/wiki/Battle_of_San_Jacinto","revision":1378726034,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q740791","year":1885,"title":"Serbo-Bulgarian War","place":"Balkans","region":"Europe","lat":42,"lon":22,"category":"War & conflict","article":"Serbo-Bulgarian_War","body":"The Serbo-Bulgarian War or the Serbian–Bulgarian War (Bulgarian: Сръбско-българска война, Srăbsko-bălgarska voyna, Serbian: Српско-бугарски рат, Srpsko-bugarski rat), a war between the Kingdom of Serbia and the Principality of Bulgaria, erupted on 14 November [O.S. 2 November] 1885 and lasted until 28 November [O.S. 16 November] 1885. Despite Bulgaria's status as a vassal of the Ottoman Empire, the Ottomans did not intervene in the war. Serbia initiated the fighting but suffered a decisive defeat. Austria-Hungary demanded that Bulgaria stop its invasion, and a truce resulted.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q740791","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q740791"},{"title":"Serbo-Bulgarian War — background and references","url":"https://en.wikipedia.org/wiki/Serbo-Bulgarian_War"}],"briefSource":{"title":"Serbo-Bulgarian War","url":"https://en.wikipedia.org/wiki/Serbo-Bulgarian_War","revision":1384112587,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q327061","year":1941,"title":"Battle of Białystok–Minsk","place":"Belarus","region":"Europe","lat":52,"lon":19,"category":"War & conflict","article":"Battle_of_Białystok–Minsk","body":"The Battle of Białystok–Minsk was a German strategic operation conducted by the Wehrmacht's Army Group Center under Field Marshal Fedor von Bock during the penetration of the Soviet border region in the opening stage of Operation Barbarossa, lasting from 22 June to 9 July 1941. The Army Group's 2nd Panzer Group under Colonel General Heinz Guderian and the 3rd Panzer Group under Colonel General Hermann Hoth decimated the Soviet frontier defenses, defeated all Soviet counter-attacks and encircled four Soviet Armies of the Red Army's Western Front near Białystok and Minsk by 30 June. The majority of the Western Front was enclosed within, and the pockets were destroyed by 9 July.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q327061","facts":[{"label":"Part of","value":"World War II"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q327061"},{"title":"Battle of Białystok–Minsk — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Bia%C5%82ystok%E2%80%93Minsk"}],"briefSource":{"title":"Battle of Białystok–Minsk","url":"https://en.wikipedia.org/wiki/Battle_of_Bia%C5%82ystok%E2%80%93Minsk","revision":1375278377,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q609030","year":1944,"title":"Battle of Peleliu","place":"Peleliu","region":"Asia","lat":7.013,"lon":134.25,"category":"War & conflict","article":"Battle_of_Peleliu","body":"The Battle of Peleliu, codenamed Operation Stalemate II by the US military, was fought between the United States and Japan during the Mariana and Palau Islands campaign of World War II, from 15 September to 27 November 1944, on the island of Peleliu. US marines of the 1st Marine Division and then soldiers of the US Army's 81st Infantry Division fought to capture an airfield on the small coral island of Peleliu. The battle was part of a larger offensive campaign known as Operation Forager, which ran from June to November 1944 in the Pacific War.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q609030","facts":[{"label":"Part of","value":"World War II"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q609030"},{"title":"Battle of Peleliu — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Peleliu"}],"briefSource":{"title":"Battle of Peleliu","url":"https://en.wikipedia.org/wiki/Battle_of_Peleliu","revision":1377053303,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1132835","year":1945,"title":"Iran crisis of 1946","place":"Iran","region":"Asia","lat":32,"lon":53,"category":"War & conflict","article":"Iran_crisis_of_1946","body":"The Iran crisis of 1946, also known as the Azerbaijan crisis (Persian: غائلهٔ آذربایجان, romanized: Qā'ele-ye Āzarbāyejān) in Iranian sources, was one of the first crises during the aftermath of World War II, sparked by the refusal of Joseph Stalin's Soviet Union to relinquish occupied Iranian territory despite repeated assurances. The end of World War II should have resulted in the end of the Allied joint occupation of Iran. Instead, pro-Soviet Iranians proclaimed the separatist Azerbaijan People's Government and the Kurdish separatist Republic of Mahabad.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1132835","facts":[{"label":"Part of","value":"Cold War"},{"label":"End year","value":"1946"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1132835"},{"title":"Iran crisis of 1946 — background and references","url":"https://en.wikipedia.org/wiki/Iran_crisis_of_1946"}],"briefSource":{"title":"Iran crisis of 1946","url":"https://en.wikipedia.org/wiki/Iran_crisis_of_1946","revision":1374789395,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q504739","year":-168,"title":"Battle of Pydna","place":"Pydna","region":"Europe","lat":40.251,"lon":22.474,"category":"War & conflict","article":"Battle_of_Pydna","body":"The Battle of Pydna took place in 168 BC between Rome and Macedon during the Third Macedonian War. The battle saw the further ascendancy of Rome in the Hellenistic world and the end of the Antigonid line of kings, whose power traced back to Alexander the Great's Diadochi Antigonus Monophthalmus. The battle is also considered to be a victory of the Roman legion's manipular system's flexibility over the Antigonid Macedonian phalanx's rigidity.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q504739","facts":[{"label":"Part of","value":"Third Macedonian War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q504739"},{"title":"Battle of Pydna — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Pydna"}],"briefSource":{"title":"Battle of Pydna","url":"https://en.wikipedia.org/wiki/Battle_of_Pydna","revision":1375043940,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1165502","year":260,"title":"Battle of Edessa","place":"Edessa","region":"Asia","lat":37.146,"lon":38.784,"category":"War & conflict","article":"Battle_of_Edessa","body":"The Battle of Edessa took place between the armies of the Roman Empire, under the command of Emperor Valerian, and the Sasanian Empire under Shapur I, in Edessa (now the Turkish city of Urfa) in 260. The Roman army was defeated and captured in its entirety by the Sasanian forces; for the first time, a Roman emperor was taken prisoner.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1165502","facts":[{"label":"Part of","value":"Shapur I's Syrio-Mesopotamian campaign"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1165502"},{"title":"Battle of Edessa — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Edessa"}],"briefSource":{"title":"Battle of Edessa","url":"https://en.wikipedia.org/wiki/Battle_of_Edessa","revision":1383960798,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q755966","year":627,"title":"Battle of Nineveh (627)","place":"Nineveh","region":"Asia","lat":36.359,"lon":43.153,"category":"War & conflict","article":"Battle_of_Nineveh_(627)","body":"The Battle of Nineveh was the climactic battle of the Byzantine–Sasanian War of 602–628. In mid-September 627, Heraclius invaded Sasanian Mesopotamia in a surprising, risky winter campaign. Khosrow II appointed Rhahzadh as the commander of an army to confront him. Heraclius' Göktürk allies quickly deserted, while Rhahzadh's reinforcements did not arrive in time. In the ensuing battle, Rhahzadh was slain and the remaining Sasanian forces retreated. The Byzantine victory later resulted in civil war in Persia, and for a period of time restored the (Eastern) Roman Empire to its ancient boundaries in West Asia.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q755966","facts":[{"label":"Part of","value":"Byzantine–Sassanid War of 602–628"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q755966"},{"title":"Battle of Nineveh (627) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Nineveh_(627)"}],"briefSource":{"title":"Battle of Nineveh (627)","url":"https://en.wikipedia.org/wiki/Battle_of_Nineveh_(627)","revision":1379512677,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q584047","year":1014,"title":"Battle of Kleidion","place":"Belasica","region":"Europe","lat":41.339,"lon":22.928,"category":"War & conflict","article":"Battle_of_Kleidion","body":"The Battle of Kleidion (Ancient Greek: Κλειδίον; or Clidium, after the medieval name of the village of Klyuch, lit. 'key'; also known as the Battle of Belasitsa) took place on 29 July 1014, between the Byzantine Empire and the Bulgarian Empire. It was the culmination of the nearly half-century struggle between the Byzantine Emperor Basil II and the Bulgarian emperor Samuel in the late 10th and early 11th centuries. The result was a decisive Byzantine victory.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q584047","facts":[{"label":"Part of","value":"Byzantine conquest of Bulgaria"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q584047"},{"title":"Battle of Kleidion — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Kleidion"}],"briefSource":{"title":"Battle of Kleidion","url":"https://en.wikipedia.org/wiki/Battle_of_Kleidion","revision":1371024815,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q12428","year":1097,"title":"Battle of Dorylaeum (1097)","place":"Dorylaeum","region":"Asia","lat":39.777,"lon":30.521,"category":"War & conflict","article":"Battle_of_Dorylaeum_(1097)","body":"The Battle of Dorylaion or Dorylaeum took place during the First Crusade on 1 July 1097 between the crusader forces and the Seljuk Turks, near the city of Dorylaion in Anatolia. Though the Turkish forces of Kilij Arslan nearly wiped out the Crusader contingent of Bohemond of Taranto, other Crusaders arrived just in time to reverse the course of the battle.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q12428","facts":[{"label":"Part of","value":"First Crusade"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q12428"},{"title":"Battle of Dorylaeum (1097) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Dorylaeum_(1097)"}],"briefSource":{"title":"Battle of Dorylaeum (1097)","url":"https://en.wikipedia.org/wiki/Battle_of_Dorylaeum_(1097)","revision":1370109849,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q642117","year":1097,"title":"Siege of Nicaea","place":"İznik","region":"Asia","lat":40.429,"lon":29.719,"category":"War & conflict","article":"Siege_of_Nicaea","body":"The siege of Nicaea was the first major battle of the First Crusade, taking place from 14 May to 19 June 1097. The city was under the control of the Seljuk Turks who opted to surrender to the Byzantines in fear of the Crusaders breaking into the city. The siege was followed by the Battle of Dorylaeum and the Siege of Antioch, all taking place in modern Turkey.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q642117","facts":[{"label":"Part of","value":"First Crusade"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q642117"},{"title":"Siege of Nicaea — background and references","url":"https://en.wikipedia.org/wiki/Siege_of_Nicaea"}],"briefSource":{"title":"Siege of Nicaea","url":"https://en.wikipedia.org/wiki/Siege_of_Nicaea","revision":1372939221,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q205379","year":1631,"title":"Battle of Breitenfeld (1631)","place":"Breitenfeld","region":"Europe","lat":51.4,"lon":12.333,"category":"War & conflict","article":"Battle_of_Breitenfeld_(1631)","body":"The Battle of Breitenfeld, 17 September 1631, took place during the Thirty Years' War outside Breitenfeld, Leipzig, in modern Saxony. In one of the most significant battles of the war, a combined Swedish-Saxon force defeated an army made up of Imperial and Catholic League troops. Swedish intervention in the Thirty Years' War began in June 1630 when nearly 18,000 soldiers under Gustavus Adolphus landed in Pomerania. He made an alliance with John George I, Elector of Saxony, prompting an invasion of Saxony in early 1631 by Imperial troops led by Johann Tserclaes, Count of Tilly.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q205379","facts":[{"label":"Part of","value":"Thirty Years' War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q205379"},{"title":"Battle of Breitenfeld (1631) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Breitenfeld_(1631)"}],"briefSource":{"title":"Battle of Breitenfeld (1631)","url":"https://en.wikipedia.org/wiki/Battle_of_Breitenfeld_(1631)","revision":1382483586,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q690470","year":1687,"title":"Battle of Mohács (1687)","place":"Nagyharsány","region":"Europe","lat":45.851,"lon":18.409,"category":"War & conflict","article":"Battle_of_Mohács_(1687)","body":"The Second Battle of Mohács, also known as the Battle of Harsány Mountain, was fought on 12 August 1687 between the forces of Ottoman Sultan Mehmed IV, commanded by the Grand Vizier Sarı Süleyman Pasha, and the forces of Leopold I, Holy Roman Emperor, commanded by Charles of Lorraine. The result was a decisive victory for the Austrians. The Second Battle of Mohács can be seen as a complete reversal of the First Battle of Mohács, as its aftermath led into the reconquest of the historical territories of Kingdom of Hungary and re-establishment of the kingdom under Habsburg rule.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q690470","facts":[{"label":"Part of","value":"Great Turkish War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q690470"},{"title":"Battle of Mohács (1687) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Moh%C3%A1cs_(1687)"}],"briefSource":{"title":"Battle of Mohács (1687)","url":"https://en.wikipedia.org/wiki/Battle_of_Moh%C3%A1cs_(1687)","revision":1382486058,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q41894","year":1815,"title":"Battle of New Orleans","place":"Jean Lafitte National Historical Park and Preserve","region":"Americas","lat":29.943,"lon":-89.991,"category":"War & conflict","article":"Battle_of_New_Orleans","body":"The Battle of New Orleans was fought on January 8, 1815, between the British Army under Major General Sir Edward Pakenham and the United States Army under Brevet Major General Andrew Jackson, roughly 5 miles (8 km) southeast of the French Quarter of New Orleans, in the current suburb of Chalmette, Louisiana. The battle was the climax of the five-month Gulf Campaign (September 1814 to February 1815) by Britain to try to take New Orleans, West Florida, and possibly the Louisiana Territory which began at the First Battle of Fort Bowyer. Britain started the New Orleans campaign on December 14, 1814, at the Battle of Lake Borgne and numerous skirmishes and artillery duels happened in the weeks leading up to the final battle.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q41894","facts":[{"label":"Part of","value":"War of 1812"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q41894"},{"title":"Battle of New Orleans — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_New_Orleans"}],"briefSource":{"title":"Battle of New Orleans","url":"https://en.wikipedia.org/wiki/Battle_of_New_Orleans","revision":1382623421,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q697579","year":1938,"title":"Battle of Lake Khasan","place":"Lake Khasan","region":"Europe","lat":42.451,"lon":130.607,"category":"War & conflict","article":"Battle_of_Lake_Khasan","body":"The Battle of Lake Khasan , also known as the Changkufeng Incident , was an attempted military incursion by Manchukuo, a Japanese puppet state, into territory claimed and controlled by the Soviet Union. The incursion, which occurred from 29 July to 11 August 1938, was founded in the Japanese belief that the Soviet Union had misinterpreted the demarcation of the boundary based on the Treaty of Peking between Imperial Russia and Qing China, and had subsequently tampered with the demarcation markers. Japanese forces occupied the disputed area but withdrew after heavy fighting and a diplomatic settlement.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q697579","facts":[{"label":"Part of","value":"Soviet–Japanese border conflicts"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q697579"},{"title":"Battle of Lake Khasan — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Lake_Khasan"}],"briefSource":{"title":"Battle of Lake Khasan","url":"https://en.wikipedia.org/wiki/Battle_of_Lake_Khasan","revision":1375725124,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q327099","year":1943,"title":"Battle of Kasserine Pass","place":"Tunisia","region":"Africa","lat":34,"lon":10,"category":"War & conflict","article":"Battle_of_Kasserine_Pass","body":"The Battle of Kasserine Pass was a series of engagements which took place from 19–24 February 1943 around Kasserine Pass, a 2-mile-wide (3.2 km) gap in the Grand Dorsal chain of the Atlas Mountains in west central Tunisia. It was a part of the Tunisian campaign of World War II. The Axis forces, led by Generalfeldmarschall Erwin Rommel, were primarily from the Afrika Korps Assault Group, the Italian Centauro Armored Division and two Panzer divisions detached from the 5th Panzer Army.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q327099","facts":[{"label":"Part of","value":"Tunisia campaign"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q327099"},{"title":"Battle of Kasserine Pass — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Kasserine_Pass"}],"briefSource":{"title":"Battle of Kasserine Pass","url":"https://en.wikipedia.org/wiki/Battle_of_Kasserine_Pass","revision":1377739550,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1509619","year":1302,"title":"Battle of Bapheus","place":"Bithynia","region":"Asia","lat":40.5,"lon":31,"category":"War & conflict","article":"Battle_of_Bapheus","body":"The Battle of Bapheus occurred on 27 July 1299, between an Ottoman Turkish army under Osman I and a Byzantine army under Georgios Mouzalon. The battle ended in a crucial Ottoman victory, cementing the Ottoman state and heralding the final capture of Byzantine Bithynia by the Ottoman Turks.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1509619","facts":[{"label":"Part of","value":"Byzantine–Ottoman wars"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1509619"},{"title":"Battle of Bapheus — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Bapheus"}],"briefSource":{"title":"Battle of Bapheus","url":"https://en.wikipedia.org/wiki/Battle_of_Bapheus","revision":1378508239,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q233414","year":1556,"title":"Second Battle of Panipat","place":"Panipat","region":"Asia","lat":29.388,"lon":76.97,"category":"War & conflict","article":"Second_Battle_of_Panipat","body":"The Second Battle of Panipat was fought on 5 November 1556, between the Mughals under Akbar and king Hemu, titularly known as Hemchandra Vikramaditya. Hemchandra had conquered Delhi and Agra a few weeks earlier by defeating Mughal forces under Tardi Beg Khan in the Battle of Delhi. He crowned himself Vikramaditya at Purana Quila in Delhi. On learning of the loss, Akbar and his guardian Bairam Khan marched to reclaim those territories. The two armies clashed at Panipat, not far from the site of the First Battle of Panipat of 1526.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q233414","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q233414"},{"title":"Second Battle of Panipat — background and references","url":"https://en.wikipedia.org/wiki/Second_Battle_of_Panipat"}],"briefSource":{"title":"Second Battle of Panipat","url":"https://en.wikipedia.org/wiki/Second_Battle_of_Panipat","revision":1382637321,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q728480","year":1643,"title":"Battle of Rocroi","place":"Rocroi","region":"Europe","lat":49.919,"lon":4.528,"category":"War & conflict","article":"Battle_of_Rocroi","body":"The Battle of Rocroi, fought on 19 May 1643, was a major engagement of the Thirty Years' War between a French army, led by the 21-year-old Duke of Enghien (later known as the Great Condé) and Spanish forces under General Francisco de Melo only five days after the accession of Louis XIV to the throne of France after his father's death. Rocroi shattered the myth of invincibility of the Spanish tercios, the pike and shot infantry units that had dominated European battlefields for the previous 120 years. The battle is therefore often considered to mark the end of Spanish military greatness and the beginning of French hegemony in Europe in the second half-17th century during the reign of Louis XIV.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q728480","facts":[{"label":"Part of","value":"Franco-Spanish War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q728480"},{"title":"Battle of Rocroi — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Rocroi"}],"briefSource":{"title":"Battle of Rocroi","url":"https://en.wikipedia.org/wiki/Battle_of_Rocroi","revision":1382309290,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q166001","year":1675,"title":"Scanian War","place":"Scandinavia","region":"Europe","lat":64.78,"lon":14.761,"category":"War & conflict","article":"Scanian_War","body":"The Scanian War was a part of the Northern Wars involving the union of Denmark–Norway, Brandenburg and Sweden. It was fought from 1675 to 1679 mainly on Scanian soil, in the former Danish–Norwegian provinces along the border with Sweden, and in northern Germany. While the latter battles are regarded as a theater of the Scanian war in English, Danish, Norwegian and Swedish historiography, they are seen as a separate war in German historiography, called the Swedish-Brandenburgian War .","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q166001","facts":[{"label":"Part of","value":"Franco-Dutch War"},{"label":"End year","value":"1679"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q166001"},{"title":"Scanian War — background and references","url":"https://en.wikipedia.org/wiki/Scanian_War"}],"briefSource":{"title":"Scanian War","url":"https://en.wikipedia.org/wiki/Scanian_War","revision":1382509290,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q862751","year":1776,"title":"Battle of Long Island","place":"Brooklyn","region":"Americas","lat":40.651,"lon":-73.95,"category":"War & conflict","article":"Battle_of_Long_Island","body":"The Battle of Long Island, also known as the Battle of Brooklyn and the Battle of Brooklyn Heights, was an action of the American Revolutionary War fought on August 27, 1776, at and near the western edge of Long Island in present-day Brooklyn. The British defeated the Continental Army and gained access to the strategically important Port of New York, which they held for the rest of the war. It was the first major battle to take place after the United States declared its independence on July 4, 1776, in Philadelphia.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q862751","facts":[{"label":"Part of","value":"American Revolutionary War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q862751"},{"title":"Battle of Long Island — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Long_Island"}],"briefSource":{"title":"Battle of Long Island","url":"https://en.wikipedia.org/wiki/Battle_of_Long_Island","revision":1380284495,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q157548","year":1778,"title":"War of the Bavarian Succession","place":"Bohemia","region":"Europe","lat":49.833,"lon":14.333,"category":"War & conflict","article":"War_of_the_Bavarian_Succession","body":"The War of the Bavarian Succession was a dispute between the Austrian Habsburg monarchy and an alliance of Saxony and Prussia over succession to the Electorate of Bavaria after the extinction of the Bavarian branch of the House of Wittelsbach. The Habsburgs sought to acquire Bavaria, and the alliance opposed them, favoring another branch of the Wittelsbachs. Both sides mobilized large armies, but the only fighting in the war was a few minor battles. However, thousands of soldiers died from disease and starvation, earning the conflict the name Kartoffelkrieg (Potato War) in Prussia and Saxony; in Habsburg Austria, it was sometimes called the Zwetschgenrummel (Plum Fuss).","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q157548","facts":[{"label":"End year","value":"1779"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q157548"},{"title":"War of the Bavarian Succession — background and references","url":"https://en.wikipedia.org/wiki/War_of_the_Bavarian_Succession"}],"briefSource":{"title":"War of the Bavarian Succession","url":"https://en.wikipedia.org/wiki/War_of_the_Bavarian_Succession","revision":1384408773,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1154330","year":1792,"title":"Insurrection of 10 August 1792","place":"Paris","region":"Europe","lat":48.857,"lon":2.352,"category":"War & conflict","article":"Insurrection_of_10_August_1792","body":"The insurrection of 10 August 1792, also known as the Storming of the Tuileries, was a defining event of the French Revolution, when armed revolutionaries in Paris, increasingly in conflict with the French monarchy, stormed the Tuileries Palace. The conflict led France to abolish the monarchy and establish a republic. Conflict between King Louis XVI and the country's new revolutionary Legislative Assembly increased through the spring and summer of 1792 as Louis vetoed radical measures voted upon by the Assembly.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1154330","facts":[{"label":"Part of","value":"French Revolution"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1154330"},{"title":"Insurrection of 10 August 1792 — background and references","url":"https://en.wikipedia.org/wiki/Insurrection_of_10_August_1792"}],"briefSource":{"title":"Insurrection of 10 August 1792","url":"https://en.wikipedia.org/wiki/Insurrection_of_10_August_1792","revision":1377166748,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q159072","year":1805,"title":"Battle of Ulm","place":"Ulm","region":"Europe","lat":48.399,"lon":9.991,"category":"War & conflict","article":"Battle_of_Ulm","body":"The Battle of Ulm on 16–20 October 1805 was a series of skirmishes, at the end of the Ulm campaign, which allowed Napoleon I to trap an entire Austrian army under the command of Karl Freiherr Mack von Leiberich with minimal losses and to force its surrender near Ulm in the Electorate of Bavaria.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q159072","facts":[{"label":"Part of","value":"Napoleonic Wars"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q159072"},{"title":"Battle of Ulm — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Ulm"}],"briefSource":{"title":"Battle of Ulm","url":"https://en.wikipedia.org/wiki/Battle_of_Ulm","revision":1375646440,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q195378","year":1814,"title":"Anglo-Nepalese War","place":"Kingdom of Nepal","region":"Asia","lat":27.7,"lon":85.317,"category":"War & conflict","article":"Anglo-Nepalese_War","body":"The Anglo-Nepalese War (1 November 1814 – 4 March 1816), also known as the Anglo-Gorkha War, was a major military conflict fought between the Kingdom of Nepal and the East India Company (EIC). The war was the culmination of decades of geopolitical friction as two expanding powers clashed along an ill-defined 1,500-kilometer frontier. While Nepal had aggressively expanded its empire from the Teesta River in the east to the Sutlej River in the west, the EIC was simultaneously extending its dominion across the Indian subcontinent.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q195378","facts":[{"label":"End year","value":"1816"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q195378"},{"title":"Anglo-Nepalese War — background and references","url":"https://en.wikipedia.org/wiki/Anglo-Nepalese_War"}],"briefSource":{"title":"Anglo-Nepalese War","url":"https://en.wikipedia.org/wiki/Anglo-Nepalese_War","revision":1382105440,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q751186","year":1862,"title":"Battle of Fredericksburg","place":"Spotsylvania County","region":"Americas","lat":38.295,"lon":-77.47,"category":"War & conflict","article":"Battle_of_Fredericksburg","body":"The Battle of Fredericksburg was fought December 11–15, 1862, in and around Fredericksburg, Virginia, in the eastern theater of the American Civil War. The combat between the Union Army of the Potomac commanded by Maj. Gen. Ambrose Burnside and the Confederate Army of Northern Virginia under Gen. Robert E. Lee included futile frontal attacks by the Union army on December 13 against entrenched Confederate lines, hurling themselves against a feature of the battlefield that came to be remembered as the 'sunken wall' on the heights overlooking the city.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q751186","facts":[{"label":"Part of","value":"American Civil War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q751186"},{"title":"Battle of Fredericksburg — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Fredericksburg"}],"briefSource":{"title":"Battle of Fredericksburg","url":"https://en.wikipedia.org/wiki/Battle_of_Fredericksburg","revision":1380654568,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q40144","year":1914,"title":"Battle of Coronel","place":"Pacific Ocean","region":"Asia","lat":-36.984,"lon":-73.814,"category":"War & conflict","article":"Battle_of_Coronel","body":"The Battle of Coronel was a First World War naval battle that led to an Imperial German Navy victory over the Royal Navy on 1 November 1914, off the coast of central Chile near the city of Coronel. The East Asia Squadron of the Imperial German Navy (Kaiserliche Marine) led by Vice-Admiral Graf Maximilian von Spee met and overpowered a British squadron commanded by Rear-Admiral Sir Christopher Cradock. The engagement probably took place as a result of misunderstandings.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q40144","facts":[{"label":"Part of","value":"World War I"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q40144"},{"title":"Battle of Coronel — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Coronel"}],"briefSource":{"title":"Battle of Coronel","url":"https://en.wikipedia.org/wiki/Battle_of_Coronel","revision":1370437660,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1993848","year":1966,"title":"South African Border War","place":"Namibia","region":"Africa","lat":-23,"lon":17,"category":"War & conflict","article":"South_African_Border_War","body":"The South African Border War, also known as the Namibian War of Independence, and sometimes denoted in South Africa as the Angolan Bush War, was a largely asymmetric conflict that occurred in Namibia (then South West Africa), Zambia, and Angola from 26 August 1966 to 21 March 1990. It was fought between the South African Defence Force (SADF) and the People's Liberation Army of Namibia (PLAN), an armed wing of the South West African People's Organisation (SWAPO). The South African Border War was closely intertwined with the Angolan Civil War.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1993848","facts":[{"label":"End year","value":"1990"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1993848"},{"title":"South African Border War — background and references","url":"https://en.wikipedia.org/wiki/South_African_Border_War"}],"briefSource":{"title":"South African Border War","url":"https://en.wikipedia.org/wiki/South_African_Border_War","revision":1381456436,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q152372","year":2008,"title":"2008 Greek riots","place":"Athens","region":"Europe","lat":37.984,"lon":23.728,"category":"War & conflict","article":"2008_Greek_riots","body":"The 2008 Greek riots started on 6 December 2008, when Alexandros Grigoropoulos (Greek: Αλέξανδρος Γρηγορόπουλος), a 15-year-old Greek student, was killed by a special officer in Exarcheia district of central Athens. The killing of the young student by police resulted in large protests and demonstrations, which escalated to widespread rioting, with numerous rioters damaging property and engaging riot police with Molotov cocktails, stones and other objects. Demonstrations and rioting soon spread to several other cities, including Thessaloniki, the country's second-largest city, and international cities in solidarity.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q152372","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q152372"},{"title":"2008 Greek riots — background and references","url":"https://en.wikipedia.org/wiki/2008_Greek_riots"}],"briefSource":{"title":"2008 Greek riots","url":"https://en.wikipedia.org/wiki/2008_Greek_riots","revision":1382214002,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q685746","year":2012,"title":"Port Said Stadium riot","place":"Port Said Stadium","region":"Africa","lat":31.26,"lon":32.29,"category":"War & conflict","article":"Port_Said_Stadium_riot","body":"The Port Said Stadium riot was a riot which occurred at Port Said Stadium in Port Said, Egypt on 1 February, 2012, following an Egyptian Premier League football match between Al Masry and Al Ahly. Seventy-four people were killed and more than 500 injured after thousands of Al Masry fans invaded the pitch following a 3–1 victory of their club. Al Ahly fans were attacked using clubs, stones, machetes, knives, bottles, and fireworks, trapping them inside the Al Ahly partition of the stadium.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q685746","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q685746"},{"title":"Port Said Stadium riot — background and references","url":"https://en.wikipedia.org/wiki/Port_Said_Stadium_riot"}],"briefSource":{"title":"Port Said Stadium riot","url":"https://en.wikipedia.org/wiki/Port_Said_Stadium_riot","revision":1381016156,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q378957","year":-218,"title":"Battle of Ticinus","place":"Ticino","region":"Europe","lat":45.25,"lon":8.867,"category":"War & conflict","article":"Battle_of_Ticinus","body":"The Battle of Ticinus was fought between the Carthaginian forces of Hannibal and a Roman army under Publius Cornelius Scipio in late November 218 BC as part of the Second Punic War. It took place in the flat country on the right bank of the river Ticinus, to the west of modern Pavia in northern Italy. Hannibal led 6,000 Libyan and Iberian cavalry, while Scipio led 3,600 Roman, Italian and Gallic cavalry and a large but unknown number of light infantry javelinmen.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q378957","facts":[{"label":"Part of","value":"Second Punic War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q378957"},{"title":"Battle of Ticinus — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Ticinus"}],"briefSource":{"title":"Battle of Ticinus","url":"https://en.wikipedia.org/wiki/Battle_of_Ticinus","revision":1382553434,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q830626","year":1214,"title":"Battle of Bouvines","place":"Bouvines","region":"Europe","lat":50.579,"lon":3.186,"category":"War & conflict","article":"Battle_of_Bouvines","body":"The Battle of Bouvines took place on 27 July 1214 near the town of Bouvines in the County of Flanders. It was the concluding battle of the Anglo-French War of 1213–1214. Although estimates on the number of troops vary considerably among modern historians, at Bouvines, a French army commanded by King Philip Augustus routed a larger allied army led by Holy Roman Emperor Otto IV in one of the rare pitched battles of the High Middle Ages and one of the most decisive medieval engagements.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q830626","facts":[{"label":"Part of","value":"Anglo-French War of 1213–14"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q830626"},{"title":"Battle of Bouvines — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Bouvines"}],"briefSource":{"title":"Battle of Bouvines","url":"https://en.wikipedia.org/wiki/Battle_of_Bouvines","revision":1377726466,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q853754","year":1236,"title":"Battle of Saule","place":"Lithuania","region":"Europe","lat":56.115,"lon":23.514,"category":"War & conflict","article":"Battle_of_Saule","body":"The Battle of Saule was fought on 22 September 1236, between the Livonian Brothers of the Sword and pagan troops of Samogitians and Semigallians. Between 48 and 60 knights were killed, including the Livonian Master, Volkwin. It was the earliest large-scale defeat suffered by the orders in Baltic lands. The Sword-Brothers, the first Catholic military order established in the Baltic lands, was soundly defeated, and its remnants accepted incorporation into the Teutonic Order in 1237.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q853754","facts":[{"label":"Part of","value":"Livonian Crusade"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q853754"},{"title":"Battle of Saule — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Saule"}],"briefSource":{"title":"Battle of Saule","url":"https://en.wikipedia.org/wiki/Battle_of_Saule","revision":1376210378,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q961430","year":1570,"title":"Ottoman–Venetian War (1570–1573)","place":"Cyprus","region":"Asia","lat":35,"lon":33,"category":"War & conflict","article":"Ottoman–Venetian_War_(1570–1573)","body":"The Fourth Ottoman–Venetian War, also known as the War of Cyprus, was fought between 1570 and 1573. It was waged between the Ottoman Empire (with the Barbary States)and the Republic of Venice, the latter joined by the Holy League, a coalition of Christian states formed by the pope which included Spain (with Naples and Sicily), the Republic of Genoa, the Duchy of Savoy, the Knights Hospitaller, and the Grand Duchy of Tuscany. The war, the pre-eminent episode of Sultan Selim II's reign, began with the Ottoman invasion of the Venetian-held island of Cyprus.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q961430","facts":[{"label":"Part of","value":"Ottoman–Venetian Wars"},{"label":"End year","value":"1573"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q961430"},{"title":"Ottoman–Venetian War (1570–1573) — background and references","url":"https://en.wikipedia.org/wiki/Ottoman%E2%80%93Venetian_War_(1570%E2%80%931573)"}],"briefSource":{"title":"Ottoman–Venetian War (1570–1573)","url":"https://en.wikipedia.org/wiki/Ottoman%E2%80%93Venetian_War_(1570%E2%80%931573)","revision":1383420520,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1121532","year":1578,"title":"Battle of Alcácer Quibir","place":"Ksar el-Kebir","region":"Africa","lat":35.017,"lon":-5.9,"category":"War & conflict","article":"Battle_of_Alcácer_Quibir","body":"The Battle of Alcácer Quibir or \\"Battle of Wadi al-Makhazin\\" in Morocco) was fought in northern Morocco, near the town of Ksar-el-Kebir (variant spellings: Ksar El Kebir, Alcácer-Quivir, Alcazarquivir, Alcassar, etc.) and Larache, on 4 August 1578. A Moroccan victory, the battle has been described as \\"the greatest military disaster the Portuguese ever suffered in the course of their overseas expansion.\\" It marked an end to Portuguese attempts to reconquer territories it had lost in Morocco.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1121532","facts":[{"label":"Part of","value":"Moroccan–Portuguese conflicts"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1121532"},{"title":"Battle of Alcácer Quibir — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Alc%C3%A1cer_Quibir"}],"briefSource":{"title":"Battle of Alcácer Quibir","url":"https://en.wikipedia.org/wiki/Battle_of_Alc%C3%A1cer_Quibir","revision":1380183381,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q2355467","year":1764,"title":"Battle of Buxar","place":"Buxar","region":"Asia","lat":25.567,"lon":83.983,"category":"War & conflict","article":"Battle_of_Buxar","body":"The Battle of Buxar was fought on 22-23 October 1764, between the forces of the British East India Company (EIC), under the command of Major Hector Munro, and the combined armies of Mughal Emperor Shah Alam II and his allies: Mir Qasim, Nawab of Bengal; Maharaja Balwant Singh of Benares; and Shuja-ud-Daula, the Nawab of Awadh and Grand Vizier to the Emperor. The battle was fought at Buxar, a \\"strong fortified town\\" in Bihar, located on the banks of the Ganges river about 130 kilometres (81 mi) west of Patna; it was a challenging victory for the EIC. The defeated Indian rulers submitted to the EIC in 1765.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q2355467","facts":[{"label":"Part of","value":"Bengal War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q2355467"},{"title":"Battle of Buxar — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Buxar"}],"briefSource":{"title":"Battle of Buxar","url":"https://en.wikipedia.org/wiki/Battle_of_Buxar","revision":1381670071,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q653664","year":1776,"title":"Battle of Trenton","place":"Trenton","region":"Americas","lat":40.226,"lon":-74.765,"category":"War & conflict","article":"Battle_of_Trenton","body":"The Battle of Trenton was a short but pivotal American Revolutionary War battle on the morning of December 26, 1776, in Trenton, New Jersey. After General George Washington's crossing of the Delaware River north of Trenton the previous night, Washington led the main body of the Continental Army against Hessian auxiliaries garrisoned at Trenton. After a brief battle, almost two-thirds of the Hessian force were captured, with minimal losses to the Americans. The battle significantly boosted the Continental Army's waning morale, and inspired re-enlistments.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q653664","facts":[{"label":"Part of","value":"American Revolutionary War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q653664"},{"title":"Battle of Trenton — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Trenton"}],"briefSource":{"title":"Battle of Trenton","url":"https://en.wikipedia.org/wiki/Battle_of_Trenton","revision":1377458911,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q233343","year":1862,"title":"Second Battle of Bull Run","place":"Prince William County","region":"Americas","lat":38.7,"lon":-77.48,"category":"War & conflict","article":"Second_Battle_of_Bull_Run","body":"The Second Battle of Bull Run or Battle of Second Manassas was fought August 28–30, 1862, in Prince William County, Virginia, as part of the American Civil War. It was the culmination of the Northern Virginia campaign waged by Confederate Gen. Robert E. Lee's Army of Northern Virginia against Union Maj. Gen. John Pope's Army of Virginia, and a battle of much larger scale and numbers than the First Battle of Bull Run (or First Manassas) fought on July 21, 1861, on the same ground.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q233343","facts":[{"label":"Part of","value":"Eastern theater of the American Civil War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q233343"},{"title":"Second Battle of Bull Run — background and references","url":"https://en.wikipedia.org/wiki/Second_Battle_of_Bull_Run"}],"briefSource":{"title":"Second Battle of Bull Run","url":"https://en.wikipedia.org/wiki/Second_Battle_of_Bull_Run","revision":1380704377,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q169436","year":1941,"title":"Battle of Rostov (1941)","place":"Rostov-on-Don","region":"Europe","lat":47.223,"lon":39.71,"category":"War & conflict","article":"Battle_of_Rostov_(1941)","body":"The Battle of Rostov (1941) took place on the Eastern Front of World War II around Rostov-on-Don and was fought between Army Group South of Nazi Germany and the Southern Front of the Soviet Union. The battle comprised three phases: the German Sea of Azov Offensive Operation by Army Group South (General Gerd von Rundstedt) (begun on 12 September 1941), the Soviet Rostov Defensive Operation (5 November 1941 – 16 November 1941) by the Southern Front (General Yakov Timofeyevich Cherevichenko), and the Rostov Offensive Operation (27 November 1941 – 2 December 1941) executed by the same Soviet Front. After forcing their way across the Mius River on 17 November, the German forces captured 10,000 Soviet troops and took Rostov on 21 November.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q169436","facts":[{"label":"Part of","value":"World War II"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q169436"},{"title":"Battle of Rostov (1941) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Rostov_(1941)"}],"briefSource":{"title":"Battle of Rostov (1941)","url":"https://en.wikipedia.org/wiki/Battle_of_Rostov_(1941)","revision":1370587701,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q714777","year":1943,"title":"Allied invasion of Italy","place":"Salerno","region":"Europe","lat":40.679,"lon":14.757,"category":"War & conflict","article":"Allied_invasion_of_Italy","body":"The Allied invasion of Italy was the Allied amphibious landing on mainland Italy that took place from 3 September 1943, during the Italian campaign of World War II. The operation was undertaken by General Sir Harold Alexander's 15th Army Group (comprising General Mark W. Clark's American Fifth Army and General Bernard Montgomery's British Eighth Army) and followed the successful Allied invasion of Sicily. A preliminary landing in Calabria (Operation Baytown) took place on 3 September, the main invasion force landed on the west coast of Italy at Salerno on 9 September as part of Operation Avalanche at the same time as a supporting operation at Taranto (Operation Slapstick).","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q714777","facts":[{"label":"Part of","value":"World War II"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q714777"},{"title":"Allied invasion of Italy — background and references","url":"https://en.wikipedia.org/wiki/Allied_invasion_of_Italy"}],"briefSource":{"title":"Allied invasion of Italy","url":"https://en.wikipedia.org/wiki/Allied_invasion_of_Italy","revision":1370427995,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q431205","year":-401,"title":"Battle of Cunaxa","place":"Cunaxa","region":"Asia","lat":32.5,"lon":44.5,"category":"War & conflict","article":"Battle_of_Cunaxa","body":"The Battle of Cunaxa was fought in the late summer of 401 BC between the Persian king Artaxerxes II and his brother Cyrus the Younger for control of the Achaemenid throne. The great battle of the revolt of Cyrus took place 70 km north of Babylon, at Cunaxa (Greek: Κούναξα), on the left bank of the Euphrates. The main source is Xenophon, a Greek soldier who participated in the fighting. Despite the success in the battle achieved by the interaction of the Greek mercenaries and the Persian troops of Cyrus, the outcome of the battle and the death of the pretender to the throne led to the defeat of the entire uprising and forced Greeks to commit Anabasis.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q431205","facts":[{"label":"Part of","value":"the Ten Thousand"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q431205"},{"title":"Battle of Cunaxa — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Cunaxa"}],"briefSource":{"title":"Battle of Cunaxa","url":"https://en.wikipedia.org/wiki/Battle_of_Cunaxa","revision":1383589383,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q655777","year":-387,"title":"Battle of the Allia","place":"Allia","region":"Europe","lat":42.018,"lon":12.52,"category":"War & conflict","article":"Battle_of_the_Allia","body":"The Battle of the Allia was fought c. 387 BC between the Senones – a Gallic tribe led by Brennus, who had invaded Northern Italy – and the Roman Republic. The battle was fought at the confluence of the Tiber river and Allia brook, 11 Roman miles (16 km, 10 mi) north of Rome. The Romans were routed and subsequently Rome was sacked by the Senones. The dies Alliensis ('Day of the Allia') was regarded as an ill-omened day in the Roman calendar, and treated as a dies religiosus on which public and ritual activity was avoided.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q655777","facts":[{"label":"Part of","value":"Roman–Gallic Wars"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q655777"},{"title":"Battle of the Allia — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_the_Allia"}],"briefSource":{"title":"Battle of the Allia","url":"https://en.wikipedia.org/wiki/Battle_of_the_Allia","revision":1377862448,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q516760","year":-45,"title":"Battle of Munda","place":"Munda","region":"Europe","lat":37.55,"lon":-4.85,"category":"War & conflict","article":"Battle_of_Munda","body":"The Battle of Munda (17 March 45 BC), in southern Hispania Ulterior, was the final battle of Caesar's civil war against the leaders of the Optimates. With the military victory at Munda and the deaths of Titus Labienus and Gnaeus Pompeius (eldest son of Pompey), Caesar was politically able to return in triumph to Rome, and then govern as the elected Roman dictator. Subsequently, the assassination of Julius Caesar furthered the long Republican decline that led to the Roman Empire, initiated with the reign of the emperor Augustus.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q516760","facts":[{"label":"Part of","value":"Caesar's Civil War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q516760"},{"title":"Battle of Munda — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Munda"}],"briefSource":{"title":"Battle of Munda","url":"https://en.wikipedia.org/wiki/Battle_of_Munda","revision":1381925580,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q283364","year":1176,"title":"Battle of Legnano","place":"Legnano","region":"Europe","lat":45.603,"lon":8.909,"category":"War & conflict","article":"Battle_of_Legnano","body":"The Battle of Legnano was fought on 29 May 1176 between the army of Frederick Barbarossa, Holy Roman Emperor, and the forces of the Lombard League near Legnano, between Milan and Como, in the Kingdom of Italy. It was the climactic field engagement of Frederick's fifth Italian campaign and one of the most consequential battles of the long conflict between the emperor, the northern Italian communes and Pope Alexander III. The encounter itself arose unexpectedly from manoeuvres by two armies that were aware of one another but did not possess precise information about the other's position.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q283364","facts":[{"label":"Part of","value":"Guelphs and Ghibellines"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q283364"},{"title":"Battle of Legnano — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Legnano"}],"briefSource":{"title":"Battle of Legnano","url":"https://en.wikipedia.org/wiki/Battle_of_Legnano","revision":1383733600,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q730553","year":1176,"title":"Battle of Myriokephalon","place":"Lake Beyşehir","region":"Asia","lat":37.911,"lon":31.947,"category":"War & conflict","article":"Battle_of_Myriokephalon","body":"The Battle of Myriokephalon (also known as the Battle of Myriocephalum, Greek: Μάχη του Μυριοκέφαλου, Turkish: Miryokefalon Savaşı or Düzbel Muharebesi) was a battle between the Byzantine Empire and the Seljuk Turks in the mountains west of Iconium (Konya) in west-central Anatolia on 17 September 1176, during the Byzantine–Seljuk war of 1175–1179. The battle was a strategic reverse for the Byzantine forces, who were ambushed when moving through a mountain pass. In 1161, the Seljuk Sultan of Rum Kilij Arslan II and Byzantine Emperor Manuel I Komnenos concluded a peace agreement.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q730553","facts":[{"label":"Part of","value":"Byzantine–Seljuq Wars"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q730553"},{"title":"Battle of Myriokephalon — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Myriokephalon"}],"briefSource":{"title":"Battle of Myriokephalon","url":"https://en.wikipedia.org/wiki/Battle_of_Myriokephalon","revision":1381984079,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q165136","year":1499,"title":"Swabian War","place":"Switzerland","region":"Europe","lat":46.799,"lon":8.232,"category":"War & conflict","article":"Swabian_War","body":"The Swabian War of 1499 , called Schwabenkrieg or Schweizerkrieg (\\"Swiss War\\") in Germany and Engadiner Krieg (\\"War of the Engadin\\") in Austria, was the last major armed conflict between the Old Swiss Confederacy and the House of Habsburg. What had begun as a local conflict over the control of the Val Müstair and the Umbrail Pass in the Grisons soon got out of hand when both parties called upon their allies for help; the Habsburgs demanding the support of the Swabian League, while the Federation of the Three Leagues of the Grisons turned to the Swiss Eidgenossenschaft. Hostilities quickly spread from the Grisons through the Rhine valley to Lake Constance and even to the Sundgau in southern Alsace, the westernmost part of the Habsburg region of Further Austria.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q165136","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q165136"},{"title":"Swabian War — background and references","url":"https://en.wikipedia.org/wiki/Swabian_War"}],"briefSource":{"title":"Swabian War","url":"https://en.wikipedia.org/wiki/Swabian_War","revision":1370749126,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q170113","year":1664,"title":"Battle of Saint Gotthard (1664)","place":"Szentgotthárd","region":"Europe","lat":46.953,"lon":16.274,"category":"War & conflict","article":"Battle_of_Saint_Gotthard_(1664)","body":"The Battle of Saint Gotthard , of the Austro-Turkish War (1663–1664), took place on 1 August 1664 on the Raab between Mogersdorf and the Cistercian monastery St. Gotthard in West Hungary (today Hungary). It was fought between Imperial Army forces, including German, Swedish and French contingents, led by Imperial commander-in-chief Count Raimondo Montecuccoli and the army of the Ottoman Empire under the command of Köprülü Fazıl Ahmed Paşa. As the Ottoman army tried to advance through Hungary towards Vienna, they were stopped on the side of the river Raab where they were charged and defeated by the Imperial forces.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q170113","facts":[{"label":"Part of","value":"Austro-Turkish War of 1663–1664"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q170113"},{"title":"Battle of Saint Gotthard (1664) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Saint_Gotthard_(1664)"}],"briefSource":{"title":"Battle of Saint Gotthard (1664)","url":"https://en.wikipedia.org/wiki/Battle_of_Saint_Gotthard_(1664)","revision":1383384874,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q569953","year":1745,"title":"Battle of Fontenoy","place":"Tournai","region":"Europe","lat":50.569,"lon":3.475,"category":"War & conflict","article":"Battle_of_Fontenoy","body":"The Battle of Fontenoy was fought on 11 May 1745 near Tournai in the Austrian Netherlands during the War of the Austrian Succession. A French army of 50,000 men under Marshal General Maurice de Saxe defeated a Pragmatic Army of 50,000 British, Hanoverian, Dutch and Austrian troops under Captain-general William Augustus, Duke of Cumberland. By 1745 France was close to bankruptcy and seeking an end to the war. The Austrian Netherlands offered the best opportunity for a decisive victory, and in April Saxe led a French army to besiege Tournai, a key strategic town on the upper Scheldt, compelling the main Pragmatic Army in the region to march to the town's relief.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q569953","facts":[{"label":"Part of","value":"War of the Austrian Succession"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q569953"},{"title":"Battle of Fontenoy — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Fontenoy"}],"briefSource":{"title":"Battle of Fontenoy","url":"https://en.wikipedia.org/wiki/Battle_of_Fontenoy","revision":1382120601,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q913604","year":1854,"title":"Battle of the Alma","place":"Alma","region":"Europe","lat":44.831,"lon":33.669,"category":"War & conflict","article":"Battle_of_the_Alma","body":"The Battle of the Alma (short for Battle of the Alma River) took place during the Crimean War between an allied expeditionary force (made up of French, British, and Ottoman forces) and Russian forces defending the Crimean Peninsula on 20 September 1854. The allies had made a surprise landing in Crimea on 14 September. The allied commanders, Maréchal Jacques Leroy de Saint-Arnaud and Lord Raglan, then marched toward the strategically important port city of Sevastopol, 45 km (28 miles) away.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q913604","facts":[{"label":"Part of","value":"Crimean War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q913604"},{"title":"Battle of the Alma — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_the_Alma"}],"briefSource":{"title":"Battle of the Alma","url":"https://en.wikipedia.org/wiki/Battle_of_the_Alma","revision":1375360043,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q747589","year":1879,"title":"Battle of Isandlwana","place":"Isandlwana","region":"Africa","lat":-28.359,"lon":30.651,"category":"War & conflict","article":"Battle_of_Isandlwana","body":"The Battle of Isandlwana or Isandhlwana on 22 January 1879 was the second major encounter in the Anglo-Zulu War between the British Empire and the Zulu Kingdom – the Battle of Nyezane having been fought and won earlier on the same day by Colonel Pearson's Coastal Column. Eleven days after the British invaded the Zulu Kingdom in Southern Africa, a Zulu force of some 20,000 warriors attacked a portion of the British main column consisting of approximately 1,800 British, colonial and native troops with approximately 350 civilians. The Zulus were equipped mainly with the traditional assegai iron spears and cow-hide shields, but also had a number of muskets and antiquated rifles.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q747589","facts":[{"label":"Part of","value":"Anglo-Zulu War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q747589"},{"title":"Battle of Isandlwana — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Isandlwana"}],"briefSource":{"title":"Battle of Isandlwana","url":"https://en.wikipedia.org/wiki/Battle_of_Isandlwana","revision":1383292972,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q503347","year":1940,"title":"Attack on Mers-el-Kébir","place":"Mers El Kebir","region":"Africa","lat":35.729,"lon":-0.707,"category":"War & conflict","article":"Attack_on_Mers-el-Kébir","body":"The attack on Mers-el-Kébir (Battle of Mers-el-Kébir) on 3 July 1940, during the Second World War, was a British naval attack on French Navy ships at the naval base at Mers El Kébir, near Oran, on the coast of French Algeria. The attack was the main part of Operation Catapult, a British plan to neutralise or destroy French ships to prevent them from falling into German hands after the Allied defeat in the Battle of France. The British bombardment of the base killed 1,297 French servicemen, sank a battleship and damaged five other ships, for a British loss of five aircraft shot down and two crewmen killed.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q503347","facts":[{"label":"Part of","value":"Operation Catapult"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q503347"},{"title":"Attack on Mers-el-Kébir — background and references","url":"https://en.wikipedia.org/wiki/Attack_on_Mers-el-K%C3%A9bir"}],"briefSource":{"title":"Attack on Mers-el-Kébir","url":"https://en.wikipedia.org/wiki/Attack_on_Mers-el-K%C3%A9bir","revision":1379779948,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q275019","year":1943,"title":"Smolensk operation","place":"Smolensk","region":"Europe","lat":54.783,"lon":32.05,"category":"War & conflict","article":"Smolensk_operation","body":"The second Smolensk operation (code naming \\"Suvorov\\"; 7 August – 2 October 1943) was a Soviet strategic offensive operation conducted by the Red Army as part of the Summer-Autumn Campaign of 1943. Staged almost simultaneously with the Lower Dnieper Offensive (13 August – 22 September), the offensive lasted two months and was led by General Andrei Yeremenko, commanding the Kalinin Front, and Vasily Sokolovsky, commanding the Western Front. Its goal was to clear the German presence from the Smolensk and Bryansk regions.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q275019","facts":[{"label":"Part of","value":"World War II"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q275019"},{"title":"Smolensk operation — background and references","url":"https://en.wikipedia.org/wiki/Smolensk_operation"}],"briefSource":{"title":"Smolensk operation","url":"https://en.wikipedia.org/wiki/Smolensk_operation","revision":1372061006,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q541506","year":1943,"title":"Battle of Prokhorovka","place":"Prokhorovka, Belgorod Oblast","region":"Europe","lat":51.033,"lon":36.733,"category":"War & conflict","article":"Battle_of_Prokhorovka","body":"The Battle of Prokhorovka was fought on 12 July 1943 near Prokhorovka, 87 kilometres (54 mi) southeast of Kursk, in the Soviet Union, during the Second World War. Taking place on the Eastern Front, the engagement was part of the wider Battle of Kursk and occurred when the 5th Guards Tank Army of the Soviet Red Army attacked the II SS-Panzer Corps of the German Waffen-SS in one of the largest tank battles in history. In April 1943, the German leadership began preparing for Operation Citadel, with the objective of enveloping and destroying the Soviet forces in the Kursk salient by attacking and breaking through the base of the salient from north and south simultaneously.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q541506","facts":[{"label":"Part of","value":"World War II"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q541506"},{"title":"Battle of Prokhorovka — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Prokhorovka"}],"briefSource":{"title":"Battle of Prokhorovka","url":"https://en.wikipedia.org/wiki/Battle_of_Prokhorovka","revision":1373680612,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q383614","year":1944,"title":"Battle of Kohima","place":"Kohima","region":"Asia","lat":25.668,"lon":94.103,"category":"War & conflict","article":"Battle_of_Kohima","body":"The Battle of Kohima was the turning point of the Japanese U-Go offensive into British India in 1944 during the Second World War. It took place in three stages from 4 April to 22 June 1944 around the town of Kohima, now the capital city of the state of Nagaland in Northeast India. From 3 to 16 April, the Japanese attempted to capture Kohima ridge, a feature which dominated the road by which the besieged British and Indian troops of IV Corps at Imphal were supplied.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q383614","facts":[{"label":"Part of","value":"Operation U-Go"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q383614"},{"title":"Battle of Kohima — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Kohima"}],"briefSource":{"title":"Battle of Kohima","url":"https://en.wikipedia.org/wiki/Battle_of_Kohima","revision":1379110389,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q744611","year":-280,"title":"Battle of Heraclea","place":"Policoro","region":"Europe","lat":40.22,"lon":16.67,"category":"War & conflict","article":"Battle_of_Heraclea","body":"The Battle of Heraclea took place in 280 BC between the Romans under the command of consul Publius Valerius Laevinus, and the combined forces of Greeks from Epirus, Tarentum, Thurii, Metapontum, and Heraclea under the command of Pyrrhus, king of Epirus. Although the battle was a victory for the Greeks, they incurred severe losses.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q744611","facts":[{"label":"Part of","value":"Pyrrhic War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q744611"},{"title":"Battle of Heraclea — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Heraclea"}],"briefSource":{"title":"Battle of Heraclea","url":"https://en.wikipedia.org/wiki/Battle_of_Heraclea","revision":1378171341,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1160070","year":-275,"title":"Battle of Beneventum (275 BC)","place":"Benevento","region":"Europe","lat":41.133,"lon":14.783,"category":"War & conflict","article":"Battle_of_Beneventum_(275_BC)","body":"The Battle of Beneventum (275 BC) was the last battle of the Pyrrhic War. It was fought near Beneventum, in southern Italy, between the forces of Pyrrhus, king of Epirus in Greece, and the Romans, led by consul Manius Curius Dentatus. The result was a strategic Roman victory and Pyrrhus was forced to return to Tarentum, and later to Epirus.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1160070","facts":[{"label":"Part of","value":"Pyrrhic War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1160070"},{"title":"Battle of Beneventum (275 BC) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Beneventum_(275_BC)"}],"briefSource":{"title":"Battle of Beneventum (275 BC)","url":"https://en.wikipedia.org/wiki/Battle_of_Beneventum_(275_BC)","revision":1370107658,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q849653","year":-46,"title":"Battle of Thapsus","place":"Thapsus","region":"Asia","lat":35.624,"lon":11.048,"category":"War & conflict","article":"Battle_of_Thapsus","body":"The Battle of Thapsus was a military engagement that took place on April 6, 46 BC near Thapsus (in modern Tunisia). The forces of the Optimates, led by Quintus Caecilius Metellus Scipio, were defeated by the forces of Julius Caesar. It was followed shortly by the suicides of Scipio and his ally, Marcus Porcius Cato Uticensis (Cato the Younger), the Numidian king Juba, and his Roman peer Marcus Petreius.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q849653","facts":[{"label":"Part of","value":"Caesar's Civil War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q849653"},{"title":"Battle of Thapsus — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Thapsus"}],"briefSource":{"title":"Battle of Thapsus","url":"https://en.wikipedia.org/wiki/Battle_of_Thapsus","revision":1381864315,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1127337","year":83,"title":"Battle of Mons Graupius","place":"Scotland","region":"Europe","lat":57,"lon":-5,"category":"War & conflict","article":"Battle_of_Mons_Graupius","body":"The Battle of Mons Graupius was, according to Tacitus, a Roman military victory in what is now Scotland, taking place in AD 83 or, less probably, 84. The exact location of the battle is a matter of debate. Historians have long questioned some details of Tacitus's account of the fight, suggesting that he exaggerated Roman success.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1127337","facts":[{"label":"Part of","value":"Roman conquest of Britain"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1127337"},{"title":"Battle of Mons Graupius — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Mons_Graupius"}],"briefSource":{"title":"Battle of Mons Graupius","url":"https://en.wikipedia.org/wiki/Battle_of_Mons_Graupius","revision":1378286630,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q603549","year":642,"title":"Battle of Nahavand","place":"Nahavand","region":"Asia","lat":31.583,"lon":44.5,"category":"War & conflict","article":"Battle_of_Nahavand","body":"The Battle of Nahavand , also spelled Nihavand or Nahawand, was fought in 642 between the Rashidun Muslim forces under An-Numan ibn Muqarrin and Sasanian army under King Yazdegerd III. Yazdegerd escaped to the Merv area, but was unable to raise another substantial army. The battle ended in a victory for the Rashidun Caliphate and the Sasanids consequently lost the surrounding cities including Spahan (Isfahan). The engagement resulted in a catastrophic defeat for the Sasanid forces and marks the end of organized Sasanid resistance.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q603549","facts":[{"label":"Part of","value":"Muslim conquest of Persia"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q603549"},{"title":"Battle of Nahavand — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Nahavand"}],"briefSource":{"title":"Battle of Nahavand","url":"https://en.wikipedia.org/wiki/Battle_of_Nahavand","revision":1380331186,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1113659","year":1066,"title":"Battle of Fulford","place":"Fulford","region":"Europe","lat":53.933,"lon":-1.071,"category":"War & conflict","article":"Battle_of_Fulford","body":"The Battle of Fulford was fought on the outskirts of the village of Fulford, just south of York in England, on 20 September 1066. King Harald III of Norway, also known as Harald Hardrada, a claimant to the English throne, and Tostig Godwinson, his English ally, fought and defeated the Northern Earls Edwin and Morcar. Hardrada's army consisted of allies from Orkney and a contingent with Tostig, as well as those coming from Norway. They crossed the sea in a fleet of ships and made their base south of York at Riccall.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1113659","facts":[{"label":"Part of","value":"Viking activity in the British Isles"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1113659"},{"title":"Battle of Fulford — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Fulford"}],"briefSource":{"title":"Battle of Fulford","url":"https://en.wikipedia.org/wiki/Battle_of_Fulford","revision":1383424465,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q815177","year":1147,"title":"Siege of Lisbon","place":"al-Lixbûnâ","region":"Asia","lat":38.709,"lon":-9.133,"category":"War & conflict","article":"Siege_of_Lisbon","body":"The siege of Lisbon, from 1 July to 25 October 1147, was the military action against the Almoravid dynasty that brought the city of Lisbon under the definitive control of the new Christian power, the Kingdom of Portugal. It is seen as a pivotal battle of the wider Reconquista. The siege of Lisbon was one of the few Christian victories of the Second Crusade—it was \\"the only success of the universal operation undertaken by the pilgrim army\\", i.e., the Second Crusade, according to the near contemporary historian Helmold, although others have questioned whether it was really part of that crusade.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q815177","facts":[{"label":"Part of","value":"Second Crusade"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q815177"},{"title":"Siege of Lisbon — background and references","url":"https://en.wikipedia.org/wiki/Siege_of_Lisbon"}],"briefSource":{"title":"Siege of Lisbon","url":"https://en.wikipedia.org/wiki/Siege_of_Lisbon","revision":1382151399,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q316897","year":1709,"title":"Battle of Malplaquet","place":"Taisnières-sur-Hon","region":"Europe","lat":50.32,"lon":3.837,"category":"War & conflict","article":"Battle_of_Malplaquet","body":"The Battle of Malplaquet, 11 September 1709, was fought during the War of the Spanish Succession, near Taisnières-sur-Hon, close to the then border between France and Belgium. A French army of around 75,000 men, commanded by the Duke of Villars, engaged a Grand Alliance force of 86,000 under the Duke of Marlborough. In one of the bloodiest battles of the 18th century, the Allies won a narrow victory, but suffered heavy casualties. Allied advances in 1708 led to the renewal of peace talks, which collapsed in April 1709.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q316897","facts":[{"label":"Part of","value":"War of the Spanish Succession"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q316897"},{"title":"Battle of Malplaquet — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Malplaquet"}],"briefSource":{"title":"Battle of Malplaquet","url":"https://en.wikipedia.org/wiki/Battle_of_Malplaquet","revision":1383919011,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q573972","year":1757,"title":"Battle of Rossbach","place":"Halle (Saale)","region":"Europe","lat":51.269,"lon":11.894,"category":"War & conflict","article":"Battle_of_Rossbach","body":"The Battle of Rossbach took place on 5 November 1757 during the Third Silesian War (1756–1763, part of the Seven Years' War) near the village of Rossbach (Roßbach), in the Electorate of Saxony. It is sometimes called the Battle of, or at, Reichardtswerben, after a different nearby town. In this 90-minute battle, Frederick the Great, king of Prussia, defeated an Allied army composed of French forces augmented by a contingent of the Reichsarmee (Imperial Army) of the Holy Roman Empire.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q573972","facts":[{"label":"Part of","value":"Seven Years' War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q573972"},{"title":"Battle of Rossbach — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Rossbach"}],"briefSource":{"title":"Battle of Rossbach","url":"https://en.wikipedia.org/wiki/Battle_of_Rossbach","revision":1381069746,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q311726","year":1759,"title":"Battle of the Plains of Abraham","place":"Quebec City","region":"Asia","lat":46.816,"lon":-71.224,"category":"War & conflict","article":"Battle_of_the_Plains_of_Abraham","body":"The Battle of the Plains of Abraham, also known as the First Battle of Quebec , was a pivotal battle in the Seven Years' War—whose North American theatre is referred to by Americans as the French and Indian War. The battle, which took place on 13 September 1759, was fought by the British Army and Royal Navy against the French Army on the Promontory of Quebec, a plateau just outside the walls of Quebec City on land that was originally owned by a farmer named Abraham Martin, hence the name of the location. The battle involved fewer than 10,000 troops in total, but proved to be a deciding moment in the conflict between France and Britain over the fate of the French colony of Canada or New France, influencing the history of Canada.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q311726","facts":[{"label":"Part of","value":"Seven Years' War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q311726"},{"title":"Battle of the Plains of Abraham — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_the_Plains_of_Abraham"}],"briefSource":{"title":"Battle of the Plains of Abraham","url":"https://en.wikipedia.org/wiki/Battle_of_the_Plains_of_Abraham","revision":1379564436,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q900945","year":1796,"title":"Battle of Lodi","place":"Lodi","region":"Europe","lat":45.319,"lon":9.509,"category":"War & conflict","article":"Battle_of_Lodi","body":"The Battle of Lodi was fought on Tuesday 10 May 1796 between French forces under General Napoleon Bonaparte and an Austrian rear guard commanded by Karl Philipp Sebottendorf at Lodi, Lombardy (then part of the Habsburg monarchy, now in Italy), being one of the key engagements of the Italian Campaign. The conflict took place as French forces pursued the retreating Austrian army across the Adda River. After intense artillery bombardment, French infantry spearheaded by the carbineers and grenadiers launched a famed storming charge across the narrow wooden bridge of Lodi under heavy enemy fire.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q900945","facts":[{"label":"Part of","value":"Napoleonic Wars"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q900945"},{"title":"Battle of Lodi — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Lodi"}],"briefSource":{"title":"Battle of Lodi","url":"https://en.wikipedia.org/wiki/Battle_of_Lodi","revision":1376248918,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1071578","year":1812,"title":"Battle of Smolensk (1812)","place":"Smolensk","region":"Europe","lat":54.783,"lon":32.05,"category":"War & conflict","article":"Battle_of_Smolensk_(1812)","body":"The Battle of Smolensk was the first major battle of the French invasion of Russia. It took place on 16–18 August 1812 and involved about 45,000 men of the Grande Armée under Emperor Napoleon I against about 30,000 Russian troops under General Barclay de Tolly. Napoleon occupied Smolensk by driving out Prince Pyotr Bagration's Second Army. The French artillery bombardment burned the city to the ground. Of 2,250 buildings, 84% were destroyed, leaving only 350 intact.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1071578","facts":[{"label":"Part of","value":"French invasion of Russia"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1071578"},{"title":"Battle of Smolensk (1812) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Smolensk_(1812)"}],"briefSource":{"title":"Battle of Smolensk (1812)","url":"https://en.wikipedia.org/wiki/Battle_of_Smolensk_(1812)","revision":1379861945,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q276059","year":1813,"title":"Battle of Vitoria","place":"Vitoria-Gasteiz","region":"Europe","lat":42.85,"lon":-2.683,"category":"War & conflict","article":"Battle_of_Vitoria","body":"At the Battle of Vitoria (21 June 1813), a British, Portuguese and Spanish army under the Marquess of Wellington broke the French army under King Joseph Bonaparte and Marshal Jean-Baptiste Jourdan near Vitoria in Spain, eventually leading to victory in the Peninsular War.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q276059","facts":[{"label":"Part of","value":"Peninsular War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q276059"},{"title":"Battle of Vitoria — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Vitoria"}],"briefSource":{"title":"Battle of Vitoria","url":"https://en.wikipedia.org/wiki/Battle_of_Vitoria","revision":1380562352,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q815216","year":1854,"title":"Siege of Sevastopol (1854–1855)","place":"Sevastopol","region":"Europe","lat":44.617,"lon":33.517,"category":"War & conflict","article":"Siege_of_Sevastopol_(1854–1855)","body":"The Siege of Sevastopol (at the time called in English the Siege of Sebastopol) lasted from October 1854 until September 1855, during the Crimean War. The allies (French, Sardinian, Ottoman, and British) landed at Eupatoria on 14 September 1854, intending to make a triumphal march to Sevastopol, the capital of the Crimea, with 50,000 men. Major battles along the way were Alma (September 1854), Balaklava (October 1854), Inkerman (November 1854), Tchernaya (August 1855), Redan (September 1855), and, finally, Malakoff (September 1855).","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q815216","facts":[{"label":"Part of","value":"Crimean War"},{"label":"End year","value":"1855"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q815216"},{"title":"Siege of Sevastopol (1854–1855) — background and references","url":"https://en.wikipedia.org/wiki/Siege_of_Sevastopol_(1854%E2%80%931855)"}],"briefSource":{"title":"Siege of Sevastopol (1854–1855)","url":"https://en.wikipedia.org/wiki/Siege_of_Sevastopol_(1854%E2%80%931855)","revision":1372251749,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q687572","year":1914,"title":"Battle of the Frontiers","place":"Lorraine","region":"Europe","lat":48.6,"lon":6.487,"category":"War & conflict","article":"Battle_of_the_Frontiers","body":"The Battle of the Frontiers comprised battles fought along the eastern frontier of France and in southern Belgium, shortly after the outbreak of the First World War. The battles resolved the military strategies of the French Chief of Staff General Joseph Joffre with Plan XVII and an offensive adaptation of the German Aufmarsch II deployment plan by Helmuth von Moltke the Younger. The German concentration on the right (northern) flank, was to wheel through Belgium and attack the French in the rear.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q687572","facts":[{"label":"Part of","value":"Western Front"},{"label":"End year","value":"1919"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q687572"},{"title":"Battle of the Frontiers — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_the_Frontiers"}],"briefSource":{"title":"Battle of the Frontiers","url":"https://en.wikipedia.org/wiki/Battle_of_the_Frontiers","revision":1375346978,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q670489","year":1915,"title":"Gorlice–Tarnów offensive","place":"Gorlice","region":"Europe","lat":49.654,"lon":21.159,"category":"War & conflict","article":"Gorlice–Tarnów_offensive","body":"The Gorlice–Tarnów offensive during World War I was initially conceived as a minor German offensive to relieve Russian pressure on the Austro-Hungarians to their south on the Eastern Front, but resulted in the Central Powers' chief offensive effort of 1915, causing the total collapse of the Russian lines and their retreat far into Russia. The continued series of actions lasted the majority of the campaigning season for 1915, starting in early May and only ending due to bad weather in October. Mackensen viewed securing a breakthrough as the first phase of an operation, which would then lead to a Russian retreat from the Dukla Pass, and their positions north of the Vistula.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q670489","facts":[{"label":"Part of","value":"WWI Eastern Front"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q670489"},{"title":"Gorlice–Tarnów offensive — background and references","url":"https://en.wikipedia.org/wiki/Gorlice%E2%80%93Tarn%C3%B3w_offensive"}],"briefSource":{"title":"Gorlice–Tarnów offensive","url":"https://en.wikipedia.org/wiki/Gorlice%E2%80%93Tarn%C3%B3w_offensive","revision":1370621540,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q690308","year":1917,"title":"Kerensky offensive","place":"Galicia","region":"Europe","lat":49.83,"lon":24.014,"category":"War & conflict","article":"Kerensky_offensive","body":"The Kerensky offensive , also called the summer offensive, the June offensive in Russia, or the July offensive in Western historiography, took place from 1 July [O.S. 18 June] to 19 July [O.S. 6 July] 1917 and was the last Russian offensive of World War I, named after the minister of war, Alexander Kerensky. After the abdication of Emperor Nicholas II during the February Revolution, the Russian Provisional Government pledged to fulfill Russia's existing commitments to the Triple Entente, which included launching an offensive in the spring of 1917.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q690308","facts":[{"label":"Part of","value":"WWI Eastern Front"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q690308"},{"title":"Kerensky offensive — background and references","url":"https://en.wikipedia.org/wiki/Kerensky_offensive"}],"briefSource":{"title":"Kerensky offensive","url":"https://en.wikipedia.org/wiki/Kerensky_offensive","revision":1370625642,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q662961","year":1918,"title":"Battle of Vittorio Veneto","place":"Vittorio Veneto","region":"Europe","lat":45.956,"lon":12.347,"category":"War & conflict","article":"Battle_of_Vittorio_Veneto","body":"The Battle of Vittorio Veneto was fought from 24 October to 4 November 1918 near Vittorio Veneto on the Italian Front during World War I. After having defeated Austro-Hungarian troops during the Second Battle of the Piave River and recognizing the dire internal situation of Austria-Hungary caused by the course of the war and the blockade of the Adriatic at sea, the Royal Italian Army launched a major offensive: the Italian victory marked the end of the war on the Italian Front and the dissolution of the Austro-Hungarian Empire, contributing to the end of the First World War just one week later. The battle led to the capture of over 5,000 artillery pieces and 448,000 Austro-Hungarian troops, including Germans, Hungarians, Czechs, Slovaks, Slovenes, Croatians, Poles, Romanians, Ukrainians, and also a small number of Austro-Hungarian Italians.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q662961","facts":[{"label":"Part of","value":"World War I"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q662961"},{"title":"Battle of Vittorio Veneto — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Vittorio_Veneto"}],"briefSource":{"title":"Battle of Vittorio Veneto","url":"https://en.wikipedia.org/wiki/Battle_of_Vittorio_Veneto","revision":1380328827,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q696900","year":1944,"title":"Battle of Guam (1944)","place":"Guam","region":"Oceania","lat":13.403,"lon":144.663,"category":"War & conflict","article":"Battle_of_Guam_(1944)","body":"The Battle of Guam (21 July – 10 August 1944) was the American recapture of the Japanese-held island of Guam, an American territory in the Mariana Islands captured by the Japanese in the First Battle of Guam in 1941 during the Pacific campaign of World War II. The battle was a critical component of Operation Forager. The recapture of Guam and the broader Mariana and Palau Islands campaign resulted in the destruction of much of Japan's naval air power and allowed the United States to establish large airbases from which it could bomb the Japanese home islands with its new strategic bomber, the Boeing B-29 Superfortress.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q696900","facts":[{"label":"Part of","value":"World War II"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q696900"},{"title":"Battle of Guam (1944) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Guam_(1944)"}],"briefSource":{"title":"Battle of Guam (1944)","url":"https://en.wikipedia.org/wiki/Battle_of_Guam_(1944)","revision":1383517375,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q265873","year":2005,"title":"2005 French riots","place":"France","region":"Europe","lat":48.911,"lon":2.546,"category":"War & conflict","article":"2005_French_riots","body":"The 2005 French riots was a three-week long period of civil disturbances that took place in the suburbs of Paris and other French cities in October and November 2005. These riots involved youth in violent attacks, outbreaks of arson of vehicles and public buildings. The unrest started on 27 October at Clichy-sous-Bois, where police were investigating a reported break-in at a building site, and a group of local youths scattered in order to avoid interrogation.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q265873","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q265873"},{"title":"2005 French riots — background and references","url":"https://en.wikipedia.org/wiki/2005_French_riots"}],"briefSource":{"title":"2005 French riots","url":"https://en.wikipedia.org/wiki/2005_French_riots","revision":1382775363,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q18071930","year":2014,"title":"Siege of Kobanî","place":"Aïn al-Arab","region":"Asia","lat":36.891,"lon":38.354,"category":"War & conflict","article":"Siege_of_Kobanî","body":"The siege of Kobanî was launched by the Islamic State (IS) on 13 September 2014, in order to capture the Kobanî Canton and its main city of Kobanî (also known as Kobanê or Ayn al-Arab) in northern Syria, in the de facto autonomous region of Rojava. By 2 October 2014, IS succeeded in capturing 350 Kurdish villages and towns in the vicinity of Kobanê, generating a wave of some 300,000 Kurdish refugees, who fled across the border into Turkey's Şanlıurfa Province. By January 2015, the number had risen to 400,000.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q18071930","facts":[{"label":"Part of","value":"Syrian Civil War"},{"label":"End year","value":"2015"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q18071930"},{"title":"Siege of Kobanî — background and references","url":"https://en.wikipedia.org/wiki/Siege_of_Koban%C3%AE"}],"briefSource":{"title":"Siege of Kobanî","url":"https://en.wikipedia.org/wiki/Siege_of_Koban%C3%AE","revision":1381716237,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q280868","year":-52,"title":"Battle of Gergovia","place":"Gergovie","region":"Europe","lat":45.713,"lon":3.126,"category":"War & conflict","article":"Battle_of_Gergovia","body":"The Battle of Gergovia took place in 52 BC in Gaul at Gergovia, the chief oppidum (fortified town) of the Arverni. The battle was fought between a Roman Republican army, led by proconsul Julius Caesar, and Gallic forces led by Vercingetorix, who was also the Arverni chieftain. The Romans attempted to besiege Gergovia, but miscommunication ruined the Roman plan. The Gallic cavalry counterattacked the confused Romans and sent them to flight, winning the battle. The site is identified with Merdogne, since renamed Gergovie, a village located on a hill within the town of La Roche-Blanche, near Clermont-Ferrand, in south central France.","approximate":true,"imageNote":"No verified historical image available","catalog":true,"qid":"Q280868","facts":[{"label":"Part of","value":"Gallic War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q280868"},{"title":"Battle of Gergovia — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Gergovia"}],"briefSource":{"title":"Battle of Gergovia","url":"https://en.wikipedia.org/wiki/Battle_of_Gergovia","revision":1382551844,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q734700","year":451,"title":"Battle of Avarayr","place":"Avarayr Plain","region":"Asia","lat":39.339,"lon":45.057,"category":"War & conflict","article":"Battle_of_Avarayr","body":"The Battle of Avarayr (Armenian: Ավարայրի ճակատամարտ, romanized: Avarayri chakatamart) was fought on 26 May 451 on the Avarayr Plain in Vaspurakan between a Christian Armenian army under Vardan Mamikonian and Sassanid Persia. It is considered one of the first battles in defense of the Christian faith. Although the Persians were victorious on the battlefield, it was a pyrrhic victory. The Armenians were allowed to continue practising Christianity freely. The battle is seen as one of the most significant events in Armenian history.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q734700","facts":[{"label":"Part of","value":"War of the Vardanants"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q734700"},{"title":"Battle of Avarayr — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Avarayr"}],"briefSource":{"title":"Battle of Avarayr","url":"https://en.wikipedia.org/wiki/Battle_of_Avarayr","revision":1384205742,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q841211","year":454,"title":"Battle of Nedao","place":"Pannonia","region":"Europe","lat":44.933,"lon":19.017,"category":"War & conflict","article":"Battle_of_Nedao","body":"After Attila’s death, rivalries among his successors and resistance from subject peoples weakened Hunnic power. At Nedao, traditionally dated to 454, forces led by the Gepid ruler Ardaric defeated an army associated with Attila’s son Ellac. The battle became a turning point in the fragmentation of the Hunnic empire in Europe. Its precise location and aspects of the surviving account remain uncertain, so the marker represents the wider Pannonian region.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q841211","facts":[],"sources":[{"title":"University of Leeds research — Hunnic succession and Nedao","url":"https://etheses.whiterose.ac.uk/id/eprint/15935/1/Pinto_OLV_History_PhD_2016.pdf"},{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q841211"},{"title":"Battle of Nedao — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Nedao"}],"editorial":true},{"id":"event-q403416","year":811,"title":"Battle of Pliska","place":"Pliska","region":"Europe","lat":43.362,"lon":27.125,"category":"War & conflict","article":"Battle_of_Pliska","body":"The Battle of Pliska or Battle of Vărbitsa Pass was a series of battles between the forces of the Byzantine Empire under Emperor Nicephorus I, and the First Bulgarian Empire under Khan Krum in July 811. The Byzantines plundered and burned the Bulgar capital Pliska which gave time for the Bulgarians to block passes in the Balkan Mountains that served as exits out of Bulgaria. The final battle took place on 26 July 811, in some of the passes in the eastern part of the Balkans, most probably the Vărbitsa Pass.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q403416","facts":[{"label":"Part of","value":"Byzantine–Bulgarian Wars"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q403416"},{"title":"Battle of Pliska — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Pliska"}],"briefSource":{"title":"Battle of Pliska","url":"https://en.wikipedia.org/wiki/Battle_of_Pliska","revision":1380959686,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1987213","year":1081,"title":"Battle of Dyrrhachium (1081)","place":"Durrës","region":"Asia","lat":41.313,"lon":19.446,"category":"War & conflict","article":"Battle_of_Dyrrhachium_(1081)","body":"The Battle of Dyrrhachium took place on October 18, 1081 between the Byzantine Empire, led by the Emperor Alexios I Komnenos (r. 1081–1118), and the Normans of southern Italy under Robert Guiscard, Duke of Apulia and Calabria. The battle was fought outside the city of Dyrrhachium (present-day Durrës in Albania), the major Byzantine stronghold in the western Balkans, and ended in a Norman victory. Following the Norman conquest of Byzantine Italy and Saracen Sicily, the Byzantine emperor, Michael VII Doukas (r. 1071–1078), betrothed his son to Robert Guiscard's daughter.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1987213","facts":[{"label":"Part of","value":"Byzantine–Norman Wars"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1987213"},{"title":"Battle of Dyrrhachium (1081) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Dyrrhachium_(1081)"}],"briefSource":{"title":"Battle of Dyrrhachium (1081)","url":"https://en.wikipedia.org/wiki/Battle_of_Dyrrhachium_(1081)","revision":1380918330,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1500314","year":1104,"title":"Battle of Harran","place":"Harran","region":"Asia","lat":36.867,"lon":39.033,"category":"War & conflict","article":"Battle_of_Harran","body":"The Battle of Harran took place on 7 May 1104 between the Crusader states of the Principality of Antioch and the County of Edessa, and the Seljuk Turks. It was the first major battle against the newfound Crusader states in the aftermath of the First Crusade, marking a key turning point against Frankish expansion. The battle had a disastrous effect on the Principality of Antioch as the Turks regained territory earlier lost.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1500314","facts":[{"label":"Part of","value":"Crusader battles between 1101 and 1145"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1500314"},{"title":"Battle of Harran — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Harran"}],"briefSource":{"title":"Battle of Harran","url":"https://en.wikipedia.org/wiki/Battle_of_Harran","revision":1379175483,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q136344","year":1243,"title":"Battle of Köse Dağ","place":"Mount Kösedağ","region":"Asia","lat":40.283,"lon":39.595,"category":"War & conflict","article":"Battle_of_Köse_Dağ","body":"The Battle of Köse Dağ took place in eastern Anatolia on 26 June 1243 when an army of the Sultanate of Rum, led by Sultan Kaykhusraw II, confronted an invading Mongol army under the general Baiju and was decisively defeated. The battle was the pivotal event of the Mongol conquest of Anatolia: Rum, previously a significant independent power in the eastern Mediterranean, was reduced to the status of a client kingdom, and its territories were later absorbed into the Mongol Ilkhanate. The Mongol Empire first achieved territorial contact with Rum in the early 1230s by conquering a large swathe of western Iran, but largely left it alone over the next decade.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q136344","facts":[{"label":"Part of","value":"Mongol conquest of Anatolia"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q136344"},{"title":"Battle of Köse Dağ — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_K%C3%B6se_Da%C4%9F"}],"briefSource":{"title":"Battle of Köse Dağ","url":"https://en.wikipedia.org/wiki/Battle_of_K%C3%B6se_Da%C4%9F","revision":1370446651,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q634629","year":1461,"title":"Battle of Towton","place":"Towton","region":"Europe","lat":53.84,"lon":-1.268,"category":"War & conflict","article":"Battle_of_Towton","body":"The Battle of Towton took place on 29 March 1461 during the Wars of the Roses, near Towton in North Yorkshire. Yorkist forces decisively defeated Lancastrian supporters of Henry VI, securing the English throne for Edward IV. Fought for ten hours between an estimated 50,000 soldiers from both sides in a snowstorm on Palm Sunday, it was \\"probably the largest and bloodiest battle on English soil\\". Henry VI succeeded his father, Henry V, when he was nine months old in 1422, but was a weak, ineffectual and mentally unsound ruler, which encouraged the nobles to scheme for control over him.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q634629","facts":[{"label":"Part of","value":"Wars of the Roses"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q634629"},{"title":"Battle of Towton — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Towton"}],"briefSource":{"title":"Battle of Towton","url":"https://en.wikipedia.org/wiki/Battle_of_Towton","revision":1383579615,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q428369","year":1575,"title":"Battle of Nagashino","place":"Nagashino Castle","region":"Asia","lat":34.921,"lon":137.525,"category":"War & conflict","article":"Battle_of_Nagashino","body":"The Battle of Nagashino (長篠の戦い, Nagashino no Tatakai) was a famous battle in Japanese history, fought in 1575 at Nagashino in Mikawa Province (present-day Nagashino, Shinshiro, Aichi Prefecture). The allied forces of Oda Nobunaga and Tokugawa Ieyasu (38,000) fought against Takeda Katsuyori's forces (15,000) and the allied forces won a crushing victory over the Takeda clan. As a result, Oda Nobunaga's unification of Japan was seen as certain. In recent years, the battle has increasingly been referred to as the Battle of Nagashino and Shitaragahara (長篠・設楽原の戦い, Nagashino Shitaragahara no Tatakai).","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q428369","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q428369"},{"title":"Battle of Nagashino — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Nagashino"}],"briefSource":{"title":"Battle of Nagashino","url":"https://en.wikipedia.org/wiki/Battle_of_Nagashino","revision":1381491432,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q166015","year":1708,"title":"Battle of Lesnaya","place":"Liasnaja","region":"Europe","lat":53.541,"lon":30.915,"category":"War & conflict","article":"Battle_of_Lesnaya","body":"The Battle of Lesnaya was fought on 9 October 1708 during the Swedish invasion of Russia in the Great Northern War. Russia was the sole remaining enemy of Sweden following the dissolution of the anti-Swedish coalition in 1706. Peter I of Russia led a flying corps (corps volant [ru]), supported by two additional divisions, to destroy a convoy under general Adam Ludwig Lewenhaupt that was heading for the Swedish main army in Ukraine with reinforcements and supplies.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q166015","facts":[{"label":"Part of","value":"Great Northern War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q166015"},{"title":"Battle of Lesnaya — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Lesnaya"}],"briefSource":{"title":"Battle of Lesnaya","url":"https://en.wikipedia.org/wiki/Battle_of_Lesnaya","revision":1382468154,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q329534","year":1813,"title":"Battle of Lützen (1813)","place":"Großgörschen","region":"Europe","lat":51.217,"lon":12.183,"category":"War & conflict","article":"Battle_of_Lützen_(1813)","body":"The Battle of Lützen, fought on 2 May 1813 near the town of Lützen in Saxony, was a major engagement during the War of the Sixth Coalition. It pitted Napoleon Bonaparte's French forces against a coalition army of Prussian and Russian troops commanded by Generals Wittgenstein and Blücher. The battle marked Napoleon's attempt to reassert dominance in Central Europe following his disastrous retreat from Russia in 1812. Although the Allies initially gained ground and inflicted significant damage on the French forces, Napoleon's tactical brilliance and use of concentrated reserves allowed him to turn the tide of the battle.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q329534","facts":[{"label":"Part of","value":"German campaign of 1813"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q329534"},{"title":"Battle of Lützen (1813) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_L%C3%BCtzen_(1813)"}],"briefSource":{"title":"Battle of Lützen (1813)","url":"https://en.wikipedia.org/wiki/Battle_of_L%C3%BCtzen_(1813)","revision":1370805565,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q243590","year":1848,"title":"Second Anglo-Sikh War","place":"Punjab","region":"Asia","lat":31,"lon":74,"category":"War & conflict","article":"Second_Anglo-Sikh_War","body":"The Second Anglo-Sikh War was a military conflict fought between the Sikh Empire and the East India Company, which took place from 1848 to 1849. It resulted in the fall of the Sikh Empire, and the annexation of the Punjab and what subsequently became the North-West Frontier Province, by the East India Company. On 19 April 1848, Patrick Vans Agnew of the civil service and Lieutenant William Anderson of the Bombay European regiment, having been sent to take charge of Multan from Diwan Mulraj Chopra, were murdered there; within a short time, the Sikh troops joined in open rebellion.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q243590","facts":[{"label":"End year","value":"1849"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q243590"},{"title":"Second Anglo-Sikh War — background and references","url":"https://en.wikipedia.org/wiki/Second_Anglo-Sikh_War"}],"briefSource":{"title":"Second Anglo-Sikh War","url":"https://en.wikipedia.org/wiki/Second_Anglo-Sikh_War","revision":1380520880,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1061228","year":1862,"title":"Battle of Puebla","place":"Heroica Puebla de Zaragoza","region":"Americas","lat":19.05,"lon":-98.208,"category":"War & conflict","article":"Battle_of_Puebla","body":"The Battle of Puebla , also known as the Battle of the Fifth of May (Spanish: Batalla del Cinco de Mayo) took place on 5 May 1862, near Puebla de los Ángeles, during the second French intervention in Mexico. French troops under the command of Charles de Lorencez repeatedly failed to storm the forts of Loreto and Guadalupe situated on top of the hills overlooking the city of Puebla, and eventually retreated to Orizaba in order to await reinforcements. Lorencez was dismissed from his command, and French troops under Élie Frédéric Forey eventually took the city, but the Mexican victory at Puebla against a better equipped force provided patriotic inspiration to the Mexicans.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1061228","facts":[{"label":"Part of","value":"Second French intervention in Mexico"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1061228"},{"title":"Battle of Puebla — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Puebla"}],"briefSource":{"title":"Battle of Puebla","url":"https://en.wikipedia.org/wiki/Battle_of_Puebla","revision":1379844913,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q698828","year":1914,"title":"Siege of Przemyśl","place":"Przemyśl","region":"Europe","lat":49.783,"lon":22.784,"category":"War & conflict","article":"Siege_of_Przemyśl","body":"The Siege of Przemyśl was the longest siege in Europe during the First World War, and the second-longest in the entire conflict, after the Siege of Medina. The siege was a crushing defeat of the Austro-Hungarian Army by the Russian Army. Przemyśl was a fortress-town and stronghold on the River San in Austrian Galicia. The investment of Przemyśl began on 16 September 1914 and was briefly suspended on 11 October, due to an Austro-Hungarian offensive.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q698828","facts":[{"label":"Part of","value":"World War I"},{"label":"End year","value":"1915"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q698828"},{"title":"Siege of Przemyśl — background and references","url":"https://en.wikipedia.org/wiki/Siege_of_Przemy%C5%9Bl"}],"briefSource":{"title":"Siege of Przemyśl","url":"https://en.wikipedia.org/wiki/Siege_of_Przemy%C5%9Bl","revision":1376997715,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q611789","year":1941,"title":"Defense of Brest Fortress","place":"Brest Fortress","region":"Europe","lat":52.083,"lon":23.653,"category":"War & conflict","article":"Defense_of_Brest_Fortress","body":"The defense of Brest Fortress was the first battle of Operation Barbarossa, the Axis invasion of the Soviet Union launched on 22 June 1941. The German Army attacked without warning, expecting to take Brest on the first day, using only infantry and artillery, but it took them a week, and only after two bombardments by the Luftwaffe. Many defenders were killed or captured.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q611789","facts":[{"label":"Part of","value":"Eastern Front"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q611789"},{"title":"Defense of Brest Fortress — background and references","url":"https://en.wikipedia.org/wiki/Defense_of_Brest_Fortress"}],"briefSource":{"title":"Defense of Brest Fortress","url":"https://en.wikipedia.org/wiki/Defense_of_Brest_Fortress","revision":1381959584,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q161033","year":1942,"title":"Demyansk Pocket","place":"Demyansk","region":"Europe","lat":57.65,"lon":32.467,"category":"War & conflict","article":"Demyansk_Pocket","body":"The Demyansk Pocket was the name given to the pocket of German troops encircled by the Red Army around Demyansk, south of Leningrad, on World War II's Eastern Front. The pocket existed mainly from 8 February to 21 April 1942. A much smaller force was surrounded in the Kholm Pocket at the town of Kholm, about 100 km (62 mi) to the southwest. Both resulted from the German retreat after its defeat during the Battle of Moscow.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q161033","facts":[{"label":"Part of","value":"Siege of Leningrad"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q161033"},{"title":"Demyansk Pocket — background and references","url":"https://en.wikipedia.org/wiki/Demyansk_Pocket"}],"briefSource":{"title":"Demyansk Pocket","url":"https://en.wikipedia.org/wiki/Demyansk_Pocket","revision":1370615479,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q696931","year":1945,"title":"Battle of Manila (1945)","place":"Manila","region":"Asia","lat":14.583,"lon":120.967,"category":"War & conflict","article":"Battle_of_Manila_(1945)","body":"The Battle of Manila (3 February – 3 March 1945) was a major battle during the Philippine campaign of 1944–45, during the Second World War. It was fought by forces from both the United States and the Philippines against Imperial Japanese troops in Manila, the capital city of the Philippines. The month-long battle, which resulted in the death of at least 100,000 civilians and the complete devastation of the city, was the scene of the worst urban fighting fought by American forces in the Pacific theater.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q696931","facts":[{"label":"Part of","value":"World War II"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q696931"},{"title":"Battle of Manila (1945) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Manila_(1945)"}],"briefSource":{"title":"Battle of Manila (1945)","url":"https://en.wikipedia.org/wiki/Battle_of_Manila_(1945)","revision":1375687024,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q14303815","year":1945,"title":"Battle of Castle Itter","place":"Itter Castle","region":"Europe","lat":47.471,"lon":12.14,"category":"War & conflict","article":"Battle_of_Castle_Itter","body":"The Battle of Castle Itter was fought on 5 May 1945, in the Austrian village of Itter in the North Tyrol region of the country, during the last days of the European Theater of World War II. Troops of the 23rd Tank Battalion of the 12th Armored Division of the US XXI Corps led by Lieutenant John C. \\"Jack\\" Lee Jr, a number of Wehrmacht soldiers led by Major Josef \\"Sepp\\" Gangl, SS-Hauptsturmführer Kurt-Siegfried Schrader, and recently freed French prisoners of war defended Castle Itter against an attacking force from the 17th SS Panzergrenadier Division until relief from the American 142nd Infantry Regiment of the 36th Division of XXI Corps arrived.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q14303815","facts":[{"label":"Part of","value":"World War II"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q14303815"},{"title":"Battle of Castle Itter — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Castle_Itter"}],"briefSource":{"title":"Battle of Castle Itter","url":"https://en.wikipedia.org/wiki/Battle_of_Castle_Itter","revision":1383572687,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q14947002","year":1785,"title":"Chechen–Russian conflict","place":"North Caucasus","region":"Europe","lat":43.405,"lon":43.832,"category":"War & conflict","article":"Chechen–Russian_conflict","body":"The Chechen–Russian conflict was the centuries-long ethnic and political conflict, often armed, between the Russian, Soviet and Imperial Russian governments and various Chechen forces. The recent phase of the conflict started after the dissolution of the Soviet Union in 1991 and ended with the oppression of Chechen separatist leaders and crushing of the separatist movement in the republic proper in 2017. Formal hostilities in Chechnya date back to 1785, though elements of the conflict can be traced back considerably further.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q14947002","facts":[{"label":"Part of","value":"Russian–Chechen relations"},{"label":"End year","value":"2017"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q14947002"},{"title":"Chechen–Russian conflict — background and references","url":"https://en.wikipedia.org/wiki/Chechen%E2%80%93Russian_conflict"}],"briefSource":{"title":"Chechen–Russian conflict","url":"https://en.wikipedia.org/wiki/Chechen%E2%80%93Russian_conflict","revision":1382776327,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q122974556","year":2023,"title":"Hezbollah–Israel conflict (2023–present)","place":"Southern Lebanon","region":"Asia","lat":33,"lon":35.75,"category":"War & conflict","article":"Hezbollah–Israel_conflict_(2023–present)","body":"An ongoing conflict between the Lebanese militant group Hezbollah and Israel began on 8 October 2023, when Hezbollah launched rockets and artillery at Israeli positions following Hamas's October 7 attacks on Israel. The conflict escalated into a prolonged exchange of bombardments, leading to extensive displacement in Israel and Lebanon. The conflict is part of the broader Middle Eastern crisis that began with Hamas's attack, with the short Israeli invasion of Lebanon in 2024 marking the largest escalation of the Hezbollah–Israel conflict since the 2006 Lebanon War.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q122974556","facts":[{"label":"Part of","value":"Middle Eastern crisis (2023–present)"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q122974556"},{"title":"Hezbollah–Israel conflict (2023–present) — background and references","url":"https://en.wikipedia.org/wiki/Hezbollah%E2%80%93Israel_conflict_(2023%E2%80%93present)"}],"briefSource":{"title":"Hezbollah–Israel conflict (2023–present)","url":"https://en.wikipedia.org/wiki/Hezbollah%E2%80%93Israel_conflict_(2023%E2%80%93present)","revision":1382843713,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q111078529","year":2022,"title":"Battle of Sievierodonetsk (2022)","place":"Siverskodonetsk","region":"Europe","lat":48.95,"lon":38.483,"category":"War & conflict","article":"Battle_of_Sievierodonetsk_(2022)","body":"The Battle of Sievierodonetsk was a military engagement in the wider battle of Donbas of the eastern Ukraine campaign during the Russian invasion of Ukraine. The city of Sievierodonetsk acted as the administrative centre of unoccupied Luhansk Oblast prior to the invasion. By May 2022, Sievierodonetsk and the neighbouring city of Lysychansk were the only notable parts of the oblast that remained under Ukrainian control. By 14 June 2022, Russian forces had gained control of most of the city and cut off most escape routes.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q111078529","facts":[{"label":"Part of","value":"Battle of Donbas"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q111078529"},{"title":"Battle of Sievierodonetsk (2022) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Sievierodonetsk_(2022)"}],"briefSource":{"title":"Battle of Sievierodonetsk (2022)","url":"https://en.wikipedia.org/wiki/Battle_of_Sievierodonetsk_(2022)","revision":1383827398,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q112016","year":-330,"title":"Battle of the Persian Gate","place":"Persian Gates","region":"Asia","lat":30.708,"lon":51.599,"category":"War & conflict","article":"Battle_of_the_Persian_Gate","body":"The Battle of the Persian Gate took place as part of the Wars of Alexander the Great. In the winter of 330 BC, Ariobarzanes of Persis led a last stand with his outnumbered Persian army at the Persian Gate, near Persepolis, and held back the Macedonian army for approximately a month. However, through captured prisoners of war or a local shepherd, Alexander found a path around to flank the Persian troops from the rear, allowing him to capture half of Persia proper in another decisive victory against the Achaemenid Empire.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q112016","facts":[{"label":"Part of","value":"Wars of Alexander the Great"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q112016"},{"title":"Battle of the Persian Gate — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_the_Persian_Gate"}],"briefSource":{"title":"Battle of the Persian Gate","url":"https://en.wikipedia.org/wiki/Battle_of_the_Persian_Gate","revision":1370601823,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q756413","year":-279,"title":"Battle of Asculum","place":"Ascoli Satriano","region":"Europe","lat":41.216,"lon":15.558,"category":"War & conflict","article":"Battle_of_Asculum","body":"The Battle of Asculum was a battle that took place near Asculum (modern Ascoli Satriano) in 279 BC, and was thought to have lasted either one or two days, between the Roman Republic under the command of the consuls Publius Decius Mus (who by some accounts died before the battle) and Publius Sulpicius Saverrio, and the forces of King Pyrrhus of Epirus. The battle took place during the Pyrrhic War, after the Battle of Heraclea of 280 BC, which was the first battle of the war. There currently exist accounts of this battle only by three ancient historians: Dionysius of Halicarnassus, Plutarch, and Cassius Dio, although these historians in turn reference other historians whose work is now lost.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q756413","facts":[{"label":"Part of","value":"Pyrrhic War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q756413"},{"title":"Battle of Asculum — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Asculum"}],"briefSource":{"title":"Battle of Asculum","url":"https://en.wikipedia.org/wiki/Battle_of_Asculum","revision":1370432630,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q630781","year":-217,"title":"Battle of Raphia","place":"Rafah","region":"Asia","lat":31.289,"lon":34.252,"category":"War & conflict","article":"Battle_of_Raphia","body":"The Battle of Raphia was fought on 22 June 217 BC near modern Rafah between the forces of Ptolemy IV Philopator, king and pharaoh of Ptolemaic Egypt and Antiochus III the Great of the Seleucid Empire during the Syrian Wars. It was one of the largest battles of the Hellenistic kingdoms and of the ancient world, and determined the sovereignty of Coele-Syria.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q630781","facts":[{"label":"Part of","value":"Fourth Syrian War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q630781"},{"title":"Battle of Raphia — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Raphia"}],"briefSource":{"title":"Battle of Raphia","url":"https://en.wikipedia.org/wiki/Battle_of_Raphia","revision":1370587161,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q776215","year":-105,"title":"Battle of Arausio","place":"Arausio","region":"Europe","lat":44.133,"lon":4.8,"category":"War & conflict","article":"Battle_of_Arausio","body":"The Battle of Arausio took place on 6 October 105 BC, at a site between the town of Arausio, now Orange, Vaucluse, and the Rhône river, when two Roman armies, commanded by proconsul Quintus Servilius Caepio and consul Gnaeus Mallius Maximus, suffered a major defeat at the hands of the Cimbri and Teuton migratory tribes who were led by Boiorix and Teutobod respectively. Differences between the Roman commanders prevented regular coordination between their armies, resulting in their annihilation by the united Cimbrian-Teutonic force. Roman losses are thought to have been as high as 80,000 legionaries and another 40,000 auxiliary troops, with total losses numbering up to 120,000 soldiers, the entirety of both armies.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q776215","facts":[{"label":"Part of","value":"Cimbrian War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q776215"},{"title":"Battle of Arausio — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Arausio"}],"briefSource":{"title":"Battle of Arausio","url":"https://en.wikipedia.org/wiki/Battle_of_Arausio","revision":1380107034,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q929265","year":268,"title":"Battle of Naissus","place":"Niš","region":"Europe","lat":43.3,"lon":21.9,"category":"War & conflict","article":"Battle_of_Naissus","body":"The Battle of Naissus in 268 or 269 was the defeat of a Gothic coalition by the Roman Empire under Emperor Gallienus (or Emperor Claudius II Gothicus) and the future Emperor Aurelian near Naissus (Niš). The events around the invasion and the battle are an important part of the history of the Crisis of the Third Century. The result was a great Roman victory which, combined with the effective pursuit of the invaders in the aftermath of the battle and the energetic efforts of the future Emperor Aurelian, largely removed the threat from Germanic tribes in the Balkan frontier for the following decades.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q929265","facts":[{"label":"Part of","value":"Gothic War of 267–269"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q929265"},{"title":"Battle of Naissus — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Naissus"}],"briefSource":{"title":"Battle of Naissus","url":"https://en.wikipedia.org/wiki/Battle_of_Naissus","revision":1370451155,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q385604","year":530,"title":"Battle of Dara","place":"Dara","region":"Asia","lat":37.18,"lon":40.955,"category":"War & conflict","article":"Battle_of_Dara","body":"The Battle of Dara was fought between the Byzantine Empire and the Sasanian Empire in June 530 AD during the Iberian War. Following the collapse of diplomatic efforts between the Byzantine Emperor Justinian I and Shah Kavadh I, a Sasanian army advanced on the fortified city of Dara, where it was met by a smaller Byzantine force commanded by Belisarius. Despite being outnumbered, Belisarius prepared a defensive position outside the fort's walls, using trenches to protect the infantry and control the locations of engagements to offset the Sasanian numerical advantage.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q385604","facts":[{"label":"Part of","value":"Iberian War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q385604"},{"title":"Battle of Dara — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Dara"}],"briefSource":{"title":"Battle of Dara","url":"https://en.wikipedia.org/wiki/Battle_of_Dara","revision":1382821908,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q888904","year":634,"title":"Battle of Ajnadayn","place":"Ajnadayn","region":"Asia","lat":31.683,"lon":34.95,"category":"War & conflict","article":"Battle_of_Ajnadayn","body":"The Battle of Ajnadayn was fought in July or August 634 (Jumada I or II, 13 AH), in a location close to Bayt Jibrin; it was the first major pitched battle between the Byzantine (Roman) Empire and the army of the Arab Rashidun Caliphate. The result of the battle was a decisive Muslim victory. The details of this battle are mostly known through Muslim sources, such as the ninth-century historian al-Waqidi.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q888904","facts":[{"label":"Part of","value":"Muslim conquest of the Levant"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q888904"},{"title":"Battle of Ajnadayn — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Ajnadayn"}],"briefSource":{"title":"Battle of Ajnadayn","url":"https://en.wikipedia.org/wiki/Battle_of_Ajnadayn","revision":1384096808,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q289492","year":750,"title":"Battle of the Zab","place":"Great Zab","region":"Asia","lat":35.991,"lon":43.344,"category":"War & conflict","article":"Battle_of_the_Zab","body":"The Battle of the Zab , also referred to in scholarly contexts as Battle of the Great Zāb River, took place on January 25, 750, on the banks of the Great Zab in what is now the modern country of Iraq. It spelled the end of the Umayyad Caliphate and the rise of the Abbasid Caliphate, which would last from 750 to 1258.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q289492","facts":[{"label":"Part of","value":"Abbasid Revolution"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q289492"},{"title":"Battle of the Zab — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_the_Zab"}],"briefSource":{"title":"Battle of the Zab","url":"https://en.wikipedia.org/wiki/Battle_of_the_Zab","revision":1382223597,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1192616","year":1121,"title":"Battle of Didgori","place":"Georgia","region":"Asia","lat":41.683,"lon":44.517,"category":"War & conflict","article":"Battle_of_Didgori","body":"The Battle of Didgori (Georgian: დიდგორის ბრძოლა, romanized: didgoris brdzola) was fought between the armies of the Kingdom of Georgia and the Seljuk Empire at the narrow place of Didgori, 40 km west of Tbilisi, on August 12, 1121. The large Muslim army, under the command of Ilghazi, was unable to maneuver and suffered a devastating defeat due to King David IV's effective military tactics. The battle at Didgori was the culmination of the entire Georgian–Seljuk wars and led to the Georgians' reconquest of Tbilisi in 1122.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q1192616","facts":[{"label":"Part of","value":"Georgian–Seljuk wars"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1192616"},{"title":"Battle of Didgori — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Didgori"}],"briefSource":{"title":"Battle of Didgori","url":"https://en.wikipedia.org/wiki/Battle_of_Didgori","revision":1382649565,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1341972","year":1385,"title":"Battle of Aljubarrota","place":"Leiria","region":"Europe","lat":39.639,"lon":-8.844,"category":"War & conflict","article":"Battle_of_Aljubarrota","body":"The Battle of Aljubarrota was fought between the Kingdom of Portugal and the Crown of Castile on 14 August 1385. Forces commanded by King John I of Portugal and his Constable Nuno Álvares Pereira, with the support of English allies, opposed the army of King John I of Castile with its Aragonese and French allies, as well as Genoese mercenaries at São Jorge, between the towns of Leiria and Alcobaça, in central Portugal. The result was a decisive victory for the Portuguese, ruling out Castilian ambitions to the Portuguese throne, ending the 1383–85 Crisis and assuring John's position as King of Portugal.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1341972","facts":[{"label":"Part of","value":"1383–1385 Portuguese Interregnum"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1341972"},{"title":"Battle of Aljubarrota — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Aljubarrota"}],"briefSource":{"title":"Battle of Aljubarrota","url":"https://en.wikipedia.org/wiki/Battle_of_Aljubarrota","revision":1370431684,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q648535","year":1429,"title":"Battle of Patay","place":"Patay","region":"Europe","lat":48.048,"lon":1.696,"category":"War & conflict","article":"Battle_of_Patay","body":"The Battle of Patay, fought on 18 June 1429 during the Hundred Years' War, was the culmination of the Loire Campaign between the French and English in north-central France. In this engagement, the horsemen of the French vanguard inflicted heavy casualties on an English army, most of them sustained by longbowmen as the English cavalry fled. In addition, all but one of the senior English commanders were captured. A victory often credited to Joan of Arc, she was in fact not present for the battle as she had remained with the main body of the French army.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q648535","facts":[{"label":"Part of","value":"Hundred Years' War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q648535"},{"title":"Battle of Patay — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Patay"}],"briefSource":{"title":"Battle of Patay","url":"https://en.wikipedia.org/wiki/Battle_of_Patay","revision":1382309133,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1337059","year":1471,"title":"Battle of Tewkesbury","place":"Tewkesbury","region":"Europe","lat":51.986,"lon":-2.161,"category":"War & conflict","article":"Battle_of_Tewkesbury","body":"The Battle of Tewkesbury (4 May 1471) was one of the most decisive battles of the Wars of the Roses in England. King Edward IV and his forces loyal to the House of York completely defeated those of the rival House of Lancaster. The Lancastrian heir to the throne, Edward of Westminster, Prince of Wales, and many prominent Lancastrian nobles were killed during the battle or executed after it. The Lancastrian king, Henry VI, who was a prisoner in the Tower of London, died shortly after the battle, likely murdered, although the official cause was stated as being of 'great melancholy'.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1337059","facts":[{"label":"Part of","value":"Wars of the Roses"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1337059"},{"title":"Battle of Tewkesbury — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Tewkesbury"}],"briefSource":{"title":"Battle of Tewkesbury","url":"https://en.wikipedia.org/wiki/Battle_of_Tewkesbury","revision":1370275402,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q25628","year":1480,"title":"Great Stand on the Ugra River","place":"Ugra","region":"Europe","lat":54.567,"lon":36.05,"category":"War & conflict","article":"Great_Stand_on_the_Ugra_River","body":"The Great Stand on the Ugra River or the Standing on the Ugra River, also known as the Battle of the Ugra, was a standoff in 1480 on the banks of the Ugra River between the forces of Akhmat Khan of the Great Horde, and Grand Prince Ivan III of the Grand Duchy of Moscow. After Ivan III stopped paying tribute to the Horde, Akhmat Khan led an army towards Moscow, leading to a standoff between the two armies on the banks of the river. Akhmat Khan waited for his Lithuanian reinforcements to arrive, but they never did, with one Mongol attempt to cross the river failing leading Akhmat Khan to retreat.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q25628","facts":[{"label":"Part of","value":"Mongol-Tatar yoke"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q25628"},{"title":"Great Stand on the Ugra River — background and references","url":"https://en.wikipedia.org/wiki/Great_Stand_on_the_Ugra_River"}],"briefSource":{"title":"Great Stand on the Ugra River","url":"https://en.wikipedia.org/wiki/Great_Stand_on_the_Ugra_River","revision":1370621842,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q971248","year":1516,"title":"Battle of Marj Dabiq","place":"Dabiq","region":"Asia","lat":36.545,"lon":37.275,"category":"War & conflict","article":"Battle_of_Marj_Dabiq","body":"The Battle of Marj Dābiq , a decisive military engagement in Middle Eastern history, was fought on 24 August 1516, near the town of Dabiq, 44 km north of Aleppo (modern Syria). The battle was part of the 1516–17 war between the Ottoman Empire and the Mamluk Sultanate, which ended in an Ottoman victory and conquest of much of the Middle East and brought about the destruction of the Mamluk Sultanate. The Ottoman victory in the battle gave Selim's armies control of the entire region of Syria and opened the door to the conquest of Egypt.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q971248","facts":[{"label":"Part of","value":"Ottoman–Mamluk War of 1516–17"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q971248"},{"title":"Battle of Marj Dabiq — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Marj_Dabiq"}],"briefSource":{"title":"Battle of Marj Dabiq","url":"https://en.wikipedia.org/wiki/Battle_of_Marj_Dabiq","revision":1383054488,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q869045","year":1702,"title":"Queen Anne's War","place":"North America","region":"Americas","lat":47,"lon":-105,"category":"War & conflict","article":"Queen_Anne's_War","body":"Queen Anne's War (1702–1713) was the second in a series of French and Indian Wars fought in North America involving the colonial empires of Great Britain, France, and Spain. In the United States, it is regarded as a standalone conflict. Elsewhere it is viewed as the American theater of the War of the Spanish Succession. It is also known as the Third Indian War. In France it was known as the Second Intercolonial War.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q869045","facts":[{"label":"Part of","value":"War of the Spanish Succession"},{"label":"End year","value":"1713"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q869045"},{"title":"Queen Anne's War — background and references","url":"https://en.wikipedia.org/wiki/Queen_Anne's_War"}],"briefSource":{"title":"Queen Anne's War","url":"https://en.wikipedia.org/wiki/Queen_Anne%27s_War","revision":1380101689,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q170400","year":1759,"title":"Battle of Kunersdorf","place":"Kunowice","region":"Europe","lat":52.353,"lon":14.613,"category":"War & conflict","article":"Battle_of_Kunersdorf","body":"The Battle of Kunersdorf occurred on 12 August 1759 near Kunersdorf (now Kunowice, Poland) immediately east of Frankfurt an der Oder. Part of the Third Silesian War and the wider Seven Years' War, the battle involved over 100,000 men. An Allied army commanded by Pyotr Saltykov and Ernst Gideon von Laudon that included 41,000 Russians and 18,500 Austrians defeated Frederick the Great's army of 50,900 Prussians. The terrain complicated battle tactics for both sides, but the Russians and the Austrians, having arrived in the area first, were able to overcome many of its difficulties by strengthening a causeway between two small ponds.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q170400","facts":[{"label":"Part of","value":"Seven Years' War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q170400"},{"title":"Battle of Kunersdorf — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Kunersdorf"}],"briefSource":{"title":"Battle of Kunersdorf","url":"https://en.wikipedia.org/wiki/Battle_of_Kunersdorf","revision":1382471763,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q778800","year":1799,"title":"Battle of Abukir (1799)","place":"Abu Qir","region":"Asia","lat":31.317,"lon":30.067,"category":"War & conflict","article":"Battle_of_Abukir_(1799)","body":"The Battle of Abukir (also known as the Battle of Aboukir or Battle of Abu Qir) was fought on 25 July 1799 between the French Army of the Orient under Napoleon Bonaparte and an Ottoman army under Mustafa Pasha during the French invasion of Egypt and Syria. It is considered the first pitched battle with this name, as there already had been a naval battle on 1 August 1798, the Battle of the Nile. No sooner had the French forces returned from a campaign to Syria, than the Ottoman forces were transported to Egypt by an Anglo-Ottoman fleet under Sidney Smith to put an end to French rule in Egypt.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q778800","facts":[{"label":"Part of","value":"French invasion of Egypt and Syria"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q778800"},{"title":"Battle of Abukir (1799) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Abukir_(1799)"}],"briefSource":{"title":"Battle of Abukir (1799)","url":"https://en.wikipedia.org/wiki/Battle_of_Abukir_(1799)","revision":1373172066,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q705813","year":1800,"title":"Battle of Hohenlinden","place":"Munich","region":"Europe","lat":48.16,"lon":11.998,"category":"War & conflict","article":"Battle_of_Hohenlinden","body":"The Battle of Hohenlinden was fought on 3 December 1800 during the French Revolutionary Wars. A French army under Jean Victor Marie Moreau won a decisive victory over an Austrian and Bavarian force led by 18-year-old Archduke John of Austria. The allies were forced into a disastrous retreat that compelled them to request an armistice, effectively ending the War of the Second Coalition. Hohenlinden is 33 km (21 mi) east of Munich in modern Germany.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q705813","facts":[{"label":"Part of","value":"War of the Second Coalition"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q705813"},{"title":"Battle of Hohenlinden — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Hohenlinden"}],"briefSource":{"title":"Battle of Hohenlinden","url":"https://en.wikipedia.org/wiki/Battle_of_Hohenlinden","revision":1370265713,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q837787","year":1849,"title":"Battle of Novara (1849)","place":"Novara","region":"Europe","lat":45.431,"lon":8.716,"category":"War & conflict","article":"Battle_of_Novara_(1849)","body":"The Battle of Novara (or Battle of Bicocca; Bicocca being a borough of Novara) was one of the battles fought between the Austrian Empire and the Kingdom of Sardinia during the First Italian War of Independence, within the era of Italian unification. Lasting the whole day of 22 March 1849 and ending at dawn on 23 March, it resulted in a severe defeat and retreat of the Piedmontese (Sardinian) army.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q837787","facts":[{"label":"Part of","value":"First Italian War of Independence"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q837787"},{"title":"Battle of Novara (1849) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Novara_(1849)"}],"briefSource":{"title":"Battle of Novara (1849)","url":"https://en.wikipedia.org/wiki/Battle_of_Novara_(1849)","revision":1382463444,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1064335","year":1859,"title":"Pig War (1859)","place":"San Juan Islands","region":"Americas","lat":48.532,"lon":-123.029,"category":"War & conflict","article":"Pig_War_(1859)","body":"The Pig War was a confrontation in 1859 between the United States and the United Kingdom over the British–U.S. border in the San Juan Islands, between Vancouver Island (present-day Canada) and the Washington Territory (present-day State of Washington). The Pig War, so called because it was triggered by the shooting of a pig, is also called the Pig Episode, the Pig and Potato War, the San Juan Boundary Dispute, and the Northwestern Boundary Dispute. Despite being referred to as a \\"war\\", there were no human casualties on either side, only a pig.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1064335","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1064335"},{"title":"Pig War (1859) — background and references","url":"https://en.wikipedia.org/wiki/Pig_War_(1859)"}],"briefSource":{"title":"Pig War (1859)","url":"https://en.wikipedia.org/wiki/Pig_War_(1859)","revision":1381132969,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1137302","year":1898,"title":"Battle of Omdurman","place":"Omdurman","region":"Africa","lat":15.684,"lon":32.463,"category":"War & conflict","article":"Battle_of_Omdurman","body":"The Battle of Omdurman, also known as the Battle of Karary, was fought during the Anglo-Egyptian conquest of Sudan between a British–Egyptian expeditionary force commanded by British Commander-in-Chief (sirdar) major general Horatio Herbert Kitchener and a Sudanese army of the Mahdist State, led by Abdallahi ibn Muhammad (the Khalifa), the successor to the self-proclaimed Mahdi, Muhammad Ahmad. The battle took place on 2 September 1898, at Kerreri, 11 kilometres (6.8 mi) north of Omdurman. Following the establishment of the Mahdist State in Sudan, and the subsequent threat to the regional status quo and to British-occupied Egypt, the British government decided to send an expeditionary force with the task of overthrowing the Khalifa.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1137302","facts":[{"label":"Part of","value":"Mahdist War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1137302"},{"title":"Battle of Omdurman — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Omdurman"}],"briefSource":{"title":"Battle of Omdurman","url":"https://en.wikipedia.org/wiki/Battle_of_Omdurman","revision":1383098333,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q149560","year":1914,"title":"Battle of Stallupönen","place":"Nesterov","region":"Europe","lat":54.631,"lon":22.573,"category":"War & conflict","article":"Battle_of_Stallupönen","body":"The Battle of Stallupönen, fought between Russian and German armies on August 17, 1914, was the opening battle of World War I on the Eastern Front. The Germans under the command of Hermann von François conducted a successful counterattack against four Russian infantry divisions from different infantry corps, which heavily outnumbered them but were separated from each other, creating a gap between the 27th Infantry Division and the 40th Infantry Division, and had little coordination with each other. The Germans retreated to Gumbinnen thereafter.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q149560","facts":[{"label":"Part of","value":"WWI Eastern Front"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q149560"},{"title":"Battle of Stallupönen — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Stallup%C3%B6nen"}],"briefSource":{"title":"Battle of Stallupönen","url":"https://en.wikipedia.org/wiki/Battle_of_Stallup%C3%B6nen","revision":1379181218,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q699897","year":1941,"title":"Battle of Guam (1941)","place":"Guam","region":"Oceania","lat":13.5,"lon":144.8,"category":"War & conflict","article":"Battle_of_Guam_(1941)","body":"The Battle of Guam was an engagement during the Pacific War in World War II that took place from 8 to 10 December 1941 on Guam in the Mariana Islands between Japan and the United States. The American garrison was defeated by Japanese forces on 10 December, which resulted in an occupation until the Second Battle of Guam in 1944.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q699897","facts":[{"label":"Part of","value":"Pacific War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q699897"},{"title":"Battle of Guam (1941) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Guam_(1941)"}],"briefSource":{"title":"Battle of Guam (1941)","url":"https://en.wikipedia.org/wiki/Battle_of_Guam_(1941)","revision":1380743860,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q261776","year":1942,"title":"Battles of Rzhev","place":"Rzhev","region":"Europe","lat":56.266,"lon":34.328,"category":"War & conflict","article":"Battles_of_Rzhev","body":"The Battles of Rzhev were a series of Red Army offensives against the Wehrmacht between 8 January 1942 and 31 March 1943, on the Eastern Front of World War II. The battles took place in the northeast of Smolensk Oblast and the south of Tver Oblast, in and around the salient surrounding Rzhev. Due to the high losses suffered by the Red Army, the campaign became known by veterans and historians as the \\"Rzhev Meat Grinder\\" .","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q261776","facts":[{"label":"Part of","value":"Eastern Front"},{"label":"End year","value":"1943"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q261776"},{"title":"Battles of Rzhev — background and references","url":"https://en.wikipedia.org/wiki/Battles_of_Rzhev"}],"briefSource":{"title":"Battles of Rzhev","url":"https://en.wikipedia.org/wiki/Battles_of_Rzhev","revision":1370603789,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q700032","year":1942,"title":"Battle of Savo Island","place":"Savo Island","region":"Asia","lat":-9.133,"lon":159.817,"category":"War & conflict","article":"Battle_of_Savo_Island","body":"The Battle of Savo Island, also known as the First Battle of Savo Island and in Japanese sources as the First Battle of the Solomon Sea (第一次ソロモン海戦, Dai-ichi-ji Soromon Kaisen), and colloquially among Allied Guadalcanal veterans as the Battle of the Five Sitting Ducks, was a naval battle during the Solomon Islands campaign of the Pacific War of World War II between the Imperial Japanese Navy and Allied naval forces. The battle took place on 8–9 August 1942 and was the first major naval engagement of the Guadalcanal campaign, the first of several naval battles in the straits later named Ironbottom Sound, near the island of Guadalcanal. The Imperial Japanese Navy, in response to Allied amphibious landings in the eastern Solomon Islands, mobilized a task force of seven cruisers and one destroyer under the command of Vice Admiral Gunichi Mikawa.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q700032","facts":[{"label":"Part of","value":"World War II"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q700032"},{"title":"Battle of Savo Island — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Savo_Island"}],"briefSource":{"title":"Battle of Savo Island","url":"https://en.wikipedia.org/wiki/Battle_of_Savo_Island","revision":1382088183,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q653470","year":1942,"title":"Battle of the Caucasus","place":"Kuban","region":"Europe","lat":42.75,"lon":44.5,"category":"War & conflict","article":"Battle_of_the_Caucasus","body":"The Battle of the Caucasus was a series of Axis and Soviet operations in the Caucasus as part of the Eastern Front of World War II. On 25 July 1942, German troops captured Rostov-on-Don, opening the Caucasus region of the southern Soviet Union to the Germans and threatening the oil fields beyond at Maykop, Grozny, and ultimately Baku. Two days prior, Adolf Hitler had issued a directive to launch an operation into the Caucasus named Operation Edelweiß.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q653470","facts":[{"label":"Part of","value":"Eastern Front"},{"label":"End year","value":"1943"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q653470"},{"title":"Battle of the Caucasus — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_the_Caucasus"}],"briefSource":{"title":"Battle of the Caucasus","url":"https://en.wikipedia.org/wiki/Battle_of_the_Caucasus","revision":1382507026,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q844505","year":2009,"title":"July 2009 Ürümqi riots","place":"Ürümqi","region":"Asia","lat":43.823,"lon":87.613,"category":"War & conflict","article":"July_2009_Ürümqi_riots","body":"A series of violent riots over several days broke out on 5 July 2009 in Ürümqi, the capital city of the Xinjiang Uyghur Autonomous Region, in northwestern China. The first day's rioting, which involved at least 1,000 Uyghurs, began as a protest, but escalated into violent attacks that mainly targeted Han people. According to Chinese state media, a total of 197 people died, most of whom were Han people or non-Muslim minorities, with 1,721 others injured and many vehicles and buildings destroyed.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q844505","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q844505"},{"title":"July 2009 Ürümqi riots — background and references","url":"https://en.wikipedia.org/wiki/July_2009_%C3%9Cr%C3%BCmqi_riots"}],"briefSource":{"title":"July 2009 Ürümqi riots","url":"https://en.wikipedia.org/wiki/July_2009_%C3%9Cr%C3%BCmqi_riots","revision":1382708654,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q51844684","year":2018,"title":"April 2018 missile strikes against Syria","place":"Homs","region":"Asia","lat":33.558,"lon":36.315,"category":"War & conflict","article":"April_2018_missile_strikes_against_Syria","body":"On 14 April 2018, beginning at 04:00 Syrian time (UTC+3), the United States, France, and the United Kingdom carried out a series of military strikes involving aircraft and ship-based missiles against multiple government sites in Syria during the Syrian Civil War. The strikes were a reprisal for the Douma chemical attack against civilians on 7 April, widely attributed to the Syrian government. The Syrian government called the airstrikes a violation of international law.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q51844684","facts":[{"label":"Part of","value":"United States intervention in Syria"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q51844684"},{"title":"April 2018 missile strikes against Syria — background and references","url":"https://en.wikipedia.org/wiki/April_2018_missile_strikes_against_Syria"}],"briefSource":{"title":"April 2018 missile strikes against Syria","url":"https://en.wikipedia.org/wiki/April_2018_missile_strikes_against_Syria","revision":1382099271,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q111383245","year":2023,"title":"Battle of Avdiivka (2023–2024)","place":"Avdiivka","region":"Europe","lat":48.13,"lon":37.77,"category":"War & conflict","article":"Battle_of_Avdiivka_(2023–2024)","body":"The Battle of Avdiivka was a major battle between the Russian and Ukrainian Armed Forces for control of Avdiivka, a city in Donetsk Oblast, during the Russo-Ukrainian war (2022–present). After more than a year and a half of intermittent fighting along the city's outskirts, Russian forces launched an offensive to capture Avdiivka on 10 October 2023, resulting in what was considered one of the bloodiest and fiercest battles of the war. Avdiivka was one of the most fortified settlements in Ukraine and had been described as a \\"gateway\\" to the nearby provincial capital of Donetsk.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q111383245","facts":[{"label":"Part of","value":"eastern front of the Russian invasion of Ukraine"},{"label":"End year","value":"2024"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q111383245"},{"title":"Battle of Avdiivka (2023–2024) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Avdiivka_(2023%E2%80%932024)"}],"briefSource":{"title":"Battle of Avdiivka (2023–2024)","url":"https://en.wikipedia.org/wiki/Battle_of_Avdiivka_(2023%E2%80%932024)","revision":1378237508,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q913818","year":-609,"title":"Battle of Megiddo (609 BC)","place":"Tel Megiddo","region":"Asia","lat":32.583,"lon":35.183,"category":"War & conflict","article":"Battle_of_Megiddo_(609_BC)","body":"This Battle of Megiddo is recorded as having taken place in 609 BC, when Pharaoh Necho II of Egypt led his army to Carchemish (northern Syria) to join with his allies, the fading Neo-Assyrian Empire, against the surging Neo-Babylonian Empire. This required passing through territory controlled by the Kingdom of Judah. The Judaean king Josiah refused to let the Egyptians pass. The Judaean forces battled the Egyptians at Megiddo, resulting in Josiah's death and his kingdom becoming a vassal state of Egypt.","approximate":true,"imageNote":"No verified historical image available","catalog":true,"qid":"Q913818","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q913818"},{"title":"Battle of Megiddo (609 BC) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Megiddo_(609_BC)"}],"briefSource":{"title":"Battle of Megiddo (609 BC)","url":"https://en.wikipedia.org/wiki/Battle_of_Megiddo_(609_BC)","revision":1383297528,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q633560","year":-605,"title":"Battle of Carchemish","place":"Carchemish","region":"Asia","lat":36.83,"lon":38.015,"category":"War & conflict","article":"Battle_of_Carchemish","body":"The Battle of Carchemish was a battle fought around 605 BCE between the armies of Egypt, allied with the remnants of the Neo-Assyrian Empire, against the armies of Babylonia. The forces would clash at Carchemish, an important military crossing and trade city on the banks of the Euphrates River in modern-day Syria. Nebuchadnezzar II was given command of this Babylonian force while Nabopolassar, his father and the king of Babylonia, was still in Babylon. Necho II, the king of Egypt, led the Egyptian and Assyrian forces in the battle.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q633560","facts":[{"label":"Part of","value":"Ancient Egypt"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q633560"},{"title":"Battle of Carchemish — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Carchemish"}],"briefSource":{"title":"Battle of Carchemish","url":"https://en.wikipedia.org/wiki/Battle_of_Carchemish","revision":1375979106,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q47299","year":-281,"title":"Battle of Corupedium","place":"Lydia","region":"Asia","lat":38.546,"lon":27.618,"category":"War & conflict","article":"Battle_of_Corupedium","body":"The Battle of Corupedium, also called Koroupedion, Corupedion or Curupedion (Ancient Greek: Κύρου πεδίον or Κόρου πεδίον, \\"the plain of Kyros or Koros\\") was the last battle between the Diadochi, the rival successors to Alexander the Great. It was fought in 281 BC between the armies of Lysimachus and Seleucus I Nicator. Lysimachus had ruled Thrace for decades and parts of western Asia Minor ever since the Battle of Ipsus. Recently he had finally gained control over Macedon.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q47299","facts":[{"label":"Part of","value":"Wars of the Diadochi"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q47299"},{"title":"Battle of Corupedium — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Corupedium"}],"briefSource":{"title":"Battle of Corupedium","url":"https://en.wikipedia.org/wiki/Battle_of_Corupedium","revision":1383177690,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q917376","year":-261,"title":"Battle of Agrigentum","place":"Agrigento","region":"Europe","lat":37.317,"lon":13.583,"category":"War & conflict","article":"Battle_of_Agrigentum","body":"The Battle of Agrigentum (Sicily, 262 BC) was the first pitched battle of the First Punic War and the first large-scale military confrontation between Carthage and the Roman Republic. The battle was fought after a long siege which started in 262 BC and resulted both in a Roman victory and the beginning of Roman control of Sicily.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q917376","facts":[{"label":"Part of","value":"First Punic War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q917376"},{"title":"Battle of Agrigentum — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Agrigentum"}],"briefSource":{"title":"Battle of Agrigentum","url":"https://en.wikipedia.org/wiki/Battle_of_Agrigentum","revision":1370431100,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q848056","year":-207,"title":"Battle of the Metaurus","place":"Metauro","region":"Europe","lat":43.782,"lon":13.015,"category":"War & conflict","article":"Battle_of_the_Metaurus","body":"The Battle of the Metaurus was a pivotal battle in the Second Punic War between Rome and Carthage, fought in 207 BC near the Metauro River in Italy. The Carthaginians were led by Hasdrubal Barca, brother of Hannibal, who was to have brought siege equipment and reinforcements for Hannibal. The Roman armies were led by the consuls Marcus Livius, who was later nicknamed the Salinator, and Gaius Claudius Nero. Claudius Nero had just fought Hannibal in Grumentum, some hundreds of kilometres south of the Metaurus river, and reached Marcus Livius by a forced march that went unnoticed by both Hannibal and Hasdrubal, so that the Carthaginians suddenly found themselves outnumbered.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q848056","facts":[{"label":"Part of","value":"Second Punic War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q848056"},{"title":"Battle of the Metaurus — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_the_Metaurus"}],"briefSource":{"title":"Battle of the Metaurus","url":"https://en.wikipedia.org/wiki/Battle_of_the_Metaurus","revision":1383791678,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q767848","year":324,"title":"Battle of Adrianople (324)","place":"Edirne","region":"Asia","lat":41.673,"lon":26.574,"category":"War & conflict","article":"Battle_of_Adrianople_(324)","body":"The Battle of Adrianople was fought in Thrace on July 3, 324, during a Roman civil war, the second to be waged between the two emperors Constantine I and Licinius. Licinius was soundly defeated and his army suffered heavy casualties. Constantine built up military momentum, winning further battles on land and sea, eventually leading to the final defeat of Licinius at Chrysopolis.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q767848","facts":[{"label":"Part of","value":"Civil Wars of the Tetrarchy"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q767848"},{"title":"Battle of Adrianople (324) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Adrianople_(324)"}],"briefSource":{"title":"Battle of Adrianople (324)","url":"https://en.wikipedia.org/wiki/Battle_of_Adrianople_(324)","revision":1370105935,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q595320","year":500,"title":"Battle of Badon","place":"United Kingdom","region":"Europe","lat":51.38,"lon":-2.36,"category":"War & conflict","article":"Battle_of_Badon","body":"The Battle of Badon, also known as the Battle of Mons Badonicus, was purportedly fought between Britons and Anglo-Saxons in Post-Roman Britain during the early 6th century. It was credited as a major victory for the Britons, stopping the westward encroachment of the Anglo-Saxon kingdoms for a period. The earliest known references to the battle, by the British cleric Gildas, was written c. 543–547. It is chiefly known today for the involvement of the man who would later be remembered as the legendary King Arthur.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q595320","facts":[{"label":"Part of","value":"Anglo-Saxon settlement of England"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q595320"},{"title":"Battle of Badon — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Badon"}],"briefSource":{"title":"Battle of Badon","url":"https://en.wikipedia.org/wiki/Battle_of_Badon","revision":1383171043,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q652320","year":721,"title":"Battle of Toulouse (721)","place":"Toulouse","region":"Europe","lat":43.604,"lon":1.443,"category":"War & conflict","article":"Battle_of_Toulouse_(721)","body":"The Battle of Toulouse (721) was a victory of an Aquitanian Christian army led by Odo the Great, Duke of Aquitaine over an Umayyad Muslim army besieging the city of Toulouse, led by al-Samh ibn Malik al-Khawlani, the Umayyad wāli (governor-general) of al-Andalus. The decisive Aquitanian victory checked the spread of Umayyad control westward from Narbonne into Aquitaine.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q652320","facts":[{"label":"Part of","value":"Umayyad invasion of Gaul"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q652320"},{"title":"Battle of Toulouse (721) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Toulouse_(721)"}],"briefSource":{"title":"Battle of Toulouse (721)","url":"https://en.wikipedia.org/wiki/Battle_of_Toulouse_(721)","revision":1377259839,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q283062","year":1266,"title":"Battle of Benevento","place":"Benevento","region":"Europe","lat":41.134,"lon":14.773,"category":"War & conflict","article":"Battle_of_Benevento","body":"The Battle of Benevento was a major medieval battle fought on 26 February 1266, near Benevento in present-day Southern Italy, between the forces of Charles I of Anjou and those of King Manfred of Sicily. Manfred's defeat and death resulted in Charles' conquest of the Kingdom of Sicily, effectively ending the rule of the Hohenstaufen dynasty in the Italian Peninsula and marking the rise of the royal Capetian House of Anjou. The engagement was part of the conflict which pitted Guelphs against Ghibellines.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q283062","facts":[{"label":"Part of","value":"Crusade against the Hohenstaufen"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q283062"},{"title":"Battle of Benevento — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Benevento"}],"briefSource":{"title":"Battle of Benevento","url":"https://en.wikipedia.org/wiki/Battle_of_Benevento","revision":1382319910,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q842796","year":1455,"title":"First Battle of St Albans","place":"St Albans","region":"Europe","lat":51.749,"lon":0.339,"category":"War & conflict","article":"First_Battle_of_St_Albans","body":"The First Battle of St Albans took place on 22 May 1455, at St Albans, 22 miles (35 km) north of London, and traditionally marks the beginning of the Wars of the Roses in England. Richard, Duke of York, and his allies, the Neville Earls of Salisbury and Warwick, defeated a royal army commanded by Edmund Beaufort, Duke of Somerset. Unusually, the battle was contested in the town of St Albans itself, with the bulk of the fighting taking place in the streets.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q842796","facts":[{"label":"Part of","value":"Wars of the Roses"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q842796"},{"title":"First Battle of St Albans — background and references","url":"https://en.wikipedia.org/wiki/First_Battle_of_St_Albans"}],"briefSource":{"title":"First Battle of St Albans","url":"https://en.wikipedia.org/wiki/First_Battle_of_St_Albans","revision":1372030876,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1428169","year":1471,"title":"Battle of Barnet","place":"Barnet","region":"Europe","lat":51.666,"lon":-0.199,"category":"War & conflict","article":"Battle_of_Barnet","body":"The Battle of Barnet was a decisive Yorkist victory in the Wars of the Roses, a dynastic conflict of 15th-century England. The military action, along with the subsequent Battle of Tewkesbury, secured the throne for Edward IV. On Sunday 14 April 1471, Easter Day, near Barnet, then a small Hertfordshire town north of London, Edward led the House of York in a fight against the House of Lancaster, which backed Henry VI for the throne.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1428169","facts":[{"label":"Part of","value":"Wars of the Roses"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1428169"},{"title":"Battle of Barnet — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Barnet"}],"briefSource":{"title":"Battle of Barnet","url":"https://en.wikipedia.org/wiki/Battle_of_Barnet","revision":1370107495,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q694379","year":1493,"title":"Battle of Krbava Field","place":"Krbavsko Plain","region":"Europe","lat":44.6,"lon":15.7,"category":"War & conflict","article":"Battle_of_Krbava_Field","body":"The Battle of Krbava Field (Croatian: Bitka na Krbavskom polju, Krbavska bitka; Hungarian: Korbávmezei csata; Turkish: Krbava Muharebesi) was fought between the Ottoman Empire of Bayezid II and an army of the Kingdom of Croatia, at the time in personal union with the Kingdom of Hungary, on 9 September 1493, in the Krbava field, a part of the Lika region in Croatia. The Ottoman forces were under the command of Hadım Yakup Pasha, sanjak-bey of the Sanjak of Bosnia, and the Croatian army was led by Emerik Derenčin, ban of Croatia, who served under King Vladislaus II Jagiello. Earlier in the summer of 1493, the Ottomans undertook a raid through Croatia into Carniola and Styria.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q694379","facts":[{"label":"Part of","value":"Ottoman Wars in Europe"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q694379"},{"title":"Battle of Krbava Field — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Krbava_Field"}],"briefSource":{"title":"Battle of Krbava Field","url":"https://en.wikipedia.org/wiki/Battle_of_Krbava_Field","revision":1370446255,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q349422","year":1560,"title":"Battle of Okehazama","place":"Okehazama","region":"Asia","lat":35.06,"lon":136.981,"category":"War & conflict","article":"Battle_of_Okehazama","body":"The Battle of Okehazama (桶狭間の戦い, Okehazama-no-tatakai) took place on 12 June 1560 in Owari Province, in today's Aichi Prefecture. In this battle, the heavily outnumbered Oda clan troops, commanded by Oda Nobunaga, defeated Imagawa Yoshimoto and established Oda as one of the front-running warlords in the Sengoku period.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q349422","facts":[{"label":"Part of","value":"Three Surprise Attacks of Japan"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q349422"},{"title":"Battle of Okehazama — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Okehazama"}],"briefSource":{"title":"Battle of Okehazama","url":"https://en.wikipedia.org/wiki/Battle_of_Okehazama","revision":1375316024,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q949724","year":1645,"title":"Battle of Naseby","place":"Naseby","region":"Europe","lat":52.397,"lon":-0.988,"category":"War & conflict","article":"Battle_of_Naseby","body":"The Battle of Naseby took place on 14 June 1645 during the First English Civil War, near the village of Naseby in Northamptonshire. The Parliamentarian New Model Army, commanded by Sir Thomas Fairfax and Oliver Cromwell, destroyed the main Royalist army under Charles I and Prince Rupert. The defeat ended any real hope of Royalist victory, although Charles did not finally surrender until May 1646. The 1645 campaign began in April when the newly formed New Model Army marched west to relieve Taunton, before being ordered back to lay siege to Oxford, the Royalist wartime capital.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q949724","facts":[{"label":"Part of","value":"English Civil War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q949724"},{"title":"Battle of Naseby — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Naseby"}],"briefSource":{"title":"Battle of Naseby","url":"https://en.wikipedia.org/wiki/Battle_of_Naseby","revision":1383177143,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q127299","year":1757,"title":"Battle of Kolín","place":"Kolín","region":"Europe","lat":50.029,"lon":15.122,"category":"War & conflict","article":"Battle_of_Kolín","body":"The Battle of Kolín (Kolin) on 18 June 1757 saw 54,000 Austrians under Count von Daun defeat 34,000 Prussians under Frederick the Great during the Third Silesian War (Seven Years' War). Prussian attempts to turn the Austrian right flank turned into piecemeal frontal attacks and were defeated in five and a half hours of combat. The Prussians lost 13,733 men, the Austrians 8,100. Frederick gave up the Siege of Prague as well as his planned march on Vienna and retreated to Saxony.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q127299","facts":[{"label":"Part of","value":"Seven Years' War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q127299"},{"title":"Battle of Kolín — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Kol%C3%ADn"}],"briefSource":{"title":"Battle of Kolín","url":"https://en.wikipedia.org/wiki/Battle_of_Kol%C3%ADn","revision":1382485758,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1132579","year":1777,"title":"Battle of Princeton","place":"Princeton Battlefield","region":"Americas","lat":40.33,"lon":-74.675,"category":"War & conflict","article":"Battle_of_Princeton","body":"The Battle of Princeton was a battle of the American Revolutionary War, fought near Princeton, New Jersey on January 3, 1777, and ending in a small victory for the Colonials. General Lord Cornwallis had left 1,400 British troops under the command of Lieutenant Colonel Charles Mawhood in Princeton. Following a surprise attack at Trenton early in the morning of December 26, 1776, General George Washington of the Continental Army decided to attack the British in New Jersey before entering the winter quarters.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1132579","facts":[{"label":"Part of","value":"American Revolutionary War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1132579"},{"title":"Battle of Princeton — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Princeton"}],"briefSource":{"title":"Battle of Princeton","url":"https://en.wikipedia.org/wiki/Battle_of_Princeton","revision":1379976177,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q678227","year":1794,"title":"Battle of Fleurus (1794)","place":"Fleurus","region":"Europe","lat":50.482,"lon":4.552,"category":"War & conflict","article":"Battle_of_Fleurus_(1794)","body":"The Battle of Fleurus was fought on 26 June 1794 during the War of the First Coalition between the French Revolutionary Army under Jean-Baptiste Jourdan and an Austro-Dutch army commanded by Prince Josias of Coburg. In what was the most significant battle of the Low Countries theatre of the War of the First Coalition, Jourdan's army was able to concentrate its forces and defeat Coburg and his troops. The Allied defeat led to the permanent loss of the Austrian Netherlands and to the dissolution of the Dutch Republic.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q678227","facts":[{"label":"Part of","value":"War of the First Coalition"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q678227"},{"title":"Battle of Fleurus (1794) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Fleurus_(1794)"}],"briefSource":{"title":"Battle of Fleurus (1794)","url":"https://en.wikipedia.org/wiki/Battle_of_Fleurus_(1794)","revision":1382123449,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q48202","year":1848,"title":"Battle of Custoza (1848)","place":"Verona","region":"Europe","lat":45.379,"lon":10.796,"category":"War & conflict","article":"Battle_of_Custoza_(1848)","body":"The First Battle of Custoza was fought on July 24 and 25, 1848, during the First Italian War of Independence between the armies of the Austrian Empire, commanded by Field Marshal Radetzky, and the Kingdom of Sardinia, led by King Charles Albert of Piedmont-Sardinia.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q48202","facts":[{"label":"Part of","value":"First Italian War of Independence"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q48202"},{"title":"Battle of Custoza (1848) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Custoza_(1848)"}],"briefSource":{"title":"Battle of Custoza (1848)","url":"https://en.wikipedia.org/wiki/Battle_of_Custoza_(1848)","revision":1382463378,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q681430","year":1859,"title":"Battle of Magenta","place":"Magenta","region":"Europe","lat":45.456,"lon":8.802,"category":"War & conflict","article":"Battle_of_Magenta","body":"The Battle of Magenta was fought on 4 June 1859 near the town of Magenta in the Kingdom of Lombardy–Venetia, a crown land of the Austrian Empire, during the Second Italian War of Independence. It resulted in a French-Sardinian victory under Napoleon III against the Austrians under Marshal Ferenc Gyulay. Napoleon III's army crossed the Ticino River and outflanked the Austrian right forcing the Austrian army under Gyulay to retreat. The confined nature of the country, a vast spread of orchards cut up by streams and irrigation canals, precluded elaborate manoeuvre.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q681430","facts":[{"label":"Part of","value":"Second Italian War of Independence"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q681430"},{"title":"Battle of Magenta — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Magenta"}],"briefSource":{"title":"Battle of Magenta","url":"https://en.wikipedia.org/wiki/Battle_of_Magenta","revision":1374525364,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1327790","year":1863,"title":"Battle of Chickamauga","place":"Catoosa County","region":"Americas","lat":34.918,"lon":-85.261,"category":"War & conflict","article":"Battle_of_Chickamauga","body":"The Battle of Chickamauga, fought on September 18–20, 1863, between the United States Army, or Union Army, and Confederate forces in the American Civil War, marked the end of a U.S. Army offensive, the Chickamauga Campaign, in southeastern Tennessee and northwestern Georgia. It was the first major battle of the war fought in Georgia and the most significant Union defeat in the Western Theater, and it involved the second-highest number of casualties after the Battle of Gettysburg.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1327790","facts":[{"label":"Part of","value":"American Civil War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1327790"},{"title":"Battle of Chickamauga — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Chickamauga"}],"briefSource":{"title":"Battle of Chickamauga","url":"https://en.wikipedia.org/wiki/Battle_of_Chickamauga","revision":1380714114,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q2604547","year":1870,"title":"Capture of Rome","place":"Rome","region":"Europe","lat":41.893,"lon":12.483,"category":"War & conflict","article":"Capture_of_Rome","body":"The capture of Rome (Italian: Presa di Roma) occurred on 20 September 1870, as forces of the Kingdom of Italy took control of the city and of the Papal States. After a plebiscite held on 2 October 1870, Rome was officially made capital of Italy on 3 February 1871, completing the unification of Italy (Risorgimento). The capture of Rome by the Royal Italian Army brought an end to the Papal States, which had existed since the Donation of Pepin in 756, along with the temporal power of the Holy See, and led to the establishment of Rome as the capital of unified Italy.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q2604547","facts":[{"label":"Part of","value":"Unification of Italy"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q2604547"},{"title":"Capture of Rome — background and references","url":"https://en.wikipedia.org/wiki/Capture_of_Rome"}],"briefSource":{"title":"Capture of Rome","url":"https://en.wikipedia.org/wiki/Capture_of_Rome","revision":1383363045,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1209946","year":1885,"title":"Third Anglo-Burmese War","place":"Myanmar","region":"Asia","lat":22,"lon":96,"category":"War & conflict","article":"Third_Anglo-Burmese_War","body":"The Third Anglo-Burmese War (Burmese: တတိယအင်္ဂလိပ်–မြန်မာစစ်, romanized: Tatiya Ingaleik–Myanma Sit), also known as the Third Burma War (7–29 November 1885, with sporadic resistance continuing into 1887), was the final of three wars fought in the 19th century between the Burmese and the British. The war saw the loss of sovereignty of an independent Burma under the Konbaung dynasty, whose rule had already been reduced to the territory known as Upper Burma, the region of Lower Burma having been annexed by the British in 1853, following the Second Anglo-Burmese War. Following the war, Burma came under the rule of the British Raj as one of its provinces.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1209946","facts":[{"label":"Part of","value":"Anglo-Burmese Wars"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1209946"},{"title":"Third Anglo-Burmese War — background and references","url":"https://en.wikipedia.org/wiki/Third_Anglo-Burmese_War"}],"briefSource":{"title":"Third Anglo-Burmese War","url":"https://en.wikipedia.org/wiki/Third_Anglo-Burmese_War","revision":1370750284,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q702377","year":1904,"title":"Battle of the Yellow Sea","place":"Yellow Sea","region":"Asia","lat":35,"lon":123,"category":"War & conflict","article":"Battle_of_the_Yellow_Sea","body":"The Battle of the Yellow Sea was a naval battle of the Russo-Japanese War, fought on 10 August 1904. In the Russian Navy, it was referred to as the Battle of 10 August. The battle foiled an attempt by the Russian fleet at Lüshunkou (Port Arthur) to break out and form up with the Vladivostok squadron, forcing them to return to port. Four days later, the Battle off Ulsan similarly ended the Vladivostok group's sortie, forcing both fleets to remain at anchor.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q702377","facts":[{"label":"Part of","value":"Russo-Japanese War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q702377"},{"title":"Battle of the Yellow Sea — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_the_Yellow_Sea"}],"briefSource":{"title":"Battle of the Yellow Sea","url":"https://en.wikipedia.org/wiki/Battle_of_the_Yellow_Sea","revision":1375165941,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q426099","year":1914,"title":"Siege of Antwerp (1914)","place":"Antwerp","region":"Europe","lat":51.22,"lon":4.41,"category":"War & conflict","article":"Siege_of_Antwerp_(1914)","body":"The siege of Antwerp was an engagement between the German and the Belgian, British and French armies around the fortified city of Antwerp during the First World War. German troops besieged a garrison of Belgian fortress troops, the Belgian field army and the British Royal Naval Division in the Antwerp area, after the German invasion of Belgium in August 1914. The city, which was ringed by forts known as the National Redoubt, was besieged to the south and east by German forces.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q426099","facts":[{"label":"Part of","value":"Western Front"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q426099"},{"title":"Siege of Antwerp (1914) — background and references","url":"https://en.wikipedia.org/wiki/Siege_of_Antwerp_(1914)"}],"briefSource":{"title":"Siege of Antwerp (1914)","url":"https://en.wikipedia.org/wiki/Siege_of_Antwerp_(1914)","revision":1379909087,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1859103","year":1918,"title":"Armeno-Georgian War","place":"Borchaly Uyezd","region":"Asia","lat":41.469,"lon":44.817,"category":"War & conflict","article":"Armeno-Georgian_War","body":"The Armeno-Georgian War was a short border dispute that was fought in December 1918 between the newly independent Democratic Republic of Georgia and the First Republic of Armenia, largely over the control of former districts of the Tiflis Governorate, in Borchaly (Lori) and Akhalkalaki. In May 1918, towards the end of World War I, Armenia and Georgia both declared their independence, dissolving the short-lived union between them. Both Georgia and Armenia claimed Lori and Akhalkalaki, both of which were populated primarily by Armenians.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1859103","facts":[{"label":"Part of","value":"aftermath of World War I"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1859103"},{"title":"Armeno-Georgian War — background and references","url":"https://en.wikipedia.org/wiki/Armeno-Georgian_War"}],"briefSource":{"title":"Armeno-Georgian War","url":"https://en.wikipedia.org/wiki/Armeno-Georgian_War","revision":1372639411,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q662947","year":1918,"title":"Second Battle of the Piave River","place":"Piave","region":"Asia","lat":45.529,"lon":12.728,"category":"War & conflict","article":"Second_Battle_of_the_Piave_River","body":"The Second Battle of the Piave River (or Battle of the Solstice), fought between 15 and 23 June 1918, was a decisive victory for the Italian Army against the Austro-Hungarian Empire during World War I, as Italy was part of the Allied Forces, while Austria-Hungary was part of the Central Powers. Though the battle proved to be a decisive blow to the Austro-Hungarian Empire and by extension the Central Powers, its full significance was not initially appreciated in Italy. Yet Erich Ludendorff, on hearing the news, is reported to have said he 'had the sensation of defeat for the first time'.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q662947","facts":[{"label":"Part of","value":"World War I"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q662947"},{"title":"Second Battle of the Piave River — background and references","url":"https://en.wikipedia.org/wiki/Second_Battle_of_the_Piave_River"}],"briefSource":{"title":"Second Battle of the Piave River","url":"https://en.wikipedia.org/wiki/Second_Battle_of_the_Piave_River","revision":1377736359,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1495944","year":1919,"title":"Polish–Lithuanian War","place":"Suwałki","region":"Europe","lat":54.1,"lon":22.933,"category":"War & conflict","article":"Polish–Lithuanian_War","body":"The Polish–Lithuanian War was an undeclared war fought in the aftermath of World War I between newly independent Lithuania and Poland, with fighting mainly in the Vilnius and Suwałki regions, which was part of the Lithuanian Wars of Independence and lasted from May 1919 to 29 November 1920. From the spring of 1920 onward, the conflict happened alongside the wider Polish–Soviet War and was affected by its progress. It was subject to unsuccessful international mediation at the Conference of Ambassadors and the League of Nations.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1495944","facts":[{"label":"Part of","value":"Lithuanian Wars of Independence"},{"label":"End year","value":"1920"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1495944"},{"title":"Polish–Lithuanian War — background and references","url":"https://en.wikipedia.org/wiki/Polish%E2%80%93Lithuanian_War"}],"briefSource":{"title":"Polish–Lithuanian War","url":"https://en.wikipedia.org/wiki/Polish%E2%80%93Lithuanian_War","revision":1383905594,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q700960","year":1943,"title":"Battle of Kiev (1943)","place":"Kyiv","region":"Europe","lat":50.45,"lon":30.524,"category":"War & conflict","article":"Battle_of_Kiev_(1943)","body":"The Second Battle of Kiev, known on the German side as the Defensive battle in the Kiev-Zhitomir area , was a part of a much wider Soviet offensive in Ukraine known as the Battle of the Dnieper involving three strategic operations by the Soviet Red Army and its Czechoslovak units and one operational counterattack by the Wehrmacht, which took place between 4 November and 22 December 1943. Following the Battle of Kursk, the Red Army launched the Belgorod-Kharkov Offensive Operation, pushing Army Group South (Erich von Manstein) back towards the Dnieper River. Stavka, the Soviet high command, ordered the Central Front and the Voronezh Front to force crossings of the Dnieper.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q700960","facts":[{"label":"Part of","value":"Eastern Front"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q700960"},{"title":"Battle of Kiev (1943) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Kiev_(1943)"}],"briefSource":{"title":"Battle of Kiev (1943)","url":"https://en.wikipedia.org/wiki/Battle_of_Kiev_(1943)","revision":1370445333,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q835881","year":1945,"title":"Operation Bodenplatte","place":"Belgium","region":"Europe","lat":50.641,"lon":4.668,"category":"War & conflict","article":"Operation_Bodenplatte","body":"Operation Bodenplatte , launched on 1 January 1945, was an attempt by the German Luftwaffe to cripple Allied air forces in the Low Countries during the Second World War. The goal of Bodenplatte was to gain air superiority during the stagnant stage of the Battle of the Bulge so that the German Army and Waffen-SS forces could resume their advance. The operation was planned for 16 December 1944, but was delayed repeatedly due to bad weather until New Year's Day, the first day that happened to be suitable.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q835881","facts":[{"label":"Part of","value":"Western Front"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q835881"},{"title":"Operation Bodenplatte — background and references","url":"https://en.wikipedia.org/wiki/Operation_Bodenplatte"}],"briefSource":{"title":"Operation Bodenplatte","url":"https://en.wikipedia.org/wiki/Operation_Bodenplatte","revision":1377486446,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q611071","year":1978,"title":"Chadian–Libyan War","place":"Chad","region":"Africa","lat":15.467,"lon":19.4,"category":"War & conflict","article":"Chadian–Libyan_War","body":"The Chadian–Libyan War was a series of military campaigns in Chad between 1978 and 1987, fought between Libya and its Chadian allies, and anti-Libyan Chadian groups supported by France, with the occasional involvement of other foreign countries and factions. Libya had been involved in Chad's internal affairs prior to 1978 and before Muammar Gaddafi's rise to power in Libya in 1969, beginning with the extension of the Chadian Civil War to northern Chad in 1968. The conflict was marked by a series of four separate Libyan interventions in Chad, taking place in 1978, 1979, 1980–1981 and 1983–1987.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q611071","facts":[{"label":"End year","value":"1987"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q611071"},{"title":"Chadian–Libyan War — background and references","url":"https://en.wikipedia.org/wiki/Chadian%E2%80%93Libyan_War"}],"briefSource":{"title":"Chadian–Libyan War","url":"https://en.wikipedia.org/wiki/Chadian%E2%80%93Libyan_War","revision":1384320200,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q427565","year":-494,"title":"Battle of Lade","place":"Representative location","region":"Asia","lat":37.55,"lon":27.1,"category":"War & conflict","article":"Battle_of_Lade","body":"The Battle of Lade (Ancient Greek: Ναυμαχία τῆς Λάδης, romanized: Naumachia tēs Ladēs) was a naval battle which occurred during the Ionian Revolt, in 494 BC. It was fought between an alliance of the Ionian cities (joined by the Lesbians) and the Persian Empire of Darius the Great, and resulted in a decisive victory for the Persians which all but ended the revolt.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q427565","facts":[{"label":"Part of","value":"Ionian Revolt"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q427565"},{"title":"Battle of Lade — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Lade"}],"briefSource":{"title":"Battle of Lade","url":"https://en.wikipedia.org/wiki/Battle_of_Lade","revision":1376435907,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1055755","year":-206,"title":"Battle of Ilipa","place":"Ilipa","region":"Europe","lat":37.518,"lon":-5.978,"category":"War & conflict","article":"Battle_of_Ilipa","body":"The Battle of Ilipa () was an engagement considered by many as Scipio Africanus's most brilliant victory in his military career during the Second Punic War in 206 BC. It may have taken place on a plain east of Alcalá del Río, Seville, Spain, near the village of Esquivel, the site of the Carthaginian camp. Though it may not seem to be as original as Hannibal's tactic at Cannae, Scipio's pre-battle maneuver and his reverse Cannae formation stands as the acme of his tactical ability, in which he permanently broke the Carthaginian grip and source of power in Iberia, thus denying any further land invasion into Italy and cutting off a rich base for the Barca dynasty both in silver and manpower.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1055755","facts":[{"label":"Part of","value":"Second Punic War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1055755"},{"title":"Battle of Ilipa — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Ilipa"}],"briefSource":{"title":"Battle of Ilipa","url":"https://en.wikipedia.org/wiki/Battle_of_Ilipa","revision":1375858433,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q971507","year":-47,"title":"Battle of Zela (47 BC)","place":"Zile","region":"Asia","lat":40.3,"lon":35.883,"category":"War & conflict","article":"Battle_of_Zela_(47_BC)","body":"The Battle of Zela was fought in 47 BC between Julius Caesar and Pharnaces II of the Kingdom of Pontus. The battle took place near Zela (modern Zile), which is now a small hilltop town in the Tokat province of northern Turkey. The battle ended the ambitions of king Pharnaces who wanted to expand his rule over Asia Minor. Following his swift victory, Caesar famously declared, Veni, Vidi, Vici (\\"I came, I saw, I conquered\\"), emphasizing the speed and decisiveness of his triumph.","approximate":true,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q971507","facts":[{"label":"Part of","value":"Caesar's Civil War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q971507"},{"title":"Battle of Zela (47 BC) — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Zela_(47_BC)"}],"briefSource":{"title":"Battle of Zela (47 BC)","url":"https://en.wikipedia.org/wiki/Battle_of_Zela_(47_BC)","revision":1370596555,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1421082","year":251,"title":"Battle of Abritus","place":"Dobruja","region":"Europe","lat":43.51,"lon":26.54,"category":"War & conflict","article":"Battle_of_Abritus","body":"The Battle of Abritus also known as the Battle of Forum Terebronii occurred near Abritus (modern Razgrad) in the Roman province of Moesia Inferior in the summer of 251. It was fought between the Romans and a federation of Gothic and Scythian tribesmen under the Gothic king Cniva. The Roman army was soundly defeated, and Roman emperors Decius and Herennius Etruscus, his son, were both killed in battle. It was one of the worst defeats suffered by the Roman Empire against the Germanic tribes, rated by the Roman historian Ammianus Marcellinus as on par with the Battle of the Teutoburg Forest in 9, the Marcomannic invasion of Roman Italy in 170, and the Battle of Adrianople in 378.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1421082","facts":[{"label":"Part of","value":"Gothic War of 248–253"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1421082"},{"title":"Battle of Abritus — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Abritus"}],"briefSource":{"title":"Battle of Abritus","url":"https://en.wikipedia.org/wiki/Battle_of_Abritus","revision":1370430805,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1367199","year":357,"title":"Battle of Strasbourg","place":"Argentoratum","region":"Europe","lat":48.583,"lon":7.751,"category":"War & conflict","article":"Battle_of_Strasbourg","body":"The Battle of Strasbourg, also known as the Battle of Argentoratum, was fought in 357 between the Western Roman army under Julian and the Alamanni tribal confederation led by the joint paramount King Chnodomar. The battle took place near Strasbourg, called Argentoratum in Ammianus Marcellinus' account, Argentorate in the Tabula Peutingeriana (section 2). Although possibly outnumbered, the Roman army won a decisive victory after a hard-fought struggle with the Alamanni. With negligible casualties of their own, the Romans drove the Alamanni beyond the river, inflicting heavy losses.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q1367199","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1367199"},{"title":"Battle of Strasbourg — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Strasbourg"}],"briefSource":{"title":"Battle of Strasbourg","url":"https://en.wikipedia.org/wiki/Battle_of_Strasbourg","revision":1373659147,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q2456292","year":632,"title":"Battle of al-Yamama","place":"Al-Yamama","region":"Asia","lat":24.887,"lon":46.457,"category":"War & conflict","article":"Battle_of_al-Yamama","body":"The Battle of al-Yamama was fought in December 632 as part of the Ridda Wars against a rebellion within the Rashidun Caliphate in the region of al-Yamama (in present-day Saudi Arabia, south of Riyadh) between the forces of Abu Bakr and Musaylima, a self-proclaimed prophet. The multi-pronged battle took place on the plain of Aqraba and ended in a walled garden known as the \\"Garden of Death\\" .","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q2456292","facts":[{"label":"Part of","value":"Ridda Wars"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q2456292"},{"title":"Battle of al-Yamama — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_al-Yamama"}],"briefSource":{"title":"Battle of al-Yamama","url":"https://en.wikipedia.org/wiki/Battle_of_al-Yamama","revision":1381567456,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q639827","year":634,"title":"Siege of Damascus (634)","place":"Damascus","region":"Asia","lat":33.513,"lon":36.292,"category":"War & conflict","article":"Siege_of_Damascus_(634)","body":"The siege of Damascus (634) lasted from 21 August to 19 September 634 before the city fell to the Rashidun Caliphate. Damascus was the first major city of the Eastern Roman Empire to fall in the Muslim conquest of Syria. The last of the Roman–Persian Wars ended in 628, after Heraclius concluded a successful campaign against the Persians in Mesopotamia. At the same time, Muhammad united the Arabs under the banner of Islam. After his death in 632, Abu Bakr succeeded him as the first caliph.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q639827","facts":[{"label":"Part of","value":"Muslim conquest of the Levant"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q639827"},{"title":"Siege of Damascus (634) — background and references","url":"https://en.wikipedia.org/wiki/Siege_of_Damascus_(634)"}],"briefSource":{"title":"Siege of Damascus (634)","url":"https://en.wikipedia.org/wiki/Siege_of_Damascus_(634)","revision":1381443455,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q2305651","year":878,"title":"Battle of Edington","place":"Edington","region":"Europe","lat":51.44,"lon":-2.242,"category":"War & conflict","article":"Battle_of_Edington","body":"The Battle of Edington or Battle of Ethandun was fought in May 878 between the West Saxon army of King Alfred the Great and the Great Heathen Army led by the Danish warlord Guthrum. The battle took place near Edington in Wiltshire, where Alfred secured a decisive victory that halted the Viking advance into Wessex. The engagement followed a period of sustained Danish incursions into Anglo-Saxon territory. In early 878, Guthrum launched a surprise attack on Chippenham, forcing Alfred into hiding in the marshes of Athelney.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q2305651","facts":[{"label":"Part of","value":"Viking activity in the British Isles"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q2305651"},{"title":"Battle of Edington — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Edington"}],"briefSource":{"title":"Battle of Edington","url":"https://en.wikipedia.org/wiki/Battle_of_Edington","revision":1370109999,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q830878","year":1030,"title":"Battle of Stiklestad","place":"Stiklestad","region":"Europe","lat":63.797,"lon":11.567,"category":"War & conflict","article":"Battle_of_Stiklestad","body":"The Battle of Stiklestad (Norwegian: Slaget på Stiklestad; Old Norse: Stiklastaðaorrusta) in 1030 is one of the most famous battles in the history of Norway. In this battle, King Olaf II of Norway was killed. During the pontificate of Pope Alexander III, the Roman Catholic Church declared Olaf a saint in 1164. His younger half-brother, Harald Hardrada, was also present at the battle. Harald was only fifteen when the battle of Stiklestad took place. He became King of Norway in 1047, until his death in a failed invasion of England at the Battle of Stamford Bridge in 1066.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q830878","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q830878"},{"title":"Battle of Stiklestad — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Stiklestad"}],"briefSource":{"title":"Battle of Stiklestad","url":"https://en.wikipedia.org/wiki/Battle_of_Stiklestad","revision":1379001418,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q622184","year":1119,"title":"Battle of the Field of Blood","place":"Sarmada","region":"Asia","lat":36.179,"lon":36.719,"category":"War & conflict","article":"Battle_of_the_Field_of_Blood","body":"Battle of the Field of Blood, also known in Latin as Battle of Ager Sanguinis, and in Arabic as Battle of al-Balat, was a battle where Roger of Salerno's Crusader army of the Principality of Antioch was annihilated by the army of Ilghazi of Mardin, the Artuqid ruler of Aleppo on 28 June 1119.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q622184","facts":[{"label":"Part of","value":"Crusader battles between 1101 and 1145"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q622184"},{"title":"Battle of the Field of Blood — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_the_Field_of_Blood"}],"briefSource":{"title":"Battle of the Field of Blood","url":"https://en.wikipedia.org/wiki/Battle_of_the_Field_of_Blood","revision":1383000602,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q3849563","year":1244,"title":"Siege of Jerusalem (1244)","place":"Jerusalem","region":"Asia","lat":31.783,"lon":35.217,"category":"War & conflict","article":"Siege_of_Jerusalem_(1244)","body":"A Khwarazmian army captured Jerusalem in 1244, ending the renewed period of Christian control that had followed the diplomatic settlement of the Sixth Crusade. The city’s loss was part of a wider struggle among regional rulers and crusader states in the eastern Mediterranean. It demonstrated how fragile control obtained through negotiation could be when military alliances shifted. The milestone marks the conquest of Jerusalem itself, rather than the whole regional campaign.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q3849563","facts":[{"label":"Part of","value":"Crusades"}],"sources":[{"title":"Siege of Jerusalem (1244) — background and references","url":"https://en.wikipedia.org/wiki/Siege_of_Jerusalem_(1244)"},{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q3849563"}],"editorial":true},{"id":"event-q326989","year":1315,"title":"Battle of Morgarten","place":"Oberägeri","region":"Europe","lat":47.09,"lon":8.633,"category":"War & conflict","article":"Battle_of_Morgarten","body":"The Battle of Morgarten took place on 15 November 1315, when troops of Schwyz, supported by their allies of Uri and Unterwalden, ambushed an Austrian army under the command of Leopold I, Duke of Austria on the shores of Lake Ägeri, in the territory of Schwyz. After a brief close-quarters battle, the Austrian army was routed, with numerous slain or drowned. The Swiss victory consolidated the League of the Three Forest Cantons, which formed the core of the Old Swiss Confederacy.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q326989","facts":[{"label":"Part of","value":"War between Switzerland and the House of Habsburg"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q326989"},{"title":"Battle of Morgarten — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Morgarten"}],"briefSource":{"title":"Battle of Morgarten","url":"https://en.wikipedia.org/wiki/Battle_of_Morgarten","revision":1370450499,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q700886","year":1422,"title":"Siege of Constantinople (1422)","place":"Constantinople","region":"Asia","lat":41.012,"lon":28.976,"category":"War & conflict","article":"Siege_of_Constantinople_(1422)","body":"In 1422, the Ottoman Empire laid siege to Constantinople, the capital of the Byzantine Empire, as a result of the Byzantine Emperor Manuel II's attempts to interfere in the succession of Ottoman Sultans, after the death of Mehmed I in 1421. This policy of the Byzantines was often used successfully in weakening their neighbours. When Murad II emerged as the winning successor to his father, he marched into Byzantine territory. The Turks had acquired their own cannon for the first time by the siege of 1422, \\"falcons\\", which were short but wide cannons.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q700886","facts":[{"label":"Part of","value":"Byzantine–Ottoman War of 1421–1424"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q700886"},{"title":"Siege of Constantinople (1422) — background and references","url":"https://en.wikipedia.org/wiki/Siege_of_Constantinople_(1422)"}],"briefSource":{"title":"Siege of Constantinople (1422)","url":"https://en.wikipedia.org/wiki/Siege_of_Constantinople_(1422)","revision":1376674680,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1207310","year":1514,"title":"Battle of Orsha","place":"Vorsha","region":"Europe","lat":54.5,"lon":30.383,"category":"War & conflict","article":"Battle_of_Orsha","body":"The Battle of Orsha (Belarusian: Bitva pad Voršaj, Polish: Bitwa pod Orszą, Lithuanian: Oršos mūšis), was fought on 8 September 1514, between the allied forces of the Grand Duchy of Lithuania and the Crown of the Kingdom of Poland, under the command of Lithuanian Grand Hetman Konstanty Ostrogski; and the army of the Grand Duchy of Moscow under Konyushy Ivan Chelyadnin and Kniaz Mikhail Bulgakov-Golitsa. The Battle of Orsha was part of a long series of Muscovite–Lithuanian Wars conducted by Muscovite rulers striving to gather all the former Kievan Rus' lands under their rule. According to Rerum Moscoviticarum Commentarii by Sigismund von Herberstein, the primary source for information on the battle, the much smaller army of Lithuania–Poland (under 30,000 men) defeated a force of 80,000 Muscovite soldiers, capturing their camp and commander.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1207310","facts":[{"label":"Part of","value":"Muscovite-Lithuanian War of 1512-1522"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1207310"},{"title":"Battle of Orsha — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Orsha"}],"briefSource":{"title":"Battle of Orsha","url":"https://en.wikipedia.org/wiki/Battle_of_Orsha","revision":1375028492,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q151663","year":1520,"title":"Revolt of the Comuneros","place":"Crown of Castile","region":"Europe","lat":40.418,"lon":-3.715,"category":"War & conflict","article":"Revolt_of_the_Comuneros","body":"The Revolt of the Comuneros (Spanish: Guerra de las Comunidades de Castilla, \\"War of the Communities of Castile\\") was an uprising by citizens of Castile against the rule of Charles I and his administration between 1520 and 1521. At its height, the rebels controlled the heart of Castile, ruling the cities of Valladolid, Tordesillas, and Toledo. The revolt occurred in the wake of political instability in the Crown of Castile after the death of Queen Isabella I in 1504.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q151663","facts":[{"label":"End year","value":"1522"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q151663"},{"title":"Revolt of the Comuneros — background and references","url":"https://en.wikipedia.org/wiki/Revolt_of_the_Comuneros"}],"briefSource":{"title":"Revolt of the Comuneros","url":"https://en.wikipedia.org/wiki/Revolt_of_the_Comuneros","revision":1373631495,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q661327","year":1547,"title":"Battle of Mühlberg","place":"Mühlberg/Elbe","region":"Europe","lat":51.433,"lon":13.217,"category":"War & conflict","article":"Battle_of_Mühlberg","body":"The Battle of Mühlberg took place near Mühlberg in the Electorate of Saxony in 1547, during the Schmalkaldic War. The Catholic princes of the Holy Roman Empire led by the Holy Roman Emperor Charles V decisively defeated the Lutheran Schmalkaldic League of Protestant princes under the command of Elector John Frederick I of Saxony and Landgrave Philip I of Hesse. The battle ended the Schmalkaldic war and led to the dissolution of the Schmalkaldic League.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q661327","facts":[{"label":"Part of","value":"Schmalkaldic War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q661327"},{"title":"Battle of Mühlberg — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_M%C3%BChlberg"}],"briefSource":{"title":"Battle of Mühlberg","url":"https://en.wikipedia.org/wiki/Battle_of_M%C3%BChlberg","revision":1370270406,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q313435","year":1757,"title":"Battle of Leuthen","place":"Lutynia","region":"Europe","lat":51.152,"lon":16.753,"category":"War & conflict","article":"Battle_of_Leuthen","body":"The Battle of Leuthen was fought on 5 December 1757 between Frederick the Great's Prussian Army and an Austrian army commanded by Prince Charles of Lorraine and Count Leopold Joseph von Daun. Frederick used maneuver warfare and knowledge of the terrain to rout the larger Austrian force completely. The victory ensured Prussian control of Silesia during the Third Silesian War, which was part of the Seven Years' War. The battle was fought in and around the town of Leuthen (now Lutynia, Poland), 10 km (6 mi) northwest of Breslau, (now Wrocław, Poland), in Prussian (formerly Austrian) Silesia.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q313435","facts":[{"label":"Part of","value":"Seven Years' War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q313435"},{"title":"Battle of Leuthen — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Leuthen"}],"briefSource":{"title":"Battle of Leuthen","url":"https://en.wikipedia.org/wiki/Battle_of_Leuthen","revision":1382485791,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q663405","year":1758,"title":"Battle of Zorndorf","place":"Sarbinowo, Gmina Dębno","region":"Europe","lat":52.672,"lon":14.654,"category":"War & conflict","article":"Battle_of_Zorndorf","body":"The Battle of Zorndorf, during the Seven Years' War, was fought on 25 August 1758 between Russian troops commanded by Count William Fermor and a Prussian army commanded by King Frederick the Great. The battle was tactically inconclusive, with both armies holding their ground and claiming victory. The site of the battle was the Prussian village of Zorndorf (now Sarbinowo, Poland). During the battle, Frederick famously took a regimental standard and led an attack himself, rallying his troops.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q663405","facts":[{"label":"Part of","value":"Seven Years' War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q663405"},{"title":"Battle of Zorndorf — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Zorndorf"}],"briefSource":{"title":"Battle of Zorndorf","url":"https://en.wikipedia.org/wiki/Battle_of_Zorndorf","revision":1381266643,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q301487","year":1777,"title":"Battle of Brandywine","place":"Chadds Ford Township","region":"Americas","lat":39.875,"lon":-75.554,"category":"War & conflict","article":"Battle_of_Brandywine","body":"The Battle of Brandywine, also known as the Battle of Brandywine Creek, was fought between the American Continental Army of General George Washington and the British Army of General Sir William Howe on September 11, 1777, as part of the American Revolutionary War (1775–1783). The forces met near Chadds Ford, Pennsylvania. More troops fought at Brandywine than at any other battle of the American Revolution. It was also the second longest single-day battle of the war, after the Battle of Monmouth, with continuous fighting for 11 hours.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q301487","facts":[{"label":"Part of","value":"American Revolutionary War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q301487"},{"title":"Battle of Brandywine — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Brandywine"}],"briefSource":{"title":"Battle of Brandywine","url":"https://en.wikipedia.org/wiki/Battle_of_Brandywine","revision":1381613996,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q2309898","year":1788,"title":"Battle of Karánsebes","place":"Caransebeș","region":"Europe","lat":45.421,"lon":22.222,"category":"War & conflict","article":"Battle_of_Karánsebes","body":"The Battle of Karánsebes was a friendly fire incident in the Austrian army, occurring during the night of 21–22 September 1788, during the Austro-Turkish War of 1788–1791. Some historians have referred to the battle as \\"history's worst friendly fire incident\\".","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q2309898","facts":[{"label":"Part of","value":"Austro-Turkish War of 1788–1791"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q2309898"},{"title":"Battle of Karánsebes — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Kar%C3%A1nsebes"}],"briefSource":{"title":"Battle of Karánsebes","url":"https://en.wikipedia.org/wiki/Battle_of_Kar%C3%A1nsebes","revision":1382610627,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q855429","year":1815,"title":"Battle of Ligny","place":"Ligny","region":"Europe","lat":50.512,"lon":4.575,"category":"War & conflict","article":"Battle_of_Ligny","body":"The Battle of Ligny, in which French troops of the Armée du Nord under the command of Napoleon I defeated part of a Prussian army under Field Marshal Blücher, was fought on 16 June 1815 near Ligny in what is now Belgium. The result was a tactical victory for the French, but the bulk of the Prussian army survived the battle in good order, was reinforced by Prussian troops who had not fought at Ligny, and played a role two days later at the Battle of Waterloo. Ligny was the last victory in Napoleon's military career.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q855429","facts":[{"label":"Part of","value":"Hundred Days"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q855429"},{"title":"Battle of Ligny — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Ligny"}],"briefSource":{"title":"Battle of Ligny","url":"https://en.wikipedia.org/wiki/Battle_of_Ligny","revision":1371153023,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q757870","year":1854,"title":"Charge of the Light Brigade","place":"Balaklava","region":"Europe","lat":44.538,"lon":33.624,"category":"War & conflict","article":"Charge_of_the_Light_Brigade","body":"The Charge of the Light Brigade was a military action undertaken by British light cavalry against Russian forces during the Battle of Balaclava in the Crimean War, resulting in many casualties to the cavalry. On 25 October 1854, the Light Brigade, led by Lord Cardigan, mounted a frontal assault against a Russian artillery battery which was well-prepared with excellent fields of defensive fire. The charge was the result of a misunderstood order from the commander-in-chief, Lord Raglan, who had intended the Light Brigade to attack a different objective for which light cavalry was better suited, to prevent the Russians from removing captured guns from overrun Turkish positions.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q757870","facts":[{"label":"Part of","value":"Battle of Balaclava"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q757870"},{"title":"Charge of the Light Brigade — background and references","url":"https://en.wikipedia.org/wiki/Charge_of_the_Light_Brigade"}],"briefSource":{"title":"Charge of the Light Brigade","url":"https://en.wikipedia.org/wiki/Charge_of_the_Light_Brigade","revision":1380693685,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q331377","year":1854,"title":"Bleeding Kansas","place":"Kansas","region":"Americas","lat":38.5,"lon":-98,"category":"War & conflict","article":"Bleeding_Kansas","body":"Bleeding Kansas, Bloody Kansas, or the Border War, was a series of violent civil confrontations in the Kansas Territory, and to a lesser extent in western Missouri, between 1854 and 1859. It emerged from a political and ideological debate over whether slavery should be permitted in the proposed state of Kansas. The conflict was characterized by years of electoral fraud, raids, assaults, and murders carried out in the Kansas Territory and neighboring Missouri by proslavery border ruffians and retaliatory raids carried out by antislavery free-staters. 56 political killings were documented during the period, and the total may be as high as 200.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q331377","facts":[{"label":"Part of","value":"timeline of events leading to the American Civil War"},{"label":"End year","value":"1861"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q331377"},{"title":"Bleeding Kansas — background and references","url":"https://en.wikipedia.org/wiki/Bleeding_Kansas"}],"briefSource":{"title":"Bleeding Kansas","url":"https://en.wikipedia.org/wiki/Bleeding_Kansas","revision":1384357765,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q220497","year":1863,"title":"New York City draft riots","place":"Representative location","region":"Asia","lat":40.717,"lon":-74,"category":"War & conflict","article":"New_York_City_draft_riots","body":"The New York City draft riots (July 13–16, 1863), sometimes referred to as the Manhattan draft riots and known at the time as Draft Week, were violent disturbances in Lower Manhattan, widely regarded as the culmination of working-class discontent with new laws passed by Congress that year to draft men to fight in the ongoing American Civil War. The protests turned into a race riot against African Americans by Irish American rioters. President Abraham Lincoln diverted several regiments of militia and volunteer troops after the Battle of Gettysburg to control the city.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q220497","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q220497"},{"title":"New York City draft riots — background and references","url":"https://en.wikipedia.org/wiki/New_York_City_draft_riots"}],"briefSource":{"title":"New York City draft riots","url":"https://en.wikipedia.org/wiki/New_York_City_draft_riots","revision":1382364033,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q145588","year":1914,"title":"Battle of Gumbinnen","place":"Gusev","region":"Europe","lat":54.6,"lon":22.2,"category":"War & conflict","article":"Battle_of_Gumbinnen","body":"The Battle of Gumbinnen, initiated by forces of the German Empire on 20 August 1914, was a German offensive on the Eastern Front during the First World War. Because of the hastiness of the German attack, the Russian Army emerged victorious.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q145588","facts":[{"label":"Part of","value":"WWI Eastern Front"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q145588"},{"title":"Battle of Gumbinnen — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Gumbinnen"}],"briefSource":{"title":"Battle of Gumbinnen","url":"https://en.wikipedia.org/wiki/Battle_of_Gumbinnen","revision":1380801480,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q252298","year":1918,"title":"Hungarian–Romanian War","place":"Hungary","region":"Europe","lat":47,"lon":19,"category":"War & conflict","article":"Hungarian–Romanian_War","body":"The Hungarian–Romanian War (Hungarian: magyar–román háború; Romanian: războiul româno-ungar) was fought between Hungary and Romania from 13 November 1918 to 3 August 1919. The conflict had a complex background, with often contradictory motivations for the parties involved. Compared with the vast mobilizations of the First World War, both sides fielded remarkably small armies, and the proportion of deaths remained extraordinarily low throughout the fighting: During the entire nine-month campaign cost the Romanians just 3,670 killed, meanwhile Hungarian KIA is widely estimated between 2.000 to 6.000 soldiers.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q252298","facts":[{"label":"Part of","value":"Revolutions and interventions in Hungary"},{"label":"End year","value":"1920"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q252298"},{"title":"Hungarian–Romanian War — background and references","url":"https://en.wikipedia.org/wiki/Hungarian%E2%80%93Romanian_War"}],"briefSource":{"title":"Hungarian–Romanian War","url":"https://en.wikipedia.org/wiki/Hungarian%E2%80%93Romanian_War","revision":1382091162,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q994316","year":1920,"title":"Battle of Maysalun","place":"Maysalun","region":"Asia","lat":33.596,"lon":36.065,"category":"War & conflict","article":"Battle_of_Maysalun","body":"The Battle of Maysalun , also known as the Battle of Maysalun Pass or the Battle of Khan Maysalun , was a four-hour battle fought between the forces of the Arab Kingdom of Syria and the French Army of the Levant on 24 July 1920 near Maysalun in the Anti-Lebanon Mountains, about 25 kilometres (16 mi) west of Damascus. In October 1918, Arab rebels, under Hashemite Emir Faisal, captured Damascus during the British-backed Arab Revolt against the Ottoman Empire. Faisal then formed a government under the auspices of the Allied military occupation administration of \\"OETA East\\", consistent with an earlier Anglo-French agreement.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q994316","facts":[{"label":"Part of","value":"Franco-Syrian War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q994316"},{"title":"Battle of Maysalun — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Maysalun"}],"briefSource":{"title":"Battle of Maysalun","url":"https://en.wikipedia.org/wiki/Battle_of_Maysalun","revision":1370449372,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q515545","year":1932,"title":"January 28 incident","place":"Shanghai International Settlement","region":"Asia","lat":31.17,"lon":121.47,"category":"War & conflict","article":"January_28_incident","body":"The January 28 incident or Shanghai incident (January 28 – March 3, 1932) was a conflict between the Republic of China and the Empire of Japan. In apparent response to a mob attack on Japanese Buddhist monks, the Japanese in Shanghai rioted and burned down a factory, killing two Chinese. Heavy fighting broke out, and China appealed to the League of Nations. A truce was finally reached on May 5, calling for Chinese military withdrawal, and an end to Chinese boycotts of Japanese products.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q515545","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q515545"},{"title":"January 28 incident — background and references","url":"https://en.wikipedia.org/wiki/January_28_incident"}],"briefSource":{"title":"January 28 incident","url":"https://en.wikipedia.org/wiki/January_28_incident","revision":1374151845,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1066650","year":1942,"title":"Battle of Los Angeles","place":"Los Angeles","region":"Americas","lat":34.052,"lon":-118.244,"category":"War & conflict","article":"Battle_of_Los_Angeles","body":"The Battle of Los Angeles, also known as the Great Los Angeles Air Raid, is the name given by contemporary sources to a rumored attack on the continental United States by Imperial Japan and the subsequent anti-aircraft artillery barrage which took place from late February 24, to early February 25, 1942, over Los Angeles, California. Five civilians died during the barrage and four Japanese aircraft were erroneously reported shot down. The incident occurred less than three months after the U.S. entered World War II in response to the Imperial Japanese Navy's surprise attack on Pearl Harbor, and one day after the bombardment of Ellwood near Santa Barbara on 23 February.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1066650","facts":[{"label":"Part of","value":"World War II"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1066650"},{"title":"Battle of Los Angeles — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Los_Angeles"}],"briefSource":{"title":"Battle of Los Angeles","url":"https://en.wikipedia.org/wiki/Battle_of_Los_Angeles","revision":1384503373,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q582953","year":1944,"title":"Battle of Debrecen","place":"Nyíregyháza","region":"Europe","lat":47.53,"lon":21.639,"category":"War & conflict","article":"Battle_of_Debrecen","body":"The Battle of Debrecen, called by the Red Army the Debrecen Offensive Operation, was a battle taking place from 6 to 29 October 1944 on the Eastern Front in Hungary during World War II. The offensive was conducted by the 2nd Ukrainian Front under Marshal Rodion Malinovsky. It was opposed by General Maximilian Fretter-Pico's German Sixth Army (II formation) and the allied Hungarian VII Army Corps of Army Group South Ukraine The German and Hungarian units were forced to retreat some 160 km and opposed the 2nd Ukrainian Front, which had Debrecen as its strategic objective.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q582953","facts":[{"label":"Part of","value":"Eastern Front"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q582953"},{"title":"Battle of Debrecen — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Debrecen"}],"briefSource":{"title":"Battle of Debrecen","url":"https://en.wikipedia.org/wiki/Battle_of_Debrecen","revision":1376902739,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q700710","year":1944,"title":"Battle of Villers-Bocage","place":"Villers-Bocage","region":"Europe","lat":49.079,"lon":-0.656,"category":"War & conflict","article":"Battle_of_Villers-Bocage","body":"The Battle of Villers-Bocage took place during the Second World War on 13 June 1944, one week after the Normandy landings, which had begun the Western Allies' conquest of German-occupied France. The battle was the result of a British attempt to exploit a gap in the German defences west of the city of Caen. After one day of fighting in and around the small town of Villers-Bocage and a second day defending a position outside the town, the British force retreated.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q700710","facts":[{"label":"Part of","value":"World War II"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q700710"},{"title":"Battle of Villers-Bocage — background and references","url":"https://en.wikipedia.org/wiki/Battle_of_Villers-Bocage"}],"briefSource":{"title":"Battle of Villers-Bocage","url":"https://en.wikipedia.org/wiki/Battle_of_Villers-Bocage","revision":1384126469,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q18164062","year":1974,"title":"Gombe Chimpanzee War","place":"Gombe National Park","region":"Africa","lat":-4.667,"lon":29.633,"category":"War & conflict","article":"Gombe_Chimpanzee_War","body":"The Gombe Chimpanzee War, also known as the Four-Year War, was a violent conflict between two communities of chimpanzees in Gombe Stream National Park in the Kigoma region of Tanzania between 1974 and 1978. The two groups were once unified in the Kasakela community. By 1974, researcher Jane Goodall noticed the community splintering. Over a span of eight months, a large party of chimpanzees separated themselves into the southern area of Kasakela and were renamed the Kahama community.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q18164062","facts":[{"label":"End year","value":"1978"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q18164062"},{"title":"Gombe Chimpanzee War — background and references","url":"https://en.wikipedia.org/wiki/Gombe_Chimpanzee_War"}],"briefSource":{"title":"Gombe Chimpanzee War","url":"https://en.wikipedia.org/wiki/Gombe_Chimpanzee_War","revision":1376491699,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q3504310","year":1984,"title":"1984 anti-Sikh riots","place":"Punjab","region":"Asia","lat":28.667,"lon":77.217,"category":"War & conflict","article":"1984_anti-Sikh_riots","body":"The 1984 anti-Sikh riots, also known as the 1984 Sikh massacre, were a series of organised pogroms against Sikhs in India following the assassination of Indira Gandhi by her Sikh bodyguards. Government estimates were that about 2,800 Sikhs were killed in Delhi and 3,350 nationwide, whilst other sources estimate the number of deaths at about 8,000–17,000. The assassination of Indira Gandhi had taken place after she had ordered Operation Blue Star, a military action in June 1984 to secure the Golden Temple, a Sikh temple complex in Amritsar, Punjab, which is one of the holiest sites in Sikhism.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q3504310","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q3504310"},{"title":"1984 anti-Sikh riots — background and references","url":"https://en.wikipedia.org/wiki/1984_anti-Sikh_riots"}],"briefSource":{"title":"1984 anti-Sikh riots","url":"https://en.wikipedia.org/wiki/1984_anti-Sikh_riots","revision":1383062260,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1747156","year":2002,"title":"2002 Gujarat violence","place":"Gujarat","region":"Asia","lat":23.22,"lon":69.655,"category":"War & conflict","article":"2002_Gujarat_violence","body":"On 28 February 2002, a three-day period of inter-communal violence began in the western Indian state of Gujarat. The burning of a train in Godhra the day before, which caused the deaths of 58 Hindu pilgrims and karsevaks (religious volunteers) returning from Ayodhya, is cited as having instigated the violence. Following the initial violence, further outbreaks occurred in Ahmedabad for three months; statewide, even further outbreaks of violence against the minority Muslim population of Gujarat continued for the next year.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1747156","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1747156"},{"title":"2002 Gujarat violence — background and references","url":"https://en.wikipedia.org/wiki/2002_Gujarat_violence"}],"briefSource":{"title":"2002 Gujarat violence","url":"https://en.wikipedia.org/wiki/2002_Gujarat_violence","revision":1383057409,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q61896704","year":2019,"title":"2019 India–Pakistan border skirmishes","place":"Kashmir","region":"Asia","lat":34.463,"lon":73.319,"category":"War & conflict","article":"2019_India–Pakistan_border_skirmishes","body":"In the aftermath of the Pulwama attack on 14 February 2019, a standoff emerged between India and Pakistan consisting of cross-border airstrikes and exchanges of gunfire between India and Pakistan across the de facto border in the disputed Kashmir region, which is subject to extensive territorial claims by both countries. The Pulwama attack in Jammu and Kashmir had killed 40 Indian Central Reserve Police Force personnel. Responsibility for the attack was claimed by a Pakistan-based militant group, Jaish-e-Mohammed.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q61896704","facts":[{"label":"Part of","value":"Indo-Pakistani wars and conflicts"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q61896704"},{"title":"2019 India–Pakistan border skirmishes — background and references","url":"https://en.wikipedia.org/wiki/2019_India%E2%80%93Pakistan_border_skirmishes"}],"briefSource":{"title":"2019 India–Pakistan border skirmishes","url":"https://en.wikipedia.org/wiki/2019_India%E2%80%93Pakistan_border_skirmishes","revision":1378811353,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q130388076","year":2024,"title":"2024 Lebanon war","place":"Southern Lebanon","region":"Asia","lat":33.197,"lon":35.345,"category":"War & conflict","article":"2024_Lebanon_war","body":"A war between Israel and Hezbollah took place in Lebanon for about 10 weeks in 2024 amid the Middle Eastern crisis. The war began in September 2024 following nearly 12 months of conflict between Israel and Hezbollah, when the former initiated major attacks in Lebanon including an attack on pagers and electronic devices, the assassination of Hezbollah leader Hassan Nasrallah, and an aerial bombing campaign throughout the country. The war escalated on 1 October, when Israel crossed the Blue Line in its sixth invasion of Lebanon since 1978.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q130388076","facts":[{"label":"Part of","value":"Hezbollah–Israel conflict (2023–present)"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q130388076"},{"title":"2024 Lebanon war — background and references","url":"https://en.wikipedia.org/wiki/2024_Lebanon_war"}],"briefSource":{"title":"2024 Lebanon war","url":"https://en.wikipedia.org/wiki/2024_Lebanon_war","revision":1382791893,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q120069037","year":2023,"title":"Nahel Merzouk riots","place":"France","region":"Europe","lat":50.641,"lon":4.668,"category":"War & conflict","article":"Nahel_Merzouk_riots","body":"A series of riots in France began on 27 June 2023 following the fatal shooting of Nahel Merzouk in an encounter with two police officers in Nanterre, a suburb of Paris. Residents started a protest outside the police headquarters on the 27 June, which later escalated into rioting as demonstrators set cars alight, destroyed bus stops, and shot fireworks at police. By 29 June, over 150 people had been arrested, 24 officers had been injured, and 40 cars had been torched.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q120069037","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q120069037"},{"title":"Nahel Merzouk riots — background and references","url":"https://en.wikipedia.org/wiki/Nahel_Merzouk_riots"}],"briefSource":{"title":"Nahel Merzouk riots","url":"https://en.wikipedia.org/wiki/Nahel_Merzouk_riots","revision":1380860877,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q43777","year":2010,"title":"2010 Haiti earthquake","place":"Haiti","region":"Americas","lat":18.451,"lon":-72.445,"category":"Health & environment","article":"2010_Haiti_earthquake","body":"A catastrophic magnitude 7.0 Mw earthquake struck Haiti at 16:53 local time (21:53 UTC) on Tuesday, 12 January 2010. The epicenter was near the town of Léogâne, Ouest department, approximately 25 kilometres (16 mi) west of Port-au-Prince, Haiti's capital. The earthquake is locally nicknamed Goudougoudou, an onomatopoeia for the sound of collapsing buildings. By 24 January, at least 52 aftershocks measuring 4.5 or greater had been recorded. An estimated three million people were affected by the quake.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q43777","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q43777"},{"title":"2010 Haiti earthquake — background and references","url":"https://en.wikipedia.org/wiki/2010_Haiti_earthquake"}],"briefSource":{"title":"2010 Haiti earthquake","url":"https://en.wikipedia.org/wiki/2010_Haiti_earthquake","revision":1384030201,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q19830062","year":2015,"title":"April 2015 Nepal earthquake","place":"Nepal","region":"Asia","lat":28.165,"lon":84.725,"category":"Health & environment","article":"April_2015_Nepal_earthquake","body":"The April 2015 Nepal earthquake (also known as the Gorkha earthquake) killed 8,962 people and injured 21,952 across the countries of Nepal, India, China and Bangladesh. It occurred at 11:56 Nepal Standard Time on Saturday 25 April 2015, with a magnitude of Mw 7.8–7.9 or Ms 8.1 and a maximum Mercalli Intensity of X (Extreme). Its epicenter was east of Gorkha District at Barpak, Gorkha, roughly 85 km (53 mi) northwest of central Kathmandu, and its hypocenter was at a depth of approximately 8.2 km (5.1 mi).","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q19830062","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q19830062"},{"title":"April 2015 Nepal earthquake — background and references","url":"https://en.wikipedia.org/wiki/April_2015_Nepal_earthquake"}],"briefSource":{"title":"April 2015 Nepal earthquake","url":"https://en.wikipedia.org/wiki/April_2015_Nepal_earthquake","revision":1381913677,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q133574091","year":2025,"title":"2025 Myanmar earthquake","place":"Sagaing Region","region":"Asia","lat":21.5,"lon":95.617,"category":"Health & environment","article":"2025_Myanmar_earthquake","body":"On 28 March 2025, at 12:50:52 MMT (06:20:52 UTC), a moment magnitude (Mw) 7.7–7.9 earthquake struck the Sagaing Region of Myanmar, with an epicenter close to Mandalay, the country's second-largest city. The shaking caused by this strike-slip shock reached a maximum Modified Mercalli intensity of X (Extreme). It was the most powerful earthquake to strike Myanmar since 1912, and the second deadliest in Myanmar's modern history, surpassed only by upper estimates of the 1930 Bago earthquake.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q133574091","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q133574091"},{"title":"2025 Myanmar earthquake — background and references","url":"https://en.wikipedia.org/wiki/2025_Myanmar_earthquake"}],"briefSource":{"title":"2025 Myanmar earthquake","url":"https://en.wikipedia.org/wiki/2025_Myanmar_earthquake","revision":1378417082,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q191293","year":1556,"title":"1556 Shaanxi earthquake","place":"Hua County","region":"Asia","lat":35.578,"lon":114.519,"category":"Health & environment","article":"1556_Shaanxi_earthquake","body":"One of the deadliest earthquakes in history occurred in the early morning of 23 January 1556 in Huaxian, Shaanxi, during the Ming dynasty. Most of the residents there lived in yaodongs—artificial caves in loess cliffs—which collapsed and buried alive those sleeping inside. Modern estimates by China Earthquake Administration's publications put the direct deaths from the earthquake at roughly 100,000, while over 700,000 either migrated away or died from famine and plagues, which summed up to a total reduction of 830,000 people in imperial hukou registration.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q191293","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q191293"},{"title":"1556 Shaanxi earthquake — background and references","url":"https://en.wikipedia.org/wiki/1556_Shaanxi_earthquake"}],"briefSource":{"title":"1556 Shaanxi earthquake","url":"https://en.wikipedia.org/wiki/1556_Shaanxi_earthquake","revision":1383595726,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q122351413","year":2023,"title":"2023 Al Haouz earthquake","place":"Al Haouz Province","region":"Africa","lat":31.35,"lon":-7.95,"category":"Health & environment","article":"2023_Al_Haouz_earthquake","body":"On 8 September 2023 at 23:11 DST (22:11 UTC), an earthquake with a moment magnitude of 6.9 and maximum Mercalli intensity of IX (Violent) struck Morocco's Al Haouz Province. The earthquake's epicenter was 73.4 km (45.6 mi) southwest of Marrakesh, near the town of Ighil and the Oukaïmeden ski resort in the Atlas Mountains. It occurred as a result of shallow oblique-thrust faulting beneath the mountain range. At least 2,960 deaths were reported, with most occurring outside Marrakesh.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q122351413","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q122351413"},{"title":"2023 Al Haouz earthquake — background and references","url":"https://en.wikipedia.org/wiki/2023_Al_Haouz_earthquake"}],"briefSource":{"title":"2023 Al Haouz earthquake","url":"https://en.wikipedia.org/wiki/2023_Al_Haouz_earthquake","revision":1371162849,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q191055","year":1755,"title":"1755 Lisbon earthquake","place":"Lisbon","region":"Asia","lat":36,"lon":-11,"category":"Health & environment","article":"1755_Lisbon_earthquake","body":"The 1755 Lisbon earthquake, also known as the Great Lisbon earthquake, occurred in the Iberian Peninsula and Northwest Africa area on the morning of Saturday, 1 November, 1755 (on the Christian Feast of All Saints); it took place at approximately 09:40 local time. In combination with subsequent fires and a tsunami, the earthquake almost completely destroyed Lisbon and adjoining areas. Seismologists estimate the Lisbon earthquake had a magnitude of 7.7 or greater on the moment magnitude scale, with its epicenter in the Atlantic Ocean about 200 km (110 nmi; 120 mi) west-southwest of Cape St.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q191055","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q191055"},{"title":"1755 Lisbon earthquake — background and references","url":"https://en.wikipedia.org/wiki/1755_Lisbon_earthquake"}],"briefSource":{"title":"1755 Lisbon earthquake","url":"https://en.wikipedia.org/wiki/1755_Lisbon_earthquake","revision":1382447125,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q151835","year":2010,"title":"2010 Chile earthquake","place":"Valparaíso Region","region":"Asia","lat":-35.909,"lon":-72.733,"category":"Health & environment","article":"2010_Chile_earthquake","body":"On 27 February 2010 at 03:34 UTC−03:00, a Mww 8.8 megathrust earthquake struck off the coast of the Maule Region of central Chile. One of the most powerful earthquakes ever recorded, it lasted approximately three minutes and was felt across six Chilean regions, home to roughly 80 percent of the country's population. The earthquake, which became known in Chile as the 27F earthquake (Spanish: Terremoto del 27F), was the largest to hit the country since the magnitude 9.5 1960 Valdivia earthquake and the strongest worldwide since the 2004 Indian Ocean earthquake.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q151835","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q151835"},{"title":"2010 Chile earthquake — background and references","url":"https://en.wikipedia.org/wiki/2010_Chile_earthquake"}],"briefSource":{"title":"2010 Chile earthquake","url":"https://en.wikipedia.org/wiki/2010_Chile_earthquake","revision":1382775655,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q152033","year":2008,"title":"2008 Sichuan earthquake","place":"Sichuan","region":"Asia","lat":31.021,"lon":103.367,"category":"Health & environment","article":"2008_Sichuan_earthquake","body":"An earthquake occurred in the province of Sichuan, China at 14:28:01 China Standard Time on May 12, 2008. Measuring at 8.0 Ms (7.9–8.3 Mw), the earthquake's epicenter was located 80 kilometres (50 mi) west-northwest of Chengdu, the provincial capital, with a focal depth of 19 km (12 mi). The earthquake ruptured the fault for over 240 km (150 mi), with surface displacements of several meters. The earthquake was also felt as far away as Beijing and Shanghai—1,500 and 1,700 km (930 and 1,060 mi) away, respectively—where office buildings swayed with the tremor, as well as Bangkok and Hanoi.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q152033","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q152033"},{"title":"2008 Sichuan earthquake — background and references","url":"https://en.wikipedia.org/wiki/2008_Sichuan_earthquake"}],"briefSource":{"title":"2008 Sichuan earthquake","url":"https://en.wikipedia.org/wiki/2008_Sichuan_earthquake","revision":1384183163,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q212618","year":1960,"title":"1960 Valdivia earthquake","place":"Lumaco","region":"Americas","lat":-38.143,"lon":-73.407,"category":"Health & environment","article":"1960_Valdivia_earthquake","body":"On 22 May 1960, an earthquake and tsunami occurred in Chile, devastating the city of Valdivia. Most studies have placed it at 9.4–9.6 on the moment magnitude scale, making it the strongest earthquake ever recorded, while some studies have placed the magnitude lower than 9.4. It occurred in the afternoon (19:11:14 UTC, 15:11:14 local time), and lasted 10 minutes. The resulting tsunamis affected southern Chile, Hawaii, Japan, the Philippines, eastern New Zealand, southeast Australia, and the Aleutian Islands.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q212618","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q212618"},{"title":"1960 Valdivia earthquake — background and references","url":"https://en.wikipedia.org/wiki/1960_Valdivia_earthquake"}],"briefSource":{"title":"1960 Valdivia earthquake","url":"https://en.wikipedia.org/wiki/1960_Valdivia_earthquake","revision":1383222439,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q462195","year":1976,"title":"1976 Tangshan earthquake","place":"Tangshan","region":"Asia","lat":39.664,"lon":118.401,"category":"Health & environment","article":"1976_Tangshan_earthquake","body":"The 1976 Tangshan earthquake occurred at 19:42:55 UTC on 27 July (03:42:55, 28 July local time). The maximum intensity of the Mw 7.6 earthquake around Tangshan, Hebei, China, was XI (Extreme) on the Mercalli scale. In minutes, 85 percent of the buildings in Tangshan collapsed or were rendered unusable, all services failed, and most of the highway and railway bridges collapsed or were seriously damaged. The official count stated 242,469 deaths, while historians accepted at least 300,000 died, making it the deadliest earthquake in recorded history (excluding the famine deaths from the 1556 Shaanxi earthquake) and one of the worst disasters in China by death toll.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q462195","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q462195"},{"title":"1976 Tangshan earthquake — background and references","url":"https://en.wikipedia.org/wiki/1976_Tangshan_earthquake"}],"briefSource":{"title":"1976 Tangshan earthquake","url":"https://en.wikipedia.org/wiki/1976_Tangshan_earthquake","revision":1383990094,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q210137","year":2005,"title":"2005 Kashmir earthquake","place":"Kashmir","region":"Asia","lat":34.493,"lon":73.629,"category":"Health & environment","article":"2005_Kashmir_earthquake","body":"On 8 October 2005, at 08:50:39 PKT, a Mw 7.6 earthquake struck the Azad Kashmir region in northern Pakistan. Its epicenter was located in the tehsil of Patikka, near the city of Muzaffarabad. It caused catastrophic damage and tens of thousands of fatalities across Azad Kashmir and northwestern Jammu and Kashmir, India. At least 87,350 people were killed and 200,000 were injured in Pakistan, with an additional 1,360 deaths and 7,082 injuries in India and 4 deaths in eastern Afghanistan.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q210137","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q210137"},{"title":"2005 Kashmir earthquake — background and references","url":"https://en.wikipedia.org/wiki/2005_Kashmir_earthquake"}],"briefSource":{"title":"2005 Kashmir earthquake","url":"https://en.wikipedia.org/wiki/2005_Kashmir_earthquake","revision":1384161412,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q211386","year":1906,"title":"1906 San Francisco earthquake","place":"San Francisco","region":"Asia","lat":37.75,"lon":-122.55,"category":"Health & environment","article":"1906_San_Francisco_earthquake","body":"A magnitude 7.9 earthquake struck the coast of Northern California at 05:12 am Pacific Standard Time on Wednesday, April 18, 1906. With a maximum Mercalli intensity of XI (Extreme), it created high-intensity shaking from Eureka on the North Coast to the Salinas Valley, an agricultural region to the south of the San Francisco Bay Area. Extensive fires soon broke out in San Francisco and lasted for several days. More than 3,000 people died and over 80% of the city was destroyed.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q211386","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q211386"},{"title":"1906 San Francisco earthquake — background and references","url":"https://en.wikipedia.org/wiki/1906_San_Francisco_earthquake"}],"briefSource":{"title":"1906 San Francisco earthquake","url":"https://en.wikipedia.org/wiki/1906_San_Francisco_earthquake","revision":1383066920,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q107529288","year":2021,"title":"2021 European floods","place":"Europe","region":"Europe","lat":53.5,"lon":15.5,"category":"Health & environment","article":"2021_European_floods","body":"In July 2021, several European countries were affected by severe floods. Some were catastrophic, causing deaths and widespread damage. The floods started in the United Kingdom as flash floods causing some property damage and inconvenience. Later floods affected several river basins across Europe including Austria, Belgium, Croatia, Germany, Italy, Luxembourg, the Netherlands, and Switzerland. At least 243 people died in the floods, including 196 in Germany, 39 in Belgium, two in Romania, one in Italy and one in Austria.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q107529288","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q107529288"},{"title":"2021 European floods — background and references","url":"https://en.wikipedia.org/wiki/2021_European_floods"}],"briefSource":{"title":"2021 European floods","url":"https://en.wikipedia.org/wiki/2021_European_floods","revision":1375935659,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q26689701","year":2016,"title":"August 2016 Central Italy earthquake","place":"Italy","region":"Europe","lat":42.71,"lon":13.24,"category":"Health & environment","article":"August_2016_Central_Italy_earthquake","body":"An earthquake, measuring 6.2 ± 0.016 on the moment magnitude scale, hit Central Italy on 24 August 2016 at 03:36:32 CEST (01:36 UTC). Its epicentre was close to Accumoli, with its hypocentre at a depth of 4 ± 1 km, approximately 75 km (47 mi) southeast of Perugia and 45 km (28 mi) north of L'Aquila, in an area near the borders of the Umbria, Lazio, Abruzzo and Marche regions. As of 15 November 2016, 299 people had been killed.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q26689701","facts":[{"label":"Part of","value":"2016–2017 Central Italy earthquakes"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q26689701"},{"title":"August 2016 Central Italy earthquake — background and references","url":"https://en.wikipedia.org/wiki/August_2016_Central_Italy_earthquake"}],"briefSource":{"title":"August 2016 Central Italy earthquake","url":"https://en.wikipedia.org/wiki/August_2016_Central_Italy_earthquake","revision":1374398296,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q214866","year":1995,"title":"Kobe earthquake","place":"Kobe","region":"Asia","lat":34.598,"lon":135.035,"category":"Health & environment","article":"Kobe_earthquake","body":"The Kobe earthquake, also known as the Great Hanshin Earthquake , occurred on January 17, 1995, at 05:46:53 JST in the southern part of Hyōgo Prefecture, Japan, including the region of Hanshin. It measured 6.9 on the moment magnitude scale and had a maximum intensity of 7 on the JMA Seismic Intensity Scale (XI on the Modified Mercalli intensity scale). The tremors lasted for approximately 20 seconds. The hypocenter of the earthquake was located 17 km beneath its epicenter, on the northern end of Awaji Island, 20 km away from the center of the city of Kobe.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q214866","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q214866"},{"title":"Kobe earthquake — background and references","url":"https://en.wikipedia.org/wiki/Kobe_earthquake"}],"briefSource":{"title":"Kobe earthquake","url":"https://en.wikipedia.org/wiki/Kobe_earthquake","revision":1381008476,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q124060919","year":2024,"title":"2024 Noto earthquake","place":"Noto Peninsula","region":"Asia","lat":37.2,"lon":136.9,"category":"Health & environment","article":"2024_Noto_earthquake","body":"On 1 January 2024, at 16:10:09 JST (07:10:09 UTC), a MJMA7.6 (Mw7.5) earthquake struck 6 km (3.7 mi) north-northeast of Suzu, located on the Noto Peninsula of Ishikawa Prefecture, Japan. The reverse-faulting shock achieved a maximum JMA seismic intensity of Shindo 7 and Modified Mercalli intensity of X–XI (Extreme). The shaking and accompanying tsunami caused widespread destruction on the Noto Peninsula, particularly in the towns of Suzu, Wajima, Noto and Anamizu. Damage was also recorded in Toyama and Niigata prefectures.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q124060919","facts":[{"label":"Part of","value":"Noto earthquake swarm"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q124060919"},{"title":"2024 Noto earthquake — background and references","url":"https://en.wikipedia.org/wiki/2024_Noto_earthquake"}],"briefSource":{"title":"2024 Noto earthquake","url":"https://en.wikipedia.org/wiki/2024_Noto_earthquake","revision":1381740005,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q815567","year":1988,"title":"1988 Armenian earthquake","place":"Armenia","region":"Asia","lat":40.983,"lon":44.183,"category":"Health & environment","article":"1988_Armenian_earthquake","body":"An earthquake occurred in northern Armenia (then Armenian SSR, as part of the Soviet Union) on 7 December, 1988, at 11:41 local time with a surface-wave magnitude of 6.8 and a maximum MSK intensity of X (Devastating). The region is vulnerable to large and destructive earthquakes and is part of a larger active seismic belt that stretches from the Alps to the Himalayas. Activity in the area is associated with tectonic plate boundary interaction and the source of the event was slip on a thrust fault just to the north of Spitak.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q815567","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q815567"},{"title":"1988 Armenian earthquake — background and references","url":"https://en.wikipedia.org/wiki/1988_Armenian_earthquake"}],"briefSource":{"title":"1988 Armenian earthquake","url":"https://en.wikipedia.org/wiki/1988_Armenian_earthquake","revision":1381383332,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q125289722","year":2024,"title":"2024 Hualien earthquake","place":"Taiwan Island","region":"Asia","lat":23.767,"lon":121,"category":"Health & environment","article":"2024_Hualien_earthquake","body":"On 3 April 2024, at 07:58:11 NST (23:58:11 UTC on 2 April), a Mw 7.4 earthquake struck 15 km (9.3 mi) south of Hualien City, Hualien County, Taiwan., provience, The republic of China At least 19 people were killed and over 1,100 were injured in the earthquake. It was the strongest earthquake in Taiwan since the 1999 Jiji earthquake, with three aftershocks above Mw 6.0.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q125289722","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q125289722"},{"title":"2024 Hualien earthquake — background and references","url":"https://en.wikipedia.org/wiki/2024_Hualien_earthquake"}],"briefSource":{"title":"2024 Hualien earthquake","url":"https://en.wikipedia.org/wiki/2024_Hualien_earthquake","revision":1384029286,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q130731262","year":2024,"title":"2024 Spanish floods","place":"Valencian Community","region":"Europe","lat":41.85,"lon":1.567,"category":"Health & environment","article":"2024_Spanish_floods","body":"On 29 October 2024, torrential rain caused by an isolated low-pressure area at high levels brought over a year's worth of precipitation to several areas in eastern Spain, including the Valencian Community, Castilla–La Mancha, and Andalusia. The resulting floodwaters caused the deaths of at least 242 people and substantial property damage. Often mononymously entitled \\"DANA\\", it is one of the deadliest natural disasters in Spanish (and European) history. Though similar torrential rain events had happened in the past in the region, the flooding was more intense, likely due to the effects of climate change.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q130731262","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q130731262"},{"title":"2024 Spanish floods — background and references","url":"https://en.wikipedia.org/wiki/2024_Spanish_floods"}],"briefSource":{"title":"2024 Spanish floods","url":"https://en.wikipedia.org/wiki/2024_Spanish_floods","revision":1383412116,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q207918","year":2009,"title":"2009 L'Aquila earthquake","place":"Abruzzo","region":"Europe","lat":42.334,"lon":13.334,"category":"Health & environment","article":"2009_L'Aquila_earthquake","body":"An earthquake occurred in the region of Abruzzo, in southern Italy, at 03:32 CEST (01:32 UTC) on 6 April 2009. It measured 6.3 on the moment magnitude scale and 5.8 or 5.9 on the Richter scale; its epicentre was near L'Aquila, the capital of Abruzzo, which together with surrounding villages suffered the most damage. There were several thousand foreshocks and aftershocks since December 2008, more than thirty of which had a Richter magnitude greater than 3.5.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q207918","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q207918"},{"title":"2009 L'Aquila earthquake — background and references","url":"https://en.wikipedia.org/wiki/2009_L'Aquila_earthquake"}],"briefSource":{"title":"2009 L'Aquila earthquake","url":"https://en.wikipedia.org/wiki/2009_L%27Aquila_earthquake","revision":1382775551,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q151850","year":2011,"title":"2011 Christchurch earthquake","place":"New Zealand","region":"Oceania","lat":-43.583,"lon":172.701,"category":"Health & environment","article":"2011_Christchurch_earthquake","body":"A major earthquake occurred in Christchurch on Tuesday 22 February 2011 at 12:51 p.m. local time (23:51 UTC, 21 February). The Mw 6.2 (ML 6.3) earthquake struck the Canterbury Region in the South Island, centred 6.7 kilometres (4.2 mi) south-east of the central business district. It caused widespread damage across Christchurch and killed 185 people, making it New Zealand's fifth-deadliest disaster. Scientists classified it as an intraplate earthquake and a potential aftershock of the September 2010 Canterbury earthquake.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q151850","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q151850"},{"title":"2011 Christchurch earthquake — background and references","url":"https://en.wikipedia.org/wiki/2011_Christchurch_earthquake"}],"briefSource":{"title":"2011 Christchurch earthquake","url":"https://en.wikipedia.org/wiki/2011_Christchurch_earthquake","revision":1381907588,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q101003145","year":2020,"title":"2020 Aegean Sea earthquake","place":"Aegean Sea","region":"Asia","lat":37.897,"lon":26.795,"category":"Health & environment","article":"2020_Aegean_Sea_earthquake","body":"An earthquake with a moment magnitude of 7.0 occurred on 30 October 2020 about 14 km (8.7 mi) northeast of the Greek island of Samos. Although Samos was closest to the epicentre, it was the large Turkish city İzmir, 70 km (43 mi) northeast that was heavily affected—more than 700 residential and commercial structures were seriously damaged or destroyed. One hundred and seventeen people died in İzmir Province while an additional 1,034 were injured. In Greece, there were two fatalities and 19 injured.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q101003145","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q101003145"},{"title":"2020 Aegean Sea earthquake — background and references","url":"https://en.wikipedia.org/wiki/2020_Aegean_Sea_earthquake"}],"briefSource":{"title":"2020 Aegean Sea earthquake","url":"https://en.wikipedia.org/wiki/2020_Aegean_Sea_earthquake","revision":1382048315,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q131692964","year":2025,"title":"2025 Tibet earthquake","place":"China","region":"Asia","lat":28.639,"lon":87.361,"category":"Health & environment","article":"2025_Tibet_earthquake","body":"On 7 January 2025 at 09:05 CST (UTC+8), an earthquake measuring Mw 7.1 struck Tingri County, located in the Shigatse prefecture-level city of the Tibet Autonomous Region of Southwestern China. Between 126 and 400 people were killed and 338 were injured in the region. The earthquake also injured 13 people in Nepal and caused minor damage in Northern India. Shaking was felt across South Asia. The earthquake was the largest in China since the Maduo earthquake in May 2021 and the deadliest since at least the Jishishan earthquake in December 2023.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q131692964","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q131692964"},{"title":"2025 Tibet earthquake — background and references","url":"https://en.wikipedia.org/wiki/2025_Tibet_earthquake"}],"briefSource":{"title":"2025 Tibet earthquake","url":"https://en.wikipedia.org/wiki/2025_Tibet_earthquake","revision":1378558527,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q189079","year":2011,"title":"2011 Van earthquakes","place":"Van Province","region":"Asia","lat":38.628,"lon":43.486,"category":"Health & environment","article":"2011_Van_earthquakes","body":"The 2011 Van earthquakes occurred in eastern Turkey near the city of Van. The first earthquake happened on 23 October at 13:41 local time. The shock had a Mww magnitude of 7.1 and a maximum Mercalli intensity of VIII (Severe). It occurred at a shallow depth, causing heavy shaking across much of eastern Turkey and lighter tremors across neighboring parts of the South Caucasus and Levant. According to Disaster and Emergency Management Presidency on 30 October, the earthquake killed 604 and injured 4,152.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q189079","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q189079"},{"title":"2011 Van earthquakes — background and references","url":"https://en.wikipedia.org/wiki/2011_Van_earthquakes"}],"briefSource":{"title":"2011 Van earthquakes","url":"https://en.wikipedia.org/wiki/2011_Van_earthquakes","revision":1366277357,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q367449","year":1999,"title":"1999 İzmit earthquake","place":"Gölcük","region":"Asia","lat":40.702,"lon":29.987,"category":"Health & environment","article":"1999_İzmit_earthquake","body":"An earthquake of moment magnitude 7.6 struck Kocaeli Province, Turkey, on 17 August 1999. According to official figures, at least 18,373 people died and 48,901 people were injured during the earthquake, and 5,840 people were missing. At least 155 deaths were associated with the tsunami. The damage was estimated at between $12 billion and $20 billion (in 1999 U.S. dollars) according to various sources such as the World Bank. The earthquake was named for the epicenter's proximity to the northwestern city of İzmit.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q367449","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q367449"},{"title":"1999 İzmit earthquake — background and references","url":"https://en.wikipedia.org/wiki/1999_%C4%B0zmit_earthquake"}],"briefSource":{"title":"1999 İzmit earthquake","url":"https://en.wikipedia.org/wiki/1999_%C4%B0zmit_earthquake","revision":1382621585,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q108091634","year":2021,"title":"2021 Haiti earthquake","place":"Haiti","region":"Americas","lat":18.408,"lon":-73.475,"category":"Health & environment","article":"2021_Haiti_earthquake","body":"At 08:29:09 EDT on 14 August 2021, a magnitude 7.2 earthquake struck the Tiburon Peninsula of southern Haiti. It had a 10-kilometre-deep (6.2 mi) hypocenter near Petit-Trou-de-Nippes, approximately 150 kilometres (93 mi) west of the capital, Port-au-Prince. Tsunami warnings were briefly issued for the Haitian coast. At least 2,248 people were confirmed killed as of 1 September 2021 and more than 12,200 injured, mostly in the Sud Department. An estimated 650,000 people were in need of assistance.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q108091634","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q108091634"},{"title":"2021 Haiti earthquake — background and references","url":"https://en.wikipedia.org/wiki/2021_Haiti_earthquake"}],"briefSource":{"title":"2021 Haiti earthquake","url":"https://en.wikipedia.org/wiki/2021_Haiti_earthquake","revision":1370461001,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q23825118","year":2016,"title":"2016 Kumamoto earthquakes","place":"Japan","region":"Asia","lat":32.849,"lon":130.635,"category":"Health & environment","article":"2016_Kumamoto_earthquakes","body":"The 2016 Kumamoto earthquakes were a series of earthquakes, including a magnitude 7.0 mainshock which struck at 01:25 JST on April 16, 2016 (16:25 UTC on April 15) beneath Kumamoto City of Kumamoto Prefecture in Kyushu Region, Japan, at a depth of about 10 kilometres (6.2 miles), and a foreshock earthquake with a magnitude 6.2 at 21:26 JST (12:26 UTC) on April 14, 2016, at a depth of about 11 kilometres (6.8 miles). In total, the two earthquakes killed 277 people and injured 2,809 others, a majority of them indirectly, This earthquake sequence was the deadliest in Japan since the 2011 Tōhoku earthquake and tsunami, until the 2024 Noto earthquake.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q23825118","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q23825118"},{"title":"2016 Kumamoto earthquakes — background and references","url":"https://en.wikipedia.org/wiki/2016_Kumamoto_earthquakes"}],"briefSource":{"title":"2016 Kumamoto earthquakes","url":"https://en.wikipedia.org/wiki/2016_Kumamoto_earthquakes","revision":1373670885,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q88259708","year":2020,"title":"2020 Zagreb earthquake","place":"Croatia","region":"Europe","lat":45.897,"lon":15.966,"category":"Health & environment","article":"2020_Zagreb_earthquake","body":"At approximately 6:24 AM CET on the morning of 22 March 2020, an earthquake of magnitude 5.3 Mw, 5.5 ML, hit Zagreb, Croatia, with an epicenter 7 kilometres (4.3 mi) north of the city centre. The maximum felt intensity was VII–VIII (Very strong to Damaging) on the Medvedev–Sponheuer–Karnik scale. The earthquake was followed by numerous aftershocks, the strongest of which with a magnitude of 5.0. It was the strongest earthquake in Zagreb since the 1880 earthquake and caused substantial damage in the historical city center.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q88259708","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q88259708"},{"title":"2020 Zagreb earthquake — background and references","url":"https://en.wikipedia.org/wiki/2020_Zagreb_earthquake"}],"briefSource":{"title":"2020 Zagreb earthquake","url":"https://en.wikipedia.org/wiki/2020_Zagreb_earthquake","revision":1375670343,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1348910","year":1908,"title":"1908 Messina earthquake","place":"Italy","region":"Europe","lat":38.15,"lon":15.683,"category":"Health & environment","article":"1908_Messina_earthquake","body":"A devastating earthquake occurred on 28 December 1908 in Sicily and Calabria, southern Italy, with a moment magnitude of 7.1 and a maximum Mercalli intensity of XI (Extreme). The epicentre was in the Strait of Messina which separates Sicily from the Italian mainland. The cities of Messina and Reggio Calabria were nearly destroyed and around 120,000 people died, making it the deadliest earthquake in the history of Europe.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1348910","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1348910"},{"title":"1908 Messina earthquake — background and references","url":"https://en.wikipedia.org/wiki/1908_Messina_earthquake"}],"briefSource":{"title":"1908 Messina earthquake","url":"https://en.wikipedia.org/wiki/1908_Messina_earthquake","revision":1380355624,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q578179","year":1963,"title":"1963 Skopje earthquake","place":"North Macedonia","region":"Europe","lat":42,"lon":21.433,"category":"Health & environment","article":"1963_Skopje_earthquake","body":"The 1963 Skopje earthquake (Macedonian: Скопски земјотрес од 1963 година) occurred in present-day North Macedonia (at the time, it was called the Socialist Republic of Macedonia). The 6.1 moment magnitude shock had a maximum Mercalli intensity of X (Extreme) and resulted in more than 1,000 deaths and between 3,000 and 4,000 injuries. More than 200,000 people were left homeless. About 80 percent of the city was destroyed.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q578179","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q578179"},{"title":"1963 Skopje earthquake — background and references","url":"https://en.wikipedia.org/wiki/1963_Skopje_earthquake"}],"briefSource":{"title":"1963 Skopje earthquake","url":"https://en.wikipedia.org/wiki/1963_Skopje_earthquake","revision":1374330734,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q210981","year":2007,"title":"2007 Peru earthquake","place":"Representative location","region":"Asia","lat":-13.353,"lon":-76.51,"category":"Health & environment","article":"2007_Peru_earthquake","body":"The 2007 Peru earthquake, which measured 8.0 on the moment magnitude scale, hit the central coast of Peru on August 15 at 23:40:57 UTC (18:40:57 local time) and lasted two minutes. The epicenter was located 150 km (93 mi) south-southeast of Lima at a depth of 39 km (24 mi). At least 595 people died and over 2,290 people were injured.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q210981","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q210981"},{"title":"2007 Peru earthquake — background and references","url":"https://en.wikipedia.org/wiki/2007_Peru_earthquake"}],"briefSource":{"title":"2007 Peru earthquake","url":"https://en.wikipedia.org/wiki/2007_Peru_earthquake","revision":1383885520,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q43041167","year":2017,"title":"2017 Iran–Iraq earthquake","place":"Iran","region":"Asia","lat":34.911,"lon":45.959,"category":"Health & environment","article":"2017_Iran–Iraq_earthquake","body":"On 12 November 2017 at 18:18 UTC (21:48 Iran Standard Time, 21:18 Arabia Standard Time), an earthquake with a moment magnitude of 7.4 occurred on the Iran–Iraq border, with the Iraqi Kurdish city of Halabja, and the Kurdish dominated places of Ezgeleh, Salas-e Babajani County, Kermanshah province in Iran, closest to the epicentre, 30 kilometres (19 mi) south of the city of Halabja, Iraqi Kurdistan. It was felt as far away as Israel and the United Arab Emirates. With at least 630 people killed (mostly in Iraq's Kurdish Halabja area and the Iranian Kurdish dominated province of Kermanshah), more than 8,100 injured, and many more unaccounted for, it was the deadliest earthquake of 2017.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q43041167","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q43041167"},{"title":"2017 Iran–Iraq earthquake — background and references","url":"https://en.wikipedia.org/wiki/2017_Iran%E2%80%93Iraq_earthquake"}],"briefSource":{"title":"2017 Iran–Iraq earthquake","url":"https://en.wikipedia.org/wiki/2017_Iran%E2%80%93Iraq_earthquake","revision":1373749608,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q56768333","year":2018,"title":"2018 Sulawesi earthquake and tsunami","place":"Donggala","region":"Asia","lat":-0.18,"lon":119.85,"category":"Health & environment","article":"2018_Sulawesi_earthquake_and_tsunami","body":"On 28 September 2018, a shallow, large earthquake struck in the neck of the Minahasa Peninsula, Indonesia, with its epicentre located in the mountainous Donggala Regency, Central Sulawesi. The magnitude 7.5–7.6 quake was located 70 km (43 mi) away from the provincial capital Palu and was felt as far away as Samarinda on East Kalimantan and also in Tawau, Malaysia. This event was preceded by a sequence of foreshocks, the largest of which was a magnitude 6.1 tremor that occurred earlier that day.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q56768333","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q56768333"},{"title":"2018 Sulawesi earthquake and tsunami — background and references","url":"https://en.wikipedia.org/wiki/2018_Sulawesi_earthquake_and_tsunami"}],"briefSource":{"title":"2018 Sulawesi earthquake and tsunami","url":"https://en.wikipedia.org/wiki/2018_Sulawesi_earthquake_and_tsunami","revision":1382206227,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q23835355","year":2016,"title":"2016 Ecuador earthquake","place":"Ecuador","region":"Americas","lat":0.371,"lon":-79.94,"category":"Health & environment","article":"2016_Ecuador_earthquake","body":"The 2016 Ecuador earthquake occurred on April 16 at 18:58:37 ECT with a moment magnitude of 7.8 and a maximum Mercalli intensity of VIII (Severe). The very large thrust earthquake was centered approximately 27 km (17 mi) from the towns of Muisne and Pedernales in a sparsely populated part of the country, and 170 km (110 mi) from the capital Quito, where it was felt strongly. The regions of Manta, Pedernales and Portoviejo accounted for over 75 percent of total casualties.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q23835355","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q23835355"},{"title":"2016 Ecuador earthquake — background and references","url":"https://en.wikipedia.org/wiki/2016_Ecuador_earthquake"}],"briefSource":{"title":"2016 Ecuador earthquake","url":"https://en.wikipedia.org/wiki/2016_Ecuador_earthquake","revision":1376913216,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q38982786","year":2017,"title":"2017 Chiapas earthquake","place":"Chiapas","region":"Americas","lat":16.53,"lon":-92.45,"category":"Health & environment","article":"2017_Chiapas_earthquake","body":"The 2017 Chiapas earthquake struck at 23:49 CDT on 7 September (local time; 04:49 on the 8th UTC) in the Gulf of Tehuantepec off the southern coast of Mexico near the state of Chiapas, approximately 87 kilometres (54 mi) southwest of Pijijiapan (alternately, 101 kilometres (63 mi) south-southwest of Tres Picos), with a Mercalli intensity of IX (Violent). The moment magnitude was estimated to be Mw 8.2. The earthquake caused all of Mexico City to tremble, prompting people to evacuate after the early warning system was triggered.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q38982786","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q38982786"},{"title":"2017 Chiapas earthquake — background and references","url":"https://en.wikipedia.org/wiki/2017_Chiapas_earthquake"}],"briefSource":{"title":"2017 Chiapas earthquake","url":"https://en.wikipedia.org/wiki/2017_Chiapas_earthquake","revision":1372293841,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q83557758","year":2020,"title":"2020 Elazığ earthquake","place":"Elazığ Province","region":"Asia","lat":38.668,"lon":39.36,"category":"Health & environment","article":"2020_Elazığ_earthquake","body":"The 2020 Elazığ earthquake occurred at 20:55 local time (17:55 UTC) on 24 January in Turkey. The magnitude of the earthquake was determined to be 6.7 Mw. The earthquake's epicentre was close to the town of Sivrice in Elazığ Province and felt in the neighbouring provinces of Diyarbakır, Malatya and Adıyaman, and the neighbouring countries of Armenia, Syria and Iran. Kandilli Observatory reported the magnitude of the earthquake as 6.5 Mw. A total of 41 people were killed and more than 1,600 were injured.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q83557758","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q83557758"},{"title":"2020 Elazığ earthquake — background and references","url":"https://en.wikipedia.org/wiki/2020_Elaz%C4%B1%C4%9F_earthquake"}],"briefSource":{"title":"2020 Elazığ earthquake","url":"https://en.wikipedia.org/wiki/2020_Elaz%C4%B1%C4%9F_earthquake","revision":1375479132,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q104535090","year":2020,"title":"2020 Petrinja earthquake","place":"Sisak-Moslavina County","region":"Europe","lat":45.422,"lon":16.255,"category":"Health & environment","article":"2020_Petrinja_earthquake","body":"At 12:19 PM CET (11:19 UTC) on 29 December 2020, an earthquake of magnitude 6.4 Mw (6.2 ML) hit central Croatia, with an epicenter located roughly 3 km (1.9 mi) west-southwest of Petrinja. The maximum felt intensity was estimated at VIII (Heavily damaging) to IX (Destructive) on the European macroseismic scale. Before this event there were three foreshocks, the strongest of which had a magnitude of 5.2 Mw on the day before. The earthquake was followed by numerous aftershocks, the strongest of which had a magnitude of 4.9 Mw.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q104535090","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q104535090"},{"title":"2020 Petrinja earthquake — background and references","url":"https://en.wikipedia.org/wiki/2020_Petrinja_earthquake"}],"briefSource":{"title":"2020 Petrinja earthquake","url":"https://en.wikipedia.org/wiki/2020_Petrinja_earthquake","revision":1375576187,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q749610","year":1964,"title":"1964 Alaska earthquake","place":"Prince William Sound","region":"Americas","lat":61.02,"lon":-147.65,"category":"Health & environment","article":"1964_Alaska_earthquake","body":"The 1964 Alaska earthquake, also known as the Great Alaska earthquake and Good Friday earthquake, occurred at 5:36 PM AKST on Good Friday, March 27, 1964. Across south-central Alaska, ground fissures, collapsing structures, and tsunamis resulting from the earthquake caused about 139 deaths. Lasting four minutes and thirty-eight seconds, the magnitude 9.2–9.3 megathrust earthquake remains the most powerful earthquake ever recorded in North America and the second most powerful earthquake ever recorded in the world since modern seismography began in 1900.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q749610","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q749610"},{"title":"1964 Alaska earthquake — background and references","url":"https://en.wikipedia.org/wiki/1964_Alaska_earthquake"}],"briefSource":{"title":"1964 Alaska earthquake","url":"https://en.wikipedia.org/wiki/1964_Alaska_earthquake","revision":1383526346,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q136033573","year":2025,"title":"2025 Kunar earthquake","place":"Afghanistan","region":"Asia","lat":34.519,"lon":70.734,"category":"Health & environment","article":"2025_Kunar_earthquake","body":"On 31 August 2025, at 23:47 AFT (19:17 UTC), an earthquake with a magnitude of 6.0 on the moment magnitude scale (Mw) struck eastern Afghanistan, near the border with Pakistan. The epicenter of the quake was located in Nurgal District, Kunar Province. It had a hypocenter 8 kilometres (5 miles) beneath the surface, and the shaking had a maximum Modified Mercalli intensity of IX (Violent) in Nurgal. Several geological and structural factors led to a heavy impact from the earthquake's relatively moderate size, with at least 2,200 deaths, 4,000 injuries and 8,000 collapsed homes.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q136033573","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q136033573"},{"title":"2025 Kunar earthquake — background and references","url":"https://en.wikipedia.org/wiki/2025_Kunar_earthquake"}],"briefSource":{"title":"2025 Kunar earthquake","url":"https://en.wikipedia.org/wiki/2025_Kunar_earthquake","revision":1382452354,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q140984463","year":2026,"title":"2026 Colombia earthquake","place":"San José del Palmar","region":"Americas","lat":4.844,"lon":-76.242,"category":"Health & environment","article":"2026_Colombia_earthquake","body":"A magnitude 7.4 earthquake struck western Colombia on August 10, 2026, affecting communities around San José del Palmar and across the region. The event caused damage and created urgent public-health and humanitarian needs. Its significance includes both the earthquake itself and the challenges of reaching affected communities and restoring essential services.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q140984463","facts":[],"sources":[{"title":"PAHO — Colombia earthquake public-health assessment","url":"https://www.paho.org/sites/default/files/2026/08/phsa-colombiaearthquake-2026.pdf"},{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q140984463"},{"title":"2026 Colombia earthquake — background and references","url":"https://en.wikipedia.org/wiki/2026_Colombia_earthquake"}],"editorial":true},{"id":"event-q21201293","year":2015,"title":"October 2015 Hindu Kush earthquake","place":"Hindu Kush","region":"Asia","lat":36.441,"lon":70.717,"category":"Health & environment","article":"October_2015_Hindu_Kush_earthquake","body":"The October 2015 Hindu Kush earthquake was a magnitude 7.5 earthquake that struck South Asia on 26 October 2015, at 13:39 AFT (14:09 PKT; 14:39 IST; 09:09 UTC) with the epicenter 45 km north of Kuran wa Munjan, Afghanistan, at a depth of 231.0 km. By 5 November, it was estimated that at least 399 people were killed, mostly in Pakistan. Tremors were felt in Pakistan, Uzbekistan, Turkmenistan, Tajikistan and Kyrgyzstan. According to the United States Geological Survey (USGS), Pakistan is located in one of the most earthquake active zones in the world.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q21201293","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q21201293"},{"title":"October 2015 Hindu Kush earthquake — background and references","url":"https://en.wikipedia.org/wiki/October_2015_Hindu_Kush_earthquake"}],"briefSource":{"title":"October 2015 Hindu Kush earthquake","url":"https://en.wikipedia.org/wiki/October_2015_Hindu_Kush_earthquake","revision":1379322721,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q383991","year":2012,"title":"2012 Indian Ocean earthquakes","place":"Representative location","region":"Asia","lat":2.348,"lon":93.072,"category":"Health & environment","article":"2012_Indian_Ocean_earthquakes","body":"The 2012 Indian Ocean earthquakes were magnitude 8.6 and 8.2 Mw undersea earthquakes that struck near the Indonesian province of Aceh on 11 April at 15:38 local time. Initially, authorities feared that the initial earthquake would cause a tsunami and warnings were issued across the Indian Ocean; however, these warnings were subsequently cancelled. These were unusually large intraplate earthquakes and the largest strike-slip earthquake ever recorded.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q383991","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q383991"},{"title":"2012 Indian Ocean earthquakes — background and references","url":"https://en.wikipedia.org/wiki/2012_Indian_Ocean_earthquakes"}],"briefSource":{"title":"2012 Indian Ocean earthquakes","url":"https://en.wikipedia.org/wiki/2012_Indian_Ocean_earthquakes","revision":1376912704,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q22662663","year":2016,"title":"2016 southern Taiwan earthquake","place":"Taiwan","region":"Asia","lat":22.92,"lon":120.54,"category":"Health & environment","article":"2016_southern_Taiwan_earthquake","body":"At 03:57 local time on 6 February 2016, an earthquake with a moment magnitude of 6.4 struck 28 km (17 mi) northeast of Pingtung City in southern Taiwan, in the Meinong District of Kaohsiung. The earthquake struck at a depth of around 23 km (14 mi). Its comparatively shallow depth caused more intense reverberations on the surface. The earthquake had a maximum intensity of 7 on the Central Weather Administration seismic intensity scale, causing widespread damage and 117 deaths.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q22662663","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q22662663"},{"title":"2016 southern Taiwan earthquake — background and references","url":"https://en.wikipedia.org/wiki/2016_southern_Taiwan_earthquake"}],"briefSource":{"title":"2016 southern Taiwan earthquake","url":"https://en.wikipedia.org/wiki/2016_southern_Taiwan_earthquake","revision":1372062271,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q40355642","year":2017,"title":"2017 Puebla earthquake","place":"Mexico","region":"Americas","lat":18.33,"lon":-98.671,"category":"Health & environment","article":"2017_Puebla_earthquake","body":"The 2017 Puebla earthquake, also known as 19S, struck at 13:14 CDT (18:14 UTC) on 19 September 2017 with an estimated magnitude of 7.1 Mw and strong shaking for about 20 seconds. Its epicenter was about 55 km (34 mi) south of the city of Puebla, Mexico. The earthquake caused damage in the Mexican states of Puebla and Morelos and in the Greater Mexico City area, including the collapse of more than 40 buildings. 370 people were killed by the earthquake and related building collapses, including 228 in Mexico City, and more than 6,000 were injured.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q40355642","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q40355642"},{"title":"2017 Puebla earthquake — background and references","url":"https://en.wikipedia.org/wiki/2017_Puebla_earthquake"}],"briefSource":{"title":"2017 Puebla earthquake","url":"https://en.wikipedia.org/wiki/2017_Puebla_earthquake","revision":1366200626,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q112666390","year":2022,"title":"June 2022 Afghanistan earthquake","place":"Paktia Province","region":"Asia","lat":33.092,"lon":69.514,"category":"Health & environment","article":"June_2022_Afghanistan_earthquake","body":"A 4.0-kilometre (2.5 mi) deep earthquake measuring a magnitude (Mw) of 6.2 struck southeastern Afghanistan on 22 June 2022 at 01:24:36 AFT (on 21 June 2022 at 20:54:36 UTC). The earthquake had a maximum Modified Mercalli intensity of IX (Violent). There were between 1,052 to 1,163 deaths and 1,627 to 2,976 injured in Afghanistan and Pakistan. The worst affected provinces in Afghanistan were Paktika, Paktia, Khost, and Nangarhar. Casualties and damage also occurred in Pakistan's Khyber Pakhtunkhwa.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q112666390","facts":[{"label":"Part of","value":"list of earthquakes in 2022"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q112666390"},{"title":"June 2022 Afghanistan earthquake — background and references","url":"https://en.wikipedia.org/wiki/June_2022_Afghanistan_earthquake"}],"briefSource":{"title":"June 2022 Afghanistan earthquake","url":"https://en.wikipedia.org/wiki/June_2022_Afghanistan_earthquake","revision":1368844133,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1798567","year":1985,"title":"1985 Mexico City earthquake","place":"Mexico City","region":"Americas","lat":18.19,"lon":-102.53,"category":"Health & environment","article":"1985_Mexico_City_earthquake","body":"The 1985 Mexico City earthquake struck in the early morning of 19 September at 07:17:50 (CST) with a moment magnitude of 8.0 and a maximal Mercalli intensity of IX (Violent). The event caused serious damage to the Greater Mexico City area and the deaths of at least 5,000 people. The sequence of events included a foreshock of magnitude 5.2 that occurred the prior May, the main shock on 19 September, and two large aftershocks. The first of these occurred on 20 September with a magnitude of 7.5 and the second occurred seven months later on 30 April 1986 with a magnitude of 7.0.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1798567","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1798567"},{"title":"1985 Mexico City earthquake — background and references","url":"https://en.wikipedia.org/wiki/1985_Mexico_City_earthquake"}],"briefSource":{"title":"1985 Mexico City earthquake","url":"https://en.wikipedia.org/wiki/1985_Mexico_City_earthquake","revision":1384159298,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q76529995","year":2019,"title":"2019 Albania earthquake","place":"Lezhë County","region":"Europe","lat":41.75,"lon":19.833,"category":"Health & environment","article":"2019_Albania_earthquake","body":"On 26 November 2019 at 03:54 CET (UTC+1), northwestern Albania was struck by a magnitude 6.4 earthquake with an epicentre 16 kilometres (9.9 mi) west-southwest of Mamurras. The earthquake lasted at least 50 seconds and was felt in Albania's capital Tirana, and in places as far away as Bari, Taranto and Belgrade, 370 kilometres (230 mi) northeast of the epicentre. The maximum felt intensity was VIII (Severe) on the Modified Mercalli intensity scale. A total of 51 people were killed in the earthquake, with about 3,000 injured.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q76529995","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q76529995"},{"title":"2019 Albania earthquake — background and references","url":"https://en.wikipedia.org/wiki/2019_Albania_earthquake"}],"briefSource":{"title":"2019 Albania earthquake","url":"https://en.wikipedia.org/wiki/2019_Albania_earthquake","revision":1379362192,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q698056","year":1960,"title":"1960 Agadir earthquake","place":"Agadir","region":"Asia","lat":30.351,"lon":-9.69,"category":"Health & environment","article":"1960_Agadir_earthquake","body":"The 1960 Agadir earthquake occurred on 29 February at 23:40:18 Western European Time near the city of Agadir, located in western Morocco on the shore of the Atlantic Ocean. Despite the earthquake's moderate Mw scale magnitude of 5.8, its relatively shallow depth (15.0 km) resulted in strong surface shaking, with a maximum perceived intensity of X (Extreme) on the Mercalli intensity scale. Between 12,000 and 15,000 people (about a third of the city's population of the time) were killed and another 12,000 injured with at least 35,000 people left homeless, making it the most destructive and deadliest earthquake in Moroccan history.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q698056","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q698056"},{"title":"1960 Agadir earthquake — background and references","url":"https://en.wikipedia.org/wiki/1960_Agadir_earthquake"}],"briefSource":{"title":"1960 Agadir earthquake","url":"https://en.wikipedia.org/wiki/1960_Agadir_earthquake","revision":1378067468,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q867691","year":2006,"title":"2006 Yogyakarta earthquake","place":"Indonesia","region":"Asia","lat":-7.962,"lon":110.458,"category":"Health & environment","article":"2006_Yogyakarta_earthquake","body":"The 2006 Yogyakarta earthquake (also known as the Bantul earthquake) occurred at 05:53 local time on 27 May with a moment magnitude of 6.4 and a maximum MSK intensity of VIII (Damaging) in the Yogyakarta region of Java, Indonesia. Several factors led to a disproportionate amount of damage and number of casualties for the size of the shock, with more than 5,700 dead, tens of thousands injured, and financial losses of Rp 29.1 trillion ($3.1 billion). With limited effects on public infrastructure and lifelines, housing and private businesses bore the majority of damage (the 9th-century Prambanan Hindu temple compound was also affected), and the United States' National Geophysical Data Center classified the total damage from the event as extreme.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q867691","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q867691"},{"title":"2006 Yogyakarta earthquake — background and references","url":"https://en.wikipedia.org/wiki/2006_Yogyakarta_earthquake"}],"briefSource":{"title":"2006 Yogyakarta earthquake","url":"https://en.wikipedia.org/wiki/2006_Yogyakarta_earthquake","revision":1366276394,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q381766","year":2010,"title":"2010 Yushu earthquake","place":"China","region":"Asia","lat":33.271,"lon":96.629,"category":"Health & environment","article":"2010_Yushu_earthquake","body":"The 2010 Yushu earthquake struck on April 14 and registered a magnitude of 6.9 Mw (USGS, EMSC) or 7.1 Ms (CEA, CENC). It originated in Yushu, Qinghai, China, at 7:49 am local time (23:49 April 13 UTC). According to the Xinhua News Agency, 2,698 people were confirmed dead, 270 missing and 12,135 injured, 1,434 of them severely. The epicenter was located in Rima Village (日玛村/日麻村), Shanglaxiu Township (上拉秀乡) of Yushu County, in remote and rugged terrain, near the border of Sichuan and Tibet Autonomous Region, about 30 km from Gyêgu town or Jyekundo, the seat of Yushu County, and about 240 km from Qamdo.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q381766","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q381766"},{"title":"2010 Yushu earthquake — background and references","url":"https://en.wikipedia.org/wiki/2010_Yushu_earthquake"}],"briefSource":{"title":"2010 Yushu earthquake","url":"https://en.wikipedia.org/wiki/2010_Yushu_earthquake","revision":1382517758,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q584613","year":2011,"title":"2011 Lorca earthquake","place":"Spain","region":"Europe","lat":37.697,"lon":-1.556,"category":"Health & environment","article":"2011_Lorca_earthquake","body":"The 2011 Lorca earthquake (Spanish: Terremoto de Lorca de 2011) was a moderate 5.1 Mw earthquake that occurred 18:47 CEST (16:47 UTC) on 11 May 2011, near the town of Lorca, causing significant localized damage in the Region of Murcia, Spain, and panic among locals, and displacing many from their homes. The quake was preceded by a magnitude 4.4 (Mw) foreshock at 17:05 (15:05 UTC), that inflicted substantial damage to many older structures in the area, including the historical Espolón Tower of Lorca Castle, the Hermitage of San Clemente and the Convent of Virgen de Las Huertas. Three people were killed by a falling cornice.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q584613","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q584613"},{"title":"2011 Lorca earthquake — background and references","url":"https://en.wikipedia.org/wiki/2011_Lorca_earthquake"}],"briefSource":{"title":"2011 Lorca earthquake","url":"https://en.wikipedia.org/wiki/2011_Lorca_earthquake","revision":1366277275,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q115322003","year":2022,"title":"2022 West Java earthquake","place":"Indonesia","region":"Asia","lat":-6.853,"lon":107.095,"category":"Health & environment","article":"2022_West_Java_earthquake","body":"On 21 November 2022, at 13:21 WIB (UTC+07:00), a Mww 5.6 earthquake struck near Cianjur in West Java, Indonesia. The strike-slip earthquake occurred with a focal depth of 11 km (6.8 mi). Between 335 and 635 people died, 7,729 were injured and five remain missing. More than 62,628 homes were damaged across 16 districts in Cianjur Regency and the surrounding region. It is the deadliest earthquake to affect Indonesia since the 2018 Sulawesi earthquake, and the deadliest in West Java since 2009 earthquake.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q115322003","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q115322003"},{"title":"2022 West Java earthquake — background and references","url":"https://en.wikipedia.org/wiki/2022_West_Java_earthquake"}],"briefSource":{"title":"2022 West Java earthquake","url":"https://en.wikipedia.org/wiki/2022_West_Java_earthquake","revision":1376704945,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q140119396","year":2026,"title":"2026 Mindanao earthquake","place":"Representative location","region":"Asia","lat":5.57,"lon":124.98,"category":"Health & environment","article":"2026_Mindanao_earthquake","body":"A magnitude 7.8 earthquake struck near Sarangani in the southern Philippines on June 8, 2026. The earthquake and associated tsunami risk affected communities in and around Mindanao. Government disaster reports document evacuation, damage assessment, and relief operations. The marker represents the earthquake region, rather than every community affected.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q140119396","facts":[],"sources":[{"title":"Philippines DSWD — June 2026 earthquake situation report","url":"https://dromic.dswd.gov.ph/wp-content/uploads/2026/06/DSWD-DROMIC-Report-25-on-the-Effects-of-Mw-7.8-Earthquake-Incident-in-Maasim-Sarangani-as-of-21-June-2026-6AM.pdf"},{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q140119396"},{"title":"2026 Mindanao earthquake — background and references","url":"https://en.wikipedia.org/wiki/2026_Mindanao_earthquake"}],"editorial":true},{"id":"event-q2391429","year":1948,"title":"1948 Ashgabat earthquake","place":"Turkmenistan","region":"Asia","lat":37.95,"lon":58.32,"category":"Health & environment","article":"1948_Ashgabat_earthquake","body":"The 1948 Ashgabat earthquake was on 6 October with a surface-wave magnitude of 7.3 and a maximum Mercalli intensity of X (Extreme), in Turkmenistan near Ashgabat. Due to censorship by the Soviet government, the event was not widely reported in the Soviet media. Historians tend to agree that the ban on reporting the extent of the casualties and damage did not allow the Soviet government to allocate enough financial resources to respond adequately. It was the strongest earthquake recorded in Turkmenistan.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q2391429","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q2391429"},{"title":"1948 Ashgabat earthquake — background and references","url":"https://en.wikipedia.org/wiki/1948_Ashgabat_earthquake"}],"briefSource":{"title":"1948 Ashgabat earthquake","url":"https://en.wikipedia.org/wiki/1948_Ashgabat_earthquake","revision":1372311977,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1053476","year":1989,"title":"1989 Loma Prieta earthquake","place":"United States of America","region":"Americas","lat":37.04,"lon":-121.877,"category":"Health & environment","article":"1989_Loma_Prieta_earthquake","body":"On October 17, 1989, at 5:04 p.m. PDT, the Loma Prieta earthquake occurred on the Central Coast of California. The shock was centered in The Forest of Nisene Marks State Park in Santa Cruz County, approximately 10 miles (16 km) northeast of Santa Cruz on a section of the San Andreas Fault System and was named for the nearby Loma Prieta Peak in the Santa Cruz Mountains. With an Mw magnitude of 6.9 and a maximum Modified Mercalli intensity of IX (Violent), the shock was responsible for 63 deaths and 3,757 injuries.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1053476","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1053476"},{"title":"1989 Loma Prieta earthquake — background and references","url":"https://en.wikipedia.org/wiki/1989_Loma_Prieta_earthquake"}],"briefSource":{"title":"1989 Loma Prieta earthquake","url":"https://en.wikipedia.org/wiki/1989_Loma_Prieta_earthquake","revision":1383666442,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q2441400","year":2001,"title":"2001 Gujarat earthquake","place":"India","region":"Asia","lat":23.6,"lon":69.8,"category":"Health & environment","article":"2001_Gujarat_earthquake","body":"An earthquake struck India and Pakistan on 26 January 2001 at 08:46 am IST. The epicentre was about 9 km south-southwest of the village of Chobari in Bhachau Taluka of Kutch district in Gujarat, India. The earthquake had a maximum Mercalli intensity of XII (Extreme). The intraplate earthquake measured 7.6 on the moment magnitude scale and occurred at a depth of 17.4 km (10.8 mi). The earthquake killed at least 20,023 people, injured another 166,000 and destroyed about 400,000 buildings in Gujarat and the Pakistani province of Sindh.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q2441400","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q2441400"},{"title":"2001 Gujarat earthquake — background and references","url":"https://en.wikipedia.org/wiki/2001_Gujarat_earthquake"}],"briefSource":{"title":"2001 Gujarat earthquake","url":"https://en.wikipedia.org/wiki/2001_Gujarat_earthquake","revision":1375956797,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q714320","year":1999,"title":"1999 Jiji earthquake","place":"Taiwan","region":"Asia","lat":23.772,"lon":120.982,"category":"Health & environment","article":"1999_Jiji_earthquake","body":"The Chi-Chi earthquake (later also known as the Jiji earthquake, 921 Earthquake, or the great earthquake of September 21), was a 7.3 ML or 7.7 Mw earthquake which occurred in Jiji (Chi-Chi), Nantou County, Taiwan on September 21, 1999, at 01:47:12 local time. 2,415 people were killed, 11,305 injured, and NT$300 billion worth of damage was done. It is the second-deadliest earthquake in Taiwan's recorded history, after the 1935 Shinchiku-Taichū earthquake. Rescue groups from around the world joined local relief workers and the Taiwanese military in digging out survivors, clearing rubble, restoring essential services and distributing food and other aid to the more than 100,000 people made homeless by the quake.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q714320","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q714320"},{"title":"1999 Jiji earthquake — background and references","url":"https://en.wikipedia.org/wiki/1999_Jiji_earthquake"}],"briefSource":{"title":"1999 Jiji earthquake","url":"https://en.wikipedia.org/wiki/1999_Jiji_earthquake","revision":1379609572,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q38821","year":2012,"title":"2012 Northern Italy earthquakes","place":"Italy","region":"Europe","lat":44.8,"lon":11.192,"category":"Health & environment","article":"2012_Northern_Italy_earthquakes","body":"In May 2012, two major earthquakes struck Northern Italy, causing 27 deaths and widespread damage. The events are known in Italy as the 2012 Emilia earthquakes, because they mainly affected the Emilia region. The first earthquake, registering magnitude 6.0, struck in the Emilia-Romagna region, about 36 kilometres (22 miles) north of the city of Bologna, on 20 May at 04:03 local time (02:03 UTC). The epicentre was between Finale Emilia, Bondeno and Sermide. Two aftershocks of magnitude 5.2 occurred, one approximately an hour after the main event and another approximately eleven hours after the main event.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q38821","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q38821"},{"title":"2012 Northern Italy earthquakes — background and references","url":"https://en.wikipedia.org/wiki/2012_Northern_Italy_earthquakes"}],"briefSource":{"title":"2012 Northern Italy earthquakes","url":"https://en.wikipedia.org/wiki/2012_Northern_Italy_earthquakes","revision":1379988023,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q20978169","year":2015,"title":"2015 Illapel earthquake","place":"Representative location","region":"Asia","lat":-31.637,"lon":-71.741,"category":"Health & environment","article":"2015_Illapel_earthquake","body":"The 2015 Illapel earthquake occurred 46 km (29 mi) offshore from Illapel (Coquimbo region, Chile) on 16 September 2015 at 19:54:32 Chile Standard Time (22:54:32 UTC), with a moment magnitude of 8.3–8.4. The initial quake lasted between three and five minutes; it was followed by several aftershocks greater than magnitude six and two that exceeded magnitude seven. The Chilean government reported 15 deaths, 6 missing and thousands of people affected. In Buenos Aires, Argentina, a man died from a stroke while he was evacuating a building.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q20978169","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q20978169"},{"title":"2015 Illapel earthquake — background and references","url":"https://en.wikipedia.org/wiki/2015_Illapel_earthquake"}],"briefSource":{"title":"2015 Illapel earthquake","url":"https://en.wikipedia.org/wiki/2015_Illapel_earthquake","revision":1372294235,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q733739","year":1138,"title":"1138 Aleppo earthquake","place":"Syria","region":"Asia","lat":36.217,"lon":37.167,"category":"Health & environment","article":"1138_Aleppo_earthquake","body":"The earthquake that struck Aleppo and the rest of northern Syria on 11 October 1138 was among the deadliest earthquakes in history. The earthquake, preceded by a smaller one on 10 October, caused damage and chaos to many places in the area around Aleppo. It is frequently listed as the third deadliest earthquake in history, following on from the Shensi and Tangshan earthquakes in China. However, the figure of 230,000 deaths reported by Ibn Taghribirdi in the fifteenth century is most likely based on a historical conflation of this earthquake with earthquakes in November 1137 on the Jazira plain and the large seismic event of 30 September 1139 in the Transcaucasian city of Ganja.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q733739","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q733739"},{"title":"1138 Aleppo earthquake — background and references","url":"https://en.wikipedia.org/wiki/1138_Aleppo_earthquake"}],"briefSource":{"title":"1138 Aleppo earthquake","url":"https://en.wikipedia.org/wiki/1138_Aleppo_earthquake","revision":1375845620,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q750144","year":2010,"title":"2010 Canterbury earthquake","place":"Darfield","region":"Oceania","lat":-43.488,"lon":172.109,"category":"Health & environment","article":"2010_Canterbury_earthquake","body":"The 2010 Canterbury earthquake (also known as the Darfield earthquake) struck the South Island of New Zealand with a moment magnitude of 7.1 at 4:35 am local time on 4 September, and had a maximum perceived intensity of X (Extreme) on the Mercalli intensity scale. Some damaging aftershocks followed the main event, the strongest of which was a magnitude 6.3 shock known as the Christchurch earthquake that occurred nearly six months later on 22 February 2011. Because this aftershock was centred very close to Christchurch, it was much more destructive and resulted in the deaths of 185 people.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q750144","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q750144"},{"title":"2010 Canterbury earthquake — background and references","url":"https://en.wikipedia.org/wiki/2010_Canterbury_earthquake"}],"briefSource":{"title":"2010 Canterbury earthquake","url":"https://en.wikipedia.org/wiki/2010_Canterbury_earthquake","revision":1381907222,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q140735282","year":2026,"title":"2026 Kumamoto earthquake","place":"Japan","region":"Asia","lat":32.6,"lon":130.7,"category":"Health & environment","article":"2026_Kumamoto_earthquake","body":"An earthquake struck the Kumamoto region of Japan on July 28, 2026. Japan’s earthquake authorities reported a magnitude of 7.1 and severe local shaking; magnitude estimates differ between agencies and scales. The mainshock and aftershocks prompted emergency response and scientific investigation of the rupture. This entry uses the Japanese government’s event assessment.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q140735282","facts":[],"sources":[{"title":"Japan Earthquake Research Committee — Kumamoto assessment","url":"https://www.jishin.go.jp/main/chousa/26aug_kumamoto/index-e.htm"},{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q140735282"},{"title":"2026 Kumamoto earthquake — background and references","url":"https://en.wikipedia.org/wiki/2026_Kumamoto_earthquake"}],"editorial":true},{"id":"event-q751139","year":1977,"title":"1977 Vrancea earthquake","place":"Romania","region":"Europe","lat":45.77,"lon":26.76,"category":"Health & environment","article":"1977_Vrancea_earthquake","body":"The 1977 Vrancea earthquake occurred on 4 March 1977, at 21:22 local time, and was felt throughout the Balkans. It had a magnitude of 7.5, making it the second most powerful earthquake recorded in Romania in the 20th century, after the 10 November 1940 seismic event. The hypocenter was situated in the Vrancea Mountains, the most seismically active part of Romania, at a depth of 85.3 km. The earthquake killed about 1,578 people in Romania, 1,424 of them in Bucharest, and left more than 11,300 injured.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q751139","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q751139"},{"title":"1977 Vrancea earthquake — background and references","url":"https://en.wikipedia.org/wiki/1977_Vrancea_earthquake"}],"briefSource":{"title":"1977 Vrancea earthquake","url":"https://en.wikipedia.org/wiki/1977_Vrancea_earthquake","revision":1376183948,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1990627","year":2003,"title":"2003 Bam earthquake","place":"Iran","region":"Asia","lat":29,"lon":58.55,"category":"Health & environment","article":"2003_Bam_earthquake","body":"An earthquake struck the Kerman province of southeastern Iran at 01:56 UTC (5:26 am Iran Standard Time) on December 26, 2003. The Mw 6.6 (Ms 6.8–7.0) strike-slip shock had a maximum Mercalli intensity of X (Extreme). The earthquake was particularly destructive in Bam and Baravat, with 34,000 fatalities and 200,000 injuries officially reported. It was the deadliest natural disaster globally since the 1999 Vargas tragedy. The effects of the earthquake were exacerbated by the use of mud brick as the standard construction medium; many of the area's structures did not comply with earthquake regulations set in 1989.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1990627","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1990627"},{"title":"2003 Bam earthquake — background and references","url":"https://en.wikipedia.org/wiki/2003_Bam_earthquake"}],"briefSource":{"title":"2003 Bam earthquake","url":"https://en.wikipedia.org/wiki/2003_Bam_earthquake","revision":1366218029,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q842621","year":2010,"title":"2010 Pichilemu earthquakes","place":"Pichilemu","region":"Americas","lat":-34.385,"lon":-72.005,"category":"Health & environment","article":"2010_Pichilemu_earthquakes","body":"The 2010 Pichilemu earthquakes (Spanish: Terremoto de Pichilemu de 2010), also known as the Libertador O'Higgins earthquakes, were a pair of intraplate earthquakes measuring 6.9 and 7.0 Mw that struck Chile's O'Higgins Region on 11 March 2010 about 16 minutes apart. The earthquakes were centred 15 kilometres (9.3 mi) northwest of the city of Pichilemu. The earthquakes were caused by increased regional stress arising from an earthquake on 27 February, centered offshore Maule Region, which was felt throughout central Chile.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q842621","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q842621"},{"title":"2010 Pichilemu earthquakes — background and references","url":"https://en.wikipedia.org/wiki/2010_Pichilemu_earthquakes"}],"briefSource":{"title":"2010 Pichilemu earthquakes","url":"https://en.wikipedia.org/wiki/2010_Pichilemu_earthquakes","revision":1372901866,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1348954","year":365,"title":"365 Crete earthquake","place":"Representative location","region":"Asia","lat":35,"lon":23,"category":"Health & environment","article":"365_Crete_earthquake","body":"The 365 Crete earthquake occurred at about sunrise on 21 July 365 in the Eastern Mediterranean, with an assumed epicentre near Crete. Geologists today estimate the undersea earthquake to have been a moment magnitude 8.5 or higher. It caused widespread destruction in the central and southern Diocese of Macedonia (modern Greece), Africa Proconsularis (northern Libya), Egypt, Cyprus, Sicily, and Hispania (Spain). On Crete, nearly all towns were destroyed. The earthquake was followed by a tsunami which devastated the southern and eastern coasts of the Mediterranean, particularly Libya, Alexandria, and the Nile Delta, killing thousands and hurling ships 3 km (1.9 mi) inland.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q1348954","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1348954"},{"title":"365 Crete earthquake — background and references","url":"https://en.wikipedia.org/wiki/365_Crete_earthquake"}],"briefSource":{"title":"365 Crete earthquake","url":"https://en.wikipedia.org/wiki/365_Crete_earthquake","revision":1384174249,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q86929","year":2002,"title":"2002 European floods","place":"Germany","region":"Europe","lat":47,"lon":19,"category":"Health & environment","article":"2002_European_floods","body":"In August 2002, a week of intense rainfall produced flooding across a large portion of Europe. It reached the Czech Republic, Italy, Spain, Austria, Germany, Slovakia, Hungary, Romania, Bulgaria, Croatia, Ukraine and Russia. The event killed 232 people and left €27.7 billion (US$27.115 billion) in damage. The flood was of a magnitude expected to occur roughly once a century. Flood heights unknown since St. Mary Magdalene's flood were recorded.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q86929","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q86929"},{"title":"2002 European floods — background and references","url":"https://en.wikipedia.org/wiki/2002_European_floods"}],"briefSource":{"title":"2002 European floods","url":"https://en.wikipedia.org/wiki/2002_European_floods","revision":1384311199,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q629485","year":2007,"title":"2007 Chūetsu offshore earthquake","place":"Sado Strait","region":"Asia","lat":37.833,"lon":138.667,"category":"Health & environment","article":"2007_Chūetsu_offshore_earthquake","body":"A magnitude 6.6 earthquake occurred 10:13 local time (01:13 UTC) on July 16, 2007, at a previously unknown offshore fault in the northwest Niigata Prefecture of Japan. The city of Kashiwazaki and the villages of Iizuna and Kariwa registered the highest seismic intensity of a strong 6 on Japan's shindo scale, and the quake was felt as far away as Tokyo. Eleven deaths and at least 1,000 injuries were reported, and 342 buildings were completely destroyed, mostly older wooden structures.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q629485","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q629485"},{"title":"2007 Chūetsu offshore earthquake — background and references","url":"https://en.wikipedia.org/wiki/2007_Ch%C5%ABetsu_offshore_earthquake"}],"briefSource":{"title":"2007 Chūetsu offshore earthquake","url":"https://en.wikipedia.org/wiki/2007_Ch%C5%ABetsu_offshore_earthquake","revision":1376313916,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q150495","year":2011,"title":"2011 Shan earthquake","place":"Myanmar","region":"Asia","lat":20.705,"lon":99.949,"category":"Health & environment","article":"2011_Shan_earthquake","body":"The 2011 Shan earthquake occurred on 24 March in Shan State, Myanmar. The earthquake measured Mw 6.8 and had an epicenter northwest of the border between Myanmar, Thailand and Laos. It occurred in a region accommodating tectonic deformation brought by the collision between the Indo-Australian and Eurasian plates. Strike-slip faulting along the Nan Ma Fault was identified as the cause. There were between 75 and 151 fatalities; including one death in Thailand. An additional 212 people were injured.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q150495","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q150495"},{"title":"2011 Shan earthquake — background and references","url":"https://en.wikipedia.org/wiki/2011_Shan_earthquake"}],"briefSource":{"title":"2011 Shan earthquake","url":"https://en.wikipedia.org/wiki/2011_Shan_earthquake","revision":1366277301,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q123308737","year":2023,"title":"2023 Nepal earthquake","place":"Nepal","region":"Asia","lat":28.888,"lon":82.195,"category":"Health & environment","article":"2023_Nepal_earthquake","body":"A moment magnitude 5.7 earthquake struck Jajarkot, Karnali Province, Nepal, at 23:47 NPT (18:02 UTC) on 3 November 2023, killing 153 people and injuring at least 375. The earthquake was widely felt in western Nepal and northern India, and is the deadliest to strike the country since 2015.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q123308737","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q123308737"},{"title":"2023 Nepal earthquake — background and references","url":"https://en.wikipedia.org/wiki/2023_Nepal_earthquake"}],"briefSource":{"title":"2023 Nepal earthquake","url":"https://en.wikipedia.org/wiki/2023_Nepal_earthquake","revision":1366202666,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q3045050","year":1939,"title":"1939 Erzincan earthquake","place":"Erzincan Province","region":"Asia","lat":39.678,"lon":39.33,"category":"Health & environment","article":"1939_Erzincan_earthquake","body":"An earthquake struck Turkey's eastern Erzincan Province at 1:57:23 a.m. on 27 December 1939 local time with a moment magnitude (Mw) of 7.8 and maximum Mercalli intensity of XII (Extreme). It is tied with the 2023 Turkey–Syria earthquakes as the most powerful earthquake in Turkey to be recorded by instruments. However, it was less powerful than estimates of the 1668 North Anatolia earthquake. This was one of the largest in a sequence of violent shocks to affect Turkey along the North Anatolian Fault between 1939 and 1999.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q3045050","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q3045050"},{"title":"1939 Erzincan earthquake — background and references","url":"https://en.wikipedia.org/wiki/1939_Erzincan_earthquake"}],"briefSource":{"title":"1939 Erzincan earthquake","url":"https://en.wikipedia.org/wiki/1939_Erzincan_earthquake","revision":1366270866,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q3245204","year":1970,"title":"1970 Ancash earthquake","place":"Peru","region":"Americas","lat":-9.47,"lon":-78.31,"category":"Health & environment","article":"1970_Ancash_earthquake","body":"The 1970 Ancash earthquake (also known as the Great Peruvian earthquake) occurred on 31 May off the coast of Peru in the Pacific Ocean at 15:23:29 local time. Combined with a resultant landslide, it is the most catastrophic natural disaster in the history of Peru. Due to the large amounts of snow and ice included in the landslide that caused an estimated 66,794–70,000 fatalities, it is also considered to be the world's deadliest avalanche.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q3245204","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q3245204"},{"title":"1970 Ancash earthquake — background and references","url":"https://en.wikipedia.org/wiki/1970_Ancash_earthquake"}],"briefSource":{"title":"1970 Ancash earthquake","url":"https://en.wikipedia.org/wiki/1970_Ancash_earthquake","revision":1382001600,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q11158136","year":2013,"title":"2013 Saravan earthquake","place":"Iran","region":"Asia","lat":28.033,"lon":61.996,"category":"Health & environment","article":"2013_Saravan_earthquake","body":"The 2013 Saravan earthquake occurred with a moment magnitude of 7.7 at 15:14 pm IRDT (UTC+4:30) on 16 April. The shock struck a mountainous area between the cities of Saravan and Khash in Sistan and Balochistan province, Iran, close to the border with Pakistan, with a duration of about 25 seconds. The earthquake occurred at an intermediate depth in the Arabian plate lithosphere, near the boundary between the subducting Arabian plate and the overriding Eurasian plate at a depth of about 80 km.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q11158136","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q11158136"},{"title":"2013 Saravan earthquake — background and references","url":"https://en.wikipedia.org/wiki/2013_Saravan_earthquake"}],"briefSource":{"title":"2013 Saravan earthquake","url":"https://en.wikipedia.org/wiki/2013_Saravan_earthquake","revision":1374513630,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q113900838","year":2022,"title":"2022 Papua New Guinea earthquake","place":"Papua New Guinea","region":"Oceania","lat":-6.256,"lon":146.469,"category":"Health & environment","article":"2022_Papua_New_Guinea_earthquake","body":"On 11 September 2022, an earthquake of moment magnitude 7.6–7.7 struck Papua New Guinea, in the northern part of Morobe Province. The normal faulting earthquake occurred with a hypocenter depth of 116.0 km (72.1 mi) beneath the Finisterre Range. A maximum perceived Modified Mercalli intensity of VIII (Severe) was estimated. Shaking was widely felt across the country and even in neighbouring Indonesia. At least 21 people died and 42 were injured, mostly due to landslides.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q113900838","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q113900838"},{"title":"2022 Papua New Guinea earthquake — background and references","url":"https://en.wikipedia.org/wiki/2022_Papua_New_Guinea_earthquake"}],"briefSource":{"title":"2022 Papua New Guinea earthquake","url":"https://en.wikipedia.org/wiki/2022_Papua_New_Guinea_earthquake","revision":1376181447,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1348866","year":1920,"title":"1920 Haiyuan earthquake","place":"China","region":"Asia","lat":36.5,"lon":105.7,"category":"Health & environment","article":"1920_Haiyuan_earthquake","body":"The 1920 Haiyuan earthquake occurred in Haiyuan County, Ningxia Province, Republic of China at 19:05:53 (UTC+8) on 16 December 1920. It was also called the 1920 Gansu earthquake because Ningxia was a part of Gansu Province when the earthquake occurred. It caused destruction in the Lijunbu-Haiyuan-Ganyanchi area and was assigned the maximum intensity on the Mercalli intensity scale (XII Extreme). Estimates of the death toll range from 258,707 to 273,407, making it one of the deadliest earthquakes in China and disasters in China by death toll.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q1348866","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1348866"},{"title":"1920 Haiyuan earthquake — background and references","url":"https://en.wikipedia.org/wiki/1920_Haiyuan_earthquake"}],"briefSource":{"title":"1920 Haiyuan earthquake","url":"https://en.wikipedia.org/wiki/1920_Haiyuan_earthquake","revision":1383577793,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q921497","year":2009,"title":"2009 Samoa earthquake and tsunami","place":"Representative location","region":"Asia","lat":-15.509,"lon":-172.034,"category":"Health & environment","article":"2009_Samoa_earthquake_and_tsunami","body":"The 2009 Samoa earthquake and tsunami took place on 29 September 2009 in the southern Pacific Ocean adjacent to the Tonga–Kermadec subduction zone. The submarine earthquake occurred in an extensional environment and had a moment magnitude of 8.1 and a maximum Mercalli intensity of VI (Strong). It was the largest earthquake of 2009. The earthquake initiated with a normal-faulting event with a magnitude of 8.1. Within two minutes of the earthquake rupture, two large magnitude 7.8 earthquakes occurred on the subduction zone interface.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q921497","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q921497"},{"title":"2009 Samoa earthquake and tsunami — background and references","url":"https://en.wikipedia.org/wiki/2009_Samoa_earthquake_and_tsunami"}],"briefSource":{"title":"2009 Samoa earthquake and tsunami","url":"https://en.wikipedia.org/wiki/2009_Samoa_earthquake_and_tsunami","revision":1382768730,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q11547847","year":2013,"title":"2013 Lushan earthquake","place":"China","region":"Asia","lat":30.284,"lon":102.956,"category":"Health & environment","article":"2013_Lushan_earthquake","body":"The Lushan earthquake or Ya'an earthquake (Standard Tibetan: གཡག་རྔ་ཡི་ས་ཡོམ་, Yak-ngai Sayom) occurred at 08:02 Beijing Time (00:02 UTC) on April 20, 2013. The epicenter was located in Lushan County, Ya'an, Sichuan, about 116 km (72 mi) from Chengdu along the Longmenshan Fault in the same province heavily impacted by the 2008 Sichuan earthquake. The magnitude of the earthquake was placed at Ms 7.0 by China Earthquake Data Center, Ms 7.0 by Russian Academy of Sciences, Mw 7.0 by Geoscience Australia, Mw 6.6 by the United States Geological Survey (USGS), Mw 6.6 by the European Alert System (EMSC) and Mj 6.9 by the Japan Meteorological Agency (JMA). 1,815 aftershocks have been recorded as of 00:00 (UTC+8h) April 22.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q11547847","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q11547847"},{"title":"2013 Lushan earthquake — background and references","url":"https://en.wikipedia.org/wiki/2013_Lushan_earthquake"}],"briefSource":{"title":"2013 Lushan earthquake","url":"https://en.wikipedia.org/wiki/2013_Lushan_earthquake","revision":1377045858,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q123913022","year":2023,"title":"2023 Jishishan earthquake","place":"China","region":"Asia","lat":35.743,"lon":102.827,"category":"Health & environment","article":"2023_Jishishan_earthquake","body":"On 18 December 2023 at around 23:59:30 CST, an earthquake with a magnitude of 5.9–6.2 struck Jishishan County, in Gansu Province, China. The shallow thrust faulting earthquake struck a densely populated area on the border between the provinces of Gansu and Qinghai. It caused 151 deaths and 982 injuries to others. This made it China's deadliest earthquake since the 2014 Ludian earthquake.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q123913022","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q123913022"},{"title":"2023 Jishishan earthquake — background and references","url":"https://en.wikipedia.org/wiki/2023_Jishishan_earthquake"}],"briefSource":{"title":"2023 Jishishan earthquake","url":"https://en.wikipedia.org/wiki/2023_Jishishan_earthquake","revision":1381693254,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q14944216","year":2013,"title":"2013 Balochistan earthquakes","place":"Pakistan","region":"Asia","lat":27,"lon":65.514,"category":"Health & environment","article":"2013_Balochistan_earthquakes","body":"The 2013 Balochistan earthquakes were the deadliest to affect Pakistan since 2005. The mainshock, occurring on 24 September, had a moment magnitude of 7.8 and maximum Mercalli intensity of IX (Violent). It had an epicenter located in Awaran District, 113 km (70 mi) northwest of Bela. The mainshock killed over 820 people, injured hundreds of others, and left 100,000 people homeless. The Awaran District was among the worst affected with 80 percent of its housing stock damaged or destroyed.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q14944216","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q14944216"},{"title":"2013 Balochistan earthquakes — background and references","url":"https://en.wikipedia.org/wiki/2013_Balochistan_earthquakes"}],"briefSource":{"title":"2013 Balochistan earthquakes","url":"https://en.wikipedia.org/wiki/2013_Balochistan_earthquakes","revision":1369452948,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q17483279","year":2014,"title":"2014 Ludian earthquake","place":"Ludian County","region":"Asia","lat":27.195,"lon":103.551,"category":"Health & environment","article":"2014_Ludian_earthquake","body":"The 2014 Ludian earthquake struck Ludian County, Yunnan, China, with a moment magnitude of 6.2 on 3 August. The earthquake killed at least 615 people, injuring at least 2,400 others. At least 114 people remained missing. Over 12,000 houses collapsed and 30,000 were damaged. According to the United States Geological Survey, the earthquake occurred 29 km (18 mi) west-southwest of Zhaotong city at 16:30 local time (08:30 UTC).","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q17483279","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q17483279"},{"title":"2014 Ludian earthquake — background and references","url":"https://en.wikipedia.org/wiki/2014_Ludian_earthquake"}],"briefSource":{"title":"2014 Ludian earthquake","url":"https://en.wikipedia.org/wiki/2014_Ludian_earthquake","revision":1371970109,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q104828966","year":2021,"title":"2021 West Sulawesi earthquake","place":"Majene","region":"Asia","lat":-3.005,"lon":118.924,"category":"Health & environment","article":"2021_West_Sulawesi_earthquake","body":"A moment magnitude (Mw) 6.2 earthquake struck Majene Regency in West Sulawesi, Indonesia, on 15 January 2021, at 02:28 WITA (18:28 UTC). The reverse faulting shock initiated at 18.0 km (11.2 mi) depth with an epicenter inland, located 32 km (20 mi) south of Mamuju. It was preceded by a Mw 5.7 foreshock several hours prior. Shaking from the mainshock was assigned a maximum Modified Mercalli intensity of VI (Strong) in Majene and Mamuju. Four of the five regencies in West Sulawesi were affected.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q104828966","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q104828966"},{"title":"2021 West Sulawesi earthquake — background and references","url":"https://en.wikipedia.org/wiki/2021_West_Sulawesi_earthquake"}],"briefSource":{"title":"2021 West Sulawesi earthquake","url":"https://en.wikipedia.org/wiki/2021_West_Sulawesi_earthquake","revision":1376125665,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1188930","year":1509,"title":"1509 Constantinople earthquake","place":"Istanbul","region":"Asia","lat":40.8,"lon":28.1,"category":"Health & environment","article":"1509_Constantinople_earthquake","body":"The 1509 Constantinople earthquake, or historically Kıyamet-i Suğra ('Minor Judgment Day'), occurred in the Sea of Marmara on 10 September 1509 at about 22:00. The earthquake had an estimated magnitude of 7.2 ± 0.3 on the surface-wave magnitude scale. A tsunami and 45 days of aftershocks followed the earthquake. The exact death toll of this earthquake is unknown; estimates range between 1,000 and 13,000.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q1188930","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1188930"},{"title":"1509 Constantinople earthquake — background and references","url":"https://en.wikipedia.org/wiki/1509_Constantinople_earthquake"}],"briefSource":{"title":"1509 Constantinople earthquake","url":"https://en.wikipedia.org/wiki/1509_Constantinople_earthquake","revision":1380981610,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q2706283","year":1693,"title":"1693 Sicily earthquake","place":"Italy","region":"Europe","lat":37.14,"lon":15.013,"category":"Health & environment","article":"1693_Sicily_earthquake","body":"The 1693 Sicily earthquake was a natural disaster that struck parts of southern Italy near Sicily, then a territory part of the Crown of Aragon by the Kings of Spain Calabria and Malta, on 11 January at around 21:00 local time. This earthquake was preceded by a damaging foreshock on 9 January. The main quake had an estimated magnitude of 7.4 on the moment magnitude scale, the most powerful in recorded Italian history, and a maximum intensity of XI (Extreme) on the Mercalli intensity scale, destroying at least 70 towns and cities, seriously affecting an area of 5,600 square kilometres (2,200 sq mi) and causing the death of about 60,000 people.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q2706283","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q2706283"},{"title":"1693 Sicily earthquake — background and references","url":"https://en.wikipedia.org/wiki/1693_Sicily_earthquake"}],"briefSource":{"title":"1693 Sicily earthquake","url":"https://en.wikipedia.org/wiki/1693_Sicily_earthquake","revision":1377061044,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q541723","year":526,"title":"526 Antioch earthquake","place":"Antioch","region":"Asia","lat":36.23,"lon":36.12,"category":"Health & environment","article":"526_Antioch_earthquake","body":"The 526 Antioch earthquake struck Syria and, in particular, the city of Antioch in the Byzantine Empire. It occurred some time in late May 526, probably between 20 and 29 May, during mid-morning, killing approximately 250,000 people. This was in the seventh year of the reign of the Byzantine emperor Justin I and occurred under the consulship of Olybrius. In Antioch the earthquake was followed by a fire that destroyed most of the buildings left standing after the earthquake.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q541723","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q541723"},{"title":"526 Antioch earthquake — background and references","url":"https://en.wikipedia.org/wiki/526_Antioch_earthquake"}],"briefSource":{"title":"526 Antioch earthquake","url":"https://en.wikipedia.org/wiki/526_Antioch_earthquake","revision":1371735135,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q672705","year":1356,"title":"1356 Basel earthquake","place":"Switzerland","region":"Europe","lat":47.4,"lon":7.6,"category":"Health & environment","article":"1356_Basel_earthquake","body":"The 1356 Basel earthquake is the most significant seismological event to have occurred in Central Europe in recorded history and had a moment magnitude in the range of 6.0–7.1. This earthquake, which occurred on 18 October 1356, is also known as the Sankt-Lukas-Tag Erdbeben (English: Saint Luke's Day Earthquake), as 18 October is the feast day of Saint Luke the Evangelist.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q672705","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q672705"},{"title":"1356 Basel earthquake — background and references","url":"https://en.wikipedia.org/wiki/1356_Basel_earthquake"}],"briefSource":{"title":"1356 Basel earthquake","url":"https://en.wikipedia.org/wiki/1356_Basel_earthquake","revision":1382404375,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q138503695","year":2026,"title":"2026 Iran war","place":"Tehran","region":"Americas","lat":39.828,"lon":-98.579,"category":"Discovery","article":"2026_Iran_war","body":"The United States and Israel began strikes against Iran on February 28, 2026, initiating a wider regional war. Iranian attacks, fighting involving other regional actors, and disruption to shipping and energy markets broadened its effects. The conflict remained unresolved as of November 8, 2026. This is an ongoing event: the atlas records its beginning and the verified reporting date, rather than implying a completed outcome.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q138503695","facts":[{"label":"Part of","value":"Middle Eastern crisis (2023–present)"}],"sources":[{"title":"Associated Press — reporting through November 8, 2026","url":"https://apnews.com/article/090d96e25872f5c63e105b9dd3e5dc60"},{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q138503695"},{"title":"2026 Iran war — background and references","url":"https://en.wikipedia.org/wiki/2026_Iran_war"}],"editorial":true},{"id":"event-q15920546","year":2014,"title":"2014 Russian annexation of Crimea","place":"Crimea","region":"Europe","lat":45,"lon":34,"category":"Discovery","article":"2014_Russian_annexation_of_Crimea","body":"In February and March 2014, Russia invaded the Crimean Peninsula of Ukraine, occupied it, and then annexed it after an illegitimate referendum. This took place amid the uncertainty that immediately followed Ukraine's Revolution of Dignity. The invasion marked the beginning of the Russo-Ukrainian war. Crimea's annexation has been described as an instance of modern Russian imperialism. It was the first time since World War II that a European country had annexed part of another, and some analysts see the annexation as the beginning of a Second Cold War between Russia and the West.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q15920546","facts":[{"label":"Part of","value":"Russo-Ukrainian war"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q15920546"},{"title":"2014 Russian annexation of Crimea — background and references","url":"https://en.wikipedia.org/wiki/2014_Russian_annexation_of_Crimea"}],"briefSource":{"title":"2014 Russian annexation of Crimea","url":"https://en.wikipedia.org/wiki/2014_Russian_annexation_of_Crimea","revision":1383823150,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q17324420","year":2014,"title":"2014 Gaza War","place":"Gaza Strip","region":"Asia","lat":31,"lon":35,"category":"Discovery","article":"2014_Gaza_War","body":"The 2014 Gaza War, also known as Operation Protective Edge (Hebrew: מִבְצָע צוּק אֵיתָן, romanized: Miv'tza Tzuk Eitan, lit. 'Operation Strong Cliff'), and Battle of the Withered Grain , was a military operation launched by Israel on 8 July 2014 in the Gaza Strip, a Palestinian territory governed by Hamas since 2007 and which was occupied by Israel since 1967 until its disengagement in 2005. Following the kidnapping and murder of three Israeli teenagers in the West Bank by Palestinian militants, the Israel Defense Forces (IDF) initiated Operation Brother's Keeper, in which it killed 10 Palestinians, injured 130 and imprisoned more than 600.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q17324420","facts":[{"label":"Part of","value":"Gaza–Israel conflict"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q17324420"},{"title":"2014 Gaza War — background and references","url":"https://en.wikipedia.org/wiki/2014_Gaza_War"}],"briefSource":{"title":"2014 Gaza War","url":"https://en.wikipedia.org/wiki/2014_Gaza_War","revision":1383196933,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q208855","year":1919,"title":"Jallianwala Bagh massacre","place":"Jallianwala Bagh","region":"Asia","lat":31.621,"lon":74.881,"category":"Discovery","article":"Jallianwala_Bagh_massacre","body":"The Jallianwala Bagh massacre , also known as the Amritsar massacre, took place on 13 April 1919. A large crowd had gathered at the Jallianwala Bagh in Amritsar, Punjab, British India, during the annual Baisakhi fair to protest against the Rowlatt Act and the arrest of pro-Indian independence activists Saifuddin Kitchlew and Satyapal. In response to the public gathering, Brigadier-General Reginald Dyer surrounded the people with Gurkhas of Nepalese origin and Sikh infantrymen of the British Indian Army.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q208855","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q208855"},{"title":"Jallianwala Bagh massacre — background and references","url":"https://en.wikipedia.org/wiki/Jallianwala_Bagh_massacre"}],"briefSource":{"title":"Jallianwala Bagh massacre","url":"https://en.wikipedia.org/wiki/Jallianwala_Bagh_massacre","revision":1383109569,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q911972","year":1940,"title":"Dunkirk evacuation","place":"Dunkirk","region":"Asia","lat":51.058,"lon":2.358,"category":"Discovery","article":"Dunkirk_evacuation","body":"In the Dunkirk evacuation, codenamed Operation Dynamo and also known as the Miracle of Dunkirk, or just Dunkirk, more than 338,000 Allied soldiers were evacuated during the Second World War from the beaches and harbour of Dunkirk in northern France between 26 May and 4 June 1940. The operation began after large numbers of Belgian, British, and French troops (as well as smaller contingents of Dutch and Polish soldiers) were cut off and surrounded by German troops during the six-week Battle of France. After Germany invaded Poland in September 1939, France and the British Empire declared war on Germany and imposed an economic blockade.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q911972","facts":[{"label":"Part of","value":"Battle of France"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q911972"},{"title":"Dunkirk evacuation — background and references","url":"https://en.wikipedia.org/wiki/Dunkirk_evacuation"}],"briefSource":{"title":"Dunkirk evacuation","url":"https://en.wikipedia.org/wiki/Dunkirk_evacuation","revision":1382836101,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q194132","year":1942,"title":"Operation Torch","place":"French protectorate in Morocco","region":"Africa","lat":35.085,"lon":-2.029,"category":"Discovery","article":"Operation_Torch","body":"Operation Torch (8–16 November 1942) was an Allied invasion of French North Africa during World War II. Torch was a compromise operation that met the British objective of securing victory in North Africa while allowing American armed forces the opportunity to begin their fight against Nazi Germany and Fascist Italy on a limited scale. The French colonies were aligned with Germany via Vichy France but the loyalties of the population were mixed. Reports indicated that they might support the Allies.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q194132","facts":[{"label":"Part of","value":"World War II"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q194132"},{"title":"Operation Torch — background and references","url":"https://en.wikipedia.org/wiki/Operation_Torch"}],"briefSource":{"title":"Operation Torch","url":"https://en.wikipedia.org/wiki/Operation_Torch","revision":1381011893,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q19085","year":2011,"title":"Killing of Osama bin Laden","place":"Osama bin Laden's compound in Abbottabad (2005-2012)","region":"Asia","lat":34.169,"lon":73.242,"category":"Discovery","article":"Killing_of_Osama_bin_Laden","body":"On May 2, 2011, the United States conducted Operation Neptune Spear, in which SEAL Team Six shot and killed Osama bin Laden at his \\"Waziristan Haveli\\" in Abbottabad, Pakistan. Bin Laden, who founded al-Qaeda and orchestrated the September 11 attacks, had been the subject of a United States military manhunt since the beginning of the war in Afghanistan, but escaped to Pakistan—allegedly with Pakistani support—during or after the Battle of Tora Bora in December 2001. The mission was part of an effort led by the Central Intelligence Agency (CIA), with the Joint Special Operations Command (JSOC) coordinating the special mission units involved in the raid.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q19085","facts":[{"label":"Part of","value":"Operation Neptune Spear"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q19085"},{"title":"Killing of Osama bin Laden — background and references","url":"https://en.wikipedia.org/wiki/Killing_of_Osama_bin_Laden"}],"briefSource":{"title":"Killing of Osama bin Laden","url":"https://en.wikipedia.org/wiki/Killing_of_Osama_bin_Laden","revision":1383775901,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q155008","year":1942,"title":"Operation Uranus","place":"Volgograd","region":"Europe","lat":48.7,"lon":44.517,"category":"Discovery","article":"Operation_Uranus","body":"Operation Uranus (19–23 November 1942) was a Soviet strategic operation on the Eastern Front of World War II which led to the encirclement of Axis forces in the vicinity of Stalingrad: the German Sixth Army, the Third and Fourth Romanian armies, and portions of the German Fourth Panzer Army. The Red Army carried out the operation at roughly the midpoint of the five-month long Battle of Stalingrad, aiming to destroy German forces in and around Stalingrad. Planning for Operation Uranus had commenced in September 1942, and developed simultaneously with plans to envelop and destroy German Army Group Center (Operation Mars) and German forces in the Caucasus.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q155008","facts":[{"label":"Part of","value":"Battle of Stalingrad"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q155008"},{"title":"Operation Uranus — background and references","url":"https://en.wikipedia.org/wiki/Operation_Uranus"}],"briefSource":{"title":"Operation Uranus","url":"https://en.wikipedia.org/wiki/Operation_Uranus","revision":1381821363,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q2888837","year":1941,"title":"German invasion of Greece","place":"Kingdom of Greece","region":"Europe","lat":38.5,"lon":23,"category":"Discovery","article":"German_invasion_of_Greece","body":"The German invasion of Greece or Operation Marita , were the attacks on Greece by Italy and Germany during World War II. The Italian invasion in October 1940, which is usually known as the Greco-Italian War, was followed by the German invasion in April 1941. German landings on the island of Crete (May 1941) came after Allied forces had been defeated in mainland Greece. These battles were part of the greater Balkans Campaign of the Axis powers and their associates.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q2888837","facts":[{"label":"Part of","value":"World War II in the Balkans"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q2888837"},{"title":"German invasion of Greece — background and references","url":"https://en.wikipedia.org/wiki/German_invasion_of_Greece"}],"briefSource":{"title":"German invasion of Greece","url":"https://en.wikipedia.org/wiki/German_invasion_of_Greece","revision":1383171623,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q70207089","year":2019,"title":"2019 Turkish offensive into northeastern Syria","place":"Democratic Autonomous Administration of North and East Syria","region":"Asia","lat":37.05,"lon":41.25,"category":"Discovery","article":"2019_Turkish_offensive_into_northeastern_Syria","body":"Operation Peace Spring (Turkish: Barış Pınarı Harekâtı) was a joint operation by the Turkish Armed Forces (TAF) and the Syrian National Army (SNA) against the Syrian Democratic Forces (SDF), later involving the Syrian Arab Army (SAA), in northeastern Syria. On 6 October 2019, the Trump administration ordered American troops to withdraw from northeastern Syria, where the United States had been supporting its Kurdish allies. The military operation began on 9 October 2019 when the Turkish Air Force launched airstrikes on border towns.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q70207089","facts":[{"label":"Part of","value":"Turkish involvement in the Syrian civil war"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q70207089"},{"title":"2019 Turkish offensive into northeastern Syria — background and references","url":"https://en.wikipedia.org/wiki/2019_Turkish_offensive_into_northeastern_Syria"}],"briefSource":{"title":"2019 Turkish offensive into northeastern Syria","url":"https://en.wikipedia.org/wiki/2019_Turkish_offensive_into_northeastern_Syria","revision":1375100113,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q25980","year":1939,"title":"Gleiwitz incident","place":"Gliwice","region":"Europe","lat":50.313,"lon":18.689,"category":"Discovery","article":"Gleiwitz_incident","body":"The Gleiwitz incident, or Gliwice incident , was a false flag attack on the radio station Sender Gleiwitz in Gleiwitz (then Germany and now Gliwice, Poland) staged by Nazi Germany on the night of 31 August 1939. Along with some two dozen similar incidents, the attack was manufactured by Germany as a casus belli to justify the invasion of Poland. Despite the German government using the attack as a justification to go to war with Poland, the Gleiwitz assailants were not Polish but were German SS officers wearing Polish uniforms.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q25980","facts":[{"label":"Part of","value":"Operation Himmler"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q25980"},{"title":"Gleiwitz incident — background and references","url":"https://en.wikipedia.org/wiki/Gleiwitz_incident"}],"briefSource":{"title":"Gleiwitz incident","url":"https://en.wikipedia.org/wiki/Gleiwitz_incident","revision":1376535943,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q379433","year":1945,"title":"Operation Kikusui I","place":"Pacific Ocean","region":"Asia","lat":30.367,"lon":128.067,"category":"Discovery","article":"Operation_Kikusui_I","body":"Operation Kikusui I (菊水作戦, Kikusui Sakusen 1; Operation Chrysanthemum Water 1), best known as Operation Ten-Go (天号作戦, Ten-Gō Sakusen), literally Operation Heaven and in Japanese sources as the Battle off Cape Bono (坊ノ岬沖海戦, Bōno Misaki Oki-Kaisen) was the last major Japanese naval operation in the Pacific Theater of World War II. In April 1945, the Japanese battleship Yamato, the largest battleship in the world, and nine other Japanese warships, embarked from Japan for a suicide attack on Allied forces engaged in the Battle of Okinawa. The Japanese force was attacked by U.S. carrier-borne aircraft before it could reach Okinawa; Yamato and five other Japanese warships were sunk, while 10 American aircraft were shot down.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q379433","facts":[{"label":"Part of","value":"Pacific War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q379433"},{"title":"Operation Kikusui I — background and references","url":"https://en.wikipedia.org/wiki/Operation_Kikusui_I"}],"briefSource":{"title":"Operation Kikusui I","url":"https://en.wikipedia.org/wiki/Operation_Kikusui_I","revision":1381376843,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q155995","year":1945,"title":"Operation Spring Awakening","place":"Lake Balaton","region":"Europe","lat":46.983,"lon":18.35,"category":"Discovery","article":"Operation_Spring_Awakening","body":"Operation Spring Awakening was the last major German offensive of World War II. The operation was referred to in Germany as the Plattensee Offensive and in the Soviet Union as the Balaton Defensive Operation. It took place in Western Hungary on the Eastern Front and lasted from 6 March until 15 March 1945. The objective was to secure the last significant oil reserves still available to the European Axis powers and prevent the Red Army from advancing towards Vienna.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q155995","facts":[{"label":"Part of","value":"World War II"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q155995"},{"title":"Operation Spring Awakening — background and references","url":"https://en.wikipedia.org/wiki/Operation_Spring_Awakening"}],"briefSource":{"title":"Operation Spring Awakening","url":"https://en.wikipedia.org/wiki/Operation_Spring_Awakening","revision":1370699805,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1987713","year":1984,"title":"Operation Blue Star","place":"India","region":"Asia","lat":31.62,"lon":74.877,"category":"Discovery","article":"Operation_Blue_Star","body":"Operation Blue Star was a military operation by the Indian Armed Forces conducted between 1 and 10 June 1984, with the stated objective of removing Damdami Taksal leader Jarnail Singh Bhindranwale and militants from the buildings of the Golden Temple, the holiest site of Sikhism, in Amritsar. The Shiromani Akali Dal political party and other Sikh factions had been based there during the course of the Dharam Yudh Morcha. The operation would mark the beginning of the Insurgency in Punjab, India.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q1987713","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1987713"},{"title":"Operation Blue Star — background and references","url":"https://en.wikipedia.org/wiki/Operation_Blue_Star"}],"briefSource":{"title":"Operation Blue Star","url":"https://en.wikipedia.org/wiki/Operation_Blue_Star","revision":1384397759,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q114492886","year":2022,"title":"2022 Crimean Bridge explosion","place":"Crimean Bridge","region":"Asia","lat":45.301,"lon":36.513,"category":"Discovery","article":"2022_Crimean_Bridge_explosion","body":"The 2022 Crimean Bridge explosion occurred on 8 October 2022, at 6:07 a.m. A fire broke out on the Crimean Bridge as a result of an explosion of a bomb that had been loaded onto a truck. The explosion occurred on the road bridge, on the westbound vehicle lanes, from Russia to Kerch in Russian-occupied Crimea. The explosion caused two two-lane vehicular spans of the bridge to collapse into the water; two adjacent eastbound lanes on a separate structure survived.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q114492886","facts":[{"label":"Part of","value":"Crimea attacks"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q114492886"},{"title":"2022 Crimean Bridge explosion — background and references","url":"https://en.wikipedia.org/wiki/2022_Crimean_Bridge_explosion"}],"briefSource":{"title":"2022 Crimean Bridge explosion","url":"https://en.wikipedia.org/wiki/2022_Crimean_Bridge_explosion","revision":1383824267,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q119123254","year":2023,"title":"Destruction of the Kakhovka Dam","place":"Kakhovka Dam","region":"Europe","lat":46.5,"lon":34,"category":"Discovery","article":"Destruction_of_the_Kakhovka_Dam","body":"The Kakhovka Dam was breached in the early hours of 6 June 2023, causing extensive flooding along the lower Dnieper river, also called the Dnipro, in Kherson Oblast. The dam was under the control of the Russian military, which had seized it in the early days of the Russian invasion of Ukraine. Many experts concluded that Russian forces likely blew up a segment of the dam to hinder the planned Ukrainian counter-offensive, and Ukraine specifically blamed Russia's 205th Separate Guards Motor Rifle Brigade.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q119123254","facts":[{"label":"Part of","value":"Dnieper campaign"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q119123254"},{"title":"Destruction of the Kakhovka Dam — background and references","url":"https://en.wikipedia.org/wiki/Destruction_of_the_Kakhovka_Dam"}],"briefSource":{"title":"Destruction of the Kakhovka Dam","url":"https://en.wikipedia.org/wiki/Destruction_of_the_Kakhovka_Dam","revision":1383068607,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q922661","year":1986,"title":"1986 United States bombing of Libya","place":"Libya","region":"Africa","lat":27,"lon":17,"category":"Discovery","article":"1986_United_States_bombing_of_Libya","body":"The United States Air Force (USAF), Navy, and Marine Corps carried out air strikes, code-named Operation El Dorado Canyon, against Libya on 15 April 1986 in retaliation for the West Berlin discotheque bombing ten days earlier, which U.S. president Ronald Reagan blamed on Libyan leader Muammar Gaddafi. There were 40 reported Libyan casualties; one U.S. plane was shot down. One of the claimed Libyan deaths was of a baby girl, reported to be Gaddafi's daughter, Hana Gaddafi.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q922661","facts":[{"label":"Part of","value":"Cold War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q922661"},{"title":"1986 United States bombing of Libya — background and references","url":"https://en.wikipedia.org/wiki/1986_United_States_bombing_of_Libya"}],"briefSource":{"title":"1986 United States bombing of Libya","url":"https://en.wikipedia.org/wiki/1986_United_States_bombing_of_Libya","revision":1384171162,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q311787","year":1942,"title":"Operation Mars","place":"Rzhev","region":"Europe","lat":56.266,"lon":34.328,"category":"Discovery","article":"Operation_Mars","body":"Operation Mars , also known as the Second Rzhev-Sychevka Offensive Operation , was the codename for an offensive launched by Soviet forces against German forces during World War II. It took place between 25 November and 20 December 1942 around the Rzhev salient in the vicinity of Moscow. The offensive was a joint operation of the Soviet Western Front and Kalinin Front co-ordinated by Georgy Zhukov. The offensive was one in a series of particularly bloody engagements that are collectively known in Soviet and Russian histories as the Battles of Rzhev, which occurred near Rzhev, Sychevka and Vyazma between January 1942 and March 1943.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q311787","facts":[{"label":"Part of","value":"Battles of Rzhev"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q311787"},{"title":"Operation Mars — background and references","url":"https://en.wikipedia.org/wiki/Operation_Mars"}],"briefSource":{"title":"Operation Mars","url":"https://en.wikipedia.org/wiki/Operation_Mars","revision":1380798037,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q10858950","year":1942,"title":"Assassination of Reinhard Heydrich","place":"Czechia","region":"Europe","lat":50.118,"lon":14.464,"category":"Discovery","article":"Assassination_of_Reinhard_Heydrich","body":"Reinhard Heydrich, the commander of the German Reich Security Main Office (RSHA), the acting Reichsprotektor of the Protectorate of Bohemia and Moravia and a principal architect of the Holocaust, was attacked during the Second World War in a coordinated operation by the Czechoslovak resistance. The assassination attempt, code-named Operation Anthropoid, was carried out by resistance operatives Jozef Gabčík and Jan Kubiš on 27 May 1942. Heydrich was wounded in the attack and he died 8 days later of his injuries.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q10858950","facts":[{"label":"Part of","value":"Operation Anthropoid"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q10858950"},{"title":"Assassination of Reinhard Heydrich — background and references","url":"https://en.wikipedia.org/wiki/Assassination_of_Reinhard_Heydrich"}],"briefSource":{"title":"Assassination of Reinhard Heydrich","url":"https://en.wikipedia.org/wiki/Assassination_of_Reinhard_Heydrich","revision":1378889929,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1130522","year":1943,"title":"Operation Mincemeat","place":"Spain","region":"Europe","lat":40.2,"lon":-3.5,"category":"Discovery","article":"Operation_Mincemeat","body":"Operation Mincemeat was a successful British deception operation of the Second World War to disguise the 1943 Allied invasion of Sicily. Two members of British intelligence obtained the body of Glyndwr Michael, a tramp who died from eating rat poison, dressed him as an officer of the Royal Marines and placed personal items on him identifying him as the fictitious Captain (Acting Major) William Martin. Correspondence between two British generals that suggested that the Allies planned to invade Greece and Sardinia, with Sicily as merely the target of a feint, was also placed on the body.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q1130522","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1130522"},{"title":"Operation Mincemeat — background and references","url":"https://en.wikipedia.org/wiki/Operation_Mincemeat"}],"briefSource":{"title":"Operation Mincemeat","url":"https://en.wikipedia.org/wiki/Operation_Mincemeat","revision":1383949734,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1814446","year":1946,"title":"King David Hotel bombing","place":"King David Hotel","region":"Asia","lat":31.774,"lon":35.223,"category":"Discovery","article":"King_David_Hotel_bombing","body":"The British administrative headquarters for Mandatory Palestine, housed in the southern wing of the King David Hotel in Jerusalem, were bombed in a terrorist attack on 22 July 1946, by the militant right-wing Zionist underground organization Irgun during the Jewish insurgency. 91 people of various nationalities were killed, including Arabs, Britons and Jews, and 46 were injured. The hotel was the site of the central offices of the British Mandatory authorities of Palestine, principally the Secretariat of the Government of Palestine and the Headquarters of the British Armed Forces in Palestine and Transjordan. When planned, the attack had the approval of the Haganah, the principal Jewish paramilitary group in Palestine, though, unbeknownst to the Irgun, this had been cancelled by the time the operation was carried out.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1814446","facts":[{"label":"Part of","value":"Jewish insurgency in Mandatory Palestine"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1814446"},{"title":"King David Hotel bombing — background and references","url":"https://en.wikipedia.org/wiki/King_David_Hotel_bombing"}],"briefSource":{"title":"King David Hotel bombing","url":"https://en.wikipedia.org/wiki/King_David_Hotel_bombing","revision":1383111341,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q702638","year":1939,"title":"Operation Tannenberg","place":"General Government","region":"Europe","lat":50.055,"lon":19.937,"category":"Discovery","article":"Operation_Tannenberg","body":"Operation Tannenberg was one of the first anti-Polish extermination actions by Nazi Germany in German-occupied Poland from September 1939 to January 1940. The operation was conducted with the use of the Sonderfahndungsbuch Polen, a proscription list of more than 61,000 members of the Second Polish Republic's elite who were to be arrested then interned or shot. Around 20,000 Poles were arrested and killed by the Einsatzgruppen in a number of mass killings during Operation Tannenberg, which was followed by the shooting and gassing of hospital patients and disabled adults as part of the wider Aktion T4 programme.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q702638","facts":[{"label":"Part of","value":"World War II"},{"label":"End year","value":"1940"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q702638"},{"title":"Operation Tannenberg — background and references","url":"https://en.wikipedia.org/wiki/Operation_Tannenberg"}],"briefSource":{"title":"Operation Tannenberg","url":"https://en.wikipedia.org/wiki/Operation_Tannenberg","revision":1383078034,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q626191","year":1961,"title":"Indian annexation of Goa","place":"Portuguese India","region":"Asia","lat":2.189,"lon":102.384,"category":"Discovery","article":"Indian_annexation_of_Goa","body":"The Republic of India annexed the Portuguese State of India, the then Portuguese Indian territories of Goa, Daman and Diu, starting with the armed action carried out by the Indian Armed Forces in December 1961. In India, this action is referred to as the \\"Liberation of Goa\\". In Portugal, it is referred to as the \\"Invasion of Goa\\". Jawaharlal Nehru had hoped that the popular movement in Goa and the pressure of world public opinion would force the Portuguese Goan authorities to grant it independence, but without success; consequently, Krishna Menon suggested taking Goa by force.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q626191","facts":[{"label":"Part of","value":"Portuguese Colonial War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q626191"},{"title":"Indian annexation of Goa — background and references","url":"https://en.wikipedia.org/wiki/Indian_annexation_of_Goa"}],"briefSource":{"title":"Indian annexation of Goa","url":"https://en.wikipedia.org/wiki/Indian_annexation_of_Goa","revision":1381402298,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q574543","year":2007,"title":"Operation Outside the Box","place":"Syria","region":"Asia","lat":35.708,"lon":39.834,"category":"Discovery","article":"Operation_Outside_the_Box","body":"Operation Outside the Box, also known as Operation Orchard, was an Israeli airstrike on a confirmed nuclear reactor under construction, referred to as the Al Kibar site (also referred to in IAEA documents as Dair Alzour), in the Deir ez-Zor region of Syria, which occurred just after midnight (local time) on 6 September 2007. In 2026 it was established the Syrians held 27 tons of nuclear materials associated to the site, including yellow cake, and the Trump administration, Israel and Syria negotiated a deal to remove it from Syria. The Israeli and U.S. governments did not announce the secret raids for seven months.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q574543","facts":[{"label":"Part of","value":"Arab–Israeli conflict"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q574543"},{"title":"Operation Outside the Box — background and references","url":"https://en.wikipedia.org/wiki/Operation_Outside_the_Box"}],"briefSource":{"title":"Operation Outside the Box","url":"https://en.wikipedia.org/wiki/Operation_Outside_the_Box","revision":1381151010,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q572676","year":1942,"title":"St Nazaire Raid","place":"Saint-Nazaire","region":"Asia","lat":47.275,"lon":-2.197,"category":"Discovery","article":"St_Nazaire_Raid","body":"The St Nazaire Raid or Operation Chariot was a British amphibious attack on the heavily defended Normandie dry dock at St Nazaire in German-occupied France during the Second World War. The operation was undertaken by the Royal Navy (RN) and British Commandos under the auspices of Combined Operations Headquarters on 28 March 1942. St Nazaire was attacked because the loss of its dry dock would force Germany's largest battleship, Tirpitz, to return to home waters if she were damaged.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q572676","facts":[{"label":"Part of","value":"Battle of the Atlantic"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q572676"},{"title":"St Nazaire Raid — background and references","url":"https://en.wikipedia.org/wiki/St_Nazaire_Raid"}],"briefSource":{"title":"St Nazaire Raid","url":"https://en.wikipedia.org/wiki/St_Nazaire_Raid","revision":1377247830,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q859612","year":1942,"title":"Channel Dash","place":"English Channel","region":"Asia","lat":50.979,"lon":1.736,"category":"Discovery","article":"Channel_Dash","body":"The Channel Dash was a German naval operation during the Second World War. A Kriegsmarine (German Navy) squadron, comprising the two Scharnhorst-class battleships, Scharnhorst and Gneisenau, the heavy cruiser Prinz Eugen and their escorts was evacuated from Brest in Brittany to German ports. Scharnhorst and Gneisenau had arrived in Brest on 22 March 1941 after the success of Operation Berlin in the Atlantic. More raids were planned and the ships were refitted at Brest. The ships were a threat to Allied trans-Atlantic convoys and RAF Bomber Command attacked them from 30 March 1941.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q859612","facts":[{"label":"Part of","value":"Battle of the Atlantic"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q859612"},{"title":"Channel Dash — background and references","url":"https://en.wikipedia.org/wiki/Channel_Dash"}],"briefSource":{"title":"Channel Dash","url":"https://en.wikipedia.org/wiki/Channel_Dash","revision":1375525536,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q975430","year":1979,"title":"Operation Storm-333","place":"Tajbeg Palace","region":"Asia","lat":34.455,"lon":69.113,"category":"Discovery","article":"Operation_Storm-333","body":"Operation Storm-333 was a military raid executed by the Soviet Union in Afghanistan on 27 December 1979. Special forces and airborne troops stormed the heavily fortified Tajbeg Palace in Kabul and assassinated Afghan leader Hafizullah Amin, a Khalqist of the People's Democratic Party of Afghanistan (PDPA) who had taken power in the Saur Revolution of April 1978. It was the start of the Soviet–Afghan War. The assassination of Amin was part of a larger Soviet plan to secure and take control of Afghanistan with support from the PDPA's Parcham faction, which opposed the hardline ideology espoused by the rival Khalq faction; a number of Soviet troops crossed the Amu Darya and entered Afghanistan by land while others flew to airbases around the country with exiled Parchamis in preparation for the assassination.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q975430","facts":[{"label":"Part of","value":"Soviet-Afghan War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q975430"},{"title":"Operation Storm-333 — background and references","url":"https://en.wikipedia.org/wiki/Operation_Storm-333"}],"briefSource":{"title":"Operation Storm-333","url":"https://en.wikipedia.org/wiki/Operation_Storm-333","revision":1375961777,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q130374882","year":2024,"title":"2024 Hezbollah headquarters strike","place":"Haret Hreik","region":"Asia","lat":33.851,"lon":35.504,"category":"Discovery","article":"2024_Hezbollah_headquarters_strike","body":"On 27 September 2024, Hassan Nasrallah, the secretary-general of Hezbollah, was assassinated in an Israeli airstrike in Beirut. The strike took place while Hezbollah leaders were meeting at a headquarters located 60 feet (18 m) underground beneath residential buildings in Haret Hreik in the Dahieh suburb. Conducted by the Israeli Air Force using F-15I fighters, the operation involved dropping more than 80 bombs, destroying the underground headquarters as well as nearby buildings. The Israel Defense Forces (IDF) codenamed the operation \\"New Order\\" (Hebrew: סדר חדש, romanized: Seder Hadash).","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q130374882","facts":[{"label":"Part of","value":"Gaza War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q130374882"},{"title":"2024 Hezbollah headquarters strike — background and references","url":"https://en.wikipedia.org/wiki/2024_Hezbollah_headquarters_strike"}],"briefSource":{"title":"2024 Hezbollah headquarters strike","url":"https://en.wikipedia.org/wiki/2024_Hezbollah_headquarters_strike","revision":1384123098,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q682399","year":1941,"title":"Operation Battleaxe","place":"Cyrenaica","region":"Africa","lat":31.504,"lon":25.115,"category":"Discovery","article":"Operation_Battleaxe","body":"Operation Battleaxe (15–17 June 1941) was a British Army offensive during the Second World War to raise the Siege of Tobruk and re-capture eastern Cyrenaica from German and Italian forces. It was the first time during the war that a significant German force fought on the defensive. The British lost over half of their tanks on the first day and only one of three attacks succeeded. The British achieved mixed results on the second day, being pushed back on their western flank and repulsing a big German counter-attack in the centre.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q682399","facts":[{"label":"Part of","value":"North African campaign"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q682399"},{"title":"Operation Battleaxe — background and references","url":"https://en.wikipedia.org/wiki/Operation_Battleaxe"}],"briefSource":{"title":"Operation Battleaxe","url":"https://en.wikipedia.org/wiki/Operation_Battleaxe","revision":1370630903,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1360624","year":1945,"title":"Operation Varsity","place":"Wesel","region":"Europe","lat":51.703,"lon":6.603,"category":"Discovery","article":"Operation_Varsity","body":"Operation Varsity (24 March 1945) was a successful airborne forces operation launched by Allied forces toward the end of World War II. Involving more than 16,000 paratroopers and several thousand aircraft, it is the largest airborne operation ever conducted on a single day and in one location. Varsity was part of Operation Plunder, the Anglo-American-Canadian effort, led by Field Marshal Bernard Montgomery, to cross the northern Rhine River and from there enter Northern Germany. To help British ground forces secure a foothold across the Issel and Rhine rivers in western Germany, Varsity landed two airborne divisions on the Rhine's eastern bank near the village of Hamminkeln and the town of Wesel.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1360624","facts":[{"label":"Part of","value":"Operation Plunder"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1360624"},{"title":"Operation Varsity — background and references","url":"https://en.wikipedia.org/wiki/Operation_Varsity"}],"briefSource":{"title":"Operation Varsity","url":"https://en.wikipedia.org/wiki/Operation_Varsity","revision":1382958424,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1327861","year":1998,"title":"1998 bombing of Iraq","place":"Iraq","region":"Asia","lat":33,"lon":43,"category":"Discovery","article":"1998_bombing_of_Iraq","body":"The 1998 bombing of Iraq (code-named Operation Desert Fox) was a major bombing campaign against Iraqi targets, from 16 to 19 December 1998, by the United States and the United Kingdom. On 16 December 1998, U.S. President Bill Clinton announced that he had ordered strikes against Iraq. The strikes were launched due to Iraq's failure to comply with United Nations Security Council resolutions and its interference with United Nations inspectors that were searching for potential weapons of mass destruction.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1327861","facts":[{"label":"Part of","value":"Iraqi no-fly zones conflict"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1327861"},{"title":"1998 bombing of Iraq — background and references","url":"https://en.wikipedia.org/wiki/1998_bombing_of_Iraq"}],"briefSource":{"title":"1998 bombing of Iraq","url":"https://en.wikipedia.org/wiki/1998_bombing_of_Iraq","revision":1371844510,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q698771","year":2008,"title":"Operation Atalanta","place":"Gulf of Aden","region":"Asia","lat":12,"lon":48,"category":"Discovery","article":"Operation_Atalanta","body":"Operation Atalanta, formally EUNAVFOR ATALANTA, is an ongoing European Union (EU) military operation contributing to maritime security in the West Indian Ocean and the Red Sea. Launched on 8 December 2008 as the EU’s first naval operation, it was initially established to protect World Food Programme (WFP) vessels and other vulnerable shipping, and to deter, prevent and repress piracy and armed robbery off Somalia. The operation is commanded from its Operational Headquarters in Rota, Spain, and its current mandate runs until 28 February 2027.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q698771","facts":[{"label":"Part of","value":"piracy off the coast of Somalia"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q698771"},{"title":"Operation Atalanta — background and references","url":"https://en.wikipedia.org/wiki/Operation_Atalanta"}],"briefSource":{"title":"Operation Atalanta","url":"https://en.wikipedia.org/wiki/Operation_Atalanta","revision":1380310845,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q18357664","year":2014,"title":"Operation Inherent Resolve","place":"Iraq","region":"Asia","lat":33,"lon":43,"category":"Discovery","article":"Operation_Inherent_Resolve","body":"Operation Inherent Resolve (OIR) is the United States military's operational name for the international war against the Islamic State (IS) including both a campaign in Iraq and a campaign in Syria, with a closely related campaign in Libya. Through 18 September 2018, the U.S. Army's III Armored Corps was responsible for Combined Joint Task Force – Operation Inherent Resolve (CJTF—OIR) and were replaced by the XVIII Airborne Corps. The campaign was primarily waged by American and British forces in support of local allies, most prominently the Iraqi Security Forces (ISF) and Syrian Democratic Forces (SDF).","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q18357664","facts":[{"label":"Part of","value":"War against the Islamic State"},{"label":"End year","value":"2026"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q18357664"},{"title":"Operation Inherent Resolve — background and references","url":"https://en.wikipedia.org/wiki/Operation_Inherent_Resolve"}],"briefSource":{"title":"Operation Inherent Resolve","url":"https://en.wikipedia.org/wiki/Operation_Inherent_Resolve","revision":1383669464,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1059658","year":1944,"title":"German invasion of Hungary (1944)","place":"Hungary","region":"Europe","lat":47,"lon":19,"category":"Discovery","article":"German_invasion_of_Hungary_(1944)","body":"German forces occupied Hungary on March 19, 1944, as Nazi leaders sought to keep their ally from leaving the war. The occupation brought a more compliant government to power and sharply intensified persecution of Hungary’s Jews. German officials and Hungarian authorities subsequently organized mass deportations, many to Auschwitz. The invasion therefore marked both a loss of Hungarian political autonomy and a catastrophic escalation of the Holocaust in the country.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1059658","facts":[],"sources":[{"title":"United States Holocaust Memorial Museum — The Holocaust in Hungary","url":"https://encyclopedia.ushmm.org/content/en/article/the-holocaust-in-hungary"},{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1059658"},{"title":"German invasion of Hungary (1944) — background and references","url":"https://en.wikipedia.org/wiki/German_invasion_of_Hungary_(1944)"}],"editorial":true},{"id":"event-q697403","year":1945,"title":"Operation Plunder","place":"North Rhine-Westphalia","region":"Europe","lat":51.467,"lon":7.55,"category":"Discovery","article":"Operation_Plunder","body":"Operation Plunder was a military operation to cross the Rhine on the night of 23 March 1945, launched by the 21st Army Group under Field Marshal Bernard Montgomery. The crossing of the river was at Rees, Wesel, and south of the river Lippe by the British Second Army under Lieutenant General Miles Dempsey, and the United States Ninth Army under Lieutenant General William H. Simpson. The Battle of the Rhine was crucial for the Allied advance into Germany, and was planned by Montgomery as a three-army assault, including an airborne assault, a five-thousand-gun artillery barrage, and Anglo-American bombers.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q697403","facts":[{"label":"Part of","value":"Western Allied invasion of Germany"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q697403"},{"title":"Operation Plunder — background and references","url":"https://en.wikipedia.org/wiki/Operation_Plunder"}],"briefSource":{"title":"Operation Plunder","url":"https://en.wikipedia.org/wiki/Operation_Plunder","revision":1370698634,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q136190686","year":2025,"title":"Israeli attack on Doha","place":"Katara Cultural Village","region":"Asia","lat":25.357,"lon":51.51,"category":"Discovery","article":"Israeli_attack_on_Doha","body":"On 9 September 2025, during the Gaza war, the Israel Defense Forces (IDF) conducted an airstrike in the Leqtaifiya district of Qatar's capital Doha, targeting the leadership of Hamas, housed in a Qatari government residential complex, as it met to discuss an active ceasefire proposal presented by the United States. The attack killed and injured Hamas members, Qatari security forces, and multiple civilians. The attack was Israel's first known attack in Qatar, and its first direct strike on a Gulf Cooperation Council member.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q136190686","facts":[{"label":"Part of","value":"Gaza War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q136190686"},{"title":"Israeli attack on Doha — background and references","url":"https://en.wikipedia.org/wiki/Israeli_attack_on_Doha"}],"briefSource":{"title":"Israeli attack on Doha","url":"https://en.wikipedia.org/wiki/Israeli_attack_on_Doha","revision":1384203618,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q286474","year":1940,"title":"Aktion AB","place":"Poland","region":"Europe","lat":52,"lon":19,"category":"Discovery","article":"Aktion_AB","body":"Aktion AB was the second stage of Nazi Germany's campaign of violence in the occupied General Government (GG) of Poland. It followed the Intelligenzaktion, during Germany's invasion the preceding year, which sought to eliminate the intellectuals and the upper classes of the Second Polish Republic. The remaining Polish population would thus be docile and exploitable, making it easier to Germanise Poland and extirpate Polish cultural, ethnic and national identity. The November 1939 Sonderaktion Krakau was a template for Aktion AB.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q286474","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q286474"},{"title":"Aktion AB — background and references","url":"https://en.wikipedia.org/wiki/Aktion_AB"}],"briefSource":{"title":"Aktion AB","url":"https://en.wikipedia.org/wiki/Aktion_AB","revision":1373985854,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q45156","year":1985,"title":"Operation Wooden Leg","place":"Hammam Chott","region":"Africa","lat":36.721,"lon":10.37,"category":"Discovery","article":"Operation_Wooden_Leg","body":"Operation Wooden Leg (Hebrew: מבצע רגל עץ, Mivtza Regel Etz) was an Israeli airstrike on the Palestine Liberation Organization (PLO) headquarters in Hammam Chott, near Tunis, Tunisia, on 1 October 1985. With a target 1,280 miles (2,060 km) from the operation's starting point, this was the most distant publicly known action undertaken by the Israel Defense Forces since the Entebbe raid in 1976. The airstrike killed between 41 and 71 people and injured between 65 and 100.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q45156","facts":[{"label":"Part of","value":"Arab–Israeli conflict"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q45156"},{"title":"Operation Wooden Leg — background and references","url":"https://en.wikipedia.org/wiki/Operation_Wooden_Leg"}],"briefSource":{"title":"Operation Wooden Leg","url":"https://en.wikipedia.org/wiki/Operation_Wooden_Leg","revision":1368287363,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q688339","year":1915,"title":"Great Retreat (Russia)","place":"Kingdom of Galicia and Lodomeria","region":"Europe","lat":52,"lon":19,"category":"Discovery","article":"Great_Retreat_(Russia)","body":"The Great Retreat was a strategic withdrawal and evacuation on the Eastern Front of World War I in 1915. The Imperial Russian Army gave up the salient in Galicia and Congress Poland. The Russian Empire's critically under-equipped military suffered great losses in the Central Powers' July–September summer offensive operations, which led to the Stavka ordering a withdrawal to shorten the front lines and avoid the potential encirclement of large Russian forces in the salient. While the withdrawal itself was relatively well-conducted, it was a severe blow to Russian morale.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q688339","facts":[{"label":"Part of","value":"WWI Eastern Front"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q688339"},{"title":"Great Retreat (Russia) — background and references","url":"https://en.wikipedia.org/wiki/Great_Retreat_(Russia)"}],"briefSource":{"title":"Great Retreat (Russia)","url":"https://en.wikipedia.org/wiki/Great_Retreat_(Russia)","revision":1375031906,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q525934","year":1916,"title":"Lake Naroch offensive","place":"Narač","region":"Europe","lat":54.853,"lon":26.75,"category":"Discovery","article":"Lake_Naroch_offensive","body":"The Lake Naroch offensive in 1916 was an unsuccessful Russian offensive on the Eastern Front in World War I. It was launched at the request of Marshal Joseph Joffre and intended to relieve the German pressure on French forces. Due to lack of reconnaissance, Russian artillery support failed to overcome and neutralise the well-fortified German defenses and artillery positions, leading to costly and unproductive direct attacks, hindered by the weather. On 30 March General Evert ordered a halt to the offensive.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q525934","facts":[{"label":"Part of","value":"World War I"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q525934"},{"title":"Lake Naroch offensive — background and references","url":"https://en.wikipedia.org/wiki/Lake_Naroch_offensive"}],"briefSource":{"title":"Lake Naroch offensive","url":"https://en.wikipedia.org/wiki/Lake_Naroch_offensive","revision":1370626453,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q2748496","year":1944,"title":"Exercise Tiger","place":"United Kingdom","region":"Europe","lat":50.28,"lon":-3.647,"category":"Discovery","article":"Exercise_Tiger","body":"Exercise Tiger, or Operation Tiger, was one of the rehearsals for the D-Day invasion of Normandy. Held in April 1944 on Slapton Sands in Devon, it proved fraught with difficulties. Coordination and communication problems resulted in friendly fire injuries during the exercise, and an Allied convoy preparing for the landing was attacked by E-boats of Nazi Germany's Kriegsmarine, resulting in the deaths of at least 749 American servicemen. Because of the impending invasion of Normandy, the incident was kept secret and was only minimally reported afterwards.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q2748496","facts":[{"label":"Part of","value":"World War II"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q2748496"},{"title":"Exercise Tiger — background and references","url":"https://en.wikipedia.org/wiki/Exercise_Tiger"}],"briefSource":{"title":"Exercise Tiger","url":"https://en.wikipedia.org/wiki/Exercise_Tiger","revision":1384366129,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q130354504","year":2024,"title":"September 2024 Israeli attacks against Lebanon","place":"Lebanon","region":"Asia","lat":33.833,"lon":35.767,"category":"Discovery","article":"September_2024_Israeli_attacks_against_Lebanon","body":"On 23 September 2024, Israel began a series of airstrikes in Lebanon as part of the ongoing Israel–Hezbollah conflict with an operation it code-named Northern Arrows. Since then, Israel's attacks have killed over 800 people, injured more than 5,000, and displaced hundreds of thousands of Lebanese civilians. The attacks are the deadliest in Lebanon since the end of the Lebanese Civil War, and began five days after Israel performed a deadly pager and walkie-talkie attack on devices intended for Hezbollah members, and three days after Israel performed an airstrike on an apartment complex in Beirut which killed Redwan Force commander Ibrahim Aqil as well as 54 others.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q130354504","facts":[{"label":"Part of","value":"Hezbollah–Israel conflict (2023–present)"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q130354504"},{"title":"September 2024 Israeli attacks against Lebanon — background and references","url":"https://en.wikipedia.org/wiki/September_2024_Israeli_attacks_against_Lebanon"}],"briefSource":{"title":"September 2024 Israeli attacks against Lebanon","url":"https://en.wikipedia.org/wiki/September_2024_Israeli_attacks_against_Lebanon","revision":1368398366,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q764714","year":1941,"title":"Operation Brevity","place":"Libya","region":"Africa","lat":31.581,"lon":25.052,"category":"Discovery","article":"Operation_Brevity","body":"Operation Brevity was an attack in mid-May 1941, during the Western Desert Campaign of the Second World War. Conceived by the commander-in-chief of the British Middle East Command, General Archibald Wavell, Brevity was intended to be a rapid blow against weak Axis front-line forces in the Sollum–Capuzzo–Bardia area of the border between Egypt and Libya. Although the operation got off to a promising start, throwing the Axis high command into confusion, most of its early gains were lost to local counter-attacks.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q764714","facts":[{"label":"Part of","value":"Western Desert campaign"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q764714"},{"title":"Operation Brevity — background and references","url":"https://en.wikipedia.org/wiki/Operation_Brevity"}],"briefSource":{"title":"Operation Brevity","url":"https://en.wikipedia.org/wiki/Operation_Brevity","revision":1370631131,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q2050460","year":1941,"title":"Allied occupation of Iceland","place":"Iceland","region":"Europe","lat":65,"lon":-19,"category":"Discovery","article":"Allied_occupation_of_Iceland","body":"The Occupation of Iceland during World War II began with a British invasion in order to occupy the island and deny it to Germany. The military operation, codenamed Operation Fork, was conducted by the Royal Navy and Royal Marines. The British forces were later replaced by Canadian and then American forces, even though the United States was not yet in the war.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q2050460","facts":[{"label":"Part of","value":"World War II"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q2050460"},{"title":"Allied occupation of Iceland — background and references","url":"https://en.wikipedia.org/wiki/Allied_occupation_of_Iceland"}],"briefSource":{"title":"Allied occupation of Iceland","url":"https://en.wikipedia.org/wiki/Allied_occupation_of_Iceland","revision":1379449871,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q700547","year":1943,"title":"Operation Vengeance","place":"Bougainville Island","region":"Oceania","lat":-6.244,"lon":155.384,"category":"Discovery","article":"Operation_Vengeance","body":"Operation Vengeance was the American military operation to kill Admiral Isoroku Yamamoto of the Imperial Japanese Navy on 18 April 1943 during the Solomon Islands campaign in the Pacific Theater of World War II. Yamamoto, commander of the Combined Fleet of the Imperial Japanese Navy, was killed near Bougainville Island when his G4M1 transport aircraft was shot down by United States Army Air Forces fighter aircraft operating from Kukum Field on Guadalcanal. The mission of the U.S. aircraft was specifically to kill Yamamoto, made possible because of United States Navy intelligence decoding transmissions about Yamamoto's travel itinerary through the Solomon Islands area.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q700547","facts":[{"label":"Part of","value":"Solomon Islands Campaign"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q700547"},{"title":"Operation Vengeance — background and references","url":"https://en.wikipedia.org/wiki/Operation_Vengeance"}],"briefSource":{"title":"Operation Vengeance","url":"https://en.wikipedia.org/wiki/Operation_Vengeance","revision":1381012560,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q684915","year":406,"title":"Crossing of the Rhine","place":"Rhine","region":"Europe","lat":46.633,"lon":8.675,"category":"Discovery","article":"Crossing_of_the_Rhine","body":"The crossing of the Rhine by a mixed group of Germanic and Sarmatian tribes which included Vandals, Alans and Suebi is traditionally considered to have occurred on 31 December 406. The crossing transgressed one of the Late Roman Empire's most secure limes or boundaries; as such, it has been considered a climactic moment in the decline of the empire. It initiated a wave of destruction of Roman cities and the collapse of Roman civic order in northern Gaul.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q684915","facts":[{"label":"Part of","value":"Migration Period"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q684915"},{"title":"Crossing of the Rhine — background and references","url":"https://en.wikipedia.org/wiki/Crossing_of_the_Rhine"}],"briefSource":{"title":"Crossing of the Rhine","url":"https://en.wikipedia.org/wiki/Crossing_of_the_Rhine","revision":1379522013,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q11710470","year":1287,"title":"Third Mongol invasion of Poland","place":"Poland","region":"Europe","lat":52,"lon":19,"category":"Discovery","article":"Third_Mongol_invasion_of_Poland","body":"The Third Mongol invasion of Poland was carried out by Talabuga Khan and Nogai Khan in 1287–1288. As in the second invasion, its purpose was to loot Lesser Poland, and to prevent Duke Leszek II the Black from interfering in Hungarian and Ruthenian affairs. The invasion was also part of the hostilities between Poland and Ruthenia; in 1281, the Poles had defeated a Mongol force near Goslicz which had entered Duke Leszek's territory in support of Lev I.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q11710470","facts":[{"label":"Part of","value":"Mongol invasion of Europe"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q11710470"},{"title":"Third Mongol invasion of Poland — background and references","url":"https://en.wikipedia.org/wiki/Third_Mongol_invasion_of_Poland"}],"briefSource":{"title":"Third Mongol invasion of Poland","url":"https://en.wikipedia.org/wiki/Third_Mongol_invasion_of_Poland","revision":1371447708,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q42976","year":1917,"title":"October Revolution","place":"Saint Petersburg","region":"Europe","lat":59.95,"lon":30.317,"category":"Diplomacy & government","article":"October_Revolution","body":"The October Revolution, also known as the Great October Socialist Revolution (in Soviet historiography), October coup, Bolshevik coup, or Bolshevik Revolution, was the second of two revolutions in Russia in 1917. It was led by Vladimir Lenin's Bolsheviks as part of the broader Russian Revolution of 1917–1923. It began through an insurrection in Petrograd (now Saint Petersburg) on 7 November 1917 [O.S. 25 October]. It was the precipitating event of the Russian Civil War. The initial stage of the October Revolution, which involved the assault on Petrograd, occurred largely without any casualties.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q42976","facts":[{"label":"Part of","value":"Russian Revolution"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q42976"},{"title":"October Revolution — background and references","url":"https://en.wikipedia.org/wiki/October_Revolution"}],"briefSource":{"title":"October Revolution","url":"https://en.wikipedia.org/wiki/October_Revolution","revision":1384062301,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q101534","year":1917,"title":"February Revolution","place":"Saint Petersburg","region":"Europe","lat":59.95,"lon":30.317,"category":"Diplomacy & government","article":"February_Revolution","body":"The February Revolution , known in Soviet historiography as the February Bourgeois Democratic Revolution, and sometimes as the March Revolution, was the first of two revolutions which took place in Russia in 1917. The main events of the revolution took place in and near Petrograd (now Saint Petersburg), the capital of Russia at the time, where long-standing discontent with the monarchy erupted into mass protests against food rationing on 23 February Old Style (8 March New Style). Revolutionary activity lasted about eight days, involving mass demonstrations and violent armed clashes with police and gendarmes, the last loyal forces of the Russian monarchy.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q101534","facts":[{"label":"Part of","value":"Russian Revolution"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q101534"},{"title":"February Revolution — background and references","url":"https://en.wikipedia.org/wiki/February_Revolution"}],"briefSource":{"title":"February Revolution","url":"https://en.wikipedia.org/wiki/February_Revolution","revision":1380158142,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q15224558","year":2013,"title":"Euromaidan","place":"Maidan Nezalezhnosti","region":"Europe","lat":49,"lon":32,"category":"Diplomacy & government","article":"Euromaidan","body":"Euromaidan , or the Maidan Uprising, was a wave of demonstrations and civil unrest in Ukraine, which began on 21 November 2013 with large protests in Maidan Nezalezhnosti (Independence Square) in Kyiv. The protests were sparked by President Viktor Yanukovych's sudden decision not to sign the European Union–Ukraine Association Agreement, instead choosing closer ties to Russia and the Eurasian Economic Union. Ukraine's parliament had overwhelmingly approved of finalising the Agreement with the EU, but Russia had put pressure on Ukraine to reject it.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q15224558","facts":[{"label":"Part of","value":"2013–2014 Ukrainian political crisis"},{"label":"End year","value":"2014"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q15224558"},{"title":"Euromaidan — background and references","url":"https://en.wikipedia.org/wiki/Euromaidan"}],"briefSource":{"title":"Euromaidan","url":"https://en.wikipedia.org/wiki/Euromaidan","revision":1382660611,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q184928","year":1905,"title":"Russian Revolution of 1905","place":"Russia","region":"Europe","lat":66.417,"lon":94.25,"category":"Diplomacy & government","article":"Russian_Revolution_of_1905","body":"The Russian Revolution of 1905, also known as the First Russian Revolution, was a revolution in the Russian Empire which began on 22 January 1905 and led to the establishment of a constitutional monarchy under the Russian Constitution of 1906, the country's first. The revolution saw mass political and social unrest, including worker strikes, peasant revolts, and military mutinies directed against Tsar Nicholas II and the autocracy, who were compelled to establish the State Duma legislative assembly and grant certain rights to the population, though both were later undermined. In the years leading up to the revolution, Russian peasants had become increasingly aggrieved by repression from their landlords and the continuation of semi-feudal relations.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q184928","facts":[{"label":"End year","value":"1907"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q184928"},{"title":"Russian Revolution of 1905 — background and references","url":"https://en.wikipedia.org/wiki/Russian_Revolution_of_1905"}],"briefSource":{"title":"Russian Revolution of 1905","url":"https://en.wikipedia.org/wiki/Russian_Revolution_of_1905","revision":1381649464,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q170306","year":1918,"title":"German revolution of 1918–1919","place":"Germany","region":"Europe","lat":51,"lon":10,"category":"Diplomacy & government","article":"German_revolution_of_1918–1919","body":"The German revolution of 1918–1919, also known as the November Revolution , brought down the German Empire at the end of World War I and set the stage for the establishment of the Weimar Republic. The revolution was sparked by the hardships suffered by the German people during the war, the economic and psychological impacts of the Empire's defeat, and the social tensions between the general populace and the aristocratic, military and bourgeois elite. It quickly and almost bloodlessly brought down the Empire by 9 November 1918, then in its second and more violent stage, the supporters of a parliamentary republic defeated those who wanted to create a soviet-style council republic.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q170306","facts":[{"label":"Part of","value":"revolutions of 1917–1923"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q170306"},{"title":"German revolution of 1918–1919 — background and references","url":"https://en.wikipedia.org/wiki/German_revolution_of_1918%E2%80%931919"}],"briefSource":{"title":"German revolution of 1918–1919","url":"https://en.wikipedia.org/wiki/German_revolution_of_1918%E2%80%931919","revision":1383918334,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q473716","year":1848,"title":"Hungarian Revolution of 1848","place":"Kingdom of Hungary","region":"Europe","lat":47,"lon":19,"category":"Diplomacy & government","article":"Hungarian_Revolution_of_1848","body":"The Hungarian Revolution of 1848, also known in Hungary as Hungarian Revolution and War of Independence of 1848–1849 (Hungarian: 1848–49-es forradalom és szabadságharc) was one of a number of European Revolutions of 1848 and was closely linked to other revolutions of 1848 in the Habsburg areas. Although the Hungarian War of Independence failed, it is one of the most significant events in Hungary's modern history, forming the cornerstone of modern Hungarian national identity—the anniversary of the Revolution's outbreak, 15 March, is one of Hungary's three national holidays. In April 1848, Hungary became the third country of continental Europe (after France, in 1791, and Belgium, in 1831) to enact a law implementing democratic parliamentary elections.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q473716","facts":[{"label":"Part of","value":"European Revolutions of 1848"},{"label":"End year","value":"1849"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q473716"},{"title":"Hungarian Revolution of 1848 — background and references","url":"https://en.wikipedia.org/wiki/Hungarian_Revolution_of_1848"}],"briefSource":{"title":"Hungarian Revolution of 1848","url":"https://en.wikipedia.org/wiki/Hungarian_Revolution_of_1848","revision":1383755311,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q223933","year":1830,"title":"Belgian Revolution","place":"Southern Netherlands","region":"Europe","lat":51,"lon":5,"category":"Diplomacy & government","article":"Belgian_Revolution","body":"The Belgian Revolution was a conflict which led to the secession of the southern provinces (mainly the former Southern Netherlands) from the United Kingdom of the Netherlands and the establishment of an independent Kingdom of Belgium. The people of the south were mainly Flemings and Walloons. Both peoples were traditionally Catholic as contrasted with Protestant-dominated (Dutch Reformed) people of the north. Many outspoken liberals regarded King William I's rule as despotic. There were high levels of unemployment and industrial unrest among the working classes.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q223933","facts":[{"label":"Part of","value":"Revolutions of 1830"},{"label":"End year","value":"1831"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q223933"},{"title":"Belgian Revolution — background and references","url":"https://en.wikipedia.org/wiki/Belgian_Revolution"}],"briefSource":{"title":"Belgian Revolution","url":"https://en.wikipedia.org/wiki/Belgian_Revolution","revision":1382347930,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q622774","year":1848,"title":"French Revolution of 1848","place":"July Monarchy","region":"Europe","lat":48.817,"lon":2.483,"category":"Diplomacy & government","article":"French_Revolution_of_1848","body":"The French Revolution of 1848 , also known as the February Revolution (Révolution de février), was a period of civil unrest in France, in February 1848, that led to the collapse of the July Monarchy and the foundation of the French Second Republic. It sparked the wave of revolutions of 1848. The revolution took place in Paris, and was preceded by the French government's crackdown on the campagne des banquets. Starting on 22 February as a large-scale protest against the government of François Guizot, it later developed into a violent uprising against the monarchy.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q622774","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q622774"},{"title":"French Revolution of 1848 — background and references","url":"https://en.wikipedia.org/wiki/French_Revolution_of_1848"}],"briefSource":{"title":"French Revolution of 1848","url":"https://en.wikipedia.org/wiki/French_Revolution_of_1848","revision":1382610428,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q219470","year":2003,"title":"Rose Revolution","place":"Georgia","region":"Asia","lat":42,"lon":44,"category":"Diplomacy & government","article":"Rose_Revolution","body":"The Rose Revolution or Revolution of Roses (Georgian: ვარდების რევოლუცია, romanized: vardebis revolutsia) was a nonviolent change of power that occurred in Georgia in November 2003. The event was brought about by widespread protests over the disputed parliamentary elections and culminated in the resignation of President Eduard Shevardnadze, which marked the end of Soviet-era leadership in the country. The revolution derives its name from the climactic moment, when demonstrators led by Mikheil Saakashvili stormed the Parliament session with red roses in hand.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q219470","facts":[{"label":"Part of","value":"colour revolution"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q219470"},{"title":"Rose Revolution — background and references","url":"https://en.wikipedia.org/wiki/Rose_Revolution"}],"briefSource":{"title":"Rose Revolution","url":"https://en.wikipedia.org/wiki/Rose_Revolution","revision":1381349688,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q856670","year":1973,"title":"1973 Chilean coup d'état","place":"Chile","region":"Americas","lat":-33,"lon":-71,"category":"Diplomacy & government","article":"1973_Chilean_coup_d'état","body":"The 1973 Chilean coup d'état (Spanish: Golpe de Estado en Chile de 1973) was a military overthrow of the socialist president of Chile Salvador Allende and his Popular Unity coalition government. Allende, who was the first Marxist to be democratically elected president in a Latin American liberal democracy, faced significant social unrest and political tension with the opposition-controlled National Congress of Chile. On 11 September 1973, a group of military officers, led by General Augusto Pinochet, seized power in a coup, ending civilian rule.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q856670","facts":[{"label":"Part of","value":"Covert United States foreign regime change actions"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q856670"},{"title":"1973 Chilean coup d'état — background and references","url":"https://en.wikipedia.org/wiki/1973_Chilean_coup_d'%C3%A9tat"}],"briefSource":{"title":"1973 Chilean coup d'état","url":"https://en.wikipedia.org/wiki/1973_Chilean_coup_d%27%C3%A9tat","revision":1384420392,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q204213","year":1989,"title":"Romanian revolution","place":"Socialist Republic of Romania","region":"Europe","lat":44.413,"lon":26.098,"category":"Diplomacy & government","article":"Romanian_revolution","body":"The Romanian revolution (Romanian: Revoluția română) was a period of violent civil unrest in the Socialist Republic of Romania during December 1989 as a part of the revolutions of 1989 that occurred in several countries around the world, primarily within the Eastern Bloc. The Romanian revolution started in the city of Timișoara and soon spread throughout the country, ultimately culminating in the drumhead trial and execution of longtime Romanian Communist Party (PCR) General Secretary Nicolae Ceaușescu and his wife Elena, and the end of 42 years of Communist rule in Romania. It was also the last removal of a Marxist–Leninist government in a Warsaw Pact country during the events of 1989, and the only one that violently overthrew a country's leadership and executed its leader; according to estimates, over one thousand people died and thousands more were injured.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q204213","facts":[{"label":"Part of","value":"Revolutions of 1989"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q204213"},{"title":"Romanian revolution — background and references","url":"https://en.wikipedia.org/wiki/Romanian_revolution"}],"briefSource":{"title":"Romanian revolution","url":"https://en.wikipedia.org/wiki/Romanian_revolution","revision":1383904835,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q620965","year":1799,"title":"Coup of 18 Brumaire","place":"Château de Saint-Cloud","region":"Europe","lat":48.838,"lon":2.216,"category":"Diplomacy & government","article":"Coup_of_18_Brumaire","body":"The Coup of 18 Brumaire brought Napoleon Bonaparte to power as First Consul of the French First Republic. In the view of most historians, it ended the French Revolution and would soon lead to the coronation of Napoleon as Emperor of the French. This bloodless coup d'état overthrew the Directory, replacing it with the French Consulate. This occurred on 9 November 1799, which was 18 Brumaire, Year VIII, under the short-lived French Republican calendar system.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q620965","facts":[{"label":"Part of","value":"French Revolution"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q620965"},{"title":"Coup of 18 Brumaire — background and references","url":"https://en.wikipedia.org/wiki/Coup_of_18_Brumaire"}],"briefSource":{"title":"Coup of 18 Brumaire","url":"https://en.wikipedia.org/wiki/Coup_of_18_Brumaire","revision":1378429593,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1780431","year":1952,"title":"Egyptian revolution of 1952","place":"Kingdom of Egypt","region":"Africa","lat":30.05,"lon":31.217,"category":"Diplomacy & government","article":"Egyptian_revolution_of_1952","body":"On 23 July 1952, a coup began in Egypt with the toppling of King Farouk in a coup d'état by the Free Officers Movement, a group of army officers led by Mohamed Naguib and Gamal Abdel Nasser. It ushered in a wave of revolutionary politics in the Arab world, contributing to the escalation of decolonization and the development of Third World solidarity during the Cold War. Though initially focused on grievances against King Farouk, the movement had more wide-ranging political ambitions.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1780431","facts":[{"label":"Part of","value":"Cold War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1780431"},{"title":"Egyptian revolution of 1952 — background and references","url":"https://en.wikipedia.org/wiki/Egyptian_revolution_of_1952"}],"briefSource":{"title":"Egyptian revolution of 1952","url":"https://en.wikipedia.org/wiki/Egyptian_revolution_of_1952","revision":1383529737,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q468823","year":1922,"title":"March on Rome","place":"Rome","region":"Europe","lat":41.893,"lon":12.483,"category":"Diplomacy & government","article":"March_on_Rome","body":"The March on Rome (Italian: Marcia su Roma) was an organized mass demonstration in October 1922 which resulted in Benito Mussolini's National Fascist Party (Partito Nazionale Fascista, PNF) ascending to power in the Kingdom of Italy. In late October 1922, Fascist Party leaders planned a march on Rome. On 28 October, the fascist demonstrators and Blackshirt paramilitaries approached the capital; Prime Minister Luigi Facta wished to declare a state of siege, but this was overruled by King Victor Emmanuel III, who, fearing bloodshed, persuaded Facta to resign by threatening to abdicate.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q468823","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q468823"},{"title":"March on Rome — background and references","url":"https://en.wikipedia.org/wiki/March_on_Rome"}],"briefSource":{"title":"March on Rome","url":"https://en.wikipedia.org/wiki/March_on_Rome","revision":1382473668,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q15733401","year":2014,"title":"Revolution of Dignity","place":"Mariinskyi Park","region":"Europe","lat":50.45,"lon":30.524,"category":"Diplomacy & government","article":"Revolution_of_Dignity","body":"The Revolution of Dignity (Ukrainian: Революція гідності, romanized: Revoliutsiia hidnosti), also known as the Maidan Revolution or the Ukrainian Revolution, took place in Ukraine in February 2014 at the end of the Euromaidan protests. Scores of protesters were killed by government forces during clashes in the capital Kyiv. Parliament then voted to remove President Viktor Yanukovych, return to the 2004 Constitution of Ukraine, and call new elections. The revolution prompted Russia to occupy Crimea, starting the Russo-Ukrainian war.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q15733401","facts":[{"label":"Part of","value":"Euromaidan"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q15733401"},{"title":"Revolution of Dignity — background and references","url":"https://en.wikipedia.org/wiki/Revolution_of_Dignity"}],"briefSource":{"title":"Revolution of Dignity","url":"https://en.wikipedia.org/wiki/Revolution_of_Dignity","revision":1376330266,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q4298662","year":1908,"title":"Young Turk Revolution","place":"Ottoman Empire","region":"Asia","lat":41,"lon":29,"category":"Diplomacy & government","article":"Young_Turk_Revolution","body":"The Young Turk Revolution (July 1908; Turkish: Jön Türk Devrimi) was a constitutionalist revolution in the Ottoman Empire. Revolutionaries belonging to the Internal Committee of Union and Progress (CUP), an organization of the Young Turks movement, forced Sultan Abdul Hamid II to restore the Constitution, recall the parliament, and schedule an election. Thus began the Second Constitutional Era which lasted from 1908–1912 and also the Turkish Revolution, an era of political instability and social change which lasted for more than four decades.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q4298662","facts":[{"label":"Part of","value":"dissolution of the Ottoman Empire"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q4298662"},{"title":"Young Turk Revolution — background and references","url":"https://en.wikipedia.org/wiki/Young_Turk_Revolution"}],"briefSource":{"title":"Young Turk Revolution","url":"https://en.wikipedia.org/wiki/Young_Turk_Revolution","revision":1380448478,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q117100709","year":2023,"title":"2023 Nigerien coup d'état","place":"Niamey","region":"Africa","lat":13.515,"lon":2.118,"category":"Diplomacy & government","article":"2023_Nigerien_coup_d'état","body":"On 26 July 2023, a coup d'état occurred in Niger when the presidential guard detained President Mohamed Bazoum, and presidential guard commander General Abdourahamane Tiani proclaimed himself the leader of a military junta shortly after confirming the coup a success. This was the fifth military coup d'état since the country gained independence from France in 1960, and the first since 2010. The coup was condemned by the United States and France, and by the West African regional bloc ECOWAS, the latter of which threatened military intervention against the junta, leading to the 2023–2024 Niger crisis.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q117100709","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q117100709"},{"title":"2023 Nigerien coup d'état — background and references","url":"https://en.wikipedia.org/wiki/2023_Nigerien_coup_d'%C3%A9tat"}],"briefSource":{"title":"2023 Nigerien coup d'état","url":"https://en.wikipedia.org/wiki/2023_Nigerien_coup_d%27%C3%A9tat","revision":1377214349,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q838980","year":1810,"title":"May Revolution","place":"Buenos Aires","region":"Americas","lat":-34.6,"lon":-58.382,"category":"Diplomacy & government","article":"May_Revolution","body":"The May Revolution (Spanish: Revolución de Mayo) was a week-long series of events that took place from 18 to 25 May 1810, in Buenos Aires, capital of the Viceroyalty of the Río de la Plata. This Spanish colony included roughly the territories of present-day Argentina, Bolivia, Paraguay, Uruguay, and parts of Brazil. The result was the removal of Viceroy Baltasar Hidalgo de Cisneros and the establishment of a local government, the Primera Junta (First Junta), on 25 May.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q838980","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q838980"},{"title":"May Revolution — background and references","url":"https://en.wikipedia.org/wiki/May_Revolution"}],"briefSource":{"title":"May Revolution","url":"https://en.wikipedia.org/wiki/May_Revolution","revision":1383242756,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q862099","year":1993,"title":"1993 Russian constitutional crisis","place":"Moscow","region":"Europe","lat":55.751,"lon":37.618,"category":"Diplomacy & government","article":"1993_Russian_constitutional_crisis","body":"In September and October 1993, following the increasingly visible tensions after December 1992, a constitutional crisis arose in the Russian Federation from a conflict between the then Russian president Boris Yeltsin and the country's parliament. Yeltsin performed a self-coup, dissolving parliament and instituting a presidential rule by decree system. The crisis ended with Yeltsin using military force to attack Moscow's House of Soviets and arrest the lawmakers. In Russia, the events are known as the \\"October Coup\\" or \\"Black October\\" (Чëрный октябрь, Chornyi Oktyabr').","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q862099","facts":[{"label":"Part of","value":"post-Soviet conflicts"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q862099"},{"title":"1993 Russian constitutional crisis — background and references","url":"https://en.wikipedia.org/wiki/1993_Russian_constitutional_crisis"}],"briefSource":{"title":"1993 Russian constitutional crisis","url":"https://en.wikipedia.org/wiki/1993_Russian_constitutional_crisis","revision":1384235872,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1137957","year":1948,"title":"1948 Czechoslovak coup d'état","place":"Prague","region":"Europe","lat":50.088,"lon":14.421,"category":"Diplomacy & government","article":"1948_Czechoslovak_coup_d'état","body":"In late February 1948, the Communist Party of Czechoslovakia (KSČ), with Soviet backing, assumed undisputed control over the government of Czechoslovakia through a coup d'état. It marked the beginning of four decades of the party's rule in the country. The KSČ enjoyed a period of popularity following the reestablishment of pre-war Czechoslovakia. After a successful performance during the 1946 parliamentary election, party leader Klement Gottwald became prime minister of a coalition government at the behest of President Edvard Beneš.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q1137957","facts":[{"label":"Part of","value":"Cold War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1137957"},{"title":"1948 Czechoslovak coup d'état — background and references","url":"https://en.wikipedia.org/wiki/1948_Czechoslovak_coup_d'%C3%A9tat"}],"briefSource":{"title":"1948 Czechoslovak coup d'état","url":"https://en.wikipedia.org/wiki/1948_Czechoslovak_coup_d%27%C3%A9tat","revision":1371034127,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q459162","year":2005,"title":"Tulip Revolution","place":"Kyrgyzstan","region":"Asia","lat":41,"lon":75,"category":"Diplomacy & government","article":"Tulip_Revolution","body":"The Tulip Revolution, also known as the First Kyrgyz Revolution, led to Kyrgyzstan's then-President Askar Akayev's fall from power. The revolution began after parliamentary elections on 27 February and 13 March 2005. The revolutionaries alleged corruption and authoritarianism by Akayev, his family and supporters. Akayev fled to Kazakhstan and then to Russia. On 4 April 2005, at the Kyrgyz embassy in Moscow, Akayev signed his resignation statement in the presence of a Kyrgyz parliamentary delegation.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q459162","facts":[{"label":"Part of","value":"colour revolution"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q459162"},{"title":"Tulip Revolution — background and references","url":"https://en.wikipedia.org/wiki/Tulip_Revolution"}],"briefSource":{"title":"Tulip Revolution","url":"https://en.wikipedia.org/wiki/Tulip_Revolution","revision":1372025111,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q638903","year":1910,"title":"5 October 1910 revolution","place":"Kingdom of Portugal","region":"Asia","lat":38.7,"lon":-9.183,"category":"Diplomacy & government","article":"5_October_1910_revolution","body":"The 5 October 1910 Revolution (Portuguese: Revolução de 5 de outubro de 1910) was the overthrow of the centuries-old Portuguese monarchy and its replacement by the First Portuguese Republic. It was the result of a coup d'état organized by the Portuguese Republican Party. By 1910, the Kingdom of Portugal was in deep crisis: national anger over the 1890 British Ultimatum, the royal family's expenses, the assassination of the King and his heir in 1908, changing religious and social views, instability of the two political parties (Progressive and Regenerator), the dictatorship of João Franco, and the regime's apparent inability to adapt to modern times all led to widespread resentment against the Monarchy.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q638903","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q638903"},{"title":"5 October 1910 revolution — background and references","url":"https://en.wikipedia.org/wiki/5_October_1910_revolution"}],"briefSource":{"title":"5 October 1910 revolution","url":"https://en.wikipedia.org/wiki/5_October_1910_revolution","revision":1379940519,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q75844","year":1964,"title":"Zanzibar Revolution","place":"Zanzibar Archipelago","region":"Africa","lat":-6.16,"lon":39.191,"category":"Diplomacy & government","article":"Zanzibar_Revolution","body":"The Zanzibar Revolution began on 12 January 1964 and led to the overthrow of the Sultan of Zanzibar Jamshid bin Abdullah and his mainly Arab government by the island's majority Black African population. Zanzibar was an ethnically diverse state consisting of a number of islands off the east coast of Tanganyika. Formally separated from German East Africa in 1890, it had become fully independent in 1963, with responsibility for its own defense and foreign affairs, as a result of Britain giving up its protectorate over it.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q75844","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q75844"},{"title":"Zanzibar Revolution — background and references","url":"https://en.wikipedia.org/wiki/Zanzibar_Revolution"}],"briefSource":{"title":"Zanzibar Revolution","url":"https://en.wikipedia.org/wiki/Zanzibar_Revolution","revision":1379217800,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q13605743","year":2013,"title":"2013 Egyptian coup d'état","place":"Port Said","region":"Africa","lat":31.263,"lon":32.306,"category":"Diplomacy & government","article":"2013_Egyptian_coup_d'état","body":"On July 3, 2013, then-President of Egypt Mohamed Morsi was overthrown by a coup d'etat led by Egyptian army chief General Abdel Fattah el-Sisi, who led a coalition to remove Morsi from power and suspend the Egyptian constitution of 2012. The move came after an ultimatum that the government \\"resolve its differences\\" with protesters during widespread national protests. Morsi and Muslim Brotherhood leaders were placed under house arrest and Chief Justice of the Supreme Constitutional Court Adly Mansour was declared interim president of Egypt.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q13605743","facts":[{"label":"Part of","value":"2012–2013 Egyptian protests"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q13605743"},{"title":"2013 Egyptian coup d'état — background and references","url":"https://en.wikipedia.org/wiki/2013_Egyptian_coup_d'%C3%A9tat"}],"briefSource":{"title":"2013 Egyptian coup d'état","url":"https://en.wikipedia.org/wiki/2013_Egyptian_coup_d%27%C3%A9tat","revision":1382688750,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1368440","year":1905,"title":"Constitutionalization attempts in Iran","place":"Iran","region":"Asia","lat":32,"lon":53,"category":"Diplomacy & government","article":"Constitutionalization_attempts_in_Iran","body":"The Iranian Constitutional Revolution was a short-lived push for democratic rule in the form of a constitutional monarchy within a highly elitist yet decentralized society under the Qajars. The mounting disgust amidst the clergy, bazaaris, farmers, intellectuals, and other segments of the populace with respect to the Shah, policies during the end of the 19th and beginning of the 20th century illustrates a classic example of an environment ripe for protest, as a wide array of people in society felt an increasing need to express their grievances with an oppressive and largely autocratic government.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1368440","facts":[{"label":"End year","value":"1911"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1368440"},{"title":"Constitutionalization attempts in Iran — background and references","url":"https://en.wikipedia.org/wiki/Constitutionalization_attempts_in_Iran"}],"briefSource":{"title":"Constitutionalization attempts in Iran","url":"https://en.wikipedia.org/wiki/Constitutionalization_attempts_in_Iran","revision":1384306842,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1463516","year":1978,"title":"Nicaraguan Revolution","place":"Nicaragua","region":"Americas","lat":13,"lon":-85,"category":"Diplomacy & government","article":"Nicaraguan_Revolution","body":"The Nicaraguan Revolution (Spanish: Revolución nicaragüense), or Sandinista Revolution (Revolución popular sandinista, 'Sandinista People's Revolution') was an armed conflict that took place in the Central American country of Nicaragua between 1961 and 1990. It began with rising opposition to the Somoza dictatorship in the 1960s and 1970s, the overthrow of the dictatorship in 1978–1979, and fighting between the new government and the Contras from 1981 to 1990. The revolution revealed the country as one of the major proxy war battlegrounds of the Cold War.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1463516","facts":[{"label":"Part of","value":"Central American crisis"},{"label":"End year","value":"1990"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1463516"},{"title":"Nicaraguan Revolution — background and references","url":"https://en.wikipedia.org/wiki/Nicaraguan_Revolution"}],"briefSource":{"title":"Nicaraguan Revolution","url":"https://en.wikipedia.org/wiki/Nicaraguan_Revolution","revision":1382823668,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q2988530","year":1958,"title":"14 July Revolution","place":"Kingdom of Iraq","region":"Asia","lat":33,"lon":43,"category":"Diplomacy & government","article":"14_July_Revolution","body":"The 14 July Revolution, also known as the 1958 Iraqi military coup, was a military coup that took place on 14 July 1958 in Iraq, resulting in the toppling of King Faisal II and the overthrow of the Hashemite-led Kingdom of Iraq. The Iraqi Republic established in its wake ended the Hashemite Arab Federation between Iraq and Jordan that had been established just six months earlier. The Kingdom of Iraq had been a hotbed of Arab nationalism since the Second World War.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q2988530","facts":[{"label":"Part of","value":"Arab Cold War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q2988530"},{"title":"14 July Revolution — background and references","url":"https://en.wikipedia.org/wiki/14_July_Revolution"}],"briefSource":{"title":"14 July Revolution","url":"https://en.wikipedia.org/wiki/14_July_Revolution","revision":1377224142,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q976887","year":1954,"title":"1954 Guatemalan coup d'état","place":"Guatemala","region":"Americas","lat":15.5,"lon":-90.25,"category":"Diplomacy & government","article":"1954_Guatemalan_coup_d'état","body":"The democratically elected Guatemalan president Jacobo Árbenz was deposed in a coup d'état in 1954, marking the end of the Guatemalan Revolution. The coup installed the military dictatorship of Carlos Castillo Armas, the first in a series of U.S.-backed authoritarian rulers in Guatemala. The coup was precipitated by a CIA covert operation code-named PBSuccess. The Guatemalan Revolution began in 1944, after a popular uprising toppled the military dictatorship of Jorge Ubico. Juan José Arévalo was elected president in Guatemala's first democratic election.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q976887","facts":[{"label":"Part of","value":"Cold War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q976887"},{"title":"1954 Guatemalan coup d'état — background and references","url":"https://en.wikipedia.org/wiki/1954_Guatemalan_coup_d'%C3%A9tat"}],"briefSource":{"title":"1954 Guatemalan coup d'état","url":"https://en.wikipedia.org/wiki/1954_Guatemalan_coup_d%27%C3%A9tat","revision":1376061753,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q2092429","year":1804,"title":"Serbian Revolution","place":"Balkans","region":"Europe","lat":42,"lon":22,"category":"Diplomacy & government","article":"Serbian_Revolution","body":"The Serbian Revolution (Serbian: Српска револуција, romanized: Srpska revolucija) was a national uprising and constitutional change in Serbia that took place between 1804 and 1835, during which this territory evolved from an Ottoman province into a rebel territory, a constitutional monarchy, and modern Serbia. In 1804, the Ottoman Janissary decided to execute all prominent nobles throughout Central Serbia, a move known as the Slaughter of the Knezes. The heads of the murdered Serbian nobles were put on public display in the central square to serve as an example to those who might plot against Ottoman rule.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q2092429","facts":[{"label":"Part of","value":"Rise of nationalism under the Ottoman Empire"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q2092429"},{"title":"Serbian Revolution — background and references","url":"https://en.wikipedia.org/wiki/Serbian_Revolution"}],"briefSource":{"title":"Serbian Revolution","url":"https://en.wikipedia.org/wiki/Serbian_Revolution","revision":1377046960,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q16914766","year":2014,"title":"2014 Thai coup d'état","place":"Thailand","region":"Asia","lat":14,"lon":101,"category":"Diplomacy & government","article":"2014_Thai_coup_d'état","body":"On 22 May 2014, the Royal Thai Armed Forces, led by General Prayut Chan-o-cha, the commander-in-chief of the Royal Thai Army, launched a coup d'état, the twelfth since the country's first coup in 1932, against the caretaker government following six months of political crisis. The military established a junta called the National Council for Peace and Order (NCPO) to govern the nation. The coup ended the political conflict between the military-led regime and democratic power, which had been present since the 2006 Thai coup d'état known as the \\"unfinished coup\\".","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q16914766","facts":[{"label":"Part of","value":"2013–14 Thai political crisis"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q16914766"},{"title":"2014 Thai coup d'état — background and references","url":"https://en.wikipedia.org/wiki/2014_Thai_coup_d'%C3%A9tat"}],"briefSource":{"title":"2014 Thai coup d'état","url":"https://en.wikipedia.org/wiki/2014_Thai_coup_d%27%C3%A9tat","revision":1372095973,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q109229068","year":2021,"title":"2021 Sudanese coup d'état","place":"Sudan","region":"Africa","lat":15.503,"lon":32.563,"category":"Diplomacy & government","article":"2021_Sudanese_coup_d'état","body":"On 25 October 2021, the Sudanese military, led by General Abdel Fattah al-Burhan, took control of the Government of Sudan in a military coup. At least five senior government figures were initially detained. Civilian Prime Minister Abdalla Hamdok refused to declare support for the coup and on 25 October called for popular resistance; he was confined to house arrest on 26 October. Internet outages were reported. Later the same day, the Sovereignty Council was dissolved, a state of emergency was put in place, and a majority of the Hamdok Cabinet and a number of pro-government supporters were arrested.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q109229068","facts":[{"label":"Part of","value":"Sudanese transition to democracy"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q109229068"},{"title":"2021 Sudanese coup d'état — background and references","url":"https://en.wikipedia.org/wiki/2021_Sudanese_coup_d'%C3%A9tat"}],"briefSource":{"title":"2021 Sudanese coup d'état","url":"https://en.wikipedia.org/wiki/2021_Sudanese_coup_d%27%C3%A9tat","revision":1379154014,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1993171","year":1919,"title":"1919 Egyptian revolution","place":"Sultanate of Egypt","region":"Africa","lat":30.05,"lon":31.217,"category":"Diplomacy & government","article":"1919_Egyptian_revolution","body":"The 1919 Egyptian revolution was a nation-wide revolution in the Sultanate of Egypt against British occupation that lasted from November 1918 to July 1919. Occurring right after the end of World War I, the revolution served as the culmination of successive decades of opposition by Egyptian nationalists to occupation, and was directly sparked by the British-ordered exile of Wafd Party leader Saad Zaghloul and several other party members. The revolution was successfully countered by British forces.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1993171","facts":[{"label":"Part of","value":"revolutions of 1917–1923"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1993171"},{"title":"1919 Egyptian revolution — background and references","url":"https://en.wikipedia.org/wiki/1919_Egyptian_revolution"}],"briefSource":{"title":"1919 Egyptian revolution","url":"https://en.wikipedia.org/wiki/1919_Egyptian_revolution","revision":1383448611,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q769960","year":1945,"title":"August Revolution","place":"Vietnam","region":"Asia","lat":16,"lon":108,"category":"Diplomacy & government","article":"August_Revolution","body":"The August Revolution (Vietnamese: Cách mạng tháng Tám), at the time known as the General Uprising (Vietnamese: Tổng khởi nghĩa cướp chính quyền, lit. 'Total uprising to seize power'), was a revolution led by the Viet Minh against the Japanese occupation of Vietnam and the Empire of Vietnam from 16 to 30 August 1945. The Empire of Vietnam was led by the Nguyễn dynasty and was backed by Japan. Created in 1941, the Viet Minh functioned as an anti-imperialist front led by the Indochinese Communist Party, rallying wide public support across political lines around the goal of Vietnamese independence.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q769960","facts":[{"label":"Part of","value":"Vietnamese independence movement"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q769960"},{"title":"August Revolution — background and references","url":"https://en.wikipedia.org/wiki/August_Revolution"}],"briefSource":{"title":"August Revolution","url":"https://en.wikipedia.org/wiki/August_Revolution","revision":1383915242,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q4571496","year":1964,"title":"1964 Brazilian coup d'état","place":"Brazil","region":"Americas","lat":-14,"lon":-53,"category":"Diplomacy & government","article":"1964_Brazilian_coup_d'état","body":"The 1964 Brazilian coup d'état (Portuguese: Golpe de estado no Brasil em 1964) was the overthrow of Brazilian president João Goulart by a military coup from March 31 to April 1, 1964, ending the Fourth Brazilian Republic (1946–1964) and initiating the Brazilian military dictatorship (1964–1985). The coup took the form of a military rebellion, the declaration of vacancy in the presidency by the National Congress on April 2, the formation of a military junta (the Supreme Command of the Revolution) and the exile of the president on April 4. In his place, Ranieri Mazzilli, the president of the Chamber of Deputies, took over until the election by Congress of general Humberto de Alencar Castelo Branco, one of the leaders of the coup.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q4571496","facts":[{"label":"Part of","value":"Cold War History"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q4571496"},{"title":"1964 Brazilian coup d'état — background and references","url":"https://en.wikipedia.org/wiki/1964_Brazilian_coup_d'%C3%A9tat"}],"briefSource":{"title":"1964 Brazilian coup d'état","url":"https://en.wikipedia.org/wiki/1964_Brazilian_coup_d%27%C3%A9tat","revision":1378625486,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q98457371","year":2020,"title":"2020 Malian coup d'état","place":"Mali","region":"Africa","lat":12.747,"lon":-8.071,"category":"Diplomacy & government","article":"2020_Malian_coup_d'état","body":"On 18 August 2020, elements of the Malian Armed Forces began a mutiny, and subsequently undertook a coup d'état. Soldiers on pick-up trucks stormed the Soundiata military base in the town of Kati, where gunfire was exchanged before weapons were distributed from the armory and senior officers arrested. Tanks and armoured vehicles were seen on the town's streets, as well as military trucks heading for the capital, Bamako. The soldiers detained several government officials including President Ibrahim Boubacar Keïta, who resigned and dissolved the government.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q98457371","facts":[{"label":"Part of","value":"Mali War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q98457371"},{"title":"2020 Malian coup d'état — background and references","url":"https://en.wikipedia.org/wiki/2020_Malian_coup_d'%C3%A9tat"}],"briefSource":{"title":"2020 Malian coup d'état","url":"https://en.wikipedia.org/wiki/2020_Malian_coup_d%27%C3%A9tat","revision":1384282441,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q108419092","year":2021,"title":"2021 Guinean coup d'état","place":"Conakry","region":"Asia","lat":9.51,"lon":-13.717,"category":"Diplomacy & government","article":"2021_Guinean_coup_d'état","body":"On 5 September 2021, President of Guinea Alpha Condé was captured by the country's armed forces in a coup d'état after gunfire in the capital, Conakry. Special forces commander Mamady Doumbouya released a broadcast on state television announcing the dissolution of the constitution and government. After several decades of authoritarian rule in Guinea, Condé was the country's first democratically elected leader. During his time in office, Guinea used its rich natural resources to improve the economy, but the bulk of the country's population has not felt its effects.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q108419092","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q108419092"},{"title":"2021 Guinean coup d'état — background and references","url":"https://en.wikipedia.org/wiki/2021_Guinean_coup_d'%C3%A9tat"}],"briefSource":{"title":"2021 Guinean coup d'état","url":"https://en.wikipedia.org/wiki/2021_Guinean_coup_d%27%C3%A9tat","revision":1370103462,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q248033","year":1797,"title":"Coup of 18 Fructidor","place":"Tuileries Palace","region":"Europe","lat":48.862,"lon":2.331,"category":"Diplomacy & government","article":"Coup_of_18_Fructidor","body":"The Coup of 18 Fructidor, Year V (4 September 1797 in the French Republican Calendar), was a seizure of power in France by members of the Directory, then forming the government of the First French Republic, with support from the military. The coup was provoked by the results of elections held months earlier, which had given the majority of seats in the country's Corps législatif (Legislative body) to royalist candidates, threatening a restoration of the monarchy and a return to the ancien régime. Three of the five members of the Directory, Paul Barras, Jean-François Rewbell and Louis Marie de La Révellière-Lépeaux, with support of foreign minister Charles Maurice de Talleyrand-Périgord, staged the coup d'état that annulled many of the previous election's results and ousted the monarchists from the legislature.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q248033","facts":[{"label":"Part of","value":"French Revolution"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q248033"},{"title":"Coup of 18 Fructidor — background and references","url":"https://en.wikipedia.org/wiki/Coup_of_18_Fructidor"}],"briefSource":{"title":"Coup of 18 Fructidor","url":"https://en.wikipedia.org/wiki/Coup_of_18_Fructidor","revision":1370613793,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1540751","year":1868,"title":"Glorious Revolution (Spain)","place":"Spain","region":"Europe","lat":40.2,"lon":-3.5,"category":"Diplomacy & government","article":"Glorious_Revolution_(Spain)","body":"The Glorious Revolution (Spanish: la Gloriosa or la Septembrina) took place in Spain in 1868, resulting in the deposition of Queen Isabella II. The success of the revolution marked the beginning of the Sexenio Democrático with the installation of a provisional government.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1540751","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1540751"},{"title":"Glorious Revolution (Spain) — background and references","url":"https://en.wikipedia.org/wiki/Glorious_Revolution_(Spain)"}],"briefSource":{"title":"Glorious Revolution (Spain)","url":"https://en.wikipedia.org/wiki/Glorious_Revolution_(Spain)","revision":1373187440,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q2475925","year":1963,"title":"1963 Syrian coup d'état","place":"Syria","region":"Asia","lat":35.217,"lon":38.583,"category":"Diplomacy & government","article":"1963_Syrian_coup_d'état","body":"The 1963 Syrian coup d'état, labelled in Ba'athist historiography as the March 8 Revolution , was the seizure of power in Syria by the military committee of the Syrian Regional Branch of the Arab Socialist Ba'ath Party. The planning and the unfolding conspiracy of the Syrian Ba'athist operatives were prompted by the Ba'ath party's seizure of power in Iraq in February 1963. The coup was planned by the military committee, rather than the Ba'ath Party's civilian leadership, but Michel Aflaq, the leader of the party, consented to the conspiracy.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q2475925","facts":[{"label":"Part of","value":"Arab Cold War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q2475925"},{"title":"1963 Syrian coup d'état — background and references","url":"https://en.wikipedia.org/wiki/1963_Syrian_coup_d'%C3%A9tat"}],"briefSource":{"title":"1963 Syrian coup d'état","url":"https://en.wikipedia.org/wiki/1963_Syrian_coup_d%27%C3%A9tat","revision":1370267842,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q169598","year":1582,"title":"Honnō-ji Incident","place":"former site of Honnō-ji","region":"Asia","lat":35.006,"lon":135.754,"category":"Diplomacy & government","article":"Honnō-ji_Incident","body":"The Honnō-ji Incident (本能寺の変, Honnō-ji no Hen) was the attempted assassination of Japanese daimyo Oda Nobunaga at Honnō-ji in Kyoto in 1582. Nobunaga was on the verge of unifying the country, but died by seppuku in the unexpected rebellion of his vassal Akechi Mitsuhide. Nobunaga only had a few guards and retainers with him when he was attacked, ending his Sengoku period campaign to unify Japan under his power. Nobunaga's death was avenged two weeks later when his retainer Toyotomi Hideyoshi defeated Mitsuhide in the Battle of Yamazaki, paving the way for Hideyoshi to complete the unification of Japan.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q169598","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q169598"},{"title":"Honnō-ji Incident — background and references","url":"https://en.wikipedia.org/wiki/Honn%C5%8D-ji_Incident"}],"briefSource":{"title":"Honnō-ji Incident","url":"https://en.wikipedia.org/wiki/Honn%C5%8D-ji_Incident","revision":1383580468,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q2118311","year":1941,"title":"Yugoslav coup d'état","place":"Yugoslavia","region":"Europe","lat":44.82,"lon":20.428,"category":"Diplomacy & government","article":"Yugoslav_coup_d'état","body":"A coup d'état took place on 27 March 1941 in Belgrade, Kingdom of Yugoslavia, when the regency led by Prince Paul of Yugoslavia was overthrown and King Peter II assumed full monarchical powers. The coup was planned and conducted by a group of pro-Western Serbian nationalist Royal Yugoslav Air Force officers formally led by the Air Force commander, General Dušan Simović, who had been associated with several putsch plots from 1938 onwards. Brigadier General of Military Aviation Borivoje Mirković, Major Živan Knežević of the Yugoslav Royal Guards, and his brother Radoje Knežević were the main organisers of the overthrow of the government.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q2118311","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q2118311"},{"title":"Yugoslav coup d'état — background and references","url":"https://en.wikipedia.org/wiki/Yugoslav_coup_d'%C3%A9tat"}],"briefSource":{"title":"Yugoslav coup d'état","url":"https://en.wikipedia.org/wiki/Yugoslav_coup_d%27%C3%A9tat","revision":1379808150,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1859259","year":1960,"title":"1960 Turkish coup d'état","place":"Turkey","region":"Asia","lat":39,"lon":36,"category":"Diplomacy & government","article":"1960_Turkish_coup_d'état","body":"The 1960 Turkish coup d'état (Turkish: 27 Mayıs Darbesi), also known as the 27 May Revolution (Turkish: 27 Mayıs İhtilali or 27 Mayıs Devrimi), was the first coup d'état in the Republic of Turkey. It took place on 27 May 1960. The coup was staged by a group of 38 young Turkish military officers, acting outside the military chain of command. The officers were de facto led by Cemal Madanoğlu until the actual coup date.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q1859259","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1859259"},{"title":"1960 Turkish coup d'état — background and references","url":"https://en.wikipedia.org/wiki/1960_Turkish_coup_d'%C3%A9tat"}],"briefSource":{"title":"1960 Turkish coup d'état","url":"https://en.wikipedia.org/wiki/1960_Turkish_coup_d%27%C3%A9tat","revision":1370101136,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q110663445","year":2022,"title":"January 2022 Burkina Faso coup d'état","place":"Ouagadougou","region":"Africa","lat":12.369,"lon":-1.527,"category":"Diplomacy & government","article":"January_2022_Burkina_Faso_coup_d'état","body":"A coup d'état was launched in Burkina Faso on 24 January 2022. Gunfire erupted in front of the presidential residence in the Burkinabé capital Ouagadougou and several military barracks around the city. Soldiers were reported to have seized control of the military base in the capital. The government denied there was an active coup in the country. Several hours later, President Roch Marc Christian Kaboré was reported to have been detained by the soldiers at the military camp in the capital.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q110663445","facts":[{"label":"Part of","value":"Jihadist insurgency in Burkina Faso"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q110663445"},{"title":"January 2022 Burkina Faso coup d'état — background and references","url":"https://en.wikipedia.org/wiki/January_2022_Burkina_Faso_coup_d'%C3%A9tat"}],"briefSource":{"title":"January 2022 Burkina Faso coup d'état","url":"https://en.wikipedia.org/wiki/January_2022_Burkina_Faso_coup_d%27%C3%A9tat","revision":1384282827,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1195058","year":1927,"title":"Shanghai massacre","place":"Shanghai","region":"Asia","lat":31.233,"lon":121.469,"category":"Diplomacy & government","article":"Shanghai_massacre","body":"The Shanghai massacre of 12 April 1927, the April 12 Purge or the April 12 Incident as it is commonly known in China, was the violent suppression of Chinese Communist Party (CCP) organizations and leftist elements in Shanghai by forces supporting General Chiang Kai-shek and conservative factions in the Kuomintang (Chinese Nationalist Party or KMT). The event began the campaign of anti-communist repression in Nationalist China. Following the incident, conservative KMT elements carried out a full-scale purge of communists in all areas under their control, and violent suppression occurred in Guangzhou and Changsha.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1195058","facts":[{"label":"Part of","value":"First Chinese Civil War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1195058"},{"title":"Shanghai massacre — background and references","url":"https://en.wikipedia.org/wiki/Shanghai_massacre"}],"briefSource":{"title":"Shanghai massacre","url":"https://en.wikipedia.org/wiki/Shanghai_massacre","revision":1382532190,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q641205","year":1941,"title":"1941 Iraqi coup d'état","place":"Kingdom of Iraq","region":"Asia","lat":33.333,"lon":44.383,"category":"Diplomacy & government","article":"1941_Iraqi_coup_d'état","body":"The 1941 Iraqi coup d'état , also called the Rashid Ali Al-Gaylani coup or the Golden Square coup, was a nationalist coup d'état in Iraq on 1 April 1941 that overthrew the pro-British regime of Regent 'Abd al-Ilah and his Prime Minister Nuri al-Said and installed Sharaf bin Rajeh as Regent and Rashid Ali al-Gaylani as Prime Minister. The coup was led by four Iraqi nationalist army generals, known as \\"the Golden Square\\", who intended to use the war to press for full Iraqi independence following the limited independence granted in 1932. To that end, they worked with German intelligence and accepted military assistance from Nazi Germany and Fascist Italy.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q641205","facts":[{"label":"Part of","value":"Mediterranean and Middle East Theater of World War II"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q641205"},{"title":"1941 Iraqi coup d'état — background and references","url":"https://en.wikipedia.org/wiki/1941_Iraqi_coup_d'%C3%A9tat"}],"briefSource":{"title":"1941 Iraqi coup d'état","url":"https://en.wikipedia.org/wiki/1941_Iraqi_coup_d%27%C3%A9tat","revision":1370279206,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q63096026","year":2019,"title":"2019 Sudanese coup d'état","place":"Khartoum","region":"Africa","lat":15.501,"lon":32.56,"category":"Diplomacy & government","article":"2019_Sudanese_coup_d'état","body":"A coup d'état overthrew President Omar al-Bashir and his three-decade authoritarian regime in Sudan on 11 April 2019, after months of widespread popular protests demanding his departure. Led by Defense Minister Lieutenant General Ahmed Awad Ibn Auf, the high command of the Sudanese Armed Forces dissolved the National Legislature, suspended the constitution, and declared a three-month state of emergency, before ultimately agreeing to a power-sharing arrangement with civilian forces that paved the way for a transitional government.","approximate":false,"imageNote":"No verified historical image available","catalog":true,"qid":"Q63096026","facts":[{"label":"Part of","value":"Sudanese Revolution"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q63096026"},{"title":"2019 Sudanese coup d'état — background and references","url":"https://en.wikipedia.org/wiki/2019_Sudanese_coup_d'%C3%A9tat"}],"briefSource":{"title":"2019 Sudanese coup d'état","url":"https://en.wikipedia.org/wiki/2019_Sudanese_coup_d%27%C3%A9tat","revision":1374910248,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q720498","year":1795,"title":"13 Vendémiaire","place":"Paris","region":"Europe","lat":48.857,"lon":2.352,"category":"Diplomacy & government","article":"13_Vendémiaire","body":"13 Vendémiaire, Year 4 in the French Republican Calendar (5 October 1795 in the Gregorian calendar), was a battle between the French Revolutionary troops and Royalist forces in the streets of Paris. This battle was part of the establishing of a new form of government, the Directory, and it was a major factor in the rapid advancement of Republican General Napoleon Bonaparte's career.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q720498","facts":[{"label":"Part of","value":"French Revolution"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q720498"},{"title":"13 Vendémiaire — background and references","url":"https://en.wikipedia.org/wiki/13_Vend%C3%A9miaire"}],"briefSource":{"title":"13 Vendémiaire","url":"https://en.wikipedia.org/wiki/13_Vend%C3%A9miaire","revision":1370277976,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q2578241","year":1963,"title":"Ramadan Revolution","place":"First Republic of Iraq","region":"Asia","lat":33,"lon":44,"category":"Diplomacy & government","article":"Ramadan_Revolution","body":"The Ramadan Revolution, also referred to as the 8 February Revolution and the February 1963 coup d'état in Iraq, was a military coup by the Iraqi branch of the Ba'ath Party in February 1963 that overthrew the prime minister of Iraq, Abdul-Karim Qasim in favour of a Ba'athist government. The coup was followed nine months later by a counter coup that saw the removal of the new government and a purging of Ba'ath Party members. The most powerful leader of the Ba'athist government that emerged from the coup was the secretary general of the Iraqi Ba'ath Party, Ali Salih al-Sa'di, who controlled the National Guard militia and organized a massacre of hundreds—if not thousands—of suspected communists and other dissidents following the coup.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q2578241","facts":[{"label":"Part of","value":"Cold War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q2578241"},{"title":"Ramadan Revolution — background and references","url":"https://en.wikipedia.org/wiki/Ramadan_Revolution"}],"briefSource":{"title":"Ramadan Revolution","url":"https://en.wikipedia.org/wiki/Ramadan_Revolution","revision":1380385472,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q875912","year":2012,"title":"2012 Malian coup d'état","place":"Mali","region":"Africa","lat":12.65,"lon":-8,"category":"Diplomacy & government","article":"2012_Malian_coup_d'état","body":"The 2012 Malian coup d'état began on 21 March that year, when mutinying Malian soldiers, displeased with the management of the Tuareg rebellion, attacked several locations in the capital Bamako, including the presidential palace, state television, and military barracks. The soldiers, who said they had formed the National Committee for the Restoration of Democracy and State, declared the following day that they had overthrown the government of Amadou Toumani Touré, forcing him into hiding. The coup was followed by \\"unanimous\\" international condemnation, harsh sanctions by Mali's neighbors, and the swift loss of northern Mali to Tuareg forces, leading Reuters to describe the coup as \\"a spectacular own-goal\\".","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q875912","facts":[{"label":"Part of","value":"Mali War"}],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q875912"},{"title":"2012 Malian coup d'état — background and references","url":"https://en.wikipedia.org/wiki/2012_Malian_coup_d'%C3%A9tat"}],"briefSource":{"title":"2012 Malian coup d'état","url":"https://en.wikipedia.org/wiki/2012_Malian_coup_d%27%C3%A9tat","revision":1376457762,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1062771","year":645,"title":"Isshi incident","place":"Itabuki Palace","region":"Asia","lat":34.473,"lon":135.821,"category":"Diplomacy & government","article":"Isshi_incident","body":"The Isshi incident was a successful plot by Nakatomi no Kamatari (Fujiwara no Kamatari), Prince Naka no Ōe and others who conspired to eliminate the main branch of the Soga clan, beginning with the assassination of Soga no Iruka. It takes its name from the zodiological name of the year 645 during which the Taika Reform, a transformative event in Japanese Imperial history, occurred.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1062771","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1062771"},{"title":"Isshi incident — background and references","url":"https://en.wikipedia.org/wiki/Isshi_incident"}],"briefSource":{"title":"Isshi incident","url":"https://en.wikipedia.org/wiki/Isshi_incident","revision":1371946800,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}},{"id":"event-q1192865","year":626,"title":"Xuanwu Gate Incident","place":"Xuanwu Gate","region":"Asia","lat":34.278,"lon":108.943,"category":"Diplomacy & government","article":"Xuanwu_Gate_Incident","body":"The Xuanwu Gate Incident was a palace coup for the throne of the Tang dynasty on 2 July 626. During the incident, Prince Li Shimin (Prince of Qin) and his followers assassinated his brothers Crown Prince Li Jiancheng and Prince Li Yuanji (Prince of Qi). Li Shimin took control and set up an ambush at Xuanwu Gate, the northern gate leading to the Palace City within the imperial capital Chang'an. Near that area, Li Jiancheng and Li Yuanji were killed by Li Shimin and his men.","approximate":false,"imageNote":"Historical image or associated place; see image credit","catalog":true,"qid":"Q1192865","facts":[],"sources":[{"title":"Wikidata structured record (CC0)","url":"https://www.wikidata.org/wiki/Q1192865"},{"title":"Xuanwu Gate Incident — background and references","url":"https://en.wikipedia.org/wiki/Xuanwu_Gate_Incident"}],"briefSource":{"title":"Xuanwu Gate Incident","url":"https://en.wikipedia.org/wiki/Xuanwu_Gate_Incident","revision":1370751152,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Shortened from the article introduction; formatting and pronunciation annotations may be removed."}}]`),ah=JSON.parse(`[{"id":"president-01","year":1789,"date":"1789-04-30","title":"George Washington becomes president","place":"New York City · first presidential inauguration","lat":40.7074,"lon":-74.0104,"region":"Americas","category":"Presidencies","article":"George_Washington","body":"George Washington (February 22, 1732 [O.S. February 11, 1731] – December 14, 1799) was a Founding Father and the first president of the United States, serving from 1789 to 1797. As commander of the Continental Army, Washington led Patriot forces to victory in the American Revolutionary War against the British Empire. He is commonly known as the Father of His Country for his role in bringing about American independence.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q23","presidency":{"ordinal":1,"name":"George Washington","born":"1732-02-22","died":"1799-12-14","birthplace":"George Washington Birthplace National Monument · Westmoreland County · Virginia","start":"1789-04-30","end":"1797-03-04","party":"Unaffiliated"},"facts":[{"label":"President","value":"No. 1 · George Washington"},{"label":"Born","value":"February 22, 1732"},{"label":"Birthplace","value":"George Washington Birthplace National Monument · Westmoreland County · Virginia"},{"label":"In office","value":"April 30, 1789 – March 4, 1797"},{"label":"Time served in this presidency","value":"7 years, 10 months (2,865 days)"},{"label":"Political affiliation","value":"Unaffiliated"},{"label":"Died","value":"December 14, 1799"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q23"}],"briefSource":{"title":"George Washington","url":"https://en.wikipedia.org/wiki/George_Washington","revision":1383292029,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-02","year":1797,"date":"1797-03-04","title":"John Adams becomes president","place":"Philadelphia · national capital at accession","lat":39.9489,"lon":-75.15,"region":"Americas","category":"Presidencies","article":"John_Adams","body":"John Adams (October 30, 1735 – July 4, 1826) was a Founding Father and the second president of the United States from 1797 to 1801. Before his presidency, he was a leader of the American Revolution that achieved independence from Great Britain. During the latter part of the Revolutionary War and in the early years of the new nation, he served the Continental Congress of the United States as a senior diplomat in Europe. Adams was the first vice president of the United States, serving from 1789 to 1797. He was a dedicated diarist and regularly corresponded with contemporaries, including his wife and advisor Abigail Adams and his friend and rival Thomas Jefferson.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q11806","presidency":{"ordinal":2,"name":"John Adams","born":"1735-10-30","died":"1826-07-04","birthplace":"Braintree · Norfolk County · Massachusetts","start":"1797-03-04","end":"1801-03-04","party":"Federalist"},"facts":[{"label":"President","value":"No. 2 · John Adams"},{"label":"Born","value":"October 30, 1735"},{"label":"Birthplace","value":"Braintree · Norfolk County · Massachusetts"},{"label":"In office","value":"March 4, 1797 – March 4, 1801"},{"label":"Time served in this presidency","value":"4 years (1,460 days)"},{"label":"Political affiliation","value":"Federalist"},{"label":"Died","value":"July 4, 1826"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q11806"}],"briefSource":{"title":"John Adams","url":"https://en.wikipedia.org/wiki/John_Adams","revision":1384347657,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-03","year":1801,"date":"1801-03-04","title":"Thomas Jefferson becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Thomas_Jefferson","body":"Thomas Jefferson (April 13 [O.S. April 2], 1743 – July 4, 1826) was a Founding Father and the third president of the United States, serving from 1801 to 1809. A prolific writer and philosopher, Jefferson was the primary author of the Declaration of Independence. His political philosophy formed the basis for Jeffersonian democracy, which dominated early American politics alongside federalism. Jefferson remains celebrated as an icon of American political values, but is also controversial for being a lifelong slave owner.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q11812","presidency":{"ordinal":3,"name":"Thomas Jefferson","born":"1743-04-13","died":"1826-07-04","birthplace":"Shadwell · Albemarle County · Virginia","start":"1801-03-04","end":"1809-03-04","party":"Democratic-Republican"},"facts":[{"label":"President","value":"No. 3 · Thomas Jefferson"},{"label":"Born","value":"April 13, 1743"},{"label":"Birthplace","value":"Shadwell · Albemarle County · Virginia"},{"label":"In office","value":"March 4, 1801 – March 4, 1809"},{"label":"Time served in this presidency","value":"8 years (2,922 days)"},{"label":"Political affiliation","value":"Democratic-Republican"},{"label":"Died","value":"July 4, 1826"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q11812"}],"briefSource":{"title":"Thomas Jefferson","url":"https://en.wikipedia.org/wiki/Thomas_Jefferson","revision":1384410394,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-04","year":1809,"date":"1809-03-04","title":"James Madison becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"James_Madison","body":"James Madison (March 16, 1751 [O.S. March 5, 1750] – June 28, 1836) was a Founding Father and the fourth president of the United States from 1809 to 1817. Before his presidency, Madison was a statesman and diplomat. Madison was popularly acclaimed as the \\"Father of the Constitution\\" for his pivotal role in drafting and promoting the Constitution of the United States and the Bill of Rights.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q11813","presidency":{"ordinal":4,"name":"James Madison","born":"1751-03-16","died":"1836-06-28","birthplace":"Port Conway · King George County · Virginia","start":"1809-03-04","end":"1817-03-04","party":"Democratic-Republican"},"facts":[{"label":"President","value":"No. 4 · James Madison"},{"label":"Born","value":"March 16, 1751"},{"label":"Birthplace","value":"Port Conway · King George County · Virginia"},{"label":"In office","value":"March 4, 1809 – March 4, 1817"},{"label":"Time served in this presidency","value":"8 years (2,922 days)"},{"label":"Political affiliation","value":"Democratic-Republican"},{"label":"Died","value":"June 28, 1836"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q11813"}],"briefSource":{"title":"James Madison","url":"https://en.wikipedia.org/wiki/James_Madison","revision":1384294529,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-05","year":1817,"date":"1817-03-04","title":"James Monroe becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"James_Monroe","body":"James Monroe (April 28, 1758 – July 4, 1831) was a Founding Father and the fifth president of the United States, serving from 1817 to 1825. He was the last Founding Father to serve as president. A member of the Democratic-Republican Party, his presidency coincided with the Era of Good Feelings, in which the First Party System of American politics ended with the collapse of the Federalist Party. He also issued the Monroe Doctrine, which deemed any form of foreign interference in the Western Hemisphere as a hostile act against the United States, and his doctrine continues to be denounced, reinstated, and reinterpreted into the 21st century.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q11815","presidency":{"ordinal":5,"name":"James Monroe","born":"1758-04-28","died":"1831-07-04","birthplace":"Monroe Hall · Westmoreland County · Virginia","start":"1817-03-04","end":"1825-03-04","party":"Democratic-Republican"},"facts":[{"label":"President","value":"No. 5 · James Monroe"},{"label":"Born","value":"April 28, 1758"},{"label":"Birthplace","value":"Monroe Hall · Westmoreland County · Virginia"},{"label":"In office","value":"March 4, 1817 – March 4, 1825"},{"label":"Time served in this presidency","value":"8 years (2,922 days)"},{"label":"Political affiliation","value":"Democratic-Republican"},{"label":"Died","value":"July 4, 1831"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q11815"}],"briefSource":{"title":"James Monroe","url":"https://en.wikipedia.org/wiki/James_Monroe","revision":1384362497,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-06","year":1825,"date":"1825-03-04","title":"John Quincy Adams becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"John_Quincy_Adams","body":"John Quincy Adams ( ; July 11, 1767 – February 23, 1848) was the sixth president of the United States, serving from 1825 to 1829. He previously served as the eighth United States secretary of state from 1817 to 1825; minister to Great Britain, Prussia, and Russia; and senator for Massachusetts. After his presidency, Adams uniquely returned to Congress as a member of the lower house until his death in 1848. He was the eldest son of John Adams, the second president, and First Lady Abigail Adams. Among his children were Charles Francis Adams Sr. Initially a Federalist like his father, Adams spent his presidency as a member of the Democratic-Republican Party, and later, in the mid-1830s, became affiliated with the Whig Party.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q11816","presidency":{"ordinal":6,"name":"John Quincy Adams","born":"1767-07-11","died":"1848-02-23","birthplace":"Braintree · Norfolk County · Massachusetts","start":"1825-03-04","end":"1829-03-04","party":"Democratic-Republican / National Republican"},"facts":[{"label":"President","value":"No. 6 · John Quincy Adams"},{"label":"Born","value":"July 11, 1767"},{"label":"Birthplace","value":"Braintree · Norfolk County · Massachusetts"},{"label":"In office","value":"March 4, 1825 – March 4, 1829"},{"label":"Time served in this presidency","value":"4 years (1,461 days)"},{"label":"Political affiliation","value":"Democratic-Republican / National Republican"},{"label":"Died","value":"February 23, 1848"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q11816"}],"briefSource":{"title":"John Quincy Adams","url":"https://en.wikipedia.org/wiki/John_Quincy_Adams","revision":1382829566,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-07","year":1829,"date":"1829-03-04","title":"Andrew Jackson becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Andrew_Jackson","body":"Andrew Jackson (March 15, 1767 – June 8, 1845) was the seventh president of the United States from 1829 to 1837. He rose to fame as a U.S. Army general and served in both houses of the U.S. Congress. His political philosophy, which dominated his presidency, became the basis for the rise of Jacksonian democracy. His legacy is controversial: being praised as an advocate for white working Americans and preserving the union of states, and criticized for his racist policies, particularly towards Native Americans.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q11817","presidency":{"ordinal":7,"name":"Andrew Jackson","born":"1767-03-15","died":"1845-06-08","birthplace":"Waxhaws, North Carolina–South Carolina border region (exact site disputed)","start":"1829-03-04","end":"1837-03-04","party":"Democratic"},"facts":[{"label":"President","value":"No. 7 · Andrew Jackson"},{"label":"Born","value":"March 15, 1767"},{"label":"Birthplace","value":"Waxhaws, North Carolina–South Carolina border region (exact site disputed)"},{"label":"In office","value":"March 4, 1829 – March 4, 1837"},{"label":"Time served in this presidency","value":"8 years (2,922 days)"},{"label":"Political affiliation","value":"Democratic"},{"label":"Died","value":"June 8, 1845"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q11817"}],"briefSource":{"title":"Andrew Jackson","url":"https://en.wikipedia.org/wiki/Andrew_Jackson","revision":1383006019,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-08","year":1837,"date":"1837-03-04","title":"Martin Van Buren becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Martin_Van_Buren","body":"Martin Van Buren (December 5, 1782 – July 24, 1862) was the eighth president of the United States, serving from 1837 to 1841. He founded the Democratic Party with Andrew Jackson and served as Jackson's vice president from 1833 to 1837. Van Buren was born in Kinderhook, New York, where most residents were of Dutch descent and spoke Dutch as their primary language. He is the only president to have spoken English as a second language. Van Buren entered politics as a member of the Democratic-Republican Party, won a seat in the New York State Senate in 1813, and was elected to the United States Senate eight years later. As the leader of the Bucktails faction of the party, he established the political machine known as the Albany Regency. Van Buren ran successfully for governor of New York to support Andrew Jackson's candidacy in the 1828 presidential election, but resigned shortly after Jackson was inaugurated so he could accept appointment as Jackson's secretary of state. In the cabinet, Van Buren was a key Jackson advisor and built the organizational structure for the coalescing Democratic Party. He ultimately resigned to help resolve the Petticoat affair and briefly served as ambassador to the United Kingdom. At Jackson's behest, the 1832 Democratic National Convention nominated Van Buren for vice president, and he took office after the Democratic ticket won the 1832 presidential election.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q11820","presidency":{"ordinal":8,"name":"Martin Van Buren","born":"1782-12-05","died":"1862-07-24","birthplace":"Kinderhook · Columbia County · New York","start":"1837-03-04","end":"1841-03-04","party":"Democratic"},"facts":[{"label":"President","value":"No. 8 · Martin Van Buren"},{"label":"Born","value":"December 5, 1782"},{"label":"Birthplace","value":"Kinderhook · Columbia County · New York"},{"label":"In office","value":"March 4, 1837 – March 4, 1841"},{"label":"Time served in this presidency","value":"4 years (1,461 days)"},{"label":"Political affiliation","value":"Democratic"},{"label":"Died","value":"July 24, 1862"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q11820"}],"briefSource":{"title":"Martin Van Buren","url":"https://en.wikipedia.org/wiki/Martin_Van_Buren","revision":1384377440,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-09","year":1841,"date":"1841-03-04","title":"William Henry Harrison becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"William_Henry_Harrison","body":"William Henry Harrison (February 9, 1773 – April 4, 1841) was the ninth president of the United States, serving from March 1841 until his death 31 days later in April that year. He was the shortest serving president and the first one to die in office. His death triggered a brief constitutional crisis regarding presidential succession which ended when John Tyler, Harrison's vice president, assumed the office.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q11869","presidency":{"ordinal":9,"name":"William Henry Harrison","born":"1773-02-09","died":"1841-04-04","birthplace":"Charles City County · Virginia","start":"1841-03-04","end":"1841-04-04","party":"Whig"},"facts":[{"label":"President","value":"No. 9 · William Henry Harrison"},{"label":"Born","value":"February 9, 1773"},{"label":"Birthplace","value":"Charles City County · Virginia"},{"label":"In office","value":"March 4, 1841 – April 4, 1841"},{"label":"Time served in this presidency","value":"1 month (31 days)"},{"label":"Political affiliation","value":"Whig"},{"label":"Died","value":"April 4, 1841"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q11869"}],"briefSource":{"title":"William Henry Harrison","url":"https://en.wikipedia.org/wiki/William_Henry_Harrison","revision":1384364315,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-10","year":1841,"date":"1841-04-04","title":"John Tyler becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"John_Tyler","body":"John Tyler (March 29, 1790 – January 18, 1862) was the tenth president of the United States, serving from 1841 to 1845, after briefly holding office as the tenth vice president in 1841. He was elected vice president on the 1840 Whig ticket with William Henry Harrison, succeeding to the presidency following Harrison's death 31 days after assuming office as president. Tyler was a stalwart supporter and advocate of states' rights, including regarding slavery, and he adopted nationalistic policies as president only when they did not infringe on the states' powers. His unexpected rise to the presidency posed a threat to the presidential ambitions of Senator Henry Clay and other Whig politicians and left Tyler estranged from both major political parties at the time: the Whigs and the Democrats.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q11881","presidency":{"ordinal":10,"name":"John Tyler","born":"1790-03-29","died":"1862-01-18","birthplace":"Greenway Plantation · Charles City County · Virginia","start":"1841-04-04","end":"1845-03-04","party":"Whig; later unaffiliated"},"facts":[{"label":"President","value":"No. 10 · John Tyler"},{"label":"Born","value":"March 29, 1790"},{"label":"Birthplace","value":"Greenway Plantation · Charles City County · Virginia"},{"label":"In office","value":"April 4, 1841 – March 4, 1845"},{"label":"Time served in this presidency","value":"3 years, 11 months (1,430 days)"},{"label":"Political affiliation","value":"Whig; later unaffiliated"},{"label":"Died","value":"January 18, 1862"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q11881"}],"briefSource":{"title":"John Tyler","url":"https://en.wikipedia.org/wiki/John_Tyler","revision":1382776040,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-11","year":1845,"date":"1845-03-04","title":"James K. Polk becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"James_K._Polk","body":"James Knox Polk (; November 2, 1795 – June 15, 1849) was the 11th president of the United States, serving from 1845 to 1849. A protégé of Andrew Jackson and a member of the Democratic Party, he was an advocate of American expansionism and Jacksonian democracy. Polk saw Texas join the Union in his first year in office; the annexation of the formerly independent republic, which had declared independence from Mexico, was one of the precipitating causes that soon led the U.S. into the Mexican–American War. The settlement of that war expanded American territory to the Pacific Ocean. During his term, the dispute with the United Kingdom over the Oregon Territory was resolved as well, creating the present U.S.-Canadian border.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q11891","presidency":{"ordinal":11,"name":"James K. Polk","born":"1795-11-02","died":"1849-06-15","birthplace":"Pineville · Mecklenburg County · North Carolina","start":"1845-03-04","end":"1849-03-04","party":"Democratic"},"facts":[{"label":"President","value":"No. 11 · James K. Polk"},{"label":"Born","value":"November 2, 1795"},{"label":"Birthplace","value":"Pineville · Mecklenburg County · North Carolina"},{"label":"In office","value":"March 4, 1845 – March 4, 1849"},{"label":"Time served in this presidency","value":"4 years (1,461 days)"},{"label":"Political affiliation","value":"Democratic"},{"label":"Died","value":"June 15, 1849"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q11891"}],"briefSource":{"title":"James K. Polk","url":"https://en.wikipedia.org/wiki/James_K._Polk","revision":1382776225,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-12","year":1849,"date":"1849-03-04","title":"Zachary Taylor becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Zachary_Taylor","body":"Zachary Taylor (November 24, 1784 – July 9, 1850) was the 12th president of the United States, serving from 1849 until his death in 1850. Before his presidency, Taylor was a career officer in the United States Army, rising to the rank of major general and becoming a national hero for his victories in the Mexican–American War. As a result, he won election to the White House despite his vague political beliefs. His top priority as president was to preserve the Union. He died 16 months into his term from a stomach disease. Taylor had the third-shortest presidential term in U.S. history.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q11896","presidency":{"ordinal":12,"name":"Zachary Taylor","born":"1784-11-24","died":"1850-07-09","birthplace":"Barboursville · Orange County · Virginia","start":"1849-03-04","end":"1850-07-09","party":"Whig"},"facts":[{"label":"President","value":"No. 12 · Zachary Taylor"},{"label":"Born","value":"November 24, 1784"},{"label":"Birthplace","value":"Barboursville · Orange County · Virginia"},{"label":"In office","value":"March 4, 1849 – July 9, 1850"},{"label":"Time served in this presidency","value":"1 year, 4 months (492 days)"},{"label":"Political affiliation","value":"Whig"},{"label":"Died","value":"July 9, 1850"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q11896"}],"briefSource":{"title":"Zachary Taylor","url":"https://en.wikipedia.org/wiki/Zachary_Taylor","revision":1381732130,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-13","year":1850,"date":"1850-07-09","title":"Millard Fillmore becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Millard_Fillmore","body":"Millard Fillmore (January 7, 1800 – March 8, 1874) was the 13th president of the United States, serving from 1850 to 1853. He was the last president to be a member of the Whig Party while in the White House, and the last to be neither a Democrat nor a Republican. A former member of the U.S. House of Representatives, Fillmore was elected vice president in 1848, and succeeded to the presidency when Zachary Taylor died in 1850. Fillmore was instrumental in passing the Compromise of 1850, which led to a brief truce in the battle over the expansion of slavery.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q12306","presidency":{"ordinal":13,"name":"Millard Fillmore","born":"1800-01-07","died":"1874-03-08","birthplace":"Summerhill · Cayuga County · New York","start":"1850-07-09","end":"1853-03-04","party":"Whig"},"facts":[{"label":"President","value":"No. 13 · Millard Fillmore"},{"label":"Born","value":"January 7, 1800"},{"label":"Birthplace","value":"Summerhill · Cayuga County · New York"},{"label":"In office","value":"July 9, 1850 – March 4, 1853"},{"label":"Time served in this presidency","value":"2 years, 7 months (969 days)"},{"label":"Political affiliation","value":"Whig"},{"label":"Died","value":"March 8, 1874"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q12306"}],"briefSource":{"title":"Millard Fillmore","url":"https://en.wikipedia.org/wiki/Millard_Fillmore","revision":1381896802,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-14","year":1853,"date":"1853-03-04","title":"Franklin Pierce becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Franklin_Pierce","body":"Franklin Pierce (November 23, 1804 – October 8, 1869) was the 14th president of the United States, serving from 1853 to 1857. A northern Democrat who believed that the abolitionist movement was a fundamental threat to national unity, he alienated anti-slavery groups by signing the Kansas–Nebraska Act and enforcing the Fugitive Slave Act. Conflict between North and South continued after Pierce's presidency, and, following Abraham Lincoln's victory in the 1860 presidential election, the Southern states seceded, resulting in the American Civil War.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q12312","presidency":{"ordinal":14,"name":"Franklin Pierce","born":"1804-11-23","died":"1869-10-08","birthplace":"Hillsborough · Hillsborough County · New Hampshire","start":"1853-03-04","end":"1857-03-04","party":"Democratic"},"facts":[{"label":"President","value":"No. 14 · Franklin Pierce"},{"label":"Born","value":"November 23, 1804"},{"label":"Birthplace","value":"Hillsborough · Hillsborough County · New Hampshire"},{"label":"In office","value":"March 4, 1853 – March 4, 1857"},{"label":"Time served in this presidency","value":"4 years (1,461 days)"},{"label":"Political affiliation","value":"Democratic"},{"label":"Died","value":"October 8, 1869"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q12312"}],"briefSource":{"title":"Franklin Pierce","url":"https://en.wikipedia.org/wiki/Franklin_Pierce","revision":1384499611,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-15","year":1857,"date":"1857-03-04","title":"James Buchanan becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"James_Buchanan","body":"James Buchanan Jr. (April 23, 1791 – June 1, 1868) was the 15th president of the United States, serving from 1857 to 1861. A Democrat from Pennsylvania, he upheld a pro-slavery interpretation of the U.S. Constitution that did little to reverse the sectional crisis between the North and South. In his final months in office, seven Southern states seceded, forming the Confederacy. On April 12, 1861, Confederate forces attacked Fort Sumter, starting the American Civil War.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q12325","presidency":{"ordinal":15,"name":"James Buchanan","born":"1791-04-23","died":"1868-06-01","birthplace":"Stony Batter · Franklin County · Pennsylvania","start":"1857-03-04","end":"1861-03-04","party":"Democratic"},"facts":[{"label":"President","value":"No. 15 · James Buchanan"},{"label":"Born","value":"April 23, 1791"},{"label":"Birthplace","value":"Stony Batter · Franklin County · Pennsylvania"},{"label":"In office","value":"March 4, 1857 – March 4, 1861"},{"label":"Time served in this presidency","value":"4 years (1,461 days)"},{"label":"Political affiliation","value":"Democratic"},{"label":"Died","value":"June 1, 1868"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q12325"}],"briefSource":{"title":"James Buchanan","url":"https://en.wikipedia.org/wiki/James_Buchanan","revision":1380954442,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-16","year":1861,"date":"1861-03-04","title":"Abraham Lincoln becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Abraham_Lincoln","body":"Abraham Lincoln (February 12, 1809 – April 15, 1865) was the 16th president of the United States, from 1861 until his assassination in 1865. He led the United States through the American Civil War, defeating the Confederacy and playing a major role in the abolition of slavery. Born in a one-room log cabin in Kentucky, Lincoln was raised on the frontier. He was self-educated and became a lawyer, Illinois state legislator, and U.S. representative. Angered by the Kansas–Nebraska Act of 1854, which opened the territories to slavery, he became a leader of the new Republican Party. He reached a national audience in the 1858 Senate campaign debates against Stephen A. Douglas. Lincoln won the 1860 presidential election, becoming the first Republican president. His victory prompted a majority of the slave states to begin seceding and form the Confederate States. A month after Lincoln assumed the presidency, Confederate forces attacked Fort Sumter, starting the Civil War.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q91","presidency":{"ordinal":16,"name":"Abraham Lincoln","born":"1809-02-12","died":"1865-04-15","birthplace":"Sinking Spring Farm · LaRue County · Kentucky","start":"1861-03-04","end":"1865-04-15","party":"Republican / National Union"},"facts":[{"label":"President","value":"No. 16 · Abraham Lincoln"},{"label":"Born","value":"February 12, 1809"},{"label":"Birthplace","value":"Sinking Spring Farm · LaRue County · Kentucky"},{"label":"In office","value":"March 4, 1861 – April 15, 1865"},{"label":"Time served in this presidency","value":"4 years, 1 month (1,503 days)"},{"label":"Political affiliation","value":"Republican / National Union"},{"label":"Died","value":"April 15, 1865"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q91"}],"briefSource":{"title":"Abraham Lincoln","url":"https://en.wikipedia.org/wiki/Abraham_Lincoln","revision":1383391533,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-17","year":1865,"date":"1865-04-15","title":"Andrew Johnson becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Andrew_Johnson","body":"Andrew Johnson (December 29, 1808 – July 31, 1875) was the 17th president of the United States, serving from 1865 to 1869. The 16th vice president, he assumed the presidency following the assassination of Abraham Lincoln. Johnson was a War Democrat who ran with Lincoln on the National Union Party ticket in the 1864 presidential election, coming to office as the American Civil War concluded. Johnson favored quick restoration of the seceded states to the Union without protection for the newly freed people who were formerly enslaved, as well as pardoning ex-Confederates. This led to conflict with the Republican Party-dominated U.S. Congress, culminating in his impeachment by the House of Representatives in 1868. He was acquitted in the Senate by one vote.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q8612","presidency":{"ordinal":17,"name":"Andrew Johnson","born":"1808-12-29","died":"1875-07-31","birthplace":"Raleigh · Wake County · North Carolina","start":"1865-04-15","end":"1869-03-04","party":"National Union / Democratic"},"facts":[{"label":"President","value":"No. 17 · Andrew Johnson"},{"label":"Born","value":"December 29, 1808"},{"label":"Birthplace","value":"Raleigh · Wake County · North Carolina"},{"label":"In office","value":"April 15, 1865 – March 4, 1869"},{"label":"Time served in this presidency","value":"3 years, 10 months (1,419 days)"},{"label":"Political affiliation","value":"National Union / Democratic"},{"label":"Died","value":"July 31, 1875"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q8612"}],"briefSource":{"title":"Andrew Johnson","url":"https://en.wikipedia.org/wiki/Andrew_Johnson","revision":1381437751,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-18","year":1869,"date":"1869-03-04","title":"Ulysses S. Grant becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Ulysses_S._Grant","body":"Ulysses S. Grant (born Hiram Ulysses Grant; April 27, 1822 – July 23, 1885) was the 18th president of the United States, serving from 1869 to 1877, and was the Commanding General of the Union Army. He led the army to victory in the American Civil War in 1865. Grant was born in Ohio and graduated from the United States Military Academy in 1843. He served with distinction in the Mexican–American War, but returned to civilian life impoverished in 1854. In 1861, shortly after the Civil War began, Grant joined the Union Army. He rose to prominence after securing victories in the western theater in 1862. In 1863, he led the Vicksburg campaign that gave Union forces control of the Mississippi River and dealt a major strategic blow to the Confederacy. President Abraham Lincoln promoted Grant to lieutenant general and command of all Union armies after his victory at Chattanooga. Grant fought Robert E. Lee through the Overland Campaign, which ended when Lee surrendered to Grant at Appomattox. In 1866, President Andrew Johnson promoted Grant to General of the Army. Grant broke with Johnson over Reconstruction policies. A war hero, drawn in by his sense of duty, Grant was unanimously nominated by the Republican Party and elected president in 1868.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q34836","presidency":{"ordinal":18,"name":"Ulysses S. Grant","born":"1822-04-27","died":"1885-07-23","birthplace":"Point Pleasant · Monroe Township · Ohio","start":"1869-03-04","end":"1877-03-04","party":"Republican"},"facts":[{"label":"President","value":"No. 18 · Ulysses S. Grant"},{"label":"Born","value":"April 27, 1822"},{"label":"Birthplace","value":"Point Pleasant · Monroe Township · Ohio"},{"label":"In office","value":"March 4, 1869 – March 4, 1877"},{"label":"Time served in this presidency","value":"8 years (2,922 days)"},{"label":"Political affiliation","value":"Republican"},{"label":"Died","value":"July 23, 1885"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q34836"}],"briefSource":{"title":"Ulysses S. Grant","url":"https://en.wikipedia.org/wiki/Ulysses_S._Grant","revision":1384335961,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-19","year":1877,"date":"1877-03-04","title":"Rutherford B. Hayes becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Rutherford_B._Hayes","body":"Rutherford Birchard Hayes ( ; October 4, 1822 – January 17, 1893) was the 19th president of the United States, serving from 1877 to 1881. He served as Cincinnati's city solicitor from 1858 to 1861 and was known as a staunch abolitionist who defended refugee slaves in court proceedings. At the start of the Civil War, Hayes left a fledgling political career to join the Union army. He was wounded five times, most seriously at the Battle of South Mountain in 1862. Hayes earned a reputation for bravery in combat, rising in the ranks to serve as brevet major general. After the war, he was a prominent member of the \\"Half-Breed\\" faction of the Republican Party. Hayes served in Congress from 1865 to 1867 and was elected governor of Ohio, serving two consecutive terms from 1868 to 1872 and half of a third two-year term from 1876 to 1877 before his swearing-in as president.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q35686","presidency":{"ordinal":19,"name":"Rutherford B. Hayes","born":"1822-10-04","died":"1893-01-17","birthplace":"Delaware · Delaware County · Ohio","start":"1877-03-04","end":"1881-03-04","party":"Republican"},"facts":[{"label":"President","value":"No. 19 · Rutherford B. Hayes"},{"label":"Born","value":"October 4, 1822"},{"label":"Birthplace","value":"Delaware · Delaware County · Ohio"},{"label":"In office","value":"March 4, 1877 – March 4, 1881"},{"label":"Time served in this presidency","value":"4 years (1,461 days)"},{"label":"Political affiliation","value":"Republican"},{"label":"Died","value":"January 17, 1893"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q35686"}],"briefSource":{"title":"Rutherford B. Hayes","url":"https://en.wikipedia.org/wiki/Rutherford_B._Hayes","revision":1383844451,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-20","year":1881,"date":"1881-03-04","title":"James A. Garfield becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"James_A._Garfield","body":"James Abram Garfield (November 19, 1831 – September 19, 1881) was the 20th president of the United States, serving from March 1881 until his death in September that year after being shot in July. A preacher, lawyer, and Civil War general, Garfield served nine terms in the United States House of Representatives and is the only sitting member of the House to be elected president. Before he ran for president, the Ohio General Assembly had elected him to the U.S. Senate, a position he declined upon becoming president-elect.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q34597","presidency":{"ordinal":20,"name":"James A. Garfield","born":"1831-11-19","died":"1881-09-19","birthplace":"Moreland Hills · Cuyahoga County · Ohio","start":"1881-03-04","end":"1881-09-19","party":"Republican"},"facts":[{"label":"President","value":"No. 20 · James A. Garfield"},{"label":"Born","value":"November 19, 1831"},{"label":"Birthplace","value":"Moreland Hills · Cuyahoga County · Ohio"},{"label":"In office","value":"March 4, 1881 – September 19, 1881"},{"label":"Time served in this presidency","value":"6 months (199 days)"},{"label":"Political affiliation","value":"Republican"},{"label":"Died","value":"September 19, 1881"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q34597"}],"briefSource":{"title":"James A. Garfield","url":"https://en.wikipedia.org/wiki/James_A._Garfield","revision":1382863733,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-21","year":1881,"date":"1881-09-19","title":"Chester A. Arthur becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Chester_A._Arthur","body":"Chester Alan Arthur (October 5, 1829 – November 18, 1886) was the 21st president of the United States, serving from 1881 to 1885. A Republican from New York, he served as the 20th vice president under President James A. Garfield in 1881, assuming the presidency after Garfield's assassination. Arthur's administration saw the largest expansion of the U.S. Navy, the end of the so-called \\"spoils system\\", and the implementation of harsher restrictions for migrants entering from abroad.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q35498","presidency":{"ordinal":21,"name":"Chester A. Arthur","born":"1829-10-05","died":"1886-11-18","birthplace":"Fairfield · Franklin County · Vermont","start":"1881-09-19","end":"1885-03-04","party":"Republican"},"facts":[{"label":"President","value":"No. 21 · Chester A. Arthur"},{"label":"Born","value":"October 5, 1829"},{"label":"Birthplace","value":"Fairfield · Franklin County · Vermont"},{"label":"In office","value":"September 19, 1881 – March 4, 1885"},{"label":"Time served in this presidency","value":"3 years, 5 months (1,262 days)"},{"label":"Political affiliation","value":"Republican"},{"label":"Died","value":"November 18, 1886"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q35498"}],"briefSource":{"title":"Chester A. Arthur","url":"https://en.wikipedia.org/wiki/Chester_A._Arthur","revision":1382776912,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-22","year":1885,"date":"1885-03-04","title":"Grover Cleveland · first presidency","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Grover_Cleveland","body":"Stephen Grover Cleveland (March 18, 1837 – June 24, 1908) was the 22nd and 24th president of the United States, serving from 1885 to 1889 and from 1893 to 1897. He was the first Democrat elected president after the American Civil War and the first U.S. president to serve nonconsecutive terms. Born in Caldwell, New Jersey, Cleveland was elected mayor of Buffalo in 1881 and governor of New York in 1882. While governor, he closely cooperated with state assembly minority leader Theodore Roosevelt to pass reform measures, winning national attention. He led the Bourbon Democrats, a pro-business movement opposed to high tariffs, free silver, inflation, imperialism, and subsidies to businesses, farmers, or veterans. His crusade for political reform and fiscal conservatism made him an icon for American conservatives of the time. Cleveland also won praise for honesty, self-reliance, integrity, and commitment to classical liberalism. His fight against political corruption, patronage, and bossism convinced many like-minded Republicans, called \\"Mugwumps\\", to cross party lines and support him despite a sexual assault scandal involving a child he fathered.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q35171","presidency":{"ordinal":22,"name":"Grover Cleveland","born":"1837-03-18","died":"1908-06-24","birthplace":"Caldwell · Essex County · New Jersey","start":"1885-03-04","end":"1889-03-04","party":"Democratic"},"facts":[{"label":"President","value":"No. 22 · Grover Cleveland"},{"label":"Born","value":"March 18, 1837"},{"label":"Birthplace","value":"Caldwell · Essex County · New Jersey"},{"label":"In office","value":"March 4, 1885 – March 4, 1889"},{"label":"Time served in this presidency","value":"4 years (1,461 days)"},{"label":"Political affiliation","value":"Democratic"},{"label":"Died","value":"June 24, 1908"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q35171"}],"briefSource":{"title":"Grover Cleveland","url":"https://en.wikipedia.org/wiki/Grover_Cleveland","revision":1383127049,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-23","year":1889,"date":"1889-03-04","title":"Benjamin Harrison becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Benjamin_Harrison","body":"Benjamin Harrison (August 20, 1833 – March 13, 1901) was the 23rd president of the United States, serving from 1889 to 1893. He was a member of the Harrison family of Virginia—a grandson of the ninth president, William Henry Harrison, and a great-grandson of Benjamin Harrison V, a Founding Father. A Union army veteran and a Republican, he defeated Democratic Party incumbent Grover Cleveland to win the presidency in the 1888 United States presidential election by winning the Electoral College while losing the popular vote. He was defeated by Cleveland in the 1892 United States presidential election, becoming the first president to be succeeded in office by his predecessor.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q35678","presidency":{"ordinal":23,"name":"Benjamin Harrison","born":"1833-08-20","died":"1901-03-13","birthplace":"North Bend · Miami Township · Ohio","start":"1889-03-04","end":"1893-03-04","party":"Republican"},"facts":[{"label":"President","value":"No. 23 · Benjamin Harrison"},{"label":"Born","value":"August 20, 1833"},{"label":"Birthplace","value":"North Bend · Miami Township · Ohio"},{"label":"In office","value":"March 4, 1889 – March 4, 1893"},{"label":"Time served in this presidency","value":"4 years (1,461 days)"},{"label":"Political affiliation","value":"Republican"},{"label":"Died","value":"March 13, 1901"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q35678"}],"briefSource":{"title":"Benjamin Harrison","url":"https://en.wikipedia.org/wiki/Benjamin_Harrison","revision":1382777305,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-24","year":1893,"date":"1893-03-04","title":"Grover Cleveland · second presidency","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Grover_Cleveland","body":"Grover Cleveland returned to the presidency for a second, nonconsecutive period in office. Stephen Grover Cleveland (March 18, 1837 – June 24, 1908) was the 22nd and 24th president of the United States, serving from 1885 to 1889 and from 1893 to 1897. He was the first Democrat elected president after the American Civil War and the first U.S. president to serve nonconsecutive terms. Born in Caldwell, New Jersey, Cleveland was elected mayor of Buffalo in 1881 and governor of New York in 1882. While governor, he closely cooperated with state assembly minority leader Theodore Roosevelt to pass reform measures, winning national attention. He led the Bourbon Democrats, a pro-business movement opposed to high tariffs, free silver, inflation, imperialism, and subsidies to businesses, farmers, or veterans. His crusade for political reform and fiscal conservatism made him an icon for American conservatives of the time. Cleveland also won praise for honesty, self-reliance, integrity, and commitment to classical liberalism. His fight against political corruption, patronage, and bossism convinced many like-minded Republicans, called \\"Mugwumps\\", to cross party lines and support him despite a sexual assault scandal involving a child he fathered.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q35171","presidency":{"ordinal":24,"name":"Grover Cleveland","born":"1837-03-18","died":"1908-06-24","birthplace":"Caldwell · Essex County · New Jersey","start":"1893-03-04","end":"1897-03-04","party":"Democratic"},"facts":[{"label":"President","value":"No. 24 · Grover Cleveland"},{"label":"Born","value":"March 18, 1837"},{"label":"Birthplace","value":"Caldwell · Essex County · New Jersey"},{"label":"In office","value":"March 4, 1893 – March 4, 1897"},{"label":"Time served in this presidency","value":"4 years (1,461 days)"},{"label":"Political affiliation","value":"Democratic"},{"label":"Died","value":"June 24, 1908"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q35171"}],"briefSource":{"title":"Grover Cleveland","url":"https://en.wikipedia.org/wiki/Grover_Cleveland","revision":1383127049,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-25","year":1897,"date":"1897-03-04","title":"William McKinley becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"William_McKinley","body":"William McKinley (January 29, 1843 – September 14, 1901) was the 25th president of the United States, serving from 1897 until his assassination in 1901. A member of the Republican Party, he led a realignment that made Republicans largely dominant in the industrial states and nationwide for decades. McKinley successfully led the U.S. in the Spanish–American War and oversaw a period of American expansionism, with the annexations of Hawaii, Puerto Rico, Guam, the Philippines, and American Samoa.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q35041","presidency":{"ordinal":25,"name":"William McKinley","born":"1843-01-29","died":"1901-09-14","birthplace":"Niles · Trumbull County · Ohio","start":"1897-03-04","end":"1901-09-14","party":"Republican"},"facts":[{"label":"President","value":"No. 25 · William McKinley"},{"label":"Born","value":"January 29, 1843"},{"label":"Birthplace","value":"Niles · Trumbull County · Ohio"},{"label":"In office","value":"March 4, 1897 – September 14, 1901"},{"label":"Time served in this presidency","value":"4 years, 6 months (1,654 days)"},{"label":"Political affiliation","value":"Republican"},{"label":"Died","value":"September 14, 1901"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q35041"}],"briefSource":{"title":"William McKinley","url":"https://en.wikipedia.org/wiki/William_McKinley","revision":1384160075,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-26","year":1901,"date":"1901-09-14","title":"Theodore Roosevelt becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Theodore_Roosevelt","body":"Theodore Roosevelt Jr. (October 27, 1858 – January 6, 1919) was the 26th president of the United States, serving from 1901 to 1909. A member of the Republican Party and the 25th vice president, he assumed the presidency after President William McKinley was assassinated. Roosevelt was the youngest person to be president, at 42 years old. A sickly child with debilitating asthma, Roosevelt overcame health problems through a regime of vigorous exercise, which he called \\"the strenuous life\\". He was homeschooled and began a lifelong naturalist avocation before attending Harvard University. His book The Naval War of 1812 established his reputation as a historian and popular writer. Roosevelt became leader of the reform faction of Republicans in the New York State Legislature. After the simultaneous deaths of his first wife Alice Hathaway Lee Roosevelt and mother Martha Bulloch Roosevelt, he recuperated by buying and operating a cattle ranch in the Dakotas. Roosevelt served as the assistant secretary of the Navy under McKinley, and in 1898 helped plan the successful naval war against Spain. He resigned to help form and lead the Rough Riders, a unit that fought the Spanish Army in Cuba to great publicity. Returning a war hero, Roosevelt was elected New York's governor in 1898. Because the New York state party leadership disliked his ambitious state agenda, they convinced McKinley to choose him as his running mate in the 1900 presidential election. The McKinley–Roosevelt ticket won a landslide victory.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q33866","presidency":{"ordinal":26,"name":"Theodore Roosevelt","born":"1858-10-27","died":"1919-01-06","birthplace":"Manhattan · New York City · New York","start":"1901-09-14","end":"1909-03-04","party":"Republican"},"facts":[{"label":"President","value":"No. 26 · Theodore Roosevelt"},{"label":"Born","value":"October 27, 1858"},{"label":"Birthplace","value":"Manhattan · New York City · New York"},{"label":"In office","value":"September 14, 1901 – March 4, 1909"},{"label":"Time served in this presidency","value":"7 years, 5 months (2,728 days)"},{"label":"Political affiliation","value":"Republican"},{"label":"Died","value":"January 6, 1919"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q33866"}],"briefSource":{"title":"Theodore Roosevelt","url":"https://en.wikipedia.org/wiki/Theodore_Roosevelt","revision":1384489760,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-27","year":1909,"date":"1909-03-04","title":"William Howard Taft becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"William_Howard_Taft","body":"William Howard Taft (September 15, 1857 – March 8, 1930) was the 27th president of the United States from 1909 to 1913 and the tenth chief justice of the United States from 1921 to 1930. He is the only person to have held both offices. Taft was born in Cincinnati, Ohio. His father, Alphonso Taft, was a U.S. attorney general and secretary of war. Taft attended Yale University and the Cincinnati Law School. After becoming a lawyer, he was appointed a judge while still in his twenties and continued a rapid rise, being named solicitor general and a judge of the Sixth Circuit Court of Appeals in the 1890s. President William McKinley appointed Taft civilian governor of the Philippines in 1901. President Theodore Roosevelt made him secretary of war in 1904, and he became Roosevelt's hand-picked successor. With Roosevelt's help, Taft easily won the Republican nomination for president in 1908 and defeated William Jennings Bryan for the presidency in the general election.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q35648","presidency":{"ordinal":27,"name":"William Howard Taft","born":"1857-09-15","died":"1930-03-08","birthplace":"Cincinnati · Hamilton County · Ohio","start":"1909-03-04","end":"1913-03-04","party":"Republican"},"facts":[{"label":"President","value":"No. 27 · William Howard Taft"},{"label":"Born","value":"September 15, 1857"},{"label":"Birthplace","value":"Cincinnati · Hamilton County · Ohio"},{"label":"In office","value":"March 4, 1909 – March 4, 1913"},{"label":"Time served in this presidency","value":"4 years (1,461 days)"},{"label":"Political affiliation","value":"Republican"},{"label":"Died","value":"March 8, 1930"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q35648"}],"briefSource":{"title":"William Howard Taft","url":"https://en.wikipedia.org/wiki/William_Howard_Taft","revision":1384498920,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-28","year":1913,"date":"1913-03-04","title":"Woodrow Wilson becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Woodrow_Wilson","body":"Thomas Woodrow Wilson (December 28, 1856 – February 3, 1924) was the 28th president of the United States, serving from 1913 to 1921. He was the only Democrat to serve as president during the Progressive Era, when Republicans dominated the presidency and legislative branches. As president, Wilson made significant economic reforms and led the United States through World War I. He was the leading architect of the League of Nations, and his stance on foreign policy came to be known as Wilsonian idealism.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q34296","presidency":{"ordinal":28,"name":"Woodrow Wilson","born":"1856-12-28","died":"1924-02-03","birthplace":"Staunton · Virginia","start":"1913-03-04","end":"1921-03-04","party":"Democratic"},"facts":[{"label":"President","value":"No. 28 · Woodrow Wilson"},{"label":"Born","value":"December 28, 1856"},{"label":"Birthplace","value":"Staunton · Virginia"},{"label":"In office","value":"March 4, 1913 – March 4, 1921"},{"label":"Time served in this presidency","value":"8 years (2,922 days)"},{"label":"Political affiliation","value":"Democratic"},{"label":"Died","value":"February 3, 1924"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q34296"}],"briefSource":{"title":"Woodrow Wilson","url":"https://en.wikipedia.org/wiki/Woodrow_Wilson","revision":1384532042,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-29","year":1921,"date":"1921-03-04","title":"Warren G. Harding becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Warren_G._Harding","body":"Warren Gamaliel Harding (November 2, 1865 – August 2, 1923) was the 29th president of the United States, serving from 1921 until his death in 1923. A member of the Republican Party, he was one of the most popular presidents at the time of his death. After that, a number of scandals were exposed that greatly damaged his reputation. Harding lived in rural Ohio all his life, except when political service took him elsewhere. As a young man, he bought The Marion Star and built it into a successful newspaper. Harding served in the Ohio State Senate from 1900 to 1904, and was lieutenant governor for two years. He was defeated for governor in 1910, but was elected to the United States Senate in 1914—the state's first direct election for that office. Harding ran for the Republican nomination for president in 1920, but was considered a long shot before the convention. When the leading candidates could not garner a majority, and the convention deadlocked, support for Harding increased, and he was nominated on the tenth ballot. He conducted a front porch campaign, remaining mostly in Marion and allowing people to come to him. He promised a return to normalcy of the pre–World War I period, and defeated Democratic nominee James M. Cox in a landslide, becoming the first sitting senator to be elected president.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q35286","presidency":{"ordinal":29,"name":"Warren G. Harding","born":"1865-11-02","died":"1923-08-02","birthplace":"Blooming Grove · Morrow County · Ohio","start":"1921-03-04","end":"1923-08-02","party":"Republican"},"facts":[{"label":"President","value":"No. 29 · Warren G. Harding"},{"label":"Born","value":"November 2, 1865"},{"label":"Birthplace","value":"Blooming Grove · Morrow County · Ohio"},{"label":"In office","value":"March 4, 1921 – August 2, 1923"},{"label":"Time served in this presidency","value":"2 years, 4 months (881 days)"},{"label":"Political affiliation","value":"Republican"},{"label":"Died","value":"August 2, 1923"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q35286"}],"briefSource":{"title":"Warren G. Harding","url":"https://en.wikipedia.org/wiki/Warren_G._Harding","revision":1383720707,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-30","year":1923,"date":"1923-08-02","title":"Calvin Coolidge becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Calvin_Coolidge","body":"Calvin Coolidge (born John Calvin Coolidge Jr.; KOOL-ij; July 4, 1872 – January 5, 1933) was the 30th president of the United States, serving from 1923 to 1929. A Republican lawyer from Massachusetts, he served from 1921 to 1923 as the 29th vice president, under President Warren G. Harding, and from 1919 to 1921 as the 48th governor of Massachusetts. Coolidge gained a reputation as a small-government conservative, with a taciturn personality and dry sense of humor that earned him the nickname \\"Silent Cal\\".","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q36023","presidency":{"ordinal":30,"name":"Calvin Coolidge","born":"1872-07-04","died":"1933-01-05","birthplace":"Plymouth Notch · Plymouth · Vermont","start":"1923-08-02","end":"1929-03-04","party":"Republican"},"facts":[{"label":"President","value":"No. 30 · Calvin Coolidge"},{"label":"Born","value":"July 4, 1872"},{"label":"Birthplace","value":"Plymouth Notch · Plymouth · Vermont"},{"label":"In office","value":"August 2, 1923 – March 4, 1929"},{"label":"Time served in this presidency","value":"5 years, 7 months (2,041 days)"},{"label":"Political affiliation","value":"Republican"},{"label":"Died","value":"January 5, 1933"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q36023"}],"briefSource":{"title":"Calvin Coolidge","url":"https://en.wikipedia.org/wiki/Calvin_Coolidge","revision":1384207505,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-31","year":1929,"date":"1929-03-04","title":"Herbert Hoover becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Herbert_Hoover","body":"Herbert Clark Hoover (August 10, 1874 – October 20, 1964) was the 31st president of the United States from 1929 to 1933. A member of the Republican Party, his presidency was dominated by the Great Depression, and his ineffectual response to the growing economic crisis made him widely unpopular. He lost reelection to Democratic nominee Franklin D. Roosevelt in 1932.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q35236","presidency":{"ordinal":31,"name":"Herbert Hoover","born":"1874-08-10","died":"1964-10-20","birthplace":"Herbert Hoover National Historic Site · West Branch · Iowa","start":"1929-03-04","end":"1933-03-04","party":"Republican"},"facts":[{"label":"President","value":"No. 31 · Herbert Hoover"},{"label":"Born","value":"August 10, 1874"},{"label":"Birthplace","value":"Herbert Hoover National Historic Site · West Branch · Iowa"},{"label":"In office","value":"March 4, 1929 – March 4, 1933"},{"label":"Time served in this presidency","value":"4 years (1,461 days)"},{"label":"Political affiliation","value":"Republican"},{"label":"Died","value":"October 20, 1964"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q35236"}],"briefSource":{"title":"Herbert Hoover","url":"https://en.wikipedia.org/wiki/Herbert_Hoover","revision":1384392939,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-32","year":1933,"date":"1933-03-04","title":"Franklin D. Roosevelt becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Franklin_D._Roosevelt","body":"Franklin Delano Roosevelt (January 30, 1882 – April 12, 1945), also known as FDR, was the 32nd president of the United States, serving from 1933 until his death in 1945. He is the longest-serving US president and the only one to have served more than two terms. His first two terms centered on combating the Great Depression, while his third and fourth focused on US involvement in World War II. A member of the Democratic Party, Roosevelt served in the New York State Senate from 1911 to 1913 and as the 44th governor of New York from 1929 to 1932.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q8007","presidency":{"ordinal":32,"name":"Franklin D. Roosevelt","born":"1882-01-30","died":"1945-04-12","birthplace":"Home of Franklin D. Roosevelt National Historic Site · Hyde Park · New York","start":"1933-03-04","end":"1945-04-12","party":"Democratic"},"facts":[{"label":"President","value":"No. 32 · Franklin D. Roosevelt"},{"label":"Born","value":"January 30, 1882"},{"label":"Birthplace","value":"Home of Franklin D. Roosevelt National Historic Site · Hyde Park · New York"},{"label":"In office","value":"March 4, 1933 – April 12, 1945"},{"label":"Time served in this presidency","value":"12 years, 1 month (4,422 days)"},{"label":"Political affiliation","value":"Democratic"},{"label":"Died","value":"April 12, 1945"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q8007"}],"briefSource":{"title":"Franklin D. Roosevelt","url":"https://en.wikipedia.org/wiki/Franklin_D._Roosevelt","revision":1384177333,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-33","year":1945,"date":"1945-04-12","title":"Harry S. Truman becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Harry_S._Truman","body":"Harry S. Truman (May 8, 1884 – December 26, 1972) was the 33rd president of the United States, serving from 1945 to 1953. As the 34th vice president in 1945, he assumed the presidency upon the death of Franklin D. Roosevelt in April. Truman set up the Marshall Plan to rebuild the badly damaged economy of Western Europe. He established the Truman Doctrine and supported the founding of NATO to contain the expansion of Soviet communism. A member of the Democratic Party, he proposed numerous New Deal coalition liberal domestic reforms, but few were enacted by the conservative coalition that dominated the United States Congress.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q11613","presidency":{"ordinal":33,"name":"Harry S. Truman","born":"1884-05-08","died":"1972-12-26","birthplace":"Harry S Truman Birthplace State Historic Site · Lamar · Missouri","start":"1945-04-12","end":"1953-01-20","party":"Democratic"},"facts":[{"label":"President","value":"No. 33 · Harry S. Truman"},{"label":"Born","value":"May 8, 1884"},{"label":"Birthplace","value":"Harry S Truman Birthplace State Historic Site · Lamar · Missouri"},{"label":"In office","value":"April 12, 1945 – January 20, 1953"},{"label":"Time served in this presidency","value":"7 years, 9 months (2,840 days)"},{"label":"Political affiliation","value":"Democratic"},{"label":"Died","value":"December 26, 1972"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q11613"}],"briefSource":{"title":"Harry S. Truman","url":"https://en.wikipedia.org/wiki/Harry_S._Truman","revision":1382844197,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-34","year":1953,"date":"1953-01-20","title":"Dwight D. Eisenhower becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Dwight_D._Eisenhower","body":"Dwight David Eisenhower (born David Dwight Eisenhower; October 14, 1890 – March 28, 1969) was the 34th president of the United States, serving from 1953 to 1961. A member of the Republican Party, he was renowned as a World War II general who commanded Allied forces in Operation Torch and Operation Overlord. He attained the five-star rank of General of the Army in 1944.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q9916","presidency":{"ordinal":34,"name":"Dwight D. Eisenhower","born":"1890-10-14","died":"1969-03-28","birthplace":"Eisenhower Birthplace State Historic Site · Denison · Texas","start":"1953-01-20","end":"1961-01-20","party":"Republican"},"facts":[{"label":"President","value":"No. 34 · Dwight D. Eisenhower"},{"label":"Born","value":"October 14, 1890"},{"label":"Birthplace","value":"Eisenhower Birthplace State Historic Site · Denison · Texas"},{"label":"In office","value":"January 20, 1953 – January 20, 1961"},{"label":"Time served in this presidency","value":"8 years (2,922 days)"},{"label":"Political affiliation","value":"Republican"},{"label":"Died","value":"March 28, 1969"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q9916"}],"briefSource":{"title":"Dwight D. Eisenhower","url":"https://en.wikipedia.org/wiki/Dwight_D._Eisenhower","revision":1383321533,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-35","year":1961,"date":"1961-01-20","title":"John F. Kennedy becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"John_F._Kennedy","body":"John Fitzgerald Kennedy (May 29, 1917 – November 22, 1963), also known as JFK, was the 35th president of the United States, serving from 1961 until his assassination in 1963. A member of the Democratic Party, he represented Massachusetts in both houses of the U.S. Congress before his presidency. Kennedy was the youngest elected president at 43 years, and the first Roman Catholic president.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q9696","presidency":{"ordinal":35,"name":"John F. Kennedy","born":"1917-05-29","died":"1963-11-22","birthplace":"John Fitzgerald Kennedy National Historic Site · Brookline · Massachusetts","start":"1961-01-20","end":"1963-11-22","party":"Democratic"},"facts":[{"label":"President","value":"No. 35 · John F. Kennedy"},{"label":"Born","value":"May 29, 1917"},{"label":"Birthplace","value":"John Fitzgerald Kennedy National Historic Site · Brookline · Massachusetts"},{"label":"In office","value":"January 20, 1961 – November 22, 1963"},{"label":"Time served in this presidency","value":"2 years, 10 months (1,036 days)"},{"label":"Political affiliation","value":"Democratic"},{"label":"Died","value":"November 22, 1963"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q9696"}],"briefSource":{"title":"John F. Kennedy","url":"https://en.wikipedia.org/wiki/John_F._Kennedy","revision":1384484318,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-36","year":1963,"date":"1963-11-22","title":"Lyndon B. Johnson becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Lyndon_B._Johnson","body":"Lyndon Baines Johnson (August 27, 1908 – January 22, 1973), also known as LBJ, was the 36th president of the United States, serving from 1963 to 1969. The 37th vice president, he assumed the presidency following the assassination of John F. Kennedy. Johnson was a Southern Democrat who represented Texas in both houses of the U.S. Congress and earned a reputation as a talented and persuasive legislator. His presidency was marked by the passage of landmark civil rights legislation, the creation of Great Society programs such as Medicare and Medicaid, and a significant escalation in U.S. involvement in the Vietnam War.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q9640","presidency":{"ordinal":36,"name":"Lyndon B. Johnson","born":"1908-08-27","died":"1973-01-22","birthplace":"Stonewall · Gillespie County · Texas","start":"1963-11-22","end":"1969-01-20","party":"Democratic"},"facts":[{"label":"President","value":"No. 36 · Lyndon B. Johnson"},{"label":"Born","value":"August 27, 1908"},{"label":"Birthplace","value":"Stonewall · Gillespie County · Texas"},{"label":"In office","value":"November 22, 1963 – January 20, 1969"},{"label":"Time served in this presidency","value":"5 years, 1 month (1,886 days)"},{"label":"Political affiliation","value":"Democratic"},{"label":"Died","value":"January 22, 1973"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q9640"}],"briefSource":{"title":"Lyndon B. Johnson","url":"https://en.wikipedia.org/wiki/Lyndon_B._Johnson","revision":1384404035,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-37","year":1969,"date":"1969-01-20","title":"Richard Nixon becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Richard_Nixon","body":"Richard Milhous Nixon (January 9, 1913 – April 22, 1994) was the 37th president of the United States, serving from 1969 until his resignation in 1974. A member of the Republican Party, he represented California in both houses of the United States Congress before serving as the 36th vice president under President Dwight D. Eisenhower from 1953 to 1961. His presidency saw the reduction of U.S. involvement in the Vietnam War, détente with the Soviet Union and China, the Apollo 11 Moon landing, and the establishment of the Environmental Protection Agency and Occupational Safety and Health Administration. Nixon's second term ended early when he became the only U.S. president to resign from office, as a part of the Watergate scandal.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q9588","presidency":{"ordinal":37,"name":"Richard Nixon","born":"1913-01-09","died":"1994-04-22","birthplace":"Birthplace of Richard Nixon · Yorba Linda · California","start":"1969-01-20","end":"1974-08-09","party":"Republican"},"facts":[{"label":"President","value":"No. 37 · Richard Nixon"},{"label":"Born","value":"January 9, 1913"},{"label":"Birthplace","value":"Birthplace of Richard Nixon · Yorba Linda · California"},{"label":"In office","value":"January 20, 1969 – August 9, 1974"},{"label":"Time served in this presidency","value":"5 years, 6 months (2,027 days)"},{"label":"Political affiliation","value":"Republican"},{"label":"Died","value":"April 22, 1994"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q9588"}],"briefSource":{"title":"Richard Nixon","url":"https://en.wikipedia.org/wiki/Richard_Nixon","revision":1383951053,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-38","year":1974,"date":"1974-08-09","title":"Gerald Ford becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Gerald_Ford","body":"Gerald Rudolph Ford Jr. (born Leslie Lynch King Jr.; July 14, 1913 – December 26, 2006) was the 38th president of the United States, serving from 1974 to 1977. He assumed the presidency after the resignation of Richard Nixon, under whom he served as the 40th vice president from 1973 to 1974 after the resignation of Spiro Agnew. A member of the Republican Party, Ford previously served in the United States House of Representatives from 1949 to 1973.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q9582","presidency":{"ordinal":38,"name":"Gerald Ford","born":"1913-07-14","died":"2006-12-26","birthplace":"Gerald R. Ford Birthsite and Gardens · Nebraska","start":"1974-08-09","end":"1977-01-20","party":"Republican"},"facts":[{"label":"President","value":"No. 38 · Gerald Ford"},{"label":"Born","value":"July 14, 1913"},{"label":"Birthplace","value":"Gerald R. Ford Birthsite and Gardens · Nebraska"},{"label":"In office","value":"August 9, 1974 – January 20, 1977"},{"label":"Time served in this presidency","value":"2 years, 5 months (895 days)"},{"label":"Political affiliation","value":"Republican"},{"label":"Died","value":"December 26, 2006"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q9582"}],"briefSource":{"title":"Gerald Ford","url":"https://en.wikipedia.org/wiki/Gerald_Ford","revision":1383976819,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-39","year":1977,"date":"1977-01-20","title":"Jimmy Carter becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Jimmy_Carter","body":"James Earl Carter Jr. (October 1, 1924 – December 29, 2024) was an American politician and humanitarian who served as the 39th president of the United States from 1977 to 1981. A member of the Democratic Party, Carter served as the 76th governor of Georgia from 1971 to 1975 and in the Georgia State Senate from 1963 to 1967. He lived longer than any other president in U.S. history, reaching age 100.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q23685","presidency":{"ordinal":39,"name":"Jimmy Carter","born":"1924-10-01","died":"2024-12-29","birthplace":"Lillian G. Carter Nursing Center · Plains · Georgia","start":"1977-01-20","end":"1981-01-20","party":"Democratic"},"facts":[{"label":"President","value":"No. 39 · Jimmy Carter"},{"label":"Born","value":"October 1, 1924"},{"label":"Birthplace","value":"Lillian G. Carter Nursing Center · Plains · Georgia"},{"label":"In office","value":"January 20, 1977 – January 20, 1981"},{"label":"Time served in this presidency","value":"4 years (1,461 days)"},{"label":"Political affiliation","value":"Democratic"},{"label":"Died","value":"December 29, 2024"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q23685"}],"briefSource":{"title":"Jimmy Carter","url":"https://en.wikipedia.org/wiki/Jimmy_Carter","revision":1384361915,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-40","year":1981,"date":"1981-01-20","title":"Ronald Reagan becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Ronald_Reagan","body":"Ronald Wilson Reagan (February 6, 1911 – June 5, 2004) was an American politician and actor who served as the 40th president of the United States from 1981 to 1989. A member of the Republican Party, he became an important figure in the American conservative movement. The period encompassing his presidency is known as the Reagan era. Born in Tampico, Illinois, Reagan graduated from Eureka College in 1932 and was hired the next year as a sports broadcaster in Iowa. In 1937, he moved to California where he became a well-known film actor. During his acting career, Reagan was president of the Screen Actors Guild twice from 1947 to 1952 and from 1959 to 1960. In the 1950s, he hosted General Electric Theater and worked as a motivational speaker for General Electric. During the 1964 presidential election, Reagan's \\"A Time for Choosing\\" speech launched his rise as a leading conservative figure. After being elected governor of California in 1966, he raised state taxes, turned the state budget deficit into a surplus, and implemented crackdowns on university protests. Following his loss to Gerald Ford in the 1976 Republican Party presidential primaries, Reagan won the Republican Party's nomination and then obtained a landslide victory over President Jimmy Carter in the 1980 presidential election.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q9960","presidency":{"ordinal":40,"name":"Ronald Reagan","born":"1911-02-06","died":"2004-06-05","birthplace":"Birthplace of Ronald Reagan · Tampico · Illinois","start":"1981-01-20","end":"1989-01-20","party":"Republican"},"facts":[{"label":"President","value":"No. 40 · Ronald Reagan"},{"label":"Born","value":"February 6, 1911"},{"label":"Birthplace","value":"Birthplace of Ronald Reagan · Tampico · Illinois"},{"label":"In office","value":"January 20, 1981 – January 20, 1989"},{"label":"Time served in this presidency","value":"8 years (2,922 days)"},{"label":"Political affiliation","value":"Republican"},{"label":"Died","value":"June 5, 2004"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q9960"}],"briefSource":{"title":"Ronald Reagan","url":"https://en.wikipedia.org/wiki/Ronald_Reagan","revision":1384027713,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-41","year":1989,"date":"1989-01-20","title":"George H. W. Bush becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"George_H._W._Bush","body":"George Herbert Walker Bush (June 12, 1924 – November 30, 2018) was the 41st president of the United States from 1989 to 1993. A member of the Republican Party, he served as Ronald Reagan's vice president from 1981 to 1989. Bush was a pragmatist with myriad political experience, having previously held the offices of Director of Central Intelligence, Chair of the Republican National Committee, and U.S. Ambassador to China and the United Nations.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q23505","presidency":{"ordinal":41,"name":"George H. W. Bush","born":"1924-06-12","died":"2018-11-30","birthplace":"Milton · Norfolk County · Massachusetts","start":"1989-01-20","end":"1993-01-20","party":"Republican"},"facts":[{"label":"President","value":"No. 41 · George H. W. Bush"},{"label":"Born","value":"June 12, 1924"},{"label":"Birthplace","value":"Milton · Norfolk County · Massachusetts"},{"label":"In office","value":"January 20, 1989 – January 20, 1993"},{"label":"Time served in this presidency","value":"4 years (1,461 days)"},{"label":"Political affiliation","value":"Republican"},{"label":"Died","value":"November 30, 2018"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q23505"}],"briefSource":{"title":"George H. W. Bush","url":"https://en.wikipedia.org/wiki/George_H._W._Bush","revision":1384443700,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-42","year":1993,"date":"1993-01-20","title":"Bill Clinton becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Bill_Clinton","body":"William Jefferson Clinton (né Blythe III; born August 19, 1946) is an American retired politician and lawyer who served as the 42nd president of the United States from 1993 to 2001. A member of the Democratic Party, he previously served as the attorney general of Arkansas from 1977 to 1979, the governor of Arkansas from 1979 to 1981, and governor again from 1983 to 1992. His centrist Third Way political philosophy became known as Clintonism, which defined his presidency and the succeeding decades of Democratic Party into the 21st century.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q1124","presidency":{"ordinal":42,"name":"Bill Clinton","born":"1946-08-19","died":null,"birthplace":"President William Jefferson Clinton Birthplace Home National Historic Site · Hope · Arkansas","start":"1993-01-20","end":"2001-01-20","party":"Democratic"},"facts":[{"label":"President","value":"No. 42 · Bill Clinton"},{"label":"Born","value":"August 19, 1946"},{"label":"Birthplace","value":"President William Jefferson Clinton Birthplace Home National Historic Site · Hope · Arkansas"},{"label":"In office","value":"January 20, 1993 – January 20, 2001"},{"label":"Time served in this presidency","value":"8 years (2,922 days)"},{"label":"Political affiliation","value":"Democratic"},{"label":"Status","value":"Living as of November 8, 2026"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q1124"}],"briefSource":{"title":"Bill Clinton","url":"https://en.wikipedia.org/wiki/Bill_Clinton","revision":1384220009,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-43","year":2001,"date":"2001-01-20","title":"George W. Bush becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"George_W._Bush","body":"George Walker Bush (born July 6, 1946) is an American retired politician, businessman, and former U.S. Air Force officer who served as the 43rd president of the United States from 2001 to 2009. A member of the Republican Party, he previously served as the 46th governor of Texas from 1995 to 2000. He is the eldest son of George H. W. Bush, the 41st president.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q207","presidency":{"ordinal":43,"name":"George W. Bush","born":"1946-07-06","died":null,"birthplace":"Yale – New Haven Hospital · New Haven · Connecticut","start":"2001-01-20","end":"2009-01-20","party":"Republican"},"facts":[{"label":"President","value":"No. 43 · George W. Bush"},{"label":"Born","value":"July 6, 1946"},{"label":"Birthplace","value":"Yale – New Haven Hospital · New Haven · Connecticut"},{"label":"In office","value":"January 20, 2001 – January 20, 2009"},{"label":"Time served in this presidency","value":"8 years (2,922 days)"},{"label":"Political affiliation","value":"Republican"},{"label":"Status","value":"Living as of November 8, 2026"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q207"}],"briefSource":{"title":"George W. Bush","url":"https://en.wikipedia.org/wiki/George_W._Bush","revision":1384533832,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-44","year":2009,"date":"2009-01-20","title":"Barack Obama becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Barack_Obama","body":"Barack Hussein Obama II (born August 4, 1961) is an American retired politician who served as the 44th president of the United States from 2009 to 2017. A member of the Democratic Party, he was the first African American to serve as president. Obama represented Illinois in the United States Senate from 2005 to 2008 and served as an Illinois state senator from 1997 to 2004.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q76","presidency":{"ordinal":44,"name":"Barack Obama","born":"1961-08-04","died":null,"birthplace":"Kapiolani Medical Center for Women and Children · Honolulu · Hawaii","start":"2009-01-20","end":"2017-01-20","party":"Democratic"},"facts":[{"label":"President","value":"No. 44 · Barack Obama"},{"label":"Born","value":"August 4, 1961"},{"label":"Birthplace","value":"Kapiolani Medical Center for Women and Children · Honolulu · Hawaii"},{"label":"In office","value":"January 20, 2009 – January 20, 2017"},{"label":"Time served in this presidency","value":"8 years (2,922 days)"},{"label":"Political affiliation","value":"Democratic"},{"label":"Status","value":"Living as of November 8, 2026"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q76"}],"briefSource":{"title":"Barack Obama","url":"https://en.wikipedia.org/wiki/Barack_Obama","revision":1384321856,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-45","year":2017,"date":"2017-01-20","title":"Donald Trump · first presidency","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Donald_Trump","body":"Donald John Trump (born June 14, 1946) is an American politician, media personality, and businessman who is the 47th president of the United States. A member of the Republican Party, he served as the 45th president from 2017 to 2021. Born into a wealthy New York City family, Trump graduated from the University of Pennsylvania in 1968 with a bachelor's degree in economics. He became the president of his family's real estate business in 1971, renamed it the Trump Organization, and began acquiring and building skyscrapers, hotels, casinos, and golf courses. He launched side ventures, many licensing the Trump name, and filed for six business bankruptcies in the 1990s and 2000s. From 2004 to 2015, he hosted the reality television show The Apprentice, bolstering his reputation as a wealthy tycoon. Presenting himself as a political outsider, Trump won the 2016 presidential election against Democratic Party nominee Hillary Clinton.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q22686","presidency":{"ordinal":45,"name":"Donald Trump","born":"1946-06-14","died":null,"birthplace":"Jamaica Hospital Medical Center · Queens · New York","start":"2017-01-20","end":"2021-01-20","party":"Republican"},"facts":[{"label":"President","value":"No. 45 · Donald Trump"},{"label":"Born","value":"June 14, 1946"},{"label":"Birthplace","value":"Jamaica Hospital Medical Center · Queens · New York"},{"label":"In office","value":"January 20, 2017 – January 20, 2021"},{"label":"Time served in this presidency","value":"4 years (1,461 days)"},{"label":"Political affiliation","value":"Republican"},{"label":"Status","value":"Living as of November 8, 2026"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q22686"}],"briefSource":{"title":"Donald Trump","url":"https://en.wikipedia.org/wiki/Donald_Trump","revision":1384523167,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-46","year":2021,"date":"2021-01-20","title":"Joe Biden becomes president","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Joe_Biden","body":"Joseph Robinette Biden Jr. (born November 20, 1942) is a retired American politician who was the 46th president of the United States from 2021 to 2025. A member of the Democratic Party, he represented Delaware in the United States Senate from 1973 to 2009 and also served as the 47th vice president under President Barack Obama from 2009 to 2017.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q6279","presidency":{"ordinal":46,"name":"Joe Biden","born":"1942-11-20","died":null,"birthplace":"St. Mary's Hospital · Scranton · Pennsylvania","start":"2021-01-20","end":"2025-01-20","party":"Democratic"},"facts":[{"label":"President","value":"No. 46 · Joe Biden"},{"label":"Born","value":"November 20, 1942"},{"label":"Birthplace","value":"St. Mary's Hospital · Scranton · Pennsylvania"},{"label":"In office","value":"January 20, 2021 – January 20, 2025"},{"label":"Time served in this presidency","value":"4 years (1,461 days)"},{"label":"Political affiliation","value":"Democratic"},{"label":"Status","value":"Living as of November 8, 2026"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q6279"}],"briefSource":{"title":"Joe Biden","url":"https://en.wikipedia.org/wiki/Joe_Biden","revision":1384202373,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}},{"id":"president-47","year":2025,"date":"2025-01-20","title":"Donald Trump · second presidency","place":"Washington, DC · seat of the U.S. presidency","lat":38.8977,"lon":-77.0365,"region":"Americas","category":"Presidencies","article":"Donald_Trump","body":"Donald Trump returned to the presidency for a second, nonconsecutive period in office. Donald John Trump (born June 14, 1946) is an American politician, media personality, and businessman who is the 47th president of the United States. A member of the Republican Party, he served as the 45th president from 2017 to 2021. Born into a wealthy New York City family, Trump graduated from the University of Pennsylvania in 1968 with a bachelor's degree in economics. He became the president of his family's real estate business in 1971, renamed it the Trump Organization, and began acquiring and building skyscrapers, hotels, casinos, and golf courses. He launched side ventures, many licensing the Trump name, and filed for six business bankruptcies in the 1990s and 2000s. From 2004 to 2015, he hosted the reality television show The Apprentice, bolstering his reputation as a wealthy tycoon. Presenting himself as a political outsider, Trump won the 2016 presidential election against Democratic Party nominee Hillary Clinton.","imageNote":"Historical portrait; image credit and license in Sources","catalog":true,"qid":"Q22686","presidency":{"ordinal":47,"name":"Donald Trump","born":"1946-06-14","died":null,"birthplace":"Jamaica Hospital Medical Center · Queens · New York","start":"2025-01-20","end":null,"party":"Republican"},"facts":[{"label":"President","value":"No. 47 · Donald Trump"},{"label":"Born","value":"June 14, 1946"},{"label":"Birthplace","value":"Jamaica Hospital Medical Center · Queens · New York"},{"label":"In office","value":"January 20, 2025 – Present"},{"label":"Time served in this presidency","value":"1 year, 9 months (657 days) · ongoing as of November 8, 2026"},{"label":"Political affiliation","value":"Republican"},{"label":"Status","value":"Living as of November 8, 2026"}],"sources":[{"title":"National Archives: presidents and dates in office","url":"https://www.archives.gov/research/census/presidents"},{"title":"National Archives: early presidential terms and parties","url":"https://www.archives.gov/presidential-records/research/additional-research-resources"},{"title":"Biographical data and references on Wikidata","url":"https://www.wikidata.org/wiki/Q22686"}],"briefSource":{"title":"Donald Trump","url":"https://en.wikipedia.org/wiki/Donald_Trump","revision":1384523167,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences. Nonconsecutive term context may be added; formatting is condensed."}}]`),oh=JSON.parse(`[{"id":"politics-q698106","year":1800,"title":"Jefferson wins the election of 1800","place":"Washington, DC · representative seat of national government","lat":38.8899,"lon":-77.0091,"region":"Americas","category":"Diplomacy & government","article":"1800_United_States_presidential_election","body":"A presidential election was held in the United States from October 31 to December 3, 1800. In what is sometimes called the \\"Revolution of 1800\\", the Democratic-Republican Party candidate, Vice President Thomas Jefferson, defeated the Federalist Party candidate and incumbent, President John Adams in the first peaceful transfer of power in the history of the United States, creating a political realignment that ushered in a generation of Democratic-Republican leadership. This was the first presidential election in U.S. history to be a rematch, the first election where an incumbent president lost re-election, leading to the first time in modern history where a national government changed hands peaceably following a free election.","catalog":true,"qid":"Q698106","imageNote":"Portrait of the election winner or associated president","sources":[{"title":"National Archives: official electoral results","url":"https://www.archives.gov/electoral-college/1800"},{"title":"Background and references","url":"https://en.wikipedia.org/wiki/1800_United_States_presidential_election"}],"briefSource":{"title":"1800 United States presidential election","url":"https://en.wikipedia.org/wiki/1800_United_States_presidential_election","revision":1384389042,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences; formatting condensed."}},{"id":"politics-q29552","year":1828,"title":"The Democratic Party takes shape","place":"Washington, DC · representative seat of national government","lat":38.8899,"lon":-77.0091,"region":"Americas","category":"Diplomacy & government","article":"Democratic_Party_(United_States)","body":"The Democratic Party is a liberal political party in the United States, sitting on the center to center-left of the political spectrum. Founded in 1828, it is the world's oldest active political party. Its main rival is the Republican Party, and since the 1850s, both have dominated American politics. The Democratic Party initially supported Jacksonian democracy, agrarianism, and geographical expansionism, while opposing a national bank and high tariffs. Democrats won six of the eight presidential elections from 1828 to 1856, losing twice to the Whigs. In 1860, the party split into Northern and Southern factions over slavery. The party remained dominated by agrarian interests, contrasting with Republican support for the big business of the Gilded Age. A Democratic candidate won the presidency only twice between 1860 and 1908, although Democratic candidates won the popular vote two more times in that period. During the Progressive Era, some factions of the party supported progressive reforms, with Woodrow Wilson being elected president in 1912 and 1916.","catalog":true,"qid":"Q29552","imageNote":"Portrait of the election winner or associated president","sources":[{"title":"Wikidata: historical record and references","url":"https://www.wikidata.org/wiki/Q29552"},{"title":"Background and references","url":"https://en.wikipedia.org/wiki/Democratic_Party_(United_States)"}],"briefSource":{"title":"Democratic Party (United States)","url":"https://en.wikipedia.org/wiki/Democratic_Party_(United_States)","revision":1384361439,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences; formatting condensed."}},{"id":"politics-q29468","year":1854,"title":"The Republican Party is founded","place":"Ripon, Wisconsin · an early Republican organizing meeting","lat":43.8422,"lon":-88.8359,"region":"Americas","category":"Diplomacy & government","article":"Republican_Party_(United_States)","body":"The Republican Party, also known as the Grand Old Party (GOP), is a political party in the United States, sitting on the right-wing to far-right of the political spectrum. Founded in 1854, it emerged as the main rival of the Democratic Party in the 1850s, and the two parties have dominated American politics since then. The Republican Party was founded by anti-slavery activists who opposed the Kansas–Nebraska Act and the expansion of slavery into American territories. It rapidly gained support in the North, drawing in former Whigs, Free Soilers, and former Know Nothings. Abraham Lincoln's election in 1860 as president led to the secession of Southern states and the outbreak of the American Civil War. Under Lincoln and a Republican-controlled Congress, the party led efforts to preserve the Union, defeat the Confederacy, and abolish slavery. During the Reconstruction era, Republicans sought to extend civil rights protections to freedmen, and by the late 1870s, the party shifted its focus toward business interests and industrial expansion. In the late 19th and early 20th centuries, it dominated national politics, promoting protective tariffs, infrastructure development, and laissez-faire economic policies, while navigating internal divisions between progressive and conservative factions. The party's support declined during the Great Depression, as the New Deal coalition reshaped American politics. Republicans returned to national power with the 1952 election of Dwight D. Eisenhower, whose moderate conservatism reflected a pragmatic acceptance of many New Deal-era programs.","catalog":true,"qid":"Q29468","imageNote":"Portrait of the election winner or associated president","sources":[{"title":"Wikidata: historical record and references","url":"https://www.wikidata.org/wiki/Q29468"},{"title":"Background and references","url":"https://en.wikipedia.org/wiki/Republican_Party_(United_States)"}],"briefSource":{"title":"Republican Party (United States)","url":"https://en.wikipedia.org/wiki/Republican_Party_(United_States)","revision":1384361569,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences; formatting condensed."}},{"id":"politics-q698842","year":1860,"date":"1860-11-06","title":"Lincoln wins the presidency","place":"Washington, DC · representative seat of national government","lat":38.8899,"lon":-77.0091,"region":"Americas","category":"Diplomacy & government","article":"1860_United_States_presidential_election","body":"A presidential election was held on November 6, 1860. The Republican Party ticket of Abraham Lincoln and Hannibal Hamlin emerged victorious. In 1860, the United States was divided over the issue of slavery, and four major political parties had nominated candidates in the 1860 presidential election. Incumbent president James Buchanan, a Democrat, did not seek re-election. The anti-slavery Republican Party nominated Abraham Lincoln, who previously had been a one-term Whig Representative from Illinois, for president. Its platform promised not to interfere with slavery in the states where it existed, but opposed its extension into the territories. A group of former Whigs and Know Nothings formed the Constitutional Union Party, which sought to avoid disunion by resolving divisions over slavery with some new compromise. The 1860 Constitutional Union Convention put forward former Tennessee senator John Bell for president. After the 1860 Democratic National Convention adjourned without agreeing on a nominee, a second convention nominated Illinois senator Stephen A. Douglas as the Northern Democratic presidential candidate. Douglas's support for the concept of popular sovereignty, which called for each territory's settlers to decide the status of slavery within the territory, alienated many radical pro-slavery Southern Democrats. With President Buchanan's support, Southern Democrats held their own convention, nominating Vice President John C. Breckinridge of Kentucky for president.","catalog":true,"qid":"Q698842","imageNote":"Portrait of the election winner or associated president","sources":[{"title":"National Archives: official electoral results","url":"https://www.archives.gov/electoral-college/1860"},{"title":"Background and references","url":"https://en.wikipedia.org/wiki/1860_United_States_presidential_election"}],"briefSource":{"title":"1860 United States presidential election","url":"https://en.wikipedia.org/wiki/1860_United_States_presidential_election","revision":1384154580,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences; formatting condensed."}},{"id":"politics-q502044","year":1909,"title":"The NAACP is founded","place":"New York City · founding of the NAACP","lat":40.7128,"lon":-74.006,"region":"Americas","category":"Rights & society","article":"NAACP","body":"The National Association for the Advancement of Colored People (NAACP) is an American civil rights organization formed in 1909 as an interracial endeavor to advance justice for African Americans by a group including W. E. B. Du Bois, Mary White Ovington, Moorfield Storey, Ida B. Wells, Lillian Wald, Emil G. Hirsch and Henry Moskowitz. Over the years, leaders of the organization have included Thurgood Marshall and Roy Wilkins. The NAACP is the largest and oldest civil rights group in the United States of America.","catalog":true,"qid":"Q502044","imageNote":"W. E. B. Du Bois, a co-founder of the NAACP","sources":[{"title":"Wikidata: historical record and references","url":"https://www.wikidata.org/wiki/Q502044"},{"title":"Background and references","url":"https://en.wikipedia.org/wiki/NAACP"}],"briefSource":{"title":"NAACP","url":"https://en.wikipedia.org/wiki/NAACP","revision":1382754949,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences; formatting condensed."}},{"id":"politics-q205304","year":1920,"title":"The Nineteenth Amendment is ratified","place":"Washington, DC · representative seat of national government","lat":38.8899,"lon":-77.0091,"region":"Americas","category":"Rights & society","article":"Nineteenth_Amendment_to_the_United_States_Constitution","body":"The Nineteenth Amendment (Amendment XIX) to the United States Constitution prohibits the United States and its states from denying the right to vote to citizens of the United States on the basis of sex, in effect recognizing the right of women to vote. The amendment was the culmination of a decades-long movement for women's suffrage in the United States, at both the state and national levels, and was part of the worldwide movement towards women's suffrage and part of the wider women's rights movement. The first women's suffrage amendment was introduced in Congress in 1878. However, a suffrage amendment did not pass the House of Representatives until May 21, 1919, which was quickly followed by the Senate, on June 4, 1919. It was then submitted to the states for ratification, achieving the requisite 36 ratifications to secure adoption, and thereby went into effect, on August 18, 1920. The Nineteenth Amendment's adoption was certified on August 26, 1920.","catalog":true,"qid":"Q205304","imageNote":"Historical image or associated place; see image credit","sources":[{"title":"Wikidata: historical record and references","url":"https://www.wikidata.org/wiki/Q205304"},{"title":"Background and references","url":"https://en.wikipedia.org/wiki/Nineteenth_Amendment_to_the_United_States_Constitution"}],"briefSource":{"title":"Nineteenth Amendment to the United States Constitution","url":"https://en.wikipedia.org/wiki/Nineteenth_Amendment_to_the_United_States_Constitution","revision":1380698288,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences; formatting condensed."}},{"id":"politics-q179868","year":1932,"date":"1932-11-08","title":"Roosevelt wins amid the Great Depression","place":"Washington, DC · representative seat of national government","lat":38.8899,"lon":-77.0091,"region":"Americas","category":"Diplomacy & government","article":"1932_United_States_presidential_election","body":"A presidential election was held in the United States on November 8, 1932. Against the backdrop of the Great Depression, the Republican ticket of President Herbert Hoover and Vice President Charles Curtis were defeated, in a landslide, by the Democratic ticket of Franklin D. Roosevelt, the governor of New York, and John Nance Garner, the speaker of the House. This realigning election marked the effective end of the Fourth Party System, which had been dominated by Republicans, and the beginning of an era of Democratic dominance under the New Deal coalition.","catalog":true,"qid":"Q179868","imageNote":"Portrait of the election winner or associated president","sources":[{"title":"National Archives: official electoral results","url":"https://www.archives.gov/electoral-college/1932"},{"title":"Background and references","url":"https://en.wikipedia.org/wiki/1932_United_States_presidential_election"}],"briefSource":{"title":"1932 United States presidential election","url":"https://en.wikipedia.org/wiki/1932_United_States_presidential_election","revision":1384155798,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences; formatting condensed."}},{"id":"politics-q699590","year":1960,"date":"1960-11-08","title":"Kennedy wins the presidency","place":"Washington, DC · representative seat of national government","lat":38.8899,"lon":-77.0091,"region":"Americas","category":"Diplomacy & government","article":"1960_United_States_presidential_election","body":"A presidential election was held in the United States on November 8, 1960. The Democratic ticket of Senator John F. Kennedy and his running mate, Senate Majority Leader Lyndon B. Johnson, narrowly defeated the Republican ticket of incumbent Vice President Richard Nixon and his running mate, U.N. Ambassador Henry Cabot Lodge Jr. This was the first election in which 50 states participated, marking the first participation of Alaska and Hawaii, and the last in which the District of Columbia did not. It was also the first election in which an incumbent president—in this case, Dwight D. Eisenhower—was ineligible to run for a third term because of the term limits established by the 22nd Amendment.","catalog":true,"qid":"Q699590","imageNote":"Portrait of the election winner or associated president","sources":[{"title":"National Archives: official electoral results","url":"https://www.archives.gov/electoral-college/1960"},{"title":"Background and references","url":"https://en.wikipedia.org/wiki/1960_United_States_presidential_election"}],"briefSource":{"title":"1960 United States presidential election","url":"https://en.wikipedia.org/wiki/1960_United_States_presidential_election","revision":1384156354,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences; formatting condensed."}},{"id":"politics-q42761","year":1972,"title":"The Watergate scandal begins","place":"Washington, DC · representative seat of national government","lat":38.8899,"lon":-77.0091,"region":"Americas","category":"Diplomacy & government","article":"Watergate_scandal","body":"The Watergate scandal, also simply called Watergate, was a political scandal in the United States involving the administration of President Richard Nixon. On June 17, 1972, operatives associated with Nixon's 1972 re-election campaign were caught burglarizing and planting listening devices in the Democratic National Committee headquarters at Washington, D.C.'s Watergate complex. Nixon's efforts to conceal his administration's involvement led to an impeachment process and ultimately to his resignation in August 1974.","catalog":true,"qid":"Q42761","imageNote":"Portrait of the election winner or associated president","sources":[{"title":"Wikidata: historical record and references","url":"https://www.wikidata.org/wiki/Q42761"},{"title":"Background and references","url":"https://en.wikipedia.org/wiki/Watergate_scandal"}],"briefSource":{"title":"Watergate scandal","url":"https://en.wikipedia.org/wiki/Watergate_scandal","revision":1384294725,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences; formatting condensed."}},{"id":"politics-q699716","year":1980,"date":"1980-11-04","title":"Reagan wins the presidency","place":"Washington, DC · representative seat of national government","lat":38.8899,"lon":-77.0091,"region":"Americas","category":"Diplomacy & government","article":"1980_United_States_presidential_election","body":"A presidential election was held in the United States on November 4, 1980. The Republican ticket of former California governor Ronald Reagan and former director of central intelligence George H. W. Bush defeated the Democratic ticket of incumbent president Jimmy Carter and vice president Walter Mondale, and the Independent ticket of Congressman John B. Anderson and former ambassador to Mexico Patrick Lucey in a landslide. Because of the rise of conservatism after Reagan's victory, many historians consider the election a political realignment.","catalog":true,"qid":"Q699716","imageNote":"Portrait of the election winner or associated president","sources":[{"title":"National Archives: official electoral results","url":"https://www.archives.gov/electoral-college/1980"},{"title":"Background and references","url":"https://en.wikipedia.org/wiki/1980_United_States_presidential_election"}],"briefSource":{"title":"1980 United States presidential election","url":"https://en.wikipedia.org/wiki/1980_United_States_presidential_election","revision":1384156849,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences; formatting condensed."}},{"id":"politics-q327959","year":2000,"date":"2000-11-07","title":"A disputed election sends Bush to the White House","place":"Washington, DC · representative seat of national government","lat":38.8899,"lon":-77.0091,"region":"Americas","category":"Diplomacy & government","article":"2000_United_States_presidential_election","body":"A presidential election was held in the United States on November 7, 2000. The Republican ticket of Texas governor George W. Bush and former secretary of defense Dick Cheney narrowly defeated the Democratic ticket of incumbent vice president Al Gore and Connecticut junior senator Joe Lieberman. It was the fourth of five U.S. presidential elections, and the first since 1888, in which the winning candidate lost the popular vote. By number of votes that could have changed the outcome, it is the closest presidential election in U.S. history. The result remains controversial.","catalog":true,"qid":"Q327959","imageNote":"Portrait of the election winner or associated president","sources":[{"title":"National Archives: official electoral results","url":"https://www.archives.gov/electoral-college/2000"},{"title":"Background and references","url":"https://en.wikipedia.org/wiki/2000_United_States_presidential_election"}],"briefSource":{"title":"2000 United States presidential election","url":"https://en.wikipedia.org/wiki/2000_United_States_presidential_election","revision":1384311063,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences; formatting condensed."}},{"id":"politics-q45578","year":2008,"date":"2008-11-04","title":"Obama wins a historic presidential election","place":"Washington, DC · representative seat of national government","lat":38.8899,"lon":-77.0091,"region":"Americas","category":"Diplomacy & government","article":"2008_United_States_presidential_election","body":"A presidential election was held in the United States on November 4, 2008. The Democratic ticket of Illinois junior senator Barack Obama and Delaware senior senator Joe Biden, defeated the Republican ticket of Arizona senior senator John McCain and Alaska governor Sarah Palin. Obama became the first African American to be elected to the presidency. Incumbent Republican president George W. Bush was ineligible to run for a third term due to the term limits established by the Twenty-second Amendment to the United States Constitution; this was the first election since 1952 in which neither the incumbent president nor vice president was on the ballot, and the first since 1928 in which neither ran for the nomination. McCain secured the Republican nomination by March 2008, defeating his main challengers Mitt Romney and Mike Huckabee, and selected Palin as his running mate. The Democratic primaries were marked by a sharp contest between Obama and the initial front-runner, former first lady and Senator Hillary Clinton, as well as other challengers who dropped out before most of the primaries were held, including Senators John Edwards and Joe Biden. Clinton's victory in the New Hampshire primary made her the first woman to win a major party's presidential primary. After a long primary season, Obama narrowly secured the Democratic nomination in June 2008 and selected Biden as his running mate.","catalog":true,"qid":"Q45578","imageNote":"Portrait of the election winner or associated president","sources":[{"title":"National Archives: official electoral results","url":"https://www.archives.gov/electoral-college/2008"},{"title":"Background and references","url":"https://en.wikipedia.org/wiki/2008_United_States_presidential_election"}],"briefSource":{"title":"2008 United States presidential election","url":"https://en.wikipedia.org/wiki/2008_United_States_presidential_election","revision":1384246630,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences; formatting condensed."}},{"id":"politics-q19042","year":2009,"title":"The Tea Party movement emerges","place":"Washington, DC · representative seat of national government","lat":38.8899,"lon":-77.0091,"region":"Americas","category":"Rights & society","article":"Tea_Party_movement","body":"The Tea Party movement was an American right-wing, fiscally conservative political movement within the Republican Party that began in 2007 and was catapulted into the mainstream by Congressman Ron Paul's 2008 presidential campaign. The movement expanded in response to the policies of Democratic president Barack Obama and was a major factor in the 2010 wave election in which Republicans gained 63 House seats and took control of the U.S. House of Representatives.","catalog":true,"qid":"Q19042","imageNote":"Historical image or associated place; see image credit","sources":[{"title":"Wikidata: historical record and references","url":"https://www.wikidata.org/wiki/Q19042"},{"title":"Background and references","url":"https://en.wikipedia.org/wiki/Tea_Party_movement"}],"briefSource":{"title":"Tea Party movement","url":"https://en.wikipedia.org/wiki/Tea_Party_movement","revision":1383802701,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences; formatting condensed."}},{"id":"politics-q180654","year":2011,"title":"Occupy Wall Street begins","place":"Zuccotti Park, New York City","lat":40.7092,"lon":-74.0113,"region":"Americas","category":"Rights & society","article":"Occupy_Wall_Street","body":"Occupy Wall Street (O.W.S.) was a left-wing populist and progressive movement against economic inequality, capitalism, corporate greed, big finance, and the influence of money in politics. It began in Zuccotti Park, located in New York City's Financial District, and lasted for fifty-nine days—from September 17 to November 15, 2011. The motivations for Occupy Wall Street largely resulted from public distrust in the private sector during the aftermath of the Great Recession in the United States. There were many particular points of interest leading up to the Occupy movement that angered populist and left-wing groups. For instance, the 2008 bank bailouts under the George W. Bush administration utilized congressionally appropriated taxpayer funds to create the Troubled Asset Relief Program (TARP), which purchased toxic assets from failing banks and financial institutions. The U.S. Supreme Court ruling in Citizens United v. FEC in January 2010 allowed corporations to spend unlimited amounts on independent political expenditures without government regulation. Many viewed the ruling as a way for moneyed interests to corrupt public institutions and legislative bodies, such as the United States Congress.","catalog":true,"qid":"Q180654","imageNote":"Historical image or associated place; see image credit","sources":[{"title":"Wikidata: historical record and references","url":"https://www.wikidata.org/wiki/Q180654"},{"title":"Background and references","url":"https://en.wikipedia.org/wiki/Occupy_Wall_Street"}],"briefSource":{"title":"Occupy Wall Street","url":"https://en.wikipedia.org/wiki/Occupy_Wall_Street","revision":1381256816,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences; formatting condensed."}},{"id":"politics-q19600530","year":2013,"title":"Black Lives Matter emerges","place":"Oakland, California · one center of a decentralized movement","lat":37.8044,"lon":-122.2712,"region":"Americas","category":"Rights & society","article":"Black_Lives_Matter","body":"Black Lives Matter (BLM) is a decentralized political and social movement that aims to highlight racism, discrimination and racial inequality experienced by Black people in the United States, and to promote anti-racism. Its primary concerns are police brutality and racially motivated violence against Black people. The movement began in response to the killings of Trayvon Martin, Michael Brown, Eric Garner, and Rekia Boyd, among others. BLM and its related organizations typically advocate for various policy changes related to Black liberation and criminal justice reform. While there are organizations that label themselves \\"Black Lives Matter\\", such as the Black Lives Matter Global Network Foundation, the overall movement predates those, and is a decentralized network with no formal hierarchy. As of 2021, there are about 40 chapters in the United States and Canada. The slogan \\"Black Lives Matter\\" itself has not been trademarked by any group.","catalog":true,"qid":"Q19600530","imageNote":"Historical image or associated place; see image credit","sources":[{"title":"Wikidata: historical record and references","url":"https://www.wikidata.org/wiki/Q19600530"},{"title":"Background and references","url":"https://en.wikipedia.org/wiki/Black_Lives_Matter"}],"briefSource":{"title":"Black Lives Matter","url":"https://en.wikipedia.org/wiki/Black_Lives_Matter","revision":1383143680,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences; formatting condensed."}},{"id":"politics-q699872","year":2016,"date":"2016-11-08","title":"Trump wins his first presidential election","place":"Washington, DC · representative seat of national government","lat":38.8899,"lon":-77.0091,"region":"Americas","category":"Diplomacy & government","article":"2016_United_States_presidential_election","body":"A presidential election was held in the United States on November 8, 2016. The Republican ticket of businessman Donald Trump and Indiana governor Mike Pence defeated the Democratic ticket of former secretary of state Hillary Clinton and Virginia junior senator Tim Kaine, in what was considered one of the biggest political upsets in American history. It was the fifth and most recent presidential election in which the winning candidate lost the popular vote.","catalog":true,"qid":"Q699872","imageNote":"Portrait of the election winner or associated president","sources":[{"title":"National Archives: official electoral results","url":"https://www.archives.gov/electoral-college/2016"},{"title":"Background and references","url":"https://en.wikipedia.org/wiki/2016_United_States_presidential_election"}],"briefSource":{"title":"2016 United States presidential election","url":"https://en.wikipedia.org/wiki/2016_United_States_presidential_election","revision":1384522704,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences; formatting condensed."}},{"id":"politics-q22923830","year":2020,"date":"2020-11-03","title":"Biden wins the presidency","place":"Washington, DC · representative seat of national government","lat":38.8899,"lon":-77.0091,"region":"Americas","category":"Diplomacy & government","article":"2020_United_States_presidential_election","body":"A presidential election was held in the United States on November 3, 2020. The Democratic ticket of former vice president Joe Biden and California junior senator Kamala Harris defeated the incumbent Republican President Donald Trump and Vice President Mike Pence. The election saw the highest voter turnout by percentage since 1900. Biden received more than 81 million votes, the most votes ever cast for a presidential candidate in U.S. history.","catalog":true,"qid":"Q22923830","imageNote":"Portrait of the election winner or associated president","sources":[{"title":"National Archives: official electoral results","url":"https://www.archives.gov/electoral-college/2020"},{"title":"Background and references","url":"https://en.wikipedia.org/wiki/2020_United_States_presidential_election"}],"briefSource":{"title":"2020 United States presidential election","url":"https://en.wikipedia.org/wiki/2020_United_States_presidential_election","revision":1384158795,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences; formatting condensed."}},{"id":"politics-q104705419","year":2021,"date":"2021-01-06","title":"The January 6 attack on the U.S. Capitol","place":"Washington, DC · representative seat of national government","lat":38.8899,"lon":-77.0091,"region":"Americas","category":"Diplomacy & government","article":"January_6_United_States_Capitol_attack","body":"On January 6, 2021, the United States Capitol in Washington, D.C., was attacked by a mob of supporters of President Donald Trump. Academic debate exists about whether to characterize the event as an attempted coup, an attempted self-coup, or neither. The attack happened two months after Trump's defeat in the 2020 presidential election. Attackers sought to keep him in power by preventing a joint session of Congress from counting the Electoral College votes to formalize the victory of then president-elect Joe Biden. The attack was unsuccessful in preventing the certification of the election results. According to the bipartisan House select committee that investigated the incident, the attack was the culmination of a plan by Trump to overturn the election. Within 36 hours, five people died: one was shot by the Capitol Police, another died of a drug overdose, and three died of natural causes, including a police officer who died of a stroke a day after being assaulted by rioters and collapsing at the Capitol. Many people were injured, including 174 police officers. Four officers who responded to the attack died by suicide within seven months. Damage caused by attackers exceeded $2.7 million.","catalog":true,"qid":"Q104705419","imageNote":"Historical image or associated place; see image credit","sources":[{"title":"Wikidata: historical record and references","url":"https://www.wikidata.org/wiki/Q104705419"},{"title":"Background and references","url":"https://en.wikipedia.org/wiki/January_6_United_States_Capitol_attack"}],"briefSource":{"title":"January 6 United States Capitol attack","url":"https://en.wikipedia.org/wiki/January_6_United_States_Capitol_attack","revision":1383951189,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences; formatting condensed."}},{"id":"politics-q101110072","year":2024,"date":"2024-11-05","title":"Trump wins a return to the White House","place":"Washington, DC · representative seat of national government","lat":38.8899,"lon":-77.0091,"region":"Americas","category":"Diplomacy & government","article":"2024_United_States_presidential_election","body":"A presidential election was held in the United States on November 5, 2024. The Republican ticket of former president Donald Trump and Ohio junior senator JD Vance defeated the Democratic ticket of incumbent vice president Kamala Harris and Minnesota governor Tim Walz. The incumbent president, Joe Biden of the Democratic Party, initially ran for re-election, easily defeating a challenge from representative Dean Phillips of Minnesota in the Democratic primaries to become the party's presumptive nominee. However, what was broadly considered a poor debate performance in June 2024 intensified concerns about his age and health, and led to calls within his party for him to leave the race. After initially declining to do so, Biden ultimately withdrew on July 21, 2024, becoming the first eligible incumbent president to run but subsequently withdraw since Lyndon B. Johnson in 1968. Biden immediately endorsed Harris, who officially became the party's presidential nominee on August 5 and the first presidential nominee who did not participate in the primaries since Vice President Hubert Humphrey in 1968. Harris selected Walz as her running mate.","catalog":true,"qid":"Q101110072","imageNote":"Portrait of the election winner or associated president","sources":[{"title":"National Archives: official electoral results","url":"https://www.archives.gov/electoral-college/2024"},{"title":"Background and references","url":"https://en.wikipedia.org/wiki/2024_United_States_presidential_election"}],"briefSource":{"title":"2024 United States presidential election","url":"https://en.wikipedia.org/wiki/2024_United_States_presidential_election","revision":1384158989,"license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","note":"Selected introductory sentences; formatting condensed."}},{"id":"politics-q115857612","year":2026,"date":"2026-11-03","title":"Democrats win House and Senate majorities","place":"Washington, DC · representative seat of national government","lat":38.8899,"lon":-77.0091,"region":"Americas","category":"Diplomacy & government","article":"2026_United_States_elections","body":"Democrats won majorities in both chambers in the November 3, 2026 U.S. midterm elections. The Associated Press called Senate control on election night and House control early the following morning. The outcome sets up a change in congressional control when the newly elected Congress takes office in January 2027; it does not mean that control had already changed on election night.","catalog":true,"qid":"Q115857612","imageNote":"Historical image or associated place; see image credit","sources":[{"title":"Associated Press: calls for control of Congress","url":"https://www.ap.org/the-definitive-source/behind-the-news/calling-control-of-congress-in-the-2026-midterm-elections/"},{"title":"Twentieth Amendment: congressional terms begin January 3","url":"https://www.archives.gov/founding-docs/amendments-11-27#xx"},{"title":"Wikidata: historical record and references","url":"https://www.wikidata.org/wiki/Q115857612"},{"title":"Background and references","url":"https://en.wikipedia.org/wiki/2026_United_States_elections"}],"editorial":true}]`),sh=[{id:`uruk`,year:-3e3,approximate:!0,title:`The world learns to write`,place:`Uruk, Mesopotamia`,region:`Asia`,lat:31.32,lon:45.64,category:`Ideas & belief`,article:`Cuneiform`,body:`In the cities of southern Mesopotamia, marks pressed into clay grow into a system of writing. By about 3000 BCE, records can outlive the people who make them. Writing has earlier roots; this date marks its early development, not a single invention.`,imageNote:`Ancient writing / surviving artifact`},{id:`pyramids`,year:-2560,approximate:!0,title:`A monument for eternity`,place:`Giza, Egypt`,region:`Africa`,lat:29.979,lon:31.134,category:`Civilizations`,article:`Great_Pyramid_of_Giza`,body:`Built for the pharaoh Khufu, the Great Pyramid transforms the limestone plateau at Giza. It is an enduring expression of Egyptian engineering, religious belief, and the power to organize human labor on an extraordinary scale.`,imageNote:`Modern photograph of the surviving monument`},{id:`indus`,year:-2500,approximate:!0,title:`Cities along the Indus`,place:`Mohenjo-daro, present-day Pakistan`,region:`Asia`,lat:27.329,lon:68.138,category:`Civilizations`,article:`Mohenjo-daro`,body:`Planned streets, brick buildings, wells, and drainage systems define one of the great cities of the Indus civilization. Its surviving seals preserve a script that remains undeciphered.`,imageNote:`Modern photograph / archaeological site`},{id:`stonehenge`,year:-2500,approximate:!0,title:`A circle aligned with the sun`,place:`Salisbury Plain, Britain`,region:`Europe`,lat:51.179,lon:-1.826,category:`Art & culture`,article:`Stonehenge`,body:`The great sarsen stones rise on Salisbury Plain during a long sequence of construction. Their alignment with the solstices connects this landscape of ceremony and burial with the changing seasons.`,imageNote:`Modern photograph of the prehistoric monument`},{id:`hammurabi`,year:-1754,approximate:!0,title:`Law, carved in stone`,place:`Babylon, Mesopotamia`,region:`Asia`,lat:32.536,lon:44.42,category:`Ideas & belief`,article:`Code_of_Hammurabi`,body:`A monumental stele sets out judgments associated with Hammurabi of Babylon. The text reveals a society of contracts, property, family obligations, and sharply unequal legal status.`,imageNote:`Surviving artifact; dates are approximate`},{id:`shang`,year:-1250,approximate:!0,title:`Questions for the ancestors`,place:`Anyang, China`,region:`Asia`,lat:36.1,lon:114.35,category:`Ideas & belief`,article:`Oracle_bone`,body:`Shang diviners inscribe questions on animal bones and turtle shells, then interpret cracks made by heat. These inscriptions preserve the earliest substantial body of Chinese writing.`,imageNote:`Surviving inscribed artifact`},{id:`olmec`,year:-1200,approximate:!0,title:`Faces of the Olmec world`,place:`San Lorenzo, present-day Mexico`,region:`Americas`,lat:17.75,lon:-94.76,category:`Art & culture`,article:`Olmec_colossal_heads`,body:`Olmec communities carve colossal basalt heads in the Gulf lowlands of Mesoamerica. Transporting and shaping these stones points to powerful rulers, specialized makers, and extensive networks.`,imageNote:`Modern photograph of a surviving sculpture`},{id:`buddha`,year:-500,approximate:!0,title:`A new path to awakening`,place:`Bodh Gaya, present-day India`,region:`Asia`,lat:24.696,lon:84.991,category:`Ideas & belief`,article:`Bodh_Gaya`,body:`Buddhist tradition places Siddhartha Gautama’s awakening here. His teachings on suffering, impermanence, and liberation develop into traditions that spread across Asia and beyond. The chronology of his life is debated.`,imageNote:`Later sacred site / representative imagery`},{id:`athens`,year:-508,title:`Athens experiments with democracy`,place:`Athens, Greece`,region:`Europe`,lat:37.972,lon:23.726,category:`Ideas & belief`,article:`Athenian_democracy`,body:`Reforms associated with Cleisthenes reshape political participation in Athens. The new system gives male citizens a direct role while excluding women, enslaved people, and resident foreigners.`,imageNote:`Surviving site or later historical representation`},{id:`alexander`,year:-331,title:`The founding of Alexandria`,place:`Alexandria, Egypt`,region:`Africa`,lat:31.2,lon:29.918,category:`Civilizations`,article:`Alexandria`,body:`Alexander establishes a city on Egypt’s Mediterranean coast. Under the Ptolemies it becomes a major center of trade, scholarship, and cultural exchange, famous for its library and lighthouse.`,imageNote:`Modern city / surviving heritage`},{id:`ashoka`,year:-250,approximate:!0,title:`An emperor’s words travel`,place:`Sarnath, present-day India`,region:`Asia`,lat:25.38,lon:83.024,category:`Ideas & belief`,article:`Edicts_of_Ashoka`,body:`Ashoka has messages inscribed on rocks and pillars across his empire. They describe moral conduct, concern for living beings, and respect among religious communities. Sarnath is one of several inscription sites.`,imageNote:`Surviving inscription / representative artifact`},{id:`qin`,year:-221,title:`China is unified under Qin`,place:`Xianyang, China`,region:`Asia`,lat:34.329,lon:108.709,category:`Civilizations`,article:`Qin_Shi_Huang`,body:`After conquering rival states, the king of Qin takes the title First Emperor. Standardization and central administration bind a vast territory, while forced labor and harsh rule leave another part of his legacy.`,imageNote:`Later representation / associated artifact`},{id:`rome`,year:-27,title:`Rome becomes an empire`,place:`Rome, Italy`,region:`Europe`,lat:41.89,lon:12.492,category:`Civilizations`,article:`Augustus`,body:`The Senate grants Octavian the title Augustus. Republican institutions remain in name, but authority gathers around a single ruler, beginning the imperial period of Roman history.`,imageNote:`Ancient portrait sculpture / later photograph`},{id:`teotihuacan`,year:250,approximate:!0,title:`A metropolis in Mesoamerica`,place:`Teotihuacan, present-day Mexico`,region:`Americas`,lat:19.692,lon:-98.844,category:`Civilizations`,article:`Teotihuacan`,body:`Teotihuacan grows into one of the largest cities of the ancient world. Its monumental avenues, pyramids, and apartment compounds connect a diverse population to trade networks reaching across Mesoamerica.`,imageNote:`Modern photograph of the archaeological site`},{id:`gupta`,year:499,title:`A new way to calculate the heavens`,place:`Kusumapura, present-day India`,region:`Asia`,lat:25.61,lon:85.14,category:`Discovery`,article:`Aryabhata`,body:`Aryabhata composes the Aryabhatiya, a compact work on mathematics and astronomy. It discusses planetary motion, trigonometry, and the rotation of Earth, contributing to a long international exchange of mathematical knowledge.`,imageNote:`Later commemoration / representative imagery`},{id:`hijra`,year:622,title:`The Hijra to Medina`,place:`Medina, Arabian Peninsula`,region:`Asia`,lat:24.468,lon:39.611,category:`Ideas & belief`,article:`Hegira`,body:`Muhammad and his followers migrate from Mecca to Medina. The migration becomes the starting point of the Islamic calendar and a formative event in the development of the Muslim community.`,imageNote:`Later illustration or photograph of the associated place`},{id:`baghdad`,year:762,title:`Baghdad, a city of exchange`,place:`Baghdad, present-day Iraq`,region:`Asia`,lat:33.315,lon:44.366,category:`Civilizations`,article:`History_of_Baghdad`,body:`The Abbasid caliph al-Mansur founds Baghdad as a new capital. The city becomes a meeting place for merchants and scholars, where texts and ideas circulate between many languages and traditions.`,imageNote:`Later view of the city / representative imagery`},{id:`borobudur`,year:825,approximate:!0,title:`A mountain of Buddhist stories`,place:`Central Java, Indonesia`,region:`Asia`,lat:-7.608,lon:110.204,category:`Art & culture`,article:`Borobudur`,body:`Builders complete the great terraced monument of Borobudur around the early ninth century. Reliefs and sculptures guide a ritual journey upward, giving Buddhist teachings a monumental architectural form.`,imageNote:`Modern photograph of the surviving monument`},{id:`polynesia`,year:1e3,approximate:!0,title:`Navigators connect the Pacific`,place:`Central East Polynesia`,region:`Oceania`,lat:-17.65,lon:-149.426,category:`Discovery`,article:`Polynesian_navigation`,body:`Over many centuries, Polynesian voyagers settle islands across an immense ocean. Knowledge of stars, swells, winds, and living signs makes these journeys possible. This marker represents a broad period and region, not one voyage.`,imageNote:`Navigation traditions / representative imagery`},{id:`angkor`,year:1150,approximate:!0,title:`Angkor Wat takes shape`,place:`Angkor, present-day Cambodia`,region:`Asia`,lat:13.412,lon:103.867,category:`Art & culture`,article:`Angkor_Wat`,body:`Built under Suryavarman II, Angkor Wat expresses a sacred landscape in stone and water. Initially dedicated to Vishnu, it later becomes an important Buddhist site.`,imageNote:`Modern photograph of the surviving temple`},{id:`mongols`,year:1206,title:`The Mongol Empire begins`,place:`Onon River region, Mongolia`,region:`Asia`,lat:48.5,lon:110.5,category:`Civilizations`,article:`Mongol_Empire`,body:`Temüjin is proclaimed Genghis Khan. Mongol expansion will connect distant parts of Eurasia through trade and diplomacy, while conquest brings enormous destruction and loss of life.`,imageNote:`Later representation; location is approximate`},{id:`mali`,year:1324,title:`Mansa Musa sets out for Mecca`,place:`Mali Empire, West Africa`,region:`Africa`,lat:12.6,lon:-8,category:`Civilizations`,article:`Mansa_Musa`,body:`Mansa Musa’s pilgrimage makes the wealth of Mali widely known across the Mediterranean world. Gold, trade, and scholarship connect this West African empire to a much larger network.`,imageNote:`Later depiction; marker represents the empire`},{id:`tenochtitlan`,year:1325,title:`A city rises on a lake`,place:`Tenochtitlan, present-day Mexico City`,region:`Americas`,lat:19.433,lon:-99.133,category:`Civilizations`,article:`Tenochtitlan`,body:`Traditional accounts date the foundation of Tenochtitlan to 1325. Built on an island in Lake Texcoco, the city becomes the Mexica capital and the center of a powerful tributary empire.`,imageNote:`Later reconstruction or surviving archaeological evidence`},{id:`printing`,year:1455,approximate:!0,title:`The printed page multiplies`,place:`Mainz, Germany`,region:`Europe`,lat:49.999,lon:8.274,category:`Discovery`,article:`Gutenberg_Bible`,body:`Gutenberg’s workshop produces its famous Bible using movable metal type. Building on a much longer history of printing in East Asia, the European press accelerates the circulation of texts.`,imageNote:`Surviving printed book`},{id:`atlantic`,year:1492,title:`An Atlantic crossing changes worlds`,place:`The Bahamas, Caribbean`,region:`Americas`,lat:24.05,lon:-74.5,category:`Turning points`,article:`Voyages_of_Christopher_Columbus`,body:`Columbus reaches the Caribbean, opening an era of sustained contact between Europe and the Americas. Exchange, conquest, enslavement, and epidemic disease profoundly transform Indigenous societies and the wider world.`,imageNote:`Later depiction; exact first landfall is debated`},{id:`mughal`,year:1526,title:`The Mughal Empire emerges`,place:`Panipat, India`,region:`Asia`,lat:29.39,lon:76.97,category:`Civilizations`,article:`First_Battle_of_Panipat`,body:`Babur defeats Ibrahim Lodi at Panipat. The victory begins Mughal rule in northern India, laying foundations for an empire known for its administration, artistic patronage, and monumental architecture.`,imageNote:`Later historical illustration`},{id:`galileo`,year:1610,title:`New worlds through a telescope`,place:`Padua, Italy`,region:`Europe`,lat:45.406,lon:11.877,category:`Discovery`,article:`Sidereus_Nuncius`,body:`Galileo publishes observations of the Moon, stars, and moons of Jupiter. The telescope changes what people can see and challenges assumptions about the structure of the heavens.`,imageNote:`Historical publication / astronomical illustration`},{id:`taj`,year:1653,approximate:!0,title:`The Taj Mahal complex is completed`,place:`Agra, India`,region:`Asia`,lat:27.175,lon:78.042,category:`Art & culture`,article:`Taj_Mahal`,body:`Commissioned by Shah Jahan in memory of Mumtaz Mahal, the Taj Mahal brings together architecture, gardens, calligraphy, and intricate stonework. The larger complex is completed around 1653.`,imageNote:`Modern photograph of the surviving monument`},{id:`haiti`,year:1804,title:`Haiti declares independence`,place:`Gonaïves, Haiti`,region:`Americas`,lat:19.45,lon:-72.683,category:`Turning points`,article:`Haitian_Revolution`,body:`After a revolution against slavery and colonial rule, Haiti declares independence from France. The new state emerges from the only successful revolt of enslaved people to found an independent nation.`,imageNote:`Later historical depiction`},{id:`industrial`,year:1825,title:`Steam enters the railway age`,place:`Stockton and Darlington, England`,region:`Europe`,lat:54.525,lon:-1.55,category:`Discovery`,article:`Stockton_and_Darlington_Railway`,body:`The Stockton and Darlington Railway opens, using steam locomotives on a public railway. The expansion of rail networks will transform travel, industry, labor, and the experience of distance.`,imageNote:`Historic depiction / surviving railway heritage`},{id:`waitangi`,year:1840,title:`The Treaty of Waitangi is signed`,place:`Waitangi, Aotearoa New Zealand`,region:`Oceania`,lat:-35.27,lon:174.08,category:`Turning points`,article:`Treaty_of_Waitangi`,body:`Māori rangatira and representatives of the British Crown sign a treaty with differing Māori and English texts. Disputes over authority, land, and obligations shape New Zealand’s history and continue today.`,imageNote:`Treaty document or associated place`},{id:`meiji`,year:1868,title:`Japan enters the Meiji era`,place:`Kyoto, Japan`,region:`Asia`,lat:35.011,lon:135.768,category:`Turning points`,article:`Meiji_Restoration`,body:`Political power is restored in the name of the emperor, ending the Tokugawa shogunate. Rapid institutional and industrial changes follow, alongside social upheaval and the rise of Japanese imperial expansion.`,imageNote:`Historical photograph or period artwork`},{id:`adwa`,year:1896,title:`Ethiopia wins at Adwa`,place:`Adwa, Ethiopia`,region:`Africa`,lat:14.16,lon:38.9,category:`Turning points`,article:`Battle_of_Adwa`,body:`Ethiopian forces under Menelik II defeat an invading Italian army. The victory preserves Ethiopian independence at a time when European powers are colonizing much of Africa.`,imageNote:`Later painting or historical photograph`},{id:`flight`,year:1903,title:`Twelve seconds above the sand`,place:`Kill Devil Hills, North Carolina`,region:`Americas`,lat:36.018,lon:-75.671,category:`Discovery`,article:`Wright_Flyer`,body:`The Wright brothers achieve sustained, controlled flight with a powered, heavier-than-air aircraft. Their short flights on December 17 help open an age that will reshape transport and warfare.`,imageNote:`Historical aircraft / photograph`},{id:`wwi`,year:1914,title:`The First World War begins`,place:`Sarajevo, Bosnia and Herzegovina`,region:`Europe`,lat:43.857,lon:18.429,category:`Turning points`,article:`Assassination_of_Archduke_Franz_Ferdinand`,body:`An assassination in Sarajevo sets off a diplomatic crisis that escalates into war. Fighting and mobilization spread far beyond Europe, drawing in colonial populations and reshaping empires.`,imageNote:`Historical photograph / period illustration`},{id:`un`,year:1945,title:`Nations sign a new charter`,place:`San Francisco, United States`,region:`Americas`,lat:37.779,lon:-122.419,category:`Turning points`,article:`United_Nations_Conference_on_International_Organization`,body:`Representatives of fifty countries sign the United Nations Charter in San Francisco. In the aftermath of a devastating world war, it creates a framework for international cooperation and collective security.`,imageNote:`Historical photograph`},{id:`india`,year:1947,title:`Independence and Partition`,place:`New Delhi, India`,region:`Asia`,lat:28.614,lon:77.209,category:`Turning points`,article:`Partition_of_India`,body:`British rule ends as India and Pakistan become independent. Partition brings mass displacement and communal violence, intertwining liberation with profound human loss.`,imageNote:`Historical photograph`},{id:`ghana`,year:1957,title:`Ghana becomes independent`,place:`Accra, Ghana`,region:`Africa`,lat:5.556,lon:-.196,category:`Turning points`,article:`History_of_Ghana`,body:`Ghana gains independence from Britain under the leadership of Kwame Nkrumah. Its independence becomes an important inspiration for anticolonial movements elsewhere in Africa.`,imageNote:`Historical photograph or commemorative site`},{id:`apollo`,year:1969,title:`Human footsteps on another world`,place:`Kennedy Space Center, launch site`,region:`Americas`,lat:28.608,lon:-80.604,category:`Discovery`,article:`Apollo_11`,body:`Apollo 11 carries Neil Armstrong, Buzz Aldrin, and Michael Collins to the Moon. Armstrong and Aldrin walk on its surface on July 20. The globe marks their launch site; the landing happened on the Moon.`,imageNote:`NASA mission photograph`},{id:`berlin`,year:1989,title:`The Berlin Wall opens`,place:`Berlin, Germany`,region:`Europe`,lat:52.516,lon:13.377,category:`Turning points`,article:`Fall_of_the_Berlin_Wall`,body:`On November 9, crowds cross checkpoints through the Berlin Wall. The opening becomes a defining moment in the revolutions of 1989 and the end of the Cold War division of Europe.`,imageNote:`Historical photograph`},{id:`web`,year:1991,title:`The World Wide Web opens up`,place:`CERN, Switzerland`,region:`Europe`,lat:46.233,lon:6.055,category:`Discovery`,article:`History_of_the_World_Wide_Web`,body:`Tim Berners-Lee makes information about the World Wide Web publicly available. Built around linked documents and open standards, it develops into a new way for people to share knowledge across the globe.`,imageNote:`Early web technology / representative artifact`},{id:`south-africa`,year:1994,title:`South Africa votes for democracy`,place:`Pretoria, South Africa`,region:`Africa`,lat:-25.747,lon:28.229,category:`Turning points`,article:`1994_South_African_general_election`,body:`South Africa holds its first national election with universal adult suffrage. Nelson Mandela becomes president, marking a democratic transition after decades of struggle against apartheid.`,imageNote:`Historical photograph / associated figure`},{id:`iss`,year:2e3,title:`A continuous human presence in space`,place:`Baikonur, Kazakhstan, launch site`,region:`Asia`,lat:45.92,lon:63.342,category:`Discovery`,article:`Expedition_1`,body:`The first long-duration crew arrives at the International Space Station. An international laboratory in orbit becomes a place where people from different nations live and work together. The marker shows the crew’s launch site.`,imageNote:`NASA mission photograph`},...ih,...ah,...oh].sort((e,t)=>e.year-t.year||(`date`in e?String(e.date):``).localeCompare(`date`in t?String(t.date):``)),ch=[`Civilizations`,`Presidencies`,`Ideas & belief`,`Art & culture`,`Discovery`,`Turning points`,`War & conflict`,`Revolutions & independence`,`Rights & society`,`Diplomacy & government`,`Economy & trade`,`Health & environment`],lh={Civilizations:`#d9a43d`,"Ideas & belief":`#a475ed`,"Art & culture":`#c9823e`,Discovery:`#2f9ee8`,"Turning points":`#96a8b9`,"War & conflict":`#ee5c45`,"Revolutions & independence":`#ed9224`,"Rights & society":`#1bb49b`,"Diplomacy & government":`#8086ef`,"Economy & trade":`#c7b246`,"Health & environment":`#54ac53`,Presidencies:`#4b9bd3`},uh=(e,t=!1)=>`${t?`c. `:``}${Math.abs(e).toLocaleString(`en-US`)} ${e<0?`BCE`:`CE`}`,dh=[{name:`Early civilizations`,start:-3e3,end:-800},{name:`The classical world`,start:-800,end:500},{name:`Connected worlds`,start:500,end:1500},{name:`An age of change`,start:1500,end:1800},{name:`The modern world`,start:1800,end:1945},{name:`Our connected world`,start:1945,end:2e3},{name:`The world today`,start:2001,end:2026}],fh=class{camera;scene;renderer;group=new Hs;highlight=new Hs;tiles=new Map;pending=new Set;lastKey=``;lastUpdate=0;requestedKeys=new Set;displayedKeys=new Set;displayedKey=``;opacity=0;uploads=[];disposed=!1;loader=new Lu;areaBounds=new dc;areaOpacity=0;constructor(e,t,n){this.camera=e,this.scene=t,this.renderer=n,t.add(this.group,this.highlight)}update(e,t,n=!0,r=!1){r||this.uploads.shift()?.();let i=this.camera.position.length(),a=this.requestedKeys.size>0&&[...this.requestedKeys].every(e=>this.tiles.has(e)),o=!r&&a&&this.displayedKey!==this.lastKey,s=n&&!o?1-Go.smoothstep(i,1.1,1.6):0;if(this.opacity=Go.lerp(this.opacity,s,1-Math.exp(-10*t)),o&&this.opacity<.02){this.displayedKeys=new Set(this.requestedKeys),this.displayedKey=this.lastKey,this.opacity=0;for(let[e,t]of this.tiles)t.mesh.visible=this.displayedKeys.has(e)}this.group.visible=this.opacity>.001;for(let e of this.tiles.values())e.mesh.material.opacity=this.opacity;if(r||!n||i>1.6||e-this.lastUpdate<.3)return;this.lastUpdate=e;let c=i<1.09?7:i<1.25?6:i<1.7?5:4,l=288/2**c,u=Math.ceil(360/l),d=Math.ceil(180/l),f=this.camera.position.clone().normalize(),p=Math.asin(f.y)*180/Math.PI,m=Math.atan2(-f.z,f.x)*180/Math.PI,h=Math.floor((90-p)/l),g=Math.floor((m+180)/l),_=`${c}/${h}/${g}`;if(_!==this.lastKey){this.lastKey=_,this.requestedKeys.clear();for(let e=Math.max(0,h-2);e<=Math.min(d-1,h+2);e++)for(let t=-2;t<=2;t++){let n=(g+t+u)%u,r=`${c}/${e}/${n}`;this.requestedKeys.add(r),this.tiles.has(r)||this.pending.has(r)||(this.pending.add(r),this.loader.load(`https://gibs.earthdata.nasa.gov/wmts/epsg4326/best/BlueMarble_ShadedRelief_Bathymetry/default/500m/${r}.jpeg`,t=>{this.disposed?t.dispose():(t.colorSpace=$a,t.anisotropy=8,this.uploads.push(()=>{this.pending.delete(r),this.renderer.initTexture(t);let i=new ml(this.tileGeometry(-180+n*l,90-e*l,l,1.0003+c*6e-5),new cu({map:t,color:10204093,shininess:0,transparent:!0,opacity:0,depthWrite:!1}));if(i.visible=!1,this.tiles.set(r,{mesh:i,level:c}),this.group.add(i),this.tiles.size>125){let e=[...this.tiles.keys()].find(e=>!this.displayedKeys.has(e)&&!this.requestedKeys.has(e));if(e){let t=this.tiles.get(e);this.group.remove(t.mesh),t.mesh.geometry.dispose();let n=t.mesh.material;n.map?.dispose(),n.dispose(),this.tiles.delete(e)}}}))},void 0,()=>{this.pending.delete(r)}))}}}tileGeometry(e,t,n,r){let i=[],a=[],o=[];for(let o=0;o<=24;o++)for(let s=0;s<=24;s++){let c=Th(Math.max(-90,t-n*o/24),e+n*s/24,r);i.push(c.x,c.y,c.z),a.push(s/24,1-o/24)}for(let e=0;e<24;e++)for(let t=0;t<24;t++){let n=e*25+t,r=n+24+1;o.push(n,r,n+1,n+1,r,r+1)}let s=new Wc;return s.setAttribute(`position`,new Mc(i,3)),s.setAttribute(`uv`,new Mc(a,2)),s.setIndex(o),s.computeVertexNormals(),s}showArea(e){this.clearArea();let t=e.geometry.type===`Polygon`?[e.geometry.coordinates]:e.geometry.coordinates,n=document.createElement(`canvas`);n.width=4096,n.height=2048;let r=n.getContext(`2d`);r.fillStyle=`rgba(239,197,114,0.32)`;for(let e of t){r.beginPath();for(let t of e){let e=[];if(t.forEach(([i,a],o)=>{let s=(i+180)/360*n.width,c=(90-a)/180*n.height;if(o===0?r.moveTo(s,c):r.lineTo(s,c),o){let[n,r]=t[o-1],s=Math.max(1,Math.ceil(Math.max(Math.abs(i-n),Math.abs(a-r))/.2));for(let t=0;t<s;t++)e.push(Th(Go.lerp(r,a,t/s),Go.lerp(n,i,t/s),1.0012))}}),r.closePath(),t.length){let[n,r]=t.at(-1);e.push(Th(r,n,1.0012))}let i=new Vl(new Wc().setFromPoints(e),new Nl({color:16766091,transparent:!0,opacity:.95}));this.highlight.add(i);for(let t of e)this.areaBounds.expandByPoint(t)}r.fill(`evenodd`)}let i=new Wl(n);i.colorSpace=$a,this.highlight.add(new ml(new Zl(1.001,256,128),new nl({map:i,transparent:!0,depthWrite:!1,side:0})))}updateAreaVisibility(e,t,n,r){if(this.areaBounds.isEmpty())return;this.camera.updateMatrixWorld();let i=new W,a=1/0,o=-1/0,s=1/0,c=-1/0;for(let e of[this.areaBounds.min.x,this.areaBounds.max.x])for(let t of[this.areaBounds.min.y,this.areaBounds.max.y])for(let n of[this.areaBounds.min.z,this.areaBounds.max.z])i.set(e,t,n).project(this.camera),a=Math.min(a,i.x),o=Math.max(o,i.x),s=Math.min(s,i.y),c=Math.max(c,i.y);let l=Math.max((o-a)*n/2,(c-s)*r/2),u=e.position.clone().project(this.camera),d=new W().setFromMatrixColumn(this.camera.matrixWorld,0),f=e.position.clone().addScaledVector(d,t).project(this.camera),p=Math.hypot((f.x-u.x)*n,(f.y-u.y)*r),m=e.visible?Go.smoothstep(l/Math.max(p,1),1.5,2.2):0;if(this.highlight.visible=m>0,m!==this.areaOpacity){this.areaOpacity=m;for(let e of this.highlight.children)e instanceof Vl?e.material.opacity=.95*m:e instanceof ml&&(e.material.opacity=m)}}clearArea(){this.areaBounds.makeEmpty(),this.areaOpacity=0,this.highlight.visible=!1;for(let e of[...this.highlight.children])if(this.highlight.remove(e),e instanceof ml||e instanceof Vl){e.geometry.dispose();let t=e.material;t.map?.dispose(),t.dispose()}}dispose(){this.disposed=!0,this.clearArea();for(let e of this.uploads)e();this.uploads=[];for(let{mesh:e}of this.tiles.values()){e.geometry.dispose();let t=e.material;t.map?.dispose(),t.dispose()}this.scene.remove(this.group,this.highlight)}};function ph(e,t){let n=t.clone().normalize().multiplyScalar(1.002);if(n.dot(e.position.clone().sub(n))<=0)return!1;e.updateMatrixWorld();let r=n.project(e);return Math.abs(r.x)<=1&&Math.abs(r.y)<=1&&Math.abs(r.z)<=1}function mh(e,t,n=!1){let r=e.clone().normalize(),i=t.clone().normalize(),a=r.angleTo(i);return{direction:r,rotation:new Ko().setFromUnitVectors(r,i),startDistance:e.length(),peakDistance:Math.max(e.length(),t.length(),1.15+2.55*Math.sqrt(a/Math.PI)),duration:n||a<.003?.9:1.6+1.2*a/Math.PI,stationary:a<.003,direct:n}}function hh(e,t,n,r){let i=(e,t)=>Go.smoothstep(n,e,t);if(e.direct)return r.copy(e.direction).applyQuaternion(new Ko().slerp(e.rotation,i(0,1))).multiplyScalar(Go.lerp(e.startDistance,Math.min(e.startDistance,t.length()),i(0,1)));if(e.stationary)return r.copy(t).normalize().multiplyScalar(Go.lerp(e.startDistance,t.length(),i(0,1)));let a=Math.max(e.peakDistance,t.length()),o=n<.25?Go.lerp(e.startDistance,a,i(0,.25)):Go.lerp(a,t.length(),i(.72,1));return r.copy(e.direction).applyQuaternion(new Ko().slerp(e.rotation,i(.2,.72))).multiplyScalar(o)}var gh=new Ic(new W,1);function _h(e,t,n){e.updateMatrixWorld();let r=new vd;return r.setFromCamera(new U((t.x-n.left)/n.width*2-1,1-(t.y-n.top)/n.height*2),e),r.ray.intersectSphere(gh,new W)}function vh(e,t,n,r,i=1,a=1.035,o=5){let s=_h(e,t,r),c=e.position.length()-1,l=Number.isFinite(i)&&i>0?i:1;e.position.setLength(Go.clamp(1+c/l,a,o)),e.lookAt(0,0,0),e.updateMatrixWorld();let u=e.position.clone(),d=!1;if(s){for(let t=0;t<6;t++){let t=_h(e,n,r);if(!t)break;let i=new Ko().setFromUnitVectors(t.normalize(),s.clone().normalize());if(e.position.applyQuaternion(i),e.lookAt(0,0,0),e.updateMatrixWorld(),d=!0,t.angleTo(s)<1e-7)break}if(d){let t=s.clone().project(e);Math.hypot(r.left+(t.x+1)*r.width/2-n.x,r.top+(1-t.y)*r.height/2-n.y)>1&&(e.position.copy(u),d=!1)}}if(!d){let i=Math.min(3.4,2*c*Math.tan(Go.degToRad(e.fov)/2))/r.height,a=new xd().setFromVector3(e.position);a.theta-=(n.x-t.x)*i,a.phi=Go.clamp(a.phi-(n.y-t.y)*i,.001,Math.PI-.001),e.position.setFromSpherical(a),e.lookAt(0,0,0),e.updateMatrixWorld()}}var yh=class{camera;viewport;start;finish;tap;points=new Map;previous=[];origin=null;dragged=!1;dirty=!1;get active(){return this.points.size>0}constructor(e,t,n,r,i){this.camera=e,this.viewport=t,this.start=n,this.finish=r,this.tap=i}begin(e,t){this.update(),this.active||(this.start(),this.origin=t,this.dragged=!1),this.points.set(e,t),this.points.size>1&&(this.dragged=!0),this.rebase()}move(e,t){this.points.has(e)&&(this.points.set(e,t),this.dirty=!0,this.origin&&Math.hypot(t.x-this.origin.x,t.y-this.origin.y)>8&&(this.dragged=!0))}end(e,t=!1){let n=this.points.get(e);n&&(this.update(),this.points.delete(e),this.rebase(),t&&(this.dragged=!0),this.active||(this.dragged||this.tap(n),this.finish(),this.origin=null))}rebase(){this.previous=[...this.points.values()].slice(0,2).map(e=>({...e})),this.dirty=!1}update(){if(!this.dirty||!this.active)return;let e=[...this.points.values()].slice(0,2);if(e.length!==this.previous.length){this.rebase();return}let t=e=>({x:e.reduce((e,t)=>e+t.x,0)/e.length,y:e.reduce((e,t)=>e+t.y,0)/e.length}),n=e=>Math.hypot(e[0].x-e[1].x,e[0].y-e[1].y),r=e.length===2&&n(this.previous)>12&&n(e)>12?n(e)/n(this.previous):1;vh(this.camera,t(this.previous),t(e),this.viewport(),r),this.rebase()}cancel(){this.points.clear(),this.previous=[],this.dirty=!1,this.dragged=!0,this.origin=null,this.finish()}},bh=class{gesture;abort=new AbortController;constructor(e,t,n,r,i){this.gesture=new yh(t,()=>e.getBoundingClientRect(),n,r,i);let a={capture:!0,passive:!1,signal:this.abort.signal},o=e=>e.pointerType===`touch`&&(e.cancelable&&e.preventDefault(),e.stopImmediatePropagation(),!0);e.addEventListener(`pointerdown`,t=>{o(t)&&(this.gesture.begin(t.pointerId,{x:t.clientX,y:t.clientY}),e.setPointerCapture(t.pointerId))},a),e.addEventListener(`pointermove`,e=>{o(e)&&this.gesture.move(e.pointerId,{x:e.clientX,y:e.clientY})},a);let s=t=>{o(t)&&(this.gesture.end(t.pointerId,t.type!==`pointerup`),e.hasPointerCapture(t.pointerId)&&e.releasePointerCapture(t.pointerId))};e.addEventListener(`pointerup`,s,a),e.addEventListener(`pointercancel`,s,a),e.addEventListener(`lostpointercapture`,e=>{e.pointerType===`touch`&&this.gesture.end(e.pointerId,!0)},{signal:this.abort.signal});for(let t of[`gesturestart`,`gesturechange`])e.addEventListener(t,e=>e.preventDefault(),a);window.addEventListener(`blur`,()=>this.gesture.cancel(),{signal:this.abort.signal})}dispose(){this.abort.abort(),this.gesture.cancel()}},xh=`/media/five-thousand-years/releases/20261108-atlas-01/assets/`,Sh=`/x/five-thousand-years/`,Ch=e=>xh+e.split(`/`).map(encodeURIComponent).join(`/`),wh=e=>Sh+e;function Th(e,t,n=1){let r=e*Math.PI/180,i=t*Math.PI/180;return new W(n*Math.cos(r)*Math.cos(i),n*Math.sin(r),-n*Math.cos(r)*Math.sin(i))}var Eh=class{host;onSelect;renderer;camera=new Xu(35,1,.001,100);scene=new Xs;controls;ready;pins=new Hs;pinBatches=[];pinScale=-1;pinsDirty=!0;selected=new Hs;ring;observer;target=null;previous=new W;flight=null;transition=1;active=sh[1];down={x:0,y:0};pointers=new Set;dragged=!1;zoomTarget=null;detail=null;areas=new Map;touch;detailResumeAt=0;introTimer;navigationVersion=0;reduced=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;constructor(e,t,n=Ch(``)){this.host=e,this.onSelect=t,this.renderer=new Fm({antialias:!0,alpha:!0,preserveDrawingBuffer:!t}),this.renderer.setPixelRatio(Math.min(devicePixelRatio,matchMedia(`(pointer:coarse)`).matches?1.5:2)),this.renderer.outputColorSpace=$a,this.renderer.domElement.setAttribute(`aria-label`,`Interactive globe. Drag to rotate, pinch or scroll to zoom, or choose a milestone on the timeline.`),this.renderer.domElement.setAttribute(`role`,`img`),e.append(this.renderer.domElement),this.camera.position.copy(Th(24,25,3.7)),this.controls=new Gm(this.camera,this.renderer.domElement),this.controls.enablePan=!1,this.controls.enableDamping=!1,this.controls.minDistance=1.035,this.controls.maxDistance=5,this.controls.rotateSpeed=.55,this.controls.enableZoom=!0,this.controls.touches={ONE:Ai.ROTATE,TWO:Ai.DOLLY_ROTATE},this.controls.addEventListener(`start`,()=>this.beginInteraction()),this.touch=new bh(this.renderer.domElement,this.camera,()=>this.beginInteraction(),()=>{this.detailResumeAt=performance.now()+180},e=>{let t=this.hitTargets(e.x,e.y);t.length&&this.onSelect?.(t[0],t)}),t&&(this.detail=new fh(this.camera,this.scene,this.renderer));let r=new cu({color:t?10204093:8560037,shininess:0,specular:0});this.scene.add(new ml(new Zl(1,112,72),r)),this.scene.add(new ed(14083573,2));let i=new $u(16770487,2.8);i.position.set(-2,3,4),this.camera.add(i),this.scene.add(this.camera),this.ready=new Promise(i=>new Lu().load(`${n}${t?`earth-relief.jpg`:`earth.jpg`}`,e=>{e.colorSpace=$a,e.anisotropy=8,this.renderer.initTexture(e),r.map=e,r.needsUpdate=!0,i()},void 0,()=>{e.dataset.textureError=`true`,i()}));let a=new ml(new Zl(1.035,64,48),new ou({side:1,transparent:!0,depthWrite:!1,blending:2,vertexShader:`varying vec3 n; varying vec3 v; void main(){vec4 p=modelViewMatrix*vec4(position,1.);n=normalize(normalMatrix*normal);v=normalize(-p.xyz);gl_Position=projectionMatrix*p;}`,fragmentShader:`varying vec3 n; varying vec3 v; void main(){float a=pow(1.0-abs(dot(normalize(n),normalize(v))),4.0);gl_FragColor=vec4(.24,.48,.68,a*.38);}`}));this.scene.add(a);let o=new Nl({color:12044759,transparent:!0,opacity:.12});for(let e=-60;e<=60;e+=30){let t=Array.from({length:181},(t,n)=>Th(e,n*2-180,1.003));this.scene.add(new Vl(new Wc().setFromPoints(t),o))}for(let e=-180;e<180;e+=30){let t=Array.from({length:91},(t,n)=>Th(n*2-90,e,1.003));this.scene.add(new Vl(new Wc().setFromPoints(t),o))}let s=new Zl(.01,10,8),c=new Map;sh.forEach(e=>{let t=c.get(e.category);t||(t=new nl({color:lh[e.category]}),c.set(e.category,t));let n=new ml(s,t);n.position.copy(Th(e.lat,e.lon,1.002)),n.userData.id=e.id,this.pins.add(n)});for(let e of c.values()){let t=this.pins.children.filter(t=>t.material===e),n=new El(s,e,t.length);n.instanceMatrix.setUsage(ao),n.frustumCulled=!1,this.pinBatches.push({mesh:n,pins:t}),this.scene.add(n)}this.updatePins(1),this.ring=new ml(new Xl(.032,.037,64),new nl({color:16109962,side:2,transparent:!0,opacity:.95})),this.selected.add(this.ring);let l=new ml(new Zl(.015,18,12),new nl({color:16769955}));this.selected.add(l);let u=new Vl(new Wc().setFromPoints([new W,new W(0,0,.15)]),new Nl({color:16109962}));this.selected.add(u);let d=new ml(new Zl(.007,10,8),new nl({color:16769955}));d.position.z=.15,this.selected.add(d),this.scene.add(this.selected),this.observer=new ResizeObserver(()=>this.resize()),this.observer.observe(e),this.resize(),this.renderer.domElement.addEventListener(`pointerdown`,e=>{this.pointers.size===0&&(this.down={x:e.clientX,y:e.clientY},this.dragged=!1),this.pointers.add(e.pointerId),this.pointers.size>1&&(this.dragged=!0)}),this.renderer.domElement.addEventListener(`pointermove`,e=>{this.pointers.has(e.pointerId)&&Math.hypot(e.clientX-this.down.x,e.clientY-this.down.y)>(e.pointerType===`touch`?10:6)&&(this.dragged=!0)}),this.renderer.domElement.addEventListener(`pointercancel`,e=>{this.pointers.delete(e.pointerId),this.dragged=!0}),this.renderer.domElement.addEventListener(`pointerup`,e=>{if(!this.pointers.delete(e.pointerId)||this.dragged||this.pointers.size||e.button!==0)return;let t=this.hitTargets(e.clientX,e.clientY);t.length&&this.onSelect?.(t[0],t)}),this.select(sh[1],!0)}hitTargets(e,t){let n=this.renderer.domElement.getBoundingClientRect();this.camera.updateMatrixWorld();let r=[];for(let i of this.pins.children){if(!i.visible)continue;let a=i.getWorldPosition(new W);if(a.dot(this.camera.position.clone().sub(a))<=0)continue;let o=a.clone().project(this.camera);if(Math.abs(o.x)>1||Math.abs(o.y)>1||Math.abs(o.z)>1)continue;let s=n.left+(o.x+1)*n.width/2,c=n.top+(1-o.y)*n.height/2,l=Math.hypot(e-s,t-c);l<=24&&r.push({id:i.userData.id,distance:l})}return r.sort((e,t)=>e.distance-t.distance),r[0]?.distance<=8&&(!r[1]||r[1].distance>12)?[r[0].id]:r.map(e=>e.id)}resize(){let{width:e,height:t}=this.host.getBoundingClientRect();e&&t&&(this.renderer.setSize(e,t),this.camera.aspect=e/t,this.camera.fov=Go.radToDeg(2*Math.atan(Math.tan(Go.degToRad(35)/2)/Math.min(1,this.camera.aspect))),this.camera.updateProjectionMatrix(),this.render())}cancelIntro(){this.navigationVersion++,this.introTimer!==void 0&&clearTimeout(this.introTimer),this.introTimer=void 0}beginInteraction(){this.cancelIntro(),this.target=null,this.flight=null,this.zoomTarget=null,this.transition=1,this.host.dispatchEvent(new Event(`globe-interaction`))}startIntro(e){if(this.reduced){this.select(e);return}this.select(e,!0);let t=this.navigationVersion;this.ready.then(()=>{t===this.navigationVersion&&(this.introTimer=window.setTimeout(()=>{this.introTimer=void 0,t===this.navigationVersion&&this.select(e)},1e3))})}focusDistance(e){return Go.clamp(e?.focusDistance??Math.max(1.22,e?.distance??1.8),1.08,3.7)}select(e,t=!1){this.cancelIntro(),this.zoomTarget=null,this.active=e;for(let t of this.selected.children)(t instanceof ml||t instanceof Vl)&&t.material.color.set(lh[e.category]);this.selected.position.copy(Th(e.lat,e.lon,1.002)),this.selected.quaternion.setFromUnitVectors(new W(0,0,1),Th(e.lat,e.lon)),this.previous.copy(this.camera.position),this.target=Th(e.lat,e.lon,t||!this.detail?3.7:this.focusDistance(this.areas.get(e.id)));let n=!t&&!!this.detail&&ph(this.camera,this.target);n&&this.target.setLength(Math.min(this.previous.length(),this.target.length())),this.flight=mh(this.previous,this.target,n),this.focusArea(e,t),this.transition=t||this.reduced?1:0,this.transition===1&&this.camera.position.copy(this.target),this.controls.update()}updatePins(e){if(!this.pinsDirty&&Math.abs(this.pinScale-e)<1e-6)return;let t=new ms;for(let n of this.pinBatches)n.pins.forEach((r,i)=>{let a=r.visible?e:0;t.makeScale(a,a,a).setPosition(r.position),n.mesh.setMatrixAt(i,t)}),n.mesh.instanceMatrix.needsUpdate=!0;this.pinScale=e,this.pinsDirty=!1}filter(e){for(let t of this.pins.children)t.visible=e.has(t.userData.id);this.selected.visible=e.has(this.active.id),this.pinsDirty=!0}async focusArea(e,t){if(this.detail){this.detail.clearArea(),this.host.dispatchEvent(new CustomEvent(`area-change`,{detail:null}));try{let n=this.areas.get(e.id);if(!n){let t=await fetch(Ch(`areas/${e.id}.json`));if(!t.ok)return;n=await t.json(),this.areas.set(e.id,n)}if(this.active.id!==e.id)return;if(this.detail.showArea(n),this.host.dispatchEvent(new CustomEvent(`area-change`,{detail:n})),!t&&this.target){let e=this.focusDistance(n),t=this.flight?.direct?Math.min(this.camera.position.length(),this.target.length(),e):e;this.target.setLength(t),this.transition===1&&(this.zoomTarget=t)}}catch{this.host.dispatchEvent(new CustomEvent(`area-change`,{detail:null}))}}}tick(e,t){if(this.touch.gesture.update(),this.zoomTarget!==null){let t=Go.lerp(this.camera.position.length(),this.zoomTarget,1-Math.exp(-10*e));this.camera.position.setLength(t),Math.abs(t-this.zoomTarget)<.001&&(this.camera.position.setLength(this.zoomTarget),this.zoomTarget=null),this.controls.update()}this.target&&this.flight&&this.transition<1&&(this.transition=Math.min(1,this.transition+e/this.flight.duration),hh(this.flight,this.target,this.transition,this.camera.position),this.controls.update());let n=Math.max(.025,Math.min(1,(this.camera.position.length()-1)/2.7));this.selected.scale.setScalar(n),this.updatePins(n),this.controls.rotateSpeed=Math.max(.05,Math.min(.55,(this.camera.position.length()-1)*.3)),this.detail?.update(t,e,!this.target||this.transition===1,this.touch.gesture.active||performance.now()<this.detailResumeAt),this.ring.scale.setScalar(this.reduced?1:1+Math.sin(t*2)*.12),this.render()}seek(e,t,n){this.select(t,!0);let r=Th(e.lat,e.lon),i=Th(t.lat,t.lon),a=new Ko().setFromUnitVectors(r,i);this.camera.position.copy(r.applyQuaternion(new Ko().slerp(a,n)).multiplyScalar(3.7)),this.camera.lookAt(0,0,0),this.render()}render(){this.detail?.updateAreaVisibility(this.selected,.037*1.12*this.selected.scale.x,this.host.clientWidth,this.host.clientHeight),this.renderer.render(this.scene,this.camera)}reset(){this.select(this.active)}zoom(e){this.cancelIntro(),this.target=null,this.transition=1,this.zoomTarget=Go.clamp((this.zoomTarget??this.camera.position.length())*e,this.controls.minDistance,this.controls.maxDistance),this.reduced&&(this.camera.position.setLength(this.zoomTarget),this.zoomTarget=null,this.controls.update(),this.render())}dispose(){this.cancelIntro(),this.touch.dispose(),this.detail?.dispose(),this.observer.disconnect(),this.controls.dispose(),this.scene.traverse(e=>{(e instanceof ml||e instanceof Vl)&&(e.geometry.dispose(),(Array.isArray(e.material)?e.material:[e.material]).forEach(e=>e.dispose()))}),this.renderer.dispose()}},Dh=class{host;onSelect;onStop;onTravel;items=[];buttons=[];position=0;target=0;velocity=0;travelStarted=!1;active=``;pointer=null;suppressClick=!1;reduced=matchMedia(`(prefers-reduced-motion: reduce)`).matches;width=0;constructor(e,t,n,r){this.host=e,this.onSelect=t,this.onStop=n,this.onTravel=r,new ResizeObserver(()=>{this.width=e.clientWidth,this.draw()}).observe(e),e.addEventListener(`pointerdown`,e=>{e.button===0&&(this.onStop(),this.suppressClick=!1,this.pointer={id:e.pointerId,x:e.clientX,position:this.position,moved:!1})}),e.addEventListener(`pointermove`,t=>{if(!this.pointer||this.pointer.id!==t.pointerId)return;let n=t.clientX-this.pointer.x;Math.abs(n)>6&&(this.pointer.moved=!0,e.setPointerCapture(t.pointerId)),this.pointer.moved&&this.scrub(this.pointer.position-n/this.spacing())});let i=t=>{this.pointer&&t.pointerId===this.pointer.id&&(this.suppressClick=this.pointer.moved,this.pointer=null,e.hasPointerCapture(t.pointerId)&&e.releasePointerCapture(t.pointerId),this.target=Math.round(this.position))};e.addEventListener(`pointerup`,i),e.addEventListener(`pointercancel`,i),e.addEventListener(`click`,e=>{if(this.suppressClick){this.suppressClick=!1;return}let t=e.target.closest(`[data-id]`)?.dataset.id,n=this.items.find(e=>e.id===t);n&&(this.onStop(),this.focus(n.id))}),e.addEventListener(`wheel`,e=>{e.preventDefault(),this.onStop(),this.scrub(this.target+(Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY)/200)},{passive:!1})}spacing(){return this.width<600?112:170}setItems(e,t,n=!0){e.map(e=>e.id).join()!==this.items.map(e=>e.id).join()&&(this.items=e,this.host.querySelector(`#markers`).replaceChildren(...e.map(e=>{let t=document.createElement(`button`);t.className=`milestone`,t.dataset.id=e.id,t.style.setProperty(`--marker`,lh[e.category]),t.setAttribute(`aria-label`,`${uh(e.year)}: ${e.title}`);let n=document.createElement(`span`);n.className=`marker-dot`;let r=document.createElement(`span`);r.className=`marker-date`,r.textContent=uh(e.year,e.approximate);let i=document.createElement(`span`);return i.className=`marker-title`,i.textContent=e.title,t.append(n,r,i),t})),this.buttons=Array.from(this.host.querySelectorAll(`.milestone`)),this.position=Math.max(0,e.indexOf(t)),this.target=this.position),this.active=t.id,n&&this.focus(t.id),this.draw()}focus(e){let t=this.items.findIndex(t=>t.id===e);t>=0&&(this.target=t,this.travelStarted=!!this.onTravel,this.onTravel?.(this.items[t]))}setVelocity(e){this.velocity=e,this.target=this.position,this.travelStarted=!1}scrub(e){this.target=Math.max(0,Math.min(this.items.length-1,e)),this.moveTo(this.target)}moveTo(e,t=!0){let n=this.position;this.position=e;let r=e>n&&Math.floor(e)>Math.floor(n)?Math.floor(e):e<n&&Math.ceil(e)<Math.ceil(n)?Math.ceil(e):-1;t&&this.activate(r),this.draw()}activate(e,t=!1){let n=this.items[e];n&&n.id!==this.active&&(this.active=n.id,this.onSelect(n,t))}tick(e){if(this.velocity&&this.items.length)this.scrub(this.position+this.velocity*e),(this.position<=0||this.position>=this.items.length-1)&&this.onStop();else if(this.target!==this.position){let t=this.position+(this.target-this.position)*(1-Math.exp(-9*e));this.moveTo(this.reduced||Math.abs(this.target-t)<.001?this.target:t,!1),this.position===this.target&&(this.activate(this.target,this.travelStarted),this.draw())}}draw(){let e=this.spacing();this.buttons.forEach((t,n)=>{let r=n-this.position,i=this.width/2+e*r/Math.sqrt(1+Math.abs(r)*.22),a=Math.min(1,Math.abs(i-this.width/2)/(this.width/2));if((i<-180||i>this.width+180)&&t.style.opacity===`0`)return;let o=i>=26&&i<=this.width-26;t.tabIndex=o?0:-1,t.setAttribute(`aria-hidden`,String(!o)),t.style.left=`${i}px`,t.style.top=`16px`;let s=1+Math.max(0,1-Math.abs(r));t.style.setProperty(`--depth-scale`,String(s*(1-a*.25))),t.style.opacity=String(1-a**2),t.style.filter=`blur(${a**3*2.2}px)`,t.classList.toggle(`selected`,t.dataset.id===this.active),t.setAttribute(`aria-pressed`,String(t.dataset.id===this.active))})}},Oh={uruk:[`Early tablets often concerned everyday administration: grain, animals, workers, and deliveries. Keeping a city supplied required people to record quantities and obligations. Over time, signs that represented things also came to represent the sounds of language, allowing scribes to express much more than a simple count.`,`Writing did not appear everywhere at once, and Mesopotamia was not its only birthplace. But the cuneiform tradition offers a remarkable window into an early urban world. Its surviving tablets eventually recorded laws, letters, prayers, and literature, giving distant generations a voice that can still be read.`],pyramids:[`The pyramid belonged to a larger funerary landscape of temples, smaller pyramids, and causeways. Its builders quarried and moved immense quantities of stone, combining skilled work with a system capable of supplying food, tools, transport, and labor. The monument’s precision reflects accumulated experience, not a sudden invention.`,`For ancient Egyptians, a royal tomb was part of a religious understanding of kingship and the afterlife. For us, the Great Pyramid is also evidence of the society that built it. Its survival can make the distant past seem permanent, even though much of its original casing and surrounding ceremonial world has disappeared.`],indus:[`Mohenjo-daro’s neighborhoods included houses built from standardized bricks, wells, and covered drains. The Great Bath, a large brick-lined tank, is one of its most recognizable surviving structures. These features suggest sustained attention to water, construction, and the practical organization of a dense settlement.`,`The city belonged to a wider civilization linked by shared objects, weights, and trading relationships. Much remains uncertain: its script has not been securely deciphered, and the organization of its government is debated. That uncertainty matters. Impressive ruins reveal sophisticated urban life without telling us every detail of the people who lived there.`],stonehenge:[`The monument developed over many generations. Different stones came from different places, and moving them required coordinated effort. Archaeology places Stonehenge within a wider landscape of earthworks, settlements, and burial sites, rather than treating it as an isolated circle.`,`The alignment of its principal axis with the midsummer sunrise and midwinter sunset is striking. Exactly how people understood or used the monument is harder to recover. It reminds us that prehistoric communities could undertake ambitious collective projects, while leaving no written explanation of the beliefs that gave them meaning.`],hammurabi:[`The stele combines a royal image with a long legal text. Its judgments address subjects ranging from trade and debt to marriage, property, and bodily injury. Penalties differ according to social position, revealing a hierarchical world rather than a modern ideal of equal treatment.`,`Hammurabi’s collection was not the first written law, nor a complete record of how every dispute was settled. It was also a statement about royal authority and justice. Its importance lies in the unusually detailed evidence it preserves about relationships, responsibilities, and power in ancient Babylonian society.`],shang:[`Diviners asked about harvests, warfare, childbirth, weather, and the actions of royal ancestors. Heat produced cracks in prepared bones or shells, which were interpreted as answers. Inscriptions could record the question, the prediction, and sometimes the outcome.`,`These objects connect religious practice with the workings of the Shang court. They also preserve names, events, and forms of writing that help historians compare archaeology with later accounts. The inscriptions show that a tool for consulting the ancestors has become a powerful source for reconstructing the lives of their descendants.`],olmec:[`The heads are generally understood as portraits of rulers, although the identities of the people represented are unknown. Individual faces and distinctive headgear make them more than interchangeable symbols. Their basalt was transported from quarry areas, sometimes over substantial distances.`,`Olmec centers were part of a wider Mesoamerican world of exchange and experimentation. Their visual traditions influenced later societies, but those later cultures were not simply copies of a single predecessor. The heads make the scale of Olmec achievement visible while leaving many questions about political authority and daily life unanswered.`],buddha:[`The Buddha’s teaching developed in a world of competing religious and philosophical traditions in South Asia. At its center were questions about suffering, attachment, ethical action, and the possibility of liberation. Communities of monks, nuns, and lay supporters helped preserve and transmit these teachings.`,`Buddhism changed as it traveled, taking root in different languages, societies, and artistic traditions. Bodh Gaya became a place where those many traditions could look back to a shared sacred story. The monument visitors see today reflects a long history of building, restoration, pilgrimage, and continuing worship.`],athens:[`Cleisthenes reorganized citizens into new political groupings, weakening some older family and regional loyalties. Over time, assemblies, councils, courts, and public offices gave eligible citizens several ways to take part. Participation was direct: citizens could debate and vote themselves rather than choosing representatives in the modern sense.`,`This was a consequential experiment, but an unequal one. The labor and exclusion of many people supported the political freedom of a smaller citizen body. Athens therefore matters both as a source of later democratic ideas and as a reminder to ask who is included whenever a society describes itself as democratic.`],alexander:[`Alexandria’s position connected Egypt’s agricultural wealth with Mediterranean shipping. Under Alexander’s successors, the Ptolemies, royal patronage supported institutions associated with learning and the collection of texts. The city became home to communities with different languages, religions, and traditions.`,`Its reputation for scholarship can overshadow the ordinary work of a great port: moving goods, feeding inhabitants, and managing competition and conflict. Alexandria’s history joins those worlds together. Knowledge circulated through the same networks that carried merchants, officials, migrants, and the ambitions of rulers.`],ashoka:[`The inscriptions were placed across a large and varied territory, using different languages and scripts. Their messages discuss ethical behavior, officials’ duties, religious communities, and the ruler’s concern for his subjects. Some also describe Ashoka’s remorse over the suffering caused by the conquest of Kalinga.`,`Royal inscriptions are statements of intention and authority, not neutral reports of perfect government. Even so, these texts provide rare direct access to an ancient ruler’s public voice. They reveal an effort to communicate across distance and difference, and to describe legitimate rule in moral as well as military terms.`],qin:[`The Qin state drew on military strength and administrative practices developed during centuries of rivalry. After unification, the new empire promoted common standards for writing, measures, and other parts of public life. Local rule was brought more directly under centrally appointed officials.`,`The dynasty collapsed soon after the First Emperor’s death, but some of its institutions outlasted it. Its legacy is therefore larger than its short duration. Monumental works and the terracotta army make imperial ambition visible, while accounts of coercion and forced labor reveal its human costs.`],rome:[`Augustus came to power after years of civil war that had weakened the Roman Republic. He presented his settlement as a restoration of order, while retaining decisive control over armies and political authority. Existing offices and institutions continued, but the balance of power had fundamentally changed.`,`The empire connected widely separated communities through roads, taxation, trade, law, and military force. Stability and opportunity existed alongside conquest, slavery, and sharp inequality. The transition under Augustus is a useful milestone, but it was a process of political transformation rather than a simple overnight replacement of one system by another.`],teotihuacan:[`The city’s enormous pyramids and broad Avenue of the Dead were part of a much larger urban fabric. Apartment compounds housed many residents, and archaeological evidence points to communities with connections to other parts of Mesoamerica. Craft production and trade helped sustain its reach.`,`Teotihuacan’s influence extended beyond the Valley of Mexico, but the precise structure of its government remains debated. Even the name used today comes from people who encountered its ruins later. The city demonstrates how much archaeology can reveal about urban life while preserving important limits to what we know.`],gupta:[`The Aryabhatiya presents its material in concise verses that later commentators explained and expanded. Its subjects include calculation, geometry, trigonometry, and astronomical models. Aryabhata offered an account of the apparent daily motion of the heavens in terms of Earth’s rotation.`,`His work belonged to a living scholarly tradition, with predecessors, critics, and successors. Mathematical and astronomical knowledge traveled through translation and contact between regions. Rather than a story of one isolated genius, this milestone opens a view of knowledge built, debated, and passed on across generations.`],hijra:[`The move took place after growing opposition to Muhammad and his followers in Mecca. In Medina, the community faced the practical work of arranging relationships, resolving conflict, and establishing collective obligations. The migration therefore carried social and political significance as well as religious meaning.`,`The Islamic calendar later used the year of the Hijra as its starting point. A calendar does more than count days: it gives a community a shared way to locate its history. The event continues to be remembered as a passage from vulnerability toward a new form of communal life.`],baghdad:[`The Abbasid capital stood within networks connecting the Mediterranean, the Indian Ocean, Central Asia, and lands farther east. Its growth brought together administrators, artisans, merchants, and scholars. Translation and study flourished in this cosmopolitan environment, drawing on Greek, Persian, Indian, and other intellectual traditions.`,`Baghdad’s scholarly reputation was the work of many patrons and communities over time, not the achievement of a single institution or moment. The city also experienced political division, violence, and destruction. Its foundation marks the beginning of one of the medieval world’s most influential urban centers.`],borobudur:[`The monument’s terraces lead visitors through extensive relief sequences and toward circular platforms with stupas. Architecture, images, and movement work together: a person walking through the site encounters teachings through an ordered physical journey.`,`Borobudur also reflects Java’s participation in wider networks of religious and artistic exchange. Its later history includes periods of neglect, renewed study, and major conservation work. Today it is both an archaeological monument and a living religious site, meanings that coexist rather than replacing one another.`],polynesia:[`Wayfinding depended on close observation and knowledge learned through practice. Navigators could use the rising and setting points of stars, patterns in ocean swells, clouds, and the behavior of birds. Boats and navigation methods were adapted to the demands of long ocean passages.`,`The settlement of the Pacific unfolded in several phases, and the dates for particular islands continue to be refined. This milestone represents that wider achievement rather than a single departure. Contemporary voyaging revivals also show that these traditions are living knowledge, not merely a vanished chapter of exploration.`],angkor:[`Angkor Wat was part of a much larger urban and agricultural landscape. Reservoirs, canals, and other waterworks helped shape life around the Khmer capital. Within the temple complex, towers, galleries, and carved reliefs expressed religious ideas and royal power.`,`The site’s movement from Hindu dedication toward Buddhist use shows that monuments can acquire new meanings without losing all their earlier ones. Angkor Wat has remained a powerful symbol in Cambodia’s history. Its survival depends on both conservation and the continuing relationship between the place and the people who use it.`],mongols:[`Genghis Khan united rival groups and organized an army capable of operating across enormous distances. Later rulers expanded Mongol power into China, Central Asia, the Middle East, and eastern Europe. Conquest could involve devastating sieges, forced movement, and large-scale killing.`,`Under Mongol rule, merchants, envoys, specialists, and ideas also traveled across connected territories. These exchanges did not erase the violence that created the empire. Both belong to its history: unprecedented connections across Eurasia and the immense suffering imposed on many conquered communities.`],mali:[`Mali’s wealth rested in part on its place within trade networks linking West African gold-producing regions with routes across the Sahara. Mansa Musa’s journey passed through cities where accounts of his entourage and generosity circulated widely. It helped place Mali more prominently in the geographic imagination of distant observers.`,`The empire’s history also included agriculture, administration, religious life, and centers of learning. Gold is the most famous part of the story, but it is not the whole one. Musa’s pilgrimage reveals a West Africa deeply connected to the wider world through commerce, scholarship, diplomacy, and faith.`],tenochtitlan:[`The island city developed through causeways, canals, markets, and intensive cultivation in the surrounding lake environment. As Mexica power expanded, tribute and trade brought people and goods into the capital. Its scale impressed Spanish observers who arrived in the sixteenth century.`,`The city was also the center of an empire whose power could be resented by subject communities. Spanish conquest relied partly on alliances with Indigenous opponents of Mexica rule. Much of Tenochtitlan was destroyed in 1521, and Mexico City grew over its remains, making the ancient capital part of a living urban landscape.`],printing:[`Movable type, ink, paper, presses, skilled workers, and investment had to work together for Gutenberg’s system to succeed. The Bible was a substantial commercial and technical undertaking. Individual copies were also finished by hand, linking the new production method with older manuscript traditions.`,`Printing with woodblocks and movable type had long histories in East Asia before Gutenberg. His workshop’s importance lies in the expansion of a particular printing system in Europe. As presses spread, more texts could circulate more quickly, changing religious debate, education, scientific exchange, and access to information.`],atlantic:[`The Caribbean was already home to established Indigenous societies. Columbus’s arrival was therefore not the discovery of an empty world. It became a turning point because later voyages helped establish sustained routes of conquest, settlement, extraction, and exchange across the Atlantic.`,`Plants, animals, people, and diseases moved between previously separated environments. Some exchanges transformed diets and economies; others brought catastrophic population loss and exploitation. The legacy is global, but its consequences were profoundly unequal. Understanding this crossing means keeping Indigenous experience at the center of the story.`],mughal:[`Babur entered northern India with military experience shaped in Central Asia. At Panipat, his forces used firearms, artillery, and tactics that helped overcome the larger army of the Delhi sultan. Victory brought control of important cities but did not make the consolidation of an empire automatic.`,`Mughal power was built and rebuilt by later rulers through warfare, alliances, administration, and negotiation. Its courts supported influential traditions of painting, literature, gardens, and architecture. Panipat marks an opening chapter in a long history whose effects reached far beyond the battlefield.`],galileo:[`Galileo did not invent the telescope, but he improved instruments and directed them toward the sky. Mountains and shadows on the Moon challenged the idea of perfectly smooth heavenly bodies. The moons orbiting Jupiter showed that not everything in the heavens revolved directly around Earth.`,`Observation alone did not settle every argument. Astronomers debated the reliability of instruments and the interpretation of what they revealed. Sidereus Nuncius helped change the discussion by making telescopic evidence public, showing how a new tool could transform both scientific questions and the standards used to answer them.`],taj:[`The mausoleum stands within an ordered complex of gardens and related buildings beside the Yamuna River. White marble, calligraphy, carved decoration, and colored stone inlay contribute to its effect. Many kinds of skilled labor were needed to turn the royal commission into a built landscape.`,`The Taj Mahal is often described through the personal story of Shah Jahan and Mumtaz Mahal. It also belongs to the political and artistic world of the Mughal court. Both perspectives matter: a memorial for an individual and a demonstration of the resources, craftsmanship, and authority of an empire.`],haiti:[`The revolution began in the French colony of Saint-Domingue, where plantation wealth depended on the brutal exploitation of enslaved labor. Fighting involved enslaved people, free people of color, colonial interests, and competing European powers. Its course was shaped by shifting alliances and the wider upheaval of the French Revolution.`,`Independence destroyed the colonial slave system but did not bring an easy peace. Haiti faced diplomatic isolation and severe external pressures, including the indemnity demanded by France. The revolution’s achievement remains extraordinary: people treated as property fought to establish political freedom and a state of their own.`],industrial:[`The railway was designed mainly to carry coal from inland mines toward the coast. Steam locomotives formed part of an operating system that also included tracks, bridges, workshops, schedules, and workers. Passenger services developed alongside freight, with horses still used on early passenger trains.`,`Railways changed the economics of moving heavy goods and eventually made faster travel available on a much larger scale. They also reorganized landscapes, working lives, and the timing of daily activity. The opening in 1825 is one milestone in a broader industrial transformation, rather than the beginning of every part of rail transport.`],waitangi:[`The Māori text, Te Tiriti o Waitangi, and the English version do not express key concepts in identical ways. Differences concerning governance and chiefly authority became central to later disputes. The agreement was signed at different places by many rangatira, while others did not sign.`,`Colonization, warfare, land loss, and Crown actions often departed from Māori understandings of the agreement. In more recent history, treaty claims, settlements, scholarship, and public debate have returned those obligations to the center of national life. The treaty is therefore both an event in 1840 and an ongoing relationship.`],meiji:[`The transition followed internal political conflict and growing pressure from foreign powers. The new leadership reorganized government and pursued changes in education, taxation, the military, and industry. People experienced these reforms differently: new opportunities came with disruption to established livelihoods and social positions.`,`Japan’s transformation was neither a simple imitation of the West nor a change completed in a single year. Leaders adapted foreign models to domestic aims, and the resulting state developed imperial ambitions of its own. The Meiji Restoration is an entry point into this complex rebuilding of political and economic power.`],adwa:[`Tensions included competing interpretations of a treaty that Italy used to claim authority over Ethiopia’s foreign relations. Menelik II mobilized a large coalition, while Empress Taytu and other regional leaders played important roles. Ethiopian forces brought their own military organization and weapons to the campaign.`,`Adwa forced Italy to recognize Ethiopian independence and challenged European assumptions about colonial supremacy. It became a source of pride and inspiration far beyond Ethiopia. The victory did not end all later threats—Italy invaded again in the twentieth century—but its political and symbolic significance endured.`],flight:[`The brothers approached flight as a problem of control as well as power. Their glider experiments, wind-tunnel work, and testing helped them develop an aircraft whose movements a pilot could manage. On the day of the first flights, the machine traveled only short distances over the dunes.`,`Those early seconds did not instantly create modern aviation. Further experiments, new aircraft, training, and infrastructure were still needed. But the achievement showed that controlled powered flight was practical. Within decades, aviation would connect distant places while also giving states a devastating new instrument of war.`],wwi:[`The assassination of Franz Ferdinand and Sophie was the trigger for a crisis among governments already divided by rivalries, alliance commitments, and military planning. Decisions taken during the following weeks turned a regional confrontation into a wider war. The outcome was not simply the automatic result of one gunshot.`,`Millions of soldiers and civilians were drawn into the conflict, including people from colonies far from the European battlefields. The war brought mass death, displacement, economic strain, and political revolution. Its aftermath redrew borders and weakened or ended empires, leaving disputes that shaped much of the twentieth century.`],un:[`The San Francisco conference built on wartime discussions about how international cooperation might work after the conflict. Delegates debated a charter that set out institutions, purposes, and procedures. The resulting organization combined a General Assembly of member states with a Security Council carrying special responsibilities.`,`The United Nations reflected both hopes for a different future and the unequal power of its founding moment. It could not remove conflict from world affairs. It did create enduring forums and institutions for diplomacy, humanitarian work, and international cooperation, whose record continues to be debated.`],india:[`Partition divided British India into two dominions and split Punjab and Bengal along newly drawn boundaries. Decisions about territory were made under intense political pressure and on a rapid timetable. Communities with long shared histories suddenly found themselves on different sides of national borders.`,`Millions moved, often in fear or under compulsion, and widespread violence made the transition deeply traumatic. Families lost homes, relatives, and familiar worlds. The history of independence is therefore inseparable from the history of displacement, and its consequences remain present in family memory and relations between the states of the region.`],ghana:[`The new country emerged from the British Gold Coast and associated territories after years of political organizing and constitutional change. Nkrumah’s movement pressed for self-government and mobilized support beyond a narrow political elite. Independence celebrations announced a new place for Ghana in international affairs.`,`Nkrumah linked Ghana’s future with wider African liberation and Pan-African cooperation. The challenges of governing and developing the new state were substantial, and later political conflict complicated the independence-era hopes. Even so, 1957 became a powerful reference point for a continent undergoing decolonization.`],apollo:[`Armstrong and Aldrin descended in the lunar module while Collins remained in lunar orbit. Their landing depended on years of engineering, earlier missions, and the work of an enormous number of people on Earth. Samples, instruments, photographs, and television images connected the mission with scientific study and a worldwide audience.`,`Apollo also belonged to the Cold War competition between the United States and the Soviet Union. Its meaning exceeded that rivalry: the mission changed what people could imagine humans doing beyond Earth. Because a terrestrial globe cannot mark a lunar landing, this atlas locates the Florida launch site and explains that distinction.`],berlin:[`The opening came amid protests, emigration pressures, and political change across eastern Europe. A confusing announcement about travel rules brought crowds to border crossings. Guards, faced with an unfolding situation and unclear instructions, eventually allowed people through.`,`The images of people climbing the Wall became symbols of a divided continent changing. The opening did not instantly resolve the inequalities or tensions created by decades of separation. It did make the division of Berlin untenable and help set the course toward German reunification in the following year.`],web:[`Berners-Lee’s work at CERN brought together hypertext with the Internet so that documents could link to one another across computers. Web addresses, a transfer protocol, and a markup language provided the basic pieces. Early browsers and servers made that idea usable in practice.`,`The Web is a service built on the Internet, not another name for the entire network. Its spread depended on software, open standards, and contributions from many people. Public availability in 1991 was an important step; CERN’s later decision to make the technology freely available helped it grow into a shared global medium.`],"south-africa":[`The election followed years of resistance to apartheid, state repression, negotiation, and political violence. Voters who had been excluded from national political power queued alongside those who had possessed it. The African National Congress won the largest share of the vote, and Mandela became president of a government of national unity.`,`The transition changed the basis of political citizenship, but it did not remove the economic and social inequalities apartheid had created. Building democratic institutions and addressing that inheritance would be continuing tasks. The election stands as a milestone in both the achievement of equal political rights and the unfinished work that followed.`],iss:[`Expedition 1 brought William Shepherd, Yuri Gidzenko, and Sergei Krikalev to a station still under construction. The crew established routines for living and working aboard, while later missions expanded the laboratory. The project relied on contributions from several space agencies and on repeated launches from Earth.`,`The station made long-duration human presence in orbit an ongoing practice rather than an occasional expedition. Research, maintenance, cooperation, and ordinary daily life shared the same small environment. This atlas marks the crew’s launch at Baikonur, while the destination itself continued to circle the planet.`]},kh=new Map,Ah=new Map;async function jh(e){let t=kh.get(e);if(t)return t;let n=Ah.get(e);if(n)return n;let r=(async()=>{let t=await fetch(Ch(`reading/${e}.json`));if(!t.ok)throw Error(`Reading unavailable`);let n=await t.json();if(n.id!==e||!n.sections.length)throw Error(`Invalid reading`);return kh.set(e,n),n})();Ah.set(e,r);try{return await r}finally{Ah.delete(e)}}var Mh=new Set(`event-q869045.event-q33143.event-q192769.event-q778010.event-q334029.event-q127912.event-q862751.event-q653664.event-q846674.event-q1132579.event-q301487.event-q459447.event-q41894.event-q841278.event-q6683.event-q331377.event-q1064335.event-q8676.event-q543165.event-q221469.event-q719252.event-q751186.event-q233343.event-q1327790.event-q220497.event-q205422.event-q2736155.event-q391358.event-q175613.flight.event-q211386.event-q8698.event-q201684.event-q186356.event-q127050.event-q1066650.event-q207342.event-q249367.event-q1128871.event-q585962.event-q749610.event-q1608064.apollo.event-q48469.event-q1053476.event-q2513.event-q696187.event-q10806.event-q192446.event-q896666.event-q150229.event-q7350.wwi.event-q8736.event-q362.event-q52418.event-q699897.event-q2050460.event-q700032.event-q194132.event-q327099.event-q714777.event-q700547.event-q16470.event-q609030.event-q696900.event-q2748496.event-q488.event-q192660.event-q696931.event-q14303815.event-q835881.event-q379433.event-q1360624.event-q697403.un.event-q8683.event-q4576.event-q151349.event-q8663.event-q976887.event-q8740.event-q128160.event-q922661.event-q37643.event-q190029.event-q1327861.iss.event-q182865.event-q545449.event-q19085.event-q18357664.event-q51844684.event-q186447.event-q108102583.event-q16947045.event-q138503695.politics-q698106.politics-q29552.politics-q29468.politics-q698842.politics-q502044.politics-q205304.politics-q179868.politics-q699590.politics-q42761.politics-q699716.politics-q327959.politics-q45578.politics-q19042.politics-q180654.politics-q19600530.politics-q699872.politics-q22923830.politics-q104705419.politics-q101110072.politics-q115857612`.split(`.`));function Nh(e){return!!e.presidency||Mh.has(e.id)}function Ph(e,t,n=null,r=null){return e.filter(e=>(t===`world`||Nh(e))&&(!n||e.category===n)&&(!r||e.year>=r.start&&e.year<=r.end))}var Z=e=>document.querySelector(e),Fh=e=>`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${{play:`<path d="m9 5 11 7-11 7Z"/>`,pause:`<path d="M8 5v14M16 5v14"/>`,next:`<path d="m9 5 7 7-7 7"/>`,back:`<path d="m15 5-7 7 7 7"/>`,search:`<circle cx="10.5" cy="10.5" r="6.5"/><path d="m16 16 5 5"/>`,plus:`<path d="M12 5v14M5 12h14"/>`,minus:`<path d="M5 12h14"/>`,reset:`<circle cx="12" cy="12" r="6"/><path d="M12 2v4M12 18v4M2 12h4M18 12h4"/>`,close:`<path d="m6 6 12 12M6 18 18 6"/>`,globe:`<circle cx="12" cy="12" r="9"/><ellipse cx="12" cy="12" rx="4" ry="9"/><path d="M3 12h18"/>`,arrow:`<path d="M6 18 18 6M6 6h12v12"/>`,volume:`<path d="m4 10 4 0 5-4v12l-5-4H4ZM17 9l5 6M17 15l5-6"/>`,list:`<path d="M8 6h13M8 12h13M8 18h13M3 6h1M3 12h1M3 18h1"/>`}[e]||``}</svg>`,Q=e=>e.replace(/[&<>"']/g,e=>({"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`})[e]),Ih=e=>{let t=document.createElement(`div`);return t.innerHTML=e,t.textContent||``};Z(`#app`).innerHTML=`
4790<header class="header"><a class="brand" href="#pyramids" aria-label="Five Thousand Years home">${Fh(`globe`)}<span>Five Thousand Years<span class="brand-sub">A living atlas of human history</span></span></a><nav aria-label="Main navigation"><button id="index-open" class="text-button" aria-label="Explore milestones">${Fh(`search`)}<span>Explore milestones</span></button><button id="about-open" class="text-button">About the atlas</button><button id="film-open" class="film-button" aria-label="Watch the prologue">${Fh(`play`)}<span>Watch the prologue</span></button></nav></header>
4791<nav class="theme-filterbar" aria-label="Filter history"><div class="history-scope" role="group" aria-label="History collection"><button data-scope="world" aria-pressed="true">World history</button><button data-scope="us" aria-pressed="false" title="US history, including colonial history and American involvement abroad">US history</button></div><span class="theme-filter-label">Themes</span><button id="themes-back" class="theme-scroll" aria-label="Scroll themes left">${Fh(`back`)}</button><div class="legend"><button data-category="" aria-pressed="true">All themes</button>${ch.map(e=>`<button data-category="${e}" style="--theme-color:${lh[e]}" aria-pressed="false"><i></i>${e}</button>`).join(``)}</div><button id="themes-forward" class="theme-scroll" aria-label="Scroll themes right">${Fh(`next`)}</button></nav>
4792<main>
4793 <section class="experience" aria-label="History globe and selected milestone">
4794 <div class="intro"><span class="range-label">3000 BCE — 2026 CE</span><h1>One world.<br>Countless stories.</h1><p>Follow the places, people, and ideas<br>that changed our shared history.</p><div class="era-tag"><span></span><span id="era-label">Early civilizations</span></div></div>
4795 <div class="globe-hud"><div class="year-watermark" aria-hidden="true"><span id="year-large">2,560</span><span id="year-era">BCE</span></div><div class="area-description" id="area-description"></div></div>
4796 <div id="globe" class="globe"><div class="globe-loading" id="globe-loading">Unfolding the atlas…</div></div>
4797 <div class="globe-caption"><span class="small-cross">+</span><span id="location-label">Giza, Egypt</span><span id="coordinates">29.98° N / 31.13° E</span></div>
4798 <div class="globe-tools"><button id="zoom-in" aria-label="Zoom in">${Fh(`plus`)}</button><button id="zoom-out" aria-label="Zoom out">${Fh(`minus`)}</button><button id="recenter" aria-label="Recenter selected location">${Fh(`reset`)}</button></div>
4799 <div class="globe-help">Drag to explore <span>·</span> Pinch or scroll to zoom</div>
4800 <div class="filter-empty" id="filter-empty" hidden><h2>No milestones in this selection.</h2><p>Try another theme or era, or clear those filters to explore this history collection.</p><button id="clear-filters">Show all themes and eras</button></div>
4801 <article class="story" id="story" aria-live="polite" aria-atomic="true"></article>
4802 </section>
4803 <section class="timeline-section" aria-label="Historical timeline">
4804 <div class="timeline-toolbar"><div class="timeline-heading"><span class="timeline-symbol">↔</span><span>Travel through time</span><span class="milestone-count">${sh.length} milestones</span></div><div class="playback"><button id="previous" aria-label="Previous milestone">${Fh(`back`)}</button><button id="play" class="play-button" aria-label="Play guided journey">${Fh(`play`)}<span>Play journey</span></button><button id="next" aria-label="Next milestone">${Fh(`next`)}</button></div></div>
4805 <div class="era-nav" id="era-nav"><button class="active" data-era="all">All 5,000 years</button>${dh.map((e,t)=>`<button data-era="${t}">${e.name}</button>`).join(``)}</div>
4806 <div class="timeline" id="timeline" aria-label="Drag the timeline to browse milestones"><div class="timeline-line"></div><div class="timeline-markers" id="markers"></div><div class="focus-notch" aria-hidden="true"></div></div>
4807 <div class="timeline-controls"><label class="position-control" for="year-slider"><span>Across 5,000 years <output id="position-label"></output></span><input id="year-slider" class="year-slider" type="range" min="0" max="42" value="1" step="1"></label><div class="shuttle-control"><label for="time-shuttle">Time controller <output id="shuttle-status">Stopped</output></label><div class="shuttle-row"><span aria-hidden="true">←</span><input id="time-shuttle" type="range" min="-100" max="100" value="0" step="1" aria-label="Timeline direction and speed" aria-valuetext="Stopped"><span aria-hidden="true">→</span><button id="shuttle-stop" aria-label="Stop timeline">Stop</button></div></div></div>
4808 <div class="timeline-footer"><span class="timeline-hint">Evenly spaced milestones · Drag to explore</span></div>
4809 </section>
4810</main>
4811<footer class="footer"><span>Major milestones through November 8, 2026.</span><button id="sources-open">Sources & image credits ${Fh(`arrow`)}</button></footer>
4812<dialog id="index-dialog"><div class="dialog-heading"><div><span class="range-label">The milestone collection</span><h2>Find a moment in history.</h2></div><button class="close-dialog" aria-label="Close milestones">${Fh(`close`)}</button></div><div class="search-row"><label class="search-input">${Fh(`search`)}<input id="search" placeholder="Search places, ideas, or events…" aria-label="Search milestones"></label><select id="region" aria-label="Filter by region"><option value="all">Every region</option>${[`Africa`,`Americas`,`Asia`,`Europe`,`Oceania`].map(e=>`<option>${e}</option>`).join(``)}</select></div><div class="results-count" id="results-count"></div><div id="results" class="results"></div></dialog>
4813<dialog id="about-dialog"><div class="dialog-heading"><h2>A world in conversation.</h2><button class="close-dialog" aria-label="Close about">${Fh(`close`)}</button></div><p>This is an invitation to explore 5,000 years of human history through ${sh.length} selected milestones. Cities, beliefs, inventions, migrations, and struggles for freedom unfold on the same planet.</p><p>This curated and sourced catalog is not a complete account or a ranking of civilizations. Ancient dates are often approximate. Some markers represent a wider region or a representative site; modern place names help locate them.</p><p>BCE means Before Common Era; CE means Common Era. They use the same year numbering as BC and AD. The atlas currently covers 3000 BCE through November 8, 2026. The globe shows present-day physical geography. Historical territory overlays use dated Cliopatria reconstructions and are approximate. Urban outlines show present-day built-up areas from Natural Earth. A labeled 15 km site vicinity is used where no suitable boundary is available. For events before photography, images show surviving objects, places, or later depictions. The label beneath each image explains that distinction.</p><p>Milestones are evenly spaced rather than proportional to elapsed years. Drag the timeline to bring an event into focus. Move the time controller left or right to travel backward or forward; farther from center moves faster. Release it to keep that speed, or press Stop. Use the era tabs to narrow the collection. Choose World history or US history, then filter by theme or era, search by region, or play the journey. US history includes colonial North America, US presidencies and domestic milestones, plus direct American participation in overseas events and joint missions. It is a curated selection from this atlas, not every event within modern US borders. Arrow keys move between milestones when you’re outside a form control.</p><p class="about-credit">See also <a href="https://watchencyclopedia.org/everything-launched/" target="_blank" rel="noreferrer">Everything We’ve Ever Launched</a>.</p></dialog>
4814<dialog id="sources-dialog"><div class="dialog-heading"><h2>Sources & image credits</h2><button class="close-dialog" aria-label="Close sources">${Fh(`close`)}</button></div><p>Each milestone links to its background reading. Images are downloaded from Wikimedia with their available attribution metadata. Early events use artifacts, monuments, or later depictions. Dates and geographic markers are editorial selections, with uncertainty noted in the story.</p><section class="source-entry"><h3>Maps and boundaries</h3><p>Globe and terrain imagery: <a href="https://www.earthdata.nasa.gov/data/tools/gibs" target="_blank" rel="noreferrer">NASA Blue Marble / GIBS</a>.</p><p>Present-day boundaries and urban footprints: <a href="https://www.naturalearthdata.com/" target="_blank" rel="noreferrer">Natural Earth</a> (public domain).</p><p>Historical territory reconstructions: <a href="https://github.com/Seshat-Global-History-Databank/cliopatria" target="_blank" rel="noreferrer">Cliopatria</a>, CC BY 4.0; boundaries are approximate. Fifteen-kilometer vicinity circles are atlas illustrations, not political borders.</p></section><div id="sources-list"></div><p>Typefaces: Cormorant Garamond and DM Sans, SIL Open Font License.</p></dialog>
4815<dialog id="film-dialog"><div class="dialog-heading"><div><h2>Across five thousand years</h2><p>A short visual prologue · 14 seconds · silent</p></div><button class="close-dialog" aria-label="Close prologue">${Fh(`close`)}</button></div><hyperframes-player id="film" controls width="1920" height="1080"></hyperframes-player></dialog>
4816<dialog id="detail-dialog" aria-label="Milestone story"><div class="detail-toolbar"><a href="#pyramids" class="detail-brand">Five Thousand Years</a><button class="close-dialog" aria-label="Close story">${Fh(`close`)}</button></div><article id="detail-content" tabindex="0" aria-label="Story reading"></article><nav id="detail-navigation" class="detail-navigation" aria-label="Story navigation"></nav></dialog>
4817<dialog id="nearby-dialog" aria-labelledby="nearby-title"><div class="dialog-heading"><div><h2 id="nearby-title">Choose a milestone</h2><p>These milestones are close together.</p></div><button class="close-dialog" aria-label="Close nearby milestones">${Fh(`close`)}</button></div><div id="nearby-results" class="results"></div></dialog>
4818<div class="sr-only" role="status" id="status"></div>`;var Lh={},$=sh.find(e=>e.id===location.hash.replace(/^#(?:story\/)?/,``))||sh[1],Rh=new URLSearchParams(location.search).get(`history`)===`us`?`us`:`world`;Rh===`us`&&!Nh($)&&($=Ph(sh,Rh)[0]);var zh=null,Bh=null,Vh=!1,Hh=null;function Uh(){return Ph(sh,Rh,Bh,zh===null?null:dh[zh])}function Wh(){document.querySelectorAll(`[data-scope]`).forEach(e=>e.setAttribute(`aria-pressed`,String(e.dataset.scope===Rh)));let e=new URL(location.href);Rh===`us`?e.searchParams.set(`history`,`us`):e.searchParams.delete(`history`),history.replaceState(null,``,e),Z(`.position-control>span`).firstChild.textContent=Rh===`us`?`Across US history `:`Across 5,000 years `}function Gh(){rg(!1);let e=Uh();e.length&&!e.includes($)?Xh(e[0]):(Qh(),eg()),dg()}function Kh(){zh=null,Bh=null,document.querySelectorAll(`[data-era]`).forEach(e=>e.classList.toggle(`active`,e.dataset.era===`all`)),og()}Z(`.history-scope`).onclick=e=>{let t=e.target.closest(`[data-scope]`);t&&(Rh=t.dataset.scope===`us`?`us`:`world`,Wh(),Z(`#region`).value=`all`,Gh())},Z(`#clear-filters`).onclick=()=>{Kh(),Gh()};var qh=e=>e?.image?Ch(e.image):e?.metadata?.LicenseShortName&&e.remoteImage||null;function Jh(e){return`https://en.wikipedia.org/wiki/${encodeURIComponent(e.article)}`}function Yh(e){let t=e.briefSource;return t?`<p>Overview adapted from Wikipedia contributors, <a href="${Q(t.url)}" target="_blank" rel="noreferrer">${Q(t.title)}</a> (<a href="https://en.wikipedia.org/w/index.php?oldid=${t.revision}" target="_blank" rel="noreferrer">source revision</a>). ${Q(t.note)} This adapted text is available under <a href="${Q(t.licenseUrl)}" target="_blank" rel="noreferrer">${Q(t.license)}</a>.</p>`:``}function Xh(e,t=!0,n=!0,r=!0){$=e,t&&history.replaceState(null,``,`#${e.id}`),r&&!n&&Hh?.select(e),Qh(),eg(n)}var Zh=new ResizeObserver(e=>{for(let t of e){let e=t.target,n=parseFloat(getComputedStyle(e).lineHeight),r=Math.max(1,Math.floor(t.contentRect.height/n));e.style.setProperty(`--brief-lines`,String(r))}});function Qh(){let e=Lh[$.id],t=$.catalog?$.body:[$.body,Oh[$.id]?.[0]].filter(Boolean).join(` `);Z(`#era-label`).textContent=dh.find(e=>$.year>=e.start&&$.year<=e.end)?.name||dh[0].name,Z(`#year-large`).textContent=Math.abs($.year).toLocaleString(`en-US`),Z(`#year-era`).textContent=$.year<0?`BCE`:`CE`,Z(`#location-label`).textContent=$.place,Z(`#coordinates`).textContent=`${Math.abs($.lat).toFixed(2)}° ${$.lat<0?`S`:`N`} / ${Math.abs($.lon).toFixed(2)}° ${$.lon<0?`W`:`E`}`,Z(`#story`).classList.toggle(`presidency`,!!$.presidency),Z(`#story`).innerHTML=`<div class="story-image-wrap">${qh(e)?`<img class="story-image" src="${qh(e)}" alt="${Q(e.title)}" decoding="async">`:`<div class="image-loading">${e?`No verified historical image available`:`Historical image loading…`}</div>`}<span class="story-number">${String(Uh().indexOf($)+1).padStart(2,`0`)} / ${Uh().length}</span><span class="image-tag">${$.region}</span></div><div class="story-body"><div class="story-meta"><span style="color:${lh[$.category]}"><i style="background:${lh[$.category]}"></i>${$.category}</span><span>${uh($.year,$.approximate)}</span></div><h2>${$.title}</h2><p class="story-overview"><span class="story-overview-text">${Q(t)}</span></p><div class="story-bottom"><a href="#story/${$.id}">Read the story ${Fh(`next`)}</a><button id="story-next" aria-label="Read next milestone">${Fh(`next`)}</button></div></div><div class="image-caption">${$.imageNote}${$.briefSource?` · <a href="#story/${$.id}">Text sources</a>`:``}${e?.source?` · <a href="${Q(e.source)}" target="_blank" rel="noreferrer">Image credit</a>`:``}</div>`,Zh.disconnect(),Zh.observe(Z(`.story-overview`)),Z(`#story`).onclick=e=>{!e.target.closest(`a,button`)&&!window.getSelection()?.toString()&&(location.hash=`story/`+$.id)},Z(`#story-next`).onclick=()=>tg(1),Z(`#status`).textContent=`${uh($.year)}: ${$.title}`;let n=Z(`.story-image`);n&&(n.onerror=()=>{n.replaceWith(Object.assign(document.createElement(`p`),{className:`image-loading`,textContent:`Image unavailable. Open the source to view the original.`}))})}var $h=new Dh(Z(`#timeline`),(e,t)=>Xh(e,!0,!1,!t),()=>rg(!1),e=>Hh?.select(e));function eg(e=!0){let t=Uh();$h.setItems(t,$,e),Z(`#story`).hidden=!t.length,Z(`.globe-hud`).hidden=!t.length,Z(`#filter-empty`).hidden=!!t.length,Z(`.globe-caption`).hidden=!t.length,Z(`.era-tag`).hidden=!t.length,t.length||(Z(`#status`).textContent=`No milestones match these filters.`),Z(`#recenter`).toggleAttribute(`disabled`,!t.length),Z(`#story-next`).toggleAttribute(`disabled`,t.indexOf($)>=t.length-1),document.querySelectorAll(`[data-era]`).forEach(e=>{let t=e.dataset.era;e.disabled=t!==`all`&&!Ph(sh,Rh,Bh,dh[Number(t)]).length});let n=t.indexOf($),r=Z(`#year-slider`);r.min=`0`,r.max=String(Math.max(0,t.length-1)),r.value=String(Math.max(0,n)),r.disabled=t.length<2,r.setAttribute(`aria-valuetext`,t.length?uh($.year)+`: `+$.title:`No milestones`),Z(`#position-label`).textContent=t.length?uh($.year):`No milestones`,Hh?.filter(new Set(t.map(e=>e.id))),Z(`.milestone-count`).textContent=t.length+` milestones`,Z(`#previous`).toggleAttribute(`disabled`,!t.length||n<=0),Z(`#next`).toggleAttribute(`disabled`,n>=t.length-1),Z(`#play`).toggleAttribute(`disabled`,t.length<2),Z(`#time-shuttle`).disabled=t.length<2,Z(`.timeline-hint`).textContent=t.length?`Milestone spacing · Dates are not to scale`:`No milestones match these filters.`}function tg(e){let t=Uh(),n=t.indexOf($)+e;n>=0&&n<t.length?$h.focus(t[n].id):Vh&&rg(!1)}function ng(e){let t=Math.abs(e)/100,n=Math.sign(e)*(t+2*t*t);Vh=e!==0,$h.setVelocity(n),Z(`#time-shuttle`).value=String(e);let r=e===0?`Stopped`:(e<0?`Backward`:`Forward`)+` · `+(Math.abs(n)*9).toFixed(1)+`×`;Z(`#shuttle-status`).textContent=r,Z(`#time-shuttle`).setAttribute(`aria-valuetext`,r),Z(`#play`).innerHTML=Fh(Vh?`pause`:`play`)+`<span>`+(Vh?`Pause`:`Play journey`)+`</span>`,Z(`#play`).setAttribute(`aria-label`,Vh?`Pause guided journey`:`Play guided journey`)}function rg(e){ng(e?9:0)}Z(`#time-shuttle`).oninput=e=>ng(Number(e.target.value)),Z(`#time-shuttle`).onkeydown=e=>{(e.key===` `||e.key===`Escape`)&&(e.preventDefault(),rg(!1))},Z(`#shuttle-stop`).onclick=()=>rg(!1);function ig(e){rg(!1),Z(e).showModal()}function ag(e){if(!e.length)return;if(rg(!1),e.length===1){Xh(sh.find(t=>t.id===e[0]));return}let t=sh.filter(t=>e.includes(t.id));Z(`#nearby-results`).innerHTML=t.map(e=>`<button class="result" data-id="${e.id}"><span class="result-year">${uh(e.year,e.approximate)}</span><span><strong>${e.title}</strong><small>${e.place}</small></span><i style="background:${lh[e.category]}"></i>${Fh(`next`)}</button>`).join(``),ig(`#nearby-dialog`)}Z(`#nearby-results`).onclick=e=>{let t=e.target.closest(`[data-id]`)?.dataset.id;t&&(Xh(sh.find(e=>e.id===t)),Z(`#nearby-dialog`).close())},Z(`#era-nav`).onclick=e=>{let t=e.target.closest(`[data-era]`);t&&(zh=t.dataset.era===`all`?null:Number(t.dataset.era),document.querySelectorAll(`[data-era]`).forEach(e=>e.classList.toggle(`active`,e===t)),Gh())};function og(){document.querySelectorAll(`[data-category]`).forEach(e=>e.setAttribute(`aria-pressed`,String((e.dataset.category||null)===Bh)))}var sg=Z(`.legend`);function cg(){let e=sg.scrollWidth-sg.clientWidth;Z(`#themes-back`).disabled=sg.scrollLeft<2,Z(`#themes-forward`).disabled=sg.scrollLeft>=e-2,sg.dataset.fadeLeft=String(sg.scrollLeft>=2),sg.dataset.fadeRight=String(sg.scrollLeft<e-2)}for(let[e,t]of[[`#themes-back`,-1],[`#themes-forward`,1]])Z(e).onclick=()=>sg.scrollBy({left:t*sg.clientWidth*.75,behavior:matchMedia(`(prefers-reduced-motion: reduce)`).matches?`instant`:`smooth`});sg.addEventListener(`scroll`,cg,{passive:!0}),new ResizeObserver(cg).observe(sg),Z(`.legend`).onclick=e=>{let t=e.target.closest(`[data-category]`);t&&(Bh=!t.dataset.category||Bh===t.dataset.category?null:t.dataset.category,og(),Gh())},Z(`#previous`).onclick=()=>{rg(!1),tg(-1)},Z(`#next`).onclick=()=>{rg(!1),tg(1)},Z(`#play`).onclick=()=>{let e=Uh();e.length&&(!Vh&&$===e.at(-1)&&Xh(e[0]),rg(!Vh))},Z(`#year-slider`).oninput=e=>{rg(!1);let t=Uh()[Number(e.target.value)];t&&$h.focus(t.id)},Z(`#year-slider`).onkeydown=e=>{[`ArrowRight`,`ArrowUp`,`ArrowLeft`,`ArrowDown`].includes(e.key)&&(e.preventDefault(),rg(!1),tg(e.key===`ArrowRight`||e.key===`ArrowUp`?1:-1))},Z(`#index-open`).onclick=()=>{dg(),ig(`#index-dialog`),Z(`#search`).focus()},Z(`#about-open`).onclick=()=>ig(`#about-dialog`),Z(`#sources-open`).onclick=()=>{fg(),ig(`#sources-dialog`)},Z(`#film-open`).onclick=()=>{ig(`#film-dialog`);let e=Z(`#film`);e.hasAttribute(`src`)||e.setAttribute(`src`,wh(`film/index.html`))},document.querySelectorAll(`dialog`).forEach(e=>{e.querySelector(`.close-dialog`).onclick=()=>e.close(),e.addEventListener(`click`,t=>{if(t.target===e){let n=e.getBoundingClientRect();(t.clientX<n.left||t.clientX>n.right||t.clientY<n.top||t.clientY>n.bottom)&&e.close()}})}),Z(`#film-dialog`).addEventListener(`close`,()=>{Z(`#film`).pause()}),Z(`#detail-dialog`).addEventListener(`close`,()=>{location.hash.startsWith(`#story/`)&&history.replaceState(null,``,`#${$.id}`)});function lg(){let e=$,t=Lh[e.id],n=Uh(),r=n[n.indexOf(e)+1],i=kh.get(e.id),a=[e.body,...Oh[e.id]||[]],o=Math.max(1,Math.ceil((i?.wordCount||a.join(` `).split(/\s+/).length)/220)),s=i?i.sections.map((e,t)=>`${t?`<h3>`+Q(e.heading)+`</h3>`:``}${e.paragraphs.map(e=>`<p>`+Q(e)+`</p>`).join(``)}`).join(``):a.map(e=>`<p>`+Q(e)+`</p>`).join(``),c=e.presidency?`<section aria-label="Presidency at a glance"><h3>Presidency at a glance</h3><dl class="milestone-facts">${e.facts?.map(e=>`<div><dt>${Q(e.label)}</dt><dd>${Q(e.value)}</dd></div>`).join(``)||``}</dl></section>`:``,l=i?.source,u=l?`<p>Reading selected from Wikipedia contributors, <a href="${Q(l.url)}" target="_blank" rel="noreferrer">${Q(l.title)}</a> (<a href="https://en.wikipedia.org/w/index.php?oldid=${l.revision}" target="_blank" rel="noreferrer">source revision and references</a>). ${Q(l.note)} Available under <a href="${Q(l.licenseUrl)}" target="_blank" rel="noreferrer">${Q(l.license)}</a>.</p>`:Yh(e);Z(`#detail-content`).innerHTML=`${qh(t)?`<figure class="detail-figure"><img src="${qh(t)}" alt="${Q(t.title)}"><figcaption>${e.imageNote}</figcaption></figure>`:`<figure class="detail-figure"><div class="detail-image-placeholder">No verified historical image available</div></figure>`}<div class="detail-reading"><div class="detail-meta"><span style="color:${lh[e.category]}">${e.category}</span><span>${uh(e.year,e.approximate)}</span><span>${i?o+` min read`:`Loading full story…`}</span></div><h2>${Q(e.title)}</h2><p class="detail-place">${Q(e.place)}</p>${c}<div class="detail-prose">${s}</div>${l?`<p class="reading-credit">Abridged source reading · Wikipedia contributors · CC BY-SA 4.0. <a href="#reading-sources">Attribution & references</a></p>`:``}<details id="reading-sources" class="detail-sources"><summary>Sources & image credit</summary>${e.sources?.map(e=>`<p><a href="${Q(e.url)}" target="_blank" rel="noreferrer">${Q(e.title)}</a></p>`).join(``)||``}${u}${t?.source?`<p>Image: ${Q(Ih(t.metadata?.Artist?.value||`Creator listed on source page`))}. ${Q(Ih(t.metadata?.LicenseShortName?.value||``))}. <a href="${Q(t.source)}" target="_blank" rel="noreferrer">Original image and license</a>.</p>`:``}</details></div>`,Z(`#detail-navigation`).innerHTML=`<a href="#${e.id}">${Fh(`back`)}<span>Back to the globe</span></a>${r?`<a href="#story/${r.id}"><span>Next story<small>${Q(r.title)}</small></span>${Fh(`next`)}</a>`:`<a href="#story/${n[0]?.id||e.id}">Return to the beginning ${Fh(`next`)}</a>`}`;let d=Z(`.reading-credit a`);d&&(d.onclick=e=>{e.preventDefault(),Z(`#reading-sources`).open=!0,Z(`#reading-sources`).scrollIntoView({block:`start`})}),i||jh(e.id).then(()=>{$.id===e.id&&Z(`#detail-dialog`).open&&lg()}).catch(()=>{if($.id===e.id){let e=Z(`#detail-content .detail-meta span:last-child`);e&&(e.textContent=`Full story unavailable — try reopening`)}})}function ug(){let e=location.hash.startsWith(`#story/`),t=sh.find(e=>e.id===location.hash.replace(/^#(?:story\/)?/,``));if(!t)return;Uh().includes(t)||(Kh(),Rh===`us`&&!Nh(t)&&(Rh=`world`,Wh())),Xh(t,!1);let n=Z(`#detail-dialog`);e?(lg(),rg(!1),n.open||n.showModal(),Z(`#detail-content`).scrollTop=0):n.open&&n.close()}function dg(){let e=Z(`#search`).value.toLowerCase().trim(),t=Z(`#region`).value,n=Uh().filter(n=>(t===`all`||n.region===t)&&`${n.title} ${n.place} ${n.body} ${n.category} ${uh(n.year)}`.toLowerCase().includes(e));Z(`#results-count`).textContent=`${n.length} ${n.length===1?`milestone`:`milestones`} found`,Z(`#results`).innerHTML=n.length?n.map(e=>`<button class="result" data-id="${e.id}"><span class="result-year">${uh(e.year,e.approximate)}</span><span><strong>${e.title}</strong><small>${e.place}</small></span><i style="background:${lh[e.category]}"></i>${Fh(`next`)}</button>`).join(``):`<p class="empty-state">No milestones match. Try another search or region, or change the history, theme, and era filters.</p>`}Z(`#search`).oninput=dg,Z(`#region`).onchange=dg,Z(`#results`).onclick=e=>{let t=e.target.closest(`[data-id]`)?.dataset.id;t&&(Xh(sh.find(e=>e.id===t)),Z(`#index-dialog`).close())};function fg(){Z(`#sources-list`).innerHTML=sh.map(e=>{let t=Lh[e.id];return`<section class="source-entry"><h3>${e.title}</h3>${Yh(e)}<a href="${Jh(e)}" target="_blank" rel="noreferrer">Background reading ${Fh(`arrow`)}</a>${t?.source?`<p>${Q(Ih(t.metadata?.Artist?.value||`Creator listed on source page`))} · ${Q(Ih(t.metadata?.LicenseShortName?.value||`See image source for license`))}</p><a href="${Q(t.source)}" target="_blank" rel="noreferrer">Original image and license</a>`:`<p>Image provenance: see the linked article and its image description page.</p>`}</section>`}).join(``)}window.addEventListener(`keydown`,e=>{document.querySelector(`dialog[open]`)||e.target.closest(`input,select,textarea,button,a`)||(e.key===`ArrowRight`&&(rg(!1),tg(1)),e.key===`ArrowLeft`&&(rg(!1),tg(-1)))}),window.addEventListener(`hashchange`,ug),window.addEventListener(`resize`,()=>eg(!1)),document.addEventListener(`visibilitychange`,()=>{document.hidden&&rg(!1)}),Z(`#globe`).addEventListener(`area-change`,e=>{let t=e.detail;Z(`#area-description`).textContent=t?t.label+` · `+t.kind:``}),Z(`#globe`).addEventListener(`globe-interaction`,()=>rg(!1)),Wh(),Qh(),eg(),location.hash||history.replaceState(null,``,`#${$.id}`),ug();try{Hh=new Eh(Z(`#globe`),(e,t)=>ag(t||[e])),Z(`#detail-dialog`).open?Hh.select($,!0):Hh.startIntro($),Hh.filter(new Set(Uh().map(e=>e.id))),Hh.ready.then(()=>Z(`#globe-loading`).remove())}catch(e){Z(`#globe-loading`).textContent=`The interactive globe needs WebGL. You can still explore every story using the timeline.`,console.warn(`Globe unavailable`,e)}Z(`#zoom-in`).onclick=()=>Hh?.zoom(.88),Z(`#zoom-out`).onclick=()=>Hh?.zoom(1.12),Z(`#recenter`).onclick=()=>Hh?.reset();var pg=performance.now();function mg(e){let t=Math.min((e-pg)/1e3,.1);pg=e,document.hidden||(Hh?.tick(t,e/1e3),$h.tick(t)),requestAnimationFrame(mg)}requestAnimationFrame(mg);try{let e=await fetch(Ch(`manifest.json`));if(!e.ok)throw Error(`Asset manifest unavailable`);Lh=await e.json(),Qh(),Z(`#detail-dialog`).open&&lg()}catch{let e=Z(`.image-loading`);e&&(e.textContent=`Image collection unavailable. Read the story to explore this milestone.`)}