reverting changes on folder '1', instead start a new folder 'a1'
|
|
@ -80,6 +80,10 @@
|
|||
</div>
|
||||
|
||||
<canvas id="screen" resize style="z-index:0"></canvas>
|
||||
<div id="objstring1" class="objstring fw7 courier f3 white" style="z-index:1">들리는 상처들의 믹스</div>
|
||||
<div id="objstring3" class="objstring fw7 courier f3 white" style="z-index:-1">연결 확인</div>
|
||||
<div id="objstring4" class="objstring fw7 courier f3 white" style="z-index:-1">믹스 #1</div>
|
||||
<div id="objstring5" class="objstring fw7 courier f3 white" style="z-index:-1">믹스 #2</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -20,10 +20,8 @@ $(document).ready(function() {
|
|||
SVGImport_size1('./imgs/arrow-circle-left.svg'),
|
||||
SVGImport_size1('./imgs/hand-point-right-regular.svg'),
|
||||
SVGImport_size1('./imgs/listen-icon.svg'),
|
||||
SVGImport_size1('./imgs/plus.svg'),
|
||||
SVGImport_size1('./imgs/minus.svg'),
|
||||
SVGImport_size1('./imgs/faster.svg'),
|
||||
SVGImport_size1('./imgs/slower.svg'),
|
||||
SVGImport_size1('./imgs/iconmonstr-plus-4.svg'),
|
||||
SVGImport_size1('./imgs/iconmonstr-minus-4.svg'),
|
||||
//clap
|
||||
AudioImport_p5("./audio/clap@2/" + ("0" + getRandomInt(1, 2)).slice(-2) + ".mp3"),
|
||||
//beach_sounds page 1 ==> 7
|
||||
|
|
@ -52,27 +50,25 @@ $(document).ready(function() {
|
|||
var iconsound = imports[4];
|
||||
var plus = imports[5];
|
||||
var minus = imports[6];
|
||||
var faster = imports[7];
|
||||
var slower = imports[8];
|
||||
//clap
|
||||
var clap = imports[9];
|
||||
var clap = imports[7];
|
||||
//beach list
|
||||
//NOTE: beware! same key is not allowed!! every keys should have different name!!
|
||||
var beach_sounds = {
|
||||
'2011_2011' : imports[10],
|
||||
'2011_벨' : imports[11],
|
||||
'2011_숲' : imports[12],
|
||||
'2011_바람' : imports[13],
|
||||
'2011_헤비레인' : imports[14],
|
||||
'고요6' : imports[15],
|
||||
'고요7' : imports[16],
|
||||
'검은산_뚜루' : imports[17],
|
||||
'검은산_다급' : imports[18],
|
||||
'검은산_부엉' : imports[19],
|
||||
'검은산_불안' : imports[20],
|
||||
'검은산_쏟아짐' : imports[21],
|
||||
'고요13' : imports[22],
|
||||
'고요14' : imports[23],
|
||||
'2011_2011' : imports[8],
|
||||
'2011_벨' : imports[9],
|
||||
'2011_숲' : imports[10],
|
||||
'2011_바람' : imports[11],
|
||||
'2011_헤비레인' : imports[12],
|
||||
'고요6' : imports[13],
|
||||
'고요7' : imports[14],
|
||||
'검은산_뚜루' : imports[15],
|
||||
'검은산_다급' : imports[16],
|
||||
'검은산_부엉' : imports[17],
|
||||
'검은산_불안' : imports[18],
|
||||
'검은산_쏟아짐' : imports[19],
|
||||
'고요13' : imports[20],
|
||||
'고요14' : imports[21],
|
||||
};
|
||||
//NOTE: beware! same key is not allowed!! every keys should have different name!!
|
||||
var beach_players = {
|
||||
|
|
@ -181,12 +177,12 @@ $(document).ready(function() {
|
|||
var netstat = new Path.Circle({
|
||||
center: view.bounds.topRight + [-vssw / 2, +vssw / 2],
|
||||
radius: vssw / 4,
|
||||
fillColor: '#51D0FD',
|
||||
strokeWidth: vssw * 0.03,
|
||||
strokeColor: '#FFE40A',
|
||||
dashArray: [vssw * 0.05, vssw * 0.05],
|
||||
fillColor: 'hotpink',
|
||||
strokeWidth: 2,
|
||||
strokeColor: 'gray',
|
||||
dashArray: [4, 4],
|
||||
onFrame: function(event) {
|
||||
this.rotate(0.2);
|
||||
this.rotate(1);
|
||||
}
|
||||
});
|
||||
netstat.fillColor.alpha = 0;
|
||||
|
|
@ -208,7 +204,7 @@ $(document).ready(function() {
|
|||
aprev.scale(vssw * 1.5);
|
||||
aprev.position = [0, 0]; //reset position, before relative positioning !!
|
||||
aprev.translate([vssw, vssw * 1.8]);
|
||||
aprev.fillColor = '#FFE40A';
|
||||
aprev.fillColor = 'pink';
|
||||
aprev._socket = socket;
|
||||
aprev._isactive = false;
|
||||
aprev._activate = function() {
|
||||
|
|
@ -230,7 +226,7 @@ $(document).ready(function() {
|
|||
anext.scale(vssw * 1.5);
|
||||
anext.position = [0, 0]; //reset position, before relative positioning !!
|
||||
anext.translate([vssw * 9, vssw * 1.8]);
|
||||
anext.fillColor = '#FFE40A';
|
||||
anext.fillColor = 'pink';
|
||||
anext._socket = socket;
|
||||
anext._isactive = false;
|
||||
anext._activate = function() {
|
||||
|
|
@ -248,28 +244,17 @@ $(document).ready(function() {
|
|||
};
|
||||
|
||||
//title background
|
||||
var titlebox = new Path.Rectangle({
|
||||
new Path.Rectangle({
|
||||
point: [vssw * 2, vssw * 1],
|
||||
size: [vssw * 6, vssw * 1.5],
|
||||
fillColor: 'white',
|
||||
radius: vssw * 0.8,
|
||||
opacity: 0.3,
|
||||
});
|
||||
radius: 30,
|
||||
}).opacity = 0.3;
|
||||
|
||||
//screen #1 - 'home'
|
||||
changeScreen(1);
|
||||
new Path.Rectangle([0, 0], vs).fillColor = '#999';
|
||||
|
||||
//title - text
|
||||
new PointText({
|
||||
point: titlebox.bounds.center,
|
||||
content: ' 사운드-랩 § soundLab ',
|
||||
fillColor: 'white',
|
||||
fontFamily: 'AppleGothic, Sans-serif',
|
||||
fontWeight: 'bold',
|
||||
fontSize: '3em',
|
||||
}).fitBounds(titlebox.bounds);
|
||||
|
||||
//hello, screen.
|
||||
phonehand.addTo(project);
|
||||
phonehand.scale(vsw / 1.5);
|
||||
|
|
@ -278,38 +263,28 @@ $(document).ready(function() {
|
|||
|
||||
//screen #2 - check
|
||||
changeScreen(2);
|
||||
new Path.Rectangle([0, 0], vs).fillColor = '#05C183';
|
||||
|
||||
//title - text
|
||||
new PointText({
|
||||
point: [vssw * 2, vssw * 1],
|
||||
content: ' 연결 확인 ',
|
||||
fillColor: 'white',
|
||||
fontFamily: 'AppleGothic, Sans-serif',
|
||||
fontWeight: 'bold',
|
||||
fontSize: '3em'
|
||||
}).fitBounds(titlebox.bounds);
|
||||
new Path.Rectangle([0, 0], vs).fillColor = '#393';
|
||||
|
||||
//TODO: info text.
|
||||
new PointText({
|
||||
content: "네트워크 테스트!",
|
||||
point: view.center + [-vssw * 3, -vssw * 2],
|
||||
fontWeight: 'bold',
|
||||
fontSize: vssw * 1.0,
|
||||
fontSize: '2em',
|
||||
fillColor: 'gold'
|
||||
});
|
||||
new PointText({
|
||||
content: "사운드 테스트!",
|
||||
point: view.center + [-vssw * 3, vssw * 0],
|
||||
fontWeight: 'bold',
|
||||
fontSize: vssw * 1.0,
|
||||
fontSize: '2em',
|
||||
fillColor: 'pink'
|
||||
});
|
||||
new PointText({
|
||||
content: "동그라미 터치!",
|
||||
point: view.center + [-vssw * 3, vssw * 2],
|
||||
fontWeight: 'bold',
|
||||
fontSize: vssw * 1.0,
|
||||
fontSize: '2em',
|
||||
fillColor: 'red'
|
||||
});
|
||||
new Path.Circle({
|
||||
|
|
@ -324,17 +299,7 @@ $(document).ready(function() {
|
|||
|
||||
//screen #3 - beach page #1
|
||||
changeScreen(3);
|
||||
new Path.Rectangle([0, 0], vs).fillColor = '#555';
|
||||
|
||||
//title - text
|
||||
new PointText({
|
||||
point: [vssw * 2, vssw * 1],
|
||||
content: ' 믹스 #1 ',
|
||||
fillColor: 'white',
|
||||
fontFamily: 'AppleGothic, Sans-serif',
|
||||
fontWeight: 'bold',
|
||||
fontSize: '3em'
|
||||
}).fitBounds(titlebox.bounds);
|
||||
new Path.Rectangle([0, 0], vs).fillColor = '#333';
|
||||
|
||||
//
|
||||
for (var row = 0; row < 7; row++) {
|
||||
|
|
@ -346,10 +311,9 @@ $(document).ready(function() {
|
|||
children: [
|
||||
//play button
|
||||
new Path.Rectangle({
|
||||
name: 'play_btn',
|
||||
point: [vssw * 0.8, row * vssw * 1.4 + vssw * 3.5],
|
||||
radius: vssw * 0.4,
|
||||
size: [vssw * 1.5, vssw * 0.7],
|
||||
size: [vssw * 1.6, vssw * 0.7],
|
||||
fillColor: new Color({
|
||||
hue: getRandom(20, 60),
|
||||
saturation: 1,
|
||||
|
|
@ -360,7 +324,6 @@ $(document).ready(function() {
|
|||
par._players.push(par._player.start()._source); // start playbacks and collect their '_source's..
|
||||
par._playcount++;
|
||||
par.children.playcounter.content = '' + par._playcount;
|
||||
par.children.speedcounter.content = Number.parseFloat(1).toFixed(1);
|
||||
//
|
||||
par._socket.emit('sound', {
|
||||
name: par._key,
|
||||
|
|
@ -369,28 +332,13 @@ $(document).ready(function() {
|
|||
});
|
||||
}
|
||||
}),
|
||||
//playcounterbox
|
||||
new Path.Rectangle({
|
||||
name: 'playcounterbox',
|
||||
point: [vssw * 2.3, row * vssw * 1.4 + vssw * 3.5],
|
||||
size: [vssw * 0.6, vssw * 0.8],
|
||||
}),
|
||||
//playcounter
|
||||
new PointText({
|
||||
name: 'playcounter',
|
||||
content: '' + 0,
|
||||
fillColor: 'white',
|
||||
fontSize: '2em',
|
||||
fontWeight: 'bold'
|
||||
}),
|
||||
//stop button
|
||||
new Path.Rectangle({
|
||||
name: 'stop_btn',
|
||||
point: [vssw * 2.9, row * vssw * 1.4 + vssw * 3.5],
|
||||
point: [vssw * 2.8, row * vssw * 1.4 + vssw * 3.5],
|
||||
radius: vssw * 0.4,
|
||||
size: [vssw * 1.6, vssw * 0.7],
|
||||
fillColor: new Color({
|
||||
hue: getRandom(120, 180),
|
||||
hue: getRandom(120, 250),
|
||||
saturation: 1,
|
||||
brightness: 1
|
||||
}),
|
||||
|
|
@ -401,9 +349,6 @@ $(document).ready(function() {
|
|||
par._playcount--;
|
||||
par.children.playcounter.content = '' + par._playcount;
|
||||
}
|
||||
if (par._players.length == 0) {
|
||||
par.children.speedcounter.content = Number.parseFloat(1).toFixed(1);
|
||||
}
|
||||
//
|
||||
par._socket.emit('sound', {
|
||||
name: par._key,
|
||||
|
|
@ -412,23 +357,29 @@ $(document).ready(function() {
|
|||
});
|
||||
}
|
||||
}),
|
||||
//playcounter
|
||||
new PointText({
|
||||
name: 'playcounter',
|
||||
content: '' + 0,
|
||||
point: [vssw * 4.8, row * vssw * 1.4 + vssw * 3.5 + vssw * 0.6],
|
||||
fillColor: 'white',
|
||||
fontSize: '2em',
|
||||
fontWeight: 'bold'
|
||||
}),
|
||||
//faster button
|
||||
new Path.Rectangle({
|
||||
name: 'faster_btn',
|
||||
point: [vssw * 5.0, row * vssw * 1.4 + vssw * 3.5],
|
||||
point: [vssw * 5.8, row * vssw * 1.4 + vssw * 3.5],
|
||||
radius: vssw * 0.4,
|
||||
size: [vssw * 1.6, vssw * 0.7],
|
||||
strokeColor: new Color({
|
||||
fillColor: new Color({
|
||||
hue: getRandom(20, 60),
|
||||
saturation: 1,
|
||||
brightness: 1
|
||||
}),
|
||||
strokeWidth : vssw * 0.03,
|
||||
onMouseDown: function() {
|
||||
var par = this.parent;
|
||||
if (par._players.length > 0) {
|
||||
par._players[par._players.length - 1].playbackRate.value += 0.2;
|
||||
par.children.speedcounter.content = Number.parseFloat(par._players[par._players.length - 1].playbackRate.value).toFixed(1);
|
||||
}
|
||||
//
|
||||
par._socket.emit('sound', {
|
||||
|
|
@ -438,37 +389,20 @@ $(document).ready(function() {
|
|||
});
|
||||
}
|
||||
}),
|
||||
//speedcounterbox
|
||||
new Path.Rectangle({
|
||||
name: 'speedcounterbox',
|
||||
point: [vssw * 6.6, row * vssw * 1.4 + vssw * 3.5],
|
||||
size: [vssw * 0.6, vssw * 0.8],
|
||||
}),
|
||||
//speedcounter
|
||||
new PointText({
|
||||
name: 'speedcounter',
|
||||
content: '' + 0,
|
||||
fillColor: 'white',
|
||||
fontSize: '2em',
|
||||
fontWeight: 'bold'
|
||||
}),
|
||||
//slower button
|
||||
new Path.Rectangle({
|
||||
name: 'slower_btn',
|
||||
point: [vssw * 7.8, row * vssw * 1.4 + vssw * 3.5],
|
||||
radius: vssw * 0.4,
|
||||
size: [vssw * 1.6, vssw * 0.7],
|
||||
strokeColor: new Color({
|
||||
hue: getRandom(120, 180),
|
||||
fillColor: new Color({
|
||||
hue: getRandom(120, 250),
|
||||
saturation: 1,
|
||||
brightness: 1
|
||||
}),
|
||||
strokeWidth : vssw * 0.03,
|
||||
onMouseDown: function() {
|
||||
var par = this.parent;
|
||||
if (par._players.length > 0) {
|
||||
par._players[par._players.length - 1].playbackRate.value -= 0.2;
|
||||
par.children.speedcounter.content = Number.parseFloat(par._players[par._players.length - 1].playbackRate.value).toFixed(1);
|
||||
}
|
||||
//
|
||||
par._socket.emit('sound', {
|
||||
|
|
@ -487,23 +421,6 @@ $(document).ready(function() {
|
|||
_init: function() {
|
||||
this._player.loop = true;
|
||||
this._player.retrigger = true;
|
||||
// iconifying...
|
||||
var fast = faster.clone().addTo(project);
|
||||
fast.fitBounds(this.children.faster_btn.bounds);
|
||||
fast.fillColor = "orange";
|
||||
var slow = slower.clone().addTo(project);
|
||||
slow.fitBounds(this.children.slower_btn.bounds);
|
||||
slow.fillColor = "lime";
|
||||
var player_increase = plus.clone().addTo(project);
|
||||
player_increase.fitBounds(this.children.play_btn.bounds);
|
||||
player_increase.fillColor = "#555";
|
||||
var player_decrease = minus.clone().addTo(project);
|
||||
player_decrease.fitBounds(this.children.stop_btn.bounds);
|
||||
player_decrease.fillColor = "#555";
|
||||
// positioning numberboxes...
|
||||
this.children.playcounter.fitBounds(this.children.playcounterbox.bounds);
|
||||
this.children.speedcounter.fitBounds(this.children.speedcounterbox.bounds);
|
||||
this.children.speedcounter.content = Number.parseFloat(1).toFixed(1);
|
||||
//socket io event handling..
|
||||
var that = this;
|
||||
this._socket.on('sound', function(msg) {
|
||||
|
|
@ -512,25 +429,19 @@ $(document).ready(function() {
|
|||
that._players.push(that._player.start()._source); // start playbacks and collect their '_source's..
|
||||
that._playcount++;
|
||||
that.children.playcounter.content = '' + that._playcount;
|
||||
that.children.speedcounter.content = Number.parseFloat(1).toFixed(1);
|
||||
} else if (msg.action == 'stop') {
|
||||
if (that._players.length > 0) {
|
||||
(that._players.shift()).stop();
|
||||
that._playcount--;
|
||||
that.children.playcounter.content = '' + that._playcount;
|
||||
}
|
||||
if (that._players.length == 0) {
|
||||
that.children.speedcounter.content = Number.parseFloat(1).toFixed(1);
|
||||
}
|
||||
} else if (msg.action == 'faster') {
|
||||
if (that._players.length > 0) {
|
||||
that._players[that._players.length - 1].playbackRate.value += 0.2;
|
||||
that.children.speedcounter.content = Number.parseFloat(that._players[that._players.length - 1].playbackRate.value).toFixed(1);
|
||||
}
|
||||
} else if (msg.action == 'slower') {
|
||||
if (that._players.length > 0) {
|
||||
that._players[that._players.length - 1].playbackRate.value -= 0.2;
|
||||
that.children.speedcounter.content = Number.parseFloat(that._players[that._players.length - 1].playbackRate.value).toFixed(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -542,7 +453,7 @@ $(document).ready(function() {
|
|||
new PointText({
|
||||
point: c.firstChild.bounds.topLeft + [0, -5],
|
||||
content: Object.keys(beach_sounds)[idx],
|
||||
fontSize: vssw * 0.55,
|
||||
fontSize: '1em',
|
||||
fontWeight: 'bold',
|
||||
fillColor: 'white'
|
||||
});
|
||||
|
|
@ -551,17 +462,7 @@ $(document).ready(function() {
|
|||
|
||||
//screen #4 - beach page #2
|
||||
changeScreen(4);
|
||||
new Path.Rectangle([0, 0], vs).fillColor = '#555';
|
||||
|
||||
//title - text
|
||||
new PointText({
|
||||
point: [vssw * 2, vssw * 1],
|
||||
content: ' 믹스 #2 ',
|
||||
fillColor: 'white',
|
||||
fontFamily: 'AppleGothic, Sans-serif',
|
||||
fontWeight: 'bold',
|
||||
fontSize: '3em'
|
||||
}).fitBounds(titlebox.bounds);
|
||||
new Path.Rectangle([0, 0], vs).fillColor = '#333';
|
||||
|
||||
//
|
||||
for (var row = 0; row < 7; row++) {
|
||||
|
|
@ -573,10 +474,9 @@ $(document).ready(function() {
|
|||
children: [
|
||||
//play button
|
||||
new Path.Rectangle({
|
||||
name: 'play_btn',
|
||||
point: [vssw * 0.8, row * vssw * 1.4 + vssw * 3.5],
|
||||
radius: vssw * 0.4,
|
||||
size: [vssw * 1.5, vssw * 0.7],
|
||||
size: [vssw * 1.6, vssw * 0.7],
|
||||
fillColor: new Color({
|
||||
hue: getRandom(20, 60),
|
||||
saturation: 1,
|
||||
|
|
@ -587,7 +487,6 @@ $(document).ready(function() {
|
|||
par._players.push(par._player.start()._source); // start playbacks and collect their '_source's..
|
||||
par._playcount++;
|
||||
par.children.playcounter.content = '' + par._playcount;
|
||||
par.children.speedcounter.content = Number.parseFloat(1).toFixed(1);
|
||||
//
|
||||
par._socket.emit('sound', {
|
||||
name: par._key,
|
||||
|
|
@ -596,28 +495,13 @@ $(document).ready(function() {
|
|||
});
|
||||
}
|
||||
}),
|
||||
//playcounterbox
|
||||
new Path.Rectangle({
|
||||
name: 'playcounterbox',
|
||||
point: [vssw * 2.3, row * vssw * 1.4 + vssw * 3.5],
|
||||
size: [vssw * 0.6, vssw * 0.8],
|
||||
}),
|
||||
//playcounter
|
||||
new PointText({
|
||||
name: 'playcounter',
|
||||
content: '' + 0,
|
||||
fillColor: 'white',
|
||||
fontSize: '2em',
|
||||
fontWeight: 'bold'
|
||||
}),
|
||||
//stop button
|
||||
new Path.Rectangle({
|
||||
name: 'stop_btn',
|
||||
point: [vssw * 2.9, row * vssw * 1.4 + vssw * 3.5],
|
||||
point: [vssw * 2.8, row * vssw * 1.4 + vssw * 3.5],
|
||||
radius: vssw * 0.4,
|
||||
size: [vssw * 1.6, vssw * 0.7],
|
||||
fillColor: new Color({
|
||||
hue: getRandom(120, 180),
|
||||
hue: getRandom(120, 250),
|
||||
saturation: 1,
|
||||
brightness: 1
|
||||
}),
|
||||
|
|
@ -628,9 +512,6 @@ $(document).ready(function() {
|
|||
par._playcount--;
|
||||
par.children.playcounter.content = '' + par._playcount;
|
||||
}
|
||||
if (par._players.length == 0) {
|
||||
par.children.speedcounter.content = Number.parseFloat(1).toFixed(1);
|
||||
}
|
||||
//
|
||||
par._socket.emit('sound', {
|
||||
name: par._key,
|
||||
|
|
@ -639,23 +520,29 @@ $(document).ready(function() {
|
|||
});
|
||||
}
|
||||
}),
|
||||
//playcounter
|
||||
new PointText({
|
||||
name: 'playcounter',
|
||||
content: '' + 0,
|
||||
point: [vssw * 4.8, row * vssw * 1.4 + vssw * 3.5 + vssw * 0.6],
|
||||
fillColor: 'white',
|
||||
fontSize: '2em',
|
||||
fontWeight: 'bold'
|
||||
}),
|
||||
//faster button
|
||||
new Path.Rectangle({
|
||||
name: 'faster_btn',
|
||||
point: [vssw * 5.0, row * vssw * 1.4 + vssw * 3.5],
|
||||
point: [vssw * 5.8, row * vssw * 1.4 + vssw * 3.5],
|
||||
radius: vssw * 0.4,
|
||||
size: [vssw * 1.6, vssw * 0.7],
|
||||
strokeColor: new Color({
|
||||
fillColor: new Color({
|
||||
hue: getRandom(20, 60),
|
||||
saturation: 1,
|
||||
brightness: 1
|
||||
}),
|
||||
strokeWidth : vssw * 0.03,
|
||||
onMouseDown: function() {
|
||||
var par = this.parent;
|
||||
if (par._players.length > 0) {
|
||||
par._players[par._players.length - 1].playbackRate.value += 0.2;
|
||||
par.children.speedcounter.content = Number.parseFloat(par._players[par._players.length - 1].playbackRate.value).toFixed(1);
|
||||
}
|
||||
//
|
||||
par._socket.emit('sound', {
|
||||
|
|
@ -665,37 +552,20 @@ $(document).ready(function() {
|
|||
});
|
||||
}
|
||||
}),
|
||||
//speedcounterbox
|
||||
new Path.Rectangle({
|
||||
name: 'speedcounterbox',
|
||||
point: [vssw * 6.6, row * vssw * 1.4 + vssw * 3.5],
|
||||
size: [vssw * 0.6, vssw * 0.8],
|
||||
}),
|
||||
//speedcounter
|
||||
new PointText({
|
||||
name: 'speedcounter',
|
||||
content: '' + 0,
|
||||
fillColor: 'white',
|
||||
fontSize: '2em',
|
||||
fontWeight: 'bold'
|
||||
}),
|
||||
//slower button
|
||||
new Path.Rectangle({
|
||||
name: 'slower_btn',
|
||||
point: [vssw * 7.8, row * vssw * 1.4 + vssw * 3.5],
|
||||
radius: vssw * 0.4,
|
||||
size: [vssw * 1.6, vssw * 0.7],
|
||||
strokeColor: new Color({
|
||||
hue: getRandom(120, 180),
|
||||
fillColor: new Color({
|
||||
hue: getRandom(120, 250),
|
||||
saturation: 1,
|
||||
brightness: 1
|
||||
}),
|
||||
strokeWidth : vssw * 0.03,
|
||||
onMouseDown: function() {
|
||||
var par = this.parent;
|
||||
if (par._players.length > 0) {
|
||||
par._players[par._players.length - 1].playbackRate.value -= 0.2;
|
||||
par.children.speedcounter.content = Number.parseFloat(par._players[par._players.length - 1].playbackRate.value).toFixed(1);
|
||||
}
|
||||
//
|
||||
par._socket.emit('sound', {
|
||||
|
|
@ -714,23 +584,6 @@ $(document).ready(function() {
|
|||
_init: function() {
|
||||
this._player.loop = true;
|
||||
this._player.retrigger = true;
|
||||
// iconifying...
|
||||
var fast = faster.clone().addTo(project);
|
||||
fast.fitBounds(this.children.faster_btn.bounds);
|
||||
fast.fillColor = "orange";
|
||||
var slow = slower.clone().addTo(project);
|
||||
slow.fitBounds(this.children.slower_btn.bounds);
|
||||
slow.fillColor = "lime";
|
||||
var player_increase = plus.clone().addTo(project);
|
||||
player_increase.fitBounds(this.children.play_btn.bounds);
|
||||
player_increase.fillColor = "#555";
|
||||
var player_decrease = minus.clone().addTo(project);
|
||||
player_decrease.fitBounds(this.children.stop_btn.bounds);
|
||||
player_decrease.fillColor = "#555";
|
||||
// positioning numberboxes...
|
||||
this.children.playcounter.fitBounds(this.children.playcounterbox.bounds);
|
||||
this.children.speedcounter.fitBounds(this.children.speedcounterbox.bounds);
|
||||
this.children.speedcounter.content = Number.parseFloat(1).toFixed(1);
|
||||
//socket io event handling..
|
||||
var that = this;
|
||||
this._socket.on('sound', function(msg) {
|
||||
|
|
@ -739,25 +592,19 @@ $(document).ready(function() {
|
|||
that._players.push(that._player.start()._source); // start playbacks and collect their '_source's..
|
||||
that._playcount++;
|
||||
that.children.playcounter.content = '' + that._playcount;
|
||||
that.children.speedcounter.content = Number.parseFloat(1).toFixed(1);
|
||||
} else if (msg.action == 'stop') {
|
||||
if (that._players.length > 0) {
|
||||
(that._players.shift()).stop();
|
||||
that._playcount--;
|
||||
that.children.playcounter.content = '' + that._playcount;
|
||||
}
|
||||
if (that._players.length == 0) {
|
||||
that.children.speedcounter.content = Number.parseFloat(1).toFixed(1);
|
||||
}
|
||||
} else if (msg.action == 'faster') {
|
||||
if (that._players.length > 0) {
|
||||
that._players[that._players.length - 1].playbackRate.value += 0.2;
|
||||
that.children.speedcounter.content = Number.parseFloat(that._players[that._players.length - 1].playbackRate.value).toFixed(1);
|
||||
}
|
||||
} else if (msg.action == 'slower') {
|
||||
if (that._players.length > 0) {
|
||||
that._players[that._players.length - 1].playbackRate.value -= 0.2;
|
||||
that.children.speedcounter.content = Number.parseFloat(that._players[that._players.length - 1].playbackRate.value).toFixed(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -769,7 +616,7 @@ $(document).ready(function() {
|
|||
new PointText({
|
||||
point: c.firstChild.bounds.topLeft + [0, -5],
|
||||
content: Object.keys(beach_sounds)[idx],
|
||||
fontSize: vssw * 0.55,
|
||||
fontSize: '1em',
|
||||
fontWeight: 'bold',
|
||||
fillColor: 'white'
|
||||
});
|
||||
|
|
|
|||
|
|
@ -80,6 +80,9 @@
|
|||
</div>
|
||||
|
||||
<canvas id="screen" resize style="z-index:0"></canvas>
|
||||
<div id="objstring1" class="objstring fw7 courier f3 white" style="z-index:1">들리는 상처들의 믹스</div>
|
||||
<div id="objstring3" class="objstring fw7 courier f3 white" style="z-index:-1">연결 확인</div>
|
||||
<div id="objstring4" class="objstring fw7 courier f3 white" style="z-index:-1">믹스</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ $(document).ready(function() {
|
|||
SVGImport_size1('./imgs/iconmonstr-minus-4.svg'),
|
||||
//clap
|
||||
AudioImport_p5("./audio/clap@2/" + ("0" + getRandomInt(1, 2)).slice(-2) + ".mp3"),
|
||||
//beach_sounds page 1 ==> 7
|
||||
//sounds page 1 ==> 7
|
||||
AudioImport("./audio/2011_2011.mp3"),
|
||||
AudioImport("./audio/2011_벨.mp3"),
|
||||
AudioImport("./audio/2011_숲.mp3"),
|
||||
|
|
@ -32,7 +32,7 @@ $(document).ready(function() {
|
|||
AudioImport("./audio/2011_헤비레인.mp3"),
|
||||
AudioImport("./audio/고요6.mp3"),
|
||||
AudioImport("./audio/고요7.mp3"),
|
||||
//beach_sounds page 2 ==> 7
|
||||
//sounds page 2 ==> 7
|
||||
AudioImport("./audio/검은산_뚜루.mp3"),
|
||||
AudioImport("./audio/검은산_다급.mp3"),
|
||||
AudioImport("./audio/검은산_부엉.mp3"),
|
||||
|
|
@ -193,12 +193,12 @@ $(document).ready(function() {
|
|||
var netstat = new Path.Circle({
|
||||
center: view.bounds.topRight + [-vssw / 2, +vssw / 2],
|
||||
radius: vssw / 4,
|
||||
fillColor: '#51D0FD',
|
||||
strokeWidth: vssw * 0.03,
|
||||
strokeColor: '#FFE40A',
|
||||
dashArray: [vssw * 0.05, vssw * 0.05],
|
||||
fillColor: 'hotpink',
|
||||
strokeWidth: 2,
|
||||
strokeColor: 'gray',
|
||||
dashArray: [4, 4],
|
||||
onFrame: function(event) {
|
||||
this.rotate(0.2);
|
||||
this.rotate(1);
|
||||
}
|
||||
});
|
||||
netstat.fillColor.alpha = 0;
|
||||
|
|
@ -220,7 +220,7 @@ $(document).ready(function() {
|
|||
aprev.scale(vssw * 1.5);
|
||||
aprev.position = [0, 0]; //reset position, before relative positioning !!
|
||||
aprev.translate([vssw, vssw * 1.8]);
|
||||
aprev.fillColor = '#FFE40A';
|
||||
aprev.fillColor = 'pink';
|
||||
aprev._socket = socket;
|
||||
aprev._isactive = false;
|
||||
aprev._activate = function() {
|
||||
|
|
@ -242,7 +242,7 @@ $(document).ready(function() {
|
|||
anext.scale(vssw * 1.5);
|
||||
anext.position = [0, 0]; //reset position, before relative positioning !!
|
||||
anext.translate([vssw * 9, vssw * 1.8]);
|
||||
anext.fillColor = '#FFE40A';
|
||||
anext.fillColor = 'pink';
|
||||
anext._socket = socket;
|
||||
anext._isactive = false;
|
||||
anext._activate = function() {
|
||||
|
|
@ -260,28 +260,17 @@ $(document).ready(function() {
|
|||
};
|
||||
|
||||
//title background
|
||||
var titlebox = new Path.Rectangle({
|
||||
new Path.Rectangle({
|
||||
point: [vssw * 2, vssw * 1],
|
||||
size: [vssw * 6, vssw * 1.5],
|
||||
fillColor: 'white',
|
||||
radius: vssw * 0.8,
|
||||
opacity: 0.3,
|
||||
});
|
||||
radius: 30,
|
||||
}).opacity = 0.3;
|
||||
|
||||
//screen #1 - 'home'
|
||||
changeScreen(1);
|
||||
new Path.Rectangle([0, 0], vs).fillColor = '#999';
|
||||
|
||||
//title - text
|
||||
new PointText({
|
||||
point: titlebox.bounds.center,
|
||||
content: ' 사운드-랩 § soundLab ',
|
||||
fillColor: 'white',
|
||||
fontFamily: 'AppleGothic, Sans-serif',
|
||||
fontWeight: 'bold',
|
||||
fontSize: '3em',
|
||||
}).fitBounds(titlebox.bounds);
|
||||
|
||||
//hello, screen.
|
||||
phonehand.addTo(project);
|
||||
phonehand.scale(vsw / 1.5);
|
||||
|
|
@ -290,38 +279,28 @@ $(document).ready(function() {
|
|||
|
||||
//screen #2 - check
|
||||
changeScreen(2);
|
||||
new Path.Rectangle([0, 0], vs).fillColor = '#05C183';
|
||||
|
||||
//title - text
|
||||
new PointText({
|
||||
point: [vssw * 2, vssw * 1],
|
||||
content: ' 연결 확인 ',
|
||||
fillColor: 'white',
|
||||
fontFamily: 'AppleGothic, Sans-serif',
|
||||
fontWeight: 'bold',
|
||||
fontSize: '3em'
|
||||
}).fitBounds(titlebox.bounds);
|
||||
new Path.Rectangle([0, 0], vs).fillColor = '#393';
|
||||
|
||||
//TODO: info text.
|
||||
new PointText({
|
||||
content: "네트워크 테스트!",
|
||||
point: view.center + [-vssw * 3, -vssw * 2],
|
||||
fontWeight: 'bold',
|
||||
fontSize: vssw * 1.0,
|
||||
fontSize: '2em',
|
||||
fillColor: 'gold'
|
||||
});
|
||||
new PointText({
|
||||
content: "사운드 테스트!",
|
||||
point: view.center + [-vssw * 3, vssw * 0],
|
||||
fontWeight: 'bold',
|
||||
fontSize: vssw * 1.0,
|
||||
fontSize: '2em',
|
||||
fillColor: 'pink'
|
||||
});
|
||||
new PointText({
|
||||
content: "동그라미 터치!",
|
||||
point: view.center + [-vssw * 3, vssw * 2],
|
||||
fontWeight: 'bold',
|
||||
fontSize: vssw * 1.0,
|
||||
fontSize: '2em',
|
||||
fillColor: 'red'
|
||||
});
|
||||
new Path.Circle({
|
||||
|
|
@ -338,16 +317,6 @@ $(document).ready(function() {
|
|||
changeScreen(3);
|
||||
new Path.Rectangle([0, 0], vs).fillColor = '#333';
|
||||
|
||||
//title - text
|
||||
new PointText({
|
||||
point: [vssw * 2, vssw * 1],
|
||||
content: ' 믹스 #1 ',
|
||||
fillColor: 'white',
|
||||
fontFamily: 'AppleGothic, Sans-serif',
|
||||
fontWeight: 'bold',
|
||||
fontSize: '3em'
|
||||
}).fitBounds(titlebox.bounds);
|
||||
|
||||
iconsound.addTo(project);
|
||||
//iconsound.scale(vsw / 1.5);
|
||||
iconsound.scale(vsw / 2.5);
|
||||
|
|
|
|||
1
public/a1/.tern-port
Normal file
|
|
@ -0,0 +1 @@
|
|||
42761
|
||||
BIN
public/a1/audio/2011_2011.mp3
Normal file
BIN
public/a1/audio/2011_바람.mp3
Normal file
BIN
public/a1/audio/2011_벨.mp3
Normal file
BIN
public/a1/audio/2011_숲.mp3
Normal file
BIN
public/a1/audio/2011_헤비레인.mp3
Normal file
BIN
public/a1/audio/clap@2/01.mp3
Normal file
BIN
public/a1/audio/clap@2/02.mp3
Normal file
BIN
public/a1/audio/검은산_다급.mp3
Normal file
BIN
public/a1/audio/검은산_뚜루.mp3
Normal file
BIN
public/a1/audio/검은산_부엉.mp3
Normal file
BIN
public/a1/audio/검은산_불안.mp3
Normal file
BIN
public/a1/audio/검은산_쏟아짐.mp3
Normal file
BIN
public/a1/audio/고요1.mp3
Normal file
BIN
public/a1/audio/고요10.mp3
Normal file
BIN
public/a1/audio/고요11.mp3
Normal file
BIN
public/a1/audio/고요12.mp3
Normal file
BIN
public/a1/audio/고요13.mp3
Normal file
BIN
public/a1/audio/고요14.mp3
Normal file
BIN
public/a1/audio/고요2.mp3
Normal file
BIN
public/a1/audio/고요3.mp3
Normal file
BIN
public/a1/audio/고요4.mp3
Normal file
BIN
public/a1/audio/고요5.mp3
Normal file
BIN
public/a1/audio/고요6.mp3
Normal file
BIN
public/a1/audio/고요7.mp3
Normal file
BIN
public/a1/audio/고요8.mp3
Normal file
BIN
public/a1/audio/고요9.mp3
Normal file
1
public/a1/conductor/.tern-port
Normal file
|
|
@ -0,0 +1 @@
|
|||
42761
|
||||
BIN
public/a1/conductor/audio/2011_2011.mp3
Normal file
BIN
public/a1/conductor/audio/2011_바람.mp3
Normal file
BIN
public/a1/conductor/audio/2011_벨.mp3
Normal file
BIN
public/a1/conductor/audio/2011_숲.mp3
Normal file
BIN
public/a1/conductor/audio/2011_헤비레인.mp3
Normal file
BIN
public/a1/conductor/audio/clap@2/01.mp3
Normal file
BIN
public/a1/conductor/audio/clap@2/02.mp3
Normal file
BIN
public/a1/conductor/audio/검은산_다급.mp3
Normal file
BIN
public/a1/conductor/audio/검은산_뚜루.mp3
Normal file
BIN
public/a1/conductor/audio/검은산_부엉.mp3
Normal file
BIN
public/a1/conductor/audio/검은산_불안.mp3
Normal file
BIN
public/a1/conductor/audio/검은산_쏟아짐.mp3
Normal file
BIN
public/a1/conductor/audio/고요1.mp3
Normal file
BIN
public/a1/conductor/audio/고요10.mp3
Normal file
BIN
public/a1/conductor/audio/고요11.mp3
Normal file
BIN
public/a1/conductor/audio/고요12.mp3
Normal file
BIN
public/a1/conductor/audio/고요13.mp3
Normal file
BIN
public/a1/conductor/audio/고요14.mp3
Normal file
BIN
public/a1/conductor/audio/고요2.mp3
Normal file
BIN
public/a1/conductor/audio/고요3.mp3
Normal file
BIN
public/a1/conductor/audio/고요4.mp3
Normal file
BIN
public/a1/conductor/audio/고요5.mp3
Normal file
BIN
public/a1/conductor/audio/고요6.mp3
Normal file
BIN
public/a1/conductor/audio/고요7.mp3
Normal file
BIN
public/a1/conductor/audio/고요8.mp3
Normal file
BIN
public/a1/conductor/audio/고요9.mp3
Normal file
BIN
public/a1/conductor/favicon.ico
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
1
public/a1/conductor/imgs/arrow-circle-left.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg width="2048" height="2048" viewBox="0 0 2048 2048" xmlns="http://www.w3.org/2000/svg"><path d="M1536 1088v-128q0-26-19-45t-45-19h-502l189-189q19-19 19-45t-19-45l-91-91q-18-18-45-18t-45 18l-362 362-91 91q-18 18-18 45t18 45l91 91 362 362q18 18 45 18t45-18l91-91q18-18 18-45t-18-45l-189-189h502q26 0 45-19t19-45zm256-64q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/></svg>
|
||||
|
After Width: | Height: | Size: 466 B |
1
public/a1/conductor/imgs/arrow-circle-right.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg width="2048" height="2048" viewBox="0 0 2048 2048" xmlns="http://www.w3.org/2000/svg"><path d="M1541 1024q0-27-18-45l-91-91-362-362q-18-18-45-18t-45 18l-91 91q-18 18-18 45t18 45l189 189h-502q-26 0-45 19t-19 45v128q0 26 19 45t45 19h502l-189 189q-19 19-19 45t19 45l91 91q18 18 45 18t45-18l362-362 91-91q18-18 18-45zm251 0q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/></svg>
|
||||
|
After Width: | Height: | Size: 469 B |
1
public/a1/conductor/imgs/check-circle.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg width="2048" height="2048" viewBox="0 0 2048 2048" xmlns="http://www.w3.org/2000/svg"><path d="M1540 862q0-28-18-46l-91-90q-19-19-45-19t-45 19l-408 407-226-226q-19-19-45-19t-45 19l-91 90q-18 18-18 46 0 27 18 45l362 362q19 19 45 19 27 0 46-19l543-543q18-18 18-45zm252 162q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/></svg>
|
||||
|
After Width: | Height: | Size: 420 B |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
1
public/a1/conductor/imgs/hand-point-right-regular.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg aria-hidden="true" data-prefix="far" data-icon="hand-point-right" class="svg-inline--fa fa-hand-point-right fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M428.8 137.6h-86.177a115.52 115.52 0 0 0 2.176-22.4c0-47.914-35.072-83.2-92-83.2-45.314 0-57.002 48.537-75.707 78.784-7.735 12.413-16.994 23.317-25.851 33.253l-.131.146-.129.148C135.662 161.807 127.764 168 120.8 168h-2.679c-5.747-4.952-13.536-8-22.12-8H32c-17.673 0-32 12.894-32 28.8v230.4C0 435.106 14.327 448 32 448h64c8.584 0 16.373-3.048 22.12-8h2.679c28.688 0 67.137 40 127.2 40h21.299c62.542 0 98.8-38.658 99.94-91.145 12.482-17.813 18.491-40.785 15.985-62.791A93.148 93.148 0 0 0 393.152 304H428.8c45.435 0 83.2-37.584 83.2-83.2 0-45.099-38.101-83.2-83.2-83.2zm0 118.4h-91.026c12.837 14.669 14.415 42.825-4.95 61.05 11.227 19.646 1.687 45.624-12.925 53.625 6.524 39.128-10.076 61.325-50.6 61.325H248c-45.491 0-77.21-35.913-120-39.676V215.571c25.239-2.964 42.966-21.222 59.075-39.596 11.275-12.65 21.725-25.3 30.799-39.875C232.355 112.712 244.006 80 252.8 80c23.375 0 44 8.8 44 35.2 0 35.2-26.4 53.075-26.4 70.4h158.4c18.425 0 35.2 16.5 35.2 35.2 0 18.975-16.225 35.2-35.2 35.2zM88 384c0 13.255-10.745 24-24 24s-24-10.745-24-24 10.745-24 24-24 24 10.745 24 24z"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
1
public/a1/conductor/imgs/icon_sound.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve"><path d="M5,52c-0.8,0-1.5-0.7-1.5-1.5v-1C3.5,48.7,4.2,48,5,48s1.5,0.7,1.5,1.5v1C6.5,51.3,5.8,52,5,52z"></path><path d="M11,51.5c-0.4,0-0.8-0.2-1.1-0.4c-0.3-0.3-0.4-0.7-0.4-1.1c0-0.4,0.2-0.8,0.4-1.1c0.6-0.6,1.6-0.6,2.1,0 c0.3,0.3,0.4,0.7,0.4,1.1c0,0.4-0.2,0.8-0.4,1.1C11.8,51.3,11.4,51.5,11,51.5z"></path><path d="M17,66.5c-0.8,0-1.5-0.7-1.5-1.5V35c0-0.8,0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5v30C18.5,65.8,17.8,66.5,17,66.5z"></path><path d="M29,76.5c-0.8,0-1.5-0.7-1.5-1.5V25c0-0.8,0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5v50C30.5,75.8,29.8,76.5,29,76.5z"></path><path d="M23,81.5c-0.8,0-1.5-0.7-1.5-1.5V20c0-0.8,0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5v60C24.5,80.8,23.8,81.5,23,81.5z"></path><path d="M35,68.5c-0.8,0-1.5-0.7-1.5-1.5V33c0-0.8,0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5v34C36.5,67.8,35.8,68.5,35,68.5z"></path><path d="M41,61c-0.8,0-1.5-0.7-1.5-1.5v-19c0-0.8,0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5v19C42.5,60.3,41.8,61,41,61z"></path><path d="M47,56c-0.8,0-1.5-0.7-1.5-1.5v-9c0-0.8,0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5v9C48.5,55.3,47.8,56,47,56z"></path><path d="M53,58.5c-0.8,0-1.5-0.7-1.5-1.5V43c0-0.8,0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5v14C54.5,57.8,53.8,58.5,53,58.5z"></path><path d="M59,54.5c-0.8,0-1.5-0.7-1.5-1.5v-6c0-0.8,0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5v6C60.5,53.8,59.8,54.5,59,54.5z"></path><path d="M65,53c-0.8,0-1.5-0.7-1.5-1.5v-3c0-0.8,0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5v3C66.5,52.3,65.8,53,65,53z"></path><path d="M71,51.5c-0.4,0-0.8-0.2-1.1-0.4c-0.1-0.1-0.2-0.3-0.3-0.5c-0.1-0.2-0.1-0.4-0.1-0.6c0-0.1,0-0.2,0-0.3c0-0.1,0-0.2,0.1-0.3 c0-0.1,0.1-0.2,0.1-0.3c0.1-0.1,0.1-0.2,0.2-0.2c0.1-0.1,0.1-0.1,0.2-0.2c0.1-0.1,0.2-0.1,0.3-0.1c0.1,0,0.2-0.1,0.3-0.1 c0.2,0,0.4,0,0.6,0c0.1,0,0.2,0,0.3,0.1c0.1,0,0.2,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.2c0.1,0.1,0.1,0.1,0.2,0.2 c0,0.1,0.1,0.2,0.1,0.3c0,0.1,0.1,0.2,0.1,0.3c0,0.1,0,0.2,0,0.3c0,0.2,0,0.4-0.1,0.6c-0.1,0.2-0.2,0.4-0.3,0.5 c-0.1,0.1-0.3,0.2-0.5,0.3C71.4,51.5,71.2,51.5,71,51.5z"></path><path d="M77,52c-0.8,0-1.5-0.7-1.5-1.5v-1c0-0.8,0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5v1C78.5,51.3,77.8,52,77,52z"></path><path d="M89,52c-0.8,0-1.5-0.7-1.5-1.5v-1c0-0.8,0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5v1C90.5,51.3,89.8,52,89,52z"></path><path d="M83,51.5c-0.4,0-0.8-0.2-1.1-0.4c-0.3-0.3-0.4-0.7-0.4-1.1c0-0.1,0-0.2,0-0.3c0-0.1,0-0.2,0.1-0.3c0-0.1,0.1-0.2,0.1-0.3 c0.1-0.1,0.1-0.2,0.2-0.2c0.4-0.4,0.9-0.5,1.4-0.4c0.1,0,0.2,0,0.3,0.1c0.1,0,0.2,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.2 c0.3,0.3,0.4,0.7,0.4,1.1c0,0.4-0.2,0.8-0.4,1.1c-0.1,0.1-0.3,0.2-0.5,0.3C83.4,51.5,83.2,51.5,83,51.5z"></path><path d="M95,51.5c-0.4,0-0.8-0.2-1.1-0.4c-0.1-0.1-0.2-0.3-0.3-0.5c-0.1-0.2-0.1-0.4-0.1-0.6c0-0.4,0.2-0.8,0.4-1.1 c0.6-0.6,1.6-0.6,2.1,0c0.3,0.3,0.4,0.7,0.4,1.1c0,0.2,0,0.4-0.1,0.6c-0.1,0.2-0.2,0.4-0.3,0.5C95.8,51.3,95.4,51.5,95,51.5z"></path></svg>
|
||||
|
After Width: | Height: | Size: 2.9 KiB |
1
public/a1/conductor/imgs/iconmonstr-minus-4.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 0c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm7 14h-14v-4h14v4z"/></svg>
|
||||
|
After Width: | Height: | Size: 194 B |
1
public/a1/conductor/imgs/iconmonstr-plus-4.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 0c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm7 14h-5v5h-4v-5h-5v-4h5v-5h4v5h5v4z"/></svg>
|
||||
|
After Width: | Height: | Size: 212 B |
30
public/a1/conductor/imgs/listen-icon.svg
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 177.8 178" style="enable-background:new 0 0 177.8 178;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#00ACF2;}
|
||||
</style>
|
||||
<path class="st0" d="M43.8,176.9c-10.6-1.4-18.3-8.5-23.7-17.9c-1.1-1.9-2.1-3.7-0.9-6c2-3.7,6.5-3.7,9.1,0.4
|
||||
c4.2,6.4,9.2,11.5,17,13.3c15.3,3.6,31.8-9.1,30.9-24.8c-0.9-16.1,3.6-29.6,15.5-40.5c17.1-15.6,18.3-49.3,9.7-66.6
|
||||
C94.3,20.7,82,14.6,67.2,11.7c-9-1.7-17.8-0.9-26.4,1.3c-17.6,4.6-27.1,16.5-30,34.1C9.6,54.4,9,61.8,10.4,69.3
|
||||
c0.7,3.7,0,7.1-4.2,7.5s-4.6-2.7-5.5-6.5c-0.5-2.1-0.5-19-0.4-21c1.1-25.1,22.4-46.9,49-48c2-0.1,12.6-0.5,15.9-0.1
|
||||
c3.4,0.4,6.7,1.1,10,2c24.7,6.5,40.2,25.8,41.5,51.5c0.4,8.4-0.4,16.8-2.2,25c-2.4,10.8-6.9,20.7-15.2,28.3
|
||||
c-10.3,9.2-14,20.4-13.2,34c0.8,16-10.3,29.6-26.8,34.1C58.2,176.4,49.5,177.6,43.8,176.9z"/>
|
||||
<path class="st0" d="M177.2,66.4c-0.8,14.7-7.5,27.5-15.4,39.7c-1.8,2.7-4.2,3.9-7.1,2.1c-3.2-2-2.9-4.8-1.1-7.7
|
||||
c7-10.9,12.4-22.5,13.8-35.6c1.8-16.5-2.8-31-13.9-43.3c-1.9-2.1-3.4-4.1-2.2-7c1.5-3.6,5.6-3.8,8.9-0.3c9.6,10.1,16,22.1,16.9,36
|
||||
C177.3,51.9,177.3,64.7,177.2,66.4z"/>
|
||||
<path class="st0" d="M157.4,58.1c0,13.8-5.2,26-12.5,37.4c-1.8,2.8-4.4,3.8-7.2,2.1c-3.2-1.9-2.9-4.8-1.1-7.7
|
||||
c6.7-10.4,11.3-21.5,10.7-34.3c-0.4-9.8-4-18.3-10.4-25.5c-2.4-2.7-4.4-5.5-1.1-8.4c3.5-3.1,6.3-0.8,8.7,2.1
|
||||
C153.2,33.6,157.5,45,157.4,58.1z"/>
|
||||
<path class="st0" d="M138.2,58.8c-0.3,9.9-3.6,18.6-8.7,26.6c-1.8,2.8-4.1,4.6-7.4,2.5c-3.1-2-2.9-4.8-1.1-7.7
|
||||
c4.9-7.9,8.4-16.1,6.8-25.7c-0.9-5.3-3-10.1-6.7-14.1c-2.5-2.7-3.5-5.5-0.4-8.1s5.8-0.9,8.1,1.8C135.1,41.2,137.9,49.6,138.2,58.8z"
|
||||
/>
|
||||
<path class="st0" d="M52.3,116.9c-1.6-10.6,2.1-17.7,9.7-23.3c4.8-3.5,5.3-8.8,4.1-14.3c-0.9-4.3-4-6.2-7.9-7.2c-3-0.9-5.1,0-6,3.2
|
||||
c-0.6,2.2-1.3,4.4-2.1,6.6c-2.9,7.5-9.2,9.4-15.8,4.8c-17.4-12.1-15.4-40.5,3.9-51.2c11.4-6.4,23.7-7,35.8-1.9
|
||||
c12.5,5.3,17.3,16,18.8,28.7c0.4,3.3,0.3,6.6,0.1,9.9c-0.2,3.1-2,5-5.1,4.8s-4.8-2.2-4.7-5.3c0.1-5.5-0.1-10.9-1.8-16.1
|
||||
c-2.4-7.8-7.6-12.5-15.5-14.3c-6.6-1.5-13.2-1.1-19.5,1.3c-13.9,5.2-18.6,23.7-8.8,33.8c2.1,2.2,3.3,2.7,4.4-1
|
||||
c3.7-11.7,8.7-15.1,18.3-13.1c10.2,2.1,17.2,11.2,16.5,21.6c-0.5,7.6-3.1,14.2-9.7,18.6c-4.2,2.8-5.5,6.7-5.1,11.5
|
||||
c0.2,2.8,0.4,5.6,0.3,8.4c-0.3,10.7-8.8,16.4-18.8,12.8c-6.6-2.4-10.6-7.7-13.7-13.6c-1.5-2.9-1-6.1,2.5-7.4c3.3-1.3,5.8,0.1,7,3.5
|
||||
c1.2,3.2,3.2,5.8,6.1,7.5c4.3,2.6,6.9,1.2,7-3.9C52.3,119.4,52.3,117.6,52.3,116.9z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.5 KiB |
BIN
public/a1/conductor/imgs/litmus.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
public/a1/conductor/imgs/litmusphone.png
Normal file
|
After Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 344 B After Width: | Height: | Size: 344 B |
BIN
public/a1/conductor/imgs/phonehand.png
Normal file
|
After Width: | Height: | Size: 110 KiB |
|
Before Width: | Height: | Size: 436 B After Width: | Height: | Size: 436 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
85
public/a1/conductor/index.html
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
||||
<!-- libraries -->
|
||||
<link type="text/css" rel="stylesheet" href="./lib/tachyons-4.9.1.min.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./lib/colors-2.2.0.min.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./lib/loading-animation.css" />
|
||||
<script type="text/javascript" src="./lib/jquery-3.2.1.min.js"></script>
|
||||
<script type="text/javascript" src="./lib/paper-full-v0.11.5.min.js"></script>
|
||||
<script type="text/javascript" src="./lib/Tone-reserved.min.js"></script>
|
||||
<script type="text/javascript" src="./lib/p5.min-v0.6.1.js"></script>
|
||||
<script type="text/javascript" src="./lib/p5.sound.min-v0.3.7.js"></script>
|
||||
<script type="text/javascript" src="./lib/socket.io-v2.1.1.slim.js"></script>
|
||||
<script type="text/javascript" src="./lib/hammer-v2.0.8.min.js"></script>
|
||||
<script type="text/javascript" src="./lib/lodash-full-v4.17.10.min.js"></script>
|
||||
<script type="text/javascript" src="./lib/util.js"></script>
|
||||
<!-- code -->
|
||||
<script type="text/paperscript" src="./index.js" canvas="screen"></script>
|
||||
<style>
|
||||
canvas {
|
||||
/* eliminating the gap between 2 canvases --> https://stackoverflow.com/a/8600771 */
|
||||
display: block;
|
||||
}
|
||||
|
||||
body {
|
||||
/* https://stackoverflow.com/a/47709903 */
|
||||
/* overscroll-behavior: contain; */
|
||||
}
|
||||
|
||||
body {
|
||||
/* https://stackoverflow.com/a/41480220 */
|
||||
/* https://github.com/hammerjs/hammer.js/issues/1050#issuecomment-267595556 */
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
/* touch-action: none !important; */
|
||||
}
|
||||
|
||||
canvas#screen {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
/* buttermilk */
|
||||
background-color: #3333ff;
|
||||
}
|
||||
|
||||
.objstring {
|
||||
position: fixed;
|
||||
top: 2.5em;
|
||||
left: 4em;
|
||||
/* non-clickable element (pass-through) */
|
||||
pointer-events:none;
|
||||
}
|
||||
|
||||
/* #objstring {
|
||||
overflow-wrap: break-word;
|
||||
word-wrap: break-word;
|
||||
hyphens: none;
|
||||
} */
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="">
|
||||
<!-- full page layout : page loading screen -->
|
||||
<div class="vh-100 w-100 absolute top-0 left-0 bg-light-blue" id="page-loading" style="z-index:2">
|
||||
<div class="cf w-100 top-0">
|
||||
<div class="dt vh-100 w-100 absolute top-0 left-0 animationStripes">
|
||||
<div class="dtc v-mid tc white monaco">
|
||||
<h1 class="f3 f1-ns">
|
||||
Loading..........!?
|
||||
</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<canvas id="screen" resize style="z-index:0"></canvas>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
798
public/a1/conductor/index.js
Normal file
|
|
@ -0,0 +1,798 @@
|
|||
//paperscript (paperjs)
|
||||
|
||||
//'index' page
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
//common metrics
|
||||
var vs = view.size;
|
||||
var vsw = vs.width;
|
||||
var vsh = vs.height;
|
||||
var vss = view.size / 10;
|
||||
var vssw = vss.width;
|
||||
var vssh = vss.height;
|
||||
|
||||
//pre-load resources
|
||||
Promise.all([
|
||||
//imgs
|
||||
RasterImport_size1('./imgs/phonehand.png'),
|
||||
SVGImport_size1('./imgs/arrow-circle-right.svg'),
|
||||
SVGImport_size1('./imgs/arrow-circle-left.svg'),
|
||||
SVGImport_size1('./imgs/hand-point-right-regular.svg'),
|
||||
SVGImport_size1('./imgs/listen-icon.svg'),
|
||||
SVGImport_size1('./imgs/plus.svg'),
|
||||
SVGImport_size1('./imgs/minus.svg'),
|
||||
SVGImport_size1('./imgs/faster.svg'),
|
||||
SVGImport_size1('./imgs/slower.svg'),
|
||||
//clap
|
||||
AudioImport_p5("./audio/clap@2/" + ("0" + getRandomInt(1, 2)).slice(-2) + ".mp3"),
|
||||
//beach_sounds page 1 ==> 7
|
||||
AudioImport("./audio/2011_2011.mp3"),
|
||||
AudioImport("./audio/2011_벨.mp3"),
|
||||
AudioImport("./audio/2011_숲.mp3"),
|
||||
AudioImport("./audio/2011_바람.mp3"),
|
||||
AudioImport("./audio/2011_헤비레인.mp3"),
|
||||
AudioImport("./audio/고요6.mp3"),
|
||||
AudioImport("./audio/고요7.mp3"),
|
||||
//beach_sounds page 2 ==> 7
|
||||
AudioImport("./audio/검은산_뚜루.mp3"),
|
||||
AudioImport("./audio/검은산_다급.mp3"),
|
||||
AudioImport("./audio/검은산_부엉.mp3"),
|
||||
AudioImport("./audio/검은산_불안.mp3"),
|
||||
AudioImport("./audio/검은산_쏟아짐.mp3"),
|
||||
AudioImport("./audio/고요13.mp3"),
|
||||
AudioImport("./audio/고요14.mp3"),
|
||||
//
|
||||
]).then(function(imports) {
|
||||
//imgs
|
||||
var phonehand = imports[0];
|
||||
var anext = imports[1];
|
||||
var aprev = imports[2];
|
||||
var hand = imports[3];
|
||||
var iconsound = imports[4];
|
||||
var plus = imports[5];
|
||||
var minus = imports[6];
|
||||
var faster = imports[7];
|
||||
var slower = imports[8];
|
||||
//clap
|
||||
var clap = imports[9];
|
||||
//beach list
|
||||
//NOTE: beware! same key is not allowed!! every keys should have different name!!
|
||||
var beach_sounds = {
|
||||
'2011_2011' : imports[10],
|
||||
'2011_벨' : imports[11],
|
||||
'2011_숲' : imports[12],
|
||||
'2011_바람' : imports[13],
|
||||
'2011_헤비레인' : imports[14],
|
||||
'고요6' : imports[15],
|
||||
'고요7' : imports[16],
|
||||
'검은산_뚜루' : imports[17],
|
||||
'검은산_다급' : imports[18],
|
||||
'검은산_부엉' : imports[19],
|
||||
'검은산_불안' : imports[20],
|
||||
'검은산_쏟아짐' : imports[21],
|
||||
'고요13' : imports[22],
|
||||
'고요14' : imports[23],
|
||||
};
|
||||
//NOTE: beware! same key is not allowed!! every keys should have different name!!
|
||||
var beach_players = {
|
||||
'2011_2011': [],
|
||||
'2011_벨': [],
|
||||
'2011_숲': [],
|
||||
'2011_바람': [],
|
||||
'2011_헤비레인': [],
|
||||
'고요6': [],
|
||||
'고요7': [],
|
||||
'검은산_뚜루': [],
|
||||
'검은산_다급': [],
|
||||
'검은산_부엉': [],
|
||||
'검은산_불안': [],
|
||||
'검은산_쏟아짐': [],
|
||||
'고요13': [],
|
||||
'고요14': [],
|
||||
};
|
||||
|
||||
//screen changer
|
||||
var nscreen = 4;
|
||||
var screens = [];
|
||||
var screen_names = {};
|
||||
screen_names['start'] = 1;
|
||||
screen_names['check'] = 2;
|
||||
screen_names['beach1'] = 3;
|
||||
screen_names['beach2'] = 4;
|
||||
var curscreen;
|
||||
for (var idx = 0; idx < nscreen; idx++) {
|
||||
screens.push(new Layer());
|
||||
}
|
||||
|
||||
function changeScreen(page) {
|
||||
//pagination buttons
|
||||
aprev._activate();
|
||||
anext._activate();
|
||||
//
|
||||
if (page < 1) page = 1;
|
||||
if (page > nscreen) page = nscreen;
|
||||
curscreen = page;
|
||||
for (var idx = 0; idx < nscreen; idx++) {
|
||||
//
|
||||
if (idx == page - 1) {
|
||||
screens[idx].bringToFront();
|
||||
top.bringToFront();
|
||||
$('.objstring').eq(idx).css('z-index', 1);
|
||||
//
|
||||
screens[idx].activate();
|
||||
} else {
|
||||
screens[idx].sendToBack();
|
||||
$('.objstring').eq(idx).css('z-index', -1);
|
||||
}
|
||||
}
|
||||
//pagination buttons
|
||||
if (curscreen == 1) {
|
||||
aprev._deactivate();
|
||||
}
|
||||
if (curscreen == nscreen) {
|
||||
anext._deactivate();
|
||||
}
|
||||
}
|
||||
|
||||
function nextScreen() {
|
||||
if (curscreen + 1 <= nscreen) {
|
||||
curscreen++;
|
||||
changeScreen(curscreen);
|
||||
}
|
||||
}
|
||||
|
||||
function prevScreen() {
|
||||
if (curscreen - 1 > 0) {
|
||||
curscreen--;
|
||||
changeScreen(curscreen);
|
||||
}
|
||||
}
|
||||
|
||||
function changeScreenByName(pagename) {
|
||||
changeScreen(screen_names[pagename]);
|
||||
}
|
||||
|
||||
function getScreenNameNext() {
|
||||
if (curscreen + 1 <= nscreen) {
|
||||
return Object.keys(screen_names)[curscreen + 1 - 1];
|
||||
} else {
|
||||
return Object.keys(screen_names)[curscreen - 1];
|
||||
}
|
||||
}
|
||||
|
||||
function getScreenNamePrev() {
|
||||
if (curscreen - 1 > 0) {
|
||||
return Object.keys(screen_names)[curscreen - 1 - 1];
|
||||
} else {
|
||||
return Object.keys(screen_names)[curscreen - 1];
|
||||
}
|
||||
}
|
||||
|
||||
//top layer
|
||||
var top = new Layer(); // new Layer() will be automatically activated at the moment.
|
||||
|
||||
//networking - socket.io
|
||||
//var socket = io('http://192.168.42.20:8080');
|
||||
//var socket = io('http://choir.run:8080');
|
||||
var socket = io('https://choir.run');
|
||||
|
||||
//net. connection marker
|
||||
var netstat = new Path.Circle({
|
||||
center: view.bounds.topRight + [-vssw / 2, +vssw / 2],
|
||||
radius: vssw / 4,
|
||||
fillColor: '#51D0FD',
|
||||
strokeWidth: vssw * 0.03,
|
||||
strokeColor: '#FFE40A',
|
||||
dashArray: [vssw * 0.05, vssw * 0.05],
|
||||
onFrame: function(event) {
|
||||
this.rotate(0.2);
|
||||
}
|
||||
});
|
||||
netstat.fillColor.alpha = 0;
|
||||
|
||||
//
|
||||
socket.on('connect', function() {
|
||||
console.log("i' m connected!");
|
||||
top.activate();
|
||||
netstat.fillColor.alpha = 1;
|
||||
socket.on('disconnect', function() {
|
||||
console.log("i' m disconnected!");
|
||||
top.activate();
|
||||
netstat.fillColor.alpha = 0;
|
||||
});
|
||||
});
|
||||
|
||||
//page change - prev. page
|
||||
aprev.addTo(project);
|
||||
aprev.scale(vssw * 1.5);
|
||||
aprev.position = [0, 0]; //reset position, before relative positioning !!
|
||||
aprev.translate([vssw, vssw * 1.8]);
|
||||
aprev.fillColor = '#FFE40A';
|
||||
aprev._socket = socket;
|
||||
aprev._isactive = false;
|
||||
aprev._activate = function() {
|
||||
this._isactive = true;
|
||||
this.opacity = 1;
|
||||
}
|
||||
aprev._deactivate = function() {
|
||||
this._isactive = false;
|
||||
this.opacity = 0.3;
|
||||
}
|
||||
aprev.onClick = function() {
|
||||
if (this._isactive == true) {
|
||||
prevScreen();
|
||||
}
|
||||
};
|
||||
|
||||
//page change - next. page
|
||||
anext.addTo(project);
|
||||
anext.scale(vssw * 1.5);
|
||||
anext.position = [0, 0]; //reset position, before relative positioning !!
|
||||
anext.translate([vssw * 9, vssw * 1.8]);
|
||||
anext.fillColor = '#FFE40A';
|
||||
anext._socket = socket;
|
||||
anext._isactive = false;
|
||||
anext._activate = function() {
|
||||
this._isactive = true;
|
||||
this.opacity = 1;
|
||||
}
|
||||
anext._deactivate = function() {
|
||||
this._isactive = false;
|
||||
this.opacity = 0.3;
|
||||
}
|
||||
anext.onClick = function() {
|
||||
if (this._isactive == true) {
|
||||
nextScreen();
|
||||
}
|
||||
};
|
||||
|
||||
//title background
|
||||
var titlebox = new Path.Rectangle({
|
||||
point: [vssw * 2, vssw * 1],
|
||||
size: [vssw * 6, vssw * 1.5],
|
||||
fillColor: 'white',
|
||||
radius: vssw * 0.8,
|
||||
opacity: 0.3,
|
||||
});
|
||||
|
||||
//screen #1 - 'home'
|
||||
changeScreen(1);
|
||||
new Path.Rectangle([0, 0], vs).fillColor = '#999';
|
||||
|
||||
//title - text
|
||||
new PointText({
|
||||
point: titlebox.bounds.center,
|
||||
content: ' 사운드-랩 § soundLab ',
|
||||
fillColor: 'white',
|
||||
fontFamily: 'AppleGothic, Sans-serif',
|
||||
fontWeight: 'bold',
|
||||
fontSize: '3em',
|
||||
}).fitBounds(titlebox.bounds);
|
||||
|
||||
//hello, screen.
|
||||
phonehand.addTo(project);
|
||||
phonehand.scale(vsw / 1.5);
|
||||
phonehand.position = view.center;
|
||||
//phonehand.position.y -= vssh;
|
||||
|
||||
//screen #2 - check
|
||||
changeScreen(2);
|
||||
new Path.Rectangle([0, 0], vs).fillColor = '#05C183';
|
||||
|
||||
//title - text
|
||||
new PointText({
|
||||
point: [vssw * 2, vssw * 1],
|
||||
content: ' 연결 확인 ',
|
||||
fillColor: 'white',
|
||||
fontFamily: 'AppleGothic, Sans-serif',
|
||||
fontWeight: 'bold',
|
||||
fontSize: '3em'
|
||||
}).fitBounds(titlebox.bounds);
|
||||
|
||||
//TODO: info text.
|
||||
new PointText({
|
||||
content: "네트워크 테스트!",
|
||||
point: view.center + [-vssw * 3, -vssw * 2],
|
||||
fontWeight: 'bold',
|
||||
fontSize: vssw * 1.0,
|
||||
fillColor: 'gold'
|
||||
});
|
||||
new PointText({
|
||||
content: "사운드 테스트!",
|
||||
point: view.center + [-vssw * 3, vssw * 0],
|
||||
fontWeight: 'bold',
|
||||
fontSize: vssw * 1.0,
|
||||
fillColor: 'pink'
|
||||
});
|
||||
new PointText({
|
||||
content: "동그라미 터치!",
|
||||
point: view.center + [-vssw * 3, vssw * 2],
|
||||
fontWeight: 'bold',
|
||||
fontSize: vssw * 1.0,
|
||||
fillColor: 'red'
|
||||
});
|
||||
new Path.Circle({
|
||||
center: view.center,
|
||||
radius: vsw / 4,
|
||||
fillColor: 'white',
|
||||
opacity: 0.5,
|
||||
onClick: function() {
|
||||
clap.play();
|
||||
}
|
||||
});
|
||||
|
||||
//screen #3 - beach page #1
|
||||
changeScreen(3);
|
||||
new Path.Rectangle([0, 0], vs).fillColor = '#555';
|
||||
|
||||
//title - text
|
||||
new PointText({
|
||||
point: [vssw * 2, vssw * 1],
|
||||
content: ' 믹스 #1 ',
|
||||
fillColor: 'white',
|
||||
fontFamily: 'AppleGothic, Sans-serif',
|
||||
fontWeight: 'bold',
|
||||
fontSize: '3em'
|
||||
}).fitBounds(titlebox.bounds);
|
||||
|
||||
//
|
||||
for (var row = 0; row < 7; row++) {
|
||||
for (var col = 0; col < 1; col++) {
|
||||
var idx = row * 1 + col;
|
||||
|
||||
//play/stop/playcount/faster/slower button (networked between groups)
|
||||
var c = new Group({
|
||||
children: [
|
||||
//play button
|
||||
new Path.Rectangle({
|
||||
name: 'play_btn',
|
||||
point: [vssw * 0.8, row * vssw * 1.4 + vssw * 3.5],
|
||||
radius: vssw * 0.4,
|
||||
size: [vssw * 1.5, vssw * 0.7],
|
||||
fillColor: new Color({
|
||||
hue: getRandom(20, 60),
|
||||
saturation: 1,
|
||||
brightness: 1
|
||||
}),
|
||||
onMouseDown: function(event) {
|
||||
var par = this.parent;
|
||||
par._players.push(par._player.start()._source); // start playbacks and collect their '_source's..
|
||||
par._playcount++;
|
||||
par.children.playcounter.content = '' + par._playcount;
|
||||
par.children.speedcounter.content = Number.parseFloat(1).toFixed(1);
|
||||
//
|
||||
par._socket.emit('sound', {
|
||||
name: par._key,
|
||||
action: 'start',
|
||||
group: 'beach'
|
||||
});
|
||||
}
|
||||
}),
|
||||
//playcounterbox
|
||||
new Path.Rectangle({
|
||||
name: 'playcounterbox',
|
||||
point: [vssw * 2.3, row * vssw * 1.4 + vssw * 3.5],
|
||||
size: [vssw * 0.6, vssw * 0.8],
|
||||
}),
|
||||
//playcounter
|
||||
new PointText({
|
||||
name: 'playcounter',
|
||||
content: '' + 0,
|
||||
fillColor: 'white',
|
||||
fontSize: '2em',
|
||||
fontWeight: 'bold'
|
||||
}),
|
||||
//stop button
|
||||
new Path.Rectangle({
|
||||
name: 'stop_btn',
|
||||
point: [vssw * 2.9, row * vssw * 1.4 + vssw * 3.5],
|
||||
radius: vssw * 0.4,
|
||||
size: [vssw * 1.6, vssw * 0.7],
|
||||
fillColor: new Color({
|
||||
hue: getRandom(120, 180),
|
||||
saturation: 1,
|
||||
brightness: 1
|
||||
}),
|
||||
onMouseDown: function() {
|
||||
var par = this.parent;
|
||||
if (par._players.length > 0) {
|
||||
(par._players.shift()).stop();
|
||||
par._playcount--;
|
||||
par.children.playcounter.content = '' + par._playcount;
|
||||
}
|
||||
if (par._players.length == 0) {
|
||||
par.children.speedcounter.content = Number.parseFloat(1).toFixed(1);
|
||||
}
|
||||
//
|
||||
par._socket.emit('sound', {
|
||||
name: par._key,
|
||||
action: 'stop',
|
||||
group: 'beach'
|
||||
});
|
||||
}
|
||||
}),
|
||||
//faster button
|
||||
new Path.Rectangle({
|
||||
name: 'faster_btn',
|
||||
point: [vssw * 5.0, row * vssw * 1.4 + vssw * 3.5],
|
||||
radius: vssw * 0.4,
|
||||
size: [vssw * 1.6, vssw * 0.7],
|
||||
strokeColor: new Color({
|
||||
hue: getRandom(20, 60),
|
||||
saturation: 1,
|
||||
brightness: 1
|
||||
}),
|
||||
strokeWidth : vssw * 0.03,
|
||||
onMouseDown: function() {
|
||||
var par = this.parent;
|
||||
if (par._players.length > 0) {
|
||||
par._players[par._players.length - 1].playbackRate.value += 0.2;
|
||||
par.children.speedcounter.content = Number.parseFloat(par._players[par._players.length - 1].playbackRate.value).toFixed(1);
|
||||
}
|
||||
//
|
||||
par._socket.emit('sound', {
|
||||
name: par._key,
|
||||
action: 'faster',
|
||||
group: 'beach'
|
||||
});
|
||||
}
|
||||
}),
|
||||
//speedcounterbox
|
||||
new Path.Rectangle({
|
||||
name: 'speedcounterbox',
|
||||
point: [vssw * 6.6, row * vssw * 1.4 + vssw * 3.5],
|
||||
size: [vssw * 0.6, vssw * 0.8],
|
||||
}),
|
||||
//speedcounter
|
||||
new PointText({
|
||||
name: 'speedcounter',
|
||||
content: '' + 0,
|
||||
fillColor: 'white',
|
||||
fontSize: '2em',
|
||||
fontWeight: 'bold'
|
||||
}),
|
||||
//slower button
|
||||
new Path.Rectangle({
|
||||
name: 'slower_btn',
|
||||
point: [vssw * 7.8, row * vssw * 1.4 + vssw * 3.5],
|
||||
radius: vssw * 0.4,
|
||||
size: [vssw * 1.6, vssw * 0.7],
|
||||
strokeColor: new Color({
|
||||
hue: getRandom(120, 180),
|
||||
saturation: 1,
|
||||
brightness: 1
|
||||
}),
|
||||
strokeWidth : vssw * 0.03,
|
||||
onMouseDown: function() {
|
||||
var par = this.parent;
|
||||
if (par._players.length > 0) {
|
||||
par._players[par._players.length - 1].playbackRate.value -= 0.2;
|
||||
par.children.speedcounter.content = Number.parseFloat(par._players[par._players.length - 1].playbackRate.value).toFixed(1);
|
||||
}
|
||||
//
|
||||
par._socket.emit('sound', {
|
||||
name: par._key,
|
||||
action: 'slower',
|
||||
group: 'beach'
|
||||
});
|
||||
}
|
||||
})
|
||||
],
|
||||
_socket: socket,
|
||||
_key: Object.keys(beach_sounds)[idx],
|
||||
_player: beach_sounds[Object.keys(beach_sounds)[idx]],
|
||||
_players: beach_players[Object.keys(beach_players)[idx]],
|
||||
_playcount: 0,
|
||||
_init: function() {
|
||||
this._player.loop = true;
|
||||
this._player.retrigger = true;
|
||||
// iconifying...
|
||||
var fast = faster.clone().addTo(project);
|
||||
fast.fitBounds(this.children.faster_btn.bounds);
|
||||
fast.fillColor = "orange";
|
||||
var slow = slower.clone().addTo(project);
|
||||
slow.fitBounds(this.children.slower_btn.bounds);
|
||||
slow.fillColor = "lime";
|
||||
var player_increase = plus.clone().addTo(project);
|
||||
player_increase.fitBounds(this.children.play_btn.bounds);
|
||||
player_increase.fillColor = "#555";
|
||||
var player_decrease = minus.clone().addTo(project);
|
||||
player_decrease.fitBounds(this.children.stop_btn.bounds);
|
||||
player_decrease.fillColor = "#555";
|
||||
// positioning numberboxes...
|
||||
this.children.playcounter.fitBounds(this.children.playcounterbox.bounds);
|
||||
this.children.speedcounter.fitBounds(this.children.speedcounterbox.bounds);
|
||||
this.children.speedcounter.content = Number.parseFloat(1).toFixed(1);
|
||||
//socket io event handling..
|
||||
var that = this;
|
||||
this._socket.on('sound', function(msg) {
|
||||
if (msg.group == 'beach' && msg.name == that._key) {
|
||||
if (msg.action == 'start') {
|
||||
that._players.push(that._player.start()._source); // start playbacks and collect their '_source's..
|
||||
that._playcount++;
|
||||
that.children.playcounter.content = '' + that._playcount;
|
||||
that.children.speedcounter.content = Number.parseFloat(1).toFixed(1);
|
||||
} else if (msg.action == 'stop') {
|
||||
if (that._players.length > 0) {
|
||||
(that._players.shift()).stop();
|
||||
that._playcount--;
|
||||
that.children.playcounter.content = '' + that._playcount;
|
||||
}
|
||||
if (that._players.length == 0) {
|
||||
that.children.speedcounter.content = Number.parseFloat(1).toFixed(1);
|
||||
}
|
||||
} else if (msg.action == 'faster') {
|
||||
if (that._players.length > 0) {
|
||||
that._players[that._players.length - 1].playbackRate.value += 0.2;
|
||||
that.children.speedcounter.content = Number.parseFloat(that._players[that._players.length - 1].playbackRate.value).toFixed(1);
|
||||
}
|
||||
} else if (msg.action == 'slower') {
|
||||
if (that._players.length > 0) {
|
||||
that._players[that._players.length - 1].playbackRate.value -= 0.2;
|
||||
that.children.speedcounter.content = Number.parseFloat(that._players[that._players.length - 1].playbackRate.value).toFixed(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
c._init();
|
||||
//label
|
||||
new PointText({
|
||||
point: c.firstChild.bounds.topLeft + [0, -5],
|
||||
content: Object.keys(beach_sounds)[idx],
|
||||
fontSize: vssw * 0.55,
|
||||
fontWeight: 'bold',
|
||||
fillColor: 'white'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
//screen #4 - beach page #2
|
||||
changeScreen(4);
|
||||
new Path.Rectangle([0, 0], vs).fillColor = '#555';
|
||||
|
||||
//title - text
|
||||
new PointText({
|
||||
point: [vssw * 2, vssw * 1],
|
||||
content: ' 믹스 #2 ',
|
||||
fillColor: 'white',
|
||||
fontFamily: 'AppleGothic, Sans-serif',
|
||||
fontWeight: 'bold',
|
||||
fontSize: '3em'
|
||||
}).fitBounds(titlebox.bounds);
|
||||
|
||||
//
|
||||
for (var row = 0; row < 7; row++) {
|
||||
for (var col = 0; col < 1; col++) {
|
||||
var idx = row * 1 + col + 7;
|
||||
|
||||
//play/stop/playcount/faster/slower button (networked between groups)
|
||||
var c = new Group({
|
||||
children: [
|
||||
//play button
|
||||
new Path.Rectangle({
|
||||
name: 'play_btn',
|
||||
point: [vssw * 0.8, row * vssw * 1.4 + vssw * 3.5],
|
||||
radius: vssw * 0.4,
|
||||
size: [vssw * 1.5, vssw * 0.7],
|
||||
fillColor: new Color({
|
||||
hue: getRandom(20, 60),
|
||||
saturation: 1,
|
||||
brightness: 1
|
||||
}),
|
||||
onMouseDown: function(event) {
|
||||
var par = this.parent;
|
||||
par._players.push(par._player.start()._source); // start playbacks and collect their '_source's..
|
||||
par._playcount++;
|
||||
par.children.playcounter.content = '' + par._playcount;
|
||||
par.children.speedcounter.content = Number.parseFloat(1).toFixed(1);
|
||||
//
|
||||
par._socket.emit('sound', {
|
||||
name: par._key,
|
||||
action: 'start',
|
||||
group: 'beach'
|
||||
});
|
||||
}
|
||||
}),
|
||||
//playcounterbox
|
||||
new Path.Rectangle({
|
||||
name: 'playcounterbox',
|
||||
point: [vssw * 2.3, row * vssw * 1.4 + vssw * 3.5],
|
||||
size: [vssw * 0.6, vssw * 0.8],
|
||||
}),
|
||||
//playcounter
|
||||
new PointText({
|
||||
name: 'playcounter',
|
||||
content: '' + 0,
|
||||
fillColor: 'white',
|
||||
fontSize: '2em',
|
||||
fontWeight: 'bold'
|
||||
}),
|
||||
//stop button
|
||||
new Path.Rectangle({
|
||||
name: 'stop_btn',
|
||||
point: [vssw * 2.9, row * vssw * 1.4 + vssw * 3.5],
|
||||
radius: vssw * 0.4,
|
||||
size: [vssw * 1.6, vssw * 0.7],
|
||||
fillColor: new Color({
|
||||
hue: getRandom(120, 180),
|
||||
saturation: 1,
|
||||
brightness: 1
|
||||
}),
|
||||
onMouseDown: function() {
|
||||
var par = this.parent;
|
||||
if (par._players.length > 0) {
|
||||
(par._players.shift()).stop();
|
||||
par._playcount--;
|
||||
par.children.playcounter.content = '' + par._playcount;
|
||||
}
|
||||
if (par._players.length == 0) {
|
||||
par.children.speedcounter.content = Number.parseFloat(1).toFixed(1);
|
||||
}
|
||||
//
|
||||
par._socket.emit('sound', {
|
||||
name: par._key,
|
||||
action: 'stop',
|
||||
group: 'beach'
|
||||
});
|
||||
}
|
||||
}),
|
||||
//faster button
|
||||
new Path.Rectangle({
|
||||
name: 'faster_btn',
|
||||
point: [vssw * 5.0, row * vssw * 1.4 + vssw * 3.5],
|
||||
radius: vssw * 0.4,
|
||||
size: [vssw * 1.6, vssw * 0.7],
|
||||
strokeColor: new Color({
|
||||
hue: getRandom(20, 60),
|
||||
saturation: 1,
|
||||
brightness: 1
|
||||
}),
|
||||
strokeWidth : vssw * 0.03,
|
||||
onMouseDown: function() {
|
||||
var par = this.parent;
|
||||
if (par._players.length > 0) {
|
||||
par._players[par._players.length - 1].playbackRate.value += 0.2;
|
||||
par.children.speedcounter.content = Number.parseFloat(par._players[par._players.length - 1].playbackRate.value).toFixed(1);
|
||||
}
|
||||
//
|
||||
par._socket.emit('sound', {
|
||||
name: par._key,
|
||||
action: 'faster',
|
||||
group: 'beach'
|
||||
});
|
||||
}
|
||||
}),
|
||||
//speedcounterbox
|
||||
new Path.Rectangle({
|
||||
name: 'speedcounterbox',
|
||||
point: [vssw * 6.6, row * vssw * 1.4 + vssw * 3.5],
|
||||
size: [vssw * 0.6, vssw * 0.8],
|
||||
}),
|
||||
//speedcounter
|
||||
new PointText({
|
||||
name: 'speedcounter',
|
||||
content: '' + 0,
|
||||
fillColor: 'white',
|
||||
fontSize: '2em',
|
||||
fontWeight: 'bold'
|
||||
}),
|
||||
//slower button
|
||||
new Path.Rectangle({
|
||||
name: 'slower_btn',
|
||||
point: [vssw * 7.8, row * vssw * 1.4 + vssw * 3.5],
|
||||
radius: vssw * 0.4,
|
||||
size: [vssw * 1.6, vssw * 0.7],
|
||||
strokeColor: new Color({
|
||||
hue: getRandom(120, 180),
|
||||
saturation: 1,
|
||||
brightness: 1
|
||||
}),
|
||||
strokeWidth : vssw * 0.03,
|
||||
onMouseDown: function() {
|
||||
var par = this.parent;
|
||||
if (par._players.length > 0) {
|
||||
par._players[par._players.length - 1].playbackRate.value -= 0.2;
|
||||
par.children.speedcounter.content = Number.parseFloat(par._players[par._players.length - 1].playbackRate.value).toFixed(1);
|
||||
}
|
||||
//
|
||||
par._socket.emit('sound', {
|
||||
name: par._key,
|
||||
action: 'slower',
|
||||
group: 'beach'
|
||||
});
|
||||
}
|
||||
})
|
||||
],
|
||||
_socket: socket,
|
||||
_key: Object.keys(beach_sounds)[idx],
|
||||
_player: beach_sounds[Object.keys(beach_sounds)[idx]],
|
||||
_players: beach_players[Object.keys(beach_players)[idx]],
|
||||
_playcount: 0,
|
||||
_init: function() {
|
||||
this._player.loop = true;
|
||||
this._player.retrigger = true;
|
||||
// iconifying...
|
||||
var fast = faster.clone().addTo(project);
|
||||
fast.fitBounds(this.children.faster_btn.bounds);
|
||||
fast.fillColor = "orange";
|
||||
var slow = slower.clone().addTo(project);
|
||||
slow.fitBounds(this.children.slower_btn.bounds);
|
||||
slow.fillColor = "lime";
|
||||
var player_increase = plus.clone().addTo(project);
|
||||
player_increase.fitBounds(this.children.play_btn.bounds);
|
||||
player_increase.fillColor = "#555";
|
||||
var player_decrease = minus.clone().addTo(project);
|
||||
player_decrease.fitBounds(this.children.stop_btn.bounds);
|
||||
player_decrease.fillColor = "#555";
|
||||
// positioning numberboxes...
|
||||
this.children.playcounter.fitBounds(this.children.playcounterbox.bounds);
|
||||
this.children.speedcounter.fitBounds(this.children.speedcounterbox.bounds);
|
||||
this.children.speedcounter.content = Number.parseFloat(1).toFixed(1);
|
||||
//socket io event handling..
|
||||
var that = this;
|
||||
this._socket.on('sound', function(msg) {
|
||||
if (msg.group == 'beach' && msg.name == that._key) {
|
||||
if (msg.action == 'start') {
|
||||
that._players.push(that._player.start()._source); // start playbacks and collect their '_source's..
|
||||
that._playcount++;
|
||||
that.children.playcounter.content = '' + that._playcount;
|
||||
that.children.speedcounter.content = Number.parseFloat(1).toFixed(1);
|
||||
} else if (msg.action == 'stop') {
|
||||
if (that._players.length > 0) {
|
||||
(that._players.shift()).stop();
|
||||
that._playcount--;
|
||||
that.children.playcounter.content = '' + that._playcount;
|
||||
}
|
||||
if (that._players.length == 0) {
|
||||
that.children.speedcounter.content = Number.parseFloat(1).toFixed(1);
|
||||
}
|
||||
} else if (msg.action == 'faster') {
|
||||
if (that._players.length > 0) {
|
||||
that._players[that._players.length - 1].playbackRate.value += 0.2;
|
||||
that.children.speedcounter.content = Number.parseFloat(that._players[that._players.length - 1].playbackRate.value).toFixed(1);
|
||||
}
|
||||
} else if (msg.action == 'slower') {
|
||||
if (that._players.length > 0) {
|
||||
that._players[that._players.length - 1].playbackRate.value -= 0.2;
|
||||
that.children.speedcounter.content = Number.parseFloat(that._players[that._players.length - 1].playbackRate.value).toFixed(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
c._init();
|
||||
//label
|
||||
new PointText({
|
||||
point: c.firstChild.bounds.topLeft + [0, -5],
|
||||
content: Object.keys(beach_sounds)[idx],
|
||||
fontSize: vssw * 0.55,
|
||||
fontWeight: 'bold',
|
||||
fillColor: 'white'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
//home
|
||||
changeScreen(1);
|
||||
|
||||
//reveal the curtain.
|
||||
$('#page-loading').css('z-index', -1);
|
||||
|
||||
//network event handlers
|
||||
|
||||
//event: 'sound'
|
||||
socket.on('sound', function(sound) {
|
||||
if (sound.name == 'clap') {
|
||||
if (sound.action == 'start') {
|
||||
clap.start();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
14
public/a1/conductor/lib/Tone-r12.min.js
vendored
Normal file
14
public/a1/conductor/lib/Tone-reserved.min.js
vendored
Normal file
1
public/a1/conductor/lib/colors-2.2.0.min.css
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
.bg-navy{background-color:#001F3F}.bg-blue{background-color:#0074D9}.bg-aqua{background-color:#7FDBFF}.bg-teal{background-color:#39CCCC}.bg-olive{background-color:#3D9970}.bg-green{background-color:#2ECC40}.bg-lime{background-color:#01FF70}.bg-yellow{background-color:#FFDC00}.bg-orange{background-color:#FF851B}.bg-red{background-color:#FF4136}.bg-fuchsia{background-color:#F012BE}.bg-purple{background-color:#B10DC9}.bg-maroon{background-color:#85144B}.bg-white{background-color:#fff}.bg-gray{background-color:#aaa}.bg-silver{background-color:#ddd}.bg-black{background-color:#111}.navy{color:#001F3F}.blue{color:#0074D9}.aqua{color:#7FDBFF}.teal{color:#39CCCC}.olive{color:#3D9970}.green{color:#2ECC40}.lime{color:#01FF70}.yellow{color:#FFDC00}.orange{color:#FF851B}.red{color:#FF4136}.fuchsia{color:#F012BE}.purple{color:#B10DC9}.maroon{color:#85144B}.white{color:#fff}.silver{color:#ddd}.gray{color:#aaa}.black{color:#111}.border--navy{border-color:#001F3F}.border--blue{border-color:#0074D9}.border--aqua{border-color:#7FDBFF}.border--teal{border-color:#39CCCC}.border--olive{border-color:#3D9970}.border--green{border-color:#2ECC40}.border--lime{border-color:#01FF70}.border--yellow{border-color:#FFDC00}.border--orange{border-color:#FF851B}.border--red{border-color:#FF4136}.border--fuchsia{border-color:#F012BE}.border--purple{border-color:#B10DC9}.border--maroon{border-color:#85144B}.border--white{border-color:#fff}.border--gray{border-color:#aaa}.border--silver{border-color:#ddd}.border--black{border-color:#111}.fill-navy{fill:#001F3F}.fill-blue{fill:#0074D9}.fill-aqua{fill:#7FDBFF}.fill-teal{fill:#39CCCC}.fill-olive{fill:#3D9970}.fill-green{fill:#2ECC40}.fill-lime{fill:#01FF70}.fill-yellow{fill:#FFDC00}.fill-orange{fill:#FF851B}.fill-red{fill:#FF4136}.fill-fuchsia{fill:#F012BE}.fill-purple{fill:#B10DC9}.fill-maroon{fill:#85144B}.fill-white{fill:#fff}.fill-gray{fill:#aaa}.fill-silver{fill:#ddd}.fill-black{fill:#111}.stroke-navy{stroke:#001F3F}.stroke-blue{stroke:#0074D9}.stroke-aqua{stroke:#7FDBFF}.stroke-teal{stroke:#39CCCC}.stroke-olive{stroke:#3D9970}.stroke-green{stroke:#2ECC40}.stroke-lime{stroke:#01FF70}.stroke-yellow{stroke:#FFDC00}.stroke-orange{stroke:#FF851B}.stroke-red{stroke:#FF4136}.stroke-fuchsia{stroke:#F012BE}.stroke-purple{stroke:#B10DC9}.stroke-maroon{stroke:#85144B}.stroke-white{stroke:#fff}.stroke-gray{stroke:#aaa}.stroke-silver{stroke:#ddd}.stroke-black{stroke:#111}
|
||||
7
public/a1/conductor/lib/hammer-v2.0.8.min.js
vendored
Normal file
4
public/a1/conductor/lib/jquery-3.2.1.min.js
vendored
Normal file
42
public/a1/conductor/lib/loading-animation.css
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
/* Styles go here */
|
||||
.animationStripes{
|
||||
background-image: repeating-linear-gradient(-45deg, gold, gold 25px, blue 25px, blue 50px);
|
||||
-webkit-animation:progress 2s linear infinite;
|
||||
-moz-animation:progress 2s linear infinite;
|
||||
-ms-animation:progress 2s linear infinite;
|
||||
animation:progress 2s linear infinite;
|
||||
background-size: 150% 100%;
|
||||
}
|
||||
|
||||
@-webkit-keyframes progress{
|
||||
0% {
|
||||
background-position: 0 0;
|
||||
}
|
||||
100% {
|
||||
background-position: -75px 0px;
|
||||
}
|
||||
}
|
||||
@-moz-keyframes progress{
|
||||
0% {
|
||||
background-position: 0 0;
|
||||
}
|
||||
100% {
|
||||
background-position: -75px 0px;
|
||||
}
|
||||
}
|
||||
@-ms-keyframes progress{
|
||||
0% {
|
||||
background-position: 0 0;
|
||||
}
|
||||
100% {
|
||||
background-position: -75px 0px;
|
||||
}
|
||||
}
|
||||
@keyframes progress{
|
||||
0% {
|
||||
background-position: 0 0;
|
||||
}
|
||||
100% {
|
||||
background-position: -70px 0px;
|
||||
}
|
||||
}
|
||||
137
public/a1/conductor/lib/lodash-full-v4.17.10.min.js
vendored
Normal file
|
|
@ -0,0 +1,137 @@
|
|||
/**
|
||||
* @license
|
||||
* Lodash lodash.com/license | Underscore.js 1.8.3 underscorejs.org/LICENSE
|
||||
*/
|
||||
;(function(){function n(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function t(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u<i;){var o=n[u];t(e,o,r(o),n)}return e}function r(n,t){for(var r=-1,e=null==n?0:n.length;++r<e&&false!==t(n[r],r,n););return n}function e(n,t){for(var r=null==n?0:n.length;r--&&false!==t(n[r],r,n););return n}function u(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(!t(n[r],r,n))return false;
|
||||
return true}function i(n,t){for(var r=-1,e=null==n?0:n.length,u=0,i=[];++r<e;){var o=n[r];t(o,r,n)&&(i[u++]=o)}return i}function o(n,t){return!(null==n||!n.length)&&-1<v(n,t,0)}function f(n,t,r){for(var e=-1,u=null==n?0:n.length;++e<u;)if(r(t,n[e]))return true;return false}function c(n,t){for(var r=-1,e=null==n?0:n.length,u=Array(e);++r<e;)u[r]=t(n[r],r,n);return u}function a(n,t){for(var r=-1,e=t.length,u=n.length;++r<e;)n[u+r]=t[r];return n}function l(n,t,r,e){var u=-1,i=null==n?0:n.length;for(e&&i&&(r=n[++u]);++u<i;)r=t(r,n[u],u,n);
|
||||
return r}function s(n,t,r,e){var u=null==n?0:n.length;for(e&&u&&(r=n[--u]);u--;)r=t(r,n[u],u,n);return r}function h(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(t(n[r],r,n))return true;return false}function p(n,t,r){var e;return r(n,function(n,r,u){if(t(n,r,u))return e=r,false}),e}function _(n,t,r,e){var u=n.length;for(r+=e?1:-1;e?r--:++r<u;)if(t(n[r],r,n))return r;return-1}function v(n,t,r){if(t===t)n:{--r;for(var e=n.length;++r<e;)if(n[r]===t){n=r;break n}n=-1}else n=_(n,d,r);return n}function g(n,t,r,e){
|
||||
--r;for(var u=n.length;++r<u;)if(e(n[r],t))return r;return-1}function d(n){return n!==n}function y(n,t){var r=null==n?0:n.length;return r?m(n,t)/r:F}function b(n){return function(t){return null==t?T:t[n]}}function x(n){return function(t){return null==n?T:n[t]}}function j(n,t,r,e,u){return u(n,function(n,u,i){r=e?(e=false,n):t(r,n,u,i)}),r}function w(n,t){var r=n.length;for(n.sort(t);r--;)n[r]=n[r].c;return n}function m(n,t){for(var r,e=-1,u=n.length;++e<u;){var i=t(n[e]);i!==T&&(r=r===T?i:r+i)}return r;
|
||||
}function A(n,t){for(var r=-1,e=Array(n);++r<n;)e[r]=t(r);return e}function E(n,t){return c(t,function(t){return[t,n[t]]})}function k(n){return function(t){return n(t)}}function S(n,t){return c(t,function(t){return n[t]})}function O(n,t){return n.has(t)}function I(n,t){for(var r=-1,e=n.length;++r<e&&-1<v(t,n[r],0););return r}function R(n,t){for(var r=n.length;r--&&-1<v(t,n[r],0););return r}function z(n){return"\\"+Un[n]}function W(n){var t=-1,r=Array(n.size);return n.forEach(function(n,e){r[++t]=[e,n];
|
||||
}),r}function B(n,t){return function(r){return n(t(r))}}function L(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){var o=n[r];o!==t&&"__lodash_placeholder__"!==o||(n[r]="__lodash_placeholder__",i[u++]=r)}return i}function U(n){var t=-1,r=Array(n.size);return n.forEach(function(n){r[++t]=n}),r}function C(n){var t=-1,r=Array(n.size);return n.forEach(function(n){r[++t]=[n,n]}),r}function D(n){if(Rn.test(n)){for(var t=On.lastIndex=0;On.test(n);)++t;n=t}else n=Qn(n);return n}function M(n){return Rn.test(n)?n.match(On)||[]:n.split("");
|
||||
}var T,$=1/0,F=NaN,N=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],P=/\b__p\+='';/g,Z=/\b(__p\+=)''\+/g,q=/(__e\(.*?\)|\b__t\))\+'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,G=RegExp(V.source),H=RegExp(K.source),J=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nn=/^\w*$/,tn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rn=/[\\^$.*+?()[\]{}|]/g,en=RegExp(rn.source),un=/^\s+|\s+$/g,on=/^\s+/,fn=/\s+$/,cn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,an=/\{\n\/\* \[wrapped with (.+)\] \*/,ln=/,? & /,sn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,hn=/\\(\\)?/g,pn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_n=/\w*$/,vn=/^[-+]0x[0-9a-f]+$/i,gn=/^0b[01]+$/i,dn=/^\[object .+?Constructor\]$/,yn=/^0o[0-7]+$/i,bn=/^(?:0|[1-9]\d*)$/,xn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jn=/($^)/,wn=/['\n\r\u2028\u2029\\]/g,mn="[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?(?:\\u200d(?:[^\\ud800-\\udfff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?)*",An="(?:[\\u2700-\\u27bf]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])"+mn,En="(?:[^\\ud800-\\udfff][\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]?|[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\ud800-\\udfff])",kn=RegExp("['\u2019]","g"),Sn=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),On=RegExp("\\ud83c[\\udffb-\\udfff](?=\\ud83c[\\udffb-\\udfff])|"+En+mn,"g"),In=RegExp(["[A-Z\\xc0-\\xd6\\xd8-\\xde]?[a-z\\xdf-\\xf6\\xf8-\\xff]+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde]|$)|(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde](?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])|$)|[A-Z\\xc0-\\xd6\\xd8-\\xde]?(?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:d|ll|m|re|s|t|ve))?|[A-Z\\xc0-\\xd6\\xd8-\\xde]+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?|\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+",An].join("|"),"g"),Rn=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),zn=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wn="Array Buffer DataView Date Error Float32Array Float64Array Function Int8Array Int16Array Int32Array Map Math Object Promise RegExp Set String Symbol TypeError Uint8Array Uint8ClampedArray Uint16Array Uint32Array WeakMap _ clearTimeout isFinite parseInt setTimeout".split(" "),Bn={};
|
||||
Bn["[object Float32Array]"]=Bn["[object Float64Array]"]=Bn["[object Int8Array]"]=Bn["[object Int16Array]"]=Bn["[object Int32Array]"]=Bn["[object Uint8Array]"]=Bn["[object Uint8ClampedArray]"]=Bn["[object Uint16Array]"]=Bn["[object Uint32Array]"]=true,Bn["[object Arguments]"]=Bn["[object Array]"]=Bn["[object ArrayBuffer]"]=Bn["[object Boolean]"]=Bn["[object DataView]"]=Bn["[object Date]"]=Bn["[object Error]"]=Bn["[object Function]"]=Bn["[object Map]"]=Bn["[object Number]"]=Bn["[object Object]"]=Bn["[object RegExp]"]=Bn["[object Set]"]=Bn["[object String]"]=Bn["[object WeakMap]"]=false;
|
||||
var Ln={};Ln["[object Arguments]"]=Ln["[object Array]"]=Ln["[object ArrayBuffer]"]=Ln["[object DataView]"]=Ln["[object Boolean]"]=Ln["[object Date]"]=Ln["[object Float32Array]"]=Ln["[object Float64Array]"]=Ln["[object Int8Array]"]=Ln["[object Int16Array]"]=Ln["[object Int32Array]"]=Ln["[object Map]"]=Ln["[object Number]"]=Ln["[object Object]"]=Ln["[object RegExp]"]=Ln["[object Set]"]=Ln["[object String]"]=Ln["[object Symbol]"]=Ln["[object Uint8Array]"]=Ln["[object Uint8ClampedArray]"]=Ln["[object Uint16Array]"]=Ln["[object Uint32Array]"]=true,
|
||||
Ln["[object Error]"]=Ln["[object Function]"]=Ln["[object WeakMap]"]=false;var Un={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Cn=parseFloat,Dn=parseInt,Mn=typeof global=="object"&&global&&global.Object===Object&&global,Tn=typeof self=="object"&&self&&self.Object===Object&&self,$n=Mn||Tn||Function("return this")(),Fn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Nn=Fn&&typeof module=="object"&&module&&!module.nodeType&&module,Pn=Nn&&Nn.exports===Fn,Zn=Pn&&Mn.process,qn=function(){
|
||||
try{var n=Nn&&Nn.f&&Nn.f("util").types;return n?n:Zn&&Zn.binding&&Zn.binding("util")}catch(n){}}(),Vn=qn&&qn.isArrayBuffer,Kn=qn&&qn.isDate,Gn=qn&&qn.isMap,Hn=qn&&qn.isRegExp,Jn=qn&&qn.isSet,Yn=qn&&qn.isTypedArray,Qn=b("length"),Xn=x({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I",
|
||||
"\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C",
|
||||
"\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i",
|
||||
"\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r",
|
||||
"\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij",
|
||||
"\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),nt=x({"&":"&","<":"<",">":">",'"':""","'":"'"}),tt=x({"&":"&","<":"<",">":">",""":'"',"'":"'"}),rt=function x(mn){function An(n){if(du(n)&&!of(n)&&!(n instanceof Un)){if(n instanceof On)return n;if(ii.call(n,"__wrapped__"))return $e(n)}return new On(n)}function En(){}function On(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=T}function Un(n){this.__wrapped__=n,
|
||||
this.__actions__=[],this.__dir__=1,this.__filtered__=false,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Mn(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Tn(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Fn(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Nn(n){var t=-1,r=null==n?0:n.length;for(this.__data__=new Fn;++t<r;)this.add(n[t]);
|
||||
}function Zn(n){this.size=(this.__data__=new Tn(n)).size}function qn(n,t){var r,e=of(n),u=!e&&uf(n),i=!e&&!u&&cf(n),o=!e&&!u&&!i&&pf(n),u=(e=e||u||i||o)?A(n.length,Xu):[],f=u.length;for(r in n)!t&&!ii.call(n,r)||e&&("length"==r||i&&("offset"==r||"parent"==r)||o&&("buffer"==r||"byteLength"==r||"byteOffset"==r)||Se(r,f))||u.push(r);return u}function Qn(n){var t=n.length;return t?n[ir(0,t-1)]:T}function et(n,t){return Ce(Ur(n),pt(t,0,n.length))}function ut(n){return Ce(Ur(n))}function it(n,t,r){(r===T||au(n[t],r))&&(r!==T||t in n)||st(n,t,r);
|
||||
}function ot(n,t,r){var e=n[t];ii.call(n,t)&&au(e,r)&&(r!==T||t in n)||st(n,t,r)}function ft(n,t){for(var r=n.length;r--;)if(au(n[r][0],t))return r;return-1}function ct(n,t,r,e){return eo(n,function(n,u,i){t(e,n,r(n),i)}),e}function at(n,t){return n&&Cr(t,zu(t),n)}function lt(n,t){return n&&Cr(t,Wu(t),n)}function st(n,t,r){"__proto__"==t&&mi?mi(n,t,{configurable:true,enumerable:true,value:r,writable:true}):n[t]=r}function ht(n,t){for(var r=-1,e=t.length,u=Vu(e),i=null==n;++r<e;)u[r]=i?T:Iu(n,t[r]);return u;
|
||||
}function pt(n,t,r){return n===n&&(r!==T&&(n=n<=r?n:r),t!==T&&(n=n>=t?n:t)),n}function _t(n,t,e,u,i,o){var f,c=1&t,a=2&t,l=4&t;if(e&&(f=i?e(n,u,i,o):e(n)),f!==T)return f;if(!gu(n))return n;if(u=of(n)){if(f=me(n),!c)return Ur(n,f)}else{var s=_o(n),h="[object Function]"==s||"[object GeneratorFunction]"==s;if(cf(n))return Ir(n,c);if("[object Object]"==s||"[object Arguments]"==s||h&&!i){if(f=a||h?{}:Ae(n),!c)return a?Mr(n,lt(f,n)):Dr(n,at(f,n))}else{if(!Ln[s])return i?n:{};f=Ee(n,s,c)}}if(o||(o=new Zn),
|
||||
i=o.get(n))return i;if(o.set(n,f),hf(n))return n.forEach(function(r){f.add(_t(r,t,e,r,n,o))}),f;if(lf(n))return n.forEach(function(r,u){f.set(u,_t(r,t,e,u,n,o))}),f;var a=l?a?ve:_e:a?Wu:zu,p=u?T:a(n);return r(p||n,function(r,u){p&&(u=r,r=n[u]),ot(f,u,_t(r,t,e,u,n,o))}),f}function vt(n){var t=zu(n);return function(r){return gt(r,n,t)}}function gt(n,t,r){var e=r.length;if(null==n)return!e;for(n=Yu(n);e--;){var u=r[e],i=t[u],o=n[u];if(o===T&&!(u in n)||!i(o))return false}return true}function dt(n,t,r){if(typeof n!="function")throw new ni("Expected a function");
|
||||
return yo(function(){n.apply(T,r)},t)}function yt(n,t,r,e){var u=-1,i=o,a=true,l=n.length,s=[],h=t.length;if(!l)return s;r&&(t=c(t,k(r))),e?(i=f,a=false):200<=t.length&&(i=O,a=false,t=new Nn(t));n:for(;++u<l;){var p=n[u],_=null==r?p:r(p),p=e||0!==p?p:0;if(a&&_===_){for(var v=h;v--;)if(t[v]===_)continue n;s.push(p)}else i(t,_,e)||s.push(p)}return s}function bt(n,t){var r=true;return eo(n,function(n,e,u){return r=!!t(n,e,u)}),r}function xt(n,t,r){for(var e=-1,u=n.length;++e<u;){var i=n[e],o=t(i);if(null!=o&&(f===T?o===o&&!ju(o):r(o,f)))var f=o,c=i;
|
||||
}return c}function jt(n,t){var r=[];return eo(n,function(n,e,u){t(n,e,u)&&r.push(n)}),r}function wt(n,t,r,e,u){var i=-1,o=n.length;for(r||(r=ke),u||(u=[]);++i<o;){var f=n[i];0<t&&r(f)?1<t?wt(f,t-1,r,e,u):a(u,f):e||(u[u.length]=f)}return u}function mt(n,t){return n&&io(n,t,zu)}function At(n,t){return n&&oo(n,t,zu)}function Et(n,t){return i(t,function(t){return pu(n[t])})}function kt(n,t){t=Sr(t,n);for(var r=0,e=t.length;null!=n&&r<e;)n=n[De(t[r++])];return r&&r==e?n:T}function St(n,t,r){return t=t(n),
|
||||
of(n)?t:a(t,r(n))}function Ot(n){if(null==n)n=n===T?"[object Undefined]":"[object Null]";else if(wi&&wi in Yu(n)){var t=ii.call(n,wi),r=n[wi];try{n[wi]=T;var e=true}catch(n){}var u=ci.call(n);e&&(t?n[wi]=r:delete n[wi]),n=u}else n=ci.call(n);return n}function It(n,t){return n>t}function Rt(n,t){return null!=n&&ii.call(n,t)}function zt(n,t){return null!=n&&t in Yu(n)}function Wt(n,t,r){for(var e=r?f:o,u=n[0].length,i=n.length,a=i,l=Vu(i),s=1/0,h=[];a--;){var p=n[a];a&&t&&(p=c(p,k(t))),s=Ui(p.length,s),
|
||||
l[a]=!r&&(t||120<=u&&120<=p.length)?new Nn(a&&p):T}var p=n[0],_=-1,v=l[0];n:for(;++_<u&&h.length<s;){var g=p[_],d=t?t(g):g,g=r||0!==g?g:0;if(v?!O(v,d):!e(h,d,r)){for(a=i;--a;){var y=l[a];if(y?!O(y,d):!e(n[a],d,r))continue n}v&&v.push(d),h.push(g)}}return h}function Bt(n,t,r){var e={};return mt(n,function(n,u,i){t(e,r(n),u,i)}),e}function Lt(t,r,e){return r=Sr(r,t),t=2>r.length?t:kt(t,hr(r,0,-1)),r=null==t?t:t[De(qe(r))],null==r?T:n(r,t,e)}function Ut(n){return du(n)&&"[object Arguments]"==Ot(n)}function Ct(n){
|
||||
return du(n)&&"[object ArrayBuffer]"==Ot(n)}function Dt(n){return du(n)&&"[object Date]"==Ot(n)}function Mt(n,t,r,e,u){if(n===t)t=true;else if(null==n||null==t||!du(n)&&!du(t))t=n!==n&&t!==t;else n:{var i=of(n),o=of(t),f=i?"[object Array]":_o(n),c=o?"[object Array]":_o(t),f="[object Arguments]"==f?"[object Object]":f,c="[object Arguments]"==c?"[object Object]":c,a="[object Object]"==f,o="[object Object]"==c;if((c=f==c)&&cf(n)){if(!cf(t)){t=false;break n}i=true,a=false}if(c&&!a)u||(u=new Zn),t=i||pf(n)?se(n,t,r,e,Mt,u):he(n,t,f,r,e,Mt,u);else{
|
||||
if(!(1&r)&&(i=a&&ii.call(n,"__wrapped__"),f=o&&ii.call(t,"__wrapped__"),i||f)){n=i?n.value():n,t=f?t.value():t,u||(u=new Zn),t=Mt(n,t,r,e,u);break n}if(c)t:if(u||(u=new Zn),i=1&r,f=_e(n),o=f.length,c=_e(t).length,o==c||i){for(a=o;a--;){var l=f[a];if(!(i?l in t:ii.call(t,l))){t=false;break t}}if((c=u.get(n))&&u.get(t))t=c==t;else{c=true,u.set(n,t),u.set(t,n);for(var s=i;++a<o;){var l=f[a],h=n[l],p=t[l];if(e)var _=i?e(p,h,l,t,n,u):e(h,p,l,n,t,u);if(_===T?h!==p&&!Mt(h,p,r,e,u):!_){c=false;break}s||(s="constructor"==l);
|
||||
}c&&!s&&(r=n.constructor,e=t.constructor,r!=e&&"constructor"in n&&"constructor"in t&&!(typeof r=="function"&&r instanceof r&&typeof e=="function"&&e instanceof e)&&(c=false)),u.delete(n),u.delete(t),t=c}}else t=false;else t=false}}return t}function Tt(n){return du(n)&&"[object Map]"==_o(n)}function $t(n,t,r,e){var u=r.length,i=u,o=!e;if(null==n)return!i;for(n=Yu(n);u--;){var f=r[u];if(o&&f[2]?f[1]!==n[f[0]]:!(f[0]in n))return false}for(;++u<i;){var f=r[u],c=f[0],a=n[c],l=f[1];if(o&&f[2]){if(a===T&&!(c in n))return false;
|
||||
}else{if(f=new Zn,e)var s=e(a,l,c,n,t,f);if(s===T?!Mt(l,a,3,e,f):!s)return false}}return true}function Ft(n){return!(!gu(n)||fi&&fi in n)&&(pu(n)?si:dn).test(Me(n))}function Nt(n){return du(n)&&"[object RegExp]"==Ot(n)}function Pt(n){return du(n)&&"[object Set]"==_o(n)}function Zt(n){return du(n)&&vu(n.length)&&!!Bn[Ot(n)]}function qt(n){return typeof n=="function"?n:null==n?Tu:typeof n=="object"?of(n)?Jt(n[0],n[1]):Ht(n):Pu(n)}function Vt(n){if(!ze(n))return Bi(n);var t,r=[];for(t in Yu(n))ii.call(n,t)&&"constructor"!=t&&r.push(t);
|
||||
return r}function Kt(n,t){return n<t}function Gt(n,t){var r=-1,e=lu(n)?Vu(n.length):[];return eo(n,function(n,u,i){e[++r]=t(n,u,i)}),e}function Ht(n){var t=xe(n);return 1==t.length&&t[0][2]?We(t[0][0],t[0][1]):function(r){return r===n||$t(r,n,t)}}function Jt(n,t){return Ie(n)&&t===t&&!gu(t)?We(De(n),t):function(r){var e=Iu(r,n);return e===T&&e===t?Ru(r,n):Mt(t,e,3)}}function Yt(n,t,r,e,u){n!==t&&io(t,function(i,o){if(gu(i)){u||(u=new Zn);var f=u,c="__proto__"==o?T:n[o],a="__proto__"==o?T:t[o],l=f.get(a);
|
||||
if(l)it(n,o,l);else{var l=e?e(c,a,o+"",n,t,f):T,s=l===T;if(s){var h=of(a),p=!h&&cf(a),_=!h&&!p&&pf(a),l=a;h||p||_?of(c)?l=c:su(c)?l=Ur(c):p?(s=false,l=Ir(a,true)):_?(s=false,l=zr(a,true)):l=[]:bu(a)||uf(a)?(l=c,uf(c)?l=Su(c):(!gu(c)||r&&pu(c))&&(l=Ae(a))):s=false}s&&(f.set(a,l),Yt(l,a,r,e,f),f.delete(a)),it(n,o,l)}}else f=e?e("__proto__"==o?T:n[o],i,o+"",n,t,u):T,f===T&&(f=i),it(n,o,f)},Wu)}function Qt(n,t){var r=n.length;if(r)return t+=0>t?r:0,Se(t,r)?n[t]:T}function Xt(n,t,r){var e=-1;return t=c(t.length?t:[Tu],k(ye())),
|
||||
n=Gt(n,function(n){return{a:c(t,function(t){return t(n)}),b:++e,c:n}}),w(n,function(n,t){var e;n:{e=-1;for(var u=n.a,i=t.a,o=u.length,f=r.length;++e<o;){var c=Wr(u[e],i[e]);if(c){e=e>=f?c:c*("desc"==r[e]?-1:1);break n}}e=n.b-t.b}return e})}function nr(n,t){return tr(n,t,function(t,r){return Ru(n,r)})}function tr(n,t,r){for(var e=-1,u=t.length,i={};++e<u;){var o=t[e],f=kt(n,o);r(f,o)&&lr(i,Sr(o,n),f)}return i}function rr(n){return function(t){return kt(t,n)}}function er(n,t,r,e){var u=e?g:v,i=-1,o=t.length,f=n;
|
||||
for(n===t&&(t=Ur(t)),r&&(f=c(n,k(r)));++i<o;)for(var a=0,l=t[i],l=r?r(l):l;-1<(a=u(f,l,a,e));)f!==n&&bi.call(f,a,1),bi.call(n,a,1);return n}function ur(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;Se(u)?bi.call(n,u,1):xr(n,u)}}}function ir(n,t){return n+Oi(Mi()*(t-n+1))}function or(n,t){var r="";if(!n||1>t||9007199254740991<t)return r;do t%2&&(r+=n),(t=Oi(t/2))&&(n+=n);while(t);return r}function fr(n,t){return bo(Be(n,t,Tu),n+"")}function cr(n){return Qn(Lu(n))}function ar(n,t){
|
||||
var r=Lu(n);return Ce(r,pt(t,0,r.length))}function lr(n,t,r,e){if(!gu(n))return n;t=Sr(t,n);for(var u=-1,i=t.length,o=i-1,f=n;null!=f&&++u<i;){var c=De(t[u]),a=r;if(u!=o){var l=f[c],a=e?e(l,c,f):T;a===T&&(a=gu(l)?l:Se(t[u+1])?[]:{})}ot(f,c,a),f=f[c]}return n}function sr(n){return Ce(Lu(n))}function hr(n,t,r){var e=-1,u=n.length;for(0>t&&(t=-t>u?0:u+t),r=r>u?u:r,0>r&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0,r=Vu(u);++e<u;)r[e]=n[e+t];return r}function pr(n,t){var r;return eo(n,function(n,e,u){return r=t(n,e,u),
|
||||
!r}),!!r}function _r(n,t,r){var e=0,u=null==n?e:n.length;if(typeof t=="number"&&t===t&&2147483647>=u){for(;e<u;){var i=e+u>>>1,o=n[i];null!==o&&!ju(o)&&(r?o<=t:o<t)?e=i+1:u=i}return u}return vr(n,t,Tu,r)}function vr(n,t,r,e){t=r(t);for(var u=0,i=null==n?0:n.length,o=t!==t,f=null===t,c=ju(t),a=t===T;u<i;){var l=Oi((u+i)/2),s=r(n[l]),h=s!==T,p=null===s,_=s===s,v=ju(s);(o?e||_:a?_&&(e||h):f?_&&h&&(e||!p):c?_&&h&&!p&&(e||!v):p||v?0:e?s<=t:s<t)?u=l+1:i=l}return Ui(i,4294967294)}function gr(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){
|
||||
var o=n[r],f=t?t(o):o;if(!r||!au(f,c)){var c=f;i[u++]=0===o?0:o}}return i}function dr(n){return typeof n=="number"?n:ju(n)?F:+n}function yr(n){if(typeof n=="string")return n;if(of(n))return c(n,yr)+"";if(ju(n))return to?to.call(n):"";var t=n+"";return"0"==t&&1/n==-$?"-0":t}function br(n,t,r){var e=-1,u=o,i=n.length,c=true,a=[],l=a;if(r)c=false,u=f;else if(200<=i){if(u=t?null:lo(n))return U(u);c=false,u=O,l=new Nn}else l=t?[]:a;n:for(;++e<i;){var s=n[e],h=t?t(s):s,s=r||0!==s?s:0;if(c&&h===h){for(var p=l.length;p--;)if(l[p]===h)continue n;
|
||||
t&&l.push(h),a.push(s)}else u(l,h,r)||(l!==a&&l.push(h),a.push(s))}return a}function xr(n,t){return t=Sr(t,n),n=2>t.length?n:kt(n,hr(t,0,-1)),null==n||delete n[De(qe(t))]}function jr(n,t,r,e){for(var u=n.length,i=e?u:-1;(e?i--:++i<u)&&t(n[i],i,n););return r?hr(n,e?0:i,e?i+1:u):hr(n,e?i+1:0,e?u:i)}function wr(n,t){var r=n;return r instanceof Un&&(r=r.value()),l(t,function(n,t){return t.func.apply(t.thisArg,a([n],t.args))},r)}function mr(n,t,r){var e=n.length;if(2>e)return e?br(n[0]):[];for(var u=-1,i=Vu(e);++u<e;)for(var o=n[u],f=-1;++f<e;)f!=u&&(i[u]=yt(i[u]||o,n[f],t,r));
|
||||
return br(wt(i,1),t,r)}function Ar(n,t,r){for(var e=-1,u=n.length,i=t.length,o={};++e<u;)r(o,n[e],e<i?t[e]:T);return o}function Er(n){return su(n)?n:[]}function kr(n){return typeof n=="function"?n:Tu}function Sr(n,t){return of(n)?n:Ie(n,t)?[n]:xo(Ou(n))}function Or(n,t,r){var e=n.length;return r=r===T?e:r,!t&&r>=e?n:hr(n,t,r)}function Ir(n,t){if(t)return n.slice();var r=n.length,r=vi?vi(r):new n.constructor(r);return n.copy(r),r}function Rr(n){var t=new n.constructor(n.byteLength);return new _i(t).set(new _i(n)),
|
||||
t}function zr(n,t){return new n.constructor(t?Rr(n.buffer):n.buffer,n.byteOffset,n.length)}function Wr(n,t){if(n!==t){var r=n!==T,e=null===n,u=n===n,i=ju(n),o=t!==T,f=null===t,c=t===t,a=ju(t);if(!f&&!a&&!i&&n>t||i&&o&&c&&!f&&!a||e&&o&&c||!r&&c||!u)return 1;if(!e&&!i&&!a&&n<t||a&&r&&u&&!e&&!i||f&&r&&u||!o&&u||!c)return-1}return 0}function Br(n,t,r,e){var u=-1,i=n.length,o=r.length,f=-1,c=t.length,a=Li(i-o,0),l=Vu(c+a);for(e=!e;++f<c;)l[f]=t[f];for(;++u<o;)(e||u<i)&&(l[r[u]]=n[u]);for(;a--;)l[f++]=n[u++];
|
||||
return l}function Lr(n,t,r,e){var u=-1,i=n.length,o=-1,f=r.length,c=-1,a=t.length,l=Li(i-f,0),s=Vu(l+a);for(e=!e;++u<l;)s[u]=n[u];for(l=u;++c<a;)s[l+c]=t[c];for(;++o<f;)(e||u<i)&&(s[l+r[o]]=n[u++]);return s}function Ur(n,t){var r=-1,e=n.length;for(t||(t=Vu(e));++r<e;)t[r]=n[r];return t}function Cr(n,t,r,e){var u=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var f=t[i],c=e?e(r[f],n[f],f,r,n):T;c===T&&(c=n[f]),u?st(r,f,c):ot(r,f,c)}return r}function Dr(n,t){return Cr(n,ho(n),t)}function Mr(n,t){return Cr(n,po(n),t);
|
||||
}function Tr(n,r){return function(e,u){var i=of(e)?t:ct,o=r?r():{};return i(e,n,ye(u,2),o)}}function $r(n){return fr(function(t,r){var e=-1,u=r.length,i=1<u?r[u-1]:T,o=2<u?r[2]:T,i=3<n.length&&typeof i=="function"?(u--,i):T;for(o&&Oe(r[0],r[1],o)&&(i=3>u?T:i,u=1),t=Yu(t);++e<u;)(o=r[e])&&n(t,o,e,i);return t})}function Fr(n,t){return function(r,e){if(null==r)return r;if(!lu(r))return n(r,e);for(var u=r.length,i=t?u:-1,o=Yu(r);(t?i--:++i<u)&&false!==e(o[i],i,o););return r}}function Nr(n){return function(t,r,e){
|
||||
var u=-1,i=Yu(t);e=e(t);for(var o=e.length;o--;){var f=e[n?o:++u];if(false===r(i[f],f,i))break}return t}}function Pr(n,t,r){function e(){return(this&&this!==$n&&this instanceof e?i:n).apply(u?r:this,arguments)}var u=1&t,i=Vr(n);return e}function Zr(n){return function(t){t=Ou(t);var r=Rn.test(t)?M(t):T,e=r?r[0]:t.charAt(0);return t=r?Or(r,1).join(""):t.slice(1),e[n]()+t}}function qr(n){return function(t){return l(Du(Cu(t).replace(kn,"")),n,"")}}function Vr(n){return function(){var t=arguments;switch(t.length){
|
||||
case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=ro(n.prototype),t=n.apply(r,t);return gu(t)?t:r}}function Kr(t,r,e){function u(){for(var o=arguments.length,f=Vu(o),c=o,a=de(u);c--;)f[c]=arguments[c];return c=3>o&&f[0]!==a&&f[o-1]!==a?[]:L(f,a),
|
||||
o-=c.length,o<e?ue(t,r,Jr,u.placeholder,T,f,c,T,T,e-o):n(this&&this!==$n&&this instanceof u?i:t,this,f)}var i=Vr(t);return u}function Gr(n){return function(t,r,e){var u=Yu(t);if(!lu(t)){var i=ye(r,3);t=zu(t),r=function(n){return i(u[n],n,u)}}return r=n(t,r,e),-1<r?u[i?t[r]:r]:T}}function Hr(n){return pe(function(t){var r=t.length,e=r,u=On.prototype.thru;for(n&&t.reverse();e--;){var i=t[e];if(typeof i!="function")throw new ni("Expected a function");if(u&&!o&&"wrapper"==ge(i))var o=new On([],true)}for(e=o?e:r;++e<r;)var i=t[e],u=ge(i),f="wrapper"==u?so(i):T,o=f&&Re(f[0])&&424==f[1]&&!f[4].length&&1==f[9]?o[ge(f[0])].apply(o,f[3]):1==i.length&&Re(i)?o[u]():o.thru(i);
|
||||
return function(){var n=arguments,e=n[0];if(o&&1==n.length&&of(e))return o.plant(e).value();for(var u=0,n=r?t[u].apply(this,n):e;++u<r;)n=t[u].call(this,n);return n}})}function Jr(n,t,r,e,u,i,o,f,c,a){function l(){for(var d=arguments.length,y=Vu(d),b=d;b--;)y[b]=arguments[b];if(_){var x,j=de(l),b=y.length;for(x=0;b--;)y[b]===j&&++x}if(e&&(y=Br(y,e,u,_)),i&&(y=Lr(y,i,o,_)),d-=x,_&&d<a)return j=L(y,j),ue(n,t,Jr,l.placeholder,r,y,j,f,c,a-d);if(j=h?r:this,b=p?j[n]:n,d=y.length,f){x=y.length;for(var w=Ui(f.length,x),m=Ur(y);w--;){
|
||||
var A=f[w];y[w]=Se(A,x)?m[A]:T}}else v&&1<d&&y.reverse();return s&&c<d&&(y.length=c),this&&this!==$n&&this instanceof l&&(b=g||Vr(b)),b.apply(j,y)}var s=128&t,h=1&t,p=2&t,_=24&t,v=512&t,g=p?T:Vr(n);return l}function Yr(n,t){return function(r,e){return Bt(r,n,t(e))}}function Qr(n,t){return function(r,e){var u;if(r===T&&e===T)return t;if(r!==T&&(u=r),e!==T){if(u===T)return e;typeof r=="string"||typeof e=="string"?(r=yr(r),e=yr(e)):(r=dr(r),e=dr(e)),u=n(r,e)}return u}}function Xr(t){return pe(function(r){
|
||||
return r=c(r,k(ye())),fr(function(e){var u=this;return t(r,function(t){return n(t,u,e)})})})}function ne(n,t){t=t===T?" ":yr(t);var r=t.length;return 2>r?r?or(t,n):t:(r=or(t,Si(n/D(t))),Rn.test(t)?Or(M(r),0,n).join(""):r.slice(0,n))}function te(t,r,e,u){function i(){for(var r=-1,c=arguments.length,a=-1,l=u.length,s=Vu(l+c),h=this&&this!==$n&&this instanceof i?f:t;++a<l;)s[a]=u[a];for(;c--;)s[a++]=arguments[++r];return n(h,o?e:this,s)}var o=1&r,f=Vr(t);return i}function re(n){return function(t,r,e){
|
||||
e&&typeof e!="number"&&Oe(t,r,e)&&(r=e=T),t=mu(t),r===T?(r=t,t=0):r=mu(r),e=e===T?t<r?1:-1:mu(e);var u=-1;r=Li(Si((r-t)/(e||1)),0);for(var i=Vu(r);r--;)i[n?r:++u]=t,t+=e;return i}}function ee(n){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=ku(t),r=ku(r)),n(t,r)}}function ue(n,t,r,e,u,i,o,f,c,a){var l=8&t,s=l?o:T;o=l?T:o;var h=l?i:T;return i=l?T:i,t=(t|(l?32:64))&~(l?64:32),4&t||(t&=-4),u=[n,t,u,h,s,i,o,f,c,a],r=r.apply(T,u),Re(n)&&go(r,u),r.placeholder=e,Le(r,n,t)}function ie(n){
|
||||
var t=Ju[n];return function(n,r){if(n=ku(n),r=null==r?0:Ui(Au(r),292)){var e=(Ou(n)+"e").split("e"),e=t(e[0]+"e"+(+e[1]+r)),e=(Ou(e)+"e").split("e");return+(e[0]+"e"+(+e[1]-r))}return t(n)}}function oe(n){return function(t){var r=_o(t);return"[object Map]"==r?W(t):"[object Set]"==r?C(t):E(t,n(t))}}function fe(n,t,r,e,u,i,o,f){var c=2&t;if(!c&&typeof n!="function")throw new ni("Expected a function");var a=e?e.length:0;if(a||(t&=-97,e=u=T),o=o===T?o:Li(Au(o),0),f=f===T?f:Au(f),a-=u?u.length:0,64&t){
|
||||
var l=e,s=u;e=u=T}var h=c?T:so(n);return i=[n,t,r,e,u,l,s,i,o,f],h&&(r=i[1],n=h[1],t=r|n,e=128==n&&8==r||128==n&&256==r&&i[7].length<=h[8]||384==n&&h[7].length<=h[8]&&8==r,131>t||e)&&(1&n&&(i[2]=h[2],t|=1&r?0:4),(r=h[3])&&(e=i[3],i[3]=e?Br(e,r,h[4]):r,i[4]=e?L(i[3],"__lodash_placeholder__"):h[4]),(r=h[5])&&(e=i[5],i[5]=e?Lr(e,r,h[6]):r,i[6]=e?L(i[5],"__lodash_placeholder__"):h[6]),(r=h[7])&&(i[7]=r),128&n&&(i[8]=null==i[8]?h[8]:Ui(i[8],h[8])),null==i[9]&&(i[9]=h[9]),i[0]=h[0],i[1]=t),n=i[0],t=i[1],
|
||||
r=i[2],e=i[3],u=i[4],f=i[9]=i[9]===T?c?0:n.length:Li(i[9]-a,0),!f&&24&t&&(t&=-25),Le((h?fo:go)(t&&1!=t?8==t||16==t?Kr(n,t,f):32!=t&&33!=t||u.length?Jr.apply(T,i):te(n,t,r,e):Pr(n,t,r),i),n,t)}function ce(n,t,r,e){return n===T||au(n,ri[r])&&!ii.call(e,r)?t:n}function ae(n,t,r,e,u,i){return gu(n)&&gu(t)&&(i.set(t,n),Yt(n,t,T,ae,i),i.delete(t)),n}function le(n){return bu(n)?T:n}function se(n,t,r,e,u,i){var o=1&r,f=n.length,c=t.length;if(f!=c&&!(o&&c>f))return false;if((c=i.get(n))&&i.get(t))return c==t;var c=-1,a=true,l=2&r?new Nn:T;
|
||||
for(i.set(n,t),i.set(t,n);++c<f;){var s=n[c],p=t[c];if(e)var _=o?e(p,s,c,t,n,i):e(s,p,c,n,t,i);if(_!==T){if(_)continue;a=false;break}if(l){if(!h(t,function(n,t){if(!O(l,t)&&(s===n||u(s,n,r,e,i)))return l.push(t)})){a=false;break}}else if(s!==p&&!u(s,p,r,e,i)){a=false;break}}return i.delete(n),i.delete(t),a}function he(n,t,r,e,u,i,o){switch(r){case"[object DataView]":if(n.byteLength!=t.byteLength||n.byteOffset!=t.byteOffset)break;n=n.buffer,t=t.buffer;case"[object ArrayBuffer]":if(n.byteLength!=t.byteLength||!i(new _i(n),new _i(t)))break;
|
||||
return true;case"[object Boolean]":case"[object Date]":case"[object Number]":return au(+n,+t);case"[object Error]":return n.name==t.name&&n.message==t.message;case"[object RegExp]":case"[object String]":return n==t+"";case"[object Map]":var f=W;case"[object Set]":if(f||(f=U),n.size!=t.size&&!(1&e))break;return(r=o.get(n))?r==t:(e|=2,o.set(n,t),t=se(f(n),f(t),e,u,i,o),o.delete(n),t);case"[object Symbol]":if(no)return no.call(n)==no.call(t)}return false}function pe(n){return bo(Be(n,T,Pe),n+"")}function _e(n){
|
||||
return St(n,zu,ho)}function ve(n){return St(n,Wu,po)}function ge(n){for(var t=n.name+"",r=Ki[t],e=ii.call(Ki,t)?r.length:0;e--;){var u=r[e],i=u.func;if(null==i||i==n)return u.name}return t}function de(n){return(ii.call(An,"placeholder")?An:n).placeholder}function ye(){var n=An.iteratee||$u,n=n===$u?qt:n;return arguments.length?n(arguments[0],arguments[1]):n}function be(n,t){var r=n.__data__,e=typeof t;return("string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t)?r[typeof t=="string"?"string":"hash"]:r.map;
|
||||
}function xe(n){for(var t=zu(n),r=t.length;r--;){var e=t[r],u=n[e];t[r]=[e,u,u===u&&!gu(u)]}return t}function je(n,t){var r=null==n?T:n[t];return Ft(r)?r:T}function we(n,t,r){t=Sr(t,n);for(var e=-1,u=t.length,i=false;++e<u;){var o=De(t[e]);if(!(i=null!=n&&r(n,o)))break;n=n[o]}return i||++e!=u?i:(u=null==n?0:n.length,!!u&&vu(u)&&Se(o,u)&&(of(n)||uf(n)))}function me(n){var t=n.length,r=new n.constructor(t);return t&&"string"==typeof n[0]&&ii.call(n,"index")&&(r.index=n.index,r.input=n.input),r}function Ae(n){
|
||||
return typeof n.constructor!="function"||ze(n)?{}:ro(gi(n))}function Ee(n,t,r){var e=n.constructor;switch(t){case"[object ArrayBuffer]":return Rr(n);case"[object Boolean]":case"[object Date]":return new e(+n);case"[object DataView]":return t=r?Rr(n.buffer):n.buffer,new n.constructor(t,n.byteOffset,n.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":
|
||||
case"[object Uint16Array]":case"[object Uint32Array]":return zr(n,r);case"[object Map]":return new e;case"[object Number]":case"[object String]":return new e(n);case"[object RegExp]":return t=new n.constructor(n.source,_n.exec(n)),t.lastIndex=n.lastIndex,t;case"[object Set]":return new e;case"[object Symbol]":return no?Yu(no.call(n)):{}}}function ke(n){return of(n)||uf(n)||!!(xi&&n&&n[xi])}function Se(n,t){var r=typeof n;return t=null==t?9007199254740991:t,!!t&&("number"==r||"symbol"!=r&&bn.test(n))&&-1<n&&0==n%1&&n<t;
|
||||
}function Oe(n,t,r){if(!gu(r))return false;var e=typeof t;return!!("number"==e?lu(r)&&Se(t,r.length):"string"==e&&t in r)&&au(r[t],n)}function Ie(n,t){if(of(n))return false;var r=typeof n;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=n&&!ju(n))||(nn.test(n)||!X.test(n)||null!=t&&n in Yu(t))}function Re(n){var t=ge(n),r=An[t];return typeof r=="function"&&t in Un.prototype&&(n===r||(t=so(r),!!t&&n===t[0]))}function ze(n){var t=n&&n.constructor;return n===(typeof t=="function"&&t.prototype||ri)}function We(n,t){
|
||||
return function(r){return null!=r&&(r[n]===t&&(t!==T||n in Yu(r)))}}function Be(t,r,e){return r=Li(r===T?t.length-1:r,0),function(){for(var u=arguments,i=-1,o=Li(u.length-r,0),f=Vu(o);++i<o;)f[i]=u[r+i];for(i=-1,o=Vu(r+1);++i<r;)o[i]=u[i];return o[r]=e(f),n(t,this,o)}}function Le(n,t,r){var e=t+"";t=bo;var u,i=Te;return u=(u=e.match(an))?u[1].split(ln):[],r=i(u,r),(i=r.length)&&(u=i-1,r[u]=(1<i?"& ":"")+r[u],r=r.join(2<i?", ":" "),e=e.replace(cn,"{\n/* [wrapped with "+r+"] */\n")),t(n,e)}function Ue(n){
|
||||
var t=0,r=0;return function(){var e=Ci(),u=16-(e-r);if(r=e,0<u){if(800<=++t)return arguments[0]}else t=0;return n.apply(T,arguments)}}function Ce(n,t){var r=-1,e=n.length,u=e-1;for(t=t===T?e:t;++r<t;){var e=ir(r,u),i=n[e];n[e]=n[r],n[r]=i}return n.length=t,n}function De(n){if(typeof n=="string"||ju(n))return n;var t=n+"";return"0"==t&&1/n==-$?"-0":t}function Me(n){if(null!=n){try{return ui.call(n)}catch(n){}return n+""}return""}function Te(n,t){return r(N,function(r){var e="_."+r[0];t&r[1]&&!o(n,e)&&n.push(e);
|
||||
}),n.sort()}function $e(n){if(n instanceof Un)return n.clone();var t=new On(n.__wrapped__,n.__chain__);return t.__actions__=Ur(n.__actions__),t.__index__=n.__index__,t.__values__=n.__values__,t}function Fe(n,t,r){var e=null==n?0:n.length;return e?(r=null==r?0:Au(r),0>r&&(r=Li(e+r,0)),_(n,ye(t,3),r)):-1}function Ne(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=e-1;return r!==T&&(u=Au(r),u=0>r?Li(e+u,0):Ui(u,e-1)),_(n,ye(t,3),u,true)}function Pe(n){return(null==n?0:n.length)?wt(n,1):[]}function Ze(n){
|
||||
return n&&n.length?n[0]:T}function qe(n){var t=null==n?0:n.length;return t?n[t-1]:T}function Ve(n,t){return n&&n.length&&t&&t.length?er(n,t):n}function Ke(n){return null==n?n:Ti.call(n)}function Ge(n){if(!n||!n.length)return[];var t=0;return n=i(n,function(n){if(su(n))return t=Li(n.length,t),true}),A(t,function(t){return c(n,b(t))})}function He(t,r){if(!t||!t.length)return[];var e=Ge(t);return null==r?e:c(e,function(t){return n(r,T,t)})}function Je(n){return n=An(n),n.__chain__=true,n}function Ye(n,t){
|
||||
return t(n)}function Qe(){return this}function Xe(n,t){return(of(n)?r:eo)(n,ye(t,3))}function nu(n,t){return(of(n)?e:uo)(n,ye(t,3))}function tu(n,t){return(of(n)?c:Gt)(n,ye(t,3))}function ru(n,t,r){return t=r?T:t,t=n&&null==t?n.length:t,fe(n,128,T,T,T,T,t)}function eu(n,t){var r;if(typeof t!="function")throw new ni("Expected a function");return n=Au(n),function(){return 0<--n&&(r=t.apply(this,arguments)),1>=n&&(t=T),r}}function uu(n,t,r){return t=r?T:t,n=fe(n,8,T,T,T,T,T,t),n.placeholder=uu.placeholder,
|
||||
n}function iu(n,t,r){return t=r?T:t,n=fe(n,16,T,T,T,T,T,t),n.placeholder=iu.placeholder,n}function ou(n,t,r){function e(t){var r=c,e=a;return c=a=T,_=t,s=n.apply(e,r)}function u(n){var r=n-p;return n-=_,p===T||r>=t||0>r||g&&n>=l}function i(){var n=Ko();if(u(n))return o(n);var r,e=yo;r=n-_,n=t-(n-p),r=g?Ui(n,l-r):n,h=e(i,r)}function o(n){return h=T,d&&c?e(n):(c=a=T,s)}function f(){var n=Ko(),r=u(n);if(c=arguments,a=this,p=n,r){if(h===T)return _=n=p,h=yo(i,t),v?e(n):s;if(g)return h=yo(i,t),e(p)}return h===T&&(h=yo(i,t)),
|
||||
s}var c,a,l,s,h,p,_=0,v=false,g=false,d=true;if(typeof n!="function")throw new ni("Expected a function");return t=ku(t)||0,gu(r)&&(v=!!r.leading,l=(g="maxWait"in r)?Li(ku(r.maxWait)||0,t):l,d="trailing"in r?!!r.trailing:d),f.cancel=function(){h!==T&&ao(h),_=0,c=p=a=h=T},f.flush=function(){return h===T?s:o(Ko())},f}function fu(n,t){function r(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;return i.has(u)?i.get(u):(e=n.apply(this,e),r.cache=i.set(u,e)||i,e)}if(typeof n!="function"||null!=t&&typeof t!="function")throw new ni("Expected a function");
|
||||
return r.cache=new(fu.Cache||Fn),r}function cu(n){if(typeof n!="function")throw new ni("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}function au(n,t){return n===t||n!==n&&t!==t}function lu(n){return null!=n&&vu(n.length)&&!pu(n)}function su(n){return du(n)&&lu(n)}function hu(n){if(!du(n))return false;var t=Ot(n);return"[object Error]"==t||"[object DOMException]"==t||typeof n.message=="string"&&typeof n.name=="string"&&!bu(n);
|
||||
}function pu(n){return!!gu(n)&&(n=Ot(n),"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n)}function _u(n){return typeof n=="number"&&n==Au(n)}function vu(n){return typeof n=="number"&&-1<n&&0==n%1&&9007199254740991>=n}function gu(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function du(n){return null!=n&&typeof n=="object"}function yu(n){return typeof n=="number"||du(n)&&"[object Number]"==Ot(n)}function bu(n){return!(!du(n)||"[object Object]"!=Ot(n))&&(n=gi(n),
|
||||
null===n||(n=ii.call(n,"constructor")&&n.constructor,typeof n=="function"&&n instanceof n&&ui.call(n)==ai))}function xu(n){return typeof n=="string"||!of(n)&&du(n)&&"[object String]"==Ot(n)}function ju(n){return typeof n=="symbol"||du(n)&&"[object Symbol]"==Ot(n)}function wu(n){if(!n)return[];if(lu(n))return xu(n)?M(n):Ur(n);if(ji&&n[ji]){n=n[ji]();for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}return t=_o(n),("[object Map]"==t?W:"[object Set]"==t?U:Lu)(n)}function mu(n){return n?(n=ku(n),
|
||||
n===$||n===-$?1.7976931348623157e308*(0>n?-1:1):n===n?n:0):0===n?n:0}function Au(n){n=mu(n);var t=n%1;return n===n?t?n-t:n:0}function Eu(n){return n?pt(Au(n),0,4294967295):0}function ku(n){if(typeof n=="number")return n;if(ju(n))return F;if(gu(n)&&(n=typeof n.valueOf=="function"?n.valueOf():n,n=gu(n)?n+"":n),typeof n!="string")return 0===n?n:+n;n=n.replace(un,"");var t=gn.test(n);return t||yn.test(n)?Dn(n.slice(2),t?2:8):vn.test(n)?F:+n}function Su(n){return Cr(n,Wu(n))}function Ou(n){return null==n?"":yr(n);
|
||||
}function Iu(n,t,r){return n=null==n?T:kt(n,t),n===T?r:n}function Ru(n,t){return null!=n&&we(n,t,zt)}function zu(n){return lu(n)?qn(n):Vt(n)}function Wu(n){if(lu(n))n=qn(n,true);else if(gu(n)){var t,r=ze(n),e=[];for(t in n)("constructor"!=t||!r&&ii.call(n,t))&&e.push(t);n=e}else{if(t=[],null!=n)for(r in Yu(n))t.push(r);n=t}return n}function Bu(n,t){if(null==n)return{};var r=c(ve(n),function(n){return[n]});return t=ye(t),tr(n,r,function(n,r){return t(n,r[0])})}function Lu(n){return null==n?[]:S(n,zu(n));
|
||||
}function Uu(n){return Tf(Ou(n).toLowerCase())}function Cu(n){return(n=Ou(n))&&n.replace(xn,Xn).replace(Sn,"")}function Du(n,t,r){return n=Ou(n),t=r?T:t,t===T?zn.test(n)?n.match(In)||[]:n.match(sn)||[]:n.match(t)||[]}function Mu(n){return function(){return n}}function Tu(n){return n}function $u(n){return qt(typeof n=="function"?n:_t(n,1))}function Fu(n,t,e){var u=zu(t),i=Et(t,u);null!=e||gu(t)&&(i.length||!u.length)||(e=t,t=n,n=this,i=Et(t,zu(t)));var o=!(gu(e)&&"chain"in e&&!e.chain),f=pu(n);return r(i,function(r){
|
||||
var e=t[r];n[r]=e,f&&(n.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=n(this.__wrapped__);return(r.__actions__=Ur(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,a([this.value()],arguments))})}),n}function Nu(){}function Pu(n){return Ie(n)?b(De(n)):rr(n)}function Zu(){return[]}function qu(){return false}mn=null==mn?$n:rt.defaults($n.Object(),mn,rt.pick($n,Wn));var Vu=mn.Array,Ku=mn.Date,Gu=mn.Error,Hu=mn.Function,Ju=mn.Math,Yu=mn.Object,Qu=mn.RegExp,Xu=mn.String,ni=mn.TypeError,ti=Vu.prototype,ri=Yu.prototype,ei=mn["__core-js_shared__"],ui=Hu.prototype.toString,ii=ri.hasOwnProperty,oi=0,fi=function(){
|
||||
var n=/[^.]+$/.exec(ei&&ei.keys&&ei.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),ci=ri.toString,ai=ui.call(Yu),li=$n._,si=Qu("^"+ui.call(ii).replace(rn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),hi=Pn?mn.Buffer:T,pi=mn.Symbol,_i=mn.Uint8Array,vi=hi?hi.g:T,gi=B(Yu.getPrototypeOf,Yu),di=Yu.create,yi=ri.propertyIsEnumerable,bi=ti.splice,xi=pi?pi.isConcatSpreadable:T,ji=pi?pi.iterator:T,wi=pi?pi.toStringTag:T,mi=function(){try{var n=je(Yu,"defineProperty");
|
||||
return n({},"",{}),n}catch(n){}}(),Ai=mn.clearTimeout!==$n.clearTimeout&&mn.clearTimeout,Ei=Ku&&Ku.now!==$n.Date.now&&Ku.now,ki=mn.setTimeout!==$n.setTimeout&&mn.setTimeout,Si=Ju.ceil,Oi=Ju.floor,Ii=Yu.getOwnPropertySymbols,Ri=hi?hi.isBuffer:T,zi=mn.isFinite,Wi=ti.join,Bi=B(Yu.keys,Yu),Li=Ju.max,Ui=Ju.min,Ci=Ku.now,Di=mn.parseInt,Mi=Ju.random,Ti=ti.reverse,$i=je(mn,"DataView"),Fi=je(mn,"Map"),Ni=je(mn,"Promise"),Pi=je(mn,"Set"),Zi=je(mn,"WeakMap"),qi=je(Yu,"create"),Vi=Zi&&new Zi,Ki={},Gi=Me($i),Hi=Me(Fi),Ji=Me(Ni),Yi=Me(Pi),Qi=Me(Zi),Xi=pi?pi.prototype:T,no=Xi?Xi.valueOf:T,to=Xi?Xi.toString:T,ro=function(){
|
||||
function n(){}return function(t){return gu(t)?di?di(t):(n.prototype=t,t=new n,n.prototype=T,t):{}}}();An.templateSettings={escape:J,evaluate:Y,interpolate:Q,variable:"",imports:{_:An}},An.prototype=En.prototype,An.prototype.constructor=An,On.prototype=ro(En.prototype),On.prototype.constructor=On,Un.prototype=ro(En.prototype),Un.prototype.constructor=Un,Mn.prototype.clear=function(){this.__data__=qi?qi(null):{},this.size=0},Mn.prototype.delete=function(n){return n=this.has(n)&&delete this.__data__[n],
|
||||
this.size-=n?1:0,n},Mn.prototype.get=function(n){var t=this.__data__;return qi?(n=t[n],"__lodash_hash_undefined__"===n?T:n):ii.call(t,n)?t[n]:T},Mn.prototype.has=function(n){var t=this.__data__;return qi?t[n]!==T:ii.call(t,n)},Mn.prototype.set=function(n,t){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=qi&&t===T?"__lodash_hash_undefined__":t,this},Tn.prototype.clear=function(){this.__data__=[],this.size=0},Tn.prototype.delete=function(n){var t=this.__data__;return n=ft(t,n),!(0>n)&&(n==t.length-1?t.pop():bi.call(t,n,1),
|
||||
--this.size,true)},Tn.prototype.get=function(n){var t=this.__data__;return n=ft(t,n),0>n?T:t[n][1]},Tn.prototype.has=function(n){return-1<ft(this.__data__,n)},Tn.prototype.set=function(n,t){var r=this.__data__,e=ft(r,n);return 0>e?(++this.size,r.push([n,t])):r[e][1]=t,this},Fn.prototype.clear=function(){this.size=0,this.__data__={hash:new Mn,map:new(Fi||Tn),string:new Mn}},Fn.prototype.delete=function(n){return n=be(this,n).delete(n),this.size-=n?1:0,n},Fn.prototype.get=function(n){return be(this,n).get(n);
|
||||
},Fn.prototype.has=function(n){return be(this,n).has(n)},Fn.prototype.set=function(n,t){var r=be(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Nn.prototype.add=Nn.prototype.push=function(n){return this.__data__.set(n,"__lodash_hash_undefined__"),this},Nn.prototype.has=function(n){return this.__data__.has(n)},Zn.prototype.clear=function(){this.__data__=new Tn,this.size=0},Zn.prototype.delete=function(n){var t=this.__data__;return n=t.delete(n),this.size=t.size,n},Zn.prototype.get=function(n){
|
||||
return this.__data__.get(n)},Zn.prototype.has=function(n){return this.__data__.has(n)},Zn.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Tn){var e=r.__data__;if(!Fi||199>e.length)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Fn(e)}return r.set(n,t),this.size=r.size,this};var eo=Fr(mt),uo=Fr(At,true),io=Nr(),oo=Nr(true),fo=Vi?function(n,t){return Vi.set(n,t),n}:Tu,co=mi?function(n,t){return mi(n,"toString",{configurable:true,enumerable:false,value:Mu(t),writable:true})}:Tu,ao=Ai||function(n){
|
||||
return $n.clearTimeout(n)},lo=Pi&&1/U(new Pi([,-0]))[1]==$?function(n){return new Pi(n)}:Nu,so=Vi?function(n){return Vi.get(n)}:Nu,ho=Ii?function(n){return null==n?[]:(n=Yu(n),i(Ii(n),function(t){return yi.call(n,t)}))}:Zu,po=Ii?function(n){for(var t=[];n;)a(t,ho(n)),n=gi(n);return t}:Zu,_o=Ot;($i&&"[object DataView]"!=_o(new $i(new ArrayBuffer(1)))||Fi&&"[object Map]"!=_o(new Fi)||Ni&&"[object Promise]"!=_o(Ni.resolve())||Pi&&"[object Set]"!=_o(new Pi)||Zi&&"[object WeakMap]"!=_o(new Zi))&&(_o=function(n){
|
||||
var t=Ot(n);if(n=(n="[object Object]"==t?n.constructor:T)?Me(n):"")switch(n){case Gi:return"[object DataView]";case Hi:return"[object Map]";case Ji:return"[object Promise]";case Yi:return"[object Set]";case Qi:return"[object WeakMap]"}return t});var vo=ei?pu:qu,go=Ue(fo),yo=ki||function(n,t){return $n.setTimeout(n,t)},bo=Ue(co),xo=function(n){n=fu(n,function(n){return 500===t.size&&t.clear(),n});var t=n.cache;return n}(function(n){var t=[];return 46===n.charCodeAt(0)&&t.push(""),n.replace(tn,function(n,r,e,u){
|
||||
t.push(e?u.replace(hn,"$1"):r||n)}),t}),jo=fr(function(n,t){return su(n)?yt(n,wt(t,1,su,true)):[]}),wo=fr(function(n,t){var r=qe(t);return su(r)&&(r=T),su(n)?yt(n,wt(t,1,su,true),ye(r,2)):[]}),mo=fr(function(n,t){var r=qe(t);return su(r)&&(r=T),su(n)?yt(n,wt(t,1,su,true),T,r):[]}),Ao=fr(function(n){var t=c(n,Er);return t.length&&t[0]===n[0]?Wt(t):[]}),Eo=fr(function(n){var t=qe(n),r=c(n,Er);return t===qe(r)?t=T:r.pop(),r.length&&r[0]===n[0]?Wt(r,ye(t,2)):[]}),ko=fr(function(n){var t=qe(n),r=c(n,Er);return(t=typeof t=="function"?t:T)&&r.pop(),
|
||||
r.length&&r[0]===n[0]?Wt(r,T,t):[]}),So=fr(Ve),Oo=pe(function(n,t){var r=null==n?0:n.length,e=ht(n,t);return ur(n,c(t,function(n){return Se(n,r)?+n:n}).sort(Wr)),e}),Io=fr(function(n){return br(wt(n,1,su,true))}),Ro=fr(function(n){var t=qe(n);return su(t)&&(t=T),br(wt(n,1,su,true),ye(t,2))}),zo=fr(function(n){var t=qe(n),t=typeof t=="function"?t:T;return br(wt(n,1,su,true),T,t)}),Wo=fr(function(n,t){return su(n)?yt(n,t):[]}),Bo=fr(function(n){return mr(i(n,su))}),Lo=fr(function(n){var t=qe(n);return su(t)&&(t=T),
|
||||
mr(i(n,su),ye(t,2))}),Uo=fr(function(n){var t=qe(n),t=typeof t=="function"?t:T;return mr(i(n,su),T,t)}),Co=fr(Ge),Do=fr(function(n){var t=n.length,t=1<t?n[t-1]:T,t=typeof t=="function"?(n.pop(),t):T;return He(n,t)}),Mo=pe(function(n){function t(t){return ht(t,n)}var r=n.length,e=r?n[0]:0,u=this.__wrapped__;return!(1<r||this.__actions__.length)&&u instanceof Un&&Se(e)?(u=u.slice(e,+e+(r?1:0)),u.__actions__.push({func:Ye,args:[t],thisArg:T}),new On(u,this.__chain__).thru(function(n){return r&&!n.length&&n.push(T),
|
||||
n})):this.thru(t)}),To=Tr(function(n,t,r){ii.call(n,r)?++n[r]:st(n,r,1)}),$o=Gr(Fe),Fo=Gr(Ne),No=Tr(function(n,t,r){ii.call(n,r)?n[r].push(t):st(n,r,[t])}),Po=fr(function(t,r,e){var u=-1,i=typeof r=="function",o=lu(t)?Vu(t.length):[];return eo(t,function(t){o[++u]=i?n(r,t,e):Lt(t,r,e)}),o}),Zo=Tr(function(n,t,r){st(n,r,t)}),qo=Tr(function(n,t,r){n[r?0:1].push(t)},function(){return[[],[]]}),Vo=fr(function(n,t){if(null==n)return[];var r=t.length;return 1<r&&Oe(n,t[0],t[1])?t=[]:2<r&&Oe(t[0],t[1],t[2])&&(t=[t[0]]),
|
||||
Xt(n,wt(t,1),[])}),Ko=Ei||function(){return $n.Date.now()},Go=fr(function(n,t,r){var e=1;if(r.length)var u=L(r,de(Go)),e=32|e;return fe(n,e,t,r,u)}),Ho=fr(function(n,t,r){var e=3;if(r.length)var u=L(r,de(Ho)),e=32|e;return fe(t,e,n,r,u)}),Jo=fr(function(n,t){return dt(n,1,t)}),Yo=fr(function(n,t,r){return dt(n,ku(t)||0,r)});fu.Cache=Fn;var Qo=fr(function(t,r){r=1==r.length&&of(r[0])?c(r[0],k(ye())):c(wt(r,1),k(ye()));var e=r.length;return fr(function(u){for(var i=-1,o=Ui(u.length,e);++i<o;)u[i]=r[i].call(this,u[i]);
|
||||
return n(t,this,u)})}),Xo=fr(function(n,t){return fe(n,32,T,t,L(t,de(Xo)))}),nf=fr(function(n,t){return fe(n,64,T,t,L(t,de(nf)))}),tf=pe(function(n,t){return fe(n,256,T,T,T,t)}),rf=ee(It),ef=ee(function(n,t){return n>=t}),uf=Ut(function(){return arguments}())?Ut:function(n){return du(n)&&ii.call(n,"callee")&&!yi.call(n,"callee")},of=Vu.isArray,ff=Vn?k(Vn):Ct,cf=Ri||qu,af=Kn?k(Kn):Dt,lf=Gn?k(Gn):Tt,sf=Hn?k(Hn):Nt,hf=Jn?k(Jn):Pt,pf=Yn?k(Yn):Zt,_f=ee(Kt),vf=ee(function(n,t){return n<=t}),gf=$r(function(n,t){
|
||||
if(ze(t)||lu(t))Cr(t,zu(t),n);else for(var r in t)ii.call(t,r)&&ot(n,r,t[r])}),df=$r(function(n,t){Cr(t,Wu(t),n)}),yf=$r(function(n,t,r,e){Cr(t,Wu(t),n,e)}),bf=$r(function(n,t,r,e){Cr(t,zu(t),n,e)}),xf=pe(ht),jf=fr(function(n,t){n=Yu(n);var r=-1,e=t.length,u=2<e?t[2]:T;for(u&&Oe(t[0],t[1],u)&&(e=1);++r<e;)for(var u=t[r],i=Wu(u),o=-1,f=i.length;++o<f;){var c=i[o],a=n[c];(a===T||au(a,ri[c])&&!ii.call(n,c))&&(n[c]=u[c])}return n}),wf=fr(function(t){return t.push(T,ae),n(Sf,T,t)}),mf=Yr(function(n,t,r){
|
||||
null!=t&&typeof t.toString!="function"&&(t=ci.call(t)),n[t]=r},Mu(Tu)),Af=Yr(function(n,t,r){null!=t&&typeof t.toString!="function"&&(t=ci.call(t)),ii.call(n,t)?n[t].push(r):n[t]=[r]},ye),Ef=fr(Lt),kf=$r(function(n,t,r){Yt(n,t,r)}),Sf=$r(function(n,t,r,e){Yt(n,t,r,e)}),Of=pe(function(n,t){var r={};if(null==n)return r;var e=false;t=c(t,function(t){return t=Sr(t,n),e||(e=1<t.length),t}),Cr(n,ve(n),r),e&&(r=_t(r,7,le));for(var u=t.length;u--;)xr(r,t[u]);return r}),If=pe(function(n,t){return null==n?{}:nr(n,t);
|
||||
}),Rf=oe(zu),zf=oe(Wu),Wf=qr(function(n,t,r){return t=t.toLowerCase(),n+(r?Uu(t):t)}),Bf=qr(function(n,t,r){return n+(r?"-":"")+t.toLowerCase()}),Lf=qr(function(n,t,r){return n+(r?" ":"")+t.toLowerCase()}),Uf=Zr("toLowerCase"),Cf=qr(function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}),Df=qr(function(n,t,r){return n+(r?" ":"")+Tf(t)}),Mf=qr(function(n,t,r){return n+(r?" ":"")+t.toUpperCase()}),Tf=Zr("toUpperCase"),$f=fr(function(t,r){try{return n(t,T,r)}catch(n){return hu(n)?n:new Gu(n)}}),Ff=pe(function(n,t){
|
||||
return r(t,function(t){t=De(t),st(n,t,Go(n[t],n))}),n}),Nf=Hr(),Pf=Hr(true),Zf=fr(function(n,t){return function(r){return Lt(r,n,t)}}),qf=fr(function(n,t){return function(r){return Lt(n,r,t)}}),Vf=Xr(c),Kf=Xr(u),Gf=Xr(h),Hf=re(),Jf=re(true),Yf=Qr(function(n,t){return n+t},0),Qf=ie("ceil"),Xf=Qr(function(n,t){return n/t},1),nc=ie("floor"),tc=Qr(function(n,t){return n*t},1),rc=ie("round"),ec=Qr(function(n,t){return n-t},0);return An.after=function(n,t){if(typeof t!="function")throw new ni("Expected a function");
|
||||
return n=Au(n),function(){if(1>--n)return t.apply(this,arguments)}},An.ary=ru,An.assign=gf,An.assignIn=df,An.assignInWith=yf,An.assignWith=bf,An.at=xf,An.before=eu,An.bind=Go,An.bindAll=Ff,An.bindKey=Ho,An.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return of(n)?n:[n]},An.chain=Je,An.chunk=function(n,t,r){if(t=(r?Oe(n,t,r):t===T)?1:Li(Au(t),0),r=null==n?0:n.length,!r||1>t)return[];for(var e=0,u=0,i=Vu(Si(r/t));e<r;)i[u++]=hr(n,e,e+=t);return i},An.compact=function(n){for(var t=-1,r=null==n?0:n.length,e=0,u=[];++t<r;){
|
||||
var i=n[t];i&&(u[e++]=i)}return u},An.concat=function(){var n=arguments.length;if(!n)return[];for(var t=Vu(n-1),r=arguments[0];n--;)t[n-1]=arguments[n];return a(of(r)?Ur(r):[r],wt(t,1))},An.cond=function(t){var r=null==t?0:t.length,e=ye();return t=r?c(t,function(n){if("function"!=typeof n[1])throw new ni("Expected a function");return[e(n[0]),n[1]]}):[],fr(function(e){for(var u=-1;++u<r;){var i=t[u];if(n(i[0],this,e))return n(i[1],this,e)}})},An.conforms=function(n){return vt(_t(n,1))},An.constant=Mu,
|
||||
An.countBy=To,An.create=function(n,t){var r=ro(n);return null==t?r:at(r,t)},An.curry=uu,An.curryRight=iu,An.debounce=ou,An.defaults=jf,An.defaultsDeep=wf,An.defer=Jo,An.delay=Yo,An.difference=jo,An.differenceBy=wo,An.differenceWith=mo,An.drop=function(n,t,r){var e=null==n?0:n.length;return e?(t=r||t===T?1:Au(t),hr(n,0>t?0:t,e)):[]},An.dropRight=function(n,t,r){var e=null==n?0:n.length;return e?(t=r||t===T?1:Au(t),t=e-t,hr(n,0,0>t?0:t)):[]},An.dropRightWhile=function(n,t){return n&&n.length?jr(n,ye(t,3),true,true):[];
|
||||
},An.dropWhile=function(n,t){return n&&n.length?jr(n,ye(t,3),true):[]},An.fill=function(n,t,r,e){var u=null==n?0:n.length;if(!u)return[];for(r&&typeof r!="number"&&Oe(n,t,r)&&(r=0,e=u),u=n.length,r=Au(r),0>r&&(r=-r>u?0:u+r),e=e===T||e>u?u:Au(e),0>e&&(e+=u),e=r>e?0:Eu(e);r<e;)n[r++]=t;return n},An.filter=function(n,t){return(of(n)?i:jt)(n,ye(t,3))},An.flatMap=function(n,t){return wt(tu(n,t),1)},An.flatMapDeep=function(n,t){return wt(tu(n,t),$)},An.flatMapDepth=function(n,t,r){return r=r===T?1:Au(r),
|
||||
wt(tu(n,t),r)},An.flatten=Pe,An.flattenDeep=function(n){return(null==n?0:n.length)?wt(n,$):[]},An.flattenDepth=function(n,t){return null!=n&&n.length?(t=t===T?1:Au(t),wt(n,t)):[]},An.flip=function(n){return fe(n,512)},An.flow=Nf,An.flowRight=Pf,An.fromPairs=function(n){for(var t=-1,r=null==n?0:n.length,e={};++t<r;){var u=n[t];e[u[0]]=u[1]}return e},An.functions=function(n){return null==n?[]:Et(n,zu(n))},An.functionsIn=function(n){return null==n?[]:Et(n,Wu(n))},An.groupBy=No,An.initial=function(n){
|
||||
return(null==n?0:n.length)?hr(n,0,-1):[]},An.intersection=Ao,An.intersectionBy=Eo,An.intersectionWith=ko,An.invert=mf,An.invertBy=Af,An.invokeMap=Po,An.iteratee=$u,An.keyBy=Zo,An.keys=zu,An.keysIn=Wu,An.map=tu,An.mapKeys=function(n,t){var r={};return t=ye(t,3),mt(n,function(n,e,u){st(r,t(n,e,u),n)}),r},An.mapValues=function(n,t){var r={};return t=ye(t,3),mt(n,function(n,e,u){st(r,e,t(n,e,u))}),r},An.matches=function(n){return Ht(_t(n,1))},An.matchesProperty=function(n,t){return Jt(n,_t(t,1))},An.memoize=fu,
|
||||
An.merge=kf,An.mergeWith=Sf,An.method=Zf,An.methodOf=qf,An.mixin=Fu,An.negate=cu,An.nthArg=function(n){return n=Au(n),fr(function(t){return Qt(t,n)})},An.omit=Of,An.omitBy=function(n,t){return Bu(n,cu(ye(t)))},An.once=function(n){return eu(2,n)},An.orderBy=function(n,t,r,e){return null==n?[]:(of(t)||(t=null==t?[]:[t]),r=e?T:r,of(r)||(r=null==r?[]:[r]),Xt(n,t,r))},An.over=Vf,An.overArgs=Qo,An.overEvery=Kf,An.overSome=Gf,An.partial=Xo,An.partialRight=nf,An.partition=qo,An.pick=If,An.pickBy=Bu,An.property=Pu,
|
||||
An.propertyOf=function(n){return function(t){return null==n?T:kt(n,t)}},An.pull=So,An.pullAll=Ve,An.pullAllBy=function(n,t,r){return n&&n.length&&t&&t.length?er(n,t,ye(r,2)):n},An.pullAllWith=function(n,t,r){return n&&n.length&&t&&t.length?er(n,t,T,r):n},An.pullAt=Oo,An.range=Hf,An.rangeRight=Jf,An.rearg=tf,An.reject=function(n,t){return(of(n)?i:jt)(n,cu(ye(t,3)))},An.remove=function(n,t){var r=[];if(!n||!n.length)return r;var e=-1,u=[],i=n.length;for(t=ye(t,3);++e<i;){var o=n[e];t(o,e,n)&&(r.push(o),
|
||||
u.push(e))}return ur(n,u),r},An.rest=function(n,t){if(typeof n!="function")throw new ni("Expected a function");return t=t===T?t:Au(t),fr(n,t)},An.reverse=Ke,An.sampleSize=function(n,t,r){return t=(r?Oe(n,t,r):t===T)?1:Au(t),(of(n)?et:ar)(n,t)},An.set=function(n,t,r){return null==n?n:lr(n,t,r)},An.setWith=function(n,t,r,e){return e=typeof e=="function"?e:T,null==n?n:lr(n,t,r,e)},An.shuffle=function(n){return(of(n)?ut:sr)(n)},An.slice=function(n,t,r){var e=null==n?0:n.length;return e?(r&&typeof r!="number"&&Oe(n,t,r)?(t=0,
|
||||
r=e):(t=null==t?0:Au(t),r=r===T?e:Au(r)),hr(n,t,r)):[]},An.sortBy=Vo,An.sortedUniq=function(n){return n&&n.length?gr(n):[]},An.sortedUniqBy=function(n,t){return n&&n.length?gr(n,ye(t,2)):[]},An.split=function(n,t,r){return r&&typeof r!="number"&&Oe(n,t,r)&&(t=r=T),r=r===T?4294967295:r>>>0,r?(n=Ou(n))&&(typeof t=="string"||null!=t&&!sf(t))&&(t=yr(t),!t&&Rn.test(n))?Or(M(n),0,r):n.split(t,r):[]},An.spread=function(t,r){if(typeof t!="function")throw new ni("Expected a function");return r=null==r?0:Li(Au(r),0),
|
||||
fr(function(e){var u=e[r];return e=Or(e,0,r),u&&a(e,u),n(t,this,e)})},An.tail=function(n){var t=null==n?0:n.length;return t?hr(n,1,t):[]},An.take=function(n,t,r){return n&&n.length?(t=r||t===T?1:Au(t),hr(n,0,0>t?0:t)):[]},An.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?(t=r||t===T?1:Au(t),t=e-t,hr(n,0>t?0:t,e)):[]},An.takeRightWhile=function(n,t){return n&&n.length?jr(n,ye(t,3),false,true):[]},An.takeWhile=function(n,t){return n&&n.length?jr(n,ye(t,3)):[]},An.tap=function(n,t){return t(n),
|
||||
n},An.throttle=function(n,t,r){var e=true,u=true;if(typeof n!="function")throw new ni("Expected a function");return gu(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),ou(n,t,{leading:e,maxWait:t,trailing:u})},An.thru=Ye,An.toArray=wu,An.toPairs=Rf,An.toPairsIn=zf,An.toPath=function(n){return of(n)?c(n,De):ju(n)?[n]:Ur(xo(Ou(n)))},An.toPlainObject=Su,An.transform=function(n,t,e){var u=of(n),i=u||cf(n)||pf(n);if(t=ye(t,4),null==e){var o=n&&n.constructor;e=i?u?new o:[]:gu(n)&&pu(o)?ro(gi(n)):{};
|
||||
}return(i?r:mt)(n,function(n,r,u){return t(e,n,r,u)}),e},An.unary=function(n){return ru(n,1)},An.union=Io,An.unionBy=Ro,An.unionWith=zo,An.uniq=function(n){return n&&n.length?br(n):[]},An.uniqBy=function(n,t){return n&&n.length?br(n,ye(t,2)):[]},An.uniqWith=function(n,t){return t=typeof t=="function"?t:T,n&&n.length?br(n,T,t):[]},An.unset=function(n,t){return null==n||xr(n,t)},An.unzip=Ge,An.unzipWith=He,An.update=function(n,t,r){return null==n?n:lr(n,t,kr(r)(kt(n,t)),void 0)},An.updateWith=function(n,t,r,e){
|
||||
return e=typeof e=="function"?e:T,null!=n&&(n=lr(n,t,kr(r)(kt(n,t)),e)),n},An.values=Lu,An.valuesIn=function(n){return null==n?[]:S(n,Wu(n))},An.without=Wo,An.words=Du,An.wrap=function(n,t){return Xo(kr(t),n)},An.xor=Bo,An.xorBy=Lo,An.xorWith=Uo,An.zip=Co,An.zipObject=function(n,t){return Ar(n||[],t||[],ot)},An.zipObjectDeep=function(n,t){return Ar(n||[],t||[],lr)},An.zipWith=Do,An.entries=Rf,An.entriesIn=zf,An.extend=df,An.extendWith=yf,Fu(An,An),An.add=Yf,An.attempt=$f,An.camelCase=Wf,An.capitalize=Uu,
|
||||
An.ceil=Qf,An.clamp=function(n,t,r){return r===T&&(r=t,t=T),r!==T&&(r=ku(r),r=r===r?r:0),t!==T&&(t=ku(t),t=t===t?t:0),pt(ku(n),t,r)},An.clone=function(n){return _t(n,4)},An.cloneDeep=function(n){return _t(n,5)},An.cloneDeepWith=function(n,t){return t=typeof t=="function"?t:T,_t(n,5,t)},An.cloneWith=function(n,t){return t=typeof t=="function"?t:T,_t(n,4,t)},An.conformsTo=function(n,t){return null==t||gt(n,t,zu(t))},An.deburr=Cu,An.defaultTo=function(n,t){return null==n||n!==n?t:n},An.divide=Xf,An.endsWith=function(n,t,r){
|
||||
n=Ou(n),t=yr(t);var e=n.length,e=r=r===T?e:pt(Au(r),0,e);return r-=t.length,0<=r&&n.slice(r,e)==t},An.eq=au,An.escape=function(n){return(n=Ou(n))&&H.test(n)?n.replace(K,nt):n},An.escapeRegExp=function(n){return(n=Ou(n))&&en.test(n)?n.replace(rn,"\\$&"):n},An.every=function(n,t,r){var e=of(n)?u:bt;return r&&Oe(n,t,r)&&(t=T),e(n,ye(t,3))},An.find=$o,An.findIndex=Fe,An.findKey=function(n,t){return p(n,ye(t,3),mt)},An.findLast=Fo,An.findLastIndex=Ne,An.findLastKey=function(n,t){return p(n,ye(t,3),At);
|
||||
},An.floor=nc,An.forEach=Xe,An.forEachRight=nu,An.forIn=function(n,t){return null==n?n:io(n,ye(t,3),Wu)},An.forInRight=function(n,t){return null==n?n:oo(n,ye(t,3),Wu)},An.forOwn=function(n,t){return n&&mt(n,ye(t,3))},An.forOwnRight=function(n,t){return n&&At(n,ye(t,3))},An.get=Iu,An.gt=rf,An.gte=ef,An.has=function(n,t){return null!=n&&we(n,t,Rt)},An.hasIn=Ru,An.head=Ze,An.identity=Tu,An.includes=function(n,t,r,e){return n=lu(n)?n:Lu(n),r=r&&!e?Au(r):0,e=n.length,0>r&&(r=Li(e+r,0)),xu(n)?r<=e&&-1<n.indexOf(t,r):!!e&&-1<v(n,t,r);
|
||||
},An.indexOf=function(n,t,r){var e=null==n?0:n.length;return e?(r=null==r?0:Au(r),0>r&&(r=Li(e+r,0)),v(n,t,r)):-1},An.inRange=function(n,t,r){return t=mu(t),r===T?(r=t,t=0):r=mu(r),n=ku(n),n>=Ui(t,r)&&n<Li(t,r)},An.invoke=Ef,An.isArguments=uf,An.isArray=of,An.isArrayBuffer=ff,An.isArrayLike=lu,An.isArrayLikeObject=su,An.isBoolean=function(n){return true===n||false===n||du(n)&&"[object Boolean]"==Ot(n)},An.isBuffer=cf,An.isDate=af,An.isElement=function(n){return du(n)&&1===n.nodeType&&!bu(n)},An.isEmpty=function(n){
|
||||
if(null==n)return true;if(lu(n)&&(of(n)||typeof n=="string"||typeof n.splice=="function"||cf(n)||pf(n)||uf(n)))return!n.length;var t=_o(n);if("[object Map]"==t||"[object Set]"==t)return!n.size;if(ze(n))return!Vt(n).length;for(var r in n)if(ii.call(n,r))return false;return true},An.isEqual=function(n,t){return Mt(n,t)},An.isEqualWith=function(n,t,r){var e=(r=typeof r=="function"?r:T)?r(n,t):T;return e===T?Mt(n,t,T,r):!!e},An.isError=hu,An.isFinite=function(n){return typeof n=="number"&&zi(n)},An.isFunction=pu,
|
||||
An.isInteger=_u,An.isLength=vu,An.isMap=lf,An.isMatch=function(n,t){return n===t||$t(n,t,xe(t))},An.isMatchWith=function(n,t,r){return r=typeof r=="function"?r:T,$t(n,t,xe(t),r)},An.isNaN=function(n){return yu(n)&&n!=+n},An.isNative=function(n){if(vo(n))throw new Gu("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ft(n)},An.isNil=function(n){return null==n},An.isNull=function(n){return null===n},An.isNumber=yu,An.isObject=gu,An.isObjectLike=du,An.isPlainObject=bu,An.isRegExp=sf,
|
||||
An.isSafeInteger=function(n){return _u(n)&&-9007199254740991<=n&&9007199254740991>=n},An.isSet=hf,An.isString=xu,An.isSymbol=ju,An.isTypedArray=pf,An.isUndefined=function(n){return n===T},An.isWeakMap=function(n){return du(n)&&"[object WeakMap]"==_o(n)},An.isWeakSet=function(n){return du(n)&&"[object WeakSet]"==Ot(n)},An.join=function(n,t){return null==n?"":Wi.call(n,t)},An.kebabCase=Bf,An.last=qe,An.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=e;if(r!==T&&(u=Au(r),u=0>u?Li(e+u,0):Ui(u,e-1)),
|
||||
t===t){for(r=u+1;r--&&n[r]!==t;);n=r}else n=_(n,d,u,true);return n},An.lowerCase=Lf,An.lowerFirst=Uf,An.lt=_f,An.lte=vf,An.max=function(n){return n&&n.length?xt(n,Tu,It):T},An.maxBy=function(n,t){return n&&n.length?xt(n,ye(t,2),It):T},An.mean=function(n){return y(n,Tu)},An.meanBy=function(n,t){return y(n,ye(t,2))},An.min=function(n){return n&&n.length?xt(n,Tu,Kt):T},An.minBy=function(n,t){return n&&n.length?xt(n,ye(t,2),Kt):T},An.stubArray=Zu,An.stubFalse=qu,An.stubObject=function(){return{}},An.stubString=function(){
|
||||
return""},An.stubTrue=function(){return true},An.multiply=tc,An.nth=function(n,t){return n&&n.length?Qt(n,Au(t)):T},An.noConflict=function(){return $n._===this&&($n._=li),this},An.noop=Nu,An.now=Ko,An.pad=function(n,t,r){n=Ou(n);var e=(t=Au(t))?D(n):0;return!t||e>=t?n:(t=(t-e)/2,ne(Oi(t),r)+n+ne(Si(t),r))},An.padEnd=function(n,t,r){n=Ou(n);var e=(t=Au(t))?D(n):0;return t&&e<t?n+ne(t-e,r):n},An.padStart=function(n,t,r){n=Ou(n);var e=(t=Au(t))?D(n):0;return t&&e<t?ne(t-e,r)+n:n},An.parseInt=function(n,t,r){
|
||||
return r||null==t?t=0:t&&(t=+t),Di(Ou(n).replace(on,""),t||0)},An.random=function(n,t,r){if(r&&typeof r!="boolean"&&Oe(n,t,r)&&(t=r=T),r===T&&(typeof t=="boolean"?(r=t,t=T):typeof n=="boolean"&&(r=n,n=T)),n===T&&t===T?(n=0,t=1):(n=mu(n),t===T?(t=n,n=0):t=mu(t)),n>t){var e=n;n=t,t=e}return r||n%1||t%1?(r=Mi(),Ui(n+r*(t-n+Cn("1e-"+((r+"").length-1))),t)):ir(n,t)},An.reduce=function(n,t,r){var e=of(n)?l:j,u=3>arguments.length;return e(n,ye(t,4),r,u,eo)},An.reduceRight=function(n,t,r){var e=of(n)?s:j,u=3>arguments.length;
|
||||
return e(n,ye(t,4),r,u,uo)},An.repeat=function(n,t,r){return t=(r?Oe(n,t,r):t===T)?1:Au(t),or(Ou(n),t)},An.replace=function(){var n=arguments,t=Ou(n[0]);return 3>n.length?t:t.replace(n[1],n[2])},An.result=function(n,t,r){t=Sr(t,n);var e=-1,u=t.length;for(u||(u=1,n=T);++e<u;){var i=null==n?T:n[De(t[e])];i===T&&(e=u,i=r),n=pu(i)?i.call(n):i}return n},An.round=rc,An.runInContext=x,An.sample=function(n){return(of(n)?Qn:cr)(n)},An.size=function(n){if(null==n)return 0;if(lu(n))return xu(n)?D(n):n.length;
|
||||
var t=_o(n);return"[object Map]"==t||"[object Set]"==t?n.size:Vt(n).length},An.snakeCase=Cf,An.some=function(n,t,r){var e=of(n)?h:pr;return r&&Oe(n,t,r)&&(t=T),e(n,ye(t,3))},An.sortedIndex=function(n,t){return _r(n,t)},An.sortedIndexBy=function(n,t,r){return vr(n,t,ye(r,2))},An.sortedIndexOf=function(n,t){var r=null==n?0:n.length;if(r){var e=_r(n,t);if(e<r&&au(n[e],t))return e}return-1},An.sortedLastIndex=function(n,t){return _r(n,t,true)},An.sortedLastIndexBy=function(n,t,r){return vr(n,t,ye(r,2),true);
|
||||
},An.sortedLastIndexOf=function(n,t){if(null==n?0:n.length){var r=_r(n,t,true)-1;if(au(n[r],t))return r}return-1},An.startCase=Df,An.startsWith=function(n,t,r){return n=Ou(n),r=null==r?0:pt(Au(r),0,n.length),t=yr(t),n.slice(r,r+t.length)==t},An.subtract=ec,An.sum=function(n){return n&&n.length?m(n,Tu):0},An.sumBy=function(n,t){return n&&n.length?m(n,ye(t,2)):0},An.template=function(n,t,r){var e=An.templateSettings;r&&Oe(n,t,r)&&(t=T),n=Ou(n),t=yf({},t,e,ce),r=yf({},t.imports,e.imports,ce);var u,i,o=zu(r),f=S(r,o),c=0;
|
||||
r=t.interpolate||jn;var a="__p+='";r=Qu((t.escape||jn).source+"|"+r.source+"|"+(r===Q?pn:jn).source+"|"+(t.evaluate||jn).source+"|$","g");var l="sourceURL"in t?"//# sourceURL="+t.sourceURL+"\n":"";if(n.replace(r,function(t,r,e,o,f,l){return e||(e=o),a+=n.slice(c,l).replace(wn,z),r&&(u=true,a+="'+__e("+r+")+'"),f&&(i=true,a+="';"+f+";\n__p+='"),e&&(a+="'+((__t=("+e+"))==null?'':__t)+'"),c=l+t.length,t}),a+="';",(t=t.variable)||(a="with(obj){"+a+"}"),a=(i?a.replace(P,""):a).replace(Z,"$1").replace(q,"$1;"),
|
||||
a="function("+(t||"obj")+"){"+(t?"":"obj||(obj={});")+"var __t,__p=''"+(u?",__e=_.escape":"")+(i?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+a+"return __p}",t=$f(function(){return Hu(o,l+"return "+a).apply(T,f)}),t.source=a,hu(t))throw t;return t},An.times=function(n,t){if(n=Au(n),1>n||9007199254740991<n)return[];var r=4294967295,e=Ui(n,4294967295);for(t=ye(t),n-=4294967295,e=A(e,t);++r<n;)t(r);return e},An.toFinite=mu,An.toInteger=Au,An.toLength=Eu,An.toLower=function(n){
|
||||
return Ou(n).toLowerCase()},An.toNumber=ku,An.toSafeInteger=function(n){return n?pt(Au(n),-9007199254740991,9007199254740991):0===n?n:0},An.toString=Ou,An.toUpper=function(n){return Ou(n).toUpperCase()},An.trim=function(n,t,r){return(n=Ou(n))&&(r||t===T)?n.replace(un,""):n&&(t=yr(t))?(n=M(n),r=M(t),t=I(n,r),r=R(n,r)+1,Or(n,t,r).join("")):n},An.trimEnd=function(n,t,r){return(n=Ou(n))&&(r||t===T)?n.replace(fn,""):n&&(t=yr(t))?(n=M(n),t=R(n,M(t))+1,Or(n,0,t).join("")):n},An.trimStart=function(n,t,r){
|
||||
return(n=Ou(n))&&(r||t===T)?n.replace(on,""):n&&(t=yr(t))?(n=M(n),t=I(n,M(t)),Or(n,t).join("")):n},An.truncate=function(n,t){var r=30,e="...";if(gu(t))var u="separator"in t?t.separator:u,r="length"in t?Au(t.length):r,e="omission"in t?yr(t.omission):e;n=Ou(n);var i=n.length;if(Rn.test(n))var o=M(n),i=o.length;if(r>=i)return n;if(i=r-D(e),1>i)return e;if(r=o?Or(o,0,i).join(""):n.slice(0,i),u===T)return r+e;if(o&&(i+=r.length-i),sf(u)){if(n.slice(i).search(u)){var f=r;for(u.global||(u=Qu(u.source,Ou(_n.exec(u))+"g")),
|
||||
u.lastIndex=0;o=u.exec(f);)var c=o.index;r=r.slice(0,c===T?i:c)}}else n.indexOf(yr(u),i)!=i&&(u=r.lastIndexOf(u),-1<u&&(r=r.slice(0,u)));return r+e},An.unescape=function(n){return(n=Ou(n))&&G.test(n)?n.replace(V,tt):n},An.uniqueId=function(n){var t=++oi;return Ou(n)+t},An.upperCase=Mf,An.upperFirst=Tf,An.each=Xe,An.eachRight=nu,An.first=Ze,Fu(An,function(){var n={};return mt(An,function(t,r){ii.call(An.prototype,r)||(n[r]=t)}),n}(),{chain:false}),An.VERSION="4.17.10",r("bind bindKey curry curryRight partial partialRight".split(" "),function(n){
|
||||
An[n].placeholder=An}),r(["drop","take"],function(n,t){Un.prototype[n]=function(r){r=r===T?1:Li(Au(r),0);var e=this.__filtered__&&!t?new Un(this):this.clone();return e.__filtered__?e.__takeCount__=Ui(r,e.__takeCount__):e.__views__.push({size:Ui(r,4294967295),type:n+(0>e.__dir__?"Right":"")}),e},Un.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}}),r(["filter","map","takeWhile"],function(n,t){var r=t+1,e=1==r||3==r;Un.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({
|
||||
iteratee:ye(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}}),r(["head","last"],function(n,t){var r="take"+(t?"Right":"");Un.prototype[n]=function(){return this[r](1).value()[0]}}),r(["initial","tail"],function(n,t){var r="drop"+(t?"":"Right");Un.prototype[n]=function(){return this.__filtered__?new Un(this):this[r](1)}}),Un.prototype.compact=function(){return this.filter(Tu)},Un.prototype.find=function(n){return this.filter(n).head()},Un.prototype.findLast=function(n){return this.reverse().find(n);
|
||||
},Un.prototype.invokeMap=fr(function(n,t){return typeof n=="function"?new Un(this):this.map(function(r){return Lt(r,n,t)})}),Un.prototype.reject=function(n){return this.filter(cu(ye(n)))},Un.prototype.slice=function(n,t){n=Au(n);var r=this;return r.__filtered__&&(0<n||0>t)?new Un(r):(0>n?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==T&&(t=Au(t),r=0>t?r.dropRight(-t):r.take(t-n)),r)},Un.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Un.prototype.toArray=function(){return this.take(4294967295);
|
||||
},mt(Un.prototype,function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),u=An[e?"take"+("last"==t?"Right":""):t],i=e||/^find/.test(t);u&&(An.prototype[t]=function(){function t(n){return n=u.apply(An,a([n],f)),e&&h?n[0]:n}var o=this.__wrapped__,f=e?[1]:arguments,c=o instanceof Un,l=f[0],s=c||of(o);s&&r&&typeof l=="function"&&1!=l.length&&(c=s=false);var h=this.__chain__,p=!!this.__actions__.length,l=i&&!h,c=c&&!p;return!i&&s?(o=c?o:new Un(this),o=n.apply(o,f),o.__actions__.push({
|
||||
func:Ye,args:[t],thisArg:T}),new On(o,h)):l&&c?n.apply(this,f):(o=this.thru(t),l?e?o.value()[0]:o.value():o)})}),r("pop push shift sort splice unshift".split(" "),function(n){var t=ti[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);An.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(of(u)?u:[],n)}return this[r](function(r){return t.apply(of(r)?r:[],n)})}}),mt(Un.prototype,function(n,t){var r=An[t];if(r){var e=r.name+"";
|
||||
(Ki[e]||(Ki[e]=[])).push({name:t,func:r})}}),Ki[Jr(T,2).name]=[{name:"wrapper",func:T}],Un.prototype.clone=function(){var n=new Un(this.__wrapped__);return n.__actions__=Ur(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Ur(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Ur(this.__views__),n},Un.prototype.reverse=function(){if(this.__filtered__){var n=new Un(this);n.__dir__=-1,n.__filtered__=true}else n=this.clone(),n.__dir__*=-1;return n;
|
||||
},Un.prototype.value=function(){var n,t=this.__wrapped__.value(),r=this.__dir__,e=of(t),u=0>r,i=e?t.length:0;n=i;for(var o=this.__views__,f=0,c=-1,a=o.length;++c<a;){var l=o[c],s=l.size;switch(l.type){case"drop":f+=s;break;case"dropRight":n-=s;break;case"take":n=Ui(n,f+s);break;case"takeRight":f=Li(f,n-s)}}if(n={start:f,end:n},o=n.start,f=n.end,n=f-o,o=u?f:o-1,f=this.__iteratees__,c=f.length,a=0,l=Ui(n,this.__takeCount__),!e||!u&&i==n&&l==n)return wr(t,this.__actions__);e=[];n:for(;n--&&a<l;){for(o+=r,
|
||||
u=-1,i=t[o];++u<c;){var h=f[u],s=h.type,h=(0,h.iteratee)(i);if(2==s)i=h;else if(!h){if(1==s)continue n;break n}}e[a++]=i}return e},An.prototype.at=Mo,An.prototype.chain=function(){return Je(this)},An.prototype.commit=function(){return new On(this.value(),this.__chain__)},An.prototype.next=function(){this.__values__===T&&(this.__values__=wu(this.value()));var n=this.__index__>=this.__values__.length;return{done:n,value:n?T:this.__values__[this.__index__++]}},An.prototype.plant=function(n){for(var t,r=this;r instanceof En;){
|
||||
var e=$e(r);e.__index__=0,e.__values__=T,t?u.__wrapped__=e:t=e;var u=e,r=r.__wrapped__}return u.__wrapped__=n,t},An.prototype.reverse=function(){var n=this.__wrapped__;return n instanceof Un?(this.__actions__.length&&(n=new Un(this)),n=n.reverse(),n.__actions__.push({func:Ye,args:[Ke],thisArg:T}),new On(n,this.__chain__)):this.thru(Ke)},An.prototype.toJSON=An.prototype.valueOf=An.prototype.value=function(){return wr(this.__wrapped__,this.__actions__)},An.prototype.first=An.prototype.head,ji&&(An.prototype[ji]=Qe),
|
||||
An}();typeof define=="function"&&typeof define.amd=="object"&&define.amd?($n._=rt, define(function(){return rt})):Nn?((Nn.exports=rt)._=rt,Fn._=rt):$n._=rt}).call(this);
|
||||
13
public/a1/conductor/lib/p5.min-v0.6.1.js
Normal file
28
public/a1/conductor/lib/p5.sound.min-v0.3.7.js
Normal file
39
public/a1/conductor/lib/paper-full-v0.11.5.min.js
vendored
Normal file
8
public/a1/conductor/lib/socket.io-v2.1.1.slim.js
Normal file
3
public/a1/conductor/lib/tachyons-4.9.1.min.css
vendored
Normal file
320
public/a1/conductor/lib/util.js
Normal file
|
|
@ -0,0 +1,320 @@
|
|||
// re-map values from 'from' to 'to'
|
||||
//
|
||||
// usage form #1 : map(val, from, to, loop)
|
||||
// 'from', 'to' should be array with 2 numbers. like: [0, 1], [-10, 30], [0.5, 52.4] ...
|
||||
// 'loop' could be 'true' to extrapolate beyond from[1] and to[1]
|
||||
//
|
||||
// examples
|
||||
//
|
||||
// map(val, [30, 40], [2, 3]); // assuming 'val' is in the range [30, 40], what is propotionally matching number in the range [2, 3];
|
||||
//
|
||||
// map(32, [30, 40], [2, 3]) -> 2.2
|
||||
// map(32, [30, 40], [3, 2]) -> 2.8 // flip
|
||||
// map(29, [30, 40], [2, 3]) -> 2 // below mininum input range will forced to minimum output value
|
||||
// map(43, [30, 40], [2, 3]) -> 3 // below maximun input range will forced to maximun output value
|
||||
// map(43, [30, 40], [2, 3], true) -> 2.3 // allowing 'looping'
|
||||
// map(33, [30, 40], [2, 3], true) -> 2.3 // looping portion (43-40 -> 3) will be reapplied (30 + 3) will result same as above line
|
||||
// map(13, [30, 40], [2, 3], true) -> 2 // looping only allow 'beyond maximum'.. not 'under minimum'
|
||||
//
|
||||
// usage form #2 : map(val, object)
|
||||
// 'object' should contain following items
|
||||
// object.from
|
||||
// object.to
|
||||
// object.loop
|
||||
// same as above but use instead 'object' form
|
||||
//
|
||||
// examples
|
||||
//
|
||||
// map(33, {
|
||||
// from: [30, 40],
|
||||
// to: [2, 3],
|
||||
// loop: true
|
||||
// });
|
||||
|
||||
function map(val, from, to, loop) {
|
||||
if (typeof from === 'object') {
|
||||
if (Array.isArray(from)) { // direct form (array)
|
||||
from = from || [0, 1];
|
||||
to = to || [0, 1];
|
||||
if (val < from[0]) return to[0];
|
||||
if (loop === true) { // 'looping'
|
||||
return (val - from[0]) % (from[1] - from[0]) * (to[1] - to[0]) / (from[1] - from[0]) + to[0];
|
||||
} else {
|
||||
if (val > from[1]) return to[1];
|
||||
return (val - from[0]) * (to[1] - to[0]) / (from[1] - from[0]) + to[0];
|
||||
}
|
||||
} else { // object form
|
||||
var object = from;
|
||||
object.from = object.from || [0, 1];
|
||||
object.to = object.to || [0, 1];
|
||||
if (val < object.from[0]) return object.to[0];
|
||||
if (object.loop === true) { // 'looping'
|
||||
return (val - object.from[0]) % (object.from[1] - object.from[0]) * (object.to[1] - object.to[0]) / (object.from[1] - object.from[0]) + object.to[0];
|
||||
} else {
|
||||
if (val > object.from[1]) return object.to[1];
|
||||
return (val - object.from[0]) * (object.to[1] - object.to[0]) / (object.from[1] - object.from[0]) + object.to[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// re-map values from [0, 1] to 'to'
|
||||
// refer to 'map' description to understand 'loop'
|
||||
// ex) known values lies in [0, 1] -> [2, 3] : map2(val, [2, 3]);
|
||||
function map2(val, to, loop) {
|
||||
if (typeof to === 'object') {
|
||||
if (Array.isArray(to)) { // direct form (array)
|
||||
return map(val, [0, 1], to, loop);
|
||||
} else { // object form
|
||||
return map(val, [0, 1], to.to, to.loop);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// get a random real number in range of [min, max)
|
||||
function getRandom(min, max) {
|
||||
return map2(Math.random(), [min, max]);
|
||||
}
|
||||
|
||||
// get a random integer value in set of {min, ... , max}
|
||||
function getRandomInt(min, max) {
|
||||
return Math.floor(getRandom(min, max + 1));
|
||||
}
|
||||
|
||||
//use in onFrame(event) to get loopping 'timeline' for animation build-up
|
||||
// ex) getTimeline(event.time, [0, 30]) will return a changing number from 0 to 1, for 30 seconds.
|
||||
// time: could be event.time or event.count
|
||||
// event.time.. will be more time-wise precise
|
||||
// event.count.. will be more frame-wise precise
|
||||
// ex) getTimeline(event.count, [0, 30]) will return a changing number from 0 to 1, for 30 frames (roughly 0.5 sec. in 60 fps animation).
|
||||
//
|
||||
// examples
|
||||
//
|
||||
// getTimeline(event.time, [0, 30]) // from 0 sec. to 30 sec., change value from 0 to 1
|
||||
// getTimeline(event.time, [0, 30], [3, 2]) // from 0 sec. to 30 sec., change value from 3 to 2
|
||||
// getTimeline(event.time, [0, 30], [3, 2], true) // from 0 sec. to 30 sec., change value from 3 to 2, and repeat forever.
|
||||
// getTimeline(event.time, [3, 10]) // from 0 sec. to 3 sec. stay at 0, from 3 sec. to 10 sec., change value from 0 to 1
|
||||
// getTimeline(event.time, { // object form
|
||||
// from: [3, 10],
|
||||
// to: [4, 15],
|
||||
// loop: true
|
||||
// });
|
||||
function getTimeline(time, from, to, loop) {
|
||||
return map(time, from, to, loop);
|
||||
}
|
||||
|
||||
//use in onFrame(event) to get loopping 'timeline' for animation build-up
|
||||
// ex) getTimepoint(event.time, [0, 10], path) will return a moving point along with 'path' for 10 seconds
|
||||
// and use is as a point, like
|
||||
// ex) a.position = getTimepoint(event.time, [0, 10], path);
|
||||
// or get y-coord and use it as a number, like
|
||||
// ex) a.fillColor.hue = getTimepoint(event.time, [0, 10], path).y;
|
||||
// if expected range of y values are.. [0, 100], then..
|
||||
// a.fillColor.hue = map(getTimepoint(event.time, [0, 10], path).y, [0, 100], [0, 360]);
|
||||
// to fit whole range of hue circle.
|
||||
function getTimepoint(time, path, from, to, loop) {
|
||||
return path.getPointAt(getTimeline(time, from, to, loop) * path.length % path.length);
|
||||
}
|
||||
|
||||
// //detect 'visibilitychange' in modern browsers (e.g. changing tab)
|
||||
// // ref) https://stackoverflow.com/a/19519701 ("Detect if browser tab is active or user has switched away")
|
||||
// // ex)
|
||||
// // __visibility(function() {
|
||||
// // document.title = __visibility() ? 'Visible' : 'Not visible';
|
||||
// // });
|
||||
// var __visibility = (function() {
|
||||
// //investigate property list in the browser
|
||||
// var stateKey, eventKey, keys = {
|
||||
// hidden: "visibilitychange",
|
||||
// webkitHidden: "webkitvisibilitychange",
|
||||
// mozHidden: "mozvisibilitychange",
|
||||
// msHidden: "msvisibilitychange"
|
||||
// };
|
||||
// //confirm what eventkey to be used
|
||||
// for (stateKey in keys) {
|
||||
// if (stateKey in document) {
|
||||
// eventKey = keys[stateKey];
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// //build the function and then let it be used
|
||||
// return function(c) {
|
||||
// //this function will have 2 usecases
|
||||
// // 1) simple call: __visibility() will return current visibility state
|
||||
// // 2) call with callback: __visibility(function(){}) will assign a callback for the event
|
||||
// //in this callback function use usecase #1 to get actual visibility.
|
||||
// if (c) {
|
||||
// document.addEventListener(eventKey, c);
|
||||
// }
|
||||
// return !document[stateKey];
|
||||
// }
|
||||
// })();
|
||||
//
|
||||
// //prepare a new master to be used
|
||||
// var master = new Tone.AmplitudeEnvelope({
|
||||
// attack: 1,
|
||||
// decay: 0,
|
||||
// sustain: 1,
|
||||
// release: 1
|
||||
// }).toMaster();
|
||||
//
|
||||
// function onVisibilityChange() {
|
||||
// //document.title = __visibility() ? 'Visible' : 'Not visible';
|
||||
// if (__visibility() == true) {
|
||||
// master.triggerAttack();
|
||||
// } else {
|
||||
// master.triggerRelease();
|
||||
// }
|
||||
// }
|
||||
// //register handler
|
||||
// __visibility(onVisibilityChange);
|
||||
// //initial state check
|
||||
// onVisibilityChange();
|
||||
//
|
||||
// //a first touch getter! (only for iphone)
|
||||
// function getTheFirstTouchiOS() {
|
||||
// if (/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream) {
|
||||
// var _silence = new Tone.Player({
|
||||
// url: 'lib/_silence.wav',
|
||||
// onload: function() {
|
||||
// new paper.Path.Rectangle({
|
||||
// point: [0, 0],
|
||||
// size: paper.view.size,
|
||||
// fillColor: 'white',
|
||||
// opacity: 0.8,
|
||||
// onClick: function() {
|
||||
// _silence.start();
|
||||
// this.remove();
|
||||
// }
|
||||
// }).bringToFront();
|
||||
// }
|
||||
// }).toMaster();
|
||||
// }
|
||||
// }
|
||||
|
||||
//SVG helpers
|
||||
function SVGSymbol(uri) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
paper.project.importSVG(uri, {
|
||||
expandShapes: true,
|
||||
onLoad: function(svg) {
|
||||
resolve(new paper.Symbol(svg));
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function SVGSymbol_size1(uri) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
paper.project.importSVG(uri, {
|
||||
expandShapes: true,
|
||||
onLoad: function(svg) {
|
||||
svg.scale(1 / svg.bounds.size.width);
|
||||
resolve(new paper.Symbol(svg));
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function SVGImportSimple(uri) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
paper.project.importSVG(uri, function(svg) {
|
||||
resolve(svg);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function SVGImport(uri) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
paper.project.importSVG(uri, function(svg) {
|
||||
svg.parent.remove(svg);
|
||||
resolve(svg);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function SVGImport_size1(uri) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
paper.project.importSVG(uri, function(svg) {
|
||||
svg.parent.remove(svg);
|
||||
svg.scale(1 / svg.bounds.size.width);
|
||||
resolve(svg);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function SVGNamedImport(uri, name) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
paper.project.importSVG(uri, function(svg) {
|
||||
svg.remove();
|
||||
var item = svg.getItem({
|
||||
name: name
|
||||
});
|
||||
item.applyMatrix = true;
|
||||
resolve(item);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function SVGNamedSymbol(uri, name) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
paper.project.importSVG(uri, function(svg) {
|
||||
resolve(new paper.Symbol(
|
||||
svg.getItem({
|
||||
name: name
|
||||
})
|
||||
));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function RasterImport(uri) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
var raster = new paper.Raster(uri);
|
||||
raster.onLoad = function() {
|
||||
raster.remove();
|
||||
raster.applyMatrix = true;
|
||||
resolve(raster);
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
function RasterImport_size1(uri) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
var raster = new paper.Raster(uri);
|
||||
raster.onLoad = function() {
|
||||
raster.remove();
|
||||
raster.applyMatrix = true;
|
||||
raster.scale(1 / raster.size.width);
|
||||
resolve(raster);
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
function AudioImport(url) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
var audio = new Tone.Player(url, function() {
|
||||
resolve(audio);
|
||||
}).toMaster();
|
||||
});
|
||||
}
|
||||
|
||||
function AudioImport_p5(url) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
var audio = new p5.SoundFile(url, function() {
|
||||
resolve(audio);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
//
|
||||
// a unique string generator
|
||||
//
|
||||
// references:
|
||||
// https://gist.github.com/gordonbrander/2230317
|
||||
// https://gist.github.com/6174/6062387
|
||||
// https://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript
|
||||
//
|
||||
function uniqueID() {
|
||||
return Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
|
||||
}
|
||||
BIN
public/a1/conductor/phonehand.png
Normal file
|
After Width: | Height: | Size: 110 KiB |
BIN
public/a1/favicon.ico
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
1
public/a1/imgs/arrow-circle-left.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg width="2048" height="2048" viewBox="0 0 2048 2048" xmlns="http://www.w3.org/2000/svg"><path d="M1536 1088v-128q0-26-19-45t-45-19h-502l189-189q19-19 19-45t-19-45l-91-91q-18-18-45-18t-45 18l-362 362-91 91q-18 18-18 45t18 45l91 91 362 362q18 18 45 18t45-18l91-91q18-18 18-45t-18-45l-189-189h502q26 0 45-19t19-45zm256-64q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/></svg>
|
||||
|
After Width: | Height: | Size: 466 B |
1
public/a1/imgs/arrow-circle-right.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg width="2048" height="2048" viewBox="0 0 2048 2048" xmlns="http://www.w3.org/2000/svg"><path d="M1541 1024q0-27-18-45l-91-91-362-362q-18-18-45-18t-45 18l-91 91q-18 18-18 45t18 45l189 189h-502q-26 0-45 19t-19 45v128q0 26 19 45t45 19h502l-189 189q-19 19-19 45t19 45l91 91q18 18 45 18t45-18l362-362 91-91q18-18 18-45zm251 0q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/></svg>
|
||||
|
After Width: | Height: | Size: 469 B |
1
public/a1/imgs/check-circle.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg width="2048" height="2048" viewBox="0 0 2048 2048" xmlns="http://www.w3.org/2000/svg"><path d="M1540 862q0-28-18-46l-91-90q-19-19-45-19t-45 19l-408 407-226-226q-19-19-45-19t-45 19l-91 90q-18 18-18 46 0 27 18 45l362 362q19 19 45 19 27 0 46-19l543-543q18-18 18-45zm252 162q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/></svg>
|
||||
|
After Width: | Height: | Size: 420 B |
1
public/a1/imgs/hand-point-right-regular.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg aria-hidden="true" data-prefix="far" data-icon="hand-point-right" class="svg-inline--fa fa-hand-point-right fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M428.8 137.6h-86.177a115.52 115.52 0 0 0 2.176-22.4c0-47.914-35.072-83.2-92-83.2-45.314 0-57.002 48.537-75.707 78.784-7.735 12.413-16.994 23.317-25.851 33.253l-.131.146-.129.148C135.662 161.807 127.764 168 120.8 168h-2.679c-5.747-4.952-13.536-8-22.12-8H32c-17.673 0-32 12.894-32 28.8v230.4C0 435.106 14.327 448 32 448h64c8.584 0 16.373-3.048 22.12-8h2.679c28.688 0 67.137 40 127.2 40h21.299c62.542 0 98.8-38.658 99.94-91.145 12.482-17.813 18.491-40.785 15.985-62.791A93.148 93.148 0 0 0 393.152 304H428.8c45.435 0 83.2-37.584 83.2-83.2 0-45.099-38.101-83.2-83.2-83.2zm0 118.4h-91.026c12.837 14.669 14.415 42.825-4.95 61.05 11.227 19.646 1.687 45.624-12.925 53.625 6.524 39.128-10.076 61.325-50.6 61.325H248c-45.491 0-77.21-35.913-120-39.676V215.571c25.239-2.964 42.966-21.222 59.075-39.596 11.275-12.65 21.725-25.3 30.799-39.875C232.355 112.712 244.006 80 252.8 80c23.375 0 44 8.8 44 35.2 0 35.2-26.4 53.075-26.4 70.4h158.4c18.425 0 35.2 16.5 35.2 35.2 0 18.975-16.225 35.2-35.2 35.2zM88 384c0 13.255-10.745 24-24 24s-24-10.745-24-24 10.745-24 24-24 24 10.745 24 24z"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
1
public/a1/imgs/icon_sound.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve"><path d="M5,52c-0.8,0-1.5-0.7-1.5-1.5v-1C3.5,48.7,4.2,48,5,48s1.5,0.7,1.5,1.5v1C6.5,51.3,5.8,52,5,52z"></path><path d="M11,51.5c-0.4,0-0.8-0.2-1.1-0.4c-0.3-0.3-0.4-0.7-0.4-1.1c0-0.4,0.2-0.8,0.4-1.1c0.6-0.6,1.6-0.6,2.1,0 c0.3,0.3,0.4,0.7,0.4,1.1c0,0.4-0.2,0.8-0.4,1.1C11.8,51.3,11.4,51.5,11,51.5z"></path><path d="M17,66.5c-0.8,0-1.5-0.7-1.5-1.5V35c0-0.8,0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5v30C18.5,65.8,17.8,66.5,17,66.5z"></path><path d="M29,76.5c-0.8,0-1.5-0.7-1.5-1.5V25c0-0.8,0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5v50C30.5,75.8,29.8,76.5,29,76.5z"></path><path d="M23,81.5c-0.8,0-1.5-0.7-1.5-1.5V20c0-0.8,0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5v60C24.5,80.8,23.8,81.5,23,81.5z"></path><path d="M35,68.5c-0.8,0-1.5-0.7-1.5-1.5V33c0-0.8,0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5v34C36.5,67.8,35.8,68.5,35,68.5z"></path><path d="M41,61c-0.8,0-1.5-0.7-1.5-1.5v-19c0-0.8,0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5v19C42.5,60.3,41.8,61,41,61z"></path><path d="M47,56c-0.8,0-1.5-0.7-1.5-1.5v-9c0-0.8,0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5v9C48.5,55.3,47.8,56,47,56z"></path><path d="M53,58.5c-0.8,0-1.5-0.7-1.5-1.5V43c0-0.8,0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5v14C54.5,57.8,53.8,58.5,53,58.5z"></path><path d="M59,54.5c-0.8,0-1.5-0.7-1.5-1.5v-6c0-0.8,0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5v6C60.5,53.8,59.8,54.5,59,54.5z"></path><path d="M65,53c-0.8,0-1.5-0.7-1.5-1.5v-3c0-0.8,0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5v3C66.5,52.3,65.8,53,65,53z"></path><path d="M71,51.5c-0.4,0-0.8-0.2-1.1-0.4c-0.1-0.1-0.2-0.3-0.3-0.5c-0.1-0.2-0.1-0.4-0.1-0.6c0-0.1,0-0.2,0-0.3c0-0.1,0-0.2,0.1-0.3 c0-0.1,0.1-0.2,0.1-0.3c0.1-0.1,0.1-0.2,0.2-0.2c0.1-0.1,0.1-0.1,0.2-0.2c0.1-0.1,0.2-0.1,0.3-0.1c0.1,0,0.2-0.1,0.3-0.1 c0.2,0,0.4,0,0.6,0c0.1,0,0.2,0,0.3,0.1c0.1,0,0.2,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.2c0.1,0.1,0.1,0.1,0.2,0.2 c0,0.1,0.1,0.2,0.1,0.3c0,0.1,0.1,0.2,0.1,0.3c0,0.1,0,0.2,0,0.3c0,0.2,0,0.4-0.1,0.6c-0.1,0.2-0.2,0.4-0.3,0.5 c-0.1,0.1-0.3,0.2-0.5,0.3C71.4,51.5,71.2,51.5,71,51.5z"></path><path d="M77,52c-0.8,0-1.5-0.7-1.5-1.5v-1c0-0.8,0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5v1C78.5,51.3,77.8,52,77,52z"></path><path d="M89,52c-0.8,0-1.5-0.7-1.5-1.5v-1c0-0.8,0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5v1C90.5,51.3,89.8,52,89,52z"></path><path d="M83,51.5c-0.4,0-0.8-0.2-1.1-0.4c-0.3-0.3-0.4-0.7-0.4-1.1c0-0.1,0-0.2,0-0.3c0-0.1,0-0.2,0.1-0.3c0-0.1,0.1-0.2,0.1-0.3 c0.1-0.1,0.1-0.2,0.2-0.2c0.4-0.4,0.9-0.5,1.4-0.4c0.1,0,0.2,0,0.3,0.1c0.1,0,0.2,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.2 c0.3,0.3,0.4,0.7,0.4,1.1c0,0.4-0.2,0.8-0.4,1.1c-0.1,0.1-0.3,0.2-0.5,0.3C83.4,51.5,83.2,51.5,83,51.5z"></path><path d="M95,51.5c-0.4,0-0.8-0.2-1.1-0.4c-0.1-0.1-0.2-0.3-0.3-0.5c-0.1-0.2-0.1-0.4-0.1-0.6c0-0.4,0.2-0.8,0.4-1.1 c0.6-0.6,1.6-0.6,2.1,0c0.3,0.3,0.4,0.7,0.4,1.1c0,0.2,0,0.4-0.1,0.6c-0.1,0.2-0.2,0.4-0.3,0.5C95.8,51.3,95.4,51.5,95,51.5z"></path></svg>
|
||||
|
After Width: | Height: | Size: 2.9 KiB |
1
public/a1/imgs/iconmonstr-minus-4.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 0c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm7 14h-14v-4h14v4z"/></svg>
|
||||
|
After Width: | Height: | Size: 194 B |
1
public/a1/imgs/iconmonstr-plus-4.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 0c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm7 14h-5v5h-4v-5h-5v-4h5v-5h4v5h5v4z"/></svg>
|
||||
|
After Width: | Height: | Size: 212 B |
30
public/a1/imgs/listen-icon.svg
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 177.8 178" style="enable-background:new 0 0 177.8 178;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#00ACF2;}
|
||||
</style>
|
||||
<path class="st0" d="M43.8,176.9c-10.6-1.4-18.3-8.5-23.7-17.9c-1.1-1.9-2.1-3.7-0.9-6c2-3.7,6.5-3.7,9.1,0.4
|
||||
c4.2,6.4,9.2,11.5,17,13.3c15.3,3.6,31.8-9.1,30.9-24.8c-0.9-16.1,3.6-29.6,15.5-40.5c17.1-15.6,18.3-49.3,9.7-66.6
|
||||
C94.3,20.7,82,14.6,67.2,11.7c-9-1.7-17.8-0.9-26.4,1.3c-17.6,4.6-27.1,16.5-30,34.1C9.6,54.4,9,61.8,10.4,69.3
|
||||
c0.7,3.7,0,7.1-4.2,7.5s-4.6-2.7-5.5-6.5c-0.5-2.1-0.5-19-0.4-21c1.1-25.1,22.4-46.9,49-48c2-0.1,12.6-0.5,15.9-0.1
|
||||
c3.4,0.4,6.7,1.1,10,2c24.7,6.5,40.2,25.8,41.5,51.5c0.4,8.4-0.4,16.8-2.2,25c-2.4,10.8-6.9,20.7-15.2,28.3
|
||||
c-10.3,9.2-14,20.4-13.2,34c0.8,16-10.3,29.6-26.8,34.1C58.2,176.4,49.5,177.6,43.8,176.9z"/>
|
||||
<path class="st0" d="M177.2,66.4c-0.8,14.7-7.5,27.5-15.4,39.7c-1.8,2.7-4.2,3.9-7.1,2.1c-3.2-2-2.9-4.8-1.1-7.7
|
||||
c7-10.9,12.4-22.5,13.8-35.6c1.8-16.5-2.8-31-13.9-43.3c-1.9-2.1-3.4-4.1-2.2-7c1.5-3.6,5.6-3.8,8.9-0.3c9.6,10.1,16,22.1,16.9,36
|
||||
C177.3,51.9,177.3,64.7,177.2,66.4z"/>
|
||||
<path class="st0" d="M157.4,58.1c0,13.8-5.2,26-12.5,37.4c-1.8,2.8-4.4,3.8-7.2,2.1c-3.2-1.9-2.9-4.8-1.1-7.7
|
||||
c6.7-10.4,11.3-21.5,10.7-34.3c-0.4-9.8-4-18.3-10.4-25.5c-2.4-2.7-4.4-5.5-1.1-8.4c3.5-3.1,6.3-0.8,8.7,2.1
|
||||
C153.2,33.6,157.5,45,157.4,58.1z"/>
|
||||
<path class="st0" d="M138.2,58.8c-0.3,9.9-3.6,18.6-8.7,26.6c-1.8,2.8-4.1,4.6-7.4,2.5c-3.1-2-2.9-4.8-1.1-7.7
|
||||
c4.9-7.9,8.4-16.1,6.8-25.7c-0.9-5.3-3-10.1-6.7-14.1c-2.5-2.7-3.5-5.5-0.4-8.1s5.8-0.9,8.1,1.8C135.1,41.2,137.9,49.6,138.2,58.8z"
|
||||
/>
|
||||
<path class="st0" d="M52.3,116.9c-1.6-10.6,2.1-17.7,9.7-23.3c4.8-3.5,5.3-8.8,4.1-14.3c-0.9-4.3-4-6.2-7.9-7.2c-3-0.9-5.1,0-6,3.2
|
||||
c-0.6,2.2-1.3,4.4-2.1,6.6c-2.9,7.5-9.2,9.4-15.8,4.8c-17.4-12.1-15.4-40.5,3.9-51.2c11.4-6.4,23.7-7,35.8-1.9
|
||||
c12.5,5.3,17.3,16,18.8,28.7c0.4,3.3,0.3,6.6,0.1,9.9c-0.2,3.1-2,5-5.1,4.8s-4.8-2.2-4.7-5.3c0.1-5.5-0.1-10.9-1.8-16.1
|
||||
c-2.4-7.8-7.6-12.5-15.5-14.3c-6.6-1.5-13.2-1.1-19.5,1.3c-13.9,5.2-18.6,23.7-8.8,33.8c2.1,2.2,3.3,2.7,4.4-1
|
||||
c3.7-11.7,8.7-15.1,18.3-13.1c10.2,2.1,17.2,11.2,16.5,21.6c-0.5,7.6-3.1,14.2-9.7,18.6c-4.2,2.8-5.5,6.7-5.1,11.5
|
||||
c0.2,2.8,0.4,5.6,0.3,8.4c-0.3,10.7-8.8,16.4-18.8,12.8c-6.6-2.4-10.6-7.7-13.7-13.6c-1.5-2.9-1-6.1,2.5-7.4c3.3-1.3,5.8,0.1,7,3.5
|
||||
c1.2,3.2,3.2,5.8,6.1,7.5c4.3,2.6,6.9,1.2,7-3.9C52.3,119.4,52.3,117.6,52.3,116.9z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.5 KiB |
BIN
public/a1/imgs/litmus.png
Normal file
|
After Width: | Height: | Size: 19 KiB |