Commit 224ba882 authored by mmaluschnig's avatar mmaluschnig
Browse files

Just in case something goes terribly wrong.

parent 11eec764
<Properties StartupConfiguration="{67A4F128-F6AC-CD88-DA35-F29416A0792A}|">
<MonoDevelop.Ide.ItemProperties.Assembly-CSharp PreferredExecutionTarget="Unity.Editor" />
<MonoDevelop.Ide.Workbench ActiveDocument="Assets/Scripts/PieScripts/throwManager.cs">
<MonoDevelop.Ide.Workbench ActiveDocument="Assets/Scripts/DaytimeScripts/TentInteractoins.cs">
<Files>
<File FileName="Assets/Scripts/PieScripts/PieTutorial.cs" Line="1" Column="1" />
<File FileName="Assets/Scripts/TrapezeScripts/TrapezeTutorial.cs" Line="1" Column="1" />
<File FileName="Assets/Scripts/DaytimeScripts/CharacterSpeech/SilasSpeech.cs" Line="280" Column="42" />
<File FileName="Assets/Scripts/MimeScripts/MimeMimeTutorial.cs" Line="100" Column="51" />
<File FileName="Assets/Scripts/MimeScripts/LevelManager.cs" Line="31" Column="14" />
<File FileName="Assets/Scripts/PieScripts/throwManager.cs" Line="1" Column="1" />
<File FileName="Assets/Scripts/DaytimeScripts/CharacterInteractions.cs" Line="60" Column="44" />
<File FileName="Assets/Scripts/DaytimeScripts/CharacterSpeech/AhavaSpeech.cs" Line="192" Column="73" />
<File FileName="Assets/Scripts/DaytimeScripts/DaytimeManager.cs" Line="17" Column="7" />
<File FileName="Assets/Scripts/DaytimeScripts/CharacterSpeech/JohnSmithSpeech.cs" Line="237" Column="104" />
<File FileName="Assets/Scripts/PieScripts/PieManager.cs" Line="40" Column="53" />
<File FileName="Assets/Scripts/DaytimeScripts/CharacterSpeech/SimonSpeech.cs" Line="174" Column="111" />
<File FileName="Assets/Scripts/GameManager.cs" Line="151" Column="37" />
<File FileName="Assets/Scripts/DaytimeScripts/TentInteractoins.cs" Line="35" Column="91" />
<File FileName="Assets/Scripts/DaytimeScripts/ObjectInteractions.cs" Line="1" Column="1" />
</Files>
</MonoDevelop.Ide.Workbench>
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
......
This source diff could not be displayed because it is too large. You can view the blob instead.
fileFormatVersion: 2
guid: bd2db1036e19184418ded17111bf1fd2
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
OcclusionCullingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
m_SceneGUID: 00000000000000000000000000000000
m_OcclusionCullingData: {fileID: 0}
--- !u!104 &2
RenderSettings:
m_ObjectHideFlags: 0
serializedVersion: 9
m_Fog: 0
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
m_FogMode: 3
m_FogDensity: 0.01
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
m_AmbientIntensity: 1
m_AmbientMode: 3
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
m_SkyboxMaterial: {fileID: 0}
m_HaloStrength: 0.5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_DefaultReflectionMode: 0
m_DefaultReflectionResolution: 128
m_ReflectionBounces: 1
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 11
m_GIWorkflowMode: 1
m_GISettings:
serializedVersion: 2
m_BounceScale: 1
m_IndirectOutputScale: 1
m_AlbedoBoost: 1
m_TemporalCoherenceThreshold: 1
m_EnvironmentLightingMode: 0
m_EnableBakedLightmaps: 0
m_EnableRealtimeLightmaps: 0
m_LightmapEditorSettings:
serializedVersion: 10
m_Resolution: 2
m_BakeResolution: 40
m_AtlasSize: 1024
m_AO: 0
m_AOMaxDistance: 1
m_CompAOExponent: 1
m_CompAOExponentDirect: 0
m_Padding: 2
m_LightmapParameters: {fileID: 0}
m_LightmapsBakeMode: 1
m_TextureCompression: 1
m_FinalGather: 0
m_FinalGatherFiltering: 1
m_FinalGatherRayCount: 256
m_ReflectionCompression: 2
m_MixedBakeMode: 2
m_BakeBackend: 1
m_PVRSampling: 1
m_PVRDirectSampleCount: 32
m_PVRSampleCount: 500
m_PVRBounces: 2
m_PVRFilterTypeDirect: 0
m_PVRFilterTypeIndirect: 0
m_PVRFilterTypeAO: 0
m_PVRFilteringMode: 1
m_PVRCulling: 1
m_PVRFilteringGaussRadiusDirect: 1
m_PVRFilteringGaussRadiusIndirect: 5
m_PVRFilteringGaussRadiusAO: 2
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
m_PVRFilteringAtrousPositionSigmaIndirect: 2
m_PVRFilteringAtrousPositionSigmaAO: 1
m_ShowResolutionOverlay: 1
m_LightingDataAsset: {fileID: 0}
m_UseShadowmask: 1
--- !u!196 &4
NavMeshSettings:
serializedVersion: 2
m_ObjectHideFlags: 0
m_BuildSettings:
serializedVersion: 2
agentTypeID: 0
agentRadius: 0.5
agentHeight: 2
agentSlope: 45
agentClimb: 0.4
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
minRegionArea: 2
manualCellSize: 0
cellSize: 0.16666667
manualTileSize: 0
tileSize: 256
accuratePlacement: 0
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &624811883
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 624811886}
- component: {fileID: 624811885}
- component: {fileID: 624811884}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &624811884
AudioListener:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 624811883}
m_Enabled: 1
--- !u!20 &624811885
Camera:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 624811883}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
m_projectionMatrixMode: 1
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
m_FocalLength: 50
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 1
orthographic size: 5
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 1
m_AllowMSAA: 1
m_AllowDynamicResolution: 0
m_ForceIntoRT: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
--- !u!4 &624811886
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 624811883}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -10}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
fileFormatVersion: 2
guid: b1b2192df7f069a4aa1eea4b95d464cd
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
......@@ -472,7 +472,7 @@ Camera:
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
m_BackGroundColor: {r: 0.6313726, g: 0.52156866, b: 0.26666668, a: 0}
m_projectionMatrixMode: 1
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
......@@ -723,14 +723,14 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_Color: {r: 1, g: 1, b: 1, a: 0}
m_RaycastTarget: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
m_Sprite: {fileID: 0}
m_Type: 1
m_PreserveAspect: 0
m_FillCenter: 1
......@@ -2799,7 +2799,7 @@ Camera:
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
m_BackGroundColor: {r: 0.6313726, g: 0.52156866, b: 0.26666668, a: 0}
m_projectionMatrixMode: 1
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
......
......@@ -2358,7 +2358,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_Color: {r: 1, g: 1, b: 1, a: 0}
m_RaycastTarget: 1
m_OnCullStateChanged:
m_PersistentCalls:
......@@ -2829,7 +2829,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_Color: {r: 1, g: 1, b: 1, a: 0}
m_RaycastTarget: 1
m_OnCullStateChanged:
m_PersistentCalls:
......
......@@ -57,7 +57,7 @@ public class CharacterInteractions : MonoBehaviour {
}
private IEnumerator checkLevelUp() {
yield return new WaitForSeconds(0.1f);
yield return new WaitForSeconds(0.01f);
LevelUpImage.gameObject.SetActive(GameManager.hasLeveledUp(characterScript.getName()));
/*if (characterScript.getName() != "Ahava"){
LevelUpImage.gameObject.SetActive(false);
......@@ -82,6 +82,8 @@ public class CharacterInteractions : MonoBehaviour {
}else{
LevelUpImage.gameObject.SetActive(false);
}
} else if(GameManager.ConversationStage == 1){
LevelUpImage.gameObject.SetActive(!GameManager.HasTalkedToAhava);
}
//do things while the player is in range of the character
if (interactable)
......@@ -254,8 +256,13 @@ public class CharacterInteractions : MonoBehaviour {
//stage 1, ahava asks player for name
if (characterScript.getName() == "Ahava" && GameManager.ConversationStage == 1)
{
askPlayerForName();
//forgive me senpai, for I have sinned.
if (GameManager.speechState == 7)
{
DaytimeManager.enteringName = true;
}
setText(speechBox, characterScript.converse(), Mathf.Infinity, characterScript.getResponses());
askPlayerForName();
}
else
{
......@@ -272,9 +279,8 @@ public class CharacterInteractions : MonoBehaviour {
}
private bool askPlayerForName() {
if (GameManager.speechState == 7) {
if (GameManager.speechState == 6) {
//create input field for player name
DaytimeManager.enteringName = true;
inputName.gameObject.SetActive(true);
inputName.ActivateInputField();
return true;
......
......@@ -35,7 +35,7 @@ public class AhavaSpeech : MonoBehaviour, Character {
return "Hey there, hotshot";
} else if (GameManager.ConversationStage == 4) {
currentResponses = new string[] { "Give her one of Simon's patented bear hugs", "What's the matter?", "Try not to notice"};
currentResponses = new string[] { "Give her one of Simon's bear hugs", "What's the matter?", "Try not to notice"};
return "*Seems to be crying*";
}
......@@ -68,10 +68,14 @@ public class AhavaSpeech : MonoBehaviour, Character {
}
public string converse() {
if (conversation.Count > 0) {
if (conversation.Count > 1) {
GameManager.speechState = conversation.Count;
currentResponses = responseQueue.Dequeue();
return conversation.Dequeue();
} else if(conversation.Count == 1){
GameManager.HasTalkedToAhava = true;
currentResponses = responseQueue.Dequeue();
return conversation.Dequeue();
} else {
GameManager.HasTalkedToAhava = true;
return nothingMoreToSay();
......@@ -81,11 +85,14 @@ public class AhavaSpeech : MonoBehaviour, Character {
private void loadConversation() {
conversation.Clear();
responseQueue.Clear();
GameManager.speechState = 0;
if(GameManager.ConversationStage == 1) {
if (GameManager.ConversationStage == 1) {
conversationStage1();
}else if(GameManager.ConversationStage == 2) {
}
else if(GameManager.ConversationStage == 2) {
conversationStage2();
} else if (GameManager.ConversationStage == 3) {
......@@ -189,7 +196,7 @@ public class AhavaSpeech : MonoBehaviour, Character {
conversation.Enqueue("Can I tell you a secret?");
responseQueue.Enqueue(new string[] { "yes", "yes", "YES but in capitals" });
conversation.Enqueue("This beard isn't mine, it's Simon's... well... that's all you need to know");
conversation.Enqueue("This beard isn't mine, it's Simon's... ...well... that's all you need to know");
responseQueue.Enqueue(new string[] { "I'm sure you're still beautiful without it", "Is that what that bald patch is?", "I don't like where this is going" });
conversation.Enqueue("Here, take this, it's dangerous to go alone");
......
......@@ -172,7 +172,7 @@ public class JohnSmithSpeech : MonoBehaviour, Character {
conversation.Enqueue("An accountant asks a trapeze artist what is their net worth. The trapeze artist says 'Every penny'");
responseQueue.Enqueue(new string[] { "If I had a penny for every time I heard that", "*Chuckles slightly*", "That was terrible" });
conversation.Enqueue("HAHAHAHAHHAHAAHAHA/n" + " You feel like he took your rejection well");
conversation.Enqueue("HAHAHAHAHHAHAAHAHA\n" + " You feel like he took your rejection well");
responseQueue.Enqueue(new string[] { "HAHAHAHAHAH", "Try to back away", "Are you okay?" });
conversation.Enqueue("It's cool having you around, kid. Looking forward to seeing you in the tent");
......@@ -186,16 +186,16 @@ public class JohnSmithSpeech : MonoBehaviour, Character {
conversation.Enqueue("Like...do you think it's fun?");
responseQueue.Enqueue(new string[] { "Absolutely! It's the best part of the circus", "It's pretty good", "It's okay, I guess" });
conversation.Enqueue("Glad to hear it! I just worry that people don't like it: it's not as showy as Simon's stuff and doesn't have Silas' catchy tunes");
conversation.Enqueue("Glad to hear it! I worry that people don't like it: it's not as showy as Simon's stuff and doesn't have Silas' catchy tunes");
responseQueue.Enqueue(new string[] { "Who needs that other stuff?", "Throwing pies is kinda cathartic...", "To be honest, I like getting my dance on" });
conversation.Enqueue("There's something so much more...primal and natural about trapezing, don't you think?");
conversation.Enqueue("There's something so much more... primal and natural about trapezing, don't you think?");
responseQueue.Enqueue(new string[] { "I'm not sure...", "Huh?", "What?" });
conversation.Enqueue("It's like we're monkies again! Swinging from branch to branch, tree to tree");
conversation.Enqueue("It's like we're monkeys again! Swinging from branch to branch, tree to tree");
responseQueue.Enqueue(new string[] { "Oh! That's true!", "I'd rather keep my feet on the ground", "I'm not into 'primal'" });
conversation.Enqueue("Maybe it would be better if we were monkies again, no talking about people behind their backs...");
conversation.Enqueue("Maybe it would be better if we were monkeys again, no talking about people behind their backs...");
responseQueue.Enqueue(new string[] { "You might have a point there", "Are you implying something?", "I'd miss my creature comforts" });
conversation.Enqueue("Anyway, I should probably get to rigging the platforms up for tonight");
......@@ -234,6 +234,6 @@ public class JohnSmithSpeech : MonoBehaviour, Character {
responseQueue.Enqueue(new string[] { "Take care up there!", "It's always a pleasure!", "Yeah, sure, bye!" });
conversation.Enqueue("Oh, by the way, probably no one has told you but you can sprint by hitting left shift");
responseQueue.Enqueue(new string[] { "Why wasn't I told?", "When in this game would you need to sprint?", "*Suspicious look*" });
responseQueue.Enqueue(new string[] { "Why wasn't I told?", "When in this game would you need to?", "*Suspicious look*" });
}
}
......@@ -148,7 +148,7 @@ public class SimonSpeech : MonoBehaviour, Character {
responseQueue.Enqueue(new string[] { "grrRrrrR", "Never heard of it", "Glory to Arstotzka!" });
conversation.Enqueue("Grrr (Though I must admit that life isn't all that great there, even for a celebrity like me)");
responseQueue.Enqueue(new string[] { "Grrrg", "You're a celebrity?", "Better not let Glorious Leader hear that" });
responseQueue.Enqueue(new string[] { "Grrrg", "You're a celebearity?", "Better not let Glorious Leader hear that" });
conversation.Enqueue("grrR (I wouldn't recommend it for a holiday: border control alone is a nightmare)");
responseQueue.Enqueue(new string[] { "grrRR", "It really doesn't sound inviting", "Cobrastan is nice this time of year, isn't it?" });
......
......@@ -23,10 +23,15 @@ public class TentInteractoins : MonoBehaviour {
// Update is called once per frame
void Update() {
checkNearbyPlayers();
if (interactable) {
if (Input.GetKeyDown(KeyCode.W) || Input.GetKeyDown(KeyCode.UpArrow) || Input.GetKeyDown(KeyCode.E)) {
DaytimeManager.beginPerformance();
if (GameManager.HasTalkedToAhava)
{
checkNearbyPlayers();
if (interactable)
{
if (Input.GetKeyDown(KeyCode.W) || Input.GetKeyDown(KeyCode.UpArrow) || Input.GetKeyDown(KeyCode.E))
{
DaytimeManager.beginPerformance();
}
}
}
}
......
......@@ -147,6 +147,8 @@ public class GameManager : MonoBehaviour {
HasTalkedToAhava = false;
HasCompleatedIntro = false;
hasCompletedTheGame = false;
}
}
......@@ -37,7 +37,7 @@ public class PieManager : MonoBehaviour {
if (Time.time > exitTime)
{
print(score);
float levels = Mathf.Min((score / 1500f), 0.95f);
float levels = Mathf.Min((score / 1200f), 0.95f);
GameManager.addToLevel("Simon", levels);
SceneManager.LoadScene("Daytime");
if (tutorial) {
......
{
"companyName": "Cirque du Solame",
"productName": "RingMaster",
"dataUrl": "FinalBuild(Definitely).data.unityweb",
"wasmCodeUrl": "FinalBuild(Definitely).wasm.code.unityweb",
"wasmFrameworkUrl": "FinalBuild(Definitely).wasm.framework.unityweb",
"TOTAL_MEMORY": 268435456,
"graphicsAPI": ["WebGL 2.0", "WebGL 1.0"],
"webglContextAttributes": {"preserveDrawingBuffer": false},
"splashScreenStyle": "Dark",
"backgroundColor": "#231F20",
"cacheControl": {"default": "must-revalidate"}
}
\ No newline at end of file
var UnityLoader=UnityLoader||{Compression:{identity:{require:function(){return{}},decompress:function(e){return e}},gzip:{require:function(e){var t={"inflate.js":function(e,t,r){"use strict";function n(e){if(!(this instanceof n))return new n(e);this.options=s.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0===(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var r=i.inflateInit2(this.strm,t.windowBits);if(r!==l.Z_OK)throw new Error(u[r]);this.header=new f,i.inflateGetHeader(this.strm,this.header)}function o(e,t){var r=new n(t);if(r.push(e,!0),r.err)throw r.msg||u[r.err];return r.result}function a(e,t){return t=t||{},t.raw=!0,o(e,t)}var i=e("./zlib/inflate"),s=e("./utils/common"),d=e("./utils/strings"),l=e("./zlib/constants"),u=e("./zlib/messages"),c=e("./zlib/zstream"),f=e("./zlib/gzheader"),h=Object.prototype.toString;n.prototype.push=function(e,t){var r,n,o,a,u,c,f=this.strm,p=this.options.chunkSize,m=this.options.dictionary,w=!1;if(this.ended)return!1;n=t===~~t?t:t===!0?l.Z_FINISH:l.Z_NO_FLUSH,"string"==typeof e?f.input=d.binstring2buf(e):"[object ArrayBuffer]"===h.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new s.Buf8(p),f.next_out=0,f.avail_out=p),r=i.inflate(f,l.Z_NO_FLUSH),r===l.Z_NEED_DICT&&m&&(c="string"==typeof m?d.string2buf(m):"[object ArrayBuffer]"===h.call(m)?new Uint8Array(m):m,r=i.inflateSetDictionary(this.strm,c)),r===l.Z_BUF_ERROR&&w===!0&&(r=l.Z_OK,w=!1),r!==l.Z_STREAM_END&&r!==l.Z_OK)return this.onEnd(r),this.ended=!0,!1;f.next_out&&(0!==f.avail_out&&r!==l.Z_STREAM_END&&(0!==f.avail_in||n!==l.Z_FINISH&&n!==l.Z_SYNC_FLUSH)||("string"===this.options.to?(o=d.utf8border(f.output,f.next_out),a=f.next_out-o,u=d.buf2string(f.output,o),f.next_out=a,f.avail_out=p-a,a&&s.arraySet(f.output,f.output,o,a,0),this.onData(u)):this.onData(s.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(w=!0)}while((f.avail_in>0||0===f.avail_out)&&r!==l.Z_STREAM_END);return r===l.Z_STREAM_END&&(n=l.Z_FINISH),n===l.Z_FINISH?(r=i.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===l.Z_OK):n!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),f.avail_out=0,!0)},n.prototype.onData=function(e){this.chunks.push(e)},n.prototype.onEnd=function(e){e===l.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=n,r.inflate=o,r.inflateRaw=a,r.ungzip=o},"utils/common.js":function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,r,n,o){if(t.subarray&&e.subarray)return void e.set(t.subarray(r,r+n),o);for(var a=0;a<n;a++)e[o+a]=t[r+a]},flattenChunks:function(e){var t,r,n,o,a,i;for(n=0,t=0,r=e.length;t<r;t++)n+=e[t].length;for(i=new Uint8Array(n),o=0,t=0,r=e.length;t<r;t++)a=e[t],i.set(a,o),o+=a.length;return i}},a={arraySet:function(e,t,r,n,o){for(var a=0;a<n;a++)e[o+a]=t[r+a]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,o)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,a))},r.setTyped(n)},"utils/strings.js":function(e,t,r){"use strict";function n(e,t){if(t<65537&&(e.subarray&&i||!e.subarray&&a))return String.fromCharCode.apply(null,o.shrinkBuf(e,t));for(var r="",n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r}var o=e("./common"),a=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(e){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){i=!1}for(var s=new o.Buf8(256),d=0;d<256;d++)s[d]=d>=252?6:d>=248?5:d>=240?4:d>=224?3:d>=192?2:1;s[254]=s[254]=1,r.string2buf=function(e){var t,r,n,a,i,s=e.length,d=0;for(a=0;a<s;a++)r=e.charCodeAt(a),55296===(64512&r)&&a+1<s&&(n=e.charCodeAt(a+1),56320===(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),a++)),d+=r<128?1:r<2048?2:r<65536?3:4;for(t=new o.Buf8(d),i=0,a=0;i<d;a++)r=e.charCodeAt(a),55296===(64512&r)&&a+1<s&&(n=e.charCodeAt(a+1),56320===(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),a++)),r<128?t[i++]=r:r<2048?(t[i++]=192|r>>>6,t[i++]=128|63&r):r<65536?(t[i++]=224|r>>>12,t[i++]=128|r>>>6&63,t[i++]=128|63&r):(t[i++]=240|r>>>18,t[i++]=128|r>>>12&63,t[i++]=128|r>>>6&63,t[i++]=128|63&r);return t},r.buf2binstring=function(e){return n(e,e.length)},r.binstring2buf=function(e){for(var t=new o.Buf8(e.length),r=0,n=t.length;r<n;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){var r,o,a,i,d=t||e.length,l=new Array(2*d);for(o=0,r=0;r<d;)if(a=e[r++],a<128)l[o++]=a;else if(i=s[a],i>4)l[o++]=65533,r+=i-1;else{for(a&=2===i?31:3===i?15:7;i>1&&r<d;)a=a<<6|63&e[r++],i--;i>1?l[o++]=65533:a<65536?l[o++]=a:(a-=65536,l[o++]=55296|a>>10&1023,l[o++]=56320|1023&a)}return n(l,o)},r.utf8border=function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&128===(192&e[r]);)r--;return r<0?t:0===r?t:r+s[e[r]]>t?r:t}},"zlib/inflate.js":function(e,t,r){"use strict";function n(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function o(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new y.Buf16(320),this.work=new y.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function a(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=T,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new y.Buf32(me),t.distcode=t.distdyn=new y.Buf32(we),t.sane=1,t.back=-1,O):N}function i(e){var t;return e&&e.state?(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,a(e)):N}function s(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15)?N:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,i(e))):N}function d(e,t){var r,n;return e?(n=new o,e.state=n,n.window=null,r=s(e,t),r!==O&&(e.state=null),r):N}function l(e){return d(e,ye)}function u(e){if(ge){var t;for(w=new y.Buf32(512),b=new y.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(U(E,e.lens,0,288,w,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;U(k,e.lens,0,32,b,0,e.work,{bits:5}),ge=!1}e.lencode=w,e.lenbits=9,e.distcode=b,e.distbits=5}function c(e,t,r,n){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new y.Buf8(a.wsize)),n>=a.wsize?(y.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(o=a.wsize-a.wnext,o>n&&(o=n),y.arraySet(a.window,t,r-n,o,a.wnext),n-=o,n?(y.arraySet(a.window,t,r-n,n,0),a.wnext=n,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}function f(e,t){var r,o,a,i,s,d,l,f,h,p,m,w,b,me,we,be,ye,ge,ve,Ae,Ue,xe,Ee,ke,Be=0,Le=new y.Buf8(4),We=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return N;r=e.state,r.mode===j&&(r.mode=X),s=e.next_out,a=e.output,l=e.avail_out,i=e.next_in,o=e.input,d=e.avail_in,f=r.hold,h=r.bits,p=d,m=l,xe=O;e:for(;;)switch(r.mode){case T:if(0===r.wrap){r.mode=X;break}for(;h<16;){if(0===d)break e;d--,f+=o[i++]<<h,h+=8}if(2&r.wrap&&35615===f){r.check=0,Le[0]=255&f,Le[1]=f>>>8&255,r.check=v(r.check,Le,2,0),f=0,h=0,r.mode=P;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&f)<<8)+(f>>8))%31){e.msg="incorrect header check",r.mode=fe;break}if((15&f)!==I){e.msg="unknown compression method",r.mode=fe;break}if(f>>>=4,h-=4,Ue=(15&f)+8,0===r.wbits)r.wbits=Ue;else if(Ue>r.wbits){e.msg="invalid window size",r.mode=fe;break}r.dmax=1<<Ue,e.adler=r.check=1,r.mode=512&f?G:j,f=0,h=0;break;case P:for(;h<16;){if(0===d)break e;d--,f+=o[i++]<<h,h+=8}if(r.flags=f,(255&r.flags)!==I){e.msg="unknown compression method",r.mode=fe;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=fe;break}r.head&&(r.head.text=f>>8&1),512&r.flags&&(Le[0]=255&f,Le[1]=f>>>8&255,r.check=v(r.check,Le,2,0)),f=0,h=0,r.mode=D;case D:for(;h<32;){if(0===d)break e;d--,f+=o[i++]<<h,h+=8}r.head&&(r.head.time=f),512&r.flags&&(Le[0]=255&f,Le[1]=f>>>8&255,Le[2]=f>>>16&255,Le[3]=f>>>24&255,r.check=v(r.check,Le,4,0)),f=0,h=0,r.mode=q;case q:for(;h<16;){if(0===d)break e;d--,f+=o[i++]<<h,h+=8}r.head&&(r.head.xflags=255&f,r.head.os=f>>8),512&r.flags&&(Le[0]=255&f,Le[1]=f>>>8&255,r.check=v(r.check,Le,2,0)),f=0,h=0,r.mode=F;case F:if(1024&r.flags){for(;h<16;){if(0===d)break e;d--,f+=o[i++]<<h,h+=8}r.length=f,r.head&&(r.head.extra_len=f),512&r.flags&&(Le[0]=255&f,Le[1]=f>>>8&255,r.check=v(r.check,Le,2,0)),f=0,h=0}else r.head&&(r.head.extra=null);r.mode=V;case V:if(1024&r.flags&&(w=r.length,w>d&&(w=d),w&&(r.head&&(Ue=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),y.arraySet(r.head.extra,o,i,w,Ue)),512&r.flags&&(r.check=v(r.check,o,w,i)),d-=w,i+=w,r.length-=w),r.length))break e;r.length=0,r.mode=Z;case Z:if(2048&r.flags){if(0===d)break e;w=0;do Ue=o[i+w++],r.head&&Ue&&r.length<65536&&(r.head.name+=String.fromCharCode(Ue));while(Ue&&w<d);if(512&r.flags&&(r.check=v(r.check,o,w,i)),d-=w,i+=w,Ue)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=Y;case Y:if(4096&r.flags){if(0===d)break e;w=0;do Ue=o[i+w++],r.head&&Ue&&r.length<65536&&(r.head.comment+=String.fromCharCode(Ue));while(Ue&&w<d);if(512&r.flags&&(r.check=v(r.check,o,w,i)),d-=w,i+=w,Ue)break e}else r.head&&(r.head.comment=null);r.mode=z;case z:if(512&r.flags){for(;h<16;){if(0===d)break e;d--,f+=o[i++]<<h,h+=8}if(f!==(65535&r.check)){e.msg="header crc mismatch",r.mode=fe;break}f=0,h=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=j;break;case G:for(;h<32;){if(0===d)break e;d--,f+=o[i++]<<h,h+=8}e.adler=r.check=n(f),f=0,h=0,r.mode=J;case J:if(0===r.havedict)return e.next_out=s,e.avail_out=l,e.next_in=i,e.avail_in=d,r.hold=f,r.bits=h,M;e.adler=r.chec