import{aJ as fe,a as ye,a4 as Ae,i as Y,G as Te,n as Ee}from"./app-JmgyQoR0.js";import{F as se}from"./link-UF1gGYGD.js";import{F as Be}from"./section-yxO0GkeZ.js";import{b as Re,a as ce,$ as Le,c as ue,D as re,g as ke,h as j,i as Fe,j as $,l as X,u as Z,q as Ve,t as te,H as Se,E as q,z as b,F as De,G as He,x as Ce,K as oe,n as We,I as Oe,J as Ge}from"./vue-y3KLWBaS.js";const Ne="/assets/about-icon-dark-5V9EFIX6.png",ze="/assets/about-icon-light-yI3Ms5lV.png";var Pe={exports:{}};/*!
 * matter-js 0.18.0 by @liabru
 * http://brm.io/matter-js/
 * License MIT
 * 
 * The MIT License (MIT)
 * 
 * Copyright (c) Liam Brummitt and contributors.
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */(function(O,K){(function(R,x){O.exports=x()})(fe,function(){return function(T){var R={};function x(e){if(R[e])return R[e].exports;var l=R[e]={i:e,l:!1,exports:{}};return T[e].call(l.exports,l,l.exports,x),l.l=!0,l.exports}return x.m=T,x.c=R,x.d=function(e,l,o){x.o(e,l)||Object.defineProperty(e,l,{enumerable:!0,get:o})},x.r=function(e){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},x.t=function(e,l){if(l&1&&(e=x(e)),l&8||l&4&&typeof e=="object"&&e&&e.__esModule)return e;var o=Object.create(null);if(x.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),l&2&&typeof e!="string")for(var s in e)x.d(o,s,(function(v){return e[v]}).bind(null,s));return o},x.n=function(e){var l=e&&e.__esModule?function(){return e.default}:function(){return e};return x.d(l,"a",l),l},x.o=function(e,l){return Object.prototype.hasOwnProperty.call(e,l)},x.p="",x(x.s=21)}([function(T,R){var x={};T.exports=x,function(){x._nextId=0,x._seed=0,x._nowStartTime=+new Date,x._warnedOnce={},x._decomp=null,x.extend=function(l,o){var s,v;typeof o=="boolean"?(s=2,v=o):(s=1,v=!0);for(var r=s;r<arguments.length;r++){var f=arguments[r];if(f)for(var n in f)v&&f[n]&&f[n].constructor===Object&&(!l[n]||l[n].constructor===Object)?(l[n]=l[n]||{},x.extend(l[n],v,f[n])):l[n]=f[n]}return l},x.clone=function(l,o){return x.extend({},o,l)},x.keys=function(l){if(Object.keys)return Object.keys(l);var o=[];for(var s in l)o.push(s);return o},x.values=function(l){var o=[];if(Object.keys){for(var s=Object.keys(l),v=0;v<s.length;v++)o.push(l[s[v]]);return o}for(var r in l)o.push(l[r]);return o},x.get=function(l,o,s,v){o=o.split(".").slice(s,v);for(var r=0;r<o.length;r+=1)l=l[o[r]];return l},x.set=function(l,o,s,v,r){var f=o.split(".").slice(v,r);return x.get(l,o,0,-1)[f[f.length-1]]=s,s},x.shuffle=function(l){for(var o=l.length-1;o>0;o--){var s=Math.floor(x.random()*(o+1)),v=l[o];l[o]=l[s],l[s]=v}return l},x.choose=function(l){return l[Math.floor(x.random()*l.length)]},x.isElement=function(l){return typeof HTMLElement!="undefined"?l instanceof HTMLElement:!!(l&&l.nodeType&&l.nodeName)},x.isArray=function(l){return Object.prototype.toString.call(l)==="[object Array]"},x.isFunction=function(l){return typeof l=="function"},x.isPlainObject=function(l){return typeof l=="object"&&l.constructor===Object},x.isString=function(l){return toString.call(l)==="[object String]"},x.clamp=function(l,o,s){return l<o?o:l>s?s:l},x.sign=function(l){return l<0?-1:1},x.now=function(){if(typeof window!="undefined"&&window.performance){if(window.performance.now)return window.performance.now();if(window.performance.webkitNow)return window.performance.webkitNow()}return Date.now?Date.now():new Date-x._nowStartTime},x.random=function(l,o){return l=typeof l!="undefined"?l:0,o=typeof o!="undefined"?o:1,l+e()*(o-l)};var e=function(){return x._seed=(x._seed*9301+49297)%233280,x._seed/233280};x.colorToNumber=function(l){return l=l.replace("#",""),l.length==3&&(l=l.charAt(0)+l.charAt(0)+l.charAt(1)+l.charAt(1)+l.charAt(2)+l.charAt(2)),parseInt(l,16)},x.logLevel=1,x.log=function(){console&&x.logLevel>0&&x.logLevel<=3&&console.log.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},x.info=function(){console&&x.logLevel>0&&x.logLevel<=2&&console.info.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},x.warn=function(){console&&x.logLevel>0&&x.logLevel<=3&&console.warn.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},x.warnOnce=function(){var l=Array.prototype.slice.call(arguments).join(" ");x._warnedOnce[l]||(x.warn(l),x._warnedOnce[l]=!0)},x.deprecated=function(l,o,s){l[o]=x.chain(function(){x.warnOnce("🔅 deprecated 🔅",s)},l[o])},x.nextId=function(){return x._nextId++},x.indexOf=function(l,o){if(l.indexOf)return l.indexOf(o);for(var s=0;s<l.length;s++)if(l[s]===o)return s;return-1},x.map=function(l,o){if(l.map)return l.map(o);for(var s=[],v=0;v<l.length;v+=1)s.push(o(l[v]));return s},x.topologicalSort=function(l){var o=[],s=[],v=[];for(var r in l)!s[r]&&!v[r]&&x._topologicalSort(r,s,v,l,o);return o},x._topologicalSort=function(l,o,s,v,r){var f=v[l]||[];s[l]=!0;for(var n=0;n<f.length;n+=1){var t=f[n];s[t]||o[t]||x._topologicalSort(t,o,s,v,r)}s[l]=!1,o[l]=!0,r.push(l)},x.chain=function(){for(var l=[],o=0;o<arguments.length;o+=1){var s=arguments[o];s._chained?l.push.apply(l,s._chained):l.push(s)}var v=function(){for(var r,f=new Array(arguments.length),n=0,t=arguments.length;n<t;n++)f[n]=arguments[n];for(n=0;n<l.length;n+=1){var i=l[n].apply(r,f);typeof i!="undefined"&&(r=i)}return r};return v._chained=l,v},x.chainPathBefore=function(l,o,s){return x.set(l,o,x.chain(s,x.get(l,o)))},x.chainPathAfter=function(l,o,s){return x.set(l,o,x.chain(x.get(l,o),s))},x.setDecomp=function(l){x._decomp=l},x.getDecomp=function(){var l=x._decomp;try{!l&&typeof window!="undefined"&&(l=window.decomp),!l&&typeof fe!="undefined"&&(l=fe.decomp)}catch(o){l=null}return l}}()},function(T,R){var x={};T.exports=x,function(){x.create=function(e){var l={min:{x:0,y:0},max:{x:0,y:0}};return e&&x.update(l,e),l},x.update=function(e,l,o){e.min.x=1/0,e.max.x=-1/0,e.min.y=1/0,e.max.y=-1/0;for(var s=0;s<l.length;s++){var v=l[s];v.x>e.max.x&&(e.max.x=v.x),v.x<e.min.x&&(e.min.x=v.x),v.y>e.max.y&&(e.max.y=v.y),v.y<e.min.y&&(e.min.y=v.y)}o&&(o.x>0?e.max.x+=o.x:e.min.x+=o.x,o.y>0?e.max.y+=o.y:e.min.y+=o.y)},x.contains=function(e,l){return l.x>=e.min.x&&l.x<=e.max.x&&l.y>=e.min.y&&l.y<=e.max.y},x.overlaps=function(e,l){return e.min.x<=l.max.x&&e.max.x>=l.min.x&&e.max.y>=l.min.y&&e.min.y<=l.max.y},x.translate=function(e,l){e.min.x+=l.x,e.max.x+=l.x,e.min.y+=l.y,e.max.y+=l.y},x.shift=function(e,l){var o=e.max.x-e.min.x,s=e.max.y-e.min.y;e.min.x=l.x,e.max.x=l.x+o,e.min.y=l.y,e.max.y=l.y+s}}()},function(T,R){var x={};T.exports=x,function(){x.create=function(e,l){return{x:e||0,y:l||0}},x.clone=function(e){return{x:e.x,y:e.y}},x.magnitude=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},x.magnitudeSquared=function(e){return e.x*e.x+e.y*e.y},x.rotate=function(e,l,o){var s=Math.cos(l),v=Math.sin(l);o||(o={});var r=e.x*s-e.y*v;return o.y=e.x*v+e.y*s,o.x=r,o},x.rotateAbout=function(e,l,o,s){var v=Math.cos(l),r=Math.sin(l);s||(s={});var f=o.x+((e.x-o.x)*v-(e.y-o.y)*r);return s.y=o.y+((e.x-o.x)*r+(e.y-o.y)*v),s.x=f,s},x.normalise=function(e){var l=x.magnitude(e);return l===0?{x:0,y:0}:{x:e.x/l,y:e.y/l}},x.dot=function(e,l){return e.x*l.x+e.y*l.y},x.cross=function(e,l){return e.x*l.y-e.y*l.x},x.cross3=function(e,l,o){return(l.x-e.x)*(o.y-e.y)-(l.y-e.y)*(o.x-e.x)},x.add=function(e,l,o){return o||(o={}),o.x=e.x+l.x,o.y=e.y+l.y,o},x.sub=function(e,l,o){return o||(o={}),o.x=e.x-l.x,o.y=e.y-l.y,o},x.mult=function(e,l){return{x:e.x*l,y:e.y*l}},x.div=function(e,l){return{x:e.x/l,y:e.y/l}},x.perp=function(e,l){return l=l===!0?-1:1,{x:l*-e.y,y:l*e.x}},x.neg=function(e){return{x:-e.x,y:-e.y}},x.angle=function(e,l){return Math.atan2(l.y-e.y,l.x-e.x)},x._temp=[x.create(),x.create(),x.create(),x.create(),x.create(),x.create()]}()},function(T,R,x){var e={};T.exports=e;var l=x(2),o=x(0);(function(){e.create=function(s,v){for(var r=[],f=0;f<s.length;f++){var n=s[f],t={x:n.x,y:n.y,index:f,body:v,isInternal:!1};r.push(t)}return r},e.fromPath=function(s,v){var r=/L?\s*([-\d.e]+)[\s,]*([-\d.e]+)*/ig,f=[];return s.replace(r,function(n,t,i){f.push({x:parseFloat(t),y:parseFloat(i)})}),e.create(f,v)},e.centre=function(s){for(var v=e.area(s,!0),r={x:0,y:0},f,n,t,i=0;i<s.length;i++)t=(i+1)%s.length,f=l.cross(s[i],s[t]),n=l.mult(l.add(s[i],s[t]),f),r=l.add(r,n);return l.div(r,6*v)},e.mean=function(s){for(var v={x:0,y:0},r=0;r<s.length;r++)v.x+=s[r].x,v.y+=s[r].y;return l.div(v,s.length)},e.area=function(s,v){for(var r=0,f=s.length-1,n=0;n<s.length;n++)r+=(s[f].x-s[n].x)*(s[f].y+s[n].y),f=n;return v?r/2:Math.abs(r)/2},e.inertia=function(s,v){for(var r=0,f=0,n=s,t,i,a=0;a<n.length;a++)i=(a+1)%n.length,t=Math.abs(l.cross(n[i],n[a])),r+=t*(l.dot(n[i],n[i])+l.dot(n[i],n[a])+l.dot(n[a],n[a])),f+=t;return v/6*(r/f)},e.translate=function(s,v,r){r=typeof r!="undefined"?r:1;var f=s.length,n=v.x*r,t=v.y*r,i;for(i=0;i<f;i++)s[i].x+=n,s[i].y+=t;return s},e.rotate=function(s,v,r){if(v!==0){var f=Math.cos(v),n=Math.sin(v),t=r.x,i=r.y,a=s.length,u,g,C,P;for(P=0;P<a;P++)u=s[P],g=u.x-t,C=u.y-i,u.x=t+(g*f-C*n),u.y=i+(g*n+C*f);return s}},e.contains=function(s,v){for(var r=v.x,f=v.y,n=s.length,t=s[n-1],i,a=0;a<n;a++){if(i=s[a],(r-t.x)*(i.y-t.y)+(f-t.y)*(t.x-i.x)>0)return!1;t=i}return!0},e.scale=function(s,v,r,f){if(v===1&&r===1)return s;f=f||e.centre(s);for(var n,t,i=0;i<s.length;i++)n=s[i],t=l.sub(n,f),s[i].x=f.x+t.x*v,s[i].y=f.y+t.y*r;return s},e.chamfer=function(s,v,r,f,n){typeof v=="number"?v=[v]:v=v||[8],r=typeof r!="undefined"?r:-1,f=f||2,n=n||14;for(var t=[],i=0;i<s.length;i++){var a=s[i-1>=0?i-1:s.length-1],u=s[i],g=s[(i+1)%s.length],C=v[i<v.length?i:v.length-1];if(C===0){t.push(u);continue}var P=l.normalise({x:u.y-a.y,y:a.x-u.x}),c=l.normalise({x:g.y-u.y,y:u.x-g.x}),h=Math.sqrt(2*Math.pow(C,2)),m=l.mult(o.clone(P),C),p=l.normalise(l.mult(l.add(P,c),.5)),S=l.sub(u,l.mult(p,h)),y=r;r===-1&&(y=Math.pow(C,.32)*1.75),y=o.clamp(y,f,n),y%2===1&&(y+=1);for(var w=Math.acos(l.dot(P,c)),d=w/y,M=0;M<y;M++)t.push(l.add(l.rotate(m,d*M),S))}return t},e.clockwiseSort=function(s){var v=e.mean(s);return s.sort(function(r,f){return l.angle(v,r)-l.angle(v,f)}),s},e.isConvex=function(s){var v=0,r=s.length,f,n,t,i;if(r<3)return null;for(f=0;f<r;f++)if(n=(f+1)%r,t=(f+2)%r,i=(s[n].x-s[f].x)*(s[t].y-s[n].y),i-=(s[n].y-s[f].y)*(s[t].x-s[n].x),i<0?v|=1:i>0&&(v|=2),v===3)return!1;return v!==0?!0:null},e.hull=function(s){var v=[],r=[],f,n;for(s=s.slice(0),s.sort(function(t,i){var a=t.x-i.x;return a!==0?a:t.y-i.y}),n=0;n<s.length;n+=1){for(f=s[n];r.length>=2&&l.cross3(r[r.length-2],r[r.length-1],f)<=0;)r.pop();r.push(f)}for(n=s.length-1;n>=0;n-=1){for(f=s[n];v.length>=2&&l.cross3(v[v.length-2],v[v.length-1],f)<=0;)v.pop();v.push(f)}return v.pop(),r.pop(),v.concat(r)}})()},function(T,R,x){var e={};T.exports=e;var l=x(0);(function(){e.on=function(o,s,v){for(var r=s.split(" "),f,n=0;n<r.length;n++)f=r[n],o.events=o.events||{},o.events[f]=o.events[f]||[],o.events[f].push(v);return v},e.off=function(o,s,v){if(!s){o.events={};return}typeof s=="function"&&(v=s,s=l.keys(o.events).join(" "));for(var r=s.split(" "),f=0;f<r.length;f++){var n=o.events[r[f]],t=[];if(v&&n)for(var i=0;i<n.length;i++)n[i]!==v&&t.push(n[i]);o.events[r[f]]=t}},e.trigger=function(o,s,v){var r,f,n,t,i=o.events;if(i&&l.keys(i).length>0){v||(v={}),r=s.split(" ");for(var a=0;a<r.length;a++)if(f=r[a],n=i[f],n){t=l.clone(v,!1),t.name=f,t.source=o;for(var u=0;u<n.length;u++)n[u].apply(o,[t])}}}})()},function(T,R,x){var e={};T.exports=e;var l=x(4),o=x(0),s=x(1),v=x(6);(function(){e.create=function(r){return o.extend({id:o.nextId(),type:"composite",parent:null,isModified:!1,bodies:[],constraints:[],composites:[],label:"Composite",plugin:{},cache:{allBodies:null,allConstraints:null,allComposites:null}},r)},e.setModified=function(r,f,n,t){if(r.isModified=f,f&&r.cache&&(r.cache.allBodies=null,r.cache.allConstraints=null,r.cache.allComposites=null),n&&r.parent&&e.setModified(r.parent,f,n,t),t)for(var i=0;i<r.composites.length;i++){var a=r.composites[i];e.setModified(a,f,n,t)}},e.add=function(r,f){var n=[].concat(f);l.trigger(r,"beforeAdd",{object:f});for(var t=0;t<n.length;t++){var i=n[t];switch(i.type){case"body":if(i.parent!==i){o.warn("Composite.add: skipped adding a compound body part (you must add its parent instead)");break}e.addBody(r,i);break;case"constraint":e.addConstraint(r,i);break;case"composite":e.addComposite(r,i);break;case"mouseConstraint":e.addConstraint(r,i.constraint);break}}return l.trigger(r,"afterAdd",{object:f}),r},e.remove=function(r,f,n){var t=[].concat(f);l.trigger(r,"beforeRemove",{object:f});for(var i=0;i<t.length;i++){var a=t[i];switch(a.type){case"body":e.removeBody(r,a,n);break;case"constraint":e.removeConstraint(r,a,n);break;case"composite":e.removeComposite(r,a,n);break;case"mouseConstraint":e.removeConstraint(r,a.constraint);break}}return l.trigger(r,"afterRemove",{object:f}),r},e.addComposite=function(r,f){return r.composites.push(f),f.parent=r,e.setModified(r,!0,!0,!1),r},e.removeComposite=function(r,f,n){var t=o.indexOf(r.composites,f);if(t!==-1&&e.removeCompositeAt(r,t),n)for(var i=0;i<r.composites.length;i++)e.removeComposite(r.composites[i],f,!0);return r},e.removeCompositeAt=function(r,f){return r.composites.splice(f,1),e.setModified(r,!0,!0,!1),r},e.addBody=function(r,f){return r.bodies.push(f),e.setModified(r,!0,!0,!1),r},e.removeBody=function(r,f,n){var t=o.indexOf(r.bodies,f);if(t!==-1&&e.removeBodyAt(r,t),n)for(var i=0;i<r.composites.length;i++)e.removeBody(r.composites[i],f,!0);return r},e.removeBodyAt=function(r,f){return r.bodies.splice(f,1),e.setModified(r,!0,!0,!1),r},e.addConstraint=function(r,f){return r.constraints.push(f),e.setModified(r,!0,!0,!1),r},e.removeConstraint=function(r,f,n){var t=o.indexOf(r.constraints,f);if(t!==-1&&e.removeConstraintAt(r,t),n)for(var i=0;i<r.composites.length;i++)e.removeConstraint(r.composites[i],f,!0);return r},e.removeConstraintAt=function(r,f){return r.constraints.splice(f,1),e.setModified(r,!0,!0,!1),r},e.clear=function(r,f,n){if(n)for(var t=0;t<r.composites.length;t++)e.clear(r.composites[t],f,!0);return f?r.bodies=r.bodies.filter(function(i){return i.isStatic}):r.bodies.length=0,r.constraints.length=0,r.composites.length=0,e.setModified(r,!0,!0,!1),r},e.allBodies=function(r){if(r.cache&&r.cache.allBodies)return r.cache.allBodies;for(var f=[].concat(r.bodies),n=0;n<r.composites.length;n++)f=f.concat(e.allBodies(r.composites[n]));return r.cache&&(r.cache.allBodies=f),f},e.allConstraints=function(r){if(r.cache&&r.cache.allConstraints)return r.cache.allConstraints;for(var f=[].concat(r.constraints),n=0;n<r.composites.length;n++)f=f.concat(e.allConstraints(r.composites[n]));return r.cache&&(r.cache.allConstraints=f),f},e.allComposites=function(r){if(r.cache&&r.cache.allComposites)return r.cache.allComposites;for(var f=[].concat(r.composites),n=0;n<r.composites.length;n++)f=f.concat(e.allComposites(r.composites[n]));return r.cache&&(r.cache.allComposites=f),f},e.get=function(r,f,n){var t,i;switch(n){case"body":t=e.allBodies(r);break;case"constraint":t=e.allConstraints(r);break;case"composite":t=e.allComposites(r).concat(r);break}return t?(i=t.filter(function(a){return a.id.toString()===f.toString()}),i.length===0?null:i[0]):null},e.move=function(r,f,n){return e.remove(r,f),e.add(n,f),r},e.rebase=function(r){for(var f=e.allBodies(r).concat(e.allConstraints(r)).concat(e.allComposites(r)),n=0;n<f.length;n++)f[n].id=o.nextId();return r},e.translate=function(r,f,n){for(var t=n?e.allBodies(r):r.bodies,i=0;i<t.length;i++)v.translate(t[i],f);return r},e.rotate=function(r,f,n,t){for(var i=Math.cos(f),a=Math.sin(f),u=t?e.allBodies(r):r.bodies,g=0;g<u.length;g++){var C=u[g],P=C.position.x-n.x,c=C.position.y-n.y;v.setPosition(C,{x:n.x+(P*i-c*a),y:n.y+(P*a+c*i)}),v.rotate(C,f)}return r},e.scale=function(r,f,n,t,i){for(var a=i?e.allBodies(r):r.bodies,u=0;u<a.length;u++){var g=a[u],C=g.position.x-t.x,P=g.position.y-t.y;v.setPosition(g,{x:t.x+C*f,y:t.y+P*n}),v.scale(g,f,n)}return r},e.bounds=function(r){for(var f=e.allBodies(r),n=[],t=0;t<f.length;t+=1){var i=f[t];n.push(i.bounds.min,i.bounds.max)}return s.create(n)}})()},function(T,R,x){var e={};T.exports=e;var l=x(3),o=x(2),s=x(7);x(16);var v=x(0),r=x(1),f=x(11);(function(){e._inertiaScale=4,e._nextCollidingGroupId=1,e._nextNonCollidingGroupId=-1,e._nextCategory=1,e.create=function(t){var i={id:v.nextId(),type:"body",label:"Body",parts:[],plugin:{},angle:0,vertices:l.fromPath("L 0 0 L 40 0 L 40 40 L 0 40"),position:{x:0,y:0},force:{x:0,y:0},torque:0,positionImpulse:{x:0,y:0},constraintImpulse:{x:0,y:0,angle:0},totalContacts:0,speed:0,angularSpeed:0,velocity:{x:0,y:0},angularVelocity:0,isSensor:!1,isStatic:!1,isSleeping:!1,motion:0,sleepThreshold:60,density:.001,restitution:0,friction:.1,frictionStatic:.5,frictionAir:.01,collisionFilter:{category:1,mask:4294967295,group:0},slop:.05,timeScale:1,render:{visible:!0,opacity:1,strokeStyle:null,fillStyle:null,lineWidth:null,sprite:{xScale:1,yScale:1,xOffset:0,yOffset:0}},events:null,bounds:null,chamfer:null,circleRadius:0,positionPrev:null,anglePrev:0,parent:null,axes:null,area:0,mass:0,inertia:0,_original:null},a=v.extend(i,t);return n(a,t),a},e.nextGroup=function(t){return t?e._nextNonCollidingGroupId--:e._nextCollidingGroupId++},e.nextCategory=function(){return e._nextCategory=e._nextCategory<<1,e._nextCategory};var n=function(t,i){i=i||{},e.set(t,{bounds:t.bounds||r.create(t.vertices),positionPrev:t.positionPrev||o.clone(t.position),anglePrev:t.anglePrev||t.angle,vertices:t.vertices,parts:t.parts||[t],isStatic:t.isStatic,isSleeping:t.isSleeping,parent:t.parent||t}),l.rotate(t.vertices,t.angle,t.position),f.rotate(t.axes,t.angle),r.update(t.bounds,t.vertices,t.velocity),e.set(t,{axes:i.axes||t.axes,area:i.area||t.area,mass:i.mass||t.mass,inertia:i.inertia||t.inertia});var a=t.isStatic?"#14151f":v.choose(["#f19648","#f5d259","#f55a3c","#063e7b","#ececd1"]),u=t.isStatic?"#555":"#ccc",g=t.isStatic&&t.render.fillStyle===null?1:0;t.render.fillStyle=t.render.fillStyle||a,t.render.strokeStyle=t.render.strokeStyle||u,t.render.lineWidth=t.render.lineWidth||g,t.render.sprite.xOffset+=-(t.bounds.min.x-t.position.x)/(t.bounds.max.x-t.bounds.min.x),t.render.sprite.yOffset+=-(t.bounds.min.y-t.position.y)/(t.bounds.max.y-t.bounds.min.y)};e.set=function(t,i,a){var u;typeof i=="string"&&(u=i,i={},i[u]=a);for(u in i)if(Object.prototype.hasOwnProperty.call(i,u))switch(a=i[u],u){case"isStatic":e.setStatic(t,a);break;case"isSleeping":s.set(t,a);break;case"mass":e.setMass(t,a);break;case"density":e.setDensity(t,a);break;case"inertia":e.setInertia(t,a);break;case"vertices":e.setVertices(t,a);break;case"position":e.setPosition(t,a);break;case"angle":e.setAngle(t,a);break;case"velocity":e.setVelocity(t,a);break;case"angularVelocity":e.setAngularVelocity(t,a);break;case"parts":e.setParts(t,a);break;case"centre":e.setCentre(t,a);break;default:t[u]=a}},e.setStatic=function(t,i){for(var a=0;a<t.parts.length;a++){var u=t.parts[a];u.isStatic=i,i?(u._original={restitution:u.restitution,friction:u.friction,mass:u.mass,inertia:u.inertia,density:u.density,inverseMass:u.inverseMass,inverseInertia:u.inverseInertia},u.restitution=0,u.friction=1,u.mass=u.inertia=u.density=1/0,u.inverseMass=u.inverseInertia=0,u.positionPrev.x=u.position.x,u.positionPrev.y=u.position.y,u.anglePrev=u.angle,u.angularVelocity=0,u.speed=0,u.angularSpeed=0,u.motion=0):u._original&&(u.restitution=u._original.restitution,u.friction=u._original.friction,u.mass=u._original.mass,u.inertia=u._original.inertia,u.density=u._original.density,u.inverseMass=u._original.inverseMass,u.inverseInertia=u._original.inverseInertia,u._original=null)}},e.setMass=function(t,i){var a=t.inertia/(t.mass/6);t.inertia=a*(i/6),t.inverseInertia=1/t.inertia,t.mass=i,t.inverseMass=1/t.mass,t.density=t.mass/t.area},e.setDensity=function(t,i){e.setMass(t,i*t.area),t.density=i},e.setInertia=function(t,i){t.inertia=i,t.inverseInertia=1/t.inertia},e.setVertices=function(t,i){i[0].body===t?t.vertices=i:t.vertices=l.create(i,t),t.axes=f.fromVertices(t.vertices),t.area=l.area(t.vertices),e.setMass(t,t.density*t.area);var a=l.centre(t.vertices);l.translate(t.vertices,a,-1),e.setInertia(t,e._inertiaScale*l.inertia(t.vertices,t.mass)),l.translate(t.vertices,t.position),r.update(t.bounds,t.vertices,t.velocity)},e.setParts=function(t,i,a){var u;for(i=i.slice(0),t.parts.length=0,t.parts.push(t),t.parent=t,u=0;u<i.length;u++){var g=i[u];g!==t&&(g.parent=t,t.parts.push(g))}if(t.parts.length!==1){if(a=typeof a!="undefined"?a:!0,a){var C=[];for(u=0;u<i.length;u++)C=C.concat(i[u].vertices);l.clockwiseSort(C);var P=l.hull(C),c=l.centre(P);e.setVertices(t,P),l.translate(t.vertices,c)}var h=e._totalProperties(t);t.area=h.area,t.parent=t,t.position.x=h.centre.x,t.position.y=h.centre.y,t.positionPrev.x=h.centre.x,t.positionPrev.y=h.centre.y,e.setMass(t,h.mass),e.setInertia(t,h.inertia),e.setPosition(t,h.centre)}},e.setCentre=function(t,i,a){a?(t.positionPrev.x+=i.x,t.positionPrev.y+=i.y,t.position.x+=i.x,t.position.y+=i.y):(t.positionPrev.x=i.x-(t.position.x-t.positionPrev.x),t.positionPrev.y=i.y-(t.position.y-t.positionPrev.y),t.position.x=i.x,t.position.y=i.y)},e.setPosition=function(t,i){var a=o.sub(i,t.position);t.positionPrev.x+=a.x,t.positionPrev.y+=a.y;for(var u=0;u<t.parts.length;u++){var g=t.parts[u];g.position.x+=a.x,g.position.y+=a.y,l.translate(g.vertices,a),r.update(g.bounds,g.vertices,t.velocity)}},e.setAngle=function(t,i){var a=i-t.angle;t.anglePrev+=a;for(var u=0;u<t.parts.length;u++){var g=t.parts[u];g.angle+=a,l.rotate(g.vertices,a,t.position),f.rotate(g.axes,a),r.update(g.bounds,g.vertices,t.velocity),u>0&&o.rotateAbout(g.position,a,t.position,g.position)}},e.setVelocity=function(t,i){t.positionPrev.x=t.position.x-i.x,t.positionPrev.y=t.position.y-i.y,t.velocity.x=i.x,t.velocity.y=i.y,t.speed=o.magnitude(t.velocity)},e.setAngularVelocity=function(t,i){t.anglePrev=t.angle-i,t.angularVelocity=i,t.angularSpeed=Math.abs(t.angularVelocity)},e.translate=function(t,i){e.setPosition(t,o.add(t.position,i))},e.rotate=function(t,i,a){if(!a)e.setAngle(t,t.angle+i);else{var u=Math.cos(i),g=Math.sin(i),C=t.position.x-a.x,P=t.position.y-a.y;e.setPosition(t,{x:a.x+(C*u-P*g),y:a.y+(C*g+P*u)}),e.setAngle(t,t.angle+i)}},e.scale=function(t,i,a,u){var g=0,C=0;u=u||t.position;for(var P=0;P<t.parts.length;P++){var c=t.parts[P];l.scale(c.vertices,i,a,u),c.axes=f.fromVertices(c.vertices),c.area=l.area(c.vertices),e.setMass(c,t.density*c.area),l.translate(c.vertices,{x:-c.position.x,y:-c.position.y}),e.setInertia(c,e._inertiaScale*l.inertia(c.vertices,c.mass)),l.translate(c.vertices,{x:c.position.x,y:c.position.y}),P>0&&(g+=c.area,C+=c.inertia),c.position.x=u.x+(c.position.x-u.x)*i,c.position.y=u.y+(c.position.y-u.y)*a,r.update(c.bounds,c.vertices,t.velocity)}t.parts.length>1&&(t.area=g,t.isStatic||(e.setMass(t,t.density*g),e.setInertia(t,C))),t.circleRadius&&(i===a?t.circleRadius*=i:t.circleRadius=null)},e.update=function(t,i,a,u){var g=Math.pow(i*a*t.timeScale,2),C=1-t.frictionAir*a*t.timeScale,P=t.position.x-t.positionPrev.x,c=t.position.y-t.positionPrev.y;t.velocity.x=P*C*u+t.force.x/t.mass*g,t.velocity.y=c*C*u+t.force.y/t.mass*g,t.positionPrev.x=t.position.x,t.positionPrev.y=t.position.y,t.position.x+=t.velocity.x,t.position.y+=t.velocity.y,t.angularVelocity=(t.angle-t.anglePrev)*C*u+t.torque/t.inertia*g,t.anglePrev=t.angle,t.angle+=t.angularVelocity,t.speed=o.magnitude(t.velocity),t.angularSpeed=Math.abs(t.angularVelocity);for(var h=0;h<t.parts.length;h++){var m=t.parts[h];l.translate(m.vertices,t.velocity),h>0&&(m.position.x+=t.velocity.x,m.position.y+=t.velocity.y),t.angularVelocity!==0&&(l.rotate(m.vertices,t.angularVelocity,t.position),f.rotate(m.axes,t.angularVelocity),h>0&&o.rotateAbout(m.position,t.angularVelocity,t.position,m.position)),r.update(m.bounds,m.vertices,t.velocity)}},e.applyForce=function(t,i,a){t.force.x+=a.x,t.force.y+=a.y;var u={x:i.x-t.position.x,y:i.y-t.position.y};t.torque+=u.x*a.y-u.y*a.x},e._totalProperties=function(t){for(var i={mass:0,area:0,inertia:0,centre:{x:0,y:0}},a=t.parts.length===1?0:1;a<t.parts.length;a++){var u=t.parts[a],g=u.mass!==1/0?u.mass:1;i.mass+=g,i.area+=u.area,i.inertia+=u.inertia,i.centre=o.add(i.centre,o.mult(u.position,g))}return i.centre=o.div(i.centre,i.mass),i}})()},function(T,R,x){var e={};T.exports=e;var l=x(4);(function(){e._motionWakeThreshold=.18,e._motionSleepThreshold=.08,e._minBias=.9,e.update=function(o,s){for(var v=s*s*s,r=0;r<o.length;r++){var f=o[r],n=f.speed*f.speed+f.angularSpeed*f.angularSpeed;if(f.force.x!==0||f.force.y!==0){e.set(f,!1);continue}var t=Math.min(f.motion,n),i=Math.max(f.motion,n);f.motion=e._minBias*t+(1-e._minBias)*i,f.sleepThreshold>0&&f.motion<e._motionSleepThreshold*v?(f.sleepCounter+=1,f.sleepCounter>=f.sleepThreshold&&e.set(f,!0)):f.sleepCounter>0&&(f.sleepCounter-=1)}},e.afterCollisions=function(o,s){for(var v=s*s*s,r=0;r<o.length;r++){var f=o[r];if(f.isActive){var n=f.collision,t=n.bodyA.parent,i=n.bodyB.parent;if(!(t.isSleeping&&i.isSleeping||t.isStatic||i.isStatic)&&(t.isSleeping||i.isSleeping)){var a=t.isSleeping&&!t.isStatic?t:i,u=a===t?i:t;!a.isStatic&&u.motion>e._motionWakeThreshold*v&&e.set(a,!1)}}}},e.set=function(o,s){var v=o.isSleeping;s?(o.isSleeping=!0,o.sleepCounter=o.sleepThreshold,o.positionImpulse.x=0,o.positionImpulse.y=0,o.positionPrev.x=o.position.x,o.positionPrev.y=o.position.y,o.anglePrev=o.angle,o.speed=0,o.angularSpeed=0,o.motion=0,v||l.trigger(o,"sleepStart")):(o.isSleeping=!1,o.sleepCounter=0,v&&l.trigger(o,"sleepEnd"))}})()},function(T,R,x){var e={};T.exports=e;var l=x(3),o=x(9);(function(){var s=[],v={overlap:0,axis:null},r={overlap:0,axis:null};e.create=function(f,n){return{pair:null,collided:!1,bodyA:f,bodyB:n,parentA:f.parent,parentB:n.parent,depth:0,normal:{x:0,y:0},tangent:{x:0,y:0},penetration:{x:0,y:0},supports:[]}},e.collides=function(f,n,t){if(e._overlapAxes(v,f.vertices,n.vertices,f.axes),v.overlap<=0||(e._overlapAxes(r,n.vertices,f.vertices,n.axes),r.overlap<=0))return null;var i=t&&t.table[o.id(f,n)],a;i?a=i.collision:(a=e.create(f,n),a.collided=!0,a.bodyA=f.id<n.id?f:n,a.bodyB=f.id<n.id?n:f,a.parentA=a.bodyA.parent,a.parentB=a.bodyB.parent),f=a.bodyA,n=a.bodyB;var u;v.overlap<r.overlap?u=v:u=r;var g=a.normal,C=a.supports,P=u.axis,c=P.x,h=P.y;c*(n.position.x-f.position.x)+h*(n.position.y-f.position.y)<0?(g.x=c,g.y=h):(g.x=-c,g.y=-h),a.tangent.x=-g.y,a.tangent.y=g.x,a.depth=u.overlap,a.penetration.x=g.x*a.depth,a.penetration.y=g.y*a.depth;var m=e._findSupports(f,n,g,1),p=0;if(l.contains(f.vertices,m[0])&&(C[p++]=m[0]),l.contains(f.vertices,m[1])&&(C[p++]=m[1]),p<2){var S=e._findSupports(n,f,g,-1);l.contains(n.vertices,S[0])&&(C[p++]=S[0]),p<2&&l.contains(n.vertices,S[1])&&(C[p++]=S[1])}return p===0&&(C[p++]=m[0]),C.length=p,a},e._overlapAxes=function(f,n,t,i){var a=n.length,u=t.length,g=n[0].x,C=n[0].y,P=t[0].x,c=t[0].y,h=i.length,m=Number.MAX_VALUE,p=0,S,y,w,d,M,I;for(M=0;M<h;M++){var A=i[M],E=A.x,B=A.y,L=g*E+C*B,F=P*E+c*B,k=L,V=F;for(I=1;I<a;I+=1)d=n[I].x*E+n[I].y*B,d>k?k=d:d<L&&(L=d);for(I=1;I<u;I+=1)d=t[I].x*E+t[I].y*B,d>V?V=d:d<F&&(F=d);if(y=k-F,w=V-L,S=y<w?y:w,S<m&&(m=S,p=M,S<=0))break}f.axis=i[p],f.overlap=m},e._projectToAxis=function(f,n,t){for(var i=n[0].x*t.x+n[0].y*t.y,a=i,u=1;u<n.length;u+=1){var g=n[u].x*t.x+n[u].y*t.y;g>a?a=g:g<i&&(i=g)}f.min=i,f.max=a},e._findSupports=function(f,n,t,i){var a=n.vertices,u=a.length,g=f.position.x,C=f.position.y,P=t.x*i,c=t.y*i,h=Number.MAX_VALUE,m,p,S,y,w;for(w=0;w<u;w+=1)p=a[w],y=P*(g-p.x)+c*(C-p.y),y<h&&(h=y,m=p);return S=a[(u+m.index-1)%u],h=P*(g-S.x)+c*(C-S.y),p=a[(m.index+1)%u],P*(g-p.x)+c*(C-p.y)<h?(s[0]=m,s[1]=p,s):(s[0]=m,s[1]=S,s)}})()},function(T,R,x){var e={};T.exports=e;var l=x(17);(function(){e.create=function(o,s){var v=o.bodyA,r=o.bodyB,f={id:e.id(v,r),bodyA:v,bodyB:r,collision:o,contacts:[],activeContacts:[],separation:0,isActive:!0,confirmedActive:!0,isSensor:v.isSensor||r.isSensor,timeCreated:s,timeUpdated:s,inverseMass:0,friction:0,frictionStatic:0,restitution:0,slop:0};return e.update(f,o,s),f},e.update=function(o,s,v){var r=o.contacts,f=s.supports,n=o.activeContacts,t=s.parentA,i=s.parentB,a=t.vertices.length;o.isActive=!0,o.timeUpdated=v,o.collision=s,o.separation=s.depth,o.inverseMass=t.inverseMass+i.inverseMass,o.friction=t.friction<i.friction?t.friction:i.friction,o.frictionStatic=t.frictionStatic>i.frictionStatic?t.frictionStatic:i.frictionStatic,o.restitution=t.restitution>i.restitution?t.restitution:i.restitution,o.slop=t.slop>i.slop?t.slop:i.slop,s.pair=o,n.length=0;for(var u=0;u<f.length;u++){var g=f[u],C=g.body===t?g.index:a+g.index,P=r[C];P?n.push(P):n.push(r[C]=l.create(g))}},e.setActive=function(o,s,v){s?(o.isActive=!0,o.timeUpdated=v):(o.isActive=!1,o.activeContacts.length=0)},e.id=function(o,s){return o.id<s.id?"A"+o.id+"B"+s.id:"A"+s.id+"B"+o.id}})()},function(T,R,x){var e={};T.exports=e;var l=x(3),o=x(2),s=x(7),v=x(1),r=x(11),f=x(0);(function(){e._warming=.4,e._torqueDampen=1,e._minLength=1e-6,e.create=function(n){var t=n;t.bodyA&&!t.pointA&&(t.pointA={x:0,y:0}),t.bodyB&&!t.pointB&&(t.pointB={x:0,y:0});var i=t.bodyA?o.add(t.bodyA.position,t.pointA):t.pointA,a=t.bodyB?o.add(t.bodyB.position,t.pointB):t.pointB,u=o.magnitude(o.sub(i,a));t.length=typeof t.length!="undefined"?t.length:u,t.id=t.id||f.nextId(),t.label=t.label||"Constraint",t.type="constraint",t.stiffness=t.stiffness||(t.length>0?1:.7),t.damping=t.damping||0,t.angularStiffness=t.angularStiffness||0,t.angleA=t.bodyA?t.bodyA.angle:t.angleA,t.angleB=t.bodyB?t.bodyB.angle:t.angleB,t.plugin={};var g={visible:!0,lineWidth:2,strokeStyle:"#ffffff",type:"line",anchors:!0};return t.length===0&&t.stiffness>.1?(g.type="pin",g.anchors=!1):t.stiffness<.9&&(g.type="spring"),t.render=f.extend(g,t.render),t},e.preSolveAll=function(n){for(var t=0;t<n.length;t+=1){var i=n[t],a=i.constraintImpulse;i.isStatic||a.x===0&&a.y===0&&a.angle===0||(i.position.x+=a.x,i.position.y+=a.y,i.angle+=a.angle)}},e.solveAll=function(n,t){for(var i=0;i<n.length;i+=1){var a=n[i],u=!a.bodyA||a.bodyA&&a.bodyA.isStatic,g=!a.bodyB||a.bodyB&&a.bodyB.isStatic;(u||g)&&e.solve(n[i],t)}for(i=0;i<n.length;i+=1)a=n[i],u=!a.bodyA||a.bodyA&&a.bodyA.isStatic,g=!a.bodyB||a.bodyB&&a.bodyB.isStatic,!u&&!g&&e.solve(n[i],t)},e.solve=function(n,t){var i=n.bodyA,a=n.bodyB,u=n.pointA,g=n.pointB;if(!(!i&&!a)){i&&!i.isStatic&&(o.rotate(u,i.angle-n.angleA,u),n.angleA=i.angle),a&&!a.isStatic&&(o.rotate(g,a.angle-n.angleB,g),n.angleB=a.angle);var C=u,P=g;if(i&&(C=o.add(i.position,u)),a&&(P=o.add(a.position,g)),!(!C||!P)){var c=o.sub(C,P),h=o.magnitude(c);h<e._minLength&&(h=e._minLength);var m=(h-n.length)/h,p=n.stiffness<1?n.stiffness*t:n.stiffness,S=o.mult(c,m*p),y=(i?i.inverseMass:0)+(a?a.inverseMass:0),w=(i?i.inverseInertia:0)+(a?a.inverseInertia:0),d=y+w,M,I,A,E,B;if(n.damping){var L=o.create();A=o.div(c,h),B=o.sub(a&&o.sub(a.position,a.positionPrev)||L,i&&o.sub(i.position,i.positionPrev)||L),E=o.dot(A,B)}i&&!i.isStatic&&(I=i.inverseMass/y,i.constraintImpulse.x-=S.x*I,i.constraintImpulse.y-=S.y*I,i.position.x-=S.x*I,i.position.y-=S.y*I,n.damping&&(i.positionPrev.x-=n.damping*A.x*E*I,i.positionPrev.y-=n.damping*A.y*E*I),M=o.cross(u,S)/d*e._torqueDampen*i.inverseInertia*(1-n.angularStiffness),i.constraintImpulse.angle-=M,i.angle-=M),a&&!a.isStatic&&(I=a.inverseMass/y,a.constraintImpulse.x+=S.x*I,a.constraintImpulse.y+=S.y*I,a.position.x+=S.x*I,a.position.y+=S.y*I,n.damping&&(a.positionPrev.x+=n.damping*A.x*E*I,a.positionPrev.y+=n.damping*A.y*E*I),M=o.cross(g,S)/d*e._torqueDampen*a.inverseInertia*(1-n.angularStiffness),a.constraintImpulse.angle+=M,a.angle+=M)}}},e.postSolveAll=function(n){for(var t=0;t<n.length;t++){var i=n[t],a=i.constraintImpulse;if(!(i.isStatic||a.x===0&&a.y===0&&a.angle===0)){s.set(i,!1);for(var u=0;u<i.parts.length;u++){var g=i.parts[u];l.translate(g.vertices,a),u>0&&(g.position.x+=a.x,g.position.y+=a.y),a.angle!==0&&(l.rotate(g.vertices,a.angle,i.position),r.rotate(g.axes,a.angle),u>0&&o.rotateAbout(g.position,a.angle,i.position,g.position)),v.update(g.bounds,g.vertices,i.velocity)}a.angle*=e._warming,a.x*=e._warming,a.y*=e._warming}}},e.pointAWorld=function(n){return{x:(n.bodyA?n.bodyA.position.x:0)+n.pointA.x,y:(n.bodyA?n.bodyA.position.y:0)+n.pointA.y}},e.pointBWorld=function(n){return{x:(n.bodyB?n.bodyB.position.x:0)+n.pointB.x,y:(n.bodyB?n.bodyB.position.y:0)+n.pointB.y}}})()},function(T,R,x){var e={};T.exports=e;var l=x(2),o=x(0);(function(){e.fromVertices=function(s){for(var v={},r=0;r<s.length;r++){var f=(r+1)%s.length,n=l.normalise({x:s[f].y-s[r].y,y:s[r].x-s[f].x}),t=n.y===0?1/0:n.x/n.y;t=t.toFixed(3).toString(),v[t]=n}return o.values(v)},e.rotate=function(s,v){if(v!==0)for(var r=Math.cos(v),f=Math.sin(v),n=0;n<s.length;n++){var t=s[n],i;i=t.x*r-t.y*f,t.y=t.x*f+t.y*r,t.x=i}}})()},function(T,R,x){var e={};T.exports=e;var l=x(3),o=x(0),s=x(6),v=x(1),r=x(2);(function(){e.rectangle=function(f,n,t,i,a){a=a||{};var u={label:"Rectangle Body",position:{x:f,y:n},vertices:l.fromPath("L 0 0 L "+t+" 0 L "+t+" "+i+" L 0 "+i)};if(a.chamfer){var g=a.chamfer;u.vertices=l.chamfer(u.vertices,g.radius,g.quality,g.qualityMin,g.qualityMax),delete a.chamfer}return s.create(o.extend({},u,a))},e.trapezoid=function(f,n,t,i,a,u){u=u||{},a*=.5;var g=(1-a*2)*t,C=t*a,P=C+g,c=P+C,h;a<.5?h="L 0 0 L "+C+" "+-i+" L "+P+" "+-i+" L "+c+" 0":h="L 0 0 L "+P+" "+-i+" L "+c+" 0";var m={label:"Trapezoid Body",position:{x:f,y:n},vertices:l.fromPath(h)};if(u.chamfer){var p=u.chamfer;m.vertices=l.chamfer(m.vertices,p.radius,p.quality,p.qualityMin,p.qualityMax),delete u.chamfer}return s.create(o.extend({},m,u))},e.circle=function(f,n,t,i,a){i=i||{};var u={label:"Circle Body",circleRadius:t};a=a||25;var g=Math.ceil(Math.max(10,Math.min(a,t)));return g%2===1&&(g+=1),e.polygon(f,n,g,t,o.extend({},u,i))},e.polygon=function(f,n,t,i,a){if(a=a||{},t<3)return e.circle(f,n,i,a);for(var u=2*Math.PI/t,g="",C=u*.5,P=0;P<t;P+=1){var c=C+P*u,h=Math.cos(c)*i,m=Math.sin(c)*i;g+="L "+h.toFixed(3)+" "+m.toFixed(3)+" "}var p={label:"Polygon Body",position:{x:f,y:n},vertices:l.fromPath(g)};if(a.chamfer){var S=a.chamfer;p.vertices=l.chamfer(p.vertices,S.radius,S.quality,S.qualityMin,S.qualityMax),delete a.chamfer}return s.create(o.extend({},p,a))},e.fromVertices=function(f,n,t,i,a,u,g,C){var P=o.getDecomp(),c,h,m,p,S,y,w,d,M,I,A;for(c=!!(P&&P.quickDecomp),i=i||{},m=[],a=typeof a!="undefined"?a:!1,u=typeof u!="undefined"?u:.01,g=typeof g!="undefined"?g:10,C=typeof C!="undefined"?C:.01,o.isArray(t[0])||(t=[t]),I=0;I<t.length;I+=1)if(y=t[I],p=l.isConvex(y),S=!p,S&&!c&&o.warnOnce("Bodies.fromVertices: Install the 'poly-decomp' library and use Common.setDecomp or provide 'decomp' as a global to decompose concave vertices."),p||!c)p?y=l.clockwiseSort(y):y=l.hull(y),m.push({position:{x:f,y:n},vertices:y});else{var E=y.map(function(z){return[z.x,z.y]});P.makeCCW(E),u!==!1&&P.removeCollinearPoints(E,u),C!==!1&&P.removeDuplicatePoints&&P.removeDuplicatePoints(E,C);var B=P.quickDecomp(E);for(w=0;w<B.length;w++){var L=B[w],F=L.map(function(z){return{x:z[0],y:z[1]}});g>0&&l.area(F)<g||m.push({position:l.centre(F),vertices:F})}}for(w=0;w<m.length;w++)m[w]=s.create(o.extend(m[w],i));if(a){var k=5;for(w=0;w<m.length;w++){var V=m[w];for(d=w+1;d<m.length;d++){var H=m[d];if(v.overlaps(V.bounds,H.bounds)){var W=V.vertices,D=H.vertices;for(M=0;M<V.vertices.length;M++)for(A=0;A<H.vertices.length;A++){var Q=r.magnitudeSquared(r.sub(W[(M+1)%W.length],D[A])),N=r.magnitudeSquared(r.sub(W[M],D[(A+1)%D.length]));Q<k&&N<k&&(W[M].isInternal=!0,D[A].isInternal=!0)}}}}}return m.length>1?(h=s.create(o.extend({parts:m.slice(0)},i)),s.setPosition(h,{x:f,y:n}),h):m[0]}})()},function(T,R,x){var e={};T.exports=e;var l=x(0);(function(){e.create=function(o){var s={};return o||l.log("Mouse.create: element was undefined, defaulting to document.body","warn"),s.element=o||document.body,s.absolute={x:0,y:0},s.position={x:0,y:0},s.mousedownPosition={x:0,y:0},s.mouseupPosition={x:0,y:0},s.offset={x:0,y:0},s.scale={x:1,y:1},s.wheelDelta=0,s.button=-1,s.pixelRatio=parseInt(s.element.getAttribute("data-pixel-ratio"),10)||1,s.sourceEvents={mousemove:null,mousedown:null,mouseup:null,mousewheel:null},s.mousemove=function(v){var r=e._getRelativeMousePosition(v,s.element,s.pixelRatio),f=v.changedTouches;f&&(s.button=0,v.preventDefault()),s.absolute.x=r.x,s.absolute.y=r.y,s.position.x=s.absolute.x*s.scale.x+s.offset.x,s.position.y=s.absolute.y*s.scale.y+s.offset.y,s.sourceEvents.mousemove=v},s.mousedown=function(v){var r=e._getRelativeMousePosition(v,s.element,s.pixelRatio),f=v.changedTouches;f?(s.button=0,v.preventDefault()):s.button=v.button,s.absolute.x=r.x,s.absolute.y=r.y,s.position.x=s.absolute.x*s.scale.x+s.offset.x,s.position.y=s.absolute.y*s.scale.y+s.offset.y,s.mousedownPosition.x=s.position.x,s.mousedownPosition.y=s.position.y,s.sourceEvents.mousedown=v},s.mouseup=function(v){var r=e._getRelativeMousePosition(v,s.element,s.pixelRatio),f=v.changedTouches;f&&v.preventDefault(),s.button=-1,s.absolute.x=r.x,s.absolute.y=r.y,s.position.x=s.absolute.x*s.scale.x+s.offset.x,s.position.y=s.absolute.y*s.scale.y+s.offset.y,s.mouseupPosition.x=s.position.x,s.mouseupPosition.y=s.position.y,s.sourceEvents.mouseup=v},s.mousewheel=function(v){s.wheelDelta=Math.max(-1,Math.min(1,v.wheelDelta||-v.detail)),v.preventDefault()},e.setElement(s,s.element),s},e.setElement=function(o,s){o.element=s,s.addEventListener("mousemove",o.mousemove),s.addEventListener("mousedown",o.mousedown),s.addEventListener("mouseup",o.mouseup),s.addEventListener("mousewheel",o.mousewheel),s.addEventListener("DOMMouseScroll",o.mousewheel),s.addEventListener("touchmove",o.mousemove),s.addEventListener("touchstart",o.mousedown),s.addEventListener("touchend",o.mouseup)},e.clearSourceEvents=function(o){o.sourceEvents.mousemove=null,o.sourceEvents.mousedown=null,o.sourceEvents.mouseup=null,o.sourceEvents.mousewheel=null,o.wheelDelta=0},e.setOffset=function(o,s){o.offset.x=s.x,o.offset.y=s.y,o.position.x=o.absolute.x*o.scale.x+o.offset.x,o.position.y=o.absolute.y*o.scale.y+o.offset.y},e.setScale=function(o,s){o.scale.x=s.x,o.scale.y=s.y,o.position.x=o.absolute.x*o.scale.x+o.offset.x,o.position.y=o.absolute.y*o.scale.y+o.offset.y},e._getRelativeMousePosition=function(o,s,v){var r=s.getBoundingClientRect(),f=document.documentElement||document.body.parentNode||document.body,n=window.pageXOffset!==void 0?window.pageXOffset:f.scrollLeft,t=window.pageYOffset!==void 0?window.pageYOffset:f.scrollTop,i=o.changedTouches,a,u;return i?(a=i[0].pageX-r.left-n,u=i[0].pageY-r.top-t):(a=o.pageX-r.left-n,u=o.pageY-r.top-t),{x:a/(s.clientWidth/(s.width||s.clientWidth)*v),y:u/(s.clientHeight/(s.height||s.clientHeight)*v)}}})()},function(T,R,x){var e={};T.exports=e;var l=x(0),o=x(8);(function(){e.create=function(s){var v={bodies:[],pairs:null};return l.extend(v,s)},e.setBodies=function(s,v){s.bodies=v.slice(0)},e.clear=function(s){s.bodies=[]},e.collisions=function(s){var v=[],r=s.pairs,f=s.bodies,n=f.length,t=e.canCollide,i=o.collides,a,u;for(f.sort(e._compareBoundsX),a=0;a<n;a++){var g=f[a],C=g.bounds,P=g.bounds.max.x,c=g.bounds.max.y,h=g.bounds.min.y,m=g.isStatic||g.isSleeping,p=g.parts.length,S=p===1;for(u=a+1;u<n;u++){var y=f[u],w=y.bounds;if(w.min.x>P)break;if(!(c<w.min.y||h>w.max.y)&&!(m&&(y.isStatic||y.isSleeping))&&t(g.collisionFilter,y.collisionFilter)){var d=y.parts.length;if(S&&d===1){var M=i(g,y,r);M&&v.push(M)}else for(var I=p>1?1:0,A=d>1?1:0,E=I;E<p;E++)for(var B=g.parts[E],C=B.bounds,L=A;L<d;L++){var F=y.parts[L],w=F.bounds;if(!(C.min.x>w.max.x||C.max.x<w.min.x||C.max.y<w.min.y||C.min.y>w.max.y)){var M=i(B,F,r);M&&v.push(M)}}}}}return v},e.canCollide=function(s,v){return s.group===v.group&&s.group!==0?s.group>0:(s.mask&v.category)!==0&&(v.mask&s.category)!==0},e._compareBoundsX=function(s,v){return s.bounds.min.x-v.bounds.min.x}})()},function(T,R,x){var e={};T.exports=e;var l=x(0);(function(){e._registry={},e.register=function(o){if(e.isPlugin(o)||l.warn("Plugin.register:",e.toString(o),"does not implement all required fields."),o.name in e._registry){var s=e._registry[o.name],v=e.versionParse(o.version).number,r=e.versionParse(s.version).number;v>r?(l.warn("Plugin.register:",e.toString(s),"was upgraded to",e.toString(o)),e._registry[o.name]=o):v<r?l.warn("Plugin.register:",e.toString(s),"can not be downgraded to",e.toString(o)):o!==s&&l.warn("Plugin.register:",e.toString(o),"is already registered to different plugin object")}else e._registry[o.name]=o;return o},e.resolve=function(o){return e._registry[e.dependencyParse(o).name]},e.toString=function(o){return typeof o=="string"?o:(o.name||"anonymous")+"@"+(o.version||o.range||"0.0.0")},e.isPlugin=function(o){return o&&o.name&&o.version&&o.install},e.isUsed=function(o,s){return o.used.indexOf(s)>-1},e.isFor=function(o,s){var v=o.for&&e.dependencyParse(o.for);return!o.for||s.name===v.name&&e.versionSatisfies(s.version,v.range)},e.use=function(o,s){if(o.uses=(o.uses||[]).concat(s||[]),o.uses.length===0){l.warn("Plugin.use:",e.toString(o),"does not specify any dependencies to install.");return}for(var v=e.dependencies(o),r=l.topologicalSort(v),f=[],n=0;n<r.length;n+=1)if(r[n]!==o.name){var t=e.resolve(r[n]);if(!t){f.push("❌ "+r[n]);continue}e.isUsed(o,t.name)||(e.isFor(t,o)||(l.warn("Plugin.use:",e.toString(t),"is for",t.for,"but installed on",e.toString(o)+"."),t._warned=!0),t.install?t.install(o):(l.warn("Plugin.use:",e.toString(t),"does not specify an install function."),t._warned=!0),t._warned?(f.push("🔶 "+e.toString(t)),delete t._warned):f.push("✅ "+e.toString(t)),o.used.push(t.name))}f.length>0&&l.info(f.join("  "))},e.dependencies=function(o,s){var v=e.dependencyParse(o),r=v.name;if(s=s||{},!(r in s)){o=e.resolve(o)||o,s[r]=l.map(o.uses||[],function(n){e.isPlugin(n)&&e.register(n);var t=e.dependencyParse(n),i=e.resolve(n);return i&&!e.versionSatisfies(i.version,t.range)?(l.warn("Plugin.dependencies:",e.toString(i),"does not satisfy",e.toString(t),"used by",e.toString(v)+"."),i._warned=!0,o._warned=!0):i||(l.warn("Plugin.dependencies:",e.toString(n),"used by",e.toString(v),"could not be resolved."),o._warned=!0),t.name});for(var f=0;f<s[r].length;f+=1)e.dependencies(s[r][f],s);return s}},e.dependencyParse=function(o){if(l.isString(o)){var s=/^[\w-]+(@(\*|[\^~]?\d+\.\d+\.\d+(-[0-9A-Za-z-+]+)?))?$/;return s.test(o)||l.warn("Plugin.dependencyParse:",o,"is not a valid dependency string."),{name:o.split("@")[0],range:o.split("@")[1]||"*"}}return{name:o.name,range:o.range||o.version}},e.versionParse=function(o){var s=/^(\*)|(\^|~|>=|>)?\s*((\d+)\.(\d+)\.(\d+))(-[0-9A-Za-z-+]+)?$/;s.test(o)||l.warn("Plugin.versionParse:",o,"is not a valid version or range.");var v=s.exec(o),r=Number(v[4]),f=Number(v[5]),n=Number(v[6]);return{isRange:!!(v[1]||v[2]),version:v[3],range:o,operator:v[1]||v[2]||"",major:r,minor:f,patch:n,parts:[r,f,n],prerelease:v[7],number:r*1e8+f*1e4+n}},e.versionSatisfies=function(o,s){s=s||"*";var v=e.versionParse(s),r=e.versionParse(o);if(v.isRange){if(v.operator==="*"||o==="*")return!0;if(v.operator===">")return r.number>v.number;if(v.operator===">=")return r.number>=v.number;if(v.operator==="~")return r.major===v.major&&r.minor===v.minor&&r.patch>=v.patch;if(v.operator==="^")return v.major>0?r.major===v.major&&r.number>=v.number:v.minor>0?r.minor===v.minor&&r.patch>=v.patch:r.patch===v.patch}return o===s||o==="*"}})()},function(T,R,x){var e={};T.exports=e;var l=x(0),o=x(5),s=x(1),v=x(4),r=x(2),f=x(13);(function(){var n,t;typeof window!="undefined"&&(n=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(c){window.setTimeout(function(){c(l.now())},1e3/60)},t=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame),e._goodFps=30,e._goodDelta=1e3/60,e.create=function(c){var h={controller:e,engine:null,element:null,canvas:null,mouse:null,frameRequestId:null,timing:{historySize:60,delta:0,deltaHistory:[],lastTime:0,lastTimestamp:0,lastElapsed:0,timestampElapsed:0,timestampElapsedHistory:[],engineDeltaHistory:[],engineElapsedHistory:[],elapsedHistory:[]},options:{width:800,height:600,pixelRatio:1,background:"#14151f",wireframeBackground:"#14151f",hasBounds:!!c.bounds,enabled:!0,wireframes:!0,showSleeping:!0,showDebug:!1,showStats:!1,showPerformance:!1,showBounds:!1,showVelocity:!1,showCollisions:!1,showSeparations:!1,showAxes:!1,showPositions:!1,showAngleIndicator:!1,showIds:!1,showVertexNumbers:!1,showConvexHulls:!1,showInternalEdges:!1,showMousePosition:!1}},m=l.extend(h,c);return m.canvas&&(m.canvas.width=m.options.width||m.canvas.width,m.canvas.height=m.options.height||m.canvas.height),m.mouse=c.mouse,m.engine=c.engine,m.canvas=m.canvas||u(m.options.width,m.options.height),m.context=m.canvas.getContext("2d"),m.textures={},m.bounds=m.bounds||{min:{x:0,y:0},max:{x:m.canvas.width,y:m.canvas.height}},m.options.showBroadphase=!1,m.options.pixelRatio!==1&&e.setPixelRatio(m,m.options.pixelRatio),l.isElement(m.element)?m.element.appendChild(m.canvas):m.canvas.parentNode||l.log("Render.create: options.element was undefined, render.canvas was created but not appended","warn"),m},e.run=function(c){(function h(m){c.frameRequestId=n(h),i(c,m),e.world(c,m),(c.options.showStats||c.options.showDebug)&&e.stats(c,c.context,m),(c.options.showPerformance||c.options.showDebug)&&e.performance(c,c.context,m)})()},e.stop=function(c){t(c.frameRequestId)},e.setPixelRatio=function(c,h){var m=c.options,p=c.canvas;h==="auto"&&(h=g(p)),m.pixelRatio=h,p.setAttribute("data-pixel-ratio",h),p.width=m.width*h,p.height=m.height*h,p.style.width=m.width+"px",p.style.height=m.height+"px"},e.lookAt=function(c,h,m,p){p=typeof p!="undefined"?p:!0,h=l.isArray(h)?h:[h],m=m||{x:0,y:0};for(var S={min:{x:1/0,y:1/0},max:{x:-1/0,y:-1/0}},y=0;y<h.length;y+=1){var w=h[y],d=w.bounds?w.bounds.min:w.min||w.position||w,M=w.bounds?w.bounds.max:w.max||w.position||w;d&&M&&(d.x<S.min.x&&(S.min.x=d.x),M.x>S.max.x&&(S.max.x=M.x),d.y<S.min.y&&(S.min.y=d.y),M.y>S.max.y&&(S.max.y=M.y))}var I=S.max.x-S.min.x+2*m.x,A=S.max.y-S.min.y+2*m.y,E=c.canvas.height,B=c.canvas.width,L=B/E,F=I/A,k=1,V=1;F>L?V=F/L:k=L/F,c.options.hasBounds=!0,c.bounds.min.x=S.min.x,c.bounds.max.x=S.min.x+I*k,c.bounds.min.y=S.min.y,c.bounds.max.y=S.min.y+A*V,p&&(c.bounds.min.x+=I*.5-I*k*.5,c.bounds.max.x+=I*.5-I*k*.5,c.bounds.min.y+=A*.5-A*V*.5,c.bounds.max.y+=A*.5-A*V*.5),c.bounds.min.x-=m.x,c.bounds.max.x-=m.x,c.bounds.min.y-=m.y,c.bounds.max.y-=m.y,c.mouse&&(f.setScale(c.mouse,{x:(c.bounds.max.x-c.bounds.min.x)/c.canvas.width,y:(c.bounds.max.y-c.bounds.min.y)/c.canvas.height}),f.setOffset(c.mouse,c.bounds.min))},e.startViewTransform=function(c){var h=c.bounds.max.x-c.bounds.min.x,m=c.bounds.max.y-c.bounds.min.y,p=h/c.options.width,S=m/c.options.height;c.context.setTransform(c.options.pixelRatio/p,0,0,c.options.pixelRatio/S,0,0),c.context.translate(-c.bounds.min.x,-c.bounds.min.y)},e.endViewTransform=function(c){c.context.setTransform(c.options.pixelRatio,0,0,c.options.pixelRatio,0,0)},e.world=function(c,h){var m=l.now(),p=c.engine,S=p.world,y=c.canvas,w=c.context,d=c.options,M=c.timing,I=o.allBodies(S),A=o.allConstraints(S),E=d.wireframes?d.wireframeBackground:d.background,B=[],L=[],F,k={timestamp:p.timing.timestamp};if(v.trigger(c,"beforeRender",k),c.currentBackground!==E&&P(c,E),w.globalCompositeOperation="source-in",w.fillStyle="transparent",w.fillRect(0,0,y.width,y.height),w.globalCompositeOperation="source-over",d.hasBounds){for(F=0;F<I.length;F++){var V=I[F];s.overlaps(V.bounds,c.bounds)&&B.push(V)}for(F=0;F<A.length;F++){var H=A[F],W=H.bodyA,D=H.bodyB,Q=H.pointA,N=H.pointB;W&&(Q=r.add(W.position,H.pointA)),D&&(N=r.add(D.position,H.pointB)),!(!Q||!N)&&(s.contains(c.bounds,Q)||s.contains(c.bounds,N))&&L.push(H)}e.startViewTransform(c),c.mouse&&(f.setScale(c.mouse,{x:(c.bounds.max.x-c.bounds.min.x)/c.options.width,y:(c.bounds.max.y-c.bounds.min.y)/c.options.height}),f.setOffset(c.mouse,c.bounds.min))}else L=A,B=I,c.options.pixelRatio!==1&&c.context.setTransform(c.options.pixelRatio,0,0,c.options.pixelRatio,0,0);!d.wireframes||p.enableSleeping&&d.showSleeping?e.bodies(c,B,w):(d.showConvexHulls&&e.bodyConvexHulls(c,B,w),e.bodyWireframes(c,B,w)),d.showBounds&&e.bodyBounds(c,B,w),(d.showAxes||d.showAngleIndicator)&&e.bodyAxes(c,B,w),d.showPositions&&e.bodyPositions(c,B,w),d.showVelocity&&e.bodyVelocity(c,B,w),d.showIds&&e.bodyIds(c,B,w),d.showSeparations&&e.separations(c,p.pairs.list,w),d.showCollisions&&e.collisions(c,p.pairs.list,w),d.showVertexNumbers&&e.vertexNumbers(c,B,w),d.showMousePosition&&e.mousePosition(c,c.mouse,w),e.constraints(L,w),d.hasBounds&&e.endViewTransform(c),v.trigger(c,"afterRender",k),M.lastElapsed=l.now()-m},e.stats=function(c,h,m){for(var p=c.engine,S=p.world,y=o.allBodies(S),w=0,d=55,M=44,I=0,A=0,E=0;E<y.length;E+=1)w+=y[E].parts.length;var B={Part:w,Body:y.length,Cons:o.allConstraints(S).length,Comp:o.allComposites(S).length,Pair:p.pairs.list.length};h.fillStyle="#0e0f19",h.fillRect(I,A,d*5.5,M),h.font="12px Arial",h.textBaseline="top",h.textAlign="right";for(var L in B){var F=B[L];h.fillStyle="#aaa",h.fillText(L,I+d,A+8),h.fillStyle="#eee",h.fillText(F,I+d,A+26),I+=d}},e.performance=function(c,h){var m=c.engine,p=c.timing,S=p.deltaHistory,y=p.elapsedHistory,w=p.timestampElapsedHistory,d=p.engineDeltaHistory,M=p.engineElapsedHistory,I=m.timing.lastDelta,A=a(S),E=a(y),B=a(d),L=a(M),F=a(w),k=F/A||0,V=1e3/A||0,H=4,W=12,D=60,Q=34,N=10,z=69;h.fillStyle="#0e0f19",h.fillRect(0,50,W*4+D*5+22,Q),e.status(h,N,z,D,H,S.length,Math.round(V)+" fps",V/e._goodFps,function(U){return S[U]/A-1}),e.status(h,N+W+D,z,D,H,d.length,I.toFixed(2)+" dt",e._goodDelta/I,function(U){return d[U]/B-1}),e.status(h,N+(W+D)*2,z,D,H,M.length,L.toFixed(2)+" ut",1-L/e._goodFps,function(U){return M[U]/L-1}),e.status(h,N+(W+D)*3,z,D,H,y.length,E.toFixed(2)+" rt",1-E/e._goodFps,function(U){return y[U]/E-1}),e.status(h,N+(W+D)*4,z,D,H,w.length,k.toFixed(2)+" x",k*k*k,function(U){return(w[U]/S[U]/k||0)-1})},e.status=function(c,h,m,p,S,y,w,d,M){c.strokeStyle="#888",c.fillStyle="#444",c.lineWidth=1,c.fillRect(h,m+7,p,1),c.beginPath(),c.moveTo(h,m+7-S*l.clamp(.4*M(0),-2,2));for(var I=0;I<p;I+=1)c.lineTo(h+I,m+7-(I<y?S*l.clamp(.4*M(I),-2,2):0));c.stroke(),c.fillStyle="hsl("+l.clamp(25+95*d,0,120)+",100%,60%)",c.fillRect(h,m-7,4,4),c.font="12px Arial",c.textBaseline="middle",c.textAlign="right",c.fillStyle="#eee",c.fillText(w,h+p,m-5)},e.constraints=function(c,h){for(var m=h,p=0;p<c.length;p++){var S=c[p];if(!(!S.render.visible||!S.pointA||!S.pointB)){var y=S.bodyA,w=S.bodyB,d,M;if(y?d=r.add(y.position,S.pointA):d=S.pointA,S.render.type==="pin")m.beginPath(),m.arc(d.x,d.y,3,0,2*Math.PI),m.closePath();else{if(w?M=r.add(w.position,S.pointB):M=S.pointB,m.beginPath(),m.moveTo(d.x,d.y),S.render.type==="spring")for(var I=r.sub(M,d),A=r.perp(r.normalise(I)),E=Math.ceil(l.clamp(S.length/5,12,20)),B,L=1;L<E;L+=1)B=L%2===0?1:-1,m.lineTo(d.x+I.x*(L/E)+A.x*B*4,d.y+I.y*(L/E)+A.y*B*4);m.lineTo(M.x,M.y)}S.render.lineWidth&&(m.lineWidth=S.render.lineWidth,m.strokeStyle=S.render.strokeStyle,m.stroke()),S.render.anchors&&(m.fillStyle=S.render.strokeStyle,m.beginPath(),m.arc(d.x,d.y,3,0,2*Math.PI),m.arc(M.x,M.y,3,0,2*Math.PI),m.closePath(),m.fill())}}},e.bodies=function(c,h,m){var p=m;c.engine;var S=c.options,y=S.showInternalEdges||!S.wireframes,w,d,M,I;for(M=0;M<h.length;M++)if(w=h[M],!!w.render.visible){for(I=w.parts.length>1?1:0;I<w.parts.length;I++)if(d=w.parts[I],!!d.render.visible){if(S.showSleeping&&w.isSleeping?p.globalAlpha=.5*d.render.opacity:d.render.opacity!==1&&(p.globalAlpha=d.render.opacity),d.render.sprite&&d.render.sprite.texture&&!S.wireframes){var A=d.render.sprite,E=C(c,A.texture);p.translate(d.position.x,d.position.y),p.rotate(d.angle),p.drawImage(E,E.width*-A.xOffset*A.xScale,E.height*-A.yOffset*A.yScale,E.width*A.xScale,E.height*A.yScale),p.rotate(-d.angle),p.translate(-d.position.x,-d.position.y)}else{if(d.circleRadius)p.beginPath(),p.arc(d.position.x,d.position.y,d.circleRadius,0,2*Math.PI);else{p.beginPath(),p.moveTo(d.vertices[0].x,d.vertices[0].y);for(var B=1;B<d.vertices.length;B++)!d.vertices[B-1].isInternal||y?p.lineTo(d.vertices[B].x,d.vertices[B].y):p.moveTo(d.vertices[B].x,d.vertices[B].y),d.vertices[B].isInternal&&!y&&p.moveTo(d.vertices[(B+1)%d.vertices.length].x,d.vertices[(B+1)%d.vertices.length].y);p.lineTo(d.vertices[0].x,d.vertices[0].y),p.closePath()}S.wireframes?(p.lineWidth=1,p.strokeStyle="#bbb",p.stroke()):(p.fillStyle=d.render.fillStyle,d.render.lineWidth&&(p.lineWidth=d.render.lineWidth,p.strokeStyle=d.render.strokeStyle,p.stroke()),p.fill())}p.globalAlpha=1}}},e.bodyWireframes=function(c,h,m){var p=m,S=c.options.showInternalEdges,y,w,d,M,I;for(p.beginPath(),d=0;d<h.length;d++)if(y=h[d],!!y.render.visible)for(I=y.parts.length>1?1:0;I<y.parts.length;I++){for(w=y.parts[I],p.moveTo(w.vertices[0].x,w.vertices[0].y),M=1;M<w.vertices.length;M++)!w.vertices[M-1].isInternal||S?p.lineTo(w.vertices[M].x,w.vertices[M].y):p.moveTo(w.vertices[M].x,w.vertices[M].y),w.vertices[M].isInternal&&!S&&p.moveTo(w.vertices[(M+1)%w.vertices.length].x,w.vertices[(M+1)%w.vertices.length].y);p.lineTo(w.vertices[0].x,w.vertices[0].y)}p.lineWidth=1,p.strokeStyle="#bbb",p.stroke()},e.bodyConvexHulls=function(c,h,m){var p=m,S,y,w;for(p.beginPath(),y=0;y<h.length;y++)if(S=h[y],!(!S.render.visible||S.parts.length===1)){for(p.moveTo(S.vertices[0].x,S.vertices[0].y),w=1;w<S.vertices.length;w++)p.lineTo(S.vertices[w].x,S.vertices[w].y);p.lineTo(S.vertices[0].x,S.vertices[0].y)}p.lineWidth=1,p.strokeStyle="rgba(255,255,255,0.2)",p.stroke()},e.vertexNumbers=function(c,h,m){var p=m,S,y,w;for(S=0;S<h.length;S++){var d=h[S].parts;for(w=d.length>1?1:0;w<d.length;w++){var M=d[w];for(y=0;y<M.vertices.length;y++)p.fillStyle="rgba(255,255,255,0.2)",p.fillText(S+"_"+y,M.position.x+(M.vertices[y].x-M.position.x)*.8,M.position.y+(M.vertices[y].y-M.position.y)*.8)}}},e.mousePosition=function(c,h,m){var p=m;p.fillStyle="rgba(255,255,255,0.8)",p.fillText(h.position.x+"  "+h.position.y,h.position.x+5,h.position.y-5)},e.bodyBounds=function(c,h,m){var p=m;c.engine;var S=c.options;p.beginPath();for(var y=0;y<h.length;y++){var w=h[y];if(w.render.visible)for(var d=h[y].parts,M=d.length>1?1:0;M<d.length;M++){var I=d[M];p.rect(I.bounds.min.x,I.bounds.min.y,I.bounds.max.x-I.bounds.min.x,I.bounds.max.y-I.bounds.min.y)}}S.wireframes?p.strokeStyle="rgba(255,255,255,0.08)":p.strokeStyle="rgba(0,0,0,0.1)",p.lineWidth=1,p.stroke()},e.bodyAxes=function(c,h,m){var p=m;c.engine;var S=c.options,y,w,d,M;for(p.beginPath(),w=0;w<h.length;w++){var I=h[w],A=I.parts;if(I.render.visible)if(S.showAxes)for(d=A.length>1?1:0;d<A.length;d++)for(y=A[d],M=0;M<y.axes.length;M++){var E=y.axes[M];p.moveTo(y.position.x,y.position.y),p.lineTo(y.position.x+E.x*20,y.position.y+E.y*20)}else for(d=A.length>1?1:0;d<A.length;d++)for(y=A[d],M=0;M<y.axes.length;M++)p.moveTo(y.position.x,y.position.y),p.lineTo((y.vertices[0].x+y.vertices[y.vertices.length-1].x)/2,(y.vertices[0].y+y.vertices[y.vertices.length-1].y)/2)}S.wireframes?(p.strokeStyle="indianred",p.lineWidth=1):(p.strokeStyle="rgba(255, 255, 255, 0.4)",p.globalCompositeOperation="overlay",p.lineWidth=2),p.stroke(),p.globalCompositeOperation="source-over"},e.bodyPositions=function(c,h,m){var p=m;c.engine;var S=c.options,y,w,d,M;for(p.beginPath(),d=0;d<h.length;d++)if(y=h[d],!!y.render.visible)for(M=0;M<y.parts.length;M++)w=y.parts[M],p.arc(w.position.x,w.position.y,3,0,2*Math.PI,!1),p.closePath();for(S.wireframes?p.fillStyle="indianred":p.fillStyle="rgba(0,0,0,0.5)",p.fill(),p.beginPath(),d=0;d<h.length;d++)y=h[d],y.render.visible&&(p.arc(y.positionPrev.x,y.positionPrev.y,2,0,2*Math.PI,!1),p.closePath());p.fillStyle="rgba(255,165,0,0.8)",p.fill()},e.bodyVelocity=function(c,h,m){var p=m;p.beginPath();for(var S=0;S<h.length;S++){var y=h[S];y.render.visible&&(p.moveTo(y.position.x,y.position.y),p.lineTo(y.position.x+(y.position.x-y.positionPrev.x)*2,y.position.y+(y.position.y-y.positionPrev.y)*2))}p.lineWidth=3,p.strokeStyle="cornflowerblue",p.stroke()},e.bodyIds=function(c,h,m){var p=m,S,y;for(S=0;S<h.length;S++)if(h[S].render.visible){var w=h[S].parts;for(y=w.length>1?1:0;y<w.length;y++){var d=w[y];p.font="12px Arial",p.fillStyle="rgba(255,255,255,0.5)",p.fillText(d.id,d.position.x+10,d.position.y-10)}}},e.collisions=function(c,h,m){var p=m,S=c.options,y,w,d,M;for(p.beginPath(),d=0;d<h.length;d++)if(y=h[d],!!y.isActive)for(w=y.collision,M=0;M<y.activeContacts.length;M++){var I=y.activeContacts[M],A=I.vertex;p.rect(A.x-1.5,A.y-1.5,3.5,3.5)}for(S.wireframes?p.fillStyle="rgba(255,255,255,0.7)":p.fillStyle="orange",p.fill(),p.beginPath(),d=0;d<h.length;d++)if(y=h[d],!!y.isActive&&(w=y.collision,y.activeContacts.length>0)){var E=y.activeContacts[0].vertex.x,B=y.activeContacts[0].vertex.y;y.activeContacts.length===2&&(E=(y.activeContacts[0].vertex.x+y.activeContacts[1].vertex.x)/2,B=(y.activeContacts[0].vertex.y+y.activeContacts[1].vertex.y)/2),w.bodyB===w.supports[0].body||w.bodyA.isStatic===!0?p.moveTo(E-w.normal.x*8,B-w.normal.y*8):p.moveTo(E+w.normal.x*8,B+w.normal.y*8),p.lineTo(E,B)}S.wireframes?p.strokeStyle="rgba(255,165,0,0.7)":p.strokeStyle="orange",p.lineWidth=1,p.stroke()},e.separations=function(c,h,m){var p=m,S=c.options,y,w,d,M,I;for(p.beginPath(),I=0;I<h.length;I++)if(y=h[I],!!y.isActive){w=y.collision,d=w.bodyA,M=w.bodyB;var A=1;!M.isStatic&&!d.isStatic&&(A=.5),M.isStatic&&(A=0),p.moveTo(M.position.x,M.position.y),p.lineTo(M.position.x-w.penetration.x*A,M.position.y-w.penetration.y*A),A=1,!M.isStatic&&!d.isStatic&&(A=.5),d.isStatic&&(A=0),p.moveTo(d.position.x,d.position.y),p.lineTo(d.position.x+w.penetration.x*A,d.position.y+w.penetration.y*A)}S.wireframes?p.strokeStyle="rgba(255,165,0,0.5)":p.strokeStyle="orange",p.stroke()},e.inspector=function(c,h){c.engine;var m=c.selected,p=c.render,S=p.options,y;if(S.hasBounds){var w=p.bounds.max.x-p.bounds.min.x,d=p.bounds.max.y-p.bounds.min.y,M=w/p.options.width,I=d/p.options.height;h.scale(1/M,1/I),h.translate(-p.bounds.min.x,-p.bounds.min.y)}for(var A=0;A<m.length;A++){var E=m[A].data;switch(h.translate(.5,.5),h.lineWidth=1,h.strokeStyle="rgba(255,165,0,0.9)",h.setLineDash([1,2]),E.type){case"body":y=E.bounds,h.beginPath(),h.rect(Math.floor(y.min.x-3),Math.floor(y.min.y-3),Math.floor(y.max.x-y.min.x+6),Math.floor(y.max.y-y.min.y+6)),h.closePath(),h.stroke();break;case"constraint":var B=E.pointA;E.bodyA&&(B=E.pointB),h.beginPath(),h.arc(B.x,B.y,10,0,2*Math.PI),h.closePath(),h.stroke();break}h.setLineDash([]),h.translate(-.5,-.5)}c.selectStart!==null&&(h.translate(.5,.5),h.lineWidth=1,h.strokeStyle="rgba(255,165,0,0.6)",h.fillStyle="rgba(255,165,0,0.1)",y=c.selectBounds,h.beginPath(),h.rect(Math.floor(y.min.x),Math.floor(y.min.y),Math.floor(y.max.x-y.min.x),Math.floor(y.max.y-y.min.y)),h.closePath(),h.stroke(),h.fill(),h.translate(-.5,-.5)),S.hasBounds&&h.setTransform(1,0,0,1,0,0)};var i=function(c,h){var m=c.engine,p=c.timing,S=p.historySize,y=m.timing.timestamp;p.delta=h-p.lastTime||e._goodDelta,p.lastTime=h,p.timestampElapsed=y-p.lastTimestamp||0,p.lastTimestamp=y,p.deltaHistory.unshift(p.delta),p.deltaHistory.length=Math.min(p.deltaHistory.length,S),p.engineDeltaHistory.unshift(m.timing.lastDelta),p.engineDeltaHistory.length=Math.min(p.engineDeltaHistory.length,S),p.timestampElapsedHistory.unshift(p.timestampElapsed),p.timestampElapsedHistory.length=Math.min(p.timestampElapsedHistory.length,S),p.engineElapsedHistory.unshift(m.timing.lastElapsed),p.engineElapsedHistory.length=Math.min(p.engineElapsedHistory.length,S),p.elapsedHistory.unshift(p.lastElapsed),p.elapsedHistory.length=Math.min(p.elapsedHistory.length,S)},a=function(c){for(var h=0,m=0;m<c.length;m+=1)h+=c[m];return h/c.length||0},u=function(c,h){var m=document.createElement("canvas");return m.width=c,m.height=h,m.oncontextmenu=function(){return!1},m.onselectstart=function(){return!1},m},g=function(c){var h=c.getContext("2d"),m=window.devicePixelRatio||1,p=h.webkitBackingStorePixelRatio||h.mozBackingStorePixelRatio||h.msBackingStorePixelRatio||h.oBackingStorePixelRatio||h.backingStorePixelRatio||1;return m/p},C=function(c,h){var m=c.textures[h];return m||(m=c.textures[h]=new Image,m.src=h,m)},P=function(c,h){var m=h;/(jpg|gif|png)$/.test(h)&&(m="url("+h+")"),c.canvas.style.background=m,c.canvas.style.backgroundSize="contain",c.currentBackground=h}})()},function(T,R){var x={};T.exports=x,function(){x.create=function(e){return{vertex:e,normalImpulse:0,tangentImpulse:0}}}()},function(T,R,x){var e={};T.exports=e;var l=x(7),o=x(19),s=x(14),v=x(20),r=x(4),f=x(5),n=x(10),t=x(0),i=x(6);(function(){e.create=function(a){a=a||{};var u={positionIterations:6,velocityIterations:4,constraintIterations:2,enableSleeping:!1,events:[],plugin:{},gravity:{x:0,y:1,scale:.001},timing:{timestamp:0,timeScale:1,lastDelta:0,lastElapsed:0}},g=t.extend(u,a);return g.world=a.world||f.create({label:"World"}),g.pairs=a.pairs||v.create(),g.detector=a.detector||s.create(),g.grid={buckets:[]},g.world.gravity=g.gravity,g.broadphase=g.grid,g.metrics={},g},e.update=function(a,u,g){var C=t.now();u=u||1e3/60,g=g||1;var P=a.world,c=a.detector,h=a.pairs,m=a.timing,p=m.timestamp,S;m.timestamp+=u*m.timeScale,m.lastDelta=u*m.timeScale;var y={timestamp:m.timestamp};r.trigger(a,"beforeUpdate",y);var w=f.allBodies(P),d=f.allConstraints(P);for(P.isModified&&s.setBodies(c,w),P.isModified&&f.setModified(P,!1,!1,!0),a.enableSleeping&&l.update(w,m.timeScale),e._bodiesApplyGravity(w,a.gravity),e._bodiesUpdate(w,u,m.timeScale,g,P.bounds),n.preSolveAll(w),S=0;S<a.constraintIterations;S++)n.solveAll(d,m.timeScale);n.postSolveAll(w),c.pairs=a.pairs;var M=s.collisions(c);for(v.update(h,M,p),a.enableSleeping&&l.afterCollisions(h.list,m.timeScale),h.collisionStart.length>0&&r.trigger(a,"collisionStart",{pairs:h.collisionStart}),o.preSolvePosition(h.list),S=0;S<a.positionIterations;S++)o.solvePosition(h.list,m.timeScale);for(o.postSolvePosition(w),n.preSolveAll(w),S=0;S<a.constraintIterations;S++)n.solveAll(d,m.timeScale);for(n.postSolveAll(w),o.preSolveVelocity(h.list),S=0;S<a.velocityIterations;S++)o.solveVelocity(h.list,m.timeScale);return h.collisionActive.length>0&&r.trigger(a,"collisionActive",{pairs:h.collisionActive}),h.collisionEnd.length>0&&r.trigger(a,"collisionEnd",{pairs:h.collisionEnd}),e._bodiesClearForces(w),r.trigger(a,"afterUpdate",y),a.timing.lastElapsed=t.now()-C,a},e.merge=function(a,u){if(t.extend(a,u),u.world){a.world=u.world,e.clear(a);for(var g=f.allBodies(a.world),C=0;C<g.length;C++){var P=g[C];l.set(P,!1),P.id=t.nextId()}}},e.clear=function(a){v.clear(a.pairs),s.clear(a.detector)},e._bodiesClearForces=function(a){for(var u=0;u<a.length;u++){var g=a[u];g.force.x=0,g.force.y=0,g.torque=0}},e._bodiesApplyGravity=function(a,u){var g=typeof u.scale!="undefined"?u.scale:.001;if(!(u.x===0&&u.y===0||g===0))for(var C=0;C<a.length;C++){var P=a[C];P.isStatic||P.isSleeping||(P.force.y+=P.mass*u.y*g,P.force.x+=P.mass*u.x*g)}},e._bodiesUpdate=function(a,u,g,C,P){for(var c=0;c<a.length;c++){var h=a[c];h.isStatic||h.isSleeping||i.update(h,u,g,C)}}})()},function(T,R,x){var e={};T.exports=e;var l=x(3),o=x(1);(function(){e._restingThresh=4,e._restingThreshTangent=6,e._positionDampen=.9,e._positionWarming=.8,e._frictionNormalMultiplier=5,e.preSolvePosition=function(s){var v,r,f,n=s.length;for(v=0;v<n;v++)r=s[v],r.isActive&&(f=r.activeContacts.length,r.collision.parentA.totalContacts+=f,r.collision.parentB.totalContacts+=f)},e.solvePosition=function(s,v){var r,f,n,t,i,a,u,g,C=e._positionDampen,P=s.length;for(r=0;r<P;r++)f=s[r],!(!f.isActive||f.isSensor)&&(n=f.collision,t=n.parentA,i=n.parentB,a=n.normal,f.separation=a.x*(i.positionImpulse.x+n.penetration.x-t.positionImpulse.x)+a.y*(i.positionImpulse.y+n.penetration.y-t.positionImpulse.y));for(r=0;r<P;r++)f=s[r],!(!f.isActive||f.isSensor)&&(n=f.collision,t=n.parentA,i=n.parentB,a=n.normal,g=(f.separation-f.slop)*v,(t.isStatic||i.isStatic)&&(g*=2),t.isStatic||t.isSleeping||(u=C/t.totalContacts,t.positionImpulse.x+=a.x*g*u,t.positionImpulse.y+=a.y*g*u),i.isStatic||i.isSleeping||(u=C/i.totalContacts,i.positionImpulse.x-=a.x*g*u,i.positionImpulse.y-=a.y*g*u))},e.postSolvePosition=function(s){for(var v=e._positionWarming,r=s.length,f=l.translate,n=o.update,t=0;t<r;t++){var i=s[t],a=i.positionImpulse,u=a.x,g=a.y,C=i.velocity;if(i.totalContacts=0,u!==0||g!==0){for(var P=0;P<i.parts.length;P++){var c=i.parts[P];f(c.vertices,a),n(c.bounds,c.vertices,C),c.position.x+=u,c.position.y+=g}i.positionPrev.x+=u,i.positionPrev.y+=g,u*C.x+g*C.y<0?(a.x=0,a.y=0):(a.x*=v,a.y*=v)}}},e.preSolveVelocity=function(s){var v=s.length,r,f;for(r=0;r<v;r++){var n=s[r];if(!(!n.isActive||n.isSensor)){var t=n.activeContacts,i=t.length,a=n.collision,u=a.parentA,g=a.parentB,C=a.normal,P=a.tangent;for(f=0;f<i;f++){var c=t[f],h=c.vertex,m=c.normalImpulse,p=c.tangentImpulse;if(m!==0||p!==0){var S=C.x*m+P.x*p,y=C.y*m+P.y*p;u.isStatic||u.isSleeping||(u.positionPrev.x+=S*u.inverseMass,u.positionPrev.y+=y*u.inverseMass,u.anglePrev+=u.inverseInertia*((h.x-u.position.x)*y-(h.y-u.position.y)*S)),g.isStatic||g.isSleeping||(g.positionPrev.x-=S*g.inverseMass,g.positionPrev.y-=y*g.inverseMass,g.anglePrev-=g.inverseInertia*((h.x-g.position.x)*y-(h.y-g.position.y)*S))}}}}},e.solveVelocity=function(s,v){var r=v*v,f=e._restingThresh*r,n=e._frictionNormalMultiplier,t=e._restingThreshTangent*r,i=Number.MAX_VALUE,a=s.length,u,g,C,P;for(C=0;C<a;C++){var c=s[C];if(!(!c.isActive||c.isSensor)){var h=c.collision,m=h.parentA,p=h.parentB,S=m.velocity,y=p.velocity,w=h.normal.x,d=h.normal.y,M=h.tangent.x,I=h.tangent.y,A=c.activeContacts,E=A.length,B=1/E,L=m.inverseMass+p.inverseMass,F=c.friction*c.frictionStatic*n*r;for(S.x=m.position.x-m.positionPrev.x,S.y=m.position.y-m.positionPrev.y,y.x=p.position.x-p.positionPrev.x,y.y=p.position.y-p.positionPrev.y,m.angularVelocity=m.angle-m.anglePrev,p.angularVelocity=p.angle-p.anglePrev,P=0;P<E;P++){var k=A[P],V=k.vertex,H=V.x-m.position.x,W=V.y-m.position.y,D=V.x-p.position.x,Q=V.y-p.position.y,N=S.x-W*m.angularVelocity,z=S.y+H*m.angularVelocity,U=y.x-Q*p.angularVelocity,we=y.y+D*p.angularVelocity,ve=N-U,ge=z-we,ee=w*ve+d*ge,J=M*ve+I*ge,he=c.separation+ee,le=Math.min(he,1);le=he<0?0:le;var pe=le*F;J>pe||-J>pe?(g=J>0?J:-J,u=c.friction*(J>0?1:-1)*r,u<-g?u=-g:u>g&&(u=g)):(u=J,g=i);var xe=H*d-W*w,me=D*d-Q*w,de=B/(L+m.inverseInertia*xe*xe+p.inverseInertia*me*me),ne=(1+c.restitution)*ee*de;if(u*=de,ee*ee>f&&ee<0)k.normalImpulse=0;else{var Me=k.normalImpulse;k.normalImpulse+=ne,k.normalImpulse=Math.min(k.normalImpulse,0),ne=k.normalImpulse-Me}if(J*J>t)k.tangentImpulse=0;else{var Ie=k.tangentImpulse;k.tangentImpulse+=u,k.tangentImpulse<-g&&(k.tangentImpulse=-g),k.tangentImpulse>g&&(k.tangentImpulse=g),u=k.tangentImpulse-Ie}var ie=w*ne+M*u,ae=d*ne+I*u;m.isStatic||m.isSleeping||(m.positionPrev.x+=ie*m.inverseMass,m.positionPrev.y+=ae*m.inverseMass,m.anglePrev+=(H*ae-W*ie)*m.inverseInertia),p.isStatic||p.isSleeping||(p.positionPrev.x-=ie*p.inverseMass,p.positionPrev.y-=ae*p.inverseMass,p.anglePrev-=(D*ae-Q*ie)*p.inverseInertia)}}}}})()},function(T,R,x){var e={};T.exports=e;var l=x(9),o=x(0);(function(){e.create=function(s){return o.extend({table:{},list:[],collisionStart:[],collisionActive:[],collisionEnd:[]},s)},e.update=function(s,v,r){var f=s.list,n=f.length,t=s.table,i=v.length,a=s.collisionStart,u=s.collisionEnd,g=s.collisionActive,C,P,c,h;for(a.length=0,u.length=0,g.length=0,h=0;h<n;h++)f[h].confirmedActive=!1;for(h=0;h<i;h++)C=v[h],c=C.pair,c?(c.isActive?g.push(c):a.push(c),l.update(c,C,r),c.confirmedActive=!0):(c=l.create(C,r),t[c.id]=c,a.push(c),f.push(c));var m=[];for(n=f.length,h=0;h<n;h++)c=f[h],c.confirmedActive||(l.setActive(c,!1,r),u.push(c),!c.collision.bodyA.isSleeping&&!c.collision.bodyB.isSleeping&&m.push(h));for(h=0;h<m.length;h++)P=m[h]-h,c=f[P],f.splice(P,1),delete t[c.id]},e.clear=function(s){return s.table={},s.list.length=0,s.collisionStart.length=0,s.collisionActive.length=0,s.collisionEnd.length=0,s}})()},function(T,R,x){var e=T.exports=x(22);e.Axes=x(11),e.Bodies=x(12),e.Body=x(6),e.Bounds=x(1),e.Collision=x(8),e.Common=x(0),e.Composite=x(5),e.Composites=x(23),e.Constraint=x(10),e.Contact=x(17),e.Detector=x(14),e.Engine=x(18),e.Events=x(4),e.Grid=x(24),e.Mouse=x(13),e.MouseConstraint=x(25),e.Pair=x(9),e.Pairs=x(20),e.Plugin=x(15),e.Query=x(26),e.Render=x(16),e.Resolver=x(19),e.Runner=x(27),e.SAT=x(28),e.Sleeping=x(7),e.Svg=x(29),e.Vector=x(2),e.Vertices=x(3),e.World=x(30),e.Engine.run=e.Runner.run,e.Common.deprecated(e.Engine,"run","Engine.run ➤ use Matter.Runner.run(engine) instead")},function(T,R,x){var e={};T.exports=e;var l=x(15),o=x(0);(function(){e.name="matter-js",e.version="0.18.0",e.uses=[],e.used=[],e.use=function(){l.use(e,Array.prototype.slice.call(arguments))},e.before=function(s,v){return s=s.replace(/^Matter./,""),o.chainPathBefore(e,s,v)},e.after=function(s,v){return s=s.replace(/^Matter./,""),o.chainPathAfter(e,s,v)}})()},function(T,R,x){var e={};T.exports=e;var l=x(5),o=x(10),s=x(0),v=x(6),r=x(12),f=s.deprecated;(function(){e.stack=function(n,t,i,a,u,g,C){for(var P=l.create({label:"Stack"}),c=n,h=t,m,p=0,S=0;S<a;S++){for(var y=0,w=0;w<i;w++){var d=C(c,h,w,S,m,p);if(d){var M=d.bounds.max.y-d.bounds.min.y,I=d.bounds.max.x-d.bounds.min.x;M>y&&(y=M),v.translate(d,{x:I*.5,y:M*.5}),c=d.bounds.max.x+u,l.addBody(P,d),m=d,p+=1}else c+=u}h+=y+g,c=n}return P},e.chain=function(n,t,i,a,u,g){for(var C=n.bodies,P=1;P<C.length;P++){var c=C[P-1],h=C[P],m=c.bounds.max.y-c.bounds.min.y,p=c.bounds.max.x-c.bounds.min.x,S=h.bounds.max.y-h.bounds.min.y,y=h.bounds.max.x-h.bounds.min.x,w={bodyA:c,pointA:{x:p*t,y:m*i},bodyB:h,pointB:{x:y*a,y:S*u}},d=s.extend(w,g);l.addConstraint(n,o.create(d))}return n.label+=" Chain",n},e.mesh=function(n,t,i,a,u){var g=n.bodies,C,P,c,h,m;for(C=0;C<i;C++){for(P=1;P<t;P++)c=g[P-1+C*t],h=g[P+C*t],l.addConstraint(n,o.create(s.extend({bodyA:c,bodyB:h},u)));if(C>0)for(P=0;P<t;P++)c=g[P+(C-1)*t],h=g[P+C*t],l.addConstraint(n,o.create(s.extend({bodyA:c,bodyB:h},u))),a&&P>0&&(m=g[P-1+(C-1)*t],l.addConstraint(n,o.create(s.extend({bodyA:m,bodyB:h},u)))),a&&P<t-1&&(m=g[P+1+(C-1)*t],l.addConstraint(n,o.create(s.extend({bodyA:m,bodyB:h},u))))}return n.label+=" Mesh",n},e.pyramid=function(n,t,i,a,u,g,C){return e.stack(n,t,i,a,u,g,function(P,c,h,m,p,S){var y=Math.min(a,Math.ceil(i/2)),w=p?p.bounds.max.x-p.bounds.min.x:0;if(!(m>y)){m=y-m;var d=m,M=i-1-m;if(!(h<d||h>M)){S===1&&v.translate(p,{x:(h+(i%2===1?1:-1))*w,y:0});var I=p?h*w:0;return C(n+I+h*u,c,h,m,p,S)}}})},e.newtonsCradle=function(n,t,i,a,u){for(var g=l.create({label:"Newtons Cradle"}),C=0;C<i;C++){var P=1.9,c=r.circle(n+C*(a*P),t+u,a,{inertia:1/0,restitution:1,friction:0,frictionAir:1e-4,slop:1}),h=o.create({pointA:{x:n+C*(a*P),y:t},bodyB:c});l.addBody(g,c),l.addConstraint(g,h)}return g},f(e,"newtonsCradle","Composites.newtonsCradle ➤ moved to newtonsCradle example"),e.car=function(n,t,i,a,u){var g=v.nextGroup(!0),C=20,P=-i*.5+C,c=i*.5-C,h=0,m=l.create({label:"Car"}),p=r.rectangle(n,t,i,a,{collisionFilter:{group:g},chamfer:{radius:a*.5},density:2e-4}),S=r.circle(n+P,t+h,u,{collisionFilter:{group:g},friction:.8}),y=r.circle(n+c,t+h,u,{collisionFilter:{group:g},friction:.8}),w=o.create({bodyB:p,pointB:{x:P,y:h},bodyA:S,stiffness:1,length:0}),d=o.create({bodyB:p,pointB:{x:c,y:h},bodyA:y,stiffness:1,length:0});return l.addBody(m,p),l.addBody(m,S),l.addBody(m,y),l.addConstraint(m,w),l.addConstraint(m,d),m},f(e,"car","Composites.car ➤ moved to car example"),e.softBody=function(n,t,i,a,u,g,C,P,c,h){c=s.extend({inertia:1/0},c),h=s.extend({stiffness:.2,render:{type:"line",anchors:!1}},h);var m=e.stack(n,t,i,a,u,g,function(p,S){return r.circle(p,S,P,c)});return e.mesh(m,i,a,C,h),m.label="Soft Body",m},f(e,"softBody","Composites.softBody ➤ moved to softBody and cloth examples")})()},function(T,R,x){var e={};T.exports=e;var l=x(9),o=x(0),s=o.deprecated;(function(){e.create=function(v){var r={buckets:{},pairs:{},pairsList:[],bucketWidth:48,bucketHeight:48};return o.extend(r,v)},e.update=function(v,r,f,n){var t,i,a,u=f.world,g=v.buckets,C,P,c=!1;for(t=0;t<r.length;t++){var h=r[t];if(!(h.isSleeping&&!n)&&!(u.bounds&&(h.bounds.max.x<u.bounds.min.x||h.bounds.min.x>u.bounds.max.x||h.bounds.max.y<u.bounds.min.y||h.bounds.min.y>u.bounds.max.y))){var m=e._getRegion(v,h);if(!h.region||m.id!==h.region.id||n){(!h.region||n)&&(h.region=m);var p=e._regionUnion(m,h.region);for(i=p.startCol;i<=p.endCol;i++)for(a=p.startRow;a<=p.endRow;a++){P=e._getBucketId(i,a),C=g[P];var S=i>=m.startCol&&i<=m.endCol&&a>=m.startRow&&a<=m.endRow,y=i>=h.region.startCol&&i<=h.region.endCol&&a>=h.region.startRow&&a<=h.region.endRow;!S&&y&&y&&C&&e._bucketRemoveBody(v,C,h),(h.region===m||S&&!y||n)&&(C||(C=e._createBucket(g,P)),e._bucketAddBody(v,C,h))}h.region=m,c=!0}}}c&&(v.pairsList=e._createActivePairsList(v))},s(e,"update","Grid.update ➤ replaced by Matter.Detector"),e.clear=function(v){v.buckets={},v.pairs={},v.pairsList=[]},s(e,"clear","Grid.clear ➤ replaced by Matter.Detector"),e._regionUnion=function(v,r){var f=Math.min(v.startCol,r.startCol),n=Math.max(v.endCol,r.endCol),t=Math.min(v.startRow,r.startRow),i=Math.max(v.endRow,r.endRow);return e._createRegion(f,n,t,i)},e._getRegion=function(v,r){var f=r.bounds,n=Math.floor(f.min.x/v.bucketWidth),t=Math.floor(f.max.x/v.bucketWidth),i=Math.floor(f.min.y/v.bucketHeight),a=Math.floor(f.max.y/v.bucketHeight);return e._createRegion(n,t,i,a)},e._createRegion=function(v,r,f,n){return{id:v+","+r+","+f+","+n,startCol:v,endCol:r,startRow:f,endRow:n}},e._getBucketId=function(v,r){return"C"+v+"R"+r},e._createBucket=function(v,r){var f=v[r]=[];return f},e._bucketAddBody=function(v,r,f){var n=v.pairs,t=l.id,i=r.length,a;for(a=0;a<i;a++){var u=r[a];if(!(f.id===u.id||f.isStatic&&u.isStatic)){var g=t(f,u),C=n[g];C?C[2]+=1:n[g]=[f,u,1]}}r.push(f)},e._bucketRemoveBody=function(v,r,f){var n=v.pairs,t=l.id,i;r.splice(o.indexOf(r,f),1);var a=r.length;for(i=0;i<a;i++){var u=n[t(f,r[i])];u&&(u[2]-=1)}},e._createActivePairsList=function(v){var r,f=v.pairs,n=o.keys(f),t=n.length,i=[],a;for(a=0;a<t;a++)r=f[n[a]],r[2]>0?i.push(r):delete f[n[a]];return i}})()},function(T,R,x){var e={};T.exports=e;var l=x(3),o=x(7),s=x(13),v=x(4),r=x(14),f=x(10),n=x(5),t=x(0),i=x(1);(function(){e.create=function(a,u){var g=(a?a.mouse:null)||(u?u.mouse:null);g||(a&&a.render&&a.render.canvas?g=s.create(a.render.canvas):u&&u.element?g=s.create(u.element):(g=s.create(),t.warn("MouseConstraint.create: options.mouse was undefined, options.element was undefined, may not function as expected")));var C=f.create({label:"Mouse Constraint",pointA:g.position,pointB:{x:0,y:0},length:.01,stiffness:.1,angularStiffness:1,render:{strokeStyle:"#90EE90",lineWidth:3}}),P={type:"mouseConstraint",mouse:g,element:null,body:null,constraint:C,collisionFilter:{category:1,mask:4294967295,group:0}},c=t.extend(P,u);return v.on(a,"beforeUpdate",function(){var h=n.allBodies(a.world);e.update(c,h),e._triggerEvents(c)}),c},e.update=function(a,u){var g=a.mouse,C=a.constraint,P=a.body;if(g.button===0){if(C.bodyB)o.set(C.bodyB,!1),C.pointA=g.position;else for(var c=0;c<u.length;c++)if(P=u[c],i.contains(P.bounds,g.position)&&r.canCollide(P.collisionFilter,a.collisionFilter))for(var h=P.parts.length>1?1:0;h<P.parts.length;h++){var m=P.parts[h];if(l.contains(m.vertices,g.position)){C.pointA=g.position,C.bodyB=a.body=P,C.pointB={x:g.position.x-P.position.x,y:g.position.y-P.position.y},C.angleB=P.angle,o.set(P,!1),v.trigger(a,"startdrag",{mouse:g,body:P});break}}}else C.bodyB=a.body=null,C.pointB=null,P&&v.trigger(a,"enddrag",{mouse:g,body:P})},e._triggerEvents=function(a){var u=a.mouse,g=u.sourceEvents;g.mousemove&&v.trigger(a,"mousemove",{mouse:u}),g.mousedown&&v.trigger(a,"mousedown",{mouse:u}),g.mouseup&&v.trigger(a,"mouseup",{mouse:u}),s.clearSourceEvents(u)}})()},function(T,R,x){var e={};T.exports=e;var l=x(2),o=x(8),s=x(1),v=x(12),r=x(3);(function(){e.collides=function(f,n){for(var t=[],i=n.length,a=f.bounds,u=o.collides,g=s.overlaps,C=0;C<i;C++){var P=n[C],c=P.parts.length,h=c===1?0:1;if(g(P.bounds,a))for(var m=h;m<c;m++){var p=P.parts[m];if(g(p.bounds,a)){var S=u(p,f);if(S){t.push(S);break}}}}return t},e.ray=function(f,n,t,i){i=i||1e-100;for(var a=l.angle(n,t),u=l.magnitude(l.sub(n,t)),g=(t.x+n.x)*.5,C=(t.y+n.y)*.5,P=v.rectangle(g,C,u,i,{angle:a}),c=e.collides(P,f),h=0;h<c.length;h+=1){var m=c[h];m.body=m.bodyB=m.bodyA}return c},e.region=function(f,n,t){for(var i=[],a=0;a<f.length;a++){var u=f[a],g=s.overlaps(u.bounds,n);(g&&!t||!g&&t)&&i.push(u)}return i},e.point=function(f,n){for(var t=[],i=0;i<f.length;i++){var a=f[i];if(s.contains(a.bounds,n))for(var u=a.parts.length===1?0:1;u<a.parts.length;u++){var g=a.parts[u];if(s.contains(g.bounds,n)&&r.contains(g.vertices,n)){t.push(a);break}}}return t}})()},function(T,R,x){var e={};T.exports=e;var l=x(4),o=x(18),s=x(0);(function(){var v,r;if(typeof window!="undefined"&&(v=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame,r=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame),!v){var f;v=function(n){f=setTimeout(function(){n(s.now())},1e3/60)},r=function(){clearTimeout(f)}}e.create=function(n){var t={fps:60,correction:1,deltaSampleSize:60,counterTimestamp:0,frameCounter:0,deltaHistory:[],timePrev:null,timeScalePrev:1,frameRequestId:null,isFixed:!1,enabled:!0},i=s.extend(t,n);return i.delta=i.delta||1e3/i.fps,i.deltaMin=i.deltaMin||1e3/i.fps,i.deltaMax=i.deltaMax||1e3/(i.fps*.5),i.fps=1e3/i.delta,i},e.run=function(n,t){return typeof n.positionIterations!="undefined"&&(t=n,n=e.create()),function i(a){n.frameRequestId=v(i),a&&n.enabled&&e.tick(n,t,a)}(),n},e.tick=function(n,t,i){var a=t.timing,u=1,g,C={timestamp:a.timestamp};l.trigger(n,"beforeTick",C),n.isFixed?g=n.delta:(g=i-n.timePrev||n.delta,n.timePrev=i,n.deltaHistory.push(g),n.deltaHistory=n.deltaHistory.slice(-n.deltaSampleSize),g=Math.min.apply(null,n.deltaHistory),g=g<n.deltaMin?n.deltaMin:g,g=g>n.deltaMax?n.deltaMax:g,u=g/n.delta,n.delta=g),n.timeScalePrev!==0&&(u*=a.timeScale/n.timeScalePrev),a.timeScale===0&&(u=0),n.timeScalePrev=a.timeScale,n.correction=u,n.frameCounter+=1,i-n.counterTimestamp>=1e3&&(n.fps=n.frameCounter*((i-n.counterTimestamp)/1e3),n.counterTimestamp=i,n.frameCounter=0),l.trigger(n,"tick",C),l.trigger(n,"beforeUpdate",C),o.update(t,g,u),l.trigger(n,"afterUpdate",C),l.trigger(n,"afterTick",C)},e.stop=function(n){r(n.frameRequestId)},e.start=function(n,t){e.run(n,t)}})()},function(T,R,x){var e={};T.exports=e;var l=x(8),o=x(0),s=o.deprecated;(function(){e.collides=function(v,r){return l.collides(v,r)},s(e,"collides","SAT.collides ➤ replaced by Collision.collides")})()},function(T,R,x){var e={};T.exports=e,x(1);var l=x(0);(function(){e.pathToVertices=function(o,s){typeof window!="undefined"&&!("SVGPathSeg"in window)&&l.warn("Svg.pathToVertices: SVGPathSeg not defined, a polyfill is required.");var v,r,f,n,t,i,a,u,g,C,P=[],c,h,m=0,p=0,S=0;s=s||15;var y=function(d,M,I){var A=I%2===1&&I>1;if(!g||d!=g.x||M!=g.y){g&&A?(c=g.x,h=g.y):(c=0,h=0);var E={x:c+d,y:h+M};(A||!g)&&(g=E),P.push(E),p=c+d,S=h+M}},w=function(d){var M=d.pathSegTypeAsLetter.toUpperCase();if(M!=="Z"){switch(M){case"M":case"L":case"T":case"C":case"S":case"Q":p=d.x,S=d.y;break;case"H":p=d.x;break;case"V":S=d.y;break}y(p,S,d.pathSegType)}};for(e._svgPathToAbsolute(o),f=o.getTotalLength(),i=[],v=0;v<o.pathSegList.numberOfItems;v+=1)i.push(o.pathSegList.getItem(v));for(a=i.concat();m<f;){if(C=o.getPathSegAtLength(m),t=i[C],t!=u){for(;a.length&&a[0]!=t;)w(a.shift());u=t}switch(t.pathSegTypeAsLetter.toUpperCase()){case"C":case"T":case"S":case"Q":case"A":n=o.getPointAtLength(m),y(n.x,n.y,0);break}m+=s}for(v=0,r=a.length;v<r;++v)w(a[v]);return P},e._svgPathToAbsolute=function(o){for(var s,v,r,f,n,t,i=o.pathSegList,a=0,u=0,g=i.numberOfItems,C=0;C<g;++C){var P=i.getItem(C),c=P.pathSegTypeAsLetter;if(/[MLHVCSQTA]/.test(c))"x"in P&&(a=P.x),"y"in P&&(u=P.y);else switch("x1"in P&&(r=a+P.x1),"x2"in P&&(n=a+P.x2),"y1"in P&&(f=u+P.y1),"y2"in P&&(t=u+P.y2),"x"in P&&(a+=P.x),"y"in P&&(u+=P.y),c){case"m":i.replaceItem(o.createSVGPathSegMovetoAbs(a,u),C);break;case"l":i.replaceItem(o.createSVGPathSegLinetoAbs(a,u),C);break;case"h":i.replaceItem(o.createSVGPathSegLinetoHorizontalAbs(a),C);break;case"v":i.replaceItem(o.createSVGPathSegLinetoVerticalAbs(u),C);break;case"c":i.replaceItem(o.createSVGPathSegCurvetoCubicAbs(a,u,r,f,n,t),C);break;case"s":i.replaceItem(o.createSVGPathSegCurvetoCubicSmoothAbs(a,u,n,t),C);break;case"q":i.replaceItem(o.createSVGPathSegCurvetoQuadraticAbs(a,u,r,f),C);break;case"t":i.replaceItem(o.createSVGPathSegCurvetoQuadraticSmoothAbs(a,u),C);break;case"a":i.replaceItem(o.createSVGPathSegArcAbs(a,u,P.r1,P.r2,P.angle,P.largeArcFlag,P.sweepFlag),C);break;case"z":case"Z":a=s,u=v;break}(c=="M"||c=="m")&&(s=a,v=u)}}})()},function(T,R,x){var e={};T.exports=e;var l=x(5);x(0),function(){e.create=l.create,e.add=l.add,e.remove=l.remove,e.clear=l.clear,e.addComposite=l.addComposite,e.addBody=l.addBody,e.addConstraint=l.addConstraint}()}])})})(Pe);var G=Pe.exports;function Ue(O){const K=O.offsetWidth,T=O.offsetHeight,R=K/2;O.style.position="relative",O.style.boxSizing="border-box",O.style.width=`${K}px`,O.style.height=`${T}px`;const x=G.Engine.create({constraintIterations:4,positionIterations:8,velocityIterations:8}),e=x.world,l=G.Render.create({engine:x,options:{width:K,height:T,background:"transparent",wireframeBackground:"transparent"}});G.Render.run(l);const o=G.Runner.create();G.Runner.run(o,x);const s=1024,v=G.Bodies.rectangle(R,T+s/2,K,s,{isStatic:!0,restitution:.1,friction:2});G.World.add(e,[v]);const r=Array.from(O.children),f=[];for(const g of r){const C=g.dataset.physicsX?parseInt(g.dataset.physicsX):g.offsetLeft,P=g.dataset.physicsY?parseInt(g.dataset.physicsY):g.offsetTop;let c;if(g.classList.contains("_physics_circle_"))c=G.Bodies.circle(C+g.offsetWidth/2,P+g.offsetHeight/2,Math.max(g.offsetWidth,g.offsetHeight)/2,{restitution:.5});else{const h=window.getComputedStyle(g);c=G.Bodies.rectangle(C+g.offsetWidth/2,P+g.offsetHeight/2,g.offsetWidth,g.offsetHeight,{chamfer:{radius:parseInt(h.borderRadius||"0",10)},restitution:.5})}g.id=c.id,f.push(c)}G.World.add(x.world,f);const n=G.Mouse.create(O),t=G.MouseConstraint.create(x,{mouse:n,constraint:{stiffness:.1,render:{visible:!1}}});G.World.add(x.world,t),l.mouse=n;for(const g of r)g.style.position="absolute",g.style.top=0,g.style.left=0,g.style.margin=0;window.requestAnimationFrame(a);let i=!1;function a(){for(const g of r){const C=f.find(m=>m.id.toString()===g.id.toString());if(C==null)continue;const P=C.position.x-g.offsetWidth/2,c=C.position.y-g.offsetHeight/2,h=C.angle;g.style.transform=`translate(${P}px, ${c}px) rotate(${h}rad)`}i||window.requestAnimationFrame(a)}const u=window.setInterval(()=>{for(const g of f)g.position.y>T+1024&&G.World.remove(e,g)},1e3*10);return{stop:()=>{i=!0,G.Runner.stop(o),window.clearInterval(u)}}}const _=O=>(Oe("data-v-f7405050"),O=O(),Ge(),O),$e={style:{overflow:"clip"}},Qe={class:"_formRoot znqjceqz"},Ze=_(()=>Z("div",{id:"debug"},null,-1)),Ke=_(()=>Z("div",{class:"misskey"},"Iceshrimp",-1)),Je={class:"version"},Xe=["data-physics-x","data-physics-y"],Ye={class:"_formBlock",style:{"text-align":"center"}},je={class:"_formLinksGrid"},qe=_(()=>Z("i",{class:"ph-code ph-bold ph-lg"},null,-1)),be=_(()=>Z("i",{class:"ph-translate ph-bold ph-lg"},null,-1)),_e=_(()=>Z("i",{class:"ph-chats-circle ph-bold ph-lg"},null,-1)),et=_(()=>Z("i",{class:"ph-newspaper ph-bold ph-lg"},null,-1)),tt=Re({__name:"about-iceshrimp",setup(O){let K=!1,T=ce([]),R=ce(null);const x=ce();function e(){var n;const r=ye.state.reactions,f=(n=x.value)==null?void 0:n.offsetWidth;for(let t=0;t<32;t++)T.value.push({id:t.toString(),top:-(128+Math.random()*256),left:Math.random()*f,emoji:r[Math.floor(Math.random()*r.length)]});We(()=>{K=!0})}function l(){K&&(K=!1,R.value=Ue(x.value))}Le(()=>{R.value&&R.value.stop()});const o=ue(()=>[]),s=ue(()=>[]),v=ue(ye.makeGetterSetter("darkMode"));return Ae({title:Y.ts.aboutIceshrimp,icon:null}),(r,f)=>{const n=re("MkPageHeader"),t=re("MkEmoji"),i=re("MkSpacer"),a=re("MkStickyContainer"),u=ke("panel");return j(),Fe(a,null,{header:$(()=>[X(n,{actions:o.value,tabs:s.value},null,8,["actions","tabs"])]),default:$(()=>[Z("div",$e,[X(i,{"content-max":600,"margin-min":20},{default:$(()=>[Z("div",Qe,[Ze,Ve((j(),te("div",{ref_key:"containerEl",ref:x,class:Ce(["_formBlock about",{playing:R.value!=null}])},[v.value?Se("",!0):(j(),te("img",{key:0,src:Ne,alt:"",class:"icon",draggable:"false",onLoad:e,onClick:l},null,32)),v.value?(j(),te("img",{key:1,src:ze,alt:"",class:"icon",draggable:"false",onLoad:e,onClick:l},null,32)):Se("",!0),Ke,Z("div",Je,"v"+q(b(Te)),1),(j(!0),te(De,null,He(T.value,g=>(j(),te("span",{key:g.id,class:Ce(["emoji",{_physics_circle_:!g.emoji.startsWith(":")}]),"data-physics-x":g.left,"data-physics-y":g.top},[X(t,{class:"emoji",emoji:g.emoji,"custom-emojis":r.$instance.emojis,"is-reaction":!1,normal:!0,"no-style":!0},null,8,["emoji","custom-emojis"])],10,Xe))),128))],2)),[[u]]),Z("div",Ye,q(b(Y).ts._aboutIceshrimp.about),1),X(Be,null,{default:$(()=>[Z("div",je,[X(se,{to:"https://iceshrimp.dev/iceshrimp/iceshrimp",external:""},{icon:$(()=>[qe]),default:$(()=>[oe(" "+q(b(Y).ts._aboutIceshrimp.source),1)]),_:1}),X(se,{to:"https://translate.iceshrimp.dev/",external:""},{icon:$(()=>[be]),default:$(()=>[oe(" "+q(b(Y).ts._aboutIceshrimp.translation),1)]),_:1}),X(se,{to:"https://matrix.to/#/%23iceshrimp-dev:161.rocks",external:""},{icon:$(()=>[_e]),default:$(()=>[oe(" "+q(b(Y).ts._aboutIceshrimp.chatroom),1)]),_:1}),X(se,{to:"https://iceshrimp.dev/iceshrimp/iceshrimp/src/branch/dev/CHANGELOG.md",external:""},{icon:$(()=>[et]),default:$(()=>[oe(" "+q(b(Y).ts._aboutIceshrimp.changelog),1)]),_:1})])]),_:1})])]),_:1})])]),_:1})}}}),rt=Ee(tt,[["__scopeId","data-v-f7405050"]]);export{rt as default};
