Last active
January 14, 2017 15:56
-
-
Save krazyjakee/26856fae13b8c8a259bd7bdd22e25331 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.XMPP=e()}}(function(){var e;return function e(t,n,r){function s(o,i){if(!n[o]){if(!t[o]){var c="function"==typeof require&&require;if(!i&&c)return c(o,!0);if(a)return a(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[o]={exports:{}};t[o][0].call(u.exports,function(e){var n=t[o][1][e];return s(n?n:e)},u,u.exports,e,t,n,r)}return n[o].exports}for(var a="function"==typeof require&&require,o=0;o<r.length;o++)s(r[o]);return s}({"/stanza.io-8.0.2/index.js":[function(e,t,n){"use strict";n.VERSION="8.0.2",n.JID=e("xmpp-jid").JID,n.Client=e("./lib/client"),n.createClient=function(t){var r=new n.Client(t);return r.use(e("./lib/plugins")),r}},{"./lib/client":"/stanza.io-8.0.2/lib/client.js","./lib/plugins":"/stanza.io-8.0.2/lib/plugins/index-browser.js","xmpp-jid":"/stanza.io-8.0.2/node_modules/xmpp-jid/index.js"}],"/stanza.io-8.0.2/lib/client.js":[function(e,t,n){"use strict";function timeoutRequest(e,t,n){var r;return Promise.race([e,new Promise(function(e,a){r=setTimeout(function(){a({id:t,type:"error",error:{condition:"timeout"}})},n)})]).then(function(e){return clearTimeout(r),e})}function Client(t){var n=this;i.call(this),t=t||{},this._initConfig(t),this.stanzas=o.getGlobalJXT(),this.jid=new u,this.stanzas=o.createRegistry(),this.stanzas.use(e("jxt-xmpp-types")),this.stanzas.use(e("jxt-xmpp")),this.use(e("./plugins/features")),this.use(e("./plugins/sasl")),this.use(e("./plugins/smacks")),this.use(e("./plugins/bind")),this.use(e("./plugins/session")),this.sm=new d(this),this.transports={},this.use(e("./plugins/websocket")),this.use(e("./plugins/oldwebsocket")),this.use(e("./plugins/bosh")),this.on("stream:data",function(e){var t=e.toJSON();if("iq"===e._name&&(t._xmlChildCount=0,r(e.xml.childNodes,function(e){1===e.nodeType&&(t._xmlChildCount+=1)})),n.emit(e._eventname||e._name,t),"message"===e._name||"presence"===e._name||"iq"===e._name)n.sm.handle(t),n.emit("stanza",t);else{if("smAck"===e._name)return n.sm.process(t);if("smRequest"===e._name)return n.sm.ack()}t.id&&(n.emit("id:"+t.id,t),n.emit(e._name+":id:"+t.id,t))}),this.on("disconnected",function(){n.transport&&(n.transport.off("*"),delete n.transport),n.releaseGroup("connection")}),this.on("iq",function(e){var t=e.type,r=e._xmlChildCount;delete e._xmlChildCount;var a=Object.keys(e).filter(function(e){return"id"!==e&&"to"!==e&&"from"!==e&&"lang"!==e&&"type"!==e&&"errorReply"!==e&&"resultReply"!==e});if("get"===e.type||"set"===e.type){if(1!==r)return n.sendIq(e.errorReply({error:{type:"modify",condition:"bad-request"}}));if(!a.length)return n.sendIq(e.errorReply({error:{type:"cancel",condition:"feature-not-implemented"}}));var s="iq:"+t+":"+a[0];n.callbacks[s]?n.emit(s,e):n.sendIq(e.errorReply({error:{type:"cancel",condition:"feature-not-implemented"}}))}}),this.on("message",function(e){Object.keys(e.$body||{}).length&&("chat"===e.type||"normal"===e.type?n.emit("chat",e):"groupchat"===e.type&&n.emit("groupchat",e)),"error"===e.type&&n.emit("message:error",e)}),this.on("presence",function(e){var t=e.type||"available";"error"===t&&(t="presence:error"),n.emit(t,e)})}var r=e("lodash.foreach"),a=e("lodash.assign"),s=e("lodash.isarray"),o=e("jxt"),i=e("wildemitter"),c=e("util"),l=e("uuid"),u=e("xmpp-jid").JID,d=e("./sm"),p=e("hostmeta"),f=e("saslmechanisms"),m={external:e("sasl-external"),"scram-sha-1":e("sasl-scram-sha-1"),"digest-md5":e("alt-sasl-digest-md5"),"x-oauth2":e("sasl-x-oauth2"),plain:e("sasl-plain"),anonymous:e("sasl-anonymous")};c.inherits(Client,i),Object.defineProperty(Client.prototype,"stream",{get:function(){return this.transport?this.transport.stream:void 0}}),Client.prototype._initConfig=function(e){var t=this,n=this.config||{};this.config=a({useStreamManagement:!0,transports:["websocket","bosh"],sasl:["external","scram-sha-1","digest-md5","plain","anonymous"]},n,e),s(this.config.sasl)||(this.config.sasl=[this.config.sasl]),this.SASLFactory=new f,this.config.sasl.forEach(function(e){if("string"==typeof e){var n=m[e.toLowerCase()];n&&t.SASLFactory.use(n)}else t.SASLFactory.use(e)}),this.config.jid=new u(this.config.jid),this.config.server||(this.config.server=this.config.jid.domain),this.config.password&&(this.config.credentials=this.config.credentials||{},this.config.credentials.password=this.config.password,delete this.config.password),this.config.transport&&(this.config.transports=[this.config.transport]),s(this.config.transports)||(this.config.transports=[this.config.transports])},Client.prototype.use=function(e){e(this,this.stanzas,this.config)},Client.prototype.nextId=function(){return l.v4()},Client.prototype.discoverBindings=function(e,t){p(e,function(e,n){if(e)return t(e,[]);var r={websocket:[],bosh:[]},a=n.links||[];a.forEach(function(e){e.href&&"urn:xmpp:alt-connections:websocket"===e.rel&&r.websocket.push(e.href),e.href&&"urn:xmpp:altconnect:websocket"===e.rel&&r.websocket.push(e.href),e.href&&"urn:xmpp:alt-connections:xbosh"===e.rel&&r.bosh.push(e.href),e.href&&"urn:xmpp:altconnect:bosh"===e.rel&&r.bosh.push(e.href)}),t(!1,r)})},Client.prototype._getConfiguredCredentials=function(){var e=this.config.credentials||{},t=new u(this.config.jid),n=e.username||t.local,r=e.server||t.domain,s={username:n,password:this.config.password,server:r,host:r,realm:r,serviceType:"xmpp",serviceName:r},o=a(s,e);return o},Client.prototype.getCredentials=function(e){return e(null,this._getConfiguredCredentials())},Client.prototype.connect=function(e,t){var n=this;if(this._initConfig(e),t&&t.name&&t.url){var r=n.transport=new n.transports[t.name](n.sm,n.stanzas);return r.on("*",function(e,t){n.emit(e,t)}),r.connect(n.config)}return!t&&1===n.config.transports.length&&(t={},t.name=n.config.transports[0],"websocket"!==t.name&&"old-websocket"!==t.name||(t.url=n.config.wsURL),"bosh"===t.name&&(t.url=n.config.boshURL),t.name&&t.url)?n.connect(null,t):n.discoverBindings(n.config.server,function(e,t){if(e)return console.error("Could not find https://"+n.config.server+"/.well-known/host-meta file to discover connection endpoints for the requested transports."),n.disconnect();for(var r=0,a=n.config.transports.length;r<a;r++){var s=n.config.transports[r];console.log("Checking for %s endpoints",s);for(var o=0,i=(t[s]||[]).length;o<i;o++){var c=t[s][o];if(0===c.indexOf("wss://")||0===c.indexOf("https://"))return"websocket"===s?n.config.wsURL=c:n.config.boshURL=c,console.log("Using %s endpoint: %s",s,c),n.connect(null,{name:s,url:c});console.warn("Discovered unencrypted %s endpoint (%s). Ignoring",s,c)}}return console.error("No endpoints found for the requested transports."),n.disconnect()})},Client.prototype.disconnect=function(){this.sessionStarted&&(this.releaseGroup("session"),this.sm.started||this.emit("session:end")),this.sessionStarted=!1,this.releaseGroup("connection"),this.transport?this.transport.disconnect():this.emit("disconnected")},Client.prototype.send=function(e){this.sm.track(e),this.transport&&this.transport.send(e)},Client.prototype.sendMessage=function(e){e=e||{},e.id||(e.id=this.nextId());var t=this.stanzas.getMessage(),n=new t(e);return this.emit("message:sent",n.toJSON()),this.send(n),e.id},Client.prototype.sendPresence=function(e){e=e||{},e.id||(e.id=this.nextId());var t=this.stanzas.getPresence();return this.send(new t(e)),e.id},Client.prototype.sendIq=function(e,t){var n,r,a,s,o=this;e=e||{},e.id||(e.id=this.nextId());var i=this.stanzas.getIq(),c=e.toJSON?e:new i(e);return"error"===e.type||"result"===e.type?void this.send(c):(s=new u(e.to),a={},a[""]=!0,a[s.full]=!0,a[s.bare]=!0,a[s.domain]=!0,a[o.jid.bare]=!0,a[o.jid.domain]=!0,r="iq:id:"+e.id,n=new Promise(function(e,t){var n=function(s){a[s.from.full]&&("result"!==s.type&&"error"!==s.type||(o.off(r,n),s.error?t(s):e(s)))};o.on(r,"session",n)}),this.send(c),timeoutRequest(n,e.id,1e3*(o.config.timeout||15)).then(function(e){return t&&t(null,e),e},function(e){if(t)return t(e);throw e}))},Client.prototype.sendStreamError=function(e){e=e||{};var t=this.stanzas.getStreamError(),n=new t(e);this.emit("stream:error",n.toJSON()),this.send(n),this.disconnect()},t.exports=Client},{"./plugins/bind":"/stanza.io-8.0.2/lib/plugins/bind.js","./plugins/bosh":"/stanza.io-8.0.2/lib/plugins/bosh.js","./plugins/features":"/stanza.io-8.0.2/lib/plugins/features.js","./plugins/oldwebsocket":"/stanza.io-8.0.2/lib/plugins/oldwebsocket.js","./plugins/sasl":"/stanza.io-8.0.2/lib/plugins/sasl.js","./plugins/session":"/stanza.io-8.0.2/lib/plugins/session.js","./plugins/smacks":"/stanza.io-8.0.2/lib/plugins/smacks.js","./plugins/websocket":"/stanza.io-8.0.2/lib/plugins/websocket.js","./sm":"/stanza.io-8.0.2/lib/sm.js","alt-sasl-digest-md5":"/stanza.io-8.0.2/node_modules/alt-sasl-digest-md5/index.js",hostmeta:"/stanza.io-8.0.2/node_modules/hostmeta/index.js",jxt:"/stanza.io-8.0.2/node_modules/jxt/index.js","jxt-xmpp":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/index.js","jxt-xmpp-types":"/stanza.io-8.0.2/node_modules/jxt-xmpp-types/lib/index.js","lodash.assign":"/stanza.io-8.0.2/node_modules/lodash.assign/index.js","lodash.foreach":"/stanza.io-8.0.2/node_modules/lodash.foreach/index.js","lodash.isarray":"/stanza.io-8.0.2/node_modules/lodash.isarray/index.js","sasl-anonymous":"/stanza.io-8.0.2/node_modules/sasl-anonymous/main.js","sasl-external":"/stanza.io-8.0.2/node_modules/sasl-external/main.js","sasl-plain":"/stanza.io-8.0.2/node_modules/sasl-plain/main.js","sasl-scram-sha-1":"/stanza.io-8.0.2/node_modules/sasl-scram-sha-1/index.js","sasl-x-oauth2":"/stanza.io-8.0.2/node_modules/sasl-x-oauth2/main.js",saslmechanisms:"/stanza.io-8.0.2/node_modules/saslmechanisms/main.js",util:"/stanza.io-8.0.2/node_modules/util/util.js",uuid:"/stanza.io-8.0.2/node_modules/uuid/uuid.js",wildemitter:"/stanza.io-8.0.2/node_modules/wildemitter/wildemitter.js","xmpp-jid":"/stanza.io-8.0.2/node_modules/xmpp-jid/index.js"}],"/stanza.io-8.0.2/lib/plugins/attention.js":[function(e,t,n){"use strict";t.exports=function(e){e.disco.addFeature("urn:xmpp:attention:0"),e.getAttention=function(t,n){n=n||{},n.to=t,n.type="headline",n.attention=!0,e.sendMessage(n)},e.on("message",function(t){t.attention&&e.emit("attention",t)})}},{}],"/stanza.io-8.0.2/lib/plugins/avatar.js":[function(e,t,n){"use strict";t.exports=function(e){e.disco.addFeature("urn:xmpp:avatar:metadata+notify"),e.on("pubsub:event",function(t){t.event.updated&&"urn:xmpp:avatar:metadata"===t.event.updated.node&&e.emit("avatar",{jid:t.from,source:"pubsub",avatars:t.event.updated.published[0].avatars})}),e.on("presence",function(t){t.avatarId&&e.emit("avatar",{jid:t.from,source:"vcard",avatars:[{id:t.avatarId}]})}),e.publishAvatar=function(e,t,n){return this.publish("","urn:xmpp:avatar:data",{id:e,avatarData:t},n)},e.useAvatars=function(e,t){return this.publish("","urn:xmpp:avatar:metadata",{id:"current",avatars:e},t)},e.getAvatar=function(e,t,n){return this.getItem(e,"urn:xmpp:avatar:data",t,n)}}},{}],"/stanza.io-8.0.2/lib/plugins/bind.js":[function(e,t,n){"use strict";var r=e("xmpp-jid").JID;t.exports=function(e,t,n){e.registerFeature("bind",300,function(e,t){var a=this;a.sendIq({type:"set",bind:{resource:n.resource}},function(n,s){if(n)return a.emit("session:error",n),t("disconnect","JID binding failed");a.features.negotiated.bind=!0,a.jid=new r(s.bind.jid),a.emit("session:bound",a.jid);var o=!e.session||e.session&&e.session.optional;return!a.sessionStarted&&o&&(a.sessionStarted=!0,a.emit("session:started",a.jid)),t()})}),e.on("disconnected",function(){e.sessionStarted=!1,e.features.negotiated.bind=!1})}},{"xmpp-jid":"/stanza.io-8.0.2/node_modules/xmpp-jid/index.js"}],"/stanza.io-8.0.2/lib/plugins/blocking.js":[function(e,t,n){"use strict";t.exports=function(e){e.disco.addFeature("urn:xmpp:blocking"),e.block=function(t,n){return e.sendIq({type:"set",block:{jids:[t]}},n)},e.unblock=function(t,n){return e.sendIq({type:"set",unblock:{jids:[t]}},n)},e.getBlocked=function(t){return e.sendIq({type:"get",blockList:!0},t)},e.on("iq:set:block",function(t){e.emit("block",{jids:t.block.jids||[]}),e.sendIq(t.resultReply())}),e.on("iq:set:unblock",function(t){e.emit("unblock",{jids:t.unblock.jids||[]}),e.sendIq(t.resultReply())})}},{}],"/stanza.io-8.0.2/lib/plugins/bob.js":[function(e,t,n){"use strict";t.exports=function(e){e.disco.addFeature("urn:xmpp:bob"),e.getBits=function(t,n,r){return e.sendIq({to:t,type:"get",bob:{cid:n}},r)}}},{}],"/stanza.io-8.0.2/lib/plugins/bookmarks.js":[function(e,t,n){"use strict";var r=e("lodash.assign"),a=e("lodash.filter"),s=e("xmpp-jid").JID;t.exports=function(e){e.getBookmarks=function(e){return this.getPrivateData({bookmarks:!0},e)},e.setBookmarks=function(e,t){return this.setPrivateData({bookmarks:e},t)},e.addBookmark=function(t,n){return t.jid=new s(t.jid),this.getBookmarks().then(function(n){var s=n.privateStorage.bookmarks.conferences||[],o=a(s,function(e){return e.jid.bare===t.jid.bare});return o.length?r(o[0],t):s.push(t),e.setBookmarks({conferences:s})}).then(function(e){return n&&n(null,e),e},function(e){if(!n)throw e;n(e)})},e.removeBookmark=function(t,n){return t=new s(t),this.getBookmarks().then(function(n){var r=n.privateStorage.bookmarks.conferences||[];return r=a(r,function(e){return t.bare!==e.jid.bare}),e.setBookmarks({conferences:r})}).then(function(e){n&&n(null,e)},function(e){if(!n)throw e;n(e)})}}},{"lodash.assign":"/stanza.io-8.0.2/node_modules/lodash.assign/index.js","lodash.filter":"/stanza.io-8.0.2/node_modules/lodash.filter/index.js","xmpp-jid":"/stanza.io-8.0.2/node_modules/xmpp-jid/index.js"}],"/stanza.io-8.0.2/lib/plugins/bosh.js":[function(e,t,n){"use strict";var r=e("../transports/bosh");t.exports=function(e){e.transports.bosh=r}},{"../transports/bosh":"/stanza.io-8.0.2/lib/transports/bosh.js"}],"/stanza.io-8.0.2/lib/plugins/carbons.js":[function(e,t,n){"use strict";t.exports=function(e){e.disco.addFeature("urn:xmpp:carbons:2"),e.enableCarbons=function(e){return this.sendIq({type:"set",enableCarbons:!0},e)},e.disableCarbons=function(e){return this.sendIq({type:"set",disableCarbons:!0},e)},e.on("message",function(t){return t.carbonSent?e.emit("carbon:sent",t):t.carbonReceived?e.emit("carbon:received",t):void 0}),e.on("carbon:*",function(t,n){var r=t.split(":")[1];if(n.from.bare===e.jid.bare){var a,s;"received"===r?(a=n.carbonReceived.forwarded.message,s=n.carbonReceived.forwarded.delay):(a=n.carbonSent.forwarded.message,s=n.carbonSent.forwarded.delay),a.delay||(s?a.delay.stamp=s.stamp:a.delay={stamp:new Date(Date.now())}),a.carbon=!0,a.from.bare===e.jid.bare?e.emit("message:sent",a):e.emit("message",a)}})}},{}],"/stanza.io-8.0.2/lib/plugins/chatstates.js":[function(e,t,n){"use strict";t.exports=function(e){e.disco.addFeature("http://jabber.org/protocol/chatstates"),e.on("message",function(t){t.chatState&&(e.emit("chat:state",{to:t.to,from:t.from,chatState:t.chatState}),e.emit("chatState",{to:t.to,from:t.from,chatState:t.chatState}))})}},{}],"/stanza.io-8.0.2/lib/plugins/command.js":[function(e,t,n){"use strict";var r="http://jabber.org/protocol/commands";t.exports=function(e){e.disco.addFeature(r),e.disco.addItem({name:"Ad-Hoc Commands",node:r}),e.getCommands=function(t,n){return e.getDiscoItems(t,r,n)}}},{}],"/stanza.io-8.0.2/lib/plugins/correction.js":[function(e,t,n){"use strict";t.exports=function(e){e.disco.addFeature("urn:xmpp:message-correct:0"),e.on("message",function(t){t.replace&&(e.emit("replace",t),e.emit("replace:"+t.id,t))})}},{}],"/stanza.io-8.0.2/lib/plugins/csi.js":[function(e,t,n){"use strict";t.exports=function(e,t){var n=t.getDefinition("active","urn:xmpp:csi"),r=t.getDefinition("inactive","urn:xmpp:csi");e.registerFeature("clientStateIndication",400,function(e,t){this.features.negotiated.clientStateIndication=!0,t()}),e.markActive=function(){this.features.negotiated.clientStateIndication&&this.send(new n)},e.markInactive=function(){this.features.negotiated.clientStateIndication&&this.send(new r)}}},{}],"/stanza.io-8.0.2/lib/plugins/dataforms.js":[function(e,t,n){"use strict";t.exports=function(e){e.disco.addFeature("jabber:x:data"),e.disco.addFeature("urn:xmpp:media-element"),e.disco.addFeature("http://jabber.org/protocol/xdata-validate"),e.disco.addFeature("http://jabber.org/protocol/xdata-layout"),e.on("message",function(t){t.form&&e.emit("dataform",t)})}},{}],"/stanza.io-8.0.2/lib/plugins/delayed.js":[function(e,t,n){"use strict";t.exports=function(e){e.disco.addFeature("urn:xmpp:delay")}},{}],"/stanza.io-8.0.2/lib/plugins/disco.js":[function(e,t,n){(function(n){"use strict";function generateVerString(e,t){var s="",i=e.features.sort(),c=[],l={},u=[];r(e.identities,function(e){c.push([e.category||"",e.type||"",e.lang||"",e.name||""].join("/"))}),c.sort();var d=c.length,p=i.length;if(c=a(c,!0),i=a(i,!0),p!==i.length||d!==c.length)return!1;s+=c.join("<")+"<",s+=i.join("<")+"<";var f=!1;if(r(e.extensions,function(e){for(var t=e.fields,n=0,r=t.length;n<r;n++)if("FORM_TYPE"===t[n].name&&"hidden"===t[n].type){var a=t[n].value;return l[a]?void(f=!0):(l[a]=e,void u.push(a))}}),f)return!1;u.sort(),r(u,function(e){var t=l[e],n={},a=[];s+="<"+e,r(t.fields,function(e){var t=e.name;if("FORM_TYPE"!==t){var r=e.value||"";"object"!=typeof r&&(r=r.split("\n")),n[t]=r.sort(),a.push(t)}}),a.sort(),r(a,function(e){s+="<"+e,r(n[e],function(e){s+="<"+e})})});var m=o.createHash(t).update(new n(s,"utf8")).digest("base64"),h=4-m.length%4;4===h&&(h=0);for(var b=0;b<h;b++)m+="=";return m}function verifyVerString(e,t,n){var r=generateVerString(e,t);return r&&r===n}function Disco(){this.features={},this.identities={},this.extensions={},this.items={},this.caps={}}var r=e("lodash.foreach"),a=e("lodash.uniq"),s=e("xmpp-jid").JID,o=e("iana-hashes");Disco.prototype={constructor:{value:Disco},addFeature:function(e,t){t=t||"",this.features[t]||(this.features[t]=[]),this.features[t].push(e)},addIdentity:function(e,t){t=t||"",this.identities[t]||(this.identities[t]=[]),this.identities[t].push(e)},addItem:function(e,t){t=t||"",this.items[t]||(this.items[t]=[]),this.items[t].push(e)},addExtension:function(e,t){t=t||"",this.extensions[t]||(this.extensions[t]=[]),this.extensions[t].push(e)}},t.exports=function(e){e.disco=new Disco(e),e.disco.addFeature("http://jabber.org/protocol/disco#info"),e.disco.addFeature("http://jabber.org/protocol/disco#items"),e.disco.addIdentity({category:"client",type:"web"}),e.registerFeature("caps",100,function(t,n){this.emit("disco:caps",{from:new s(e.jid.domain||e.config.server),caps:t.caps}),this.features.negotiated.caps=!0,n()}),e.getDiscoInfo=function(e,t,n){return this.sendIq({to:e,type:"get",discoInfo:{node:t}},n)},e.getDiscoItems=function(e,t,n){return this.sendIq({to:e,type:"get",discoItems:{node:t}},n)},e.updateCaps=function(){var t=this.config.capsNode||"https://stanza.io",n=JSON.parse(JSON.stringify({identities:this.disco.identities[""],features:this.disco.features[""],extensions:this.disco.extensions[""]})),r=generateVerString(n,"sha-1");return this.disco.caps={node:t,hash:"sha-1",ver:r},t=t+"#"+r,this.disco.features[t]=n.features,this.disco.identities[t]=n.identities,this.disco.extensions[t]=n.extensions,e.getCurrentCaps()},e.getCurrentCaps=function(){var t=e.disco.caps;if(!t.ver)return{ver:null,discoInfo:null};var n=t.node+"#"+t.ver;return{ver:t.ver,discoInfo:{identities:e.disco.identities[n],features:e.disco.features[n],extensions:e.disco.extensions[n]}}},e.on("presence",function(t){t.caps&&e.emit("disco:caps",t)}),e.on("iq:get:discoInfo",function(t){var n=t.discoInfo.node||"",r=t.discoInfo.node||"";n===e.disco.caps.node+"#"+e.disco.caps.ver&&(r=n,n=""),e.sendIq(t.resultReply({discoInfo:{node:r,identities:e.disco.identities[n]||[],features:e.disco.features[n]||[],extensions:e.disco.extensions[n]||[]}}))}),e.on("iq:get:discoItems",function(t){var n=t.discoItems.node;e.sendIq(t.resultReply({discoItems:{node:n,items:e.disco.items[n]||[]}}))}),e.verifyVerString=verifyVerString,e.generateVerString=generateVerString,e.updateCaps()}}).call(this,e("buffer").Buffer)},{buffer:"/stanza.io-8.0.2/node_modules/buffer/index.js","iana-hashes":"/stanza.io-8.0.2/node_modules/iana-hashes/index.js","lodash.foreach":"/stanza.io-8.0.2/node_modules/lodash.foreach/index.js","lodash.uniq":"/stanza.io-8.0.2/node_modules/lodash.uniq/index.js","xmpp-jid":"/stanza.io-8.0.2/node_modules/xmpp-jid/index.js"}],"/stanza.io-8.0.2/lib/plugins/escaping.js":[function(e,t,n){"use strict";t.exports=function(e){e.disco.addFeature("jid\\20escaping")}},{}],"/stanza.io-8.0.2/lib/plugins/extdisco.js":[function(e,t,n){"use strict";t.exports=function(e){e.disco.addFeature("urn:xmpp:extdisco:1"),e.getServices=function(e,t,n){return this.sendIq({type:"get",to:e,services:{type:t}},n)},e.getServiceCredentials=function(e,t,n){return this.sendIq({type:"get",to:e,credentials:{service:{host:t}}},n)}}},{}],"/stanza.io-8.0.2/lib/plugins/features.js":[function(e,t,n){"use strict";var r=e("async");t.exports=function(e){e.features={negotiated:{},order:[],handlers:{}},e.registerFeature=function(t,n,r){this.features.order.push({priority:n,name:t}),this.features.order.sort(function(e,t){return e.priority<t.priority?-1:e.priority>t.priority?1:0}),this.features.handlers[t]=r.bind(e)},e.on("streamFeatures",function(t){var n=[],a=e.features.negotiated,s=e.features.handlers;e.features.order.forEach(function(e){var r=e.name;t[r]&&s[r]&&!a[r]&&n.push(function(e){a[r]?e():s[r](t,e)})}),r.series(n,function(t,n){"restart"===t?e.transport.restart():"disconnect"===t&&(e.emit("stream:error",{condition:"policy-violation",text:"Failed to negotiate stream features: "+n}),e.disconnect())})})}},{async:"/stanza.io-8.0.2/node_modules/async/lib/async.js"}],"/stanza.io-8.0.2/lib/plugins/forwarding.js":[function(e,t,n){"use strict";t.exports=function(e){e.disco.addFeature("urn:xmpp:forward:0")}},{}],"/stanza.io-8.0.2/lib/plugins/geoloc.js":[function(e,t,n){"use strict";t.exports=function(e){e.disco.addFeature("http://jabber.org/protocol/geoloc"),e.disco.addFeature("http://jabber.org/protocol/geoloc+notify"),e.on("pubsub:event",function(t){t.event.updated&&"http://jabber.org/protocol/geoloc"===t.event.updated.node&&e.emit("geoloc",{jid:t.from,geoloc:t.event.updated.published[0].geoloc})}),e.publishGeoLoc=function(e,t){return this.publish("","http://jabber.org/protocol/geoloc",{geoloc:e},t)}}},{}],"/stanza.io-8.0.2/lib/plugins/hashes.js":[function(e,t,n){"use strict";var r=e("iana-hashes");t.exports=function(e){e.disco.addFeature("urn:xmpp:hashes:1");var t=r.getHashes();t.forEach(function(t){e.disco.addFeature("urn:xmpp:hash-function-text-names:"+t)})}},{"iana-hashes":"/stanza.io-8.0.2/node_modules/iana-hashes/index.js"}],"/stanza.io-8.0.2/lib/plugins/idle.js":[function(e,t,n){"use strict";t.exports=function(e){e.disco.addFeature("urn:xmpp:idle:1")}},{}],"/stanza.io-8.0.2/lib/plugins/index-browser.js":[function(e,t,n){"use strict";t.exports=function(t){t.use(e("./disco")),t.use(e("./attention")),t.use(e("./avatar")),t.use(e("./blocking")),t.use(e("./bob")),t.use(e("./bookmarks")),t.use(e("./carbons")),t.use(e("./chatstates")),t.use(e("./command")),t.use(e("./correction")),t.use(e("./csi")),t.use(e("./dataforms")),t.use(e("./delayed")),t.use(e("./escaping")),t.use(e("./extdisco")),t.use(e("./forwarding")),t.use(e("./geoloc")),t.use(e("./hashes")),t.use(e("./idle")),t.use(e("./invisible")),t.use(e("./jidprep")),t.use(e("./jingle")),t.use(e("./json")),t.use(e("./keepalive")),t.use(e("./logging")),t.use(e("./mam")),t.use(e("./muc")),t.use(e("./mood")),t.use(e("./nick")),t.use(e("./oob")),t.use(e("./ping")),t.use(e("./private")),t.use(e("./psa")),t.use(e("./pubsub")),t.use(e("./reach")),t.use(e("./receipts")),t.use(e("./register")),t.use(e("./roster")),t.use(e("./rtt")),t.use(e("./shim")),t.use(e("./time")),t.use(e("./vcard")),t.use(e("./version"))}},{"./attention":"/stanza.io-8.0.2/lib/plugins/attention.js","./avatar":"/stanza.io-8.0.2/lib/plugins/avatar.js","./blocking":"/stanza.io-8.0.2/lib/plugins/blocking.js","./bob":"/stanza.io-8.0.2/lib/plugins/bob.js","./bookmarks":"/stanza.io-8.0.2/lib/plugins/bookmarks.js","./carbons":"/stanza.io-8.0.2/lib/plugins/carbons.js","./chatstates":"/stanza.io-8.0.2/lib/plugins/chatstates.js","./command":"/stanza.io-8.0.2/lib/plugins/command.js","./correction":"/stanza.io-8.0.2/lib/plugins/correction.js","./csi":"/stanza.io-8.0.2/lib/plugins/csi.js","./dataforms":"/stanza.io-8.0.2/lib/plugins/dataforms.js","./delayed":"/stanza.io-8.0.2/lib/plugins/delayed.js","./disco":"/stanza.io-8.0.2/lib/plugins/disco.js","./escaping":"/stanza.io-8.0.2/lib/plugins/escaping.js","./extdisco":"/stanza.io-8.0.2/lib/plugins/extdisco.js","./forwarding":"/stanza.io-8.0.2/lib/plugins/forwarding.js","./geoloc":"/stanza.io-8.0.2/lib/plugins/geoloc.js","./hashes":"/stanza.io-8.0.2/lib/plugins/hashes.js","./idle":"/stanza.io-8.0.2/lib/plugins/idle.js","./invisible":"/stanza.io-8.0.2/lib/plugins/invisible.js","./jidprep":"/stanza.io-8.0.2/lib/plugins/jidprep.js","./jingle":"/stanza.io-8.0.2/lib/plugins/jingle.js","./json":"/stanza.io-8.0.2/lib/plugins/json.js","./keepalive":"/stanza.io-8.0.2/lib/plugins/keepalive.js","./logging":"/stanza.io-8.0.2/lib/plugins/logging.js","./mam":"/stanza.io-8.0.2/lib/plugins/mam.js","./mood":"/stanza.io-8.0.2/lib/plugins/mood.js","./muc":"/stanza.io-8.0.2/lib/plugins/muc.js","./nick":"/stanza.io-8.0.2/lib/plugins/nick.js","./oob":"/stanza.io-8.0.2/lib/plugins/oob.js","./ping":"/stanza.io-8.0.2/lib/plugins/ping.js","./private":"/stanza.io-8.0.2/lib/plugins/private.js","./psa":"/stanza.io-8.0.2/lib/plugins/psa.js","./pubsub":"/stanza.io-8.0.2/lib/plugins/pubsub.js","./reach":"/stanza.io-8.0.2/lib/plugins/reach.js","./receipts":"/stanza.io-8.0.2/lib/plugins/receipts.js","./register":"/stanza.io-8.0.2/lib/plugins/register.js","./roster":"/stanza.io-8.0.2/lib/plugins/roster.js","./rtt":"/stanza.io-8.0.2/lib/plugins/rtt.js","./shim":"/stanza.io-8.0.2/lib/plugins/shim.js","./time":"/stanza.io-8.0.2/lib/plugins/time.js","./vcard":"/stanza.io-8.0.2/lib/plugins/vcard.js","./version":"/stanza.io-8.0.2/lib/plugins/version.js"}],"/stanza.io-8.0.2/lib/plugins/invisible.js":[function(e,t,n){"use strict";t.exports=function(e){e.goInvisible=function(e){return this.sendIq({type:"set",invisible:!0},e)},e.goVisible=function(e){return this.sendIq({type:"set",visible:!0},e)}}},{}],"/stanza.io-8.0.2/lib/plugins/jidprep.js":[function(e,t,n){"use strict";t.exports=function(e){e.prepJID=function(t,n){return e.sendIq({to:e.jid.domain,type:"get",jidPrep:t},n)}}},{}],"/stanza.io-8.0.2/lib/plugins/jingle.js":[function(e,t,n){"use strict";var r=e("jingle");t.exports=function(e){var t=e.jingle=new r;t.capabilities.forEach(function(t){e.disco.addFeature(t)});var n=["outgoing","incoming","accepted","terminated","ringing","mute","unmute","hold","resumed"];n.forEach(function(n){t.on(n,function(t,r){e.emit("jingle:"+n,t,r)})}),t.on("createdSession",function(t){e.emit("jingle:created",t)}),t.on("peerStreamAdded",function(t,n){e.emit("jingle:remotestream:added",t,n)}),t.on("peerStreamRemoved",function(t,n){e.emit("jingle:remotestream:removed",t,n)}),t.on("send",function(t){e.sendIq(t,function(t){t&&e.emit("jingle:error",t)})}),e.on("session:bound",function(e){t.jid=e,t.selfID=e.full}),e.on("iq:set:jingle",function(e){t.process(e)}),e.on("unavailable",function(e){var n=e.from.full;t.endPeerSessions(n,!0)}),e.discoverICEServers=function(t){return this.getServices(e.config.server).then(function(t){for(var n=t.services.services,r=[],a=0;a<n.length;a++){var s=n[a],o={};"stun"===s.type||"stuns"===s.type?(o.url=s.type+":"+s.host,s.port&&(o.url+=":"+s.port),r.push(o),e.jingle.addICEServer(o)):"turn"!==s.type&&"turns"!==s.type||(o.url=s.type+":"+s.host,s.port&&(o.url+=":"+s.port),s.transport&&"udp"!==s.transport&&(o.url+="?transport="+s.transport),s.username&&(o.username=s.username),s.password&&(o.credential=s.password),r.push(o),e.jingle.addICEServer(o))}return r}).then(function(e){return t&&t(null,e),e},function(e){if(!t)throw e;t(e)})}}},{jingle:"/stanza.io-8.0.2/node_modules/jingle/index.js"}],"/stanza.io-8.0.2/lib/plugins/json.js":[function(e,t,n){"use strict";t.exports=function(e){e.disco.addFeature("urn:xmpp:json:0")}},{}],"/stanza.io-8.0.2/lib/plugins/keepalive.js":[function(e,t,n){"use strict";function timeoutPromise(e,t){var n;return Promise.race([e,new Promise(function(e,r){n=setTimeout(function(){r()},t)})]).then(function(e){return clearTimeout(n),e})}function checkConnection(e,t){ | |
return timeoutPromise(new Promise(function(t,n){e.sm.started?(e.once("stream:management:ack",t),e.sm.request()):e.ping().then(t).catch(function(e){e.error&&"timeout"!==e.error.condition?t():n()})}),1e3*t||15e3)}t.exports=function(e){e.enableKeepAlive=function(t){function keepalive(){e.sessionStarted&&checkConnection(e,t.timeout).catch(function(){e.emit("stream:error",{condition:"connection-timeout",text:"Server did not respond in "+t.timeout+" seconds"}),e.transport.hasStream=!1,e.transport.disconnect()})}t=t||{},t.interval=t.interval||300,t.timeout=t.timeout||15,e._keepAliveInterval=setInterval(keepalive,1e3*t.interval)},e.disableKeepAlive=function(){e._keepAliveInterval&&(clearInterval(e._keepAliveInterval),delete e._keepAliveInterval)},e.on("disconnected",function(){e.disableKeepAlive()})}},{}],"/stanza.io-8.0.2/lib/plugins/logging.js":[function(e,t,n){"use strict";t.exports=function(e){e.disco.addFeature("","urn:xmpp:eventlog"),e.sendLog=function(t,n){e.sendMessage({to:t,type:"normal",log:n})}}},{}],"/stanza.io-8.0.2/lib/plugins/mam.js":[function(e,t,n){"use strict";function timeoutPromise(e,t,n){var r;return Promise.race([e,new Promise(function(e,a){r=setTimeout(function(){a({id:t,type:"error",error:{condition:"timeout"}})},n)})]).then(function(e){return clearTimeout(r),e})}var r=e("xmpp-jid").JID;t.exports=function(e){e.disco.addFeature("urn:xmpp:mam:0"),e.getHistorySearchForm=function(t,n){return e.sendIq({to:t,type:"get",mam:!0},n)},e.searchHistory=function(t,n){var a=this,s=this.nextId();t=t||{},t.queryid=s;var o=t.jid||t.to||"";delete t.jid,delete t.to,t.form||(t.form={}),t.form.type="submit";var i=t.form.fields=t.form.fields||[],c=["FORM_TYPE","with","start","end"];c.forEach(function(e){if(t[e]||"FORM_TYPE"===e){var n=t[e],r="start"===e||"end"===e;r&&"string"!=typeof n&&(n=n.toISOString()),"FORM_TYPE"===e&&(n="urn:xmpp:mam:0");for(var a=!1,s=0,o=i.length;s<o;s++)i[s].name!==e;a||i.push({name:e,value:n}),delete t[e]}});var l=new r(o||e.jid.bare),u={};u[""]=!0,u[l.full]=!0,u[l.bare]=!0,u[l.domain]=!0,u[e.jid.bare]=!0,u[e.jid.domain]=!0;var d=[];this.on("mam:item:"+s,"session",function(e){u[e.from.full]&&d.push(e.mamItem)});var p=new Promise(function(e){a.once("mam:result:"+s,"session",function(t){u[t.from.full]&&(t.mamResult.items=d,e(t))})}),f=this.sendIq({type:"set",to:o,id:s,mam:t});timeoutPromise(Promise.all([f,p]),s,1e3*a.config.timeout||15e3).then(function(e){var t=e[1];return a.off("mam:item:"+s),a.off("mam:result:"+s),n&&n(null,t),t},function(e){if(a.off("mam:item:"+s),a.off("mam:result:"+s),!n)throw e;n(e)})},e.getHistoryPreferences=function(e){return this.sendIq({type:"get",mamPrefs:!0},e)},e.setHistoryPreferences=function(e,t){return this.sendIq({type:"set",mamPrefs:e},t)},e.on("message",function(t){t.mamItem&&e.emit("mam:item:"+t.mamItem.queryid,t),t.mamResult&&e.emit("mam:result:"+t.mamResult.queryid,t)})}},{"xmpp-jid":"/stanza.io-8.0.2/node_modules/xmpp-jid/index.js"}],"/stanza.io-8.0.2/lib/plugins/mood.js":[function(e,t,n){"use strict";var r="http://jabber.org/protocol/mood";t.exports=function(e){e.disco.addFeature(r),e.disco.addFeature(r+"+notify"),e.on("pubsub:event",function(t){t.event.updated&&t.event.updated.node===r&&e.emit("mood",{jid:t.from,mood:t.event.updated.published[0].mood})}),e.publishMood=function(e,t,n){return this.publish("",r,{mood:{value:e,text:t}},n)}}},{}],"/stanza.io-8.0.2/lib/plugins/muc.js":[function(e,t,n){"use strict";var r=e("lodash.foreach"),a=e("xmpp-jid").JID;t.exports=function(e){function rejoinRooms(){r(e.joinedRooms,function(t,n){e.joinedRooms[n]=!1,e.joinRoom(n,t)})}e.disco.addFeature("http://jabber.org/protocol/muc"),e.disco.addFeature("jabber:x:conference"),e.disco.addFeature("urn:xmpp:hats:0"),e.joinedRooms={},e.on("session:started",rejoinRooms),e.on("stream:management:resumed",rejoinRooms),e.on("message",function(t){t.muc?(t.muc.invite&&e.emit("muc:invite",{from:t.muc.invite.from,room:t.from,reason:t.muc.invite.reason,password:t.muc.password,thread:t.muc.invite.thread,type:"mediated"}),t.muc.destroyed&&e.emit("muc:destroyed",{room:t.from,newRoom:t.muc.destroyed.jid,reason:t.muc.destroyed.reason,password:t.muc.destroyed.password}),t.muc.decline&&e.emit("muc:declined",{room:t.from,from:t.muc.decline.from,reason:t.muc.decline.reason})):t.mucInvite&&e.emit("muc:invite",{from:t.from,room:t.mucInvite.jid,reason:t.mucInvite.reason,password:t.mucInvite.password,thread:t.mucInvite.thread,type:"direct"}),"groupchat"===t.type&&t.subject&&e.emit("muc:subject",t)}),e.on("presence",function(t){if(t.joinMuc&&"error"===t.type)e.emit("muc:error",t);else if(t.muc){var n=t.muc.codes&&t.muc.codes.indexOf("110")>=0;"error"===t.type?e.emit("muc:error",t):"unavailable"===t.type?(e.emit("muc:unavailable",t),n&&(e.emit("muc:leave",t),delete e.joinedRooms[t.from.bare])):(e.emit("muc:available",t),n&&!e.joinedRooms[t.from.bare]&&(e.emit("muc:join",t),e.joinedRooms[t.from.bare]=t.from.resource))}}),e.joinRoom=function(e,t,n){n=n||{},n.to=e+"/"+t,n.caps=this.disco.caps,n.joinMuc=n.joinMuc||{},this.sendPresence(n)},e.leaveRoom=function(e,t,n){n=n||{},n.to=e+"/"+t,n.type="unavailable",this.sendPresence(n)},e.ban=function(t,n,r,a){e.setRoomAffiliation(t,n,"outcast",r,a)},e.kick=function(t,n,r,a){e.setRoomRole(t,n,"none",r,a)},e.invite=function(t,n){e.sendMessage({to:t,muc:{invites:n}})},e.directInvite=function(t,n){n.jid=t,e.sendMessage({to:n.to,mucInvite:n})},e.declineInvite=function(t,n,r){e.sendMessage({to:t,muc:{decline:{to:n,reason:r}}})},e.changeNick=function(t,n){e.sendPresence({to:new a(t).bare+"/"+n})},e.setSubject=function(t,n){e.sendMessage({to:t,type:"groupchat",subject:n})},e.discoverReservedNick=function(t,n){e.getDiscoInfo(t,"x-roomuser-item",function(e,t){if(e)return n(e);var r=t.discoInfo.identities[0]||{};n(null,r.name)})},e.requestRoomVoice=function(t){e.sendMessage({to:t,form:{fields:[{name:"FORM_TYPE",value:"http://jabber.org/protocol/muc#request"},{name:"muc#role",type:"text-single",value:"participant"}]}})},e.setRoomAffiliation=function(e,t,n,r,a){return this.sendIq({type:"set",to:e,mucAdmin:{jid:t,affiliation:n,reason:r}},a)},e.setRoomRole=function(e,t,n,r,a){return this.sendIq({type:"set",to:e,mucAdmin:{nick:t,role:n,reason:r}},a)},e.getRoomMembers=function(e,t,n){return this.sendIq({type:"get",to:e,mucAdmin:t},n)},e.getRoomConfig=function(e,t){return this.sendIq({to:e,type:"get",mucOwner:!0},t)},e.configureRoom=function(e,t,n){return t.type||(t.type="submit"),this.sendIq({to:e,type:"set",mucOwner:{form:t}},n)},e.destroyRoom=function(e,t,n){return this.sendIq({to:e,type:"set",mucOwner:{destroy:t}},n)},e.getUniqueRoomName=function(e,t){return this.sendIq({type:"get",to:e,mucUnique:!0},t)}}},{"lodash.foreach":"/stanza.io-8.0.2/node_modules/lodash.foreach/index.js","xmpp-jid":"/stanza.io-8.0.2/node_modules/xmpp-jid/index.js"}],"/stanza.io-8.0.2/lib/plugins/nick.js":[function(e,t,n){"use strict";var r="http://jabber.org/protocol/nick";t.exports=function(e){e.disco.addFeature(r),e.disco.addFeature(r+"+notify"),e.on("pubsub:event",function(t){t.event.updated&&t.event.updated.node===r&&e.emit("nick",{jid:t.from,nick:t.event.updated.published[0].nick})}),e.publishNick=function(e,t){return this.publish("",r,{nick:e},t)}}},{}],"/stanza.io-8.0.2/lib/plugins/oldwebsocket.js":[function(e,t,n){"use strict";var r=e("../transports/old-websocket");t.exports=function(e){e.transports["old-websocket"]=r}},{"../transports/old-websocket":"/stanza.io-8.0.2/lib/transports/old-websocket.js"}],"/stanza.io-8.0.2/lib/plugins/oob.js":[function(e,t,n){"use strict";t.exports=function(e){e.disco.addFeature("jabber:x:oob")}},{}],"/stanza.io-8.0.2/lib/plugins/ping.js":[function(e,t,n){"use strict";t.exports=function(e){e.disco.addFeature("urn:xmpp:ping"),e.on("iq:get:ping",function(t){e.sendIq(t.resultReply())}),e.ping=function(e,t){return this.sendIq({to:e,type:"get",ping:!0},t)}}},{}],"/stanza.io-8.0.2/lib/plugins/private.js":[function(e,t,n){"use strict";t.exports=function(e){e.getPrivateData=function(e,t){return this.sendIq({type:"get",privateStorage:e},t)},e.setPrivateData=function(e,t){return this.sendIq({type:"set",privateStorage:e},t)}}},{}],"/stanza.io-8.0.2/lib/plugins/psa.js":[function(e,t,n){"use strict";t.exports=function(e){e.disco.addFeature("urn:xmpp:psa")}},{}],"/stanza.io-8.0.2/lib/plugins/pubsub.js":[function(e,t,n){"use strict";t.exports=function(e){e.on("message",function(t){if(t.event){if(e.emit("pubsub:event",t),e.emit("pubsubEvent",t),t.event.updated){var n=t.event.updated.published,r=t.event.updated.retracted;n&&n.length&&e.emit("pubsub:published",t),r&&r.length&&e.emit("pubsub:retracted",t)}t.event.purged&&e.emit("pubsub:purged",t),t.event.deleted&&e.emit("pubsub:deleted",t),t.event.subscriptionChanged&&e.emit("pubsub:subscription",t),t.event.configurationChanged&&e.emit("pubsub:config",t)}t.pubsub&&t.pubsub.affiliations&&e.emit("pubsub:affiliation",t)}),e.subscribeToNode=function(t,n,r){return"string"==typeof n&&(n={node:n}),n.jid=n.jid||e.jid,this.sendIq({type:"set",to:t,pubsub:{subscribe:n}},r)},e.unsubscribeFromNode=function(t,n,r){return"string"==typeof n&&(n={node:n}),n.jid=n.jid||e.jid.bare,this.sendIq({type:"set",to:t,pubsub:{unsubscribe:n}},r)},e.publish=function(e,t,n,r){return this.sendIq({type:"set",to:e,pubsub:{publish:{node:t,item:n}}},r)},e.getItem=function(e,t,n,r){return this.sendIq({type:"get",to:e,pubsub:{retrieve:{node:t,item:n}}},r)},e.getItems=function(e,t,n,r){return n=n||{},n.node=t,this.sendIq({type:"get",to:e,pubsub:{retrieve:{node:t,max:n.max},rsm:n.rsm}},r)},e.retract=function(e,t,n,r,a){return this.sendIq({type:"set",to:e,pubsub:{retract:{node:t,notify:r,id:n}}},a)},e.purgeNode=function(e,t,n){return this.sendIq({type:"set",to:e,pubsubOwner:{purge:t}},n)},e.deleteNode=function(e,t,n){return this.sendIq({type:"set",to:e,pubsubOwner:{del:t}},n)},e.createNode=function(e,t,n,r){var a={type:"set",to:e,pubsub:{create:t}};return n&&(a.pubsub.config={form:n}),this.sendIq(a,r)},e.getSubscriptions=function(e,t,n){return t=t||{},this.sendIq({type:"get",to:e,pubsub:{subscriptions:t}},n)},e.getAffiliations=function(e,t,n){return t=t||{},this.sendIq({type:"get",to:e,pubsub:{affiliations:t}},n)},e.getNodeSubscribers=function(e,t,n,r){return n=n||{},n.node=t,this.sendIq({type:"get",to:e,pubsubOwner:{subscriptions:n}},r)},e.updateNodeSubscriptions=function(e,t,n,r){return this.sendIq({type:"set",to:e,pubsubOwner:{subscriptions:{node:t,list:n}}},r)},e.getNodeAffiliations=function(e,t,n,r){return n=n||{},n.node=t,this.sendIq({type:"get",to:e,pubsubOwner:{affiliations:n}},r)},e.updateNodeAffiliations=function(e,t,n,r){return this.sendIq({type:"set",to:e,pubsubOwner:{affiliations:{node:t,list:n}}},r)}}},{}],"/stanza.io-8.0.2/lib/plugins/reach.js":[function(e,t,n){"use strict";t.exports=function(e){e.disco.addFeature("urn:xmpp:reach:0"),e.disco.addFeature("urn:xmpp:reach:0+notify"),e.on("pubsub:event",function(t){t.event.updated&&"urn:xmpp:reach:0"===t.event.updated.node&&e.emit("reachability",{jid:t.from,addresses:t.event.updated.published[0].reach})}),e.on("presence",function(t){t.reach&&t.reach.length&&e.emit("reachability",{jid:t.from,addresses:t.reach})}),e.publishReachability=function(e,t){return this.publish("","urn:xmpp:reach:0",{reach:e},t)}}},{}],"/stanza.io-8.0.2/lib/plugins/receipts.js":[function(e,t,n){"use strict";t.exports=function(e){e.disco.addFeature("urn:xmpp:receipts"),e.on("message",function(t){var n={normal:!0,chat:!0,headline:!0};n[t.type]&&t.requestReceipt&&!t.receipt&&e.sendMessage({to:t.from,type:t.type,receipt:t.id,id:t.id}),t.receipt&&(e.emit("receipt",t),e.emit("receipt:"+t.receipt))})}},{}],"/stanza.io-8.0.2/lib/plugins/register.js":[function(e,t,n){"use strict";t.exports=function(e){e.getAccountInfo=function(e,t){return this.sendIq({type:"get",to:e,register:!0},t)},e.updateAccount=function(e,t,n){return this.sendIq({type:"set",to:e,register:t},n)},e.deleteAccount=function(e,t){return this.sendIq({type:"set",to:e,register:{remove:!0}},t)}}},{}],"/stanza.io-8.0.2/lib/plugins/roster.js":[function(e,t,n){"use strict";t.exports=function(e){e.on("iq:set:roster",function(t){var n={};return n[""]=!0,n[e.jid.bare]=!0,n[e.jid.domain]=!0,n[t.from.full]?(e.emit("roster:update",t),void e.sendIq({id:t.id,type:"result"})):e.sendIq(t.errorReply({error:{type:"cancel",condition:"service-unavailable"}}))}),e.getRoster=function(t){var n=this;return t=t||function(){},e.sendIq({type:"get",roster:{ver:n.config.rosterVer}}).then(function(e){if(e.roster){var t=e.roster.ver;t&&(n.config.rosterVer=t,n.emit("roster:ver",t))}return e}).then(function(e){return t&&t(null,e),e},function(e){if(!t)throw e;t(e)})},e.updateRosterItem=function(t,n){return e.sendIq({type:"set",roster:{items:[t]}},n)},e.removeRosterItem=function(t,n){return e.updateRosterItem({jid:t,subscription:"remove"},n)},e.subscribe=function(t){e.sendPresence({type:"subscribe",to:t})},e.unsubscribe=function(t){e.sendPresence({type:"unsubscribe",to:t})},e.acceptSubscription=function(t){e.sendPresence({type:"subscribed",to:t})},e.denySubscription=function(t){e.sendPresence({type:"unsubscribed",to:t})}}},{}],"/stanza.io-8.0.2/lib/plugins/rtt.js":[function(e,t,n){"use strict";t.exports=function(e){e.disco.addFeature("urn:xmpp:rtt:0"),e.on("message",function(t){t.rtt&&(e.emit("rtt",t),e.emit("rtt:"+t.rtt.event,t))})}},{}],"/stanza.io-8.0.2/lib/plugins/sasl.js":[function(e,t,n){(function(e){"use strict";var n="urn:ietf:params:xml:ns:xmpp-sasl";t.exports=function(t,r){var a=r.getDefinition("auth",n),s=r.getDefinition("response",n),o=r.getDefinition("abort",n);t.registerFeature("sasl",100,function(t,n){var r=this,i=r.SASLFactory.create(t.sasl.mechanisms);if(!i)return r.releaseGroup("sasl"),r.emit("auth:failed"),n("disconnect","authentication failed");r.on("sasl:success","sasl",function(){r.features.negotiated.sasl=!0,r.releaseGroup("sasl"),r.emit("auth:success",r.config.credentials),n("restart")}),r.on("sasl:challenge","sasl",function(t){return i.challenge(new e(t.value,"base64").toString()),r.getCredentials(function(t,n){if(t)return r.send(new o);var a=i.response(n);a||""===a?r.send(new s({value:new e(a).toString("base64")})):r.send(new s),i.cache&&(Object.keys(i.cache).forEach(function(t){i.cache[t]&&(r.config.credentials[t]=new e(i.cache[t]))}),r.emit("credentials:update",r.config.credentials))})}),r.on("sasl:failure","sasl",function(){r.releaseGroup("sasl"),r.emit("auth:failed"),n("disconnect","authentication failed")}),r.on("sasl:abort","sasl",function(){r.releaseGroup("sasl"),r.emit("auth:failed"),n("disconnect","authentication failed")});var c={mechanism:i.name};return i.clientFirst?r.getCredentials(function(t,n){return t?r.send(new o):(c.value=new e(i.response(n)).toString("base64"),void r.send(new a(c)))}):void r.send(new a(c))}),t.on("disconnected",function(){t.features.negotiated.sasl=!1})}}).call(this,e("buffer").Buffer)},{buffer:"/stanza.io-8.0.2/node_modules/buffer/index.js"}],"/stanza.io-8.0.2/lib/plugins/session.js":[function(e,t,n){"use strict";t.exports=function(e){e.registerFeature("session",1e3,function(e,t){var n=this;return e.session.optional||n.sessionStarted?(n.features.negotiated.session=!0,t()):void n.sendIq({type:"set",session:{}},function(e){return e?t("disconnect","session request failed"):(n.features.negotiated.session=!0,n.sessionStarted||(n.sessionStarted=!0,n.emit("session:started",n.jid)),void t())})}),e.on("disconnected",function(){e.sessionStarted=!1,e.features.negotiated.session=!1})}},{}],"/stanza.io-8.0.2/lib/plugins/shim.js":[function(e,t,n){"use strict";var r="http://jabber.org/protocol/shim";t.exports=function(e){e.disco.addFeature(r),e.disco.addFeature(r+"#SubID",r)}},{}],"/stanza.io-8.0.2/lib/plugins/smacks.js":[function(e,t,n){"use strict";t.exports=function(e,t,n){var r=function(e,t){var r=this;return n.useStreamManagement?(r.on("stream:management:enabled","sm",function(e){r.sm.enabled(e),r.features.negotiated.streamManagement=!0,r.releaseGroup("sm"),t()}),r.on("stream:management:resumed","sm",function(e){r.sm.resumed(e),r.features.negotiated.streamManagement=!0,r.features.negotiated.bind=!0,r.sessionStarted=!0,r.releaseGroup("sm"),t("break")}),r.on("stream:management:failed","sm",function(){r.sm.failed(),r.emit("session:end"),r.releaseGroup("session"),r.releaseGroup("sm"),t()}),void(r.sm.id?r.sm.id&&r.sm.allowResume?r.sm.resume():(r.releaseGroup("sm"),t()):r.features.negotiated.bind?r.sm.enable():(r.releaseGroup("sm"),t()))):t()};e.on("disconnected",function(){e.features.negotiated.streamManagement=!1}),e.registerFeature("streamManagement",200,r),e.registerFeature("streamManagement",500,r)}},{}],"/stanza.io-8.0.2/lib/plugins/time.js":[function(e,t,n){"use strict";t.exports=function(e){e.disco.addFeature("urn:xmpp:time"),e.getTime=function(e,t){return this.sendIq({to:e,type:"get",time:!0},t)},e.on("iq:get:time",function(t){var n=new Date;e.sendIq(t.resultReply({time:{utc:n,tzo:n.getTimezoneOffset()}}))})}},{}],"/stanza.io-8.0.2/lib/plugins/vcard.js":[function(e,t,n){"use strict";t.exports=function(e){e.disco.addFeature("vcard-temp"),e.getVCard=function(e,t){return this.sendIq({to:e,type:"get",vCardTemp:!0},t)},e.publishVCard=function(e,t){return this.sendIq({type:"set",vCardTemp:e},t)}}},{}],"/stanza.io-8.0.2/lib/plugins/version.js":[function(e,t,n){"use strict";t.exports=function(e){e.disco.addFeature("jabber:iq:version"),e.on("iq:get:version",function(t){e.sendIq(t.resultReply({version:e.config.softwareVersion||{name:"stanza.io"}}))}),e.getSoftwareVersion=function(e,t){return this.sendIq({to:e,type:"get",version:!0},t)}}},{}],"/stanza.io-8.0.2/lib/plugins/websocket.js":[function(e,t,n){"use strict";var r=e("../transports/websocket");t.exports=function(e){e.transports.websocket=r}},{"../transports/websocket":"/stanza.io-8.0.2/lib/transports/websocket.js"}],"/stanza.io-8.0.2/lib/sm.js":[function(e,t,n){"use strict";function mod(e,t){return(e%t+t)%t}function StreamManagement(e){this.client=e,this.id=!1,this.allowResume=!0,this.started=!1,this.inboundStarted=!1,this.outboundStarted=!1,this.lastAck=0,this.handled=0,this.windowSize=1,this.unacked=[],this.pendingAck=!1;var t="urn:xmpp:sm:3";this.stanzas={Enable:e.stanzas.getDefinition("enable",t),Resume:e.stanzas.getDefinition("resume",t),Ack:e.stanzas.getDefinition("a",t),Request:e.stanzas.getDefinition("r",t)}}var r=Math.pow(2,32);StreamManagement.prototype={constructor:{value:StreamManagement},enable:function(){var e=new this.stanzas.Enable;e.resume=this.allowResume,this.client.send(e),this.handled=0,this.outboundStarted=!0},resume:function(){var e=new this.stanzas.Resume({h:this.handled,previd:this.id});this.client.send(e),this.outboundStarted=!0},enabled:function(e){this.id=e.id,this.handled=0,this.inboundStarted=!0},resumed:function(e){this.id=e.previd,e.h&&this.process(e,!0),this.inboundStarted=!0},failed:function(){this.inboundStarted=!1,this.outboundStarted=!1,this.id=!1,this.lastAck=0,this.handled=0,this.unacked=[]},ack:function(){this.client.send(new this.stanzas.Ack({h:this.handled}))},request:function(){this.pendingAck=!0,this.client.send(new this.stanzas.Request)},process:function(e,t){var n=this,a=mod(e.h-this.lastAck,r);this.pendingAck=!1;for(var s=0;s<a&&this.unacked.length>0;s++)this.client.emit("stanza:acked",this.unacked.shift());if(this.lastAck=e.h,t){var o=this.unacked;this.unacked=[],o.forEach(function(e){n.client.send(e)})}this.needAck()&&this.request()},track:function(e){var t=e._name,n={message:!0,presence:!0,iq:!0};this.outboundStarted&&n[t]&&(this.unacked.push(e),this.needAck()&&this.request())},handle:function(){this.inboundStarted&&(this.handled=mod(this.handled+1,r))},needAck:function(){return!this.pendingAck&&this.unacked.length>=this.windowSize}},Object.defineProperties(StreamManagement.prototype,{started:{get:function(){return this.outboundStarted&&this.inboundStarted},set:function(e){e||(this.outboundStarted=!1,this.inboundStarted=!1)}}}),t.exports=StreamManagement},{}],"/stanza.io-8.0.2/lib/transports/bosh.js":[function(e,t,n){(function(n,r){"use strict";function timeoutPromise(e,t){var n;return Promise.race([e,new Promise(function(e,r){n=setTimeout(function(){r()},t)})]).then(function(e){return clearTimeout(n),e})}function delayPromise(e){return new Promise(function(t){setTimeout(function(){t()},e)})}function makeRequest(e){return new Promise(function(t,n){i(e,function(e,r,a){return e?n(e):t([r,a])})})}function retryRequest(e,t,n){return timeoutPromise(makeRequest(e),1e3*(t||20)).then(function(e){var t=e[0],n=e[1];if(t.statusCode<200||t.statusCode>=400)throw new Error("HTTP Status Error"+t.statusCode);return n}).catch(function(){if(n>0)return delayPromise(1e3).then(function(){return retryRequest(e,t,n-1)});throw new Error("Dead Connection, exceeded retry limit")})}function BOSHConnection(e,t){var n=this;c.call(this),n.sm=e,n.stanzas={BOSH:t.getDefinition("body","http://jabber.org/protocol/httpbind"),StreamError:t.getStreamError()},n.sendQueue=[],n.requests=[],n.maxRequests=void 0,n.sid="",n.on("raw:incoming",function(e){if(e=e.trim(),""!==e){var r,a;try{r=t.parse(e,n.stanzas.BOSH)}catch(e){return a=new n.stanzas.StreamError({condition:"invalid-xml"}),n.emit("stream:error",a,e),n.send(a),n.disconnect()}n.hasStream||(n.hasStream=!0,n.stream={id:r.sid||n.sid,lang:r.lang||"en",version:r.version||"1.0",to:r.to,from:r.from},n.sid=r.sid||n.sid,n.maxRequests=r.requests||n.maxRequests);var s=r.payload;s.forEach(function(e){e.lang||(e.lang=n.stream.lang),n.emit("stream:data",e)}),"terminate"===r.type&&(n.rid=void 0,n.sid=void 0,n.emit("bosh:terminate",r),n.emit("stream:end"),n.emit("disconnected",n))}})}var a=e("lodash.assign"),s=e("lodash.filter"),o=e("util"),i=e("request"),c=e("wildemitter");o.inherits(BOSHConnection,c),BOSHConnection.prototype.connect=function(e){var t=this;t.config=a({rid:Math.ceil(9999999999*Math.random()),wait:30,maxRetries:5},e),t.hasStream=!1,t.sm.started=!1,t.url=e.boshURL,t.sid=t.config.sid,t.rid=t.config.rid,t.requests=[],t.rid++,t.request(new t.stanzas.BOSH({version:t.config.version||"1.0",to:t.config.server,lang:t.config.lang||"en",wait:t.config.wait,ver:"1.6",hold:1}))},BOSHConnection.prototype.disconnect=function(){this.hasStream?(this.rid++,this.request(new this.stanzas.BOSH({type:"terminate"}))):(this.stream=void 0,this.sid=void 0,this.rid=void 0,this.emit("disconnected",this))},BOSHConnection.prototype.restart=function(){var e=this;e.rid++,e.request(new e.stanzas.BOSH({to:e.config.server,lang:e.config.lang||"en",restart:"true"}))},BOSHConnection.prototype.send=function(e){var t=this;t.hasStream&&(t.sendQueue.push(e),n.nextTick(t.longPoll.bind(t)))},BOSHConnection.prototype.longPoll=function(){var e=!this.maxRequests||this.requests.length<this.maxRequests,t=!this.maxRequests||this.sendQueue.length>0&&this.requests.length<this.maxRequests;if(this.sid&&(e||t)){var n=this.sendQueue;this.sendQueue=[],this.rid++,this.request(new this.stanzas.BOSH({payload:n}))}},BOSHConnection.prototype.request=function(e){var t=this,a={id:t.rid,request:null};e.rid=t.rid,e.sid=t.sid;var o=new r(e.toString(),"utf8").toString();t.emit("raw:outgoing",o),t.requests.push(a);var i=retryRequest({uri:t.url,body:o,method:"POST",strictSSL:!0},1.5*t.config.wait,this.config.maxRetries).catch(function(e){t.hasStream=!1;var n=new t.stanzas.StreamError({condition:"connection-timeout"});t.emit("stream:error",n,e),t.disconnect()});return a.request=i,i.then(function(e){t.emit("raw:incoming",new r(e,"utf8").toString())}),i.then(function(){t.requests=s(t.requests,function(e){return e.id!==a.id}),"terminate"===e.type||t.requests.length||n.nextTick(function(){n.nextTick(t.longPoll.bind(t))})})},t.exports=BOSHConnection}).call(this,e("_process"),e("buffer").Buffer)},{_process:"/stanza.io-8.0.2/node_modules/browserify/node_modules/process/browser.js",buffer:"/stanza.io-8.0.2/node_modules/buffer/index.js","lodash.assign":"/stanza.io-8.0.2/node_modules/lodash.assign/index.js","lodash.filter":"/stanza.io-8.0.2/node_modules/lodash.filter/index.js",request:"/stanza.io-8.0.2/node_modules/xhr/index.js",util:"/stanza.io-8.0.2/node_modules/util/util.js",wildemitter:"/stanza.io-8.0.2/node_modules/wildemitter/wildemitter.js"}],"/stanza.io-8.0.2/lib/transports/old-websocket.js":[function(e,t,n){"use strict";function OldWSConnection(e,t){function wrap(e){return[n.streamStart,e,n.streamEnd].join("")}a.call(this,e,t);var n=this;n.on("connected",function(){n.streamStart='<stream:stream xmlns:stream="http://etherx.jabber.org/streams">',n.streamEnd="</stream:stream>"}),n.off("raw:incoming"),n.on("raw:incoming",function(e){var a,s,o;if(e=e.trim(),e=e.replace(/^(\s*<\?.*\?>\s*)*/,""),""!==e){if(e.match(n.streamEnd))return n.disconnect();if(n.hasStream)try{a=t.parse(wrap(e))}catch(e){return o=new this.stanzas.StreamError({condition:"invalid-xml"}),n.emit("stream:error",o,e),n.send(o),n.disconnect()}else{var i=e.match(/^<(\S+:)?(\S+) /);n.streamStart=e,n.streamEnd="</"+(i[1]||"")+i[2]+">",s=!1;try{a=t.parse(e+n.streamEnd)}catch(r){try{a=t.parse(e),s=!0}catch(e){return o=new this.stanzas.StreamError({condition:"invalid-xml"}),n.emit("stream:error",o,e),n.send(o),n.disconnect()}}n.hasStream=!0,n.stream=a,n.emit("stream:start",a)}r(a._extensions,function(e){!e.lang&&n.stream&&(e.lang=n.stream.lang),n.emit("stream:data",e)}),s&&n.emit("stream:end")}})}var r=e("lodash.foreach"),a=e("./websocket"),s=e("util");s.inherits(OldWSConnection,a),OldWSConnection.prototype.startHeader=function(){return["<stream:stream",'xmlns:stream="http://etherx.jabber.org/streams"','xmlns="jabber:client"','version="'+(this.config.version||"1.0")+'"','xml:lang="'+(this.config.lang||"en")+'"','to="'+this.config.server+'">'].join(" ")},OldWSConnection.prototype.closeHeader=function(){return"</stream:stream>"},t.exports=OldWSConnection},{"./websocket":"/stanza.io-8.0.2/lib/transports/websocket.js","lodash.foreach":"/stanza.io-8.0.2/node_modules/lodash.foreach/index.js",util:"/stanza.io-8.0.2/node_modules/util/util.js"}],"/stanza.io-8.0.2/lib/transports/websocket.js":[function(e,t,n){(function(n){"use strict";function WSConnection(e,t){var r=this;a.call(this),r.sm=e,r.closing=!1,r.stanzas={Open:t.getDefinition("open","urn:ietf:params:xml:ns:xmpp-framing",!0),Close:t.getDefinition("close","urn:ietf:params:xml:ns:xmpp-framing",!0),StreamError:t.getStreamError()},r.sendQueue=s.queue(function(e,t){r.conn&&("string"!=typeof e&&(e=e.toString()),e=new n(e,"utf8").toString(),r.emit("raw:outgoing",e),r.conn.readyState===i&&r.conn.send(e)),t()},1),r.on("connected",function(){r.send(r.startHeader())}),r.on("raw:incoming",function(e){var n,a;if(e=e.trim(),""!==e){try{n=t.parse(e)}catch(e){return a=new r.stanzas.StreamError({condition:"invalid-xml"}),r.emit("stream:error",a,e),r.send(a),r.disconnect()}if("openStream"===n._name)return r.hasStream=!0,r.stream=n,r.emit("stream:start",n.toJSON());if("closeStream"===n._name)return r.emit("stream:end"),r.disconnect();!n.lang&&r.stream&&(n.lang=r.stream.lang),r.emit("stream:data",n)}})}var r=e("util"),a=e("wildemitter"),s=e("async"),o=e("faye-websocket")&&e("faye-websocket").Client?e("faye-websocket").Client:window.WebSocket,i=1;r.inherits(WSConnection,a),WSConnection.prototype.connect=function(e){var t=this;t.config=e,t.hasStream=!1,t.closing=!1,t.conn=new o(e.wsURL,"xmpp"),t.conn.onerror=function(e){e.preventDefault(),t.emit("disconnected",t)},t.conn.onclose=function(){t.emit("disconnected",t)},t.conn.onopen=function(){t.sm.started=!1,t.emit("connected",t)},t.conn.onmessage=function(e){t.emit("raw:incoming",new n(e.data,"utf8").toString())}},WSConnection.prototype.startHeader=function(){return new this.stanzas.Open({version:this.config.version||"1.0",lang:this.config.lang||"en",to:this.config.server})},WSConnection.prototype.closeHeader=function(){return new this.stanzas.Close},WSConnection.prototype.disconnect=function(){this.conn&&!this.closing&&this.hasStream?(this.closing=!0,this.send(this.closeHeader())):(this.hasStream=!1,this.stream=void 0,this.conn.readyState===i&&this.conn.close(),this.conn=void 0)},WSConnection.prototype.restart=function(){var e=this;e.hasStream=!1,e.send(this.startHeader())},WSConnection.prototype.send=function(e){this.sendQueue.push(e)},t.exports=WSConnection}).call(this,e("buffer").Buffer)},{async:"/stanza.io-8.0.2/node_modules/async/lib/async.js",buffer:"/stanza.io-8.0.2/node_modules/buffer/index.js","faye-websocket":"/stanza.io-8.0.2/node_modules/browser-resolve/empty.js",util:"/stanza.io-8.0.2/node_modules/util/util.js",wildemitter:"/stanza.io-8.0.2/node_modules/wildemitter/wildemitter.js"}],"/stanza.io-8.0.2/node_modules/alt-sasl-digest-md5/index.js":[function(e,t,n){function parse(e){for(var t={},n=e.split(/,(?=(?:[^"]|"[^"]*")*$)/),r=0,a=n.length;r<a;r++){var s=/(\w+)=["]?([^"]+)["]?$/.exec(n[r]);s&&(t[s[1]]=s[2])}return t}function genNonce(){return r(16).toString("hex")}function Mechanism(e){e=e||{},this._genNonce=e.genNonce||genNonce}var r=e("randombytes"),a=e("create-hash");Mechanism.Mechanism=Mechanism,Mechanism.prototype.name="DIGEST-MD5",Mechanism.prototype.clientFirst=!1,Mechanism.prototype.response=function(e){if(!this._completed){var t=e.serviceType+"/"+e.host;e.serviceName&&e.host!==e.serviceName&&(t+="/"+e.serviceName);var n=e.realm||this._realm||"",r=this._genNonce(),s="00000001",o="auth",i="";i+='username="'+e.username+'"',n&&(i+=',realm="'+n+'"'),i+=',nonce="'+this._nonce+'"',i+=',cnonce="'+r+'"',i+=",nc="+s,i+=",qop="+o,i+=',digest-uri="'+t+'"';var c=a("md5").update(e.username).update(":").update(n).update(":").update(e.password).digest(),l=a("md5").update(c).update(":").update(this._nonce).update(":").update(r);e.authzid&&l.update(":").update(e.authzid),l=l.digest("hex");var u=a("md5").update("AUTHENTICATE:").update(t);"auth-int"!==o&&"auth-conf"!==o||u.update(":00000000000000000000000000000000"),u=u.digest("hex");var d=a("md5").update(l).update(":").update(this._nonce).update(":").update(s).update(":").update(r).update(":").update(o).update(":").update(u).digest("hex");return i+=",response="+d,"utf-8"===this._charset&&(i+=",charset=utf-8"),e.authzid&&(i+='authzid="'+e.authzid+'"'),i}},Mechanism.prototype.challenge=function(e){var t=parse(e);return this._completed=!!t.rspauth,this._realm=t.realm,this._nonce=t.nonce,this._qop=(t.qop||"auth").split(","),this._stale=t.stale,this._maxbuf=parseInt(t.maxbuf)||65536,this._charset=t.charset,this._algo=t.algorithm,this._cipher=t.cipher,this._cipher&&this._cipher.split(","),this},t.exports=Mechanism},{"create-hash":"/stanza.io-8.0.2/node_modules/create-hash/browser.js",randombytes:"/stanza.io-8.0.2/node_modules/randombytes/browser.js" | |
}],"/stanza.io-8.0.2/node_modules/async/lib/async.js":[function(t,n,r){(function(t,r){!function(){function noop(){}function identity(e){return e}function toBool(e){return!!e}function notId(e){return!e}function only_once(e){return function(){if(null===e)throw new Error("Callback was already called.");e.apply(this,arguments),e=null}}function _once(e){return function(){null!==e&&(e.apply(this,arguments),e=null)}}function _isArrayLike(e){return c(e)||"number"==typeof e.length&&e.length>=0&&e.length%1===0}function _arrayEach(e,t){for(var n=-1,r=e.length;++n<r;)t(e[n],n,e)}function _map(e,t){for(var n=-1,r=e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}function _range(e){return _map(Array(e),function(e,t){return t})}function _reduce(e,t,n){return _arrayEach(e,function(e,r,a){n=t(n,e,r,a)}),n}function _forEachOf(e,t){_arrayEach(u(e),function(n){t(e[n],n)})}function _indexOf(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}function _keyIterator(e){var t,n,r=-1;return _isArrayLike(e)?(t=e.length,function next(){return r++,r<t?r:null}):(n=u(e),t=n.length,function next(){return r++,r<t?n[r]:null})}function _restParam(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),a=0;a<n;a++)r[a]=arguments[a+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r)}}}function _withoutIndex(e){return function(t,n,r){return e(t,r)}}function _eachOfLimit(e){return function(t,n,r){r=_once(r||noop),t=t||[];var a=_keyIterator(t);if(e<=0)return r(null);var s=!1,o=0,i=!1;!function replenish(){if(s&&o<=0)return r(null);for(;o<e&&!i;){var c=a();if(null===c)return s=!0,void(o<=0&&r(null));o+=1,n(t[c],c,only_once(function(e){o-=1,e?(r(e),i=!0):replenish()}))}}()}}function doParallel(e){return function(t,n,r){return e(s.eachOf,t,n,r)}}function doParallelLimit(e){return function(t,n,r,a){return e(_eachOfLimit(n),t,r,a)}}function doSeries(e){return function(t,n,r){return e(s.eachOfSeries,t,n,r)}}function _asyncMap(e,t,n,r){r=_once(r||noop),t=t||[];var a=_isArrayLike(t)?[]:{};e(t,function(e,t,r){n(e,function(e,n){a[t]=n,r(e)})},function(e){r(e,a)})}function _filter(e,t,n,r){var a=[];e(t,function(e,t,r){n(e,function(n){n&&a.push({index:t,value:e}),r()})},function(){r(_map(a.sort(function(e,t){return e.index-t.index}),function(e){return e.value}))})}function _reject(e,t,n,r){_filter(e,t,function(e,t){n(e,function(e){t(!e)})},r)}function _createTester(e,t,n){return function(r,a,s,o){function done(){o&&o(n(!1,void 0))}function iteratee(e,r,a){return o?void s(e,function(r){o&&t(r)&&(o(n(!0,e)),o=s=!1),a()}):a()}arguments.length>3?e(r,a,iteratee,done):(o=s,s=a,e(r,iteratee,done))}}function _findGetResult(e,t){return t}function _parallel(e,t,n){n=n||noop;var r=_isArrayLike(t)?[]:{};e(t,function(e,t,n){e(_restParam(function(e,a){a.length<=1&&(a=a[0]),r[t]=a,n(e)}))},function(e){n(e,r)})}function _concat(e,t,n,r){var a=[];e(t,function(e,t,r){n(e,function(e,t){a=a.concat(t||[]),r(e)})},function(e){r(e,a)})}function _queue(e,t,n){function _insert(e,t,n,r){if(null!=r&&"function"!=typeof r)throw new Error("task callback must be a function");return e.started=!0,c(t)||(t=[t]),0===t.length&&e.idle()?s.setImmediate(function(){e.drain()}):(_arrayEach(t,function(t){var a={data:t,callback:r||noop};n?e.tasks.unshift(a):e.tasks.push(a),e.tasks.length===e.concurrency&&e.saturated()}),void s.setImmediate(e.process))}function _next(e,t){return function(){r-=1;var n=!1,s=arguments;_arrayEach(t,function(e){_arrayEach(a,function(t,r){t!==e||n||(a.splice(r,1),n=!0)}),e.callback.apply(e,s)}),e.tasks.length+r===0&&e.drain(),e.process()}}if(null==t)t=1;else if(0===t)throw new Error("Concurrency must not be zero");var r=0,a=[],o={tasks:[],concurrency:t,payload:n,saturated:noop,empty:noop,drain:noop,started:!1,paused:!1,push:function(e,t){_insert(o,e,!1,t)},kill:function(){o.drain=noop,o.tasks=[]},unshift:function(e,t){_insert(o,e,!0,t)},process:function(){for(;!o.paused&&r<o.concurrency&&o.tasks.length;){var t=o.payload?o.tasks.splice(0,o.payload):o.tasks.splice(0,o.tasks.length),n=_map(t,function(e){return e.data});0===o.tasks.length&&o.empty(),r+=1,a.push(t[0]);var s=only_once(_next(o,t));e(n,s)}},length:function(){return o.tasks.length},running:function(){return r},workersList:function(){return a},idle:function(){return o.tasks.length+r===0},pause:function(){o.paused=!0},resume:function(){if(o.paused!==!1){o.paused=!1;for(var e=Math.min(o.concurrency,o.tasks.length),t=1;t<=e;t++)s.setImmediate(o.process)}}};return o}function _console_fn(e){return _restParam(function(t,n){t.apply(null,n.concat([_restParam(function(t,n){"object"==typeof console&&(t?console.error&&console.error(t):console[e]&&_arrayEach(n,function(t){console[e](t)}))})]))})}function _times(e){return function(t,n,r){e(_range(t),n,r)}}function _applyEach(e){return _restParam(function(t,n){var r=_restParam(function(n){var r=this,a=n.pop();return e(t,function(e,t,a){e.apply(r,n.concat([a]))},a)});return n.length?r.apply(this,n):r})}function ensureAsync(e){return _restParam(function(t){var n=t.pop();t.push(function(){var e=arguments;r?s.setImmediate(function(){n.apply(null,e)}):n.apply(null,e)});var r=!0;e.apply(this,t),r=!1})}var a,s={},o="object"==typeof self&&self.self===self&&self||"object"==typeof r&&r.global===r&&r||this;null!=o&&(a=o.async),s.noConflict=function(){return o.async=a,s};var i=Object.prototype.toString,c=Array.isArray||function(e){return"[object Array]"===i.call(e)},l=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},u=Object.keys||function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t},d="function"==typeof setImmediate&&setImmediate,p=d?function(e){d(e)}:function(e){setTimeout(e,0)};"object"==typeof t&&"function"==typeof t.nextTick?s.nextTick=t.nextTick:s.nextTick=p,s.setImmediate=d?p:s.nextTick,s.forEach=s.each=function(e,t,n){return s.eachOf(e,_withoutIndex(t),n)},s.forEachSeries=s.eachSeries=function(e,t,n){return s.eachOfSeries(e,_withoutIndex(t),n)},s.forEachLimit=s.eachLimit=function(e,t,n,r){return _eachOfLimit(t)(e,_withoutIndex(n),r)},s.forEachOf=s.eachOf=function(e,t,n){function done(e){s--,e?n(e):null===r&&s<=0&&n(null)}n=_once(n||noop),e=e||[];for(var r,a=_keyIterator(e),s=0;null!=(r=a());)s+=1,t(e[r],r,only_once(done));0===s&&n(null)},s.forEachOfSeries=s.eachOfSeries=function(e,t,n){function iterate(){var o=!0;return null===a?n(null):(t(e[a],a,only_once(function(e){if(e)n(e);else{if(a=r(),null===a)return n(null);o?s.setImmediate(iterate):iterate()}})),void(o=!1))}n=_once(n||noop),e=e||[];var r=_keyIterator(e),a=r();iterate()},s.forEachOfLimit=s.eachOfLimit=function(e,t,n,r){_eachOfLimit(t)(e,n,r)},s.map=doParallel(_asyncMap),s.mapSeries=doSeries(_asyncMap),s.mapLimit=doParallelLimit(_asyncMap),s.inject=s.foldl=s.reduce=function(e,t,n,r){s.eachOfSeries(e,function(e,r,a){n(t,e,function(e,n){t=n,a(e)})},function(e){r(e,t)})},s.foldr=s.reduceRight=function(e,t,n,r){var a=_map(e,identity).reverse();s.reduce(a,t,n,r)},s.transform=function(e,t,n,r){3===arguments.length&&(r=n,n=t,t=c(e)?[]:{}),s.eachOf(e,function(e,r,a){n(t,e,r,a)},function(e){r(e,t)})},s.select=s.filter=doParallel(_filter),s.selectLimit=s.filterLimit=doParallelLimit(_filter),s.selectSeries=s.filterSeries=doSeries(_filter),s.reject=doParallel(_reject),s.rejectLimit=doParallelLimit(_reject),s.rejectSeries=doSeries(_reject),s.any=s.some=_createTester(s.eachOf,toBool,identity),s.someLimit=_createTester(s.eachOfLimit,toBool,identity),s.all=s.every=_createTester(s.eachOf,notId,notId),s.everyLimit=_createTester(s.eachOfLimit,notId,notId),s.detect=_createTester(s.eachOf,identity,_findGetResult),s.detectSeries=_createTester(s.eachOfSeries,identity,_findGetResult),s.detectLimit=_createTester(s.eachOfLimit,identity,_findGetResult),s.sortBy=function(e,t,n){function comparator(e,t){var n=e.criteria,r=t.criteria;return n<r?-1:n>r?1:0}s.map(e,function(e,n){t(e,function(t,r){t?n(t):n(null,{value:e,criteria:r})})},function(e,t){return e?n(e):void n(null,_map(t.sort(comparator),function(e){return e.value}))})},s.auto=function(e,t,n){function addListener(e){d.unshift(e)}function removeListener(e){var t=_indexOf(d,e);t>=0&&d.splice(t,1)}function taskComplete(){a--,_arrayEach(d.slice(0),function(e){e()})}"function"==typeof arguments[1]&&(n=t,t=null),n=_once(n||noop);var r=u(e),a=r.length;if(!a)return n(null);t||(t=a);var o={},i=0,l=!1,d=[];addListener(function(){a||n(null,o)}),_arrayEach(r,function(r){function ready(){return i<t&&_reduce(p,function(e,t){return e&&o.hasOwnProperty(t)},!0)&&!o.hasOwnProperty(r)}function listener(){ready()&&(i++,removeListener(listener),u[u.length-1](d,o))}if(!l){for(var a,u=c(e[r])?e[r]:[e[r]],d=_restParam(function(e,t){if(i--,t.length<=1&&(t=t[0]),e){var a={};_forEachOf(o,function(e,t){a[t]=e}),a[r]=t,l=!0,n(e,a)}else o[r]=t,s.setImmediate(taskComplete)}),p=u.slice(0,u.length-1),f=p.length;f--;){if(!(a=e[p[f]]))throw new Error("Has nonexistent dependency in "+p.join(", "));if(c(a)&&_indexOf(a,r)>=0)throw new Error("Has cyclic dependencies")}ready()?(i++,u[u.length-1](d,o)):addListener(listener)}})},s.retry=function(e,t,n){function parseTimes(e,t){if("number"==typeof t)e.times=parseInt(t,10)||r;else{if("object"!=typeof t)throw new Error("Unsupported argument type for 'times': "+typeof t);e.times=parseInt(t.times,10)||r,e.interval=parseInt(t.interval,10)||a}}function wrappedTask(e,t){function retryAttempt(e,n){return function(r){e(function(e,t){r(!e||n,{err:e,result:t})},t)}}function retryInterval(e){return function(t){setTimeout(function(){t(null)},e)}}for(;i.times;){var n=!(i.times-=1);o.push(retryAttempt(i.task,n)),!n&&i.interval>0&&o.push(retryInterval(i.interval))}s.series(o,function(t,n){n=n[n.length-1],(e||i.callback)(n.err,n.result)})}var r=5,a=0,o=[],i={times:r,interval:a},c=arguments.length;if(c<1||c>3)throw new Error("Invalid arguments - must be either (task), (task, callback), (times, task) or (times, task, callback)");return c<=2&&"function"==typeof e&&(n=t,t=e),"function"!=typeof e&&parseTimes(i,e),i.callback=n,i.task=t,i.callback?wrappedTask():wrappedTask},s.waterfall=function(e,t){function wrapIterator(e){return _restParam(function(n,r){if(n)t.apply(null,[n].concat(r));else{var a=e.next();a?r.push(wrapIterator(a)):r.push(t),ensureAsync(e).apply(null,r)}})}if(t=_once(t||noop),!c(e)){var n=new Error("First argument to waterfall must be an array of functions");return t(n)}return e.length?void wrapIterator(s.iterator(e))():t()},s.parallel=function(e,t){_parallel(s.eachOf,e,t)},s.parallelLimit=function(e,t,n){_parallel(_eachOfLimit(t),e,n)},s.series=function(e,t){_parallel(s.eachOfSeries,e,t)},s.iterator=function(e){function makeCallback(t){function fn(){return e.length&&e[t].apply(null,arguments),fn.next()}return fn.next=function(){return t<e.length-1?makeCallback(t+1):null},fn}return makeCallback(0)},s.apply=_restParam(function(e,t){return _restParam(function(n){return e.apply(null,t.concat(n))})}),s.concat=doParallel(_concat),s.concatSeries=doSeries(_concat),s.whilst=function(e,t,n){if(n=n||noop,e()){var r=_restParam(function(a,s){a?n(a):e.apply(this,s)?t(r):n.apply(null,[null].concat(s))});t(r)}else n(null)},s.doWhilst=function(e,t,n){var r=0;return s.whilst(function(){return++r<=1||t.apply(this,arguments)},e,n)},s.until=function(e,t,n){return s.whilst(function(){return!e.apply(this,arguments)},t,n)},s.doUntil=function(e,t,n){return s.doWhilst(e,function(){return!t.apply(this,arguments)},n)},s.during=function(e,t,n){n=n||noop;var r=_restParam(function(t,r){t?n(t):(r.push(a),e.apply(this,r))}),a=function(e,a){e?n(e):a?t(r):n(null)};e(a)},s.doDuring=function(e,t,n){var r=0;s.during(function(e){r++<1?e(null,!0):t.apply(this,arguments)},e,n)},s.queue=function(e,t){var n=_queue(function(t,n){e(t[0],n)},t,1);return n},s.priorityQueue=function(e,t){function _compareTasks(e,t){return e.priority-t.priority}function _binarySearch(e,t,n){for(var r=-1,a=e.length-1;r<a;){var s=r+(a-r+1>>>1);n(t,e[s])>=0?r=s:a=s-1}return r}function _insert(e,t,n,r){if(null!=r&&"function"!=typeof r)throw new Error("task callback must be a function");return e.started=!0,c(t)||(t=[t]),0===t.length?s.setImmediate(function(){e.drain()}):void _arrayEach(t,function(t){var a={data:t,priority:n,callback:"function"==typeof r?r:noop};e.tasks.splice(_binarySearch(e.tasks,a,_compareTasks)+1,0,a),e.tasks.length===e.concurrency&&e.saturated(),s.setImmediate(e.process)})}var n=s.queue(e,t);return n.push=function(e,t,r){_insert(n,e,t,r)},delete n.unshift,n},s.cargo=function(e,t){return _queue(e,1,t)},s.log=_console_fn("log"),s.dir=_console_fn("dir"),s.memoize=function(e,t){var n={},r={},a=Object.prototype.hasOwnProperty;t=t||identity;var o=_restParam(function memoized(o){var i=o.pop(),c=t.apply(null,o);a.call(n,c)?s.setImmediate(function(){i.apply(null,n[c])}):a.call(r,c)?r[c].push(i):(r[c]=[i],e.apply(null,o.concat([_restParam(function(e){n[c]=e;var t=r[c];delete r[c];for(var a=0,s=t.length;a<s;a++)t[a].apply(null,e)})])))});return o.memo=n,o.unmemoized=e,o},s.unmemoize=function(e){return function(){return(e.unmemoized||e).apply(null,arguments)}},s.times=_times(s.map),s.timesSeries=_times(s.mapSeries),s.timesLimit=function(e,t,n,r){return s.mapLimit(_range(e),t,n,r)},s.seq=function(){var e=arguments;return _restParam(function(t){var n=this,r=t[t.length-1];"function"==typeof r?t.pop():r=noop,s.reduce(e,t,function(e,t,r){t.apply(n,e.concat([_restParam(function(e,t){r(e,t)})]))},function(e,t){r.apply(n,[e].concat(t))})})},s.compose=function(){return s.seq.apply(null,Array.prototype.reverse.call(arguments))},s.applyEach=_applyEach(s.eachOf),s.applyEachSeries=_applyEach(s.eachOfSeries),s.forever=function(e,t){function next(e){return e?n(e):void r(next)}var n=only_once(t||noop),r=ensureAsync(e);next()},s.ensureAsync=ensureAsync,s.constant=_restParam(function(e){var t=[null].concat(e);return function(e){return e.apply(this,t)}}),s.wrapSync=s.asyncify=function asyncify(e){return _restParam(function(t){var n,r=t.pop();try{n=e.apply(this,t)}catch(e){return r(e)}l(n)&&"function"==typeof n.then?n.then(function(e){r(null,e)}).catch(function(e){r(e.message?e:new Error(e))}):r(null,n)})},"object"==typeof n&&n.exports?n.exports=s:"function"==typeof e&&e.amd?e([],function(){return s}):o.async=s}()}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:"/stanza.io-8.0.2/node_modules/browserify/node_modules/process/browser.js"}],"/stanza.io-8.0.2/node_modules/babel-runtime/core-js/object/assign.js":[function(e,t,n){t.exports={default:e("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":"/stanza.io-8.0.2/node_modules/core-js/library/fn/object/assign.js"}],"/stanza.io-8.0.2/node_modules/babel-runtime/helpers/interop-require-default.js":[function(e,t,n){"use strict";n.default=function(e){return e&&e.__esModule?e:{default:e}},n.__esModule=!0},{}],"/stanza.io-8.0.2/node_modules/base64-js/index.js":[function(e,t,n){"use strict";function placeHoldersCount(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function byteLength(e){return 3*e.length/4-placeHoldersCount(e)}function toByteArray(e){var t,n,r,o,i,c,l=e.length;i=placeHoldersCount(e),c=new s(3*l/4-i),r=i>0?l-4:l;var u=0;for(t=0,n=0;t<r;t+=4,n+=3)o=a[e.charCodeAt(t)]<<18|a[e.charCodeAt(t+1)]<<12|a[e.charCodeAt(t+2)]<<6|a[e.charCodeAt(t+3)],c[u++]=o>>16&255,c[u++]=o>>8&255,c[u++]=255&o;return 2===i?(o=a[e.charCodeAt(t)]<<2|a[e.charCodeAt(t+1)]>>4,c[u++]=255&o):1===i&&(o=a[e.charCodeAt(t)]<<10|a[e.charCodeAt(t+1)]<<4|a[e.charCodeAt(t+2)]>>2,c[u++]=o>>8&255,c[u++]=255&o),c}function tripletToBase64(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function encodeChunk(e,t,n){for(var r,a=[],s=t;s<n;s+=3)r=(e[s]<<16)+(e[s+1]<<8)+e[s+2],a.push(tripletToBase64(r));return a.join("")}function fromByteArray(e){for(var t,n=e.length,a=n%3,s="",o=[],i=16383,c=0,l=n-a;c<l;c+=i)o.push(encodeChunk(e,c,c+i>l?l:c+i));return 1===a?(t=e[n-1],s+=r[t>>2],s+=r[t<<4&63],s+="=="):2===a&&(t=(e[n-2]<<8)+e[n-1],s+=r[t>>10],s+=r[t>>4&63],s+=r[t<<2&63],s+="="),o.push(s),o.join("")}n.byteLength=byteLength,n.toByteArray=toByteArray,n.fromByteArray=fromByteArray;for(var r=[],a=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,c=o.length;i<c;++i)r[i]=o[i],a[o.charCodeAt(i)]=i;a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},{}],"/stanza.io-8.0.2/node_modules/bitwise-xor/index.js":[function(e,t,n){(function(e){function xor(t,n){e.isBuffer(t)||(t=new e(t)),e.isBuffer(n)||(n=new e(n));var r=[];if(t.length>n.length)for(var a=0;a<n.length;a++)r.push(t[a]^n[a]);else for(var a=0;a<t.length;a++)r.push(t[a]^n[a]);return new e(r)}t.exports=xor}).call(this,e("buffer").Buffer)},{buffer:"/stanza.io-8.0.2/node_modules/buffer/index.js"}],"/stanza.io-8.0.2/node_modules/browser-resolve/empty.js":[function(e,t,n){},{}],"/stanza.io-8.0.2/node_modules/browserify/node_modules/process/browser.js":[function(e,t,n){function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(e){if(r===setTimeout)return setTimeout(e,0);if((r===defaultSetTimout||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function runClearTimeout(e){if(a===clearTimeout)return clearTimeout(e);if((a===defaultClearTimeout||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(e);try{return a(e)}catch(t){try{return a.call(null,e)}catch(t){return a.call(this,e)}}}function cleanUpNextTick(){c&&o&&(c=!1,o.length?i=o.concat(i):l=-1,i.length&&drainQueue())}function drainQueue(){if(!c){var e=runTimeout(cleanUpNextTick);c=!0;for(var t=i.length;t;){for(o=i,i=[];++l<t;)o&&o[l].run();l=-1,t=i.length}o=null,c=!1,runClearTimeout(e)}}function Item(e,t){this.fun=e,this.array=t}function noop(){}var r,a,s=t.exports={};!function(){try{r="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){r=defaultSetTimout}try{a="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){a=defaultClearTimeout}}();var o,i=[],c=!1,l=-1;s.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];i.push(new Item(e,t)),1!==i.length||c||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=noop,s.addListener=noop,s.once=noop,s.off=noop,s.removeListener=noop,s.removeAllListeners=noop,s.emit=noop,s.binding=function(e){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(e){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},{}],"/stanza.io-8.0.2/node_modules/buffer-shims/index.js":[function(e,t,n){(function(t){"use strict";var r=e("buffer"),a=r.Buffer,s=r.SlowBuffer,o=r.kMaxLength||2147483647;n.alloc=function alloc(e,t,n){if("function"==typeof a.alloc)return a.alloc(e,t,n);if("number"==typeof n)throw new TypeError("encoding must not be number");if("number"!=typeof e)throw new TypeError("size must be a number");if(e>o)throw new RangeError("size is too large");var r=n,s=t;void 0===s&&(r=void 0,s=0);var i=new a(e);if("string"==typeof s)for(var c=new a(s,r),l=c.length,u=-1;++u<e;)i[u]=c[u%l];else i.fill(s);return i},n.allocUnsafe=function allocUnsafe(e){if("function"==typeof a.allocUnsafe)return a.allocUnsafe(e);if("number"!=typeof e)throw new TypeError("size must be a number");if(e>o)throw new RangeError("size is too large");return new a(e)},n.from=function from(e,n,r){if("function"==typeof a.from&&(!t.Uint8Array||Uint8Array.from!==a.from))return a.from(e,n,r);if("number"==typeof e)throw new TypeError('"value" argument must not be a number');if("string"==typeof e)return new a(e,n);if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer){var s=n;if(1===arguments.length)return new a(e);"undefined"==typeof s&&(s=0);var o=r;if("undefined"==typeof o&&(o=e.byteLength-s),s>=e.byteLength)throw new RangeError("'offset' is out of bounds");if(o>e.byteLength-s)throw new RangeError("'length' is out of bounds");return new a(e.slice(s,s+o))}if(a.isBuffer(e)){var i=new a(e.length);return e.copy(i,0,0,e.length),i}if(e){if(Array.isArray(e)||"undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return new a(e);if("Buffer"===e.type&&Array.isArray(e.data))return new a(e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")},n.allocUnsafeSlow=function allocUnsafeSlow(e){if("function"==typeof a.allocUnsafeSlow)return a.allocUnsafeSlow(e);if("number"!=typeof e)throw new TypeError("size must be a number");if(e>=o)throw new RangeError("size is too large");return new s(e)}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{buffer:"/stanza.io-8.0.2/node_modules/buffer/index.js"}],"/stanza.io-8.0.2/node_modules/buffer/index.js":[function(e,t,n){(function(t){"use strict";function typedArraySupport(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(e,t){if(kMaxLength()<t)throw new RangeError("Invalid typed array length");return Buffer.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=Buffer.prototype):(null===e&&(e=new Buffer(t)),e.length=t),e}function Buffer(e,t,n){if(!(Buffer.TYPED_ARRAY_SUPPORT||this instanceof Buffer))return new Buffer(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return allocUnsafe(this,e)}return from(this,e,t,n)}function from(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?fromArrayBuffer(e,t,n,r):"string"==typeof t?fromString(e,t,n):fromObject(e,t)}function assertSize(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function alloc(e,t,n,r){return assertSize(t),t<=0?createBuffer(e,t):void 0!==n?"string"==typeof r?createBuffer(e,t).fill(n,r):createBuffer(e,t).fill(n):createBuffer(e,t)}function allocUnsafe(e,t){if(assertSize(t),e=createBuffer(e,t<0?0:0|checked(t)),!Buffer.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function fromString(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!Buffer.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|byteLength(t,n);e=createBuffer(e,r);var a=e.write(t,n);return a!==r&&(e=e.slice(0,a)),e}function fromArrayLike(e,t){var n=t.length<0?0:0|checked(t.length);e=createBuffer(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function fromArrayBuffer(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),Buffer.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=Buffer.prototype):e=fromArrayLike(e,t),e}function fromObject(e,t){if(Buffer.isBuffer(t)){var n=0|checked(t.length);return e=createBuffer(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||isnan(t.length)?createBuffer(e,0):fromArrayLike(e,t);if("Buffer"===t.type&&s(t.data))return fromArrayLike(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function checked(e){if(e>=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|e}function SlowBuffer(e){return+e!=e&&(e=0),Buffer.alloc(+e)}function byteLength(e,t){if(Buffer.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return utf8ToBytes(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return base64ToBytes(e).length;default:if(r)return utf8ToBytes(e).length;t=(""+t).toLowerCase(),r=!0}}function slowToString(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return hexSlice(this,t,n);case"utf8":case"utf-8":return utf8Slice(this,t,n);case"ascii":return asciiSlice(this,t,n);case"latin1":case"binary":return latin1Slice(this,t,n);case"base64":return base64Slice(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function swap(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function bidirectionalIndexOf(e,t,n,r,a){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof t&&(t=Buffer.from(t,r)),Buffer.isBuffer(t))return 0===t.length?-1:arrayIndexOf(e,t,n,r,a);if("number"==typeof t)return t&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):arrayIndexOf(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(e,t,n,r,a){function read(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}var s=1,o=e.length,i=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,o/=2,i/=2,n/=2}var c;if(a){var l=-1;for(c=n;c<o;c++)if(read(e,c)===read(t,l===-1?0:c-l)){if(l===-1&&(l=c),c-l+1===i)return l*s}else l!==-1&&(c-=c-l),l=-1}else for(n+i>o&&(n=o-i),c=n;c>=0;c--){for(var u=!0,d=0;d<i;d++)if(read(e,c+d)!==read(t,d)){u=!1;break}if(u)return c}return-1}function hexWrite(e,t,n,r){n=Number(n)||0;var a=e.length-n;r?(r=Number(r),r>a&&(r=a)):r=a;var s=t.length;if(s%2!==0)throw new TypeError("Invalid hex string");r>s/2&&(r=s/2);for(var o=0;o<r;++o){var i=parseInt(t.substr(2*o,2),16);if(isNaN(i))return o;e[n+o]=i}return o}function utf8Write(e,t,n,r){return blitBuffer(utf8ToBytes(t,e.length-n),e,n,r)}function asciiWrite(e,t,n,r){return blitBuffer(asciiToBytes(t),e,n,r)}function latin1Write(e,t,n,r){return asciiWrite(e,t,n,r)}function base64Write(e,t,n,r){return blitBuffer(base64ToBytes(t),e,n,r)}function ucs2Write(e,t,n,r){return blitBuffer(utf16leToBytes(t,e.length-n),e,n,r)}function base64Slice(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function utf8Slice(e,t,n){n=Math.min(e.length,n);for(var r=[],a=t;a<n;){var s=e[a],o=null,i=s>239?4:s>223?3:s>191?2:1;if(a+i<=n){var c,l,u,d;switch(i){case 1:s<128&&(o=s);break;case 2:c=e[a+1],128===(192&c)&&(d=(31&s)<<6|63&c,d>127&&(o=d));break;case 3:c=e[a+1],l=e[a+2],128===(192&c)&&128===(192&l)&&(d=(15&s)<<12|(63&c)<<6|63&l,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:c=e[a+1],l=e[a+2],u=e[a+3],128===(192&c)&&128===(192&l)&&128===(192&u)&&(d=(15&s)<<18|(63&c)<<12|(63&l)<<6|63&u,d>65535&&d<1114112&&(o=d))}}null===o?(o=65533,i=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),a+=i}return decodeCodePointsArray(r)}function decodeCodePointsArray(e){var t=e.length;if(t<=o)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=o));return n}function asciiSlice(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(127&e[a]);return r}function latin1Slice(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(e[a]);return r}function hexSlice(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var a="",s=t;s<n;++s)a+=toHex(e[s]);return a}function utf16leSlice(e,t,n){for(var r=e.slice(t,n),a="",s=0;s<r.length;s+=2)a+=String.fromCharCode(r[s]+256*r[s+1]);return a}function checkOffset(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function checkInt(e,t,n,r,a,s){if(!Buffer.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<s)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function objectWriteUInt16(e,t,n,r){t<0&&(t=65535+t+1);for(var a=0,s=Math.min(e.length-n,2);a<s;++a)e[n+a]=(t&255<<8*(r?a:1-a))>>>8*(r?a:1-a)}function objectWriteUInt32(e,t,n,r){t<0&&(t=4294967295+t+1);for(var a=0,s=Math.min(e.length-n,4);a<s;++a)e[n+a]=t>>>8*(r?a:3-a)&255}function checkIEEE754(e,t,n,r,a,s){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function writeFloat(e,t,n,r,s){return s||checkIEEE754(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),a.write(e,t,n,r,23,4),n+4}function writeDouble(e,t,n,r,s){return s||checkIEEE754(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),a.write(e,t,n,r,52,8),n+8}function base64clean(e){if(e=stringtrim(e).replace(i,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function stringtrim(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function toHex(e){return e<16?"0"+e.toString(16):e.toString(16)}function utf8ToBytes(e,t){t=t||1/0;for(var n,r=e.length,a=null,s=[],o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&s.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),a=n;continue}n=(a-55296<<10|n-56320)+65536}else a&&(t-=3)>-1&&s.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function asciiToBytes(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function utf16leToBytes(e,t){for(var n,r,a,s=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,a=n%256,s.push(a),s.push(r);return s}function base64ToBytes(e){return r.toByteArray(base64clean(e))}function blitBuffer(e,t,n,r){for(var a=0;a<r&&!(a+n>=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function isnan(e){return e!==e}var r=e("base64-js"),a=e("ieee754"),s=e("isarray");n.Buffer=Buffer,n.SlowBuffer=SlowBuffer,n.INSPECT_MAX_BYTES=50,Buffer.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:typedArraySupport(),n.kMaxLength=kMaxLength(),Buffer.poolSize=8192,Buffer._augment=function(e){return e.__proto__=Buffer.prototype,e},Buffer.from=function(e,t,n){ | |
return from(null,e,t,n)},Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Buffer[Symbol.species]===Buffer&&Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:!0})),Buffer.alloc=function(e,t,n){return alloc(null,e,t,n)},Buffer.allocUnsafe=function(e){return allocUnsafe(null,e)},Buffer.allocUnsafeSlow=function(e){return allocUnsafe(null,e)},Buffer.isBuffer=function isBuffer(e){return!(null==e||!e._isBuffer)},Buffer.compare=function compare(e,t){if(!Buffer.isBuffer(e)||!Buffer.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,a=0,s=Math.min(n,r);a<s;++a)if(e[a]!==t[a]){n=e[a],r=t[a];break}return n<r?-1:r<n?1:0},Buffer.isEncoding=function isEncoding(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Buffer.concat=function concat(e,t){if(!s(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Buffer.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=Buffer.allocUnsafe(t),a=0;for(n=0;n<e.length;++n){var o=e[n];if(!Buffer.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,a),a+=o.length}return r},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function swap16(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)swap(this,t,t+1);return this},Buffer.prototype.swap32=function swap32(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)swap(this,t,t+3),swap(this,t+1,t+2);return this},Buffer.prototype.swap64=function swap64(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)swap(this,t,t+7),swap(this,t+1,t+6),swap(this,t+2,t+5),swap(this,t+3,t+4);return this},Buffer.prototype.toString=function toString(){var e=0|this.length;return 0===e?"":0===arguments.length?utf8Slice(this,0,e):slowToString.apply(this,arguments)},Buffer.prototype.equals=function equals(e){if(!Buffer.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Buffer.compare(this,e)},Buffer.prototype.inspect=function inspect(){var e="",t=n.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},Buffer.prototype.compare=function compare(e,t,n,r,a){if(!Buffer.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===a&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,a>>>=0,this===e)return 0;for(var s=a-r,o=n-t,i=Math.min(s,o),c=this.slice(r,a),l=e.slice(t,n),u=0;u<i;++u)if(c[u]!==l[u]){s=c[u],o=l[u];break}return s<o?-1:o<s?1:0},Buffer.prototype.includes=function includes(e,t,n){return this.indexOf(e,t,n)!==-1},Buffer.prototype.indexOf=function indexOf(e,t,n){return bidirectionalIndexOf(this,e,t,n,!0)},Buffer.prototype.lastIndexOf=function lastIndexOf(e,t,n){return bidirectionalIndexOf(this,e,t,n,!1)},Buffer.prototype.write=function write(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var s=!1;;)switch(r){case"hex":return hexWrite(this,e,t,n);case"utf8":case"utf-8":return utf8Write(this,e,t,n);case"ascii":return asciiWrite(this,e,t,n);case"latin1":case"binary":return latin1Write(this,e,t,n);case"base64":return base64Write(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,e,t,n);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),s=!0}},Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var o=4096;Buffer.prototype.slice=function slice(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);var r;if(Buffer.TYPED_ARRAY_SUPPORT)r=this.subarray(e,t),r.__proto__=Buffer.prototype;else{var a=t-e;r=new Buffer(a,void 0);for(var s=0;s<a;++s)r[s]=this[s+e]}return r},Buffer.prototype.readUIntLE=function readUIntLE(e,t,n){e|=0,t|=0,n||checkOffset(e,t,this.length);for(var r=this[e],a=1,s=0;++s<t&&(a*=256);)r+=this[e+s]*a;return r},Buffer.prototype.readUIntBE=function readUIntBE(e,t,n){e|=0,t|=0,n||checkOffset(e,t,this.length);for(var r=this[e+--t],a=1;t>0&&(a*=256);)r+=this[e+--t]*a;return r},Buffer.prototype.readUInt8=function readUInt8(e,t){return t||checkOffset(e,1,this.length),this[e]},Buffer.prototype.readUInt16LE=function readUInt16LE(e,t){return t||checkOffset(e,2,this.length),this[e]|this[e+1]<<8},Buffer.prototype.readUInt16BE=function readUInt16BE(e,t){return t||checkOffset(e,2,this.length),this[e]<<8|this[e+1]},Buffer.prototype.readUInt32LE=function readUInt32LE(e,t){return t||checkOffset(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Buffer.prototype.readUInt32BE=function readUInt32BE(e,t){return t||checkOffset(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Buffer.prototype.readIntLE=function readIntLE(e,t,n){e|=0,t|=0,n||checkOffset(e,t,this.length);for(var r=this[e],a=1,s=0;++s<t&&(a*=256);)r+=this[e+s]*a;return a*=128,r>=a&&(r-=Math.pow(2,8*t)),r},Buffer.prototype.readIntBE=function readIntBE(e,t,n){e|=0,t|=0,n||checkOffset(e,t,this.length);for(var r=t,a=1,s=this[e+--r];r>0&&(a*=256);)s+=this[e+--r]*a;return a*=128,s>=a&&(s-=Math.pow(2,8*t)),s},Buffer.prototype.readInt8=function readInt8(e,t){return t||checkOffset(e,1,this.length),128&this[e]?(255-this[e]+1)*-1:this[e]},Buffer.prototype.readInt16LE=function readInt16LE(e,t){t||checkOffset(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Buffer.prototype.readInt16BE=function readInt16BE(e,t){t||checkOffset(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Buffer.prototype.readInt32LE=function readInt32LE(e,t){return t||checkOffset(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Buffer.prototype.readInt32BE=function readInt32BE(e,t){return t||checkOffset(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Buffer.prototype.readFloatLE=function readFloatLE(e,t){return t||checkOffset(e,4,this.length),a.read(this,e,!0,23,4)},Buffer.prototype.readFloatBE=function readFloatBE(e,t){return t||checkOffset(e,4,this.length),a.read(this,e,!1,23,4)},Buffer.prototype.readDoubleLE=function readDoubleLE(e,t){return t||checkOffset(e,8,this.length),a.read(this,e,!0,52,8)},Buffer.prototype.readDoubleBE=function readDoubleBE(e,t){return t||checkOffset(e,8,this.length),a.read(this,e,!1,52,8)},Buffer.prototype.writeUIntLE=function writeUIntLE(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var a=Math.pow(2,8*n)-1;checkInt(this,e,t,n,a,0)}var s=1,o=0;for(this[t]=255&e;++o<n&&(s*=256);)this[t+o]=e/s&255;return t+n},Buffer.prototype.writeUIntBE=function writeUIntBE(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var a=Math.pow(2,8*n)-1;checkInt(this,e,t,n,a,0)}var s=n-1,o=1;for(this[t+s]=255&e;--s>=0&&(o*=256);)this[t+s]=e/o&255;return t+n},Buffer.prototype.writeUInt8=function writeUInt8(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Buffer.prototype.writeUInt16LE=function writeUInt16LE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):objectWriteUInt16(this,e,t,!0),t+2},Buffer.prototype.writeUInt16BE=function writeUInt16BE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):objectWriteUInt16(this,e,t,!1),t+2},Buffer.prototype.writeUInt32LE=function writeUInt32LE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):objectWriteUInt32(this,e,t,!0),t+4},Buffer.prototype.writeUInt32BE=function writeUInt32BE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):objectWriteUInt32(this,e,t,!1),t+4},Buffer.prototype.writeIntLE=function writeIntLE(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);checkInt(this,e,t,n,a-1,-a)}var s=0,o=1,i=0;for(this[t]=255&e;++s<n&&(o*=256);)e<0&&0===i&&0!==this[t+s-1]&&(i=1),this[t+s]=(e/o>>0)-i&255;return t+n},Buffer.prototype.writeIntBE=function writeIntBE(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);checkInt(this,e,t,n,a-1,-a)}var s=n-1,o=1,i=0;for(this[t+s]=255&e;--s>=0&&(o*=256);)e<0&&0===i&&0!==this[t+s+1]&&(i=1),this[t+s]=(e/o>>0)-i&255;return t+n},Buffer.prototype.writeInt8=function writeInt8(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Buffer.prototype.writeInt16LE=function writeInt16LE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):objectWriteUInt16(this,e,t,!0),t+2},Buffer.prototype.writeInt16BE=function writeInt16BE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):objectWriteUInt16(this,e,t,!1),t+2},Buffer.prototype.writeInt32LE=function writeInt32LE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):objectWriteUInt32(this,e,t,!0),t+4},Buffer.prototype.writeInt32BE=function writeInt32BE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):objectWriteUInt32(this,e,t,!1),t+4},Buffer.prototype.writeFloatLE=function writeFloatLE(e,t,n){return writeFloat(this,e,t,!0,n)},Buffer.prototype.writeFloatBE=function writeFloatBE(e,t,n){return writeFloat(this,e,t,!1,n)},Buffer.prototype.writeDoubleLE=function writeDoubleLE(e,t,n){return writeDouble(this,e,t,!0,n)},Buffer.prototype.writeDoubleBE=function writeDoubleBE(e,t,n){return writeDouble(this,e,t,!1,n)},Buffer.prototype.copy=function copy(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var a,s=r-n;if(this===e&&n<t&&t<r)for(a=s-1;a>=0;--a)e[a+t]=this[a+n];else if(s<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(a=0;a<s;++a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+s),t);return s},Buffer.prototype.fill=function fill(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var a=e.charCodeAt(0);a<256&&(e=a)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!Buffer.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var s;if("number"==typeof e)for(s=t;s<n;++s)this[s]=e;else{var o=Buffer.isBuffer(e)?e:utf8ToBytes(new Buffer(e,r).toString()),i=o.length;for(s=0;s<n-t;++s)this[s+t]=o[s%i]}return this};var i=/[^+\/0-9A-Za-z-_]/g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":"/stanza.io-8.0.2/node_modules/base64-js/index.js",ieee754:"/stanza.io-8.0.2/node_modules/ieee754/index.js",isarray:"/stanza.io-8.0.2/node_modules/buffer/node_modules/isarray/index.js"}],"/stanza.io-8.0.2/node_modules/buffer/node_modules/isarray/index.js":[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],"/stanza.io-8.0.2/node_modules/cipher-base/index.js":[function(e,t,n){(function(n){function CipherBase(e){r.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._decoder=null,this._encoding=null}var r=e("stream").Transform,a=e("inherits"),s=e("string_decoder").StringDecoder;t.exports=CipherBase,a(CipherBase,r),CipherBase.prototype.update=function(e,t,r){"string"==typeof e&&(e=new n(e,t));var a=this._update(e);return this.hashMode?this:(r&&(a=this._toString(a,r)),a)},CipherBase.prototype.setAutoPadding=function(){},CipherBase.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},CipherBase.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},CipherBase.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},CipherBase.prototype._transform=function(e,t,n){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){r=e}finally{n(r)}},CipherBase.prototype._flush=function(e){var t;try{this.push(this._final())}catch(e){t=e}finally{e(t)}},CipherBase.prototype._finalOrDigest=function(e){var t=this._final()||new n("");return e&&(t=this._toString(t,e,!0)),t},CipherBase.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new s(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(e);return n&&(r+=this._decoder.end()),r}}).call(this,e("buffer").Buffer)},{buffer:"/stanza.io-8.0.2/node_modules/buffer/index.js",inherits:"/stanza.io-8.0.2/node_modules/inherits/inherits_browser.js",stream:"/stanza.io-8.0.2/node_modules/stream-browserify/index.js",string_decoder:"/stanza.io-8.0.2/node_modules/string_decoder/index.js"}],"/stanza.io-8.0.2/node_modules/core-js/library/fn/object/assign.js":[function(e,t,n){e("../../modules/es6.object.assign"),t.exports=e("../../modules/$.core").Object.assign},{"../../modules/$.core":"/stanza.io-8.0.2/node_modules/core-js/library/modules/$.core.js","../../modules/es6.object.assign":"/stanza.io-8.0.2/node_modules/core-js/library/modules/es6.object.assign.js"}],"/stanza.io-8.0.2/node_modules/core-js/library/modules/$.a-function.js":[function(e,t,n){t.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},{}],"/stanza.io-8.0.2/node_modules/core-js/library/modules/$.cof.js":[function(e,t,n){var r={}.toString;t.exports=function(e){return r.call(e).slice(8,-1)}},{}],"/stanza.io-8.0.2/node_modules/core-js/library/modules/$.core.js":[function(e,t,n){var r=t.exports={version:"1.2.6"};"number"==typeof __e&&(__e=r)},{}],"/stanza.io-8.0.2/node_modules/core-js/library/modules/$.ctx.js":[function(e,t,n){var r=e("./$.a-function");t.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},{"./$.a-function":"/stanza.io-8.0.2/node_modules/core-js/library/modules/$.a-function.js"}],"/stanza.io-8.0.2/node_modules/core-js/library/modules/$.defined.js":[function(e,t,n){t.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},{}],"/stanza.io-8.0.2/node_modules/core-js/library/modules/$.export.js":[function(e,t,n){var r=e("./$.global"),a=e("./$.core"),s=e("./$.ctx"),o="prototype",i=function(e,t,n){var c,l,u,d=e&i.F,p=e&i.G,f=e&i.S,m=e&i.P,h=e&i.B,b=e&i.W,g=p?a:a[t]||(a[t]={}),v=p?r:f?r[t]:(r[t]||{})[o];p&&(n=t);for(c in n)l=!d&&v&&c in v,l&&c in g||(u=l?v[c]:n[c],g[c]=p&&"function"!=typeof v[c]?n[c]:h&&l?s(u,r):b&&v[c]==u?function(e){var t=function(t){return this instanceof e?new e(t):e(t)};return t[o]=e[o],t}(u):m&&"function"==typeof u?s(Function.call,u):u,m&&((g[o]||(g[o]={}))[c]=u))};i.F=1,i.G=2,i.S=4,i.P=8,i.B=16,i.W=32,t.exports=i},{"./$.core":"/stanza.io-8.0.2/node_modules/core-js/library/modules/$.core.js","./$.ctx":"/stanza.io-8.0.2/node_modules/core-js/library/modules/$.ctx.js","./$.global":"/stanza.io-8.0.2/node_modules/core-js/library/modules/$.global.js"}],"/stanza.io-8.0.2/node_modules/core-js/library/modules/$.fails.js":[function(e,t,n){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],"/stanza.io-8.0.2/node_modules/core-js/library/modules/$.global.js":[function(e,t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},{}],"/stanza.io-8.0.2/node_modules/core-js/library/modules/$.iobject.js":[function(e,t,n){var r=e("./$.cof");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},{"./$.cof":"/stanza.io-8.0.2/node_modules/core-js/library/modules/$.cof.js"}],"/stanza.io-8.0.2/node_modules/core-js/library/modules/$.js":[function(e,t,n){var r=Object;t.exports={create:r.create,getProto:r.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:r.getOwnPropertyDescriptor,setDesc:r.defineProperty,setDescs:r.defineProperties,getKeys:r.keys,getNames:r.getOwnPropertyNames,getSymbols:r.getOwnPropertySymbols,each:[].forEach}},{}],"/stanza.io-8.0.2/node_modules/core-js/library/modules/$.object-assign.js":[function(e,t,n){var r=e("./$"),a=e("./$.to-object"),s=e("./$.iobject");t.exports=e("./$.fails")(function(){var e=Object.assign,t={},n={},r=Symbol(),a="abcdefghijklmnopqrst";return t[r]=7,a.split("").forEach(function(e){n[e]=e}),7!=e({},t)[r]||Object.keys(e({},n)).join("")!=a})?function assign(e,t){for(var n=a(e),o=arguments,i=o.length,c=1,l=r.getKeys,u=r.getSymbols,d=r.isEnum;i>c;)for(var p,f=s(o[c++]),m=u?l(f).concat(u(f)):l(f),h=m.length,b=0;h>b;)d.call(f,p=m[b++])&&(n[p]=f[p]);return n}:Object.assign},{"./$":"/stanza.io-8.0.2/node_modules/core-js/library/modules/$.js","./$.fails":"/stanza.io-8.0.2/node_modules/core-js/library/modules/$.fails.js","./$.iobject":"/stanza.io-8.0.2/node_modules/core-js/library/modules/$.iobject.js","./$.to-object":"/stanza.io-8.0.2/node_modules/core-js/library/modules/$.to-object.js"}],"/stanza.io-8.0.2/node_modules/core-js/library/modules/$.to-object.js":[function(e,t,n){var r=e("./$.defined");t.exports=function(e){return Object(r(e))}},{"./$.defined":"/stanza.io-8.0.2/node_modules/core-js/library/modules/$.defined.js"}],"/stanza.io-8.0.2/node_modules/core-js/library/modules/es6.object.assign.js":[function(e,t,n){var r=e("./$.export");r(r.S+r.F,"Object",{assign:e("./$.object-assign")})},{"./$.export":"/stanza.io-8.0.2/node_modules/core-js/library/modules/$.export.js","./$.object-assign":"/stanza.io-8.0.2/node_modules/core-js/library/modules/$.object-assign.js"}],"/stanza.io-8.0.2/node_modules/core-util-is/lib/util.js":[function(e,t,n){(function(e){function isArray(e){return Array.isArray?Array.isArray(e):"[object Array]"===objectToString(e)}function isBoolean(e){return"boolean"==typeof e}function isNull(e){return null===e}function isNullOrUndefined(e){return null==e}function isNumber(e){return"number"==typeof e}function isString(e){return"string"==typeof e}function isSymbol(e){return"symbol"==typeof e}function isUndefined(e){return void 0===e}function isRegExp(e){return"[object RegExp]"===objectToString(e)}function isObject(e){return"object"==typeof e&&null!==e}function isDate(e){return"[object Date]"===objectToString(e)}function isError(e){return"[object Error]"===objectToString(e)||e instanceof Error}function isFunction(e){return"function"==typeof e}function isPrimitive(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||"undefined"==typeof e}function objectToString(e){return Object.prototype.toString.call(e)}n.isArray=isArray,n.isBoolean=isBoolean,n.isNull=isNull,n.isNullOrUndefined=isNullOrUndefined,n.isNumber=isNumber,n.isString=isString,n.isSymbol=isSymbol,n.isUndefined=isUndefined,n.isRegExp=isRegExp,n.isObject=isObject,n.isDate=isDate,n.isError=isError,n.isFunction=isFunction,n.isPrimitive=isPrimitive,n.isBuffer=e.isBuffer}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":"/stanza.io-8.0.2/node_modules/is-buffer/index.js"}],"/stanza.io-8.0.2/node_modules/create-hash/browser.js":[function(e,t,n){(function(n){"use strict";function HashNoConstructor(e){i.call(this,"digest"),this._hash=e,this.buffers=[]}function Hash(e){i.call(this,"digest"),this._hash=e}var r=e("inherits"),a=e("./md5"),s=e("ripemd160"),o=e("sha.js"),i=e("cipher-base");r(HashNoConstructor,i),HashNoConstructor.prototype._update=function(e){this.buffers.push(e)},HashNoConstructor.prototype._final=function(){var e=n.concat(this.buffers),t=this._hash(e);return this.buffers=null,t},r(Hash,i),Hash.prototype._update=function(e){this._hash.update(e)},Hash.prototype._final=function(){return this._hash.digest()},t.exports=function createHash(e){return e=e.toLowerCase(),"md5"===e?new HashNoConstructor(a):"rmd160"===e||"ripemd160"===e?new HashNoConstructor(s):new Hash(o(e))}}).call(this,e("buffer").Buffer)},{"./md5":"/stanza.io-8.0.2/node_modules/create-hash/md5.js",buffer:"/stanza.io-8.0.2/node_modules/buffer/index.js","cipher-base":"/stanza.io-8.0.2/node_modules/cipher-base/index.js",inherits:"/stanza.io-8.0.2/node_modules/inherits/inherits_browser.js",ripemd160:"/stanza.io-8.0.2/node_modules/ripemd160/lib/ripemd160.js","sha.js":"/stanza.io-8.0.2/node_modules/sha.js/index.js"}],"/stanza.io-8.0.2/node_modules/create-hash/helpers.js":[function(e,t,n){(function(e){"use strict";function toArray(n,a){if(n.length%t!==0){var s=n.length+(t-n.length%t);n=e.concat([n,r],s)}for(var o=[],i=a?n.readInt32BE:n.readInt32LE,c=0;c<n.length;c+=t)o.push(i.call(n,c));return o}function toBuffer(t,n,r){for(var a=new e(n),s=r?a.writeInt32BE:a.writeInt32LE,o=0;o<t.length;o++)s.call(a,t[o],4*o,!0);return a}function hash(t,n,r,s){e.isBuffer(t)||(t=new e(t));var o=n(toArray(t,s),t.length*a);return toBuffer(o,r,s)}var t=4,r=new e(t);r.fill(0);var a=8;n.hash=hash}).call(this,e("buffer").Buffer)},{buffer:"/stanza.io-8.0.2/node_modules/buffer/index.js"}],"/stanza.io-8.0.2/node_modules/create-hash/md5.js":[function(e,t,n){"use strict";function core_md5(e,t){e[t>>5]|=128<<t%32,e[(t+64>>>9<<4)+14]=t;for(var n=1732584193,r=-271733879,a=-1732584194,s=271733878,o=0;o<e.length;o+=16){var i=n,c=r,l=a,u=s;n=md5_ff(n,r,a,s,e[o+0],7,-680876936),s=md5_ff(s,n,r,a,e[o+1],12,-389564586),a=md5_ff(a,s,n,r,e[o+2],17,606105819),r=md5_ff(r,a,s,n,e[o+3],22,-1044525330),n=md5_ff(n,r,a,s,e[o+4],7,-176418897),s=md5_ff(s,n,r,a,e[o+5],12,1200080426),a=md5_ff(a,s,n,r,e[o+6],17,-1473231341),r=md5_ff(r,a,s,n,e[o+7],22,-45705983),n=md5_ff(n,r,a,s,e[o+8],7,1770035416),s=md5_ff(s,n,r,a,e[o+9],12,-1958414417),a=md5_ff(a,s,n,r,e[o+10],17,-42063),r=md5_ff(r,a,s,n,e[o+11],22,-1990404162),n=md5_ff(n,r,a,s,e[o+12],7,1804603682),s=md5_ff(s,n,r,a,e[o+13],12,-40341101),a=md5_ff(a,s,n,r,e[o+14],17,-1502002290),r=md5_ff(r,a,s,n,e[o+15],22,1236535329),n=md5_gg(n,r,a,s,e[o+1],5,-165796510),s=md5_gg(s,n,r,a,e[o+6],9,-1069501632),a=md5_gg(a,s,n,r,e[o+11],14,643717713),r=md5_gg(r,a,s,n,e[o+0],20,-373897302),n=md5_gg(n,r,a,s,e[o+5],5,-701558691),s=md5_gg(s,n,r,a,e[o+10],9,38016083),a=md5_gg(a,s,n,r,e[o+15],14,-660478335),r=md5_gg(r,a,s,n,e[o+4],20,-405537848),n=md5_gg(n,r,a,s,e[o+9],5,568446438),s=md5_gg(s,n,r,a,e[o+14],9,-1019803690),a=md5_gg(a,s,n,r,e[o+3],14,-187363961),r=md5_gg(r,a,s,n,e[o+8],20,1163531501),n=md5_gg(n,r,a,s,e[o+13],5,-1444681467),s=md5_gg(s,n,r,a,e[o+2],9,-51403784),a=md5_gg(a,s,n,r,e[o+7],14,1735328473),r=md5_gg(r,a,s,n,e[o+12],20,-1926607734),n=md5_hh(n,r,a,s,e[o+5],4,-378558),s=md5_hh(s,n,r,a,e[o+8],11,-2022574463),a=md5_hh(a,s,n,r,e[o+11],16,1839030562),r=md5_hh(r,a,s,n,e[o+14],23,-35309556),n=md5_hh(n,r,a,s,e[o+1],4,-1530992060),s=md5_hh(s,n,r,a,e[o+4],11,1272893353),a=md5_hh(a,s,n,r,e[o+7],16,-155497632),r=md5_hh(r,a,s,n,e[o+10],23,-1094730640),n=md5_hh(n,r,a,s,e[o+13],4,681279174),s=md5_hh(s,n,r,a,e[o+0],11,-358537222),a=md5_hh(a,s,n,r,e[o+3],16,-722521979),r=md5_hh(r,a,s,n,e[o+6],23,76029189),n=md5_hh(n,r,a,s,e[o+9],4,-640364487),s=md5_hh(s,n,r,a,e[o+12],11,-421815835),a=md5_hh(a,s,n,r,e[o+15],16,530742520),r=md5_hh(r,a,s,n,e[o+2],23,-995338651),n=md5_ii(n,r,a,s,e[o+0],6,-198630844),s=md5_ii(s,n,r,a,e[o+7],10,1126891415),a=md5_ii(a,s,n,r,e[o+14],15,-1416354905),r=md5_ii(r,a,s,n,e[o+5],21,-57434055),n=md5_ii(n,r,a,s,e[o+12],6,1700485571),s=md5_ii(s,n,r,a,e[o+3],10,-1894986606),a=md5_ii(a,s,n,r,e[o+10],15,-1051523),r=md5_ii(r,a,s,n,e[o+1],21,-2054922799),n=md5_ii(n,r,a,s,e[o+8],6,1873313359),s=md5_ii(s,n,r,a,e[o+15],10,-30611744),a=md5_ii(a,s,n,r,e[o+6],15,-1560198380),r=md5_ii(r,a,s,n,e[o+13],21,1309151649),n=md5_ii(n,r,a,s,e[o+4],6,-145523070),s=md5_ii(s,n,r,a,e[o+11],10,-1120210379),a=md5_ii(a,s,n,r,e[o+2],15,718787259),r=md5_ii(r,a,s,n,e[o+9],21,-343485551),n=safe_add(n,i),r=safe_add(r,c),a=safe_add(a,l),s=safe_add(s,u)}return Array(n,r,a,s)}function md5_cmn(e,t,n,r,a,s){return safe_add(bit_rol(safe_add(safe_add(t,e),safe_add(r,s)),a),n)}function md5_ff(e,t,n,r,a,s,o){return md5_cmn(t&n|~t&r,e,t,a,s,o)}function md5_gg(e,t,n,r,a,s,o){return md5_cmn(t&r|n&~r,e,t,a,s,o)}function md5_hh(e,t,n,r,a,s,o){return md5_cmn(t^n^r,e,t,a,s,o)}function md5_ii(e,t,n,r,a,s,o){return md5_cmn(n^(t|~r),e,t,a,s,o)}function safe_add(e,t){var n=(65535&e)+(65535&t),r=(e>>16)+(t>>16)+(n>>16);return r<<16|65535&n}function bit_rol(e,t){return e<<t|e>>>32-t}var r=e("./helpers");t.exports=function md5(e){return r.hash(e,core_md5,16)}},{"./helpers":"/stanza.io-8.0.2/node_modules/create-hash/helpers.js"}],"/stanza.io-8.0.2/node_modules/create-hmac/browser.js":[function(e,t,n){(function(n){"use strict";function Hmac(e,t){s.call(this),e=e.toLowerCase(),"string"==typeof t&&(t=new n(t));var a="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>a?t=r(e).update(t).digest():t.length<a&&(t=n.concat([t,o],a));for(var i=this._ipad=new n(a),c=this._opad=new n(a),l=0;l<a;l++)i[l]=54^t[l],c[l]=92^t[l];this._hash=r(e).update(i)}var r=e("create-hash/browser"),a=e("inherits"),s=e("stream").Transform,o=new n(128);o.fill(0),a(Hmac,s),Hmac.prototype.update=function(e,t){return this._hash.update(e,t),this},Hmac.prototype._transform=function(e,t,n){this._hash.update(e),n()},Hmac.prototype._flush=function(e){this.push(this.digest()),e()},Hmac.prototype.digest=function(e){var t=this._hash.digest();return r(this._alg).update(this._opad).update(t).digest(e)},t.exports=function createHmac(e,t){return new Hmac(e,t)}}).call(this,e("buffer").Buffer)},{buffer:"/stanza.io-8.0.2/node_modules/buffer/index.js","create-hash/browser":"/stanza.io-8.0.2/node_modules/create-hash/browser.js",inherits:"/stanza.io-8.0.2/node_modules/inherits/inherits_browser.js",stream:"/stanza.io-8.0.2/node_modules/stream-browserify/index.js"}],"/stanza.io-8.0.2/node_modules/events/events.js":[function(e,t,n){function EventEmitter(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function isFunction(e){return"function"==typeof e}function isNumber(e){return"number"==typeof e}function isObject(e){return"object"==typeof e&&null!==e}function isUndefined(e){return void 0===e}t.exports=EventEmitter,EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._maxListeners=void 0,EventEmitter.defaultMaxListeners=10,EventEmitter.prototype.setMaxListeners=function(e){if(!isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},EventEmitter.prototype.emit=function(e){var t,n,r,a,s,o;if(this._events||(this._events={}),"error"===e&&(!this._events.error||isObject(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var i=new Error('Uncaught, unspecified "error" event. ('+t+")");throw i.context=t,i}if(n=this._events[e],isUndefined(n))return!1;if(isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),n.apply(this,a)}else if(isObject(n))for(a=Array.prototype.slice.call(arguments,1),o=n.slice(),r=o.length,s=0;s<r;s++)o[s].apply(this,a);return!0},EventEmitter.prototype.addListener=function(e,t){var n;if(!isFunction(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,isFunction(t.listener)?t.listener:t),this._events[e]?isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,isObject(this._events[e])&&!this._events[e].warned&&(n=isUndefined(this._maxListeners)?EventEmitter.defaultMaxListeners:this._maxListeners,n&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.once=function(e,t){function g(){this.removeListener(e,g),n||(n=!0,t.apply(this,arguments))}if(!isFunction(t))throw TypeError("listener must be a function");var n=!1;return g.listener=t,this.on(e,g),this},EventEmitter.prototype.removeListener=function(e,t){var n,r,a,s;if(!isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,r=-1,n===t||isFunction(n.listener)&&n.listener===t)delete this._events[e], | |
this._events.removeListener&&this.emit("removeListener",e,t);else if(isObject(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},EventEmitter.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],isFunction(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},EventEmitter.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},EventEmitter.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(isFunction(t))return 1;if(t)return t.length}return 0},EventEmitter.listenerCount=function(e,t){return e.listenerCount(t)}},{}],"/stanza.io-8.0.2/node_modules/extend-object/extend-object.js":[function(e,t,n){var r=[],a=r.forEach,s=r.slice;t.exports=function(e){return a.call(s.call(arguments,1),function(t){if(t)for(var n in t)e[n]=t[n]}),e}},{}],"/stanza.io-8.0.2/node_modules/filetransfer/filetransfer.js":[function(e,t,n){function Sender(e){r.call(this);var t=e||{};this.config={chunksize:16384,pacing:0};var n;for(n in t)this.config[n]=t[n];this.file=null,this.channel=null}function Receiver(){r.call(this),this.receiveBuffer=[],this.received=0,this.metadata={},this.channel=null}var r=e("wildemitter"),a=e("util");a.inherits(Sender,r),Sender.prototype.send=function(e,t){var n=this;this.file=e,this.channel=t;var r=function(t){var a=new window.FileReader;a.onload=function(){return function(a){n.channel.send(a.target.result),n.emit("progress",t,e.size,a.target.result),e.size>t+a.target.result.byteLength?window.setTimeout(r,n.config.pacing,t+n.config.chunksize):(n.emit("progress",e.size,e.size,null),n.emit("sentFile"))}}(e);var s=e.slice(t,t+n.config.chunksize);a.readAsArrayBuffer(s)};window.setTimeout(r,0,0)},a.inherits(Receiver,r),Receiver.prototype.receive=function(e,t){var n=this;e&&(this.metadata=e),this.channel=t,t.binaryType="arraybuffer",this.channel.onmessage=function(e){var t=e.data.byteLength;n.received+=t,n.receiveBuffer.push(e.data),n.emit("progress",n.received,n.metadata.size,e.data),n.received===n.metadata.size?(n.emit("receivedFile",new window.Blob(n.receiveBuffer),n.metadata),n.receiveBuffer=[]):n.received>n.metadata.size&&(console.error("received more than expected, discarding..."),n.receiveBuffer=[])}},t.exports={},t.exports.support="undefined"!=typeof window&&window&&window.File&&window.FileReader&&window.Blob,t.exports.Sender=Sender,t.exports.Receiver=Receiver},{util:"/stanza.io-8.0.2/node_modules/util/util.js",wildemitter:"/stanza.io-8.0.2/node_modules/wildemitter/wildemitter.js"}],"/stanza.io-8.0.2/node_modules/filetransfer/hashed.js":[function(e,t,n){function Sender(e){r.call(this);var t=this;this.base=new o.Sender(e);var n=e||{};n.hash||(n.hash="sha-1"),this.hash=s.createHash(n.hash),this.base.on("progress",function(e,n,r){t.emit("progress",e,n,r),r&&t.hash.update(new Uint8Array(r))}),this.base.on("sentFile",function(){t.emit("sentFile",{hash:t.hash.digest("hex"),algo:n.hash})})}function Receiver(e){r.call(this);var t=this;this.base=new o.Receiver(e);var n=e||{};n.hash||(n.hash="sha-1"),this.hash=s.createHash(n.hash),this.base.on("progress",function(e,n,r){t.emit("progress",e,n,r),r&&t.hash.update(new Uint8Array(r))}),this.base.on("receivedFile",function(e,n){n.actualhash=t.hash.digest("hex"),t.emit("receivedFile",e,n)})}var r=e("wildemitter"),a=e("util"),s=e("iana-hashes"),o=e("./filetransfer");a.inherits(Sender,r),Sender.prototype.send=function(){this.base.send.apply(this.base,arguments)},a.inherits(Receiver,r),Receiver.prototype.receive=function(){this.base.receive.apply(this.base,arguments)},Object.defineProperty(Receiver.prototype,"metadata",{get:function(){return this.base.metadata},set:function(e){this.base.metadata=e}}),t.exports={},t.exports.support=o.support,t.exports.Sender=Sender,t.exports.Receiver=Receiver},{"./filetransfer":"/stanza.io-8.0.2/node_modules/filetransfer/filetransfer.js","iana-hashes":"/stanza.io-8.0.2/node_modules/iana-hashes/index.js",util:"/stanza.io-8.0.2/node_modules/util/util.js",wildemitter:"/stanza.io-8.0.2/node_modules/wildemitter/wildemitter.js"}],"/stanza.io-8.0.2/node_modules/for-each/index.js":[function(e,t,n){function forEach(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");arguments.length<3&&(n=this),"[object Array]"===a.call(e)?forEachArray(e,t,n):"string"==typeof e?forEachString(e,t,n):forEachObject(e,t,n)}function forEachArray(e,t,n){for(var r=0,a=e.length;r<a;r++)s.call(e,r)&&t.call(n,e[r],r,e)}function forEachString(e,t,n){for(var r=0,a=e.length;r<a;r++)t.call(n,e.charAt(r),r,e)}function forEachObject(e,t,n){for(var r in e)s.call(e,r)&&t.call(n,e[r],r,e)}var r=e("is-function");t.exports=forEach;var a=Object.prototype.toString,s=Object.prototype.hasOwnProperty},{"is-function":"/stanza.io-8.0.2/node_modules/is-function/index.js"}],"/stanza.io-8.0.2/node_modules/global/window.js":[function(e,t,n){(function(e){"undefined"!=typeof window?t.exports=window:"undefined"!=typeof e?t.exports=e:"undefined"!=typeof self?t.exports=self:t.exports={}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],"/stanza.io-8.0.2/node_modules/hostmeta/index.js":[function(e,t,n){"use strict";var r=e("async"),a=e("request"),s=e("jxt").createRegistry();s.use(e("./lib/xrd")),t.exports=function(e,t){"string"==typeof e&&(e={host:e});var n={ssl:!0,json:!0,xrd:!0};for(var o in e)n[o]=e[o];var i=n.ssl?"https://":"http://";r.parallel([function(e){a(i+n.host+"/.well-known/host-meta.json",function(t,n,r){if(t)return e(null);var a;try{a=JSON.parse(r)}catch(e){a=null}return e(a)})},function(e){a(i+n.host+"/.well-known/host-meta",function(t,n,r){if(t)return e(null);var a=s.parse(r);return e(a.toJSON())})}],function(e){e?t(null,e):t("no-host-meta")})}},{"./lib/xrd":"/stanza.io-8.0.2/node_modules/hostmeta/lib/xrd.js",async:"/stanza.io-8.0.2/node_modules/async/lib/async.js",jxt:"/stanza.io-8.0.2/node_modules/jxt/index.js",request:"/stanza.io-8.0.2/node_modules/xhr/index.js"}],"/stanza.io-8.0.2/node_modules/hostmeta/lib/xrd.js":[function(e,t,n){"use strict";var r=e("jxt"),a="http://docs.oasis-open.org/ns/xri/xrd-1.0";t.exports=function(e){var t={get:function(){for(var e={},t=r.find(this.xml,a,"Property"),n=0,s=t.length;n<s;n++){var o=t[n],i=r.getAttribute(o,"type");e[i]=o.textContent}return e}},n=e.define({name:"xrd",namespace:a,element:"XRD",fields:{subject:r.subText(a,"Subject"),expires:r.dateSub(a,"Expires"),aliases:r.multiSubText(a,"Alias"),properties:t}}),s=e.define({name:"_xrdlink",namespace:a,element:"Link",fields:{rel:r.attribute("rel"),href:r.attribute("href"),type:r.attribute("type"),template:r.attribute("template"),titles:r.subLangText(a,"Title","default"),properties:t}});return e.extend(n,s,"links"),n}},{jxt:"/stanza.io-8.0.2/node_modules/jxt/index.js"}],"/stanza.io-8.0.2/node_modules/iana-hashes/index.js":[function(e,t,n){var r=e("create-hash"),a=e("create-hmac"),s=e("./lib/get-hashes"),o={md2:"md2",md5:"md5","sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512"},i=Object.keys(o);n.getHashes=function(){for(var e=[],t=s(),n=0,r=i.length;n<r;n++)t.indexOf(o[i[n]])>=0&&e.push(i[n]);return e},n.createHash=function(e){return e=e.toLowerCase(),o[e]&&(e=o[e]),r(e)},n.createHmac=function(e,t){return e=e.toLowerCase(),o[e]&&(e=o[e]),a(e,t)}},{"./lib/get-hashes":"/stanza.io-8.0.2/node_modules/iana-hashes/lib/get-hashes-browser.js","create-hash":"/stanza.io-8.0.2/node_modules/create-hash/browser.js","create-hmac":"/stanza.io-8.0.2/node_modules/create-hmac/browser.js"}],"/stanza.io-8.0.2/node_modules/iana-hashes/lib/get-hashes-browser.js":[function(e,t,n){t.exports=function(){return["sha1","sha224","sha256","sha384","sha512","md5","rmd160"]}},{}],"/stanza.io-8.0.2/node_modules/ieee754/index.js":[function(e,t,n){n.read=function(e,t,n,r,a){var s,o,i=8*a-r-1,c=(1<<i)-1,l=c>>1,u=-7,d=n?a-1:0,p=n?-1:1,f=e[t+d];for(d+=p,s=f&(1<<-u)-1,f>>=-u,u+=i;u>0;s=256*s+e[t+d],d+=p,u-=8);for(o=s&(1<<-u)-1,s>>=-u,u+=r;u>0;o=256*o+e[t+d],d+=p,u-=8);if(0===s)s=1-l;else{if(s===c)return o?NaN:(f?-1:1)*(1/0);o+=Math.pow(2,r),s-=l}return(f?-1:1)*o*Math.pow(2,s-r)},n.write=function(e,t,n,r,a,s){var o,i,c,l=8*s-a-1,u=(1<<l)-1,d=u>>1,p=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:s-1,m=r?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(i=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),t+=o+d>=1?p/c:p*Math.pow(2,1-d),t*c>=2&&(o++,c/=2),o+d>=u?(i=0,o=u):o+d>=1?(i=(t*c-1)*Math.pow(2,a),o+=d):(i=t*Math.pow(2,d-1)*Math.pow(2,a),o=0));a>=8;e[n+f]=255&i,f+=m,i/=256,a-=8);for(o=o<<a|i,l+=a;l>0;e[n+f]=255&o,f+=m,o/=256,l-=8);e[n+f-m]|=128*h}},{}],"/stanza.io-8.0.2/node_modules/inherits/inherits_browser.js":[function(e,t,n){"function"==typeof Object.create?t.exports=function inherits(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function inherits(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],"/stanza.io-8.0.2/node_modules/intersect/index.js":[function(e,t,n){function intersect(e,t){for(var n=[],r=0;r<e.length;r++)indexOf(t,e[r])>-1&&n.push(e[r]);return n}function indexOf(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}t.exports=intersect,intersect.big=function(e,t){for(var n=[],r={},a=0;a<t.length;a++)r[t[a]]=!0;for(var a=0;a<e.length;a++)r[e[a]]&&n.push(e[a]);return n}},{}],"/stanza.io-8.0.2/node_modules/is-buffer/index.js":[function(e,t,n){function isBuffer(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function isSlowBuffer(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&isBuffer(e.slice(0,0))}t.exports=function(e){return null!=e&&(isBuffer(e)||isSlowBuffer(e)||!!e._isBuffer)}},{}],"/stanza.io-8.0.2/node_modules/is-function/index.js":[function(e,t,n){function isFunction(e){var t=r.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}t.exports=isFunction;var r=Object.prototype.toString},{}],"/stanza.io-8.0.2/node_modules/jingle-filetransfer-session/index.js":[function(e,t,n){function FileTransferSession(e){s.call(this,e),this.pc=new o({iceServers:e.iceServers||[],useJingle:!0},e.constraints||{}),this.pc.on("ice",this.onIceCandidate.bind(this)),this.pc.on("iceConnectionStateChange",this.onIceStateChange.bind(this)),this.pc.on("addChannel",this.onChannelAdded.bind(this)),this.sender=null,this.receiver=null}var r=e("util"),a=e("extend-object"),s=e("jingle-session"),o=e("rtcpeerconnection"),i=e("filetransfer/hashed");r.inherits(FileTransferSession,s),FileTransferSession.prototype=a(FileTransferSession.prototype,{start:function(e){var t=this;this.state="pending",this.pc.isInitiator=!0,this.sender=new i.Sender,this.sender.on("progress",function(e,n){t._log("info","Send progress "+e+"/"+n)}),this.sender.on("sentFile",function(e){t._log("info","Sent file",e.name);var n=t.pc.localDescription.contents[0];delete n.transport,n.application={applicationType:"filetransfer",offer:{hash:{algo:e.algo,value:e.hash}}},t.send("description-info",{contents:[n]}),t.emit("sentFile",t,e)});var n=this.pc.createDataChannel("filetransfer");n.onopen=function(){t.sender.send(e,n)};var r={mandatory:{OfferToReceiveAudio:!1,OfferToReceiveVideo:!1}};this.pc.offer(r,function(n,r){return n?(t._log("error","Could not create WebRTC offer",n),t.end("failed-application",!0)):(r.jingle.contents[0].application={applicationType:"filetransfer",offer:{date:e.lastModifiedDate,name:e.name,size:e.size,hash:{algo:"sha-1",value:""}}},void t.send("session-initiate",r.jingle))})},accept:function(){var e=this;this._log("info","Accepted incoming session"),this.state="active",this.pc.answer(function(t,n){return t?(e._log("error","Could not create WebRTC answer",t),e.end("failed-application")):void e.send("session-accept",n.jingle)})},end:function(e,t){this.pc.close(),s.prototype.end.call(this,e,t)},maybeReceivedFile:function(){this.receiver.metadata.hash.value&&(this.receiver.metadata.hash.value===this.receiver.metadata.actualhash?(this._log("info","File hash matches"),this.emit("receivedFile",this,this.receivedFile,this.receiver.metadata),this.end("success")):(this._log("error","File hash does not match"),this.end("media-error")))},onIceCandidate:function(e){this._log("info","Discovered new ICE candidate",e.jingle),this.send("transport-info",e.jingle)},onIceStateChange:function(){switch(this.pc.iceConnectionState){case"checking":this.connectionState="connecting";break;case"completed":case"connected":this.connectionState="connected";break;case"disconnected":"stable"===this.pc.signalingState?this.connectionState="interrupted":this.connectionState="disconnected";break;case"failed":this.connectionState="failed",this.end("failed-transport");break;case"closed":this.connectionState="disconnected"}},onChannelAdded:function(e){this.receiver.receive(null,e)},onSessionInitiate:function(e,t){var n=this;this._log("info","Initiating incoming session"),this.state="pending",this.pc.isInitiator=!1;var r=e.contents[0].application;this.receiver=new i.Receiver({hash:r.offer.hash.algo}),this.receiver.on("progress",function(e,t){n._log("info","Receive progress "+e+"/"+t)}),this.receiver.on("receivedFile",function(e){n.receivedFile=e,n.maybeReceivedFile()}),this.receiver.metadata=r.offer,e.contents[0].application={applicationType:"datachannel"},this.pc.handleOffer({type:"offer",jingle:e},function(e){return e?(n._log("error","Could not create WebRTC answer"),t({condition:"general-error"})):void t()})},onSessionAccept:function(e,t){var n=this;this.state="active",e.contents[0].application={applicationType:"datachannel"},this.pc.handleAnswer({type:"answer",jingle:e},function(e){return e?(n._log("error","Could not process WebRTC answer"),t({condition:"general-error"})):(n.emit("accepted",n),void t())})},onSessionTerminate:function(e,t){this._log("info","Terminating session"),this.pc.close(),s.prototype.end.call(this,e.reason,!0),t()},onDescriptionInfo:function(e,t){var n=e.contents[0].application.offer.hash;this.receiver.metadata.hash=n,this.receiver.metadata.actualhash&&this.maybeReceivedFile(),t()},onTransportInfo:function(e,t){this.pc.processIce(e,function(){t()})}}),t.exports=FileTransferSession},{"extend-object":"/stanza.io-8.0.2/node_modules/extend-object/extend-object.js","filetransfer/hashed":"/stanza.io-8.0.2/node_modules/filetransfer/hashed.js","jingle-session":"/stanza.io-8.0.2/node_modules/jingle-session/index.js",rtcpeerconnection:"/stanza.io-8.0.2/node_modules/rtcpeerconnection/rtcpeerconnection.js",util:"/stanza.io-8.0.2/node_modules/util/util.js"}],"/stanza.io-8.0.2/node_modules/jingle-media-session/index.js":[function(e,t,n){function filterContentSources(e,t){"rtp"===e.application.applicationType&&(delete e.transport,delete e.application.payloads,delete e.application.headerExtensions,e.application.mux=!1,e.application.sources&&(e.application.sources=e.application.sources.filter(function(e){return t.id===e.parameters[1].value.split(" ")[0]})),e.application.sourceGroups&&(e.application.sourceGroups=e.application.sourceGroups.filter(function(t){for(var n=!1,r=0;r<e.application.sources.length;r++)if(e.application.sources[r].ssrc===t.sources[0]){n=!0;break}return n})))}function filterUnusedLabels(e){var t=e.application.sources||[];t.forEach(function(e){e.parameters=e.parameters.filter(function(e){return!("mslabel"===e.key||"label"===e.key)})})}function MediaSession(e){s.call(this,e),this.pc=new o({iceServers:e.iceServers||[],useJingle:!0},e.constraints||{}),this.pc.on("ice",this.onIceCandidate.bind(this,e)),this.pc.on("endOfCandidates",this.onIceEndOfCandidates.bind(this,e)),this.pc.on("iceConnectionStateChange",this.onIceStateChange.bind(this)),this.pc.on("addStream",this.onAddStream.bind(this)),this.pc.on("removeStream",this.onRemoveStream.bind(this)),this.pc.on("addChannel",this.onAddChannel.bind(this)),e.stream&&this.addStream(e.stream),this._ringing=!1}var r=e("util"),a=e("extend-object"),s=e("jingle-session"),o=e("rtcpeerconnection");r.inherits(MediaSession,s),Object.defineProperties(MediaSession.prototype,{ringing:{get:function(){return this._ringing},set:function(e){e!==this._ringing&&(this._ringing=e,this.emit("change:ringing",e))}},streams:{get:function(){return"closed"!==this.pc.signalingState?this.pc.getRemoteStreams():[]}}}),MediaSession.prototype=a(MediaSession.prototype,{start:function(e,t){var n=this;this.state="pending",t=t||function(){},this.pc.isInitiator=!0,this.pc.offer(e,function(r,a){return r?(n._log("error","Could not create WebRTC offer",r),n.end("failed-application",!0)):(e&&e.mandatory&&a.jingle.contents.forEach(function(t){var n=t.application.media;t.description&&"rtp"===t.application.applicationType&&(e.mandatory.OfferToReceiveAudio||"audio"!==n||(t.senders="initiator"),e.mandatory.OfferToReceiveVideo||"video"!==n||(t.senders="initiator"))}),a.jingle.contents.forEach(filterUnusedLabels),n.send("session-initiate",a.jingle),void t())})},accept:function(e,t){var n=this;1===arguments.length&&"function"==typeof e&&(t=e,e={}),t=t||function(){},e=e||{};var r=e.constraints||{mandatory:{OfferToReceiveAudio:!0,OfferToReceiveVideo:!0}};this._log("info","Accepted incoming session"),this.state="active",this.pc.answer(r,function(e,r){return e?(n._log("error","Could not create WebRTC answer",e),n.end("failed-application")):(r.jingle.contents.forEach(filterUnusedLabels),n.send("session-accept",r.jingle),void t())})},end:function(e,t){var n=this;this.streams.forEach(function(e){n.onRemoveStream({stream:e})}),this.pc.close(),s.prototype.end.call(this,e,t)},ring:function(){this._log("info","Ringing on incoming session"),this.ringing=!0,this.send("session-info",{ringing:!0})},mute:function(e,t){this._log("info","Muting",t),this.send("session-info",{mute:{creator:e,name:t}})},unmute:function(e,t){this._log("info","Unmuting",t),this.send("session-info",{unmute:{creator:e,name:t}})},hold:function(){this._log("info","Placing on hold"),this.send("session-info",{hold:!0})},resume:function(){this._log("info","Resuming from hold"),this.send("session-info",{active:!0})},addStream:function(e,t,n){var r=this;n=n||function(){},this.pc.addStream(e),t&&this.pc.handleOffer({type:"offer",jingle:this.pc.remoteDescription},function(t){return t?(r._log("error","Could not create offer for adding new stream"),n(t)):void r.pc.answer(function(t,a){return t?(r._log("error","Could not create answer for adding new stream"),n(t)):(a.jingle.contents.forEach(function(t){filterContentSources(t,e)}),a.jingle.contents=a.jingle.contents.filter(function(e){return"rtp"===e.application.applicationType&&e.application.sources&&e.application.sources.length}),delete a.jingle.groups,r.send("source-add",a.jingle),void n())})})},addStream2:function(e,t){this.addStream(e,!0,t)},removeStream:function(e,t,n){var r=this;if(n=n||function(){},!t)return void this.pc.removeStream(e);var a=this.pc.localDescription;a.contents.forEach(function(t){filterContentSources(t,e)}),a.contents=a.contents.filter(function(e){return"rtp"===e.application.applicationType&&e.application.sources&&e.application.sources.length}),delete a.groups,this.send("source-remove",a),this.pc.removeStream(e),this.pc.handleOffer({type:"offer",jingle:this.pc.remoteDescription},function(e){return e?(r._log("error","Could not process offer for removing stream"),n(e)):void r.pc.answer(function(e){return e?(r._log("error","Could not process answer for removing stream"),n(e)):void n()})})},removeStream2:function(e,t){this.removeStream(e,!0,t)},switchStream:function(e,t,n){var r=this;n=n||function(){};var a=this.pc.localDescription;a.contents.forEach(function(e){delete e.transport,delete e.application.payloads}),this.pc.removeStream(e),this.send("source-remove",a),this.pc.addStream(t),this.pc.handleOffer({type:"offer",jingle:this.pc.remoteDescription},function(e){return e?(r._log("error","Could not process offer for switching streams"),n(e)):void r.pc.answer(function(e,t){return e?(r._log("error","Could not process answer for switching streams"),n(e)):(t.jingle.contents.forEach(function(e){delete e.transport,delete e.application.payloads}),r.send("source-add",t.jingle),void n())})})},onIceCandidate:function(e,t){this._log("info","Discovered new ICE candidate",t.jingle),this.send("transport-info",t.jingle),e.signalEndOfCandidates&&(this.lastCandidate=t)},onIceEndOfCandidates:function(e){if(this._log("info","ICE end of candidates"),e.signalEndOfCandidates){var t=this.lastCandidate.jingle;t.contents[0].transport={transportType:t.contents[0].transport.transportType,gatheringComplete:!0},this.lastCandidate=null,this.send("transport-info",t)}},onIceStateChange:function(){switch(this.pc.iceConnectionState){case"checking":this.connectionState="connecting";break;case"completed":case"connected":this.connectionState="connected";break;case"disconnected":"stable"===this.pc.signalingState?this.connectionState="interrupted":this.connectionState="disconnected";break;case"failed":this.connectionState="failed",this.end("failed-transport");break;case"closed":this.connectionState="disconnected"}},onAddStream:function(e){this._log("info","Stream added"),this.emit("peerStreamAdded",this,e.stream)},onRemoveStream:function(e){this._log("info","Stream removed"),this.emit("peerStreamRemoved",this,e.stream)},onSessionInitiate:function(e,t){var n=this;this._log("info","Initiating incoming session"),this.state="pending",this.pc.isInitiator=!1,this.pc.handleOffer({type:"offer",jingle:e},function(e){return e?(n._log("error","Could not create WebRTC answer"),t({condition:"general-error"})):void t()})},onSessionAccept:function(e,t){var n=this;this.state="active",this.pc.handleAnswer({type:"answer",jingle:e},function(e){return e?(n._log("error","Could not process WebRTC answer"),t({condition:"general-error"})):(n.emit("accepted",n),void t())})},onSessionTerminate:function(e,t){var n=this;this._log("info","Terminating session"),this.streams.forEach(function(e){n.onRemoveStream({stream:e})}),this.pc.close(),s.prototype.end.call(this,e.reason,!0),t()},onSessionInfo:function(e,t){return e.ringing?(this._log("info","Outgoing session is ringing"),this.ringing=!0,this.emit("ringing",this),t()):e.hold?(this._log("info","On hold"),this.emit("hold",this),t()):e.active?(this._log("info","Resuming from hold"),this.emit("resumed",this),t()):e.mute?(this._log("info","Muting",e.mute),this.emit("mute",this,e.mute),t()):e.unmute?(this._log("info","Unmuting",e.unmute),this.emit("unmute",this,e.unmute),t()):void t()},onTransportInfo:function(e,t){this.pc.processIce(e,function(){t()})},onSourceAdd:function(e,t){var n=this;this._log("info","Adding new stream source");var r=this.pc.remoteDescription;this.pc.remoteDescription.contents.forEach(function(t,n){var a=t.application,s=a.sources||[],o=a.sourceGroups||[];e.contents.forEach(function(e){if(t.name===e.name){var a=e.application,i=a.sources||[];s=s.concat(i),r.contents[n].application.sources=JSON.parse(JSON.stringify(s));var c=a.sourceGroups||[];o=o.concat(c),r.contents[n].application.sourceGroups=JSON.parse(JSON.stringify(o))}})}),this.pc.handleOffer({type:"offer",jingle:r},function(e){return e?(n._log("error","Error adding new stream source"),t({condition:"general-error"})):void n.pc.answer(function(e){return e?(n._log("error","Error adding new stream source"),t({condition:"general-error"})):void t()})})},onSourceRemove:function(e,t){var n=this;this._log("info","Removing stream source");var r=this.pc.remoteDescription;this.pc.remoteDescription.contents.forEach(function(t,n){var a=t.application,s=a.sources||[],o=a.sourceGroups||[];e.contents.forEach(function(e){if(t.name===e.name){var a,i,c,l,u=e.application,d=u.sources||[],p=u.sourceGroups||[];for(i=0;i<d.length;i++){for(a=-1,c=0;c<s.length;c++)if(d[i].ssrc===s[c].ssrc){a=c;break}a>-1&&(s.splice(a,1),r.contents[n].application.sources=JSON.parse(JSON.stringify(s)))}for(i=0;i<p.length;i++){for(a=-1,c=0;c<o.length;c++)if(p[i].semantics===o[c].semantics&&p[i].sources.length===o[c].sources.length){var f=!0;for(l=0;l<p[i].sources.length;l++)if(p[i].sources[l]!==o[c].sources[l]){f=!1;break}if(f){a=c;break}}a>-1&&(o.splice(a,1),r.contents[n].application.sourceGroups=JSON.parse(JSON.stringify(o)))}}})}),this.pc.handleOffer({type:"offer",jingle:r},function(e){return e?(n._log("error","Error removing stream source"),t({condition:"general-error"})):void n.pc.answer(function(e){return e?(n._log("error","Error removing stream source"),t({condition:"general-error"})):void t()})})},onAddChannel:function(e){this.emit("addChannel",e)}}),t.exports=MediaSession},{"extend-object":"/stanza.io-8.0.2/node_modules/extend-object/extend-object.js","jingle-session":"/stanza.io-8.0.2/node_modules/jingle-session/index.js",rtcpeerconnection:"/stanza.io-8.0.2/node_modules/rtcpeerconnection/rtcpeerconnection.js",util:"/stanza.io-8.0.2/node_modules/util/util.js"}],"/stanza.io-8.0.2/node_modules/jingle-session/index.js":[function(e,t,n){function JingleSession(e){i.call(this);var t=this;this.sid=e.sid||a.v4(),this.peer=e.peer,this.peerID=e.peerID||this.peer.full||this.peer,this.isInitiator=e.initiator||!1,this.parent=e.parent,this.state="starting",this.connectionState="starting",this.pendingApplicationTypes=e.applicationTypes||[],this.pendingAction=!1,this.processingQueue=s.queue(function(e,n){if(t.ended)return n();var r=e.action,a=e.changes,s=e.cb;return t._log("debug",r),c[r]?void t[c[r]](a,function(e,t){return s(e,t),n()}):(t._log("error","Invalid action: "+r),s({condition:"bad-request"}),n())})}var r=e("util"),a=e("uuid"),s=e("async"),o=e("extend-object"),i=e("wildemitter"),c={"content-accept":"onContentAccept","content-add":"onContentAdd","content-modify":"onConentModify","content-reject":"onContentReject","content-remove":"onContentRemove","description-info":"onDescriptionInfo","security-info":"onSecurityInfo","session-accept":"onSessionAccept","session-info":"onSessionInfo","session-initiate":"onSessionInitiate","session-terminate":"onSessionTerminate","transport-accept":"onTransportAccept","transport-info":"onTransportInfo","transport-reject":"onTransportReject","transport-replace":"onTransportReplace","source-add":"onSourceAdd","source-remove":"onSourceRemove"};r.inherits(JingleSession,i),Object.keys(c).forEach(function(e){var t=c[e];JingleSession.prototype[t]=function(t,n){this._log("error","Unsupported action: "+e),n()}}),Object.defineProperties(JingleSession.prototype,{state:{get:function(){return this._sessionState},set:function(e){if(e!==this._sessionState){var t=this._sessionState;this._log("info","Changing session state to: "+e),this._sessionState=e,this.emit("change:sessionState",this,e),this.emit("change:"+e,this,!0),t&&this.emit("change:"+t,this,!1)}}},connectionState:{get:function(){return this._connectionState},set:function(e){if(e!==this._connectionState){var t=this._connectionState;this._log("info","Changing connection state to: "+e),this._connectionState=e,this.emit("change:connectionState",this,e),this.emit("change:"+e,this,!0),t&&this.emit("change:"+t,this,!1)}}},starting:{get:function(){return"starting"===this._sessionState}},pending:{get:function(){return"pending"===this._sessionState}},active:{get:function(){return"active"===this._sessionState}},ended:{get:function(){return"ended"===this._sessionState}},connected:{get:function(){return"connected"===this._connectionState}},connecting:{get:function(){return"connecting"===this._connectionState}},disconnected:{get:function(){return"disconnected"===this._connectionState}},interrupted:{get:function(){return"interrupted"===this._connectionState}}}),JingleSession.prototype=o(JingleSession.prototype,{_log:function(e,t){t=this.sid+": "+t,this.emit("log:"+e,t)},send:function(e,t){t=t||{},t.sid=this.sid,t.action=e;var n={"session-inititate":!0,"session-accept":!0,"content-add":!0,"content-remove":!0,"content-reject":!0,"content-accept":!0,"content-modify":!0,"transport-replace":!0,"transport-reject":!0,"transport-accept":!0,"source-add":!0,"source-remove":!0};n[e]?this.pendingAction=e:this.pendingAction=!1,this.emit("send",{to:this.peer,type:"set",jingle:t})},process:function(e,t,n){this.processingQueue.push({action:e,changes:t,cb:n})},start:function(){this._log("error","Can not start base sessions"),this.end("unsupported-applications",!0)},accept:function(){this._log("error","Can not accept base sessions"),this.end("unsupported-applications")},cancel:function(){this.end("cancel")},decline:function(){this.end("decline")},end:function(e,t){this.state="ended",this.processingQueue.kill(),e||(e="success"),"string"==typeof e&&(e={condition:e}),t||this.send("session-terminate",{reason:e}),this.emit("terminated",this,e)},onSessionTerminate:function(e,t){this.end(e.reason,!0),t()},onSessionInfo:function(e,t){var n={sid:!0,action:!0,initiator:!0,responder:!0},r=!1;Object.keys(e).forEach(function(e){n[e]||(r=!0)}),r?t({type:"modify",condition:"feature-not-implemented",jingleCondition:"unsupported-info"}):t()},onDescriptionInfo:function(e,t){t({type:"modify",condition:"feature-not-implemented",jingleCondition:"unsupported-info"})},onTransportInfo:function(e,t){t({type:"modify",condition:"feature-not-implemented",jingleCondition:"unsupported-info"})},onContentAdd:function(e,t){t(),this.send("content-reject",{reason:{condition:"failed-application",text:"content-add is not supported"}})},onTransportReplace:function(e,t){t(),this.send("transport-reject",{reason:{condition:"failed-application",text:"transport-replace is not supported"}})}}),t.exports=JingleSession},{async:"/stanza.io-8.0.2/node_modules/async/lib/async.js","extend-object":"/stanza.io-8.0.2/node_modules/extend-object/extend-object.js",util:"/stanza.io-8.0.2/node_modules/util/util.js",uuid:"/stanza.io-8.0.2/node_modules/uuid/uuid.js",wildemitter:"/stanza.io-8.0.2/node_modules/wildemitter/wildemitter.js"}],"/stanza.io-8.0.2/node_modules/jingle/index.js":[function(e,t,n){ | |
function SessionManager(e){s.call(this),e=e||{},this.jid=e.jid,this.selfID=e.selfID||this.jid&&this.jid.full||this.jid||"",this.sessions={},this.peers={},this.prepareSession=e.prepareSession||function(e){return e.applicationTypes.indexOf("rtp")>=0?new c(e):e.applicationTypes.indexOf("filetransfer")>=0?new l(e):void 0},this.performTieBreak=e.performTieBreak||function(e,t){var n=t.jingle.contents.map(function(e){if(e.application)return e.application.applicationType}),r=a(e.pendingApplicationTypes,n);return r.length>0},this.screenSharingSupport=o.screenSharing,this.capabilities=["urn:xmpp:jingle:1"],o.support&&(this.capabilities=["urn:xmpp:jingle:1","urn:xmpp:jingle:apps:rtp:1","urn:xmpp:jingle:apps:rtp:audio","urn:xmpp:jingle:apps:rtp:video","urn:xmpp:jingle:apps:rtp:rtcb-fb:0","urn:xmpp:jingle:apps:rtp:rtp-hdrext:0","urn:xmpp:jingle:apps:rtp:ssma:0","urn:xmpp:jingle:apps:dtls:0","urn:xmpp:jingle:apps:grouping:0","urn:xmpp:jingle:apps:file-transfer:3","urn:xmpp:jingle:transports:ice-udp:1","urn:xmpp:jingle:transports.dtls-sctp:1","urn:ietf:rfc:3264","urn:ietf:rfc:5576","urn:ietf:rfc:5888"]),this.config={debug:!1,peerConnectionConfig:{iceServers:e.iceServers||[{url:"stun:stun.l.google.com:19302"}]},peerConnectionConstraints:{optional:[{DtlsSrtpKeyAgreement:!0},{RtpDataChannels:!1}]},media:{audio:!0,video:!0}};for(var t in e)this.config[t]=e[t];this.iceServers=this.config.peerConnectionConfig.iceServers}var r=e("util"),a=e("intersect"),s=e("wildemitter"),o=e("webrtcsupport"),i=e("jingle-session"),c=e("jingle-media-session"),l=e("jingle-filetransfer-session");r.inherits(SessionManager,s),SessionManager.prototype.addICEServer=function(e){"string"==typeof e&&(e={url:e}),this.iceServers.push(e)},SessionManager.prototype.addSession=function(e){var t=this,n=e.sid,r=e.peerID;return this.sessions[n]=e,this.peers[r]||(this.peers[r]=[]),this.peers[r].push(e),e.on("terminated",function(){var a=t.peers[r]||[];a.length&&a.splice(a.indexOf(e),1),delete t.sessions[n]}),e.on("*",function(n,r,a,s){if("send"===n){var o=r.jingle&&r.jingle.action;e.isInitiator&&"session-initiate"===o&&t.emit("outgoing",e)}!t.config.debug||"log:debug"!==n&&"log:error"!==n||console.log("Jingle:",r,a,s),0!==n.indexOf("change")&&t.emit(n,r,a,s)}),this.emit("createdSession",e),e},SessionManager.prototype.createMediaSession=function(e,t,n){var r=new c({sid:t,peer:e,initiator:!0,stream:n,parent:this,iceServers:this.iceServers,constraints:this.config.peerConnectionConstraints});return this.addSession(r),r},SessionManager.prototype.createFileTransferSession=function(e,t){var n=new l({sid:t,peer:e,initiator:!0,parent:this});return this.addSession(n),n},SessionManager.prototype.endPeerSessions=function(e,t,n){e=e.full||e;var r=this.peers[e]||[];delete this.peers[e],r.forEach(function(e){e.end(t||"gone",n)})},SessionManager.prototype.endAllSessions=function(e,t){var n=this;Object.keys(this.peers).forEach(function(r){n.endPeerSessions(r,e,t)})},SessionManager.prototype._createIncomingSession=function(e,t){var n;return this.prepareSession&&(n=this.prepareSession(e,t)),n||(n=new i(e)),this.addSession(n),n},SessionManager.prototype._sendError=function(e,t,n){n.type||(n.type="cancel"),this.emit("send",{to:e,id:t,type:"error",error:n})},SessionManager.prototype._log=function(e,t){this.emit("log:"+e,t)},SessionManager.prototype.process=function(e){var t=this,n=e.jingle?e.jingle.sid:null,r=this.sessions[n]||null,a=e.id,s=e.from.full||e.from;if("error"===e.type){var o=e.error&&"tie-break"===e.error.jingleCondition;return r&&r.pending&&o?r.end("alternative-session",!0):(r&&(r.pendingAction=!1),this.emit("error",e))}if("result"===e.type)return void(r&&(r.pendingAction=!1));var i=e.jingle.action,c=e.jingle.contents||[],l=c.map(function(e){if(e.application)return e.application.applicationType}),u=c.map(function(e){if(e.transport)return e.transport.transportType});if("session-initiate"!==i){if(!r)return this._log("error","Unknown session",n),this._sendError(s,a,{condition:"item-not-found",jingleCondition:"unknown-session"});if(r.peerID!==s||r.ended)return this._log("error","Session has ended, or action has wrong sender"),this._sendError(s,a,{condition:"item-not-found",jingleCondition:"unknown-session"});if("session-accept"===i&&!r.pending)return this._log("error","Tried to accept session twice",n),this._sendError(s,a,{condition:"unexpected-request",jingleCondition:"out-of-order"});if("session-terminate"!==i&&i===r.pendingAction&&(this._log("error","Tie break during pending request"),r.isInitiator))return this._sendError(s,a,{condition:"conflict",jingleCondition:"tie-break"})}else if(r){if(r.peerID!==s)return this._log("error","Duplicate sid from new sender"),this._sendError(s,a,{condition:"service-unavailable"});if(!r.pending)return this._log("error","Someone is doing this wrong"),this._sendError(s,a,{condition:"unexpected-request",jingleCondition:"out-of-order"});if(this.selfID>r.peerID&&this.performTieBreak(r,e))return this._log("error","Tie break new session because of duplicate sids"),this._sendError(s,a,{condition:"conflict",jingleCondition:"tie-break"})}else if(this.peers[s]&&this.peers[s].length)for(var d=0,p=this.peers[s].length;d<p;d++){var f=this.peers[s][d];if(f&&f.pending&&f.sid>n&&this.performTieBreak(f,e))return this._log("info","Tie break session-initiate"),this._sendError(s,a,{condition:"conflict",jingleCondition:"tie-break"})}if("session-initiate"===i){if(!c.length)return t._sendError(s,a,{condition:"bad-request"});r=this._createIncomingSession({sid:n,peer:e.from,peerID:s,initiator:!1,parent:this,applicationTypes:l,transportTypes:u,iceServers:this.iceServers,constraints:this.config.peerConnectionConstraints},e)}r.process(i,e.jingle,function(n){n?(t._log("error","Could not process request",e,n),t._sendError(s,a,n)):(t.emit("send",{to:s,id:a,type:"result"}),"session-initiate"===i&&t.emit("incoming",r))})},t.exports=SessionManager},{intersect:"/stanza.io-8.0.2/node_modules/intersect/index.js","jingle-filetransfer-session":"/stanza.io-8.0.2/node_modules/jingle-filetransfer-session/index.js","jingle-media-session":"/stanza.io-8.0.2/node_modules/jingle-media-session/index.js","jingle-session":"/stanza.io-8.0.2/node_modules/jingle-session/index.js",util:"/stanza.io-8.0.2/node_modules/util/util.js",webrtcsupport:"/stanza.io-8.0.2/node_modules/webrtcsupport/index-browser.js",wildemitter:"/stanza.io-8.0.2/node_modules/wildemitter/wildemitter.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp-types/lib/index.js":[function(e,t,n){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var r=e("./shortcuts"),a=_interopRequireDefault(r),s=e("./types"),o=_interopRequireDefault(s);n.default=function(e){e.use(o.default),e.use(a.default)},t.exports=n.default},{"./shortcuts":"/stanza.io-8.0.2/node_modules/jxt-xmpp-types/lib/shortcuts.js","./types":"/stanza.io-8.0.2/node_modules/jxt-xmpp-types/lib/types.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp-types/lib/shortcuts.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants"),a={client:r.Namespace.CLIENT,server:r.Namespace.SERVER,component:r.Namespace.COMPONENT};n.default=function(e){e.extendMessage=function(e,t){var n=this;this.withMessage(function(r){n.extend(r,e,t)})},e.extendPresence=function(e,t){var n=this;this.withPresence(function(r){n.extend(r,e,t)})},e.extendIQ=function(e,t){var n=this;this.withIQ(function(r){n.extend(r,e,t)})},e.extendStreamFeatures=function(e){var t=this;this.withStreamFeatures(function(n){t.extend(n,e)})},e.extendPubsubItem=function(e){var t=this;this.withPubsubItem(function(n){t.extend(n,e)})},e.withIQ=function(e){this.withDefinition("iq",r.Namespace.CLIENT,e),this.withDefinition("iq",r.Namespace.COMPONENT,e)},e.withMessage=function(e){this.withDefinition("message",r.Namespace.CLIENT,e),this.withDefinition("message",r.Namespace.COMPONENT,e)},e.withPresence=function(e){this.withDefinition("presence",r.Namespace.CLIENT,e),this.withDefinition("presence",r.Namespace.COMPONENT,e)},e.withStreamFeatures=function(e){this.withDefinition("features",r.Namespace.STREAM,e)},e.withStanzaError=function(e){this.withDefinition("error",r.Namespace.CLIENT,e),this.withDefinition("error",r.Namespace.COMPONENT,e)},e.withDataForm=function(e){this.withDefinition("x",r.Namespace.DATAFORM,e)},e.withPubsubItem=function(e){this.withDefinition("item",r.Namespace.PUBSUB,e),this.withDefinition("item",r.Namespace.PUBSUB_EVENT,e)},e.getMessage=function(){var e=void 0===arguments[0]?"client":arguments[0];return this.getDefinition("message",a[e])},e.getPresence=function(){var e=void 0===arguments[0]?"client":arguments[0];return this.getDefinition("presence",a[e])},e.getIQ=function(){var e=void 0===arguments[0]?"client":arguments[0];return this.getDefinition("iq",a[e])},e.getStreamError=function(){return this.getDefinition("error",r.Namespace.STREAM)},e.getIq=e.getIQ,e.withIq=e.withIQ},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp-types/lib/types.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-jid");n.default=function(e){var t=e.utils;t.jidAttribute=function(e,n){return{get:function get(){var a=new r.JID(t.getAttribute(this.xml,e));return n&&(a.prepped=!0),a},set:function set(n){t.setAttribute(this.xml,e,(n||"").toString())}}},t.jidSub=function(e,n,a){return{get:function get(){var s=new r.JID(t.getSubText(this.xml,e,n));return a&&(s.prepped=!0),s},set:function set(r){t.setSubText(this.xml,e,n,(r||"").toString())}}},t.tzoSub=t.field(function(e,n,r,a){var s=void 0,o=void 0,i=void 0,c=-1,l=t.getSubText(e,n,r);return l?("-"===l.charAt(0)&&(c=1,l=l.slice(1)),i=l.split(":"),s=parseInt(i[0],10),o=parseInt(i[1],10),(60*s+o)*c):a},function(e,n,r,a){var s=void 0,o=void 0,i="-";"number"==typeof a?(a<0&&(a=-a,i="+"),s=a/60,o=a%60,i+=(s<10?"0":"")+s+":"+(o<10?"0":"")+o):i=a,t.setSubText(e,n,r,i)})},t.exports=n.default},{"xmpp-jid":"/stanza.io-8.0.2/node_modules/xmpp-jid/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/addresses.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.utils,n=e.define({name:"_address",namespace:r.Namespace.ADDRESS,element:"address",fields:{jid:t.jidAttribute("jid"),uri:t.attribute("uri"),node:t.attribute("node"),description:t.attribute("desc"),delivered:t.boolAttribute("delivered"),type:t.attribute("type")}}),a=t.subMultiExtension(r.Namespace.ADDRESS,"addresses",n);e.withMessage(function(t){e.add(t,"addresses",a)}),e.withPresence(function(t){e.add(t,"addresses",a)})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/avatar.js":[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(n,"__esModule",{value:!0});var a=e("xmpp-constants"),s=e("lodash.foreach"),o=r(s);n.default=function(e){var t=e.utils,n=e.define({name:"avatar",namespace:a.Namespace.AVATAR_METADATA,element:"info",fields:{id:t.attribute("id"),bytes:t.attribute("bytes"),height:t.attribute("height"),width:t.attribute("width"),type:t.attribute("type","image/png"),url:t.attribute("url")}}),r={get:function get(){var e=t.find(this.xml,a.Namespace.AVATAR_METADATA,"metadata"),r=[];if(e.length){var s=t.find(e[0],a.Namespace.AVATAR_METADATA,"info");(0,o.default)(s,function(e){r.push(new n({},e))})}return r},set:function set(e){var r=t.findOrCreate(this.xml,a.Namespace.AVATAR_METADATA,"metadata");t.setAttribute(r,"xmlns",a.Namespace.AVATAR_METADATA),(0,o.default)(e,function(e){var t=new n(e);r.appendChild(t.xml)})}};e.withPubsubItem(function(n){e.add(n,"avatars",r),e.add(n,"avatarData",t.textSub(a.Namespace.AVATAR_DATA,"data"))})},t.exports=n.default},{"babel-runtime/helpers/interop-require-default":"/stanza.io-8.0.2/node_modules/babel-runtime/helpers/interop-require-default.js","lodash.foreach":"/stanza.io-8.0.2/node_modules/lodash.foreach/index.js","xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/bind.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.utils,n=e.define({name:"bind",namespace:r.Namespace.BIND,element:"bind",fields:{resource:t.textSub(r.Namespace.BIND,"resource"),jid:t.jidSub(r.Namespace.BIND,"jid")}});e.extendIQ(n),e.extendStreamFeatures(n)},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/blocking.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants"),a=e("xmpp-jid");n.default=function(e){var t=e.utils,n={get:function get(){var e=[],n=t.find(this.xml,r.Namespace.BLOCKING,"item");return n.length?(n.forEach(function(n){e.push(new a.JID(t.getAttribute(n,"jid","")))}),e):e},set:function set(e){var n=this;e.forEach(function(e){var a=t.createElement(r.Namespace.BLOCKING,"item",r.Namespace.BLOCKING);t.setAttribute(a,"jid",e.toString()),n.xml.appendChild(a)})}},s=e.define({name:"block",namespace:r.Namespace.BLOCKING,element:"block",fields:{jids:n}}),o=e.define({name:"unblock",namespace:r.Namespace.BLOCKING,element:"unblock",fields:{jids:n}}),i=e.define({name:"blockList",namespace:r.Namespace.BLOCKING,element:"blocklist",fields:{jids:n}});e.extendIQ(s),e.extendIQ(o),e.extendIQ(i)},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js","xmpp-jid":"/stanza.io-8.0.2/node_modules/xmpp-jid/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/bob.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.utils,n=e.define({name:"bob",namespace:r.Namespace.BOB,element:"data",fields:{cid:t.attribute("cid"),maxAge:t.numberAttribute("max-age"),type:t.attribute("type"),data:t.text()}});e.extendIQ(n),e.extendMessage(n),e.extendPresence(n)},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/bookmarks.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.utils,n=e.define({name:"_conference",namespace:r.Namespace.BOOKMARKS,element:"conference",fields:{name:t.attribute("name"),autoJoin:t.boolAttribute("autojoin"),jid:t.jidAttribute("jid"),nick:t.textSub(r.Namespace.BOOKMARKS,"nick")}}),a=e.define({name:"bookmarks",namespace:r.Namespace.BOOKMARKS,element:"storage"});e.extend(a,n,"conferences"),e.withDefinition("query",r.Namespace.PRIVATE,function(t){e.extend(t,a)})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/bosh.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.utils;e.define({name:"bosh",namespace:r.Namespace.BOSH,element:"body",prefixes:{xmpp:r.Namespace.BOSH_XMPP},fields:{accept:t.attribute("accept"),ack:t.numberAttribute("ack"),authid:t.attribute("authid"),charsets:t.attribute("charsets"),condition:t.attribute("condition"),content:t.attribute("content"),from:t.jidAttribute("from",!0),hold:t.numberAttribute("hold"),inactivity:t.numberAttribute("inactivity"),key:t.attribute("key"),maxpause:t.numberAttribute("maxpause"),newKey:t.attribute("newkey"),pause:t.numberAttribute("pause"),polling:t.numberAttribute("polling"),resport:t.numberAttribute("report"),requests:t.numberAttribute("requests"),rid:t.numberAttribute("rid"),sid:t.attribute("sid"),stream:t.attribute("stream"),time:t.attribute("time"),to:t.jidAttribute("to",!0),type:t.attribute("type"),ver:t.attribute("ver"),wait:t.numberAttribute("wait"),uri:t.textSub(r.Namespace.BOSH,"uri"),lang:t.langAttribute(),version:t.attribute("xmpp:version","1.0"),restart:t.attribute("xmpp:restart"),restartLogic:t.boolAttribute("xmpp:restartLogic"),payload:{get:function get(){for(var t=[],n=0,r=this.xml.childNodes.length;n<r;n++){var a=e.build(this.xml.childNodes[n]);void 0!==a&&t.push(a)}return t},set:function set(e){var t=this;e.forEach(function(e){t.xml.appendChild(e.xml)})}}}})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/carbons.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.define({name:"carbonSent",eventName:"carbon:sent",namespace:r.Namespace.CARBONS_2,element:"sent"}),n=e.define({name:"carbonReceived",eventName:"carbon:received",namespace:r.Namespace.CARBONS_2,element:"received"}),a=e.define({name:"carbonPrivate",eventName:"carbon:private",namespace:r.Namespace.CARBONS_2,element:"private"}),s=e.define({name:"enableCarbons",namespace:r.Namespace.CARBONS_2,element:"enable"}),o=e.define({name:"disableCarbons",namespace:r.Namespace.CARBONS_2,element:"disable"});e.withDefinition("forwarded",r.Namespace.FORWARD_0,function(r){e.extend(t,r),e.extend(n,r)}),e.extendMessage(t),e.extendMessage(n),e.extendMessage(a),e.extendIQ(s),e.extendIQ(o)},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/command.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants"),a=["next","prev","complete","cancel"],s=["bad-action","bad-locale","bad-payload","bad-sessionid","malformed-action","session-expired"];n.default=function(e){var t=e.utils,n=e.define({name:"command",namespace:r.Namespace.ADHOC_COMMANDS,element:"command",fields:{action:t.attribute("action"),node:t.attribute("node"),sessionid:t.attribute("sessionid"),status:t.attribute("status"),execute:t.subAttribute(r.Namespace.ADHOC_COMMANDS,"actions","execute"),actions:{get:function get(){var e=[],n=t.find(this.xml,r.Namespace.ADHOC_COMMANDS,"actions");return n.length?(a.forEach(function(a){var s=t.find(n[0],r.Namespace.ADHOC_COMMANDS,a);s.length&&e.push(a)}),e):[]},set:function set(e){for(var n=t.findOrCreate(this.xml,r.Namespace.ADHOC_COMMANDS,"actions"),a=0,s=n.childNodes.length;a<s;a++)n.removeChild(n.childNodes[a]);e.forEach(function(e){n.appendChild(t.createElement(r.Namespace.ADHOC_COMMANDS,e.toLowerCase(),r.Namespace.ADHOC_COMMANDS))})}}}}),o=e.define({name:"_commandNote",namespace:r.Namespace.ADHOC_COMMANDS,element:"note",fields:{type:t.attribute("type"),value:t.text()}});e.extend(n,o,"notes"),e.extendIQ(n),e.withStanzaError(function(n){e.add(n,"adhocCommandCondition",t.enumSub(r.Namespace.ADHOC_COMMANDS,s))}),e.withDataForm(function(t){e.extend(n,t)})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/csi.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.define({name:"clientStateIndication",namespace:r.Namespace.CSI,element:"csi"});e.define({name:"csiActive",eventName:"csi:active",namespace:r.Namespace.CSI,element:"active",topLevel:!0}),e.define({name:"csiInactive",eventName:"csi:inactive",namespace:r.Namespace.CSI,element:"inactive",topLevel:!0}),e.extendStreamFeatures(t)},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/dataforms.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants"),a=e("xmpp-jid"),s=["text-single","text-private","list-single","jid-single"];n.default=function(e){var t=e.utils,n=e.define({name:"_field",namespace:r.Namespace.DATAFORM,element:"field",init:function init(e){this._type=(e||{}).type||this.type},fields:{type:{get:function get(){return t.getAttribute(this.xml,"type","text-single")},set:function set(e){this._type=e,t.setAttribute(this.xml,"type",e)}},name:t.attribute("var"),desc:t.textSub(r.Namespace.DATAFORM,"desc"),required:t.boolSub(r.Namespace.DATAFORM,"required"),label:t.attribute("label"),value:{get:function get(){var e=t.getMultiSubText(this.xml,r.Namespace.DATAFORM,"value");return"boolean"===this._type?"1"===e[0]||"true"===e[0]:e.length>1?"text-multi"===this._type?e.join("\n"):"jid-multi"===this._type?e.map(function(e){return new a.JID(e)}):e:s.indexOf(this._type)>=0?"jid-single"===this._type?new a.JID(e[0]):e[0]:e},set:function set(e){if("boolean"===this._type||e===!0||e===!1){var n=e===!0||"true"===e||"1"===e,a=t.createElement(r.Namespace.DATAFORM,"value",r.Namespace.DATAFORM);a.textContent=n?"1":"0",this.xml.appendChild(a)}else"text-multi"===this._type&&"string"==typeof e&&(e=e.split("\n")),t.setMultiSubText(this.xml,r.Namespace.DATAFORM,"value",e,function(e){var n=t.createElement(r.Namespace.DATAFORM,"value",r.Namespace.DATAFORM);n.textContent=e,this.xml.appendChild(n)}.bind(this))}}}}),o=e.define({name:"_formoption",namespace:r.Namespace.DATAFORM,element:"option",fields:{label:t.attribute("label"),value:t.textSub(r.Namespace.DATAFORM,"value")}}),i=e.define({name:"_formitem",namespace:r.Namespace.DATAFORM,element:"item"}),c=e.define({name:"media",element:"media",namespace:r.Namespace.DATAFORM_MEDIA,fields:{height:t.numberAttribute("height"),width:t.numberAttribute("width")}}),l=e.define({name:"_mediaURI",element:"uri",namespace:r.Namespace.DATAFORM_MEDIA,fields:{uri:t.text(),type:t.attribute("type")}}),u=e.define({name:"validation",element:"validate",namespace:r.Namespace.DATAFORM_VALIDATION,fields:{dataType:t.attribute("datatype"),basic:t.boolSub(r.Namespace.DATAFORM_VALIDATION,"basic"),open:t.boolSub(r.Namespace.DATAFORM_VALIDATION,"open"),regex:t.textSub(r.Namespace.DATAFORM_VALIDATION,"regex")}}),d=e.define({name:"range",element:"range",namespace:r.Namespace.DATAFORM_VALIDATION,fields:{min:t.attribute("min"),max:t.attribute("max")}}),p=e.define({name:"select",element:"list-range",namespace:r.Namespace.DATAFORM_VALIDATION,fields:{min:t.numberAttribute("min"),max:t.numberAttribute("max")}}),f={get:function get(){for(var e=[],t=0,n=this.xml.childNodes.length;t<n;t++){var a=this.xml.childNodes[t];if(a.namespaceURI===r.Namespace.DATAFORM_LAYOUT)switch(a.localName){case"text":e.push({text:a.textContent});break;case"fieldref":e.push({field:a.getAttribute("var")});break;case"reportedref":e.push({reported:!0});break;case"section":e.push({section:new m(null,a,this).toJSON()})}}return e},set:function set(e){for(var n=0,a=e.length;n<a;n++){var s=e[n];if(s.text){var o=t.createElement(r.Namespace.DATAFORM_LAYOUT,"text",r.Namespace.DATAFORM_LAYOUT);o.textContent=s.text,this.xml.appendChild(o)}if(s.field){var i=t.createElement(r.Namespace.DATAFORM_LAYOUT,"fieldref",r.Namespace.DATAFORM_LAYOUT);i.setAttribute("var",s.field),this.xml.appendChild(i)}if(s.reported&&this.xml.appendChild(t.createElement(r.Namespace.DATAFORM_LAYOUT,"reportedref",r.Namespace.DATAFORM_LAYOUT)),s.section){var c=t.createElement(r.Namespace.DATAFORM_LAYOUT,"section",r.Namespace.DATAFORM_LAYOUT);this.xml.appendChild(c);var l=new m(null,c);l.label=s.section.label,l.contents=s.section.contents}}}},m=e.define({name:"_section",element:"section",namespace:r.Namespace.DATAFORM_LAYOUT,fields:{label:t.attribute("label"),contents:f}}),h=e.define({name:"_page",element:"page",namespace:r.Namespace.DATAFORM_LAYOUT,fields:{label:t.attribute("label"),contents:f}}),b=e.define({name:"form",namespace:r.Namespace.DATAFORM,element:"x",init:function init(){if(this.reportedFields.length){var e={};this.reportedFields.forEach(function(t){e[t.name]=t.type}),this.items.forEach(function(t){t.fields.forEach(function(t){t.type=t._type=e[t.name]})})}},fields:{title:t.textSub(r.Namespace.DATAFORM,"title"),instructions:t.multiTextSub(r.Namespace.DATAFORM,"instructions"),type:t.attribute("type","form"),reportedFields:t.subMultiExtension(r.Namespace.DATAFORM,"reported",n)}});e.extend(b,n,"fields"),e.extend(b,i,"items"),e.extend(b,h,"layout"),e.extend(n,c),e.extend(n,u),e.extend(n,o,"options"),e.extend(i,n,"fields"),e.extend(c,l,"uris"),e.extend(u,d),e.extend(u,p),e.extendMessage(b)},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js","xmpp-jid":"/stanza.io-8.0.2/node_modules/xmpp-jid/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/delayed.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.utils,n=e.define({name:"delay",namespace:r.Namespace.DELAY,element:"delay",fields:{from:t.jidAttribute("from"),stamp:t.dateAttribute("stamp"),reason:t.text()}});e.extendMessage(n),e.extendPresence(n)},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/disco.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.utils,n=e.define({name:"caps",namespace:r.Namespace.CAPS,element:"c",fields:{ver:t.attribute("ver"),node:t.attribute("node"),hash:t.attribute("hash"),ext:t.attribute("ext")}}),a=e.define({name:"discoInfo",namespace:r.Namespace.DISCO_INFO,element:"query",fields:{node:t.attribute("node"),features:t.multiSubAttribute(r.Namespace.DISCO_INFO,"feature","var")}}),s=e.define({name:"_discoIdentity",namespace:r.Namespace.DISCO_INFO,element:"identity",fields:{category:t.attribute("category"),type:t.attribute("type"),name:t.attribute("name"),lang:t.langAttribute()}}),o=e.define({name:"discoItems",namespace:r.Namespace.DISCO_ITEMS,element:"query",fields:{node:t.attribute("node")}}),i=e.define({name:"_discoItem",namespace:r.Namespace.DISCO_ITEMS,element:"item",fields:{jid:t.jidAttribute("jid"),node:t.attribute("node"),name:t.attribute("name")}});e.extend(o,i,"items"),e.extend(a,s,"identities"),e.extendIQ(a),e.extendIQ(o),e.extendPresence(n),e.extendStreamFeatures(n),e.withDataForm(function(t){e.extend(a,t,"extensions")}),e.withDefinition("set",r.Namespace.RSM,function(t){e.extend(o,t)})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/error.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants"),a=["bad-request","conflict","feature-not-implemented","forbidden","gone","internal-server-error","item-not-found","jid-malformed","not-acceptable","not-allowed","not-authorized","payment-required","recipient-unavailable","redirect","registration-required","remote-server-not-found","remote-server-timeout","resource-constraint","service-unavailable","subscription-required","undefined-condition","unexpected-request"];n.default=function(e){var t=e.utils,n=e.define({name:"error",namespace:r.Namespace.CLIENT,element:"error",fields:{lang:{get:function get(){return(this.parent||{}).lang||""}},condition:t.enumSub(r.Namespace.STANZA_ERROR,a),gone:{get:function get(){return t.getSubText(this.xml,r.Namespace.STANZA_ERROR,"gone")},set:function set(e){this.condition="gone",t.setSubText(this.xml,r.Namespace.STANZA_ERROR,"gone",e)}},redirect:{get:function get(){return t.getSubText(this.xml,r.Namespace.STANZA_ERROR,"redirect")},set:function set(e){this.condition="redirect",t.setSubText(this.xml,r.Namespace.STANZA_ERROR,"redirect",e)}},code:t.attribute("code"),type:t.attribute("type"),by:t.jidAttribute("by"),$text:{get:function get(){return t.getSubLangText(this.xml,r.Namespace.STANZA_ERROR,"text",this.lang)}},text:{get:function get(){var e=this.$text;return e[this.lang]||""},set:function set(e){t.setSubLangText(this.xml,r.Namespace.STANZA_ERROR,"text",e,this.lang)}}}});e.extendMessage(n),e.extendPresence(n),e.extendIQ(n)},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/extdisco.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.utils,a=n.Services=e.define({name:"services",namespace:r.Namespace.DISCO_EXTERNAL_1,element:"services",fields:{type:t.attribute("type")}}),s=n.Credentials=e.define({name:"credentials",namespace:r.Namespace.DISCO_EXTERNAL_1,element:"credentials"}),o=e.define({name:"service",namespace:r.Namespace.DISCO_EXTERNAL_1,element:"service",fields:{host:t.attribute("host"),port:t.attribute("port"),transport:t.attribute("transport"),type:t.attribute("type"),username:t.attribute("username"),password:t.attribute("password")}});e.extend(a,o,"services"),e.extend(s,o),e.extendIQ(a),e.extendIQ(s),e.withDataForm(function(t){e.extend(o,t)})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/file.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants"),a=r.Namespace.FILE_TRANSFER_4;n.default=function(e){var t=e.utils,n=e.define({name:"file",namespace:a,element:"file",fields:{name:t.textSub(a,"name"),description:t.textSub(a,"desc"),mediaType:t.textSub(a,"media-type"),size:t.numberSub(a,"size"),date:t.dateSub(a,"date")}}),s=e.define({name:"range",namespace:a,element:"range",fields:{offset:t.numberAttribute("offset"),length:t.numberAttribute("length")}}),o=e.define({name:"_"+a,namespace:a,element:"description",tags:["jingle-application"],fields:{applicationType:{value:a}}}),i=e.define({name:"_{"+a+"}received",namespace:a,element:"received",tags:["jingle-info"],fields:{infoType:{value:"{"+a+"}received"},creator:t.attribute("creator"),name:t.attribute("name")}}),c=e.define({name:"_{"+a+"}checksum",namespace:a,element:"checksum",tags:["jingle-info"],fields:{infoType:{value:"{"+a+"}checksum"},creator:t.attribute("creator"),name:t.attribute("name")}});e.extend(n,s),e.extend(c,n),e.extend(o,n),e.withDefinition("hash",r.Namespace.HASHES_1,function(t){e.extend(n,t,"hashes"),e.extend(s,t,"hashes")}),e.withDefinition("content",r.Namespace.JINGLE_1,function(t){e.extend(t,o)}),e.withDefinition("jingle",r.Namespace.JINGLE_1,function(t){e.extend(t,i),e.extend(t,c)})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/file3.js":[function(e,t,n){ | |
"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants"),a=r.Namespace.FILE_TRANSFER_3;n.default=function(e){var t=e.utils,n=e.define({name:"_file",namespace:a,element:"file",fields:{name:t.textSub(a,"name"),desc:t.textSub(a,"desc"),size:t.numberSub(a,"size"),date:t.dateSub(a,"date")}}),s=e.define({name:"range",namespace:a,element:"range",fields:{offset:t.numberAttribute("offset")}}),o=e.define({name:"thumbnail",namespace:r.Namespace.THUMBS_0,element:"thumbnail",fields:{cid:t.attribute("cid"),mimeType:t.attribute("mime-type"),width:t.numberAttribute("width"),height:t.numberAttribute("height")}}),i=e.define({name:"_filetransfer",namespace:a,element:"description",tags:["jingle-application"],fields:{applicationType:{value:"filetransfer"},offer:t.subExtension("offer",a,"offer",n),request:t.subExtension("request",a,"request",n)}});e.extend(n,s),e.extend(n,o),e.withDefinition("hash",r.Namespace.HASHES_1,function(t){e.extend(n,t,"hashes")}),e.withDefinition("content",r.Namespace.JINGLE_1,function(t){e.extend(t,i)})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/forwarded.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.define({name:"forwarded",namespace:r.Namespace.FORWARD_0,element:"forwarded"});e.withMessage(function(n){e.extend(n,t),e.extend(t,n)}),e.withPresence(function(n){e.extend(n,t),e.extend(t,n)}),e.withIQ(function(n){e.extend(n,t),e.extend(t,n)}),e.withDefinition("delay",r.Namespace.DELAY,function(n){e.extend(t,n)})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/framing.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.utils;e.define({name:"openStream",namespace:r.Namespace.FRAMING,element:"open",topLevel:!0,fields:{lang:t.langAttribute(),id:t.attribute("id"),version:t.attribute("version","1.0"),to:t.jidAttribute("to",!0),from:t.jidAttribute("from",!0)}}),e.define({name:"closeStream",namespace:r.Namespace.FRAMING,element:"close",topLevel:!0,fields:{seeOtherURI:t.attribute("see-other-uri")}})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/geoloc.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.utils,n=e.define({name:"geoloc",namespace:r.Namespace.GEOLOC,element:"geoloc",fields:{accuracy:t.numberSub(r.Namespace.GEOLOC,"accuracy",!0),altitude:t.numberSub(r.Namespace.GEOLOC,"alt",!0),area:t.textSub(r.Namespace.GEOLOC,"area"),heading:t.numberSub(r.Namespace.GEOLOC,"bearing",!0),bearing:t.numberSub(r.Namespace.GEOLOC,"bearing",!0),building:t.textSub(r.Namespace.GEOLOC,"building"),country:t.textSub(r.Namespace.GEOLOC,"country"),countrycode:t.textSub(r.Namespace.GEOLOC,"countrycode"),datum:t.textSub(r.Namespace.GEOLOC,"datum"),description:t.textSub(r.Namespace.GEOLOC,"description"),error:t.numberSub(r.Namespace.GEOLOC,"error",!0),floor:t.textSub(r.Namespace.GEOLOC,"floor"),latitude:t.numberSub(r.Namespace.GEOLOC,"lat",!0),locality:t.textSub(r.Namespace.GEOLOC,"locality"),longitude:t.numberSub(r.Namespace.GEOLOC,"lon",!0),postalcode:t.textSub(r.Namespace.GEOLOC,"postalcode"),region:t.textSub(r.Namespace.GEOLOC,"region"),room:t.textSub(r.Namespace.GEOLOC,"room"),speed:t.numberSub(r.Namespace.GEOLOC,"speed",!0),street:t.textSub(r.Namespace.GEOLOC,"street"),text:t.textSub(r.Namespace.GEOLOC,"text"),timestamp:t.dateSub(r.Namespace.GEOLOC,"timestamp"),tzo:t.tzoSub(r.Namespace.GEOLOC,"tzo"),uri:t.textSub(r.Namespace.GEOLOC,"uri")}});e.extendPubsubItem(n)},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/hash.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){e.define({name:"hash",namespace:r.Namespace.HASHES_1,element:"hash",fields:{algo:e.utils.attribute("algo"),value:e.utils.text()}})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/hats.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.define({name:"_hat",namespace:r.Namespace.HATS_0,element:"hat",fields:{lang:e.utils.langAttribute(),name:e.utils.attribute("name"),displayName:e.utils.attribute("displayName")}});e.withPresence(function(n){e.add(n,"hats",e.utils.subMultiExtension(r.Namespace.HATS_0,"hats",t))})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/ibb.js":[function(e,t,n){(function(r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a=e("xmpp-constants"),s="http://jabber.org/protocol/ibb",o="urn:xmpp:jingle:transports:ibb:1";n.default=function(e){var t=e.utils,n={get:function get(){var e=t.find(this.xml,s,"data");if(e.length)return e=e[0],{action:"data",sid:t.getAttribute(e,"sid"),seq:parseInt(t.getAttribute(e,"seq")||"0",10),data:new r(t.getText(e),"base64")};var n=t.find(this.xml,s,"open");if(n.length){n=n[0];var a=t.getAttribute(n,"stanza");return a="message"!==a,{action:"open",sid:t.getAttribute(n,"sid"),blockSize:t.getAttribute(n,"block-size"),ack:a}}var o=t.find(this.xml,s,"close");return o.length?{action:"close",sid:t.getAttribute(o[0],"sid")}:void 0},set:function set(e){if("data"===e.action){var n=t.createElement(s,"data");t.setAttribute(n,"sid",e.sid),t.setAttribute(n,"seq",e.seq.toString()),t.setText(n,e.data.toString("base64")),this.xml.appendChild(n)}if("open"===e.action){var r=t.createElement(s,"open");t.setAttribute(r,"sid",e.sid),t.setAttribute(r,"block-size",(e.blockSize||"4096").toString()),e.ack===!1?t.setAttribute(r,"stanza","message"):t.setAttribute(r,"stanza","iq"),this.xml.appendChild(r)}if("close"===e.action){var a=t.createElement(s,"close");t.setAttribute(a,"sid",e.sid),this.xml.appendChild(a)}}},i=e.define({name:"_"+o,namespace:o,element:"transport",tags:["jingle-transport"],fields:{transportType:{value:o},sid:t.attribute("sid"),blockSize:t.numberAttribute("block-size"),ack:{get:function get(){var e=t.getAttribute(this.xml,"stanza");return"message"!==e},set:function set(e){e.ack===!1?t.setAttribute(this.xml,"stanza","message"):t.setAttribute(this.xml,"stanza","iq")}}}});e.withDefinition("content",a.Namespace.JINGLE_1,function(t){e.extend(t,i)}),e.withIQ(function(t){e.add(t,"ibb",n)}),e.withMessage(function(t){e.add(t,"ibb",n)})},t.exports=n.default}).call(this,e("buffer").Buffer)},{buffer:"/stanza.io-8.0.2/node_modules/buffer/index.js","xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/iceUdp.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.utils,n=e.define({name:"_iceUdp",namespace:r.Namespace.JINGLE_ICE_UDP_1,element:"transport",tags:["jingle-transport"],fields:{transportType:{value:"iceUdp"},pwd:t.attribute("pwd"),ufrag:t.attribute("ufrag")}}),a=e.define({name:"remoteCandidate",namespace:r.Namespace.JINGLE_ICE_UDP_1,element:"remote-candidate",fields:{component:t.attribute("component"),ip:t.attribute("ip"),port:t.attribute("port")}}),s=e.define({name:"_iceUdpCandidate",namespace:r.Namespace.JINGLE_ICE_UDP_1,element:"candidate",fields:{component:t.attribute("component"),foundation:t.attribute("foundation"),generation:t.attribute("generation"),id:t.attribute("id"),ip:t.attribute("ip"),network:t.attribute("network"),port:t.attribute("port"),priority:t.attribute("priority"),protocol:t.attribute("protocol"),relAddr:t.attribute("rel-addr"),relPort:t.attribute("rel-port"),tcpType:t.attribute("tcptype"),type:t.attribute("type")}}),o=e.define({name:"_iceFingerprint",namespace:r.Namespace.JINGLE_DTLS_0,element:"fingerprint",fields:{hash:t.attribute("hash"),setup:t.attribute("setup"),value:t.text(),required:t.boolAttribute("required")}}),i=e.define({name:"_sctpMap",namespace:r.Namespace.DTLS_SCTP_1,element:"sctpmap",fields:{number:t.attribute("number"),protocol:t.attribute("protocol"),streams:t.attribute("streams")}});e.extend(n,s,"candidates"),e.extend(n,a),e.extend(n,o,"fingerprints"),e.extend(n,i,"sctp"),e.withDefinition("content",r.Namespace.JINGLE_1,function(t){e.extend(t,n)})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/index.js":[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(n,"__esModule",{value:!0});var a=e("./addresses"),s=r(a),o=e("./avatar"),i=r(o),c=e("./bind"),l=r(c),u=e("./blocking"),d=r(u),p=e("./bob"),f=r(p),m=e("./bookmarks"),h=r(m),b=e("./bosh"),g=r(b),v=e("./carbons"),j=r(v),_=e("./command"),w=r(_),y=e("./csi"),x=r(y),S=e("./dataforms"),E=r(S),D=e("./delayed"),C=r(D),T=e("./disco"),U=r(T),R=e("./error"),O=r(R),A=e("./extdisco"),N=r(A),I=e("./file"),P=r(I),z=e("./file3"),k=r(z),M=e("./forwarded"),L=r(M),B=e("./framing"),F=r(B),q=e("./geoloc"),G=r(q),J=e("./hash"),H=r(J),V=e("./hats"),W=r(V),X=e("./iceUdp"),$=r(X),Y=e("./ibb"),K=r(Y),Q=e("./iq"),Z=r(Q),ee=e("./jidprep"),te=r(ee),ne=e("./jingle"),re=r(ne),ae=e("./json"),se=r(ae),oe=e("./logging"),ie=r(oe),ce=e("./mam"),le=r(ce),ue=e("./message"),de=r(ue),pe=e("./mood"),fe=r(pe),me=e("./muc"),he=r(me),be=e("./nick"),ge=r(be),ve=e("./oob"),je=r(ve),_e=e("./ping"),we=r(_e),ye=e("./presence"),xe=r(ye),Se=e("./private"),Ee=r(Se),De=e("./psa"),Ce=r(De),Te=e("./pubsub"),Ue=r(Te),Re=e("./pubsubError"),Oe=r(Re),Ae=e("./pubsubEvents"),Ne=r(Ae),Ie=e("./pubsubOwner"),Pe=r(Ie),ze=e("./push"),ke=r(ze),Me=e("./reach"),Le=r(Me),Be=e("./register"),Fe=r(Be),qe=e("./roster"),Ge=r(qe),Je=e("./rsm"),He=r(Je),Ve=e("./rtp"),We=r(Ve),Xe=e("./rtt"),$e=r(Xe),Ye=e("./sasl"),Ke=r(Ye),Qe=e("./session"),Ze=r(Qe),et=e("./shim"),tt=r(et),nt=e("./sm"),rt=r(nt),at=e("./stream"),st=r(at),ot=e("./streamError"),it=r(ot),ct=e("./streamFeatures"),lt=r(ct),ut=e("./time"),dt=r(ut),pt=e("./tune"),ft=r(pt),mt=e("./vcard"),ht=r(mt),bt=e("./version"),gt=r(bt),vt=e("./visibility"),jt=r(vt);n.default=function(e){e.use(s.default),e.use(i.default),e.use(l.default),e.use(d.default),e.use(f.default),e.use(h.default),e.use(g.default),e.use(j.default),e.use(w.default),e.use(x.default),e.use(E.default),e.use(C.default),e.use(U.default),e.use(O.default),e.use(N.default),e.use(P.default),e.use(k.default),e.use(L.default),e.use(F.default),e.use(G.default),e.use(H.default),e.use(W.default),e.use($.default),e.use(K.default),e.use(Z.default),e.use(te.default),e.use(re.default),e.use(se.default),e.use(ie.default),e.use(le.default),e.use(de.default),e.use(fe.default),e.use(he.default),e.use(ge.default),e.use(je.default),e.use(we.default),e.use(xe.default),e.use(Ee.default),e.use(Ce.default),e.use(Ue.default),e.use(Oe.default),e.use(Ne.default),e.use(Pe.default),e.use(ke.default),e.use(Le.default),e.use(Fe.default),e.use(Ge.default),e.use(He.default),e.use(We.default),e.use($e.default),e.use(Ke.default),e.use(Ze.default),e.use(tt.default),e.use(rt.default),e.use(st.default),e.use(it.default),e.use(lt.default),e.use(dt.default),e.use(ft.default),e.use(ht.default),e.use(gt.default),e.use(jt.default)},t.exports=n.default},{"./addresses":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/addresses.js","./avatar":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/avatar.js","./bind":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/bind.js","./blocking":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/blocking.js","./bob":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/bob.js","./bookmarks":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/bookmarks.js","./bosh":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/bosh.js","./carbons":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/carbons.js","./command":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/command.js","./csi":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/csi.js","./dataforms":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/dataforms.js","./delayed":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/delayed.js","./disco":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/disco.js","./error":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/error.js","./extdisco":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/extdisco.js","./file":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/file.js","./file3":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/file3.js","./forwarded":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/forwarded.js","./framing":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/framing.js","./geoloc":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/geoloc.js","./hash":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/hash.js","./hats":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/hats.js","./ibb":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/ibb.js","./iceUdp":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/iceUdp.js","./iq":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/iq.js","./jidprep":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/jidprep.js","./jingle":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/jingle.js","./json":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/json.js","./logging":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/logging.js","./mam":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/mam.js","./message":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/message.js","./mood":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/mood.js","./muc":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/muc.js","./nick":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/nick.js","./oob":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/oob.js","./ping":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/ping.js","./presence":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/presence.js","./private":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/private.js","./psa":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/psa.js","./pubsub":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/pubsub.js","./pubsubError":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/pubsubError.js","./pubsubEvents":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/pubsubEvents.js","./pubsubOwner":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/pubsubOwner.js","./push":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/push.js","./reach":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/reach.js","./register":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/register.js","./roster":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/roster.js","./rsm":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/rsm.js","./rtp":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/rtp.js","./rtt":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/rtt.js","./sasl":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/sasl.js","./session":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/session.js","./shim":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/shim.js","./sm":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/sm.js","./stream":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/stream.js","./streamError":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/streamError.js","./streamFeatures":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/streamFeatures.js","./time":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/time.js","./tune":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/tune.js","./vcard":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/vcard.js","./version":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/version.js","./visibility":"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/visibility.js","babel-runtime/helpers/interop-require-default":"/stanza.io-8.0.2/node_modules/babel-runtime/helpers/interop-require-default.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/iq.js":[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/assign").default;Object.defineProperty(n,"__esModule",{value:!0});var a=e("xmpp-constants"),s={};s.defineIQ=function(e,t,n){var a=e.utils,s=e.define({name:t,namespace:n,element:"iq",topLevel:!0,fields:{lang:a.langAttribute(),id:a.attribute("id"),to:a.jidAttribute("to",!0),from:a.jidAttribute("from",!0),type:a.attribute("type")}}),o=s.prototype.toJSON;r(s.prototype,{toJSON:function toJSON(){var e=o.call(this);return e.resultReply=this.resultReply,e.errorReply=this.errorReply,e},resultReply:function resultReply(e){return e=e||{},e.to=this.from,e.id=this.id,e.type="result",new s(e)},errorReply:function errorReply(e){return e=e||{},e.to=this.from,e.id=this.id,e.type="error",new s(e)}})},n.default=function(e){s.defineIQ(e,"iq",a.Namespace.CLIENT),s.defineIQ(e,"serverIQ",a.Namespace.SERVER),s.defineIQ(e,"componentIQ",a.Namespace.COMPONENT)},t.exports=n.default},{"babel-runtime/core-js/object/assign":"/stanza.io-8.0.2/node_modules/babel-runtime/core-js/object/assign.js","xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/jidprep.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants"),a=e("xmpp-jid");n.default=function(e){e.withIQ(function(t){e.add(t,"jidPrep",{get:function get(){var t=e.utils.getSubText(this.xml,r.Namespace.JID_PREP_0,"jid");if(t){var n=new a.JID(t);return n.prepped=!0,n}},set:function set(t){e.utils.setSubText(this.xml,r.Namespace.JID_PREP_0,"jid",(t||"").toString())}})})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js","xmpp-jid":"/stanza.io-8.0.2/node_modules/xmpp-jid/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/jingle.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants"),a=["out-of-order","tie-break","unknown-session","unsupported-info"],s=["alternative-session","busy","cancel","connectivity-error","decline","expired","failed-application","failed-transport","general-error","gone","incompatible-parameters","media-error","security-error","success","timeout","unsupported-applications","unsupported-transports"];n.default=function(e){var t=e.utils,n=e.define({name:"jingle",namespace:r.Namespace.JINGLE_1,element:"jingle",fields:{action:t.attribute("action"),initiator:t.attribute("initiator"),responder:t.attribute("responder"),sid:t.attribute("sid"),info:{get:function get(){for(var n=e.tagged("jingle-info").map(function(e){return e.prototype._name}),r=0,a=n.length;r<a;r++)if(this._extensions[n[r]])return this._extensions[n[r]];if("session-info"===t.getAttribute(this.xml,"action"))return 0===this.xml.children.length?{infoType:"ping"}:{infoType:"unknown"}},set:function set(e){if("ping"!==e.infoType){var t="_"+e.infoType;this[t]=e}}}}}),o=e.define({name:"_jingleContent",namespace:r.Namespace.JINGLE_1,element:"content",fields:{creator:t.attribute("creator"),disposition:t.attribute("disposition","session"),name:t.attribute("name"),senders:t.attribute("senders","both"),application:{get:function get(){for(var t=e.tagged("jingle-application").map(function(e){return e.prototype._name}),n=0,r=t.length;n<r;n++)if(this._extensions[t[n]])return this._extensions[t[n]]},set:function set(e){var t="_"+e.applicationType;this[t]=e}},transport:{get:function get(){for(var t=e.tagged("jingle-transport").map(function(e){return e.prototype._name}),n=0,r=t.length;n<r;n++)if(this._extensions[t[n]])return this._extensions[t[n]]},set:function set(e){var t="_"+e.transportType;this[t]=e}},security:{get:function get(){for(var t=e.tagged("jingle-security").map(function(e){return Security.prototype._name}),n=0,r=t.length;n<r;n++)if(this._extensions[t[n]])return this._extensions[t[n]]},set:function set(e){var t="_"+e.securityType;this[t]=e}}}}),i=e.define({name:"reason",namespace:r.Namespace.JINGLE_1,element:"reason",fields:{condition:t.enumSub(r.Namespace.JINGLE_1,s),alternativeSession:{get:function get(){return t.getSubText(this.xml,r.Namespace.JINGLE_1,"alternative-session")},set:function set(e){this.condition="alternative-session",t.setSubText(this.xml,r.Namespace.JINGLE_1,"alternative-session",e)}},text:t.textSub(r.Namespace.JINGLE_1,"text")}});e.extend(n,o,"contents"),e.extend(n,i),e.extendIQ(n),e.withStanzaError(function(n){e.add(n,"jingleCondition",t.enumSub(r.Namespace.JINGLE_ERRORS_1,a))})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/json.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t={get:function get(){var t=e.utils.getSubText(this.xml,r.Namespace.JSON_0,"json");if(t)return JSON.parse(t)},set:function set(t){t=JSON.stringify(t),t&&e.utils.setSubText(this.xml,r.Namespace.JSON_0,"json",t)}};e.withMessage(function(n){e.add(n,"json",t)}),e.withPubsubItem(function(n){e.add(n,"json",t)})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/logging.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.utils,n=e.define({name:"log",namespace:r.Namespace.EVENTLOG,element:"log",fields:{id:t.attribute("id"),timestamp:t.dateAttribute("timestamp"),type:t.attribute("type"),level:t.attribute("level"),object:t.attribute("object"),subject:t.attribute("subject"),facility:t.attribute("facility"),module:t.attribute("module"),message:t.textSub(r.Namespace.EVENTLOG,"message"),stackTrace:t.textSub(r.Namespace.EVENTLOG,"stackTrace")}}),a=e.define({name:"_logtag",namespace:r.Namespace.EVENTLOG,element:"tag",fields:{name:t.attribute("name"),value:t.attribute("value"),type:t.attribute("type")}});e.extend(n,a,"tags"),e.extendMessage(n),e.extendPubsubItem(n)},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/mam.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants"),a=e("xmpp-jid");n.default=function(e){var t=e.utils,n=e.define({name:"mam",namespace:r.Namespace.MAM_0,element:"query",fields:{queryid:t.attribute("queryid")}}),s=e.define({name:"mamItem",namespace:r.Namespace.MAM_0,element:"result",fields:{queryid:t.attribute("queryid"),id:t.attribute("id")}}),o=e.define({name:"mamResult",namespace:r.Namespace.MAM_0,element:"fin",fields:{queryid:t.attribute("queryid"),complete:t.boolAttribute("complete"),stable:t.boolAttribute("stable")}}),i=e.define({name:"mamPrefs",namespace:r.Namespace.MAM_0,element:"prefs",fields:{defaultCondition:t.attribute("default"),always:{get:function get(){var e=[],n=t.find(this.xml,r.Namespace.MAM_0,"always");if(0===n.length)return e;n=n[0];var s=t.getMultiSubText(n,r.Namespace.MAM_0,"jid");return s.forEach(function(t){e.push(new a.JID(t.textContent))}),e},set:function set(e){if(e.length>0){var n=t.findOrCreate(this.xml,r.Namespace.MAM_0,"always");t.setMultiSubText(n,r.Namespace.MAM_0,"jid",e)}}},never:{get:function get(){var e=[],n=t.find(this.xml,r.Namespace.MAM_0,"always");if(0===n.length)return e;n=n[0];var s=t.getMultiSubText(n,r.Namespace.MAM_0,"jid");return s.forEach(function(t){e.push(new a.JID(t.textContent))}),e},set:function set(e){if(e.length>0){var n=t.findOrCreate(this.xml,r.Namespace.MAM_0,"never");t.setMultiSubText(n,r.Namespace.MAM_0,"jid",e)}}}}});e.extendMessage(s),e.extendMessage(o),e.extendIQ(n),e.extendIQ(i),e.withDataForm(function(t){e.extend(n,t)}),e.withDefinition("forwarded",r.Namespace.FORWARD_0,function(t){e.extend(s,t)}),e.withDefinition("set",r.Namespace.RSM,function(t){e.extend(n,t),e.extend(o,t)})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js","xmpp-jid":"/stanza.io-8.0.2/node_modules/xmpp-jid/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/message.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants"),a={};a.defineMessage=function(e,t,n){var a=e.utils;e.define({name:t,namespace:n,element:"message",topLevel:!0,fields:{lang:a.langAttribute(),id:a.attribute("id"),to:a.jidAttribute("to",!0),from:a.jidAttribute("from",!0),type:a.attribute("type","normal"),thread:a.textSub(n,"thread"),parentThread:a.subAttribute(n,"thread","parent"),subject:a.textSub(n,"subject"),$body:{get:function getBody$(){return a.getSubLangText(this.xml,n,"body",this.lang)}},body:{get:function getBody(){var e=this.$body;return e[this.lang]||""},set:function setBody(e){a.setSubLangText(this.xml,n,"body",e,this.lang)}},attention:a.boolSub(r.Namespace.ATTENTION_0,"attention"),chatState:a.enumSub(r.Namespace.CHAT_STATES,["active","composing","paused","inactive","gone"]),replace:a.subAttribute(r.Namespace.CORRECTION_0,"replace","id"),requestReceipt:a.boolSub(r.Namespace.RECEIPTS,"request"),receipt:a.subAttribute(r.Namespace.RECEIPTS,"received","id")}})},n.default=function(e){a.defineMessage(e,"message",r.Namespace.CLIENT),a.defineMessage(e,"serverMessage",r.Namespace.SERVER),a.defineMessage(e,"componentMessage",r.Namespace.COMPONENT)},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/mood.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants"),a=["afraid","amazed","amorous","angry","annoyed","anxious","aroused","ashamed","bored","brave","calm","cautious","cold","confident","confused","contemplative","contented","cranky","crazy","creative","curious","dejected","depressed","disappointed","disgusted","dismayed","distracted","embarrassed","envious","excited","flirtatious","frustrated","grateful","grieving","grumpy","guilty","happy","hopeful","hot","humbled","humiliated","hungry","hurt","impressed","in_awe","in_love","indignant","interested","intoxicated","invincible","jealous","lonely","lucky","mean","moody","nervous","neutral","offended","outraged","playful","proud","relaxed","relieved","remorseful","restless","sad","sarcastic","serious","shocked","shy","sick","sleepy","spontaneous","stressed","strong","surprised","thankful","thirsty","tired","undefined","weak","worried"];n.default=function(e){var t=e.define({name:"mood",namespace:r.Namespace.MOOD,element:"mood",fields:{text:e.utils.textSub(r.Namespace.MOOD,"text"),value:e.utils.enumSub(r.Namespace.MOOD,a)}});e.extendMessage(t),e.extendPubsubItem(t)},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/muc.js":[function(e,t,n){"use strict";function proxy(e,t){return{get:function get(){if(this._extensions[e])return this[e][t]},set:function set(n){this[e][t]=n}}}Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.utils,n=e.define({name:"_mucUserItem",namespace:r.Namespace.MUC_USER,element:"item",fields:{affiliation:t.attribute("affiliation"),nick:t.attribute("nick"),jid:t.jidAttribute("jid"),role:t.attribute("role"),reason:t.textSub(r.Namespace.MUC_USER,"reason")}}),a=e.define({name:"_mucUserActor",namespace:r.Namespace.MUC_USER,element:"actor",fields:{nick:t.attribute("nick"),jid:t.jidAttribute("jid")}}),s=e.define({name:"destroyed",namespace:r.Namespace.MUC_USER,element:"destroy",fields:{jid:t.jidAttribute("jid"),reason:t.textSub(r.Namespace.MUC_USER,"reason")}}),o=e.define({name:"invite",namespace:r.Namespace.MUC_USER,element:"invite",fields:{to:t.jidAttribute("to"),from:t.jidAttribute("from"),reason:t.textSub(r.Namespace.MUC_USER,"reason"),thread:t.subAttribute(r.Namespace.MUC_USER,"continue","thread"),continue:t.boolSub(r.Namespace.MUC_USER,"continue")}}),i=e.define({name:"decline",namespace:r.Namespace.MUC_USER,element:"decline",fields:{to:t.jidAttribute("to"),from:t.jidAttribute("from"),reason:t.textSub(r.Namespace.MUC_USER,"reason")}}),c=e.define({name:"_mucAdminItem",namespace:r.Namespace.MUC_ADMIN,element:"item",fields:{affiliation:t.attribute("affiliation"),nick:t.attribute("nick"),jid:t.jidAttribute("jid"),role:t.attribute("role"),reason:t.textSub(r.Namespace.MUC_ADMIN,"reason")}}),l=e.define({name:"actor",namespace:r.Namespace.MUC_USER,element:"actor",fields:{nick:t.attribute("nick"),jid:t.jidAttribute("jid")}}),u=e.define({name:"destroy",namespace:r.Namespace.MUC_OWNER,element:"destroy",fields:{jid:t.jidAttribute("jid"),password:t.textSub(r.Namespace.MUC_OWNER,"password"),reason:t.textSub(r.Namespace.MUC_OWNER,"reason")}}),d=e.define({name:"muc",namespace:r.Namespace.MUC_USER,element:"x",fields:{affiliation:proxy("_mucUserItem","affiliation"),nick:proxy("_mucUserItem","nick"),jid:proxy("_mucUserItem","jid"),role:proxy("_mucUserItem","role"),actor:proxy("_mucUserItem","_mucUserActor"),reason:proxy("_mucUserItem","reason"),password:t.textSub(r.Namespace.MUC_USER,"password"),codes:{get:function get(){return t.getMultiSubText(this.xml,r.Namespace.MUC_USER,"status",function(e){ | |
return t.getAttribute(e,"code")})},set:function set(e){var n=this;t.setMultiSubText(this.xml,r.Namespace.MUC_USER,"status",e,function(e){var a=t.createElement(r.Namespace.MUC_USER,"status",r.Namespace.MUC_USER);t.setAttribute(a,"code",e),n.xml.appendChild(a)})}}}}),p=e.define({name:"mucAdmin",namespace:r.Namespace.MUC_ADMIN,element:"query",fields:{affiliation:proxy("_mucAdminItem","affiliation"),nick:proxy("_mucAdminItem","nick"),jid:proxy("_mucAdminItem","jid"),role:proxy("_mucAdminItem","role"),actor:proxy("_mucAdminItem","_mucAdminActor"),reason:proxy("_mucAdminItem","reason")}}),f=e.define({name:"mucOwner",namespace:r.Namespace.MUC_OWNER,element:"query"}),m=e.define({name:"joinMuc",namespace:r.Namespace.MUC,element:"x",fields:{password:t.textSub(r.Namespace.MUC,"password"),history:{get:function get(){var e={},n=t.find(this.xml,r.Namespace.MUC,"history");if(!n.length)return{};n=n[0];var a=n.getAttribute("maxchars")||"",s=n.getAttribute("maxstanzas")||"",o=n.getAttribute("seconds")||"",i=n.getAttribute("since")||"";a&&(e.maxchars=parseInt(a,10)),s&&(e.maxstanzas=parseInt(s,10)),o&&(e.seconds=parseInt(o,10)),i&&(e.since=new Date(i))},set:function set(e){var n=t.find(this.xml,r.Namespace.MUC,"history");if(n.length)for(var a=0;a<n.length;a++)this.xml.removeChild(n[a]);var s=t.createElement(r.Namespace.MUC,"history",r.Namespace.MUC);this.xml.appendChild(s),e.maxchars&&s.setAttribute("maxchars",""+e.maxchars),e.maxstanzas&&s.setAttribute("maxstanzas",""+e.maxstanzas),e.seconds&&s.setAttribute("seconds",""+e.seconds),e.since&&s.setAttribute("since",e.since.toISOString())}}}}),h=e.define({name:"mucInvite",namespace:r.Namespace.MUC_DIRECT_INVITE,element:"x",fields:{jid:t.jidAttribute("jid"),password:t.attribute("password"),reason:t.attribute("reason"),thread:t.attribute("thread"),continue:t.boolAttribute("continue")}});e.extend(n,a),e.extend(d,n),e.extend(d,o,"invites"),e.extend(d,i),e.extend(d,s),e.extend(c,l),e.extend(p,c,"items"),e.extend(f,u),e.extendPresence(d),e.extendPresence(m),e.extendMessage(d),e.extendMessage(h),e.withIQ(function(n){e.add(n,"mucUnique",t.textSub(r.Namespace.MUC_UNIQUE,"unique")),e.extend(n,p),e.extend(n,f)}),e.withDataForm(function(t){e.extend(f,t)})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/nick.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.utils.textSub(r.Namespace.NICK,"nick");e.withPubsubItem(function(n){e.add(n,"nick",t)}),e.withPresence(function(n){e.add(n,"nick",t)}),e.withMessage(function(n){e.add(n,"nick",t)})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/oob.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.define({name:"oob",element:"x",namespace:r.Namespace.OOB,fields:{url:e.utils.textSub(r.Namespace.OOB,"url"),desc:e.utils.textSub(r.Namespace.OOB,"desc")}});e.extendMessage(t,"oobURIs")},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/ping.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.define({name:"ping",namespace:r.Namespace.PING,element:"ping"});e.extendIQ(t)},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/presence.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants"),a={};a.definePresence=function(e,t,n){var a=e.utils;e.define({name:t,namespace:n,element:"presence",topLevel:!0,fields:{lang:a.langAttribute(),id:a.attribute("id"),to:a.jidAttribute("to",!0),from:a.jidAttribute("from",!0),priority:a.numberSub(n,"priority",!1,0),show:a.textSub(n,"show"),type:{get:function get(){return a.getAttribute(this.xml,"type","available")},set:function set(e){"available"===e&&(e=!1),a.setAttribute(this.xml,"type",e)}},$status:{get:function get(){return a.getSubLangText(this.xml,n,"status",this.lang)}},status:{get:function get(){var e=this.$status;return e[this.lang]||""},set:function set(e){a.setSubLangText(this.xml,n,"status",e,this.lang)}},idleSince:a.dateSubAttribute(r.Namespace.IDLE_1,"idle","since"),decloak:a.subAttribute(r.Namespace.DECLOAK_0,"decloak","reason"),avatarId:{get:function get(){var e=a.find(this.xml,r.Namespace.VCARD_TEMP_UPDATE,"x");return e.length?a.getSubText(e[0],r.Namespace.VCARD_TEMP_UPDATE,"photo"):""},set:function set(e){var t=a.findOrCreate(this.xml,r.Namespace.VCARD_TEMP_UPDATE,"x");if(""===e)a.setBoolSub(t,r.Namespace.VCARD_TEMP_UPDATE,"photo",!0);else{if(e===!0)return;e?a.setSubText(t,r.Namespace.VCARD_TEMP_UPDATE,"photo",e):this.xml.removeChild(t)}}}}})},n.default=function(e){a.definePresence(e,"presence",r.Namespace.CLIENT),a.definePresence(e,"serverPresence",r.Namespace.SERVER),a.definePresence(e,"componentPresence",r.Namespace.COMPONENT)},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/private.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.define({name:"privateStorage",namespace:r.Namespace.PRIVATE,element:"query"});e.extendIQ(t)},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/psa.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants"),a=["server-unavailable","connection-paused"];n.default=function(e){var t=e.define({name:"state",namespace:r.Namespace.PSA,element:"state-annotation",fields:{from:e.utils.jidAttribute("from"),condition:e.utils.enumSub(r.Namespace.PSA,a),description:e.utils.textSub(r.Namespace.PSA,"description")}});e.extendPresence(t)},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/pubsub.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.utils,n=e.define({name:"pubsub",namespace:r.Namespace.PUBSUB,element:"pubsub",fields:{create:{get:function get(){var e=t.getSubAttribute(this.xml,r.Namespace.PUBSUB,"create","node");return e?e:t.getBoolSub(this.xml,r.Namespace.PUBSUB,"create")},set:function set(e){e!==!0&&e?t.setSubAttribute(this.xml,r.Namespace.PUBSUB,"create","node",e):t.setBoolSub(this.xml,r.Namespace.PUBSUB,"create",e)}},publishOptions:{get:function get(){var n=e.getDefinition("x",r.Namespace.DATAFORM),a=t.find(this.xml,r.Namespace.PUBSUB,"publish-options");if(a.length&&a[0].childNodes.length)return new n({},a[0].childNodes[0])},set:function set(n){var a=e.getDefinition("x",r.Namespace.DATAFORM),s=t.findOrCreate(this.xml,r.Namespace.PUBSUB,"publish-options");if(n){var o=new a(n);s.appendChild(o.xml)}}}}}),a=e.define({name:"config",namespace:r.Namespace.PUBSUB,element:"configure"}),s=e.define({name:"subscribe",namespace:r.Namespace.PUBSUB,element:"subscribe",fields:{node:t.attribute("node"),jid:t.jidAttribute("jid")}}),o=e.define({name:"subscription",namespace:r.Namespace.PUBSUB,element:"subscription",fields:{node:t.attribute("node"),jid:t.jidAttribute("jid"),subid:t.attribute("subid"),type:t.attribute("subscription"),configurable:t.boolSub("subscribe-options"),configurationRequired:{get:function get(){var e=t.find(this.xml,r.Namespace.PUBSUB,"subscribe-options");return!!e.length&&t.getBoolSub(e[0],r.Namespace.PUBSUB,"required")}}}}),i=e.define({name:"subscriptions",namespace:r.Namespace.PUBSUB,element:"subscriptions",fields:{node:t.attribute("node"),jid:t.jidAttribute("jid")}}),c=e.define({name:"affiliation",namespace:r.Namespace.PUBSUB,element:"affiliation",fields:{node:t.attribute("node"),type:t.attribute("affiliation")}}),l=e.define({name:"affiliations",namespace:r.Namespace.PUBSUB,element:"affiliations",fields:{node:t.attribute("node")}}),u=e.define({name:"subscriptionOptions",namespace:r.Namespace.PUBSUB,element:"options",fields:{node:t.attribute("node"),jid:t.jidAttribute("jid"),subid:t.attribute("subid")}}),d=e.define({name:"unsubscribe",namespace:r.Namespace.PUBSUB,element:"unsubscribe",fields:{node:t.attribute("node"),subid:t.attribute("subid"),jid:t.jidAttribute("jid")}}),p=e.define({name:"publish",namespace:r.Namespace.PUBSUB,element:"publish",fields:{node:t.attribute("node")}}),f=e.define({name:"retract",namespace:r.Namespace.PUBSUB,element:"retract",fields:{node:t.attribute("node"),notify:t.boolAttribute("notify"),id:t.subAttribute(r.Namespace.PUBSUB,"item","id")}}),m=e.define({name:"retrieve",namespace:r.Namespace.PUBSUB,element:"items",fields:{node:t.attribute("node"),max:t.attribute("max_items")}}),h=e.define({name:"item",namespace:r.Namespace.PUBSUB,element:"item",fields:{id:t.attribute("id"),publisher:t.jidAttribute("publisher")}});e.extend(n,a),e.extend(n,s),e.extend(n,d),e.extend(n,p),e.extend(n,f),e.extend(n,m),e.extend(n,o),e.extend(n,u),e.extend(n,i),e.extend(n,l),e.extend(p,h,"items"),e.extend(m,h,"items"),e.extend(i,o,"list"),e.extend(l,c,"list"),e.extendIQ(n),e.withDataForm(function(t){e.extend(u,t),e.extend(h,t),e.extend(a,t)}),e.withDefinition("set",r.Namespace.RSM,function(t){e.extend(n,t)})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/pubsubError.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants"),a=["closed-node","configuration-required","invalid-jid","invalid-options","invalid-payload","invalid-subid","item-forbidden","item-required","jid-required","max-items-exceeded","max-nodes-exceeded","nodeid-required","not-in-roster-group","not-subscribed","payload-too-big","payload-required","pending-subscription","presence-subscription-required","subid-required","too-many-subscriptions","unsupported","unsupported-access-model"];n.default=function(e){e.withStanzaError(function(t){e.add(t,"pubsubCondition",e.utils.enumSub(r.Namespace.PUBSUB_ERRORS,a)),e.add(t,"pubsubUnsupportedFeature",{get:function get(){return e.utils.getSubAttribute(this.xml,r.Namespace.PUBSUB_ERRORS,"unsupported","feature")},set:function set(t){t&&(this.pubsubCondition="unsupported"),e.utils.setSubAttribute(this.xml,r.Namespace.PUBSUB_ERRORS,"unsupported","feature",t)}})})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/pubsubEvents.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.utils,n=e.define({name:"event",namespace:r.Namespace.PUBSUB_EVENT,element:"event"}),a=e.define({name:"purged",namespace:r.Namespace.PUBSUB_EVENT,element:"purge",fields:{node:t.attribute("node")}}),s=e.define({name:"deleted",namespace:r.Namespace.PUBSUB_EVENT,element:"delete",fields:{node:t.attribute("node"),redirect:t.subAttribute(r.Namespace.PUBSUB_EVENT,"redirect","uri")}}),o=e.define({name:"subscriptionChanged",namespace:r.Namespace.PUBSUB_EVENT,element:"subscription",fields:{node:t.attribute("node"),jid:t.jidAttribute("jid"),type:t.attribute("subscription"),subid:t.attribute("subid"),expiry:{get:function get(){var e=t.getAttribute(this.xml,"expiry");return"presence"===e?e:e?new Date(e):void 0},set:function set(e){e&&("string"!=typeof e&&(e=e.toISOString()),t.setAttribute(this.xml,"expiry",e))}}}}),i=e.define({name:"configurationChanged",namespace:r.Namespace.PUBSUB_EVENT,element:"configuration",fields:{node:t.attribute("node")}}),c=e.define({name:"updated",namespace:r.Namespace.PUBSUB_EVENT,element:"items",fields:{node:t.attribute("node"),retracted:{get:function get(){var e=[],n=t.find(this.xml,r.Namespace.PUBSUB_EVENT,"retract");return n.forEach(function(t){e.push(t.getAttribute("id"))}),e},set:function set(e){e.forEach(function(e){var n=t.createElement(r.Namespace.PUBSUB_EVENT,"retract",r.Namespace.PUBSUB_EVENT);n.setAttribute("id",e),this.xml.appendChild(n)})}}}}),l=e.define({name:"_eventItem",namespace:r.Namespace.PUBSUB_EVENT,element:"item",fields:{id:t.attribute("id"),node:t.attribute("node"),publisher:t.jidAttribute("publisher")}});e.extend(c,l,"published"),e.extend(n,c),e.extend(n,o),e.extend(n,i),e.extend(n,s),e.extend(n,a),e.extendMessage(n),e.withDataForm(function(t){e.extend(i,t)})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/pubsubOwner.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.utils,n=e.define({name:"pubsubOwner",namespace:r.Namespace.PUBSUB_OWNER,element:"pubsub",fields:{purge:t.subAttribute(r.Namespace.PUBSUB_OWNER,"purge","node"),del:t.subAttribute(r.Namespace.PUBSUB_OWNER,"delete","node"),redirect:{get:function get(){var e=t.find(this.xml,r.Namespace.PUBSUB_OWNER,"delete");return e.length?t.getSubAttribute(e[0],r.Namespace.PUBSUB_OWNER,"redirect","uri"):""},set:function set(e){var n=t.findOrCreate(this.xml,r.Namespace.PUBSUB_OWNER,"delete");t.setSubAttribute(n,r.Namespace.PUBSUB_OWNER,"redirect","uri",e)}}}}),a=e.define({name:"subscription",namespace:r.Namespace.PUBSUB_OWNER,element:"subscription",fields:{node:t.attribute("node"),jid:t.jidAttribute("jid"),subid:t.attribute("subid"),type:t.attribute("subscription"),configurable:t.boolSub("subscribe-options"),configurationRequired:{get:function get(){var e=t.find(this.xml,r.Namespace.PUBSUB_OWNER,"subscribe-options");return!!e.length&&t.getBoolSub(e[0],r.Namespace.PUBSUB_OWNER,"required")}}}}),s=e.define({name:"subscriptions",namespace:r.Namespace.PUBSUB_OWNER,element:"subscriptions",fields:{node:t.attribute("node")}}),o=e.define({name:"affiliation",namespace:r.Namespace.PUBSUB_OWNER,element:"affiliation",fields:{jid:t.jidAttribute("jid"),type:t.attribute("affiliation")}}),i=e.define({name:"affiliations",namespace:r.Namespace.PUBSUB_OWNER,element:"affiliations",fields:{node:t.attribute("node")}}),c=e.define({name:"config",namespace:r.Namespace.PUBSUB_OWNER,element:"configure",fields:{node:t.attribute("node")}});e.extend(n,c),e.extend(n,s),e.extend(n,i),e.extend(s,a,"list"),e.extend(i,o,"list"),e.extendIQ(n),e.withDataForm(function(t){e.extend(c,t)})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/push.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.utils,n=e.define({name:"enablePush",element:"enable",namespace:r.Namespace.PUSH_0,fields:{jid:t.jidAttribute("jid"),node:t.attribute("node")}}),a=e.define({name:"disablePush",element:"disable",namespace:r.Namespace.PUSH_0,fields:{jid:t.jidAttribute("jid"),node:t.attribute("node")}}),s=e.define({name:"pushNotification",element:"notification",namespace:r.Namespace.PUSH_0});e.withDataForm(function(t){e.extend(s,t),e.extend(n,t)}),e.extendIQ(n),e.extendIQ(a)},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/reach.js":[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(n,"__esModule",{value:!0});var a=e("xmpp-constants"),s=e("lodash.foreach"),o=r(s);n.default=function(e){var t=e.utils,n=e.define({name:"_reachAddr",namespace:a.Namespace.REACH_0,element:"addr",fields:{uri:t.attribute("uri"),$desc:{get:function get(){return t.getSubLangText(this.xml,a.Namespace.REACH_0,"desc",this.lang)}},desc:{get:function get(){var e=this.$desc;return e[this.lang]||""},set:function set(e){t.setSubLangText(this.xml,a.Namespace.REACH_0,"desc",e,this.lang)}}}}),r={get:function get(){var e=t.find(this.xml,a.Namespace.REACH_0,"reach"),r=[];if(e.length){var s=t.find(e[0],a.Namespace.REACH_0,"addr");(0,o.default)(s,function(e){r.push(new n({},e))})}return r},set:function set(e){var r=t.findOrCreate(this.xml,a.Namespace.REACH_0,"reach");t.setAttribute(r,"xmlns",a.Namespace.REACH_0),(0,o.default)(e,function(e){var t=new n(e);r.appendChild(t.xml)})}};e.withPubsubItem(function(t){e.add(t,"reach",r)}),e.withPresence(function(t){e.add(t,"reach",r)})},t.exports=n.default},{"babel-runtime/helpers/interop-require-default":"/stanza.io-8.0.2/node_modules/babel-runtime/helpers/interop-require-default.js","lodash.foreach":"/stanza.io-8.0.2/node_modules/lodash.foreach/index.js","xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/register.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.utils,n=e.define({name:"register",namespace:r.Namespace.REGISTER,element:"query",fields:{instructions:t.textSub(r.Namespace.REGISTER,"instructions"),registered:t.boolSub(r.Namespace.REGISTER,"registered"),remove:t.boolSub(r.Namespace.REGISTER,"remove"),username:t.textSub(r.Namespace.REGISTER,"username"),nick:t.textSub(r.Namespace.REGISTER,"nick"),password:t.textSub(r.Namespace.REGISTER,"password"),name:t.textSub(r.Namespace.REGISTER,"name"),first:t.textSub(r.Namespace.REGISTER,"first"),last:t.textSub(r.Namespace.REGISTER,"last"),email:t.textSub(r.Namespace.REGISTER,"email"),address:t.textSub(r.Namespace.REGISTER,"address"),city:t.textSub(r.Namespace.REGISTER,"city"),state:t.textSub(r.Namespace.REGISTER,"state"),zip:t.textSub(r.Namespace.REGISTER,"zip"),phone:t.textSub(r.Namespace.REGISTER,"phone"),url:t.textSub(r.Namespace.REGISTER,"url"),date:t.textSub(r.Namespace.REGISTER,"date"),misc:t.textSub(r.Namespace.REGISTER,"misc"),text:t.textSub(r.Namespace.REGISTER,"text"),key:t.textSub(r.Namespace.REGISTER,"key")}});e.extendIQ(n),e.withDefinition("x",r.Namespace.OOB,function(t){e.extend(n,t)}),e.withDataForm(function(t){e.extend(n,t)})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/roster.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.utils,n=e.define({name:"roster",namespace:r.Namespace.ROSTER,element:"query",fields:{ver:{get:function get(){return t.getAttribute(this.xml,"ver")},set:function set(e){var n=""===e;t.setAttribute(this.xml,"ver",e,n)}}}}),a=e.define({name:"_rosterItem",namespace:r.Namespace.ROSTER,element:"item",fields:{jid:t.jidAttribute("jid",!0),name:t.attribute("name"),subscription:t.attribute("subscription","none"),subscriptionRequested:{get:function get(){var e=t.getAttribute(this.xml,"ask");return"subscribe"===e}},preApproved:t.boolAttribute(r.Namespace.ROSTER,"approved"),groups:t.multiTextSub(r.Namespace.ROSTER,"group")}});e.extend(n,a,"items"),e.extendIQ(n)},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/rsm.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.utils;e.define({name:"rsm",namespace:r.Namespace.RSM,element:"set",fields:{after:t.textSub(r.Namespace.RSM,"after"),before:{get:function get(){return t.getSubText(this.xml,r.Namespace.RSM,"before")},set:function set(e){e===!0?t.findOrCreate(this.xml,r.Namespace.RSM,"before"):t.setSubText(this.xml,r.Namespace.RSM,"before",e)}},count:t.numberSub(r.Namespace.RSM,"count",!1,0),first:t.textSub(r.Namespace.RSM,"first"),firstIndex:t.subAttribute(r.Namespace.RSM,"first","index"),index:t.textSub(r.Namespace.RSM,"index"),last:t.textSub(r.Namespace.RSM,"last"),max:t.textSub(r.Namespace.RSM,"max")}})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/rtp.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.utils,n={get:function get(){var e=t.find(this.xml,r.Namespace.JINGLE_RTP_RTCP_FB_0,"rtcp-fb"),n=[];return e.forEach(function(e){n.push({type:t.getAttribute(e,"type"),subtype:t.getAttribute(e,"subtype")})}),e=t.find(this.xml,r.Namespace.JINGLE_RTP_RTCP_FB_0,"rtcp-fb-trr-int"),e.forEach(function(e){n.push({type:t.getAttribute(e,"type"),value:t.getAttribute(e,"value")})}),n},set:function set(e){var n=this,a=t.find(this.xml,r.Namespace.JINGLE_RTP_RTCP_FB_0,"rtcp-fb");a.forEach(function(e){n.xml.removeChild(e)}),a=t.find(this.xml,r.Namespace.JINGLE_RTP_RTCP_FB_0,"rtcp-fb-trr-int"),a.forEach(function(e){n.xml.removeChild(e)}),e.forEach(function(e){var a=void 0;"trr-int"===e.type?(a=t.createElement(r.Namespace.JINGLE_RTP_RTCP_FB_0,"rtcp-fb-trr-int",r.Namespace.JINGLE_RTP_1),t.setAttribute(a,"type",e.type),t.setAttribute(a,"value",e.value)):(a=t.createElement(r.Namespace.JINGLE_RTP_RTCP_FB_0,"rtcp-fb",r.Namespace.JINGLE_RTP_1),t.setAttribute(a,"type",e.type),t.setAttribute(a,"subtype",e.subtype)),n.xml.appendChild(a)})}},a=e.define({name:"bandwidth",namespace:r.Namespace.JINGLE_RTP_1,element:"bandwidth",fields:{type:t.attribute("type"),bandwidth:t.text()}}),s=e.define({name:"_rtp",namespace:r.Namespace.JINGLE_RTP_1,element:"description",tags:["jingle-application"],fields:{applicationType:{value:"rtp"},media:t.attribute("media"),ssrc:t.attribute("ssrc"),mux:t.boolSub(r.Namespace.JINGLE_RTP_1,"rtcp-mux"),encryption:{get:function get(){var e=t.find(this.xml,r.Namespace.JINGLE_RTP_1,"encryption");if(!e.length)return[];e=e[0];var n=this,a=t.find(e,r.Namespace.JINGLE_RTP_1,"crypto"),s=[];return a.forEach(function(e){s.push(new i({},e,n).toJSON())}),s},set:function set(e){var n=t.find(this.xml,r.Namespace.JINGLE_RTP_1,"encryption");if(n.length&&this.xml.removeChild(n),e.length){t.setBoolSubAttribute(this.xml,r.Namespace.JINGLE_RTP_1,"encryption","required",!0),n=t.find(this.xml,r.Namespace.JINGLE_RTP_1,"encryption")[0];var a=this;e.forEach(function(e){var t=new i(e,null,a);n.appendChild(t.xml)})}}},feedback:n,headerExtensions:{get:function get(){var e=t.find(this.xml,r.Namespace.JINGLE_RTP_HDREXT_0,"rtp-hdrext"),n=[];return e.forEach(function(e){n.push({id:t.getAttribute(e,"id"),uri:t.getAttribute(e,"uri"),senders:t.getAttribute(e,"senders")})}),n},set:function set(e){var n=this,a=t.find(this.xml,r.Namespace.JINGLE_RTP_HDREXT_0,"rtp-hdrext");a.forEach(function(e){n.xml.removeChild(e)}),e.forEach(function(e){var a=t.createElement(r.Namespace.JINGLE_RTP_HDREXT_0,"rtp-hdrext",r.Namespace.JINGLE_RTP_1);t.setAttribute(a,"id",e.id),t.setAttribute(a,"uri",e.uri),t.setAttribute(a,"senders",e.senders),n.xml.appendChild(a)})}}}}),o=e.define({name:"_payloadType",namespace:r.Namespace.JINGLE_RTP_1,element:"payload-type",fields:{channels:t.attribute("channels"),clockrate:t.attribute("clockrate"),id:t.attribute("id"),maxptime:t.attribute("maxptime"),name:t.attribute("name"),ptime:t.attribute("ptime"),feedback:n,parameters:{get:function get(){var e=[],n=t.find(this.xml,r.Namespace.JINGLE_RTP_1,"parameter");return n.forEach(function(n){e.push({key:t.getAttribute(n,"name"),value:t.getAttribute(n,"value")})}),e},set:function set(e){var n=this;e.forEach(function(e){var a=t.createElement(r.Namespace.JINGLE_RTP_1,"parameter");t.setAttribute(a,"name",e.key),t.setAttribute(a,"value",e.value),n.xml.appendChild(a)})}}}}),i=e.define({name:"crypto",namespace:r.Namespace.JINGLE_RTP_1,element:"crypto",fields:{cipherSuite:t.attribute("crypto-suite"),keyParams:t.attribute("key-params"),sessionParams:t.attribute("session-params"),tag:t.attribute("tag")}}),c=e.define({name:"_group",namespace:r.Namespace.JINGLE_GROUPING_0,element:"group",fields:{semantics:t.attribute("semantics"),contents:t.multiSubAttribute(r.Namespace.JINGLE_GROUPING_0,"content","name")}}),l=e.define({name:"_sourceGroup",namespace:r.Namespace.JINGLE_RTP_SSMA_0,element:"ssrc-group",fields:{semantics:t.attribute("semantics"),sources:t.multiSubAttribute(r.Namespace.JINGLE_RTP_SSMA_0,"source","ssrc")}}),u=e.define({name:"_source",namespace:r.Namespace.JINGLE_RTP_SSMA_0,element:"source",fields:{ssrc:t.attribute("ssrc"),parameters:{get:function get(){var e=[],n=t.find(this.xml,r.Namespace.JINGLE_RTP_SSMA_0,"parameter");return n.forEach(function(n){e.push({key:t.getAttribute(n,"name"),value:t.getAttribute(n,"value")})}),e},set:function set(e){var n=this;e.forEach(function(e){var a=t.createElement(r.Namespace.JINGLE_RTP_SSMA_0,"parameter");t.setAttribute(a,"name",e.key),t.setAttribute(a,"value",e.value),n.xml.appendChild(a)})}}}}),d=e.define({name:"mute",namespace:r.Namespace.JINGLE_RTP_INFO_1,element:"mute",fields:{creator:t.attribute("creator"),name:t.attribute("name")}}),p=e.define({name:"unmute",namespace:r.Namespace.JINGLE_RTP_INFO_1,element:"unmute",fields:{creator:t.attribute("creator"),name:t.attribute("name")}});e.extend(s,a),e.extend(s,o,"payloads"),e.extend(s,u,"sources"),e.extend(s,l,"sourceGroups"),e.withDefinition("content",r.Namespace.JINGLE_1,function(t){e.extend(t,s)}),e.withDefinition("jingle",r.Namespace.JINGLE_1,function(n){e.extend(n,d),e.extend(n,p),e.extend(n,c,"groups"),e.add(n,"ringing",t.boolSub(r.Namespace.JINGLE_RTP_INFO_1,"ringing")),e.add(n,"hold",t.boolSub(r.Namespace.JINGLE_RTP_INFO_1,"hold")),e.add(n,"active",t.boolSub(r.Namespace.JINGLE_RTP_INFO_1,"active"))})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/rtt.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants"),a={insert:"t",erase:"e",wait:"w"},s={t:"insert",e:"erase",w:"wait"};n.default=function(e){var t=e.utils,n=e.define({name:"rtt",namespace:r.Namespace.RTT_0,element:"rtt",fields:{id:t.attribute("id"),event:t.attribute("event","edit"),seq:t.numberAttribute("seq"),actions:{get:function get(){for(var e=[],n=0,a=this.xml.childNodes.length;n<a;n++){var o=this.xml.childNodes[n],i=o.localName,c={};if(o.namespaceURI===r.Namespace.RTT_0&&s[i]){c.type=s[i];var l=t.getAttribute(o,"p");l&&(c.pos=parseInt(l,10));var u=t.getAttribute(o,"n");u&&(c.num=parseInt(u,10));var d=t.getText(o);d&&"t"===i&&(c.text=d),e.push(c)}}return e},set:function set(e){for(var n=this,s=0,o=this.xml.childNodes.length;s<o;s++)this.xml.removeChild(this.xml.childNodes[s]);e.forEach(function(e){if(a[e.type]){var s=t.createElement(r.Namespace.RTT_0,a[e.type],r.Namespace.RTT_0);void 0!==e.pos&&t.setAttribute(s,"p",e.pos.toString()),e.num&&t.setAttribute(s,"n",e.num.toString()),e.text&&t.setText(s,e.text),n.xml.appendChild(s)}})}}}});e.extendMessage(n)},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/sasl.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants"),a=["aborted","account-disabled","credentials-expired","encryption-required","incorrect-encoding","invalid-authzid","invalid-mechanism","malformed-request","mechanism-too-weak","not-authorized","temporary-auth-failure"];n.default=function(e){var t=e.utils,n=e.define({name:"sasl",namespace:r.Namespace.SASL,element:"mechanisms",fields:{mechanisms:t.multiTextSub(r.Namespace.SASL,"mechanism")}});e.define({name:"saslAuth",eventName:"sasl:auth",namespace:r.Namespace.SASL,element:"auth",topLevel:!0,fields:{value:t.text(),mechanism:t.attribute("mechanism")}}),e.define({name:"saslChallenge",eventName:"sasl:challenge",namespace:r.Namespace.SASL,element:"challenge",topLevel:!0,fields:{value:t.text()}}),e.define({name:"saslResponse",eventName:"sasl:response",namespace:r.Namespace.SASL,element:"response",topLevel:!0,fields:{value:t.text()}}),e.define({name:"saslAbort",eventName:"sasl:abort",namespace:r.Namespace.SASL,element:"abort",topLevel:!0}),e.define({name:"saslSuccess",eventName:"sasl:success",namespace:r.Namespace.SASL,element:"success",topLevel:!0,fields:{value:t.text()}}),e.define({name:"saslFailure",eventName:"sasl:failure",namespace:r.Namespace.SASL,element:"failure",topLevel:!0,fields:{lang:{get:function get(){return this._lang||""},set:function set(e){this._lang=e}},condition:t.enumSub(r.Namespace.SASL,a),$text:{get:function get(){return t.getSubLangText(this.xml,r.Namespace.SASL,"text",this.lang)}},text:{get:function get(){var e=this.$text;return e[this.lang]||""},set:function set(e){t.setSubLangText(this.xml,r.Namespace.SASL,"text",e,this.lang)}}}}),e.extendStreamFeatures(n)},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/session.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.define({name:"session",namespace:r.Namespace.SESSION,element:"session",fields:{required:e.utils.boolSub(r.Namespace.SESSION,"required"),optional:e.utils.boolSub(r.Namespace.SESSION,"optional")}});e.extendIQ(t),e.extendStreamFeatures(t)},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/shim.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.utils,n={get:function get(){var e=t.find(this.xml,r.Namespace.SHIM,"headers");return e.length?t.getMultiSubText(e[0],r.Namespace.SHIM,"header",function(e){var n=t.getAttribute(e,"name");if(n)return{name:n,value:t.getText(e)}}):[]},set:function set(n){var a=t.findOrCreate(this.xml,r.Namespace.SHIM,"headers");e.setMultiSubText(a,r.Namespace.SHIM,"header",n,function(e){var n=t.createElement(r.Namespace.SHIM,"header",r.Namespace.SHIM);t.setAttribute(n,"name",e.name),t.setText(n,e.value),a.appendChild(n)})}};e.withMessage(function(t){e.add(t,"headers",n)}),e.withPresence(function(t){e.add(t,"headers",n)})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/sm.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.utils,n=e.define({name:"streamManagement",namespace:r.Namespace.SMACKS_3,element:"sm"});e.define({name:"smEnable",eventName:"stream:management:enable", | |
namespace:r.Namespace.SMACKS_3,element:"enable",topLevel:!0,fields:{resume:t.boolAttribute("resume")}}),e.define({name:"smEnabled",eventName:"stream:management:enabled",namespace:r.Namespace.SMACKS_3,element:"enabled",topLevel:!0,fields:{id:t.attribute("id"),resume:t.boolAttribute("resume")}}),e.define({name:"smResume",eventName:"stream:management:resume",namespace:r.Namespace.SMACKS_3,element:"resume",topLevel:!0,fields:{h:t.numberAttribute("h",!1,0),previd:t.attribute("previd")}}),e.define({name:"smResumed",eventName:"stream:management:resumed",namespace:r.Namespace.SMACKS_3,element:"resumed",topLevel:!0,fields:{h:t.numberAttribute("h",!1,0),previd:t.attribute("previd")}}),e.define({name:"smFailed",eventName:"stream:management:failed",namespace:r.Namespace.SMACKS_3,element:"failed",topLevel:!0}),e.define({name:"smAck",eventName:"stream:management:ack",namespace:r.Namespace.SMACKS_3,element:"a",topLevel:!0,fields:{h:t.numberAttribute("h",!1,0)}}),e.define({name:"smRequest",eventName:"stream:management:request",namespace:r.Namespace.SMACKS_3,element:"r",topLevel:!0}),e.extendStreamFeatures(n)},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/stream.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.utils;e.define({name:"stream",namespace:r.Namespace.STREAM,element:"stream",fields:{lang:t.langAttribute(),id:t.attribute("id"),version:t.attribute("version","1.0"),to:t.jidAttribute("to",!0),from:t.jidAttribute("from",!0)}})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/streamError.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants"),a=["bad-format","bad-namespace-prefix","conflict","connection-timeout","host-gone","host-unknown","improper-addressing","internal-server-error","invalid-from","invalid-namespace","invalid-xml","not-authorized","not-well-formed","policy-violation","remote-connection-failed","reset","resource-constraint","restricted-xml","see-other-host","system-shutdown","undefined-condition","unsupported-encoding","unsupported-feature","unsupported-stanza-type","unsupported-version"];n.default=function(e){var t=e.utils;e.define({name:"streamError",namespace:r.Namespace.STREAM,element:"error",topLevel:!0,fields:{lang:{get:function get(){return this._lang||""},set:function set(e){this._lang=e}},condition:t.enumSub(r.Namespace.STREAM_ERROR,a),seeOtherHost:{get:function get(){return t.getSubText(this.xml,r.Namespace.STREAM_ERROR,"see-other-host")},set:function set(e){this.condition="see-other-host",t.setSubText(this.xml,r.Namespace.STREAM_ERROR,"see-other-host",e)}},$text:{get:function get(){return t.getSubLangText(this.xml,r.Namespace.STREAM_ERROR,"text",this.lang)}},text:{get:function get(){var e=this.$text;return e[this.lang]||""},set:function set(e){t.setSubLangText(this.xml,r.Namespace.STREAM_ERROR,"text",e,this.lang)}}}})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/streamFeatures.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=(e.define({name:"streamFeatures",namespace:r.Namespace.STREAM,element:"features",topLevel:!0}),e.define({name:"rosterVersioning",namespace:r.Namespace.ROSTER_VERSIONING,element:"ver"})),n=e.define({name:"subscriptionPreApproval",namespace:r.Namespace.SUBSCRIPTION_PREAPPROVAL,element:"sub"});e.extendStreamFeatures(t),e.extendStreamFeatures(n)},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/time.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.define({name:"time",namespace:r.Namespace.TIME,element:"time",fields:{utc:e.utils.dateSub(r.Namespace.TIME,"utc"),tzo:e.utils.tzoSub(r.Namespace.TIME,"tzo",0)}});e.extendIQ(t)},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/tune.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.utils,n=e.define({name:"tune",namespace:r.Namespace.TUNE,element:"tune",fields:{artist:t.textSub(r.Namespace.TUNE,"artist"),length:t.numberSub(r.Namespace.TUNE,"length"),rating:t.numberSub(r.Namespace.TUNE,"rating"),source:t.textSub(r.Namespace.TUNE,"source"),title:t.textSub(r.Namespace.TUNE,"title"),track:t.textSub(r.Namespace.TUNE,"track"),uri:t.textSub(r.Namespace.TUNE,"uri")}});e.extendPubsubItem(n),e.extendMessage(n)},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/vcard.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.utils,n=e.define({name:"vCardTemp",namespace:r.Namespace.VCARD_TEMP,element:"vCard",fields:{role:t.textSub(r.Namespace.VCARD_TEMP,"ROLE"),website:t.textSub(r.Namespace.VCARD_TEMP,"URL"),title:t.textSub(r.Namespace.VCARD_TEMP,"TITLE"),description:t.textSub(r.Namespace.VCARD_TEMP,"DESC"),fullName:t.textSub(r.Namespace.VCARD_TEMP,"FN"),birthday:t.dateSub(r.Namespace.VCARD_TEMP,"BDAY"),nicknames:t.multiTextSub(r.Namespace.VCARD_TEMP,"NICKNAME"),jids:t.multiTextSub(r.Namespace.VCARD_TEMP,"JABBERID")}}),a=e.define({name:"_email",namespace:r.Namespace.VCARD_TEMP,element:"EMAIL",fields:{email:t.textSub(r.Namespace.VCARD_TEMP,"USERID"),home:t.boolSub(r.Namespace.VCARD_TEMP,"HOME"),work:t.boolSub(r.Namespace.VCARD_TEMP,"WORK"),preferred:t.boolSub(r.Namespace.VCARD_TEMP,"PREF")}}),s=e.define({name:"_tel",namespace:r.Namespace.VCARD_TEMP,element:"TEL",fields:{number:t.textSub(r.Namespace.VCARD_TEMP,"NUMBER"),home:t.boolSub(r.Namespace.VCARD_TEMP,"HOME"),work:t.boolSub(r.Namespace.VCARD_TEMP,"WORK"),mobile:t.boolSub(r.Namespace.VCARD_TEMP,"CELL"),preferred:t.boolSub(r.Namespace.VCARD_TEMP,"PREF")}}),o=e.define({name:"_address",namespace:r.Namespace.VCARD_TEMP,element:"ADR",fields:{street:t.textSub(r.Namespace.VCARD_TEMP,"STREET"),street2:t.textSub(r.Namespace.VCARD_TEMP,"EXTADD"),country:t.textSub(r.Namespace.VCARD_TEMP,"CTRY"),city:t.textSub(r.Namespace.VCARD_TEMP,"LOCALITY"),region:t.textSub(r.Namespace.VCARD_TEMP,"REGION"),postalCode:t.textSub(r.Namespace.VCARD_TEMP,"PCODE"),pobox:t.textSub(r.Namespace.VCARD_TEMP,"POBOX"),home:t.boolSub(r.Namespace.VCARD_TEMP,"HOME"),work:t.boolSub(r.Namespace.VCARD_TEMP,"WORK"),preferred:t.boolSub(r.Namespace.VCARD_TEMP,"PREF")}}),i=e.define({name:"organization",namespace:r.Namespace.VCARD_TEMP,element:"ORG",fields:{name:t.textSub(r.Namespace.VCARD_TEMP,"ORGNAME"),unit:t.textSub(r.Namespace.VCARD_TEMP,"ORGUNIT")}}),c=e.define({name:"name",namespace:r.Namespace.VCARD_TEMP,element:"N",fields:{family:t.textSub(r.Namespace.VCARD_TEMP,"FAMILY"),given:t.textSub(r.Namespace.VCARD_TEMP,"GIVEN"),middle:t.textSub(r.Namespace.VCARD_TEMP,"MIDDLE"),prefix:t.textSub(r.Namespace.VCARD_TEMP,"PREFIX"),suffix:t.textSub(r.Namespace.VCARD_TEMP,"SUFFIX")}}),l=e.define({name:"photo",namespace:r.Namespace.VCARD_TEMP,element:"PHOTO",fields:{type:t.textSub(r.Namespace.VCARD_TEMP,"TYPE"),data:t.textSub(r.Namespace.VCARD_TEMP,"BINVAL"),url:t.textSub(r.Namespace.VCARD_TEMP,"EXTVAL")}});e.extend(n,a,"emails"),e.extend(n,o,"addresses"),e.extend(n,s,"phoneNumbers"),e.extend(n,i),e.extend(n,c),e.extend(n,l),e.extendIQ(n)},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/version.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){var t=e.define({name:"version",namespace:r.Namespace.VERSION,element:"query",fields:{name:e.utils.textSub(r.Namespace.VERSION,"name"),version:e.utils.textSub(r.Namespace.VERSION,"version"),os:e.utils.textSub(r.Namespace.VERSION,"os")}});e.extendIQ(t)},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt-xmpp/lib/visibility.js":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmpp-constants");n.default=function(e){e.withIQ(function(t){e.add(t,"visible",e.utils.boolSub(r.Namespace.INVISIBLE_0,"visible")),e.add(t,"invisible",e.utils.boolSub(r.Namespace.INVISIBLE_0,"invisible"))})},t.exports=n.default},{"xmpp-constants":"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js"}],"/stanza.io-8.0.2/node_modules/jxt/index.js":[function(e,t,n){"use strict";function JXT(){this._LOOKUP={},this._LOOKUP_EXT={},this._TAGS={},this._CB_DEFINITION={},this._CB_TAG={},this._ID=a.v4(),this.utils=r({},s,o)}var r=e("lodash.assign"),a=e("uuid"),s=e("./lib/types"),o=e("./lib/helpers"),i=e("./lib/stanza");JXT.prototype.use=function(e){return e["__JXT_LOADED_"+this._ID]||e(this),e["__JXT_LOADED_"+this._ID]=!0,this},JXT.prototype.getDefinition=function(e,t,n){var r=this._LOOKUP[t+"|"+e];if(n&&!r)throw new Error("Could not find definition for <"+e+' xmlns="'+t+'" />');return r},JXT.prototype.getExtensions=function(e,t){return this._LOOKUP_EXT[t+"|"+e]||{}},JXT.prototype.withDefinition=function(e,t,n){var r=t+"|"+e;this._CB_DEFINITION[r]||(this._CB_DEFINITION[r]=[]),this._CB_DEFINITION[r].push(n),this._LOOKUP[r]&&n(this._LOOKUP[r])},JXT.prototype.withTag=function(e,t){this._CB_TAG[e]||(this._CB_TAG[e]=[]),this._CB_TAG[e].push(t),this.tagged(e).forEach(function(e){t(e)})},JXT.prototype.tagged=function(e){return this._TAGS[e]||[]},JXT.prototype.build=function(e){var t=this.getDefinition(e.localName,e.namespaceURI);if(t)return new t(null,e)},JXT.prototype.parse=function(e){var t=o.parse(e);if(t)return this.build(t)},JXT.prototype.extend=function(e,t,n,r){var a=e.prototype._NS+"|"+e.prototype._EL,o=t.prototype._name,i=t.prototype._NS+"|"+t.prototype._EL;this._LOOKUP[i]=t,this._LOOKUP_EXT[i]||(this._LOOKUP_EXT[i]={}),this._LOOKUP_EXT[a]||(this._LOOKUP_EXT[a]={}),this._LOOKUP_EXT[a][o]=t,(!n||n&&!r)&&this.add(e,o,s.extension(t)),n&&this.add(e,n,s.multiExtension(t))},JXT.prototype.add=function(e,t,n){n.enumerable=!0,Object.defineProperty(e.prototype,t,n)},JXT.prototype.define=function(e){var t=this,n=i(this,e),r=n.prototype._NS,a=n.prototype._EL,s=n.prototype._TAGS,o=r+"|"+a;this._LOOKUP[o]=n,s.forEach(function(e){t._TAGS[e]||(t._TAGS[e]=[]),t._TAGS[e].push(n)});var c=Object.keys(e.fields||{});return c.forEach(function(r){t.add(n,r,e.fields[r])}),this._CB_DEFINITION[o]&&this._CB_DEFINITION[o].forEach(function(e){e(n)}),s.forEach(function(e){t._CB_TAG[e]&&t._CB_TAG[e].forEach(function(e){e(n)})}),n},JXT.createRegistry=function(){return new JXT},r(JXT,o),r(JXT,s);var c=new JXT;JXT.define=c.define.bind(c),JXT.extend=c.extend.bind(c),JXT.add=c.add.bind(c),JXT.parse=c.parse.bind(c),JXT.build=c.build.bind(c),JXT.getExtensions=c.getExtensions.bind(c),JXT.getDefinition=c.getDefinition.bind(c),JXT.withDefinition=c.withDefinition.bind(c),JXT.withTag=c.withTag.bind(c),JXT.tagged=c.tagged.bind(c),JXT.getGlobalJXT=function(){return c},t.exports=JXT},{"./lib/helpers":"/stanza.io-8.0.2/node_modules/jxt/lib/helpers.js","./lib/stanza":"/stanza.io-8.0.2/node_modules/jxt/lib/stanza.js","./lib/types":"/stanza.io-8.0.2/node_modules/jxt/lib/types.js","lodash.assign":"/stanza.io-8.0.2/node_modules/lodash.assign/index.js",uuid:"/stanza.io-8.0.2/node_modules/uuid/uuid.js"}],"/stanza.io-8.0.2/node_modules/jxt/lib/helpers.js":[function(e,t,n){"use strict";var r=e("ltx"),a=e("ltx/lib/DOMElement"),s=n.XML_NS="http://www.w3.org/XML/1998/namespace";n.parse=function(e){var t=r.parse(e,{Element:a});if(1===t.nodeType)return t},n.createElement=function(e,t,r){var s=new a(t);return r&&r===e||n.setAttribute(s,"xmlns",e),s};var o=n.find=function(e,t,n){for(var r=[],a=e.getElementsByTagName(n),s=0,o=a.length;s<o;s++){var i=a[s];i.namespaceURI===t&&i.parentNode===e&&r.push(i)}return r};n.findOrCreate=function(e,t,r){var a=n.find(e,t,r);if(a.length)return a[0];var s=n.createElement(t,r,e.namespaceURI);return e.appendChild(s),s},n.getAttribute=function(e,t,n){return e.getAttribute(t)||n||""},n.getAttributeNS=function(e,t,n,r){return e.getAttributeNS(t,n)||r||""},n.setAttribute=function(e,t,n,r){n||r?e.setAttribute(t,n):e.removeAttribute(t)},n.setAttributeNS=function(e,t,n,r,a){r||a?e.setAttributeNS(t,n,r):e.removeAttributeNS(t,n)},n.getBoolAttribute=function(e,t,n){var r=e.getAttribute(t)||n||"";return"true"===r||"1"===r},n.setBoolAttribute=function(e,t,n){n?e.setAttribute(t,"1"):e.removeAttribute(t)},n.getSubAttribute=function(e,t,n,r,a){var s=o(e,t,n);if(!s)return"";for(var i=0;i<s.length;i++)return s[i].getAttribute(r)||a||"";return""},n.setSubAttribute=function(e,t,r,a,s){var i=o(e,t,r);if(i.length)for(var c=0;c<i.length;c++){if(s)return void i[c].setAttribute(a,s);i[c].removeAttribute(a)}else s&&(r=n.createElement(t,r,e.namespaceURI),r.setAttribute(a,s),e.appendChild(r))},n.getBoolSubAttribute=function(e,t,n,r,a){var s=e.getSubAttribute(t,n,r)||a||"";return"true"===s||"1"===s},n.setBoolSubAttribute=function(e,t,r,a,s){s=s?"1":"",n.setSubAttribute(e,t,r,a,s)},n.getText=function(e){return e.textContent},n.setText=function(e,t){e.textContent=t},n.getSubText=n.getTextSub=function(e,t,n,r){var a=o(e,t,n);return r=r||"",a.length?a[0].textContent||r:r},n.setSubText=n.setTextSub=function(e,t,r,a){var s=o(e,t,r);if(s.length)for(var i=0;i<s.length;i++)e.removeChild(s[i]);if(a){var c=n.createElement(t,r,e.namespaceURI);a!==!0&&(c.textContent=a),e.appendChild(c)}},n.getMultiSubText=function(e,t,n,r){var a=o(e,t,n),s=[];r=r||function(e){return e.textContent||""};for(var i=0;i<a.length;i++)s.push(r(a[i]));return s},n.setMultiSubText=function(e,t,r,a,s){var i=o(e,t,r),c=[];s=s||function(a){if(a){var s=n.createElement(t,r,e.namespaceURI);s.textContent=a,e.appendChild(s)}},c="string"==typeof a?(a||"").split("\n"):a;var l,u;for(l=0,u=i.length;l<u;l++)e.removeChild(i[l]);for(l=0,u=c.length;l<u;l++)s(c[l])},n.getMultiSubAttribute=function(e,t,r,a){return n.getMultiSubText(e,t,r,function(e){return n.getAttribute(e,a)})},n.setMultiSubAttribute=function(e,t,r,a,s){n.setMultiSubText(e,t,r,s,function(s){var o=n.createElement(t,r,e.namespaceURI);n.setAttribute(o,a,s),e.appendChild(o)})},n.getSubLangText=function(e,t,n,r){var a=o(e,t,n);if(!a.length)return{};for(var i,c,l={},u=[],d=0;d<a.length;d++)c=a[d],i=c.getAttributeNS(s,"lang")||r,u.push(i),l[i]=c.textContent||"";return l},n.setSubLangText=function(e,t,r,a,i){var c,l,u=o(e,t,r);if(u.length)for(var d=0;d<u.length;d++)e.removeChild(u[d]);if("string"==typeof a)c=n.createElement(t,r,e.namespaceURI),c.textContent=a,e.appendChild(c);else if("object"==typeof a)for(l in a)a.hasOwnProperty(l)&&(c=n.createElement(t,r,e.namespaceURI),l!==i&&c.setAttributeNS(s,"lang",l),c.textContent=a[l],e.appendChild(c))},n.getBoolSub=function(e,t,n){var r=o(e,t,n);return!!r.length},n.setBoolSub=function(e,t,r,a){var s=o(e,t,r);if(s.length)for(var i=0;i<s.length;i++){if(a)return;e.removeChild(s[i])}else if(a){var c=n.createElement(t,r,e.namespaceURI);e.appendChild(c)}}},{ltx:"/stanza.io-8.0.2/node_modules/ltx/index.js","ltx/lib/DOMElement":"/stanza.io-8.0.2/node_modules/ltx/lib/DOMElement.js"}],"/stanza.io-8.0.2/node_modules/jxt/lib/stanza.js":[function(e,t,n){"use strict";var r=e("./helpers"),a=e("lodash.assign"),s={constructor:!0,parent:!0,prototype:!0,toJSON:!0,toString:!0,xml:!0};t.exports=function(e,t){function Stanza(n,s,o){var i=this,c=(s||{}).parentNode||(o||{}).xml,l=(c||{}).namespaceURI;i.xml=s||r.createElement(i._NS,i._EL,l),Object.keys(i._PREFIXES).forEach(function(e){var t=i._PREFIXES[e];i.xml.setAttribute("xmlns:"+e,t)}),i._extensions={};for(var u=0,d=i.xml.childNodes.length;u<d;u++){var p=i.xml.childNodes[u],f=e.getDefinition(p.localName,p.namespaceURI);if(void 0!==f){var m=f.prototype._name;i._extensions[m]=new f(null,p),i._extensions[m].parent=i}}return a(i,n),t.init&&t.init.apply(i,[n]),i}return Stanza.prototype._isJXT=!0,Stanza.prototype._name=t.name,Stanza.prototype._eventname=t.eventName,Stanza.prototype._NS=t.namespace,Stanza.prototype._EL=t.element||t.name,Stanza.prototype._PREFIXES=t.prefixes||{},Stanza.prototype._TAGS=t.tags||[],Stanza.prototype.toString=function(){return this.xml.toString()},Stanza.prototype.toJSON=function(){var t,n={};for(t in this._extensions)this._extensions[t].toJSON&&"_"!==t[0]&&(n[t]=this._extensions[t].toJSON());for(t in this){var r=!s[t]&&"_"!==t[0],a=e.getExtensions(this._EL,this._NS)[t];if(r&&!a){var o=this[t];if("function"==typeof o)continue;var i=Object.prototype.toString.call(o);if(i.indexOf("Object")>=0)Object.keys(o).length>0&&(o._isJXT?n[t]=o.toJSON():n[t]=o);else if(i.indexOf("Array")>=0){if(o.length>0){for(var c=[],l=o.length,u=0;u<l;u++){var d=o[u];"undefined"!=typeof d&&(d._isJXT?c.push(d.toJSON()):c.push(d))}n[t]=c}}else void 0!==o&&o!==!1&&""!==o&&(n[t]=o)}}return n},Stanza}},{"./helpers":"/stanza.io-8.0.2/node_modules/jxt/lib/helpers.js","lodash.assign":"/stanza.io-8.0.2/node_modules/lodash.assign/index.js"}],"/stanza.io-8.0.2/node_modules/jxt/lib/types.js":[function(e,t,n){(function(t){"use strict";var r=e("./helpers"),a=e("lodash.assign"),s=r.find,o=r.createElement,i=n.field=function(e,t){return function(){var n=Array.prototype.slice.call(arguments);return{get:function(){return e.apply(null,[this.xml].concat(n))},set:function(e){t.apply(null,[this.xml].concat(n).concat([e]))}}}};n.boolAttribute=i(r.getBoolAttribute,r.setBoolAttribute),n.subAttribute=i(r.getSubAttribute,r.setSubAttribute),n.boolSubAttribute=i(r.getSubBoolAttribute,r.setSubBoolAttribute),n.text=i(r.getText,r.setText),n.textSub=n.subText=i(r.getSubText,r.setSubText),n.multiTextSub=n.multiSubText=i(r.getMultiSubText,r.setMultiSubText),n.multiSubAttribute=i(r.getMultiSubAttribute,r.setMultiSubAttribute),n.langTextSub=n.subLangText=i(r.getSubLangText,r.setSubLangText),n.boolSub=i(r.getBoolSub,r.setBoolSub),n.langAttribute=i(function(e){return e.getAttributeNS(r.XML_NS,"lang")||""},function(e,t){e.setAttributeNS(r.XML_NS,"lang",t)}),n.b64Text=i(function(e){return e.textContent&&"="!==e.textContent?new t(e.textContent,"base64"):""},function(e,n){if("string"==typeof n){var r=new t(n).toString("base64");e.textContent=r||"="}else e.textContent=""}),n.dateAttribute=function(e,t){return{get:function(){var n=r.getAttribute(this.xml,e);return n?new Date(n):t?new Date(Date.now()):void 0},set:function(t){t&&("string"!=typeof t&&(t=t.toISOString()),r.setAttribute(this.xml,e,t))}}},n.dateSub=function(e,t,n){return{get:function(){var a=r.getSubText(this.xml,e,t);return a?new Date(a):n?new Date(Date.now()):void 0},set:function(n){n&&("string"!=typeof n&&(n=n.toISOString()),r.setSubText(this.xml,e,t,n))}}},n.dateSubAttribute=function(e,t,n,a){return{get:function(){var s=r.getSubAttribute(this.xml,e,t,n);return s?new Date(s):a?new Date(Date.now()):void 0},set:function(a){a&&("string"!=typeof a&&(a=a.toISOString()),r.setSubAttribute(this.xml,e,t,n,a))}}},n.numberAttribute=function(e,t,n){return{get:function(){var a=t?parseFloat:parseInt,s=r.getAttribute(this.xml,e,"");if(!s)return n;var o=a(s,10);return isNaN(o)?n:o},set:function(t){r.setAttribute(this.xml,e,t.toString())}}},n.numberSub=function(e,t,n,a){return{get:function(){var s=n?parseFloat:parseInt,o=r.getSubText(this.xml,e,t,"");if(!o)return a;var i=s(o,10);return isNaN(i)?a:i},set:function(n){r.setSubText(this.xml,e,t,n.toString())}}},n.attribute=function(e,t){return{get:function(){return r.getAttribute(this.xml,e,t)},set:function(t){r.setAttribute(this.xml,e,t)}}},n.attributeNS=function(e,t,n){return{get:function(){return r.getAttributeNS(this.xml,e,t,n)},set:function(n){r.setAttributeNS(this.xml,e,t,n)}}},n.extension=function(e){return{get:function(){var t=this,n=e.prototype._name;if(!this._extensions[n]){var r=s(this.xml,e.prototype._NS,e.prototype._EL);r.length?this._extensions[n]=new e(null,r[0],t):(this._extensions[n]=new e({},null,t),this.xml.appendChild(this._extensions[n].xml)),this._extensions[n].parent=this}return this._extensions[n]},set:function(t){if(t){var n=this[e.prototype._name];t===!0&&(t={}),a(n,t)}}}},n.multiExtension=function(e){return{get:function(){for(var t=this,n=s(this.xml,e.prototype._NS,e.prototype._EL),r=[],a=0,o=n.length;a<o;a++)r.push(new e({},n[a],t));return r},set:function(t){t=t||[];var n,r,a=this,o=s(this.xml,e.prototype._NS,e.prototype._EL);for(n=0,r=o.length;n<r;n++)a.xml.removeChild(o[n]);for(n=0,r=t.length;n<r;n++){var i=new e(t[n],null,a);a.xml.appendChild(i.xml)}}}},n.enumSub=function(e,t){return{get:function(){var n=this,r=[];return t.forEach(function(t){var a=s(n.xml,e,t);a.length&&r.push(a[0].nodeName)}),r[0]||""},set:function(n){var r=this,a=!1;if(t.forEach(function(t){var o=s(r.xml,e,t);o.length&&(t===n?a=!0:r.xml.removeChild(o[0]))}),n&&!a){var i=o(e,n);this.xml.appendChild(i)}}}},n.subExtension=function(e,t,n,r){return{get:function(){if(!this._extensions[e]){var a=s(this.xml,t,n);a.length?a=a[0]:(a=o(t,n,this._NS),this.xml.appendChild(a));var i=s(a,r.prototype._NS,r.prototype._EL);i.length?this._extensions[e]=new r(null,i[0],{xml:a}):(this._extensions[e]=new r({},null,{xml:a}),a.appendChild(this._extensions[e].xml)),this._extensions[e].parent=this}return this._extensions[e]},set:function(r){var o=s(this.xml,t,n);if(o.length&&!r&&this.xml.removeChild(o[0]),r){var i=this[e];r===!0&&(r={}),a(i,r)}}}},n.subMultiExtension=function(e,t,n){return{get:function(){var r=this,a=[],o=s(this.xml,e,t);if(!o.length)return a;o=o[0];var i=s(o,n.prototype._NS,n.prototype._EL);return i.forEach(function(e){a.push(new n({},e,r))}),a},set:function(r){var a=this,i=s(this.xml,e,t);i.length&&a.xml.removeChild(i[0]),r.length&&(i=o(e,t,this._NS),r.forEach(function(t){var r=new n(t,null,{xml:{namespaceURI:e}});i.appendChild(r.xml)}),a.xml.appendChild(i))}}}}).call(this,e("buffer").Buffer)},{"./helpers":"/stanza.io-8.0.2/node_modules/jxt/lib/helpers.js",buffer:"/stanza.io-8.0.2/node_modules/buffer/index.js","lodash.assign":"/stanza.io-8.0.2/node_modules/lodash.assign/index.js"}],"/stanza.io-8.0.2/node_modules/lodash._arrayeach/index.js":[function(e,t,n){function arrayEach(e,t){for(var n=-1,r=e.length;++n<r&&t(e[n],n,e)!==!1;);return e}t.exports=arrayEach},{}],"/stanza.io-8.0.2/node_modules/lodash._arrayfilter/index.js":[function(e,t,n){function arrayFilter(e,t){for(var n=-1,r=e.length,a=-1,s=[];++n<r;){var o=e[n];t(o,n,e)&&(s[++a]=o)}return s}t.exports=arrayFilter},{}],"/stanza.io-8.0.2/node_modules/lodash._baseassign/index.js":[function(e,t,n){function baseAssign(e,t){return null==t?e:r(t,a(t),e)}var r=e("lodash._basecopy"),a=e("lodash.keys");t.exports=baseAssign},{"lodash._basecopy":"/stanza.io-8.0.2/node_modules/lodash._basecopy/index.js","lodash.keys":"/stanza.io-8.0.2/node_modules/lodash.keys/index.js"}],"/stanza.io-8.0.2/node_modules/lodash._basecallback/index.js":[function(e,t,n){function baseToString(e){return null==e?"":e+""}function baseCallback(e,t,n){var r=typeof e;return"function"==r?void 0===t?e:a(e,t,n):null==e?identity:"object"==r?baseMatches(e):void 0===t?property(e):baseMatchesProperty(e,t)}function baseGet(e,t,n){if(null!=e){void 0!==n&&n in toObject(e)&&(t=[n]);for(var r=0,a=t.length;null!=e&&r<a;)e=e[t[r++]];return r&&r==a?e:void 0}}function baseIsMatch(e,t,n){var a=t.length,s=a,o=!n;if(null==e)return!s;for(e=toObject(e);a--;){var i=t[a];if(o&&i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++a<s;){i=t[a];var c=i[0],l=e[c],u=i[1];if(o&&i[2]){if(void 0===l&&!(c in e))return!1}else{var d=n?n(l,u,c):void 0;if(!(void 0===d?r(u,l,n,!0):d))return!1}}return!0}function baseMatches(e){var t=getMatchData(e);if(1==t.length&&t[0][2]){var n=t[0][0],r=t[0][1];return function(e){return null!=e&&(e[n]===r&&(void 0!==r||n in toObject(e)))}}return function(e){return baseIsMatch(e,t)}}function baseMatchesProperty(e,t){var n=s(e),a=isKey(e)&&isStrictComparable(t),o=e+"";return e=toPath(e),function(s){if(null==s)return!1;var i=o;if(s=toObject(s),(n||!a)&&!(i in s)){if(s=1==e.length?s:baseGet(s,baseSlice(e,0,-1)),null==s)return!1;i=last(e),s=toObject(s)}return s[i]===t?void 0!==t||i in s:r(t,s[i],void 0,!0)}}function baseProperty(e){return function(t){return null==t?void 0:t[e]}}function basePropertyDeep(e){var t=e+"";return e=toPath(e),function(n){return baseGet(n,e,t)}}function baseSlice(e,t,n){var r=-1,a=e.length;t=null==t?0:+t||0,t<0&&(t=-t>a?0:a+t),n=void 0===n||n>a?a:+n||0,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(a);++r<a;)s[r]=e[r+t];return s}function getMatchData(e){for(var t=o(e),n=t.length;n--;)t[n][2]=isStrictComparable(t[n][1]);return t}function isKey(e,t){var n=typeof e;if("string"==n&&c.test(e)||"number"==n)return!0;if(s(e))return!1;var r=!i.test(e);return r||null!=t&&e in toObject(t)}function isStrictComparable(e){return e===e&&!isObject(e)}function toObject(e){return isObject(e)?e:Object(e)}function toPath(e){if(s(e))return e;var t=[];return baseToString(e).replace(l,function(e,n,r,a){t.push(r?a.replace(u,"$1"):n||e)}),t}function last(e){var t=e?e.length:0;return t?e[t-1]:void 0}function isObject(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function identity(e){return e}function property(e){return isKey(e)?baseProperty(e):basePropertyDeep(e)}var r=e("lodash._baseisequal"),a=e("lodash._bindcallback"),s=e("lodash.isarray"),o=e("lodash.pairs"),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,c=/^\w*$/,l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,u=/\\(\\)?/g;t.exports=baseCallback},{"lodash._baseisequal":"/stanza.io-8.0.2/node_modules/lodash._baseisequal/index.js","lodash._bindcallback":"/stanza.io-8.0.2/node_modules/lodash._bindcallback/index.js","lodash.isarray":"/stanza.io-8.0.2/node_modules/lodash.isarray/index.js","lodash.pairs":"/stanza.io-8.0.2/node_modules/lodash.pairs/index.js"}],"/stanza.io-8.0.2/node_modules/lodash._basecopy/index.js":[function(e,t,n){function baseCopy(e,t,n){n||(n={});for(var r=-1,a=t.length;++r<a;){var s=t[r];n[s]=e[s]}return n}t.exports=baseCopy},{}],"/stanza.io-8.0.2/node_modules/lodash._baseeach/index.js":[function(e,t,n){function baseForOwn(e,t){return o(e,t,r)}function baseProperty(e){return function(t){return null==t?void 0:t[e]}}function createBaseEach(e,t){return function(n,r){var a=n?i(n):0;if(!isLength(a))return e(n,r);for(var s=t?a:-1,o=toObject(n);(t?s--:++s<a)&&r(o[s],s,o)!==!1;);return n}}function createBaseFor(e){return function(t,n,r){for(var a=toObject(t),s=r(t),o=s.length,i=e?o:-1;e?i--:++i<o;){var c=s[i];if(n(a[c],c,a)===!1)break}return t}}function isLength(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function toObject(e){return isObject(e)?e:Object(e)}function isObject(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var r=e("lodash.keys"),a=9007199254740991,s=createBaseEach(baseForOwn),o=createBaseFor(),i=baseProperty("length");t.exports=s},{"lodash.keys":"/stanza.io-8.0.2/node_modules/lodash.keys/index.js"}],"/stanza.io-8.0.2/node_modules/lodash._basefilter/index.js":[function(e,t,n){function baseFilter(e,t){var n=[];return r(e,function(e,r,a){t(e,r,a)&&n.push(e)}),n}var r=e("lodash._baseeach");t.exports=baseFilter},{"lodash._baseeach":"/stanza.io-8.0.2/node_modules/lodash._baseeach/index.js"}],"/stanza.io-8.0.2/node_modules/lodash._baseindexof/index.js":[function(e,t,n){function baseIndexOf(e,t,n){if(t!==t)return indexOfNaN(e,n);for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}function indexOfNaN(e,t,n){for(var r=e.length,a=t+(n?0:-1);n?a--:++a<r;){var s=e[a];if(s!==s)return a}return-1}t.exports=baseIndexOf},{}],"/stanza.io-8.0.2/node_modules/lodash._baseisequal/index.js":[function(e,t,n){function isObjectLike(e){return!!e&&"object"==typeof e}function arraySome(e,t){for(var n=-1,r=e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function baseIsEqual(e,t,n,r,a,s){return e===t||(null==e||null==t||!isObject(e)&&!isObjectLike(t)?e!==e&&t!==t:baseIsEqualDeep(e,t,baseIsEqual,n,r,a,s))}function baseIsEqualDeep(e,t,n,s,c,l,u){var d=r(e),f=r(t),m=i,h=i;d||(m=g.call(e),m==o?m=p:m!=p&&(d=a(e))),f||(h=g.call(t),h==o?h=p:h!=p&&(f=a(t)));var v=m==p,j=h==p,_=m==h;if(_&&!d&&!v)return equalByTag(e,t,m);if(!c){var w=v&&b.call(e,"__wrapped__"),y=j&&b.call(t,"__wrapped__");if(w||y)return n(w?e.value():e,y?t.value():t,s,c,l,u)}if(!_)return!1;l||(l=[]),u||(u=[]);for(var x=l.length;x--;)if(l[x]==e)return u[x]==t;l.push(e),u.push(t);var S=(d?equalArrays:equalObjects)(e,t,n,s,c,l,u);return l.pop(),u.pop(),S}function equalArrays(e,t,n,r,a,s,o){var i=-1,c=e.length,l=t.length;if(c!=l&&!(a&&l>c))return!1;for(;++i<c;){var u=e[i],d=t[i],p=r?r(a?d:u,a?u:d,i):void 0;if(void 0!==p){if(p)continue;return!1}if(a){if(!arraySome(t,function(e){return u===e||n(u,e,r,a,s,o)}))return!1}else if(u!==d&&!n(u,d,r,a,s,o))return!1}return!0}function equalByTag(e,t,n){switch(n){case c:case l:return+e==+t;case u:return e.name==t.name&&e.message==t.message;case d:return e!=+e?t!=+t:e==+t;case f:case m:return e==t+""}return!1}function equalObjects(e,t,n,r,a,o,i){var c=s(e),l=c.length,u=s(t),d=u.length;if(l!=d&&!a)return!1;for(var p=l;p--;){var f=c[p];if(!(a?f in t:b.call(t,f)))return!1}for(var m=a;++p<l;){f=c[p];var h=e[f],g=t[f],v=r?r(a?g:h,a?h:g,f):void 0;if(!(void 0===v?n(h,g,r,a,o,i):v))return!1;m||(m="constructor"==f)}if(!m){var j=e.constructor,_=t.constructor;if(j!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof j&&j instanceof j&&"function"==typeof _&&_ instanceof _))return!1}return!0}function isObject(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var r=e("lodash.isarray"),a=e("lodash.istypedarray"),s=e("lodash.keys"),o="[object Arguments]",i="[object Array]",c="[object Boolean]",l="[object Date]",u="[object Error]",d="[object Number]",p="[object Object]",f="[object RegExp]",m="[object String]",h=Object.prototype,b=h.hasOwnProperty,g=h.toString;t.exports=baseIsEqual},{"lodash.isarray":"/stanza.io-8.0.2/node_modules/lodash.isarray/index.js","lodash.istypedarray":"/stanza.io-8.0.2/node_modules/lodash.istypedarray/index.js","lodash.keys":"/stanza.io-8.0.2/node_modules/lodash.keys/index.js"}],"/stanza.io-8.0.2/node_modules/lodash._baseuniq/index.js":[function(e,t,n){ | |
function baseUniq(e,t){var n=-1,i=r,c=e.length,l=!0,u=l&&c>=o,d=u?s():null,p=[];d?(i=a,l=!1):(u=!1,d=t?[]:p);e:for(;++n<c;){var f=e[n],m=t?t(f,n,e):f;if(l&&f===f){for(var h=d.length;h--;)if(d[h]===m)continue e;t&&d.push(m),p.push(f)}else i(d,m,0)<0&&((t||u)&&d.push(m),p.push(f))}return p}var r=e("lodash._baseindexof"),a=e("lodash._cacheindexof"),s=e("lodash._createcache"),o=200;t.exports=baseUniq},{"lodash._baseindexof":"/stanza.io-8.0.2/node_modules/lodash._baseindexof/index.js","lodash._cacheindexof":"/stanza.io-8.0.2/node_modules/lodash._cacheindexof/index.js","lodash._createcache":"/stanza.io-8.0.2/node_modules/lodash._createcache/index.js"}],"/stanza.io-8.0.2/node_modules/lodash._bindcallback/index.js":[function(e,t,n){function bindCallback(e,t,n){if("function"!=typeof e)return identity;if(void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,a){return e.call(t,n,r,a)};case 4:return function(n,r,a,s){return e.call(t,n,r,a,s)};case 5:return function(n,r,a,s,o){return e.call(t,n,r,a,s,o)}}return function(){return e.apply(t,arguments)}}function identity(e){return e}t.exports=bindCallback},{}],"/stanza.io-8.0.2/node_modules/lodash._cacheindexof/index.js":[function(e,t,n){function cacheIndexOf(e,t){var n=e.data,r="string"==typeof t||isObject(t)?n.set.has(t):n.hash[t];return r?0:-1}function isObject(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}t.exports=cacheIndexOf},{}],"/stanza.io-8.0.2/node_modules/lodash._createassigner/index.js":[function(e,t,n){function createAssigner(e){return s(function(t,n){var s=-1,o=null==t?0:n.length,i=o>2?n[o-2]:void 0,c=o>2?n[2]:void 0,l=o>1?n[o-1]:void 0;for("function"==typeof i?(i=r(i,l,5),o-=2):(i="function"==typeof l?l:void 0,o-=i?1:0),c&&a(n[0],n[1],c)&&(i=o<3?void 0:i,o=1);++s<o;){var u=n[s];u&&e(t,u,i)}return t})}var r=e("lodash._bindcallback"),a=e("lodash._isiterateecall"),s=e("lodash.restparam");t.exports=createAssigner},{"lodash._bindcallback":"/stanza.io-8.0.2/node_modules/lodash._bindcallback/index.js","lodash._isiterateecall":"/stanza.io-8.0.2/node_modules/lodash._isiterateecall/index.js","lodash.restparam":"/stanza.io-8.0.2/node_modules/lodash.restparam/index.js"}],"/stanza.io-8.0.2/node_modules/lodash._createcache/index.js":[function(e,t,n){(function(n){function SetCache(e){var t=e?e.length:0;for(this.data={hash:s(null),set:new a};t--;)this.push(e[t])}function cachePush(e){var t=this.data;"string"==typeof e||isObject(e)?t.set.add(e):t.hash[e]=!0}function createCache(e){return s&&a?new SetCache(e):null}function isObject(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var r=e("lodash._getnative"),a=r(n,"Set"),s=r(Object,"create");SetCache.prototype.push=cachePush,t.exports=createCache}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"lodash._getnative":"/stanza.io-8.0.2/node_modules/lodash._getnative/index.js"}],"/stanza.io-8.0.2/node_modules/lodash._getnative/index.js":[function(e,t,n){function isObjectLike(e){return!!e&&"object"==typeof e}function getNative(e,t){var n=null==e?void 0:e[t];return isNative(n)?n:void 0}function isFunction(e){return isObject(e)&&c.call(e)==r}function isObject(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function isNative(e){return null!=e&&(isFunction(e)?l.test(o.call(e)):isObjectLike(e)&&a.test(e))}var r="[object Function]",a=/^\[object .+?Constructor\]$/,s=Object.prototype,o=Function.prototype.toString,i=s.hasOwnProperty,c=s.toString,l=RegExp("^"+o.call(i).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=getNative},{}],"/stanza.io-8.0.2/node_modules/lodash._isiterateecall/index.js":[function(e,t,n){function baseProperty(e){return function(t){return null==t?void 0:t[e]}}function isArrayLike(e){return null!=e&&isLength(s(e))}function isIndex(e,t){return e="number"==typeof e||r.test(e)?+e:-1,t=null==t?a:t,e>-1&&e%1==0&&e<t}function isIterateeCall(e,t,n){if(!isObject(n))return!1;var r=typeof t;if("number"==r?isArrayLike(n)&&isIndex(t,n.length):"string"==r&&t in n){var a=n[t];return e===e?e===a:a!==a}return!1}function isLength(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function isObject(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var r=/^\d+$/,a=9007199254740991,s=baseProperty("length");t.exports=isIterateeCall},{}],"/stanza.io-8.0.2/node_modules/lodash.assign/index.js":[function(e,t,n){function assignWith(e,t,n){for(var r=-1,a=s(t),o=a.length;++r<o;){var i=a[r],c=e[i],l=n(c,t[i],i,e,t);(l===l?l===c:c!==c)&&(void 0!==c||i in e)||(e[i]=l)}return e}var r=e("lodash._baseassign"),a=e("lodash._createassigner"),s=e("lodash.keys"),o=a(function(e,t,n){return n?assignWith(e,t,n):r(e,t)});t.exports=o},{"lodash._baseassign":"/stanza.io-8.0.2/node_modules/lodash._baseassign/index.js","lodash._createassigner":"/stanza.io-8.0.2/node_modules/lodash._createassigner/index.js","lodash.keys":"/stanza.io-8.0.2/node_modules/lodash.keys/index.js"}],"/stanza.io-8.0.2/node_modules/lodash.clonedeep/index.js":[function(e,t,n){(function(e){function addMapEntry(e,t){return e.set(t[0],t[1]),e}function addSetEntry(e,t){return e.add(t),e}function arrayEach(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}function arrayPush(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}function arrayReduce(e,t,n,r){var a=-1,s=e?e.length:0;for(r&&s&&(n=e[++a]);++a<s;)n=t(n,e[a],a,e);return n}function baseTimes(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function getValue(e,t){return null==e?void 0:e[t]}function isHostObject(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function mapToArray(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function overArg(e,t){return function(n){return e(t(n))}}function setToArray(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function Hash(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function hashClear(){this.__data__=me?me(null):{}}function hashDelete(e){return this.has(e)&&delete this.__data__[e]}function hashGet(e){var t=this.__data__;if(me){var n=t[e];return n===a?void 0:n}return Y.call(t,e)?t[e]:void 0}function hashHas(e){var t=this.__data__;return me?void 0!==t[e]:Y.call(t,e)}function hashSet(e,t){var n=this.__data__;return n[e]=me&&void 0===t?a:t,this}function ListCache(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function listCacheClear(){this.__data__=[]}function listCacheDelete(e){var t=this.__data__,n=assocIndexOf(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():se.call(t,n,1),!0}function listCacheGet(e){var t=this.__data__,n=assocIndexOf(t,e);return n<0?void 0:t[n][1]}function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1}function listCacheSet(e,t){var n=this.__data__,r=assocIndexOf(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}function MapCache(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function mapCacheClear(){this.__data__={hash:new Hash,map:new(ue||ListCache),string:new Hash}}function mapCacheDelete(e){return getMapData(this,e).delete(e)}function mapCacheGet(e){return getMapData(this,e).get(e)}function mapCacheHas(e){return getMapData(this,e).has(e)}function mapCacheSet(e,t){return getMapData(this,e).set(e,t),this}function Stack(e){this.__data__=new ListCache(e)}function stackClear(){this.__data__=new ListCache}function stackDelete(e){return this.__data__.delete(e)}function stackGet(e){return this.__data__.get(e)}function stackHas(e){return this.__data__.has(e)}function stackSet(e,t){var n=this.__data__;if(n instanceof ListCache){var a=n.__data__;if(!ue||a.length<r-1)return a.push([e,t]),this;n=this.__data__=new MapCache(a)}return n.set(e,t),this}function arrayLikeKeys(e,t){var n=Se(e)||isArguments(e)?baseTimes(e.length,String):[],r=n.length,a=!!r;for(var s in e)!t&&!Y.call(e,s)||a&&("length"==s||isIndex(s,r))||n.push(s);return n}function assignValue(e,t,n){var r=e[t];Y.call(e,t)&&eq(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function assocIndexOf(e,t){for(var n=e.length;n--;)if(eq(e[n][0],t))return n;return-1}function baseAssign(e,t){return e&©Object(t,keys(t),e)}function baseClone(e,t,n,r,a,s,i){var c;if(r&&(c=s?r(e,a,s,i):r(e)),void 0!==c)return c;if(!isObject(e))return e;var l=Se(e);if(l){if(c=initCloneArray(e),!t)return copyArray(e,c)}else{var u=xe(e),f=u==d||u==p;if(Ee(e))return cloneBuffer(e,t);if(u==h||u==o||f&&!s){if(isHostObject(e))return s?e:{};if(c=initCloneObject(f?{}:e),!t)return copySymbols(e,baseAssign(c,e))}else{if(!k[u])return s?e:{};c=initCloneByTag(e,u,baseClone,t)}}i||(i=new Stack);var m=i.get(e);if(m)return m;if(i.set(e,c),!l)var b=n?getAllKeys(e):keys(e);return arrayEach(b||e,function(a,s){b&&(s=a,a=e[s]),assignValue(c,s,baseClone(a,t,n,r,s,e,i))}),c}function baseCreate(e){return isObject(e)?re(e):{}}function baseGetAllKeys(e,t,n){var r=t(e);return Se(e)?r:arrayPush(r,n(e))}function baseGetTag(e){return K.call(e)}function baseIsNative(e){if(!isObject(e)||isMasked(e))return!1;var t=isFunction(e)||isHostObject(e)?Q:P;return t.test(toSource(e))}function baseKeys(e){if(!isPrototype(e))return ce(e);var t=[];for(var n in Object(e))Y.call(e,n)&&"constructor"!=n&&t.push(n);return t}function cloneBuffer(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function cloneArrayBuffer(e){var t=new e.constructor(e.byteLength);return new te(t).set(new te(e)),t}function cloneDataView(e,t){var n=t?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function cloneMap(e,t,n){var r=t?n(mapToArray(e),!0):mapToArray(e);return arrayReduce(r,addMapEntry,new e.constructor)}function cloneRegExp(e){var t=new e.constructor(e.source,I.exec(e));return t.lastIndex=e.lastIndex,t}function cloneSet(e,t,n){var r=t?n(setToArray(e),!0):setToArray(e);return arrayReduce(r,addSetEntry,new e.constructor)}function cloneSymbol(e){return we?Object(we.call(e)):{}}function cloneTypedArray(e,t){var n=t?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function copyArray(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function copyObject(e,t,n,r){n||(n={});for(var a=-1,s=t.length;++a<s;){var o=t[a],i=r?r(n[o],e[o],o,n,e):void 0;assignValue(n,o,void 0===i?e[o]:i)}return n}function copySymbols(e,t){return copyObject(e,ye(e),t)}function getAllKeys(e){return baseGetAllKeys(e,keys,ye)}function getMapData(e,t){var n=e.__data__;return isKeyable(t)?n["string"==typeof t?"string":"hash"]:n.map}function getNative(e,t){var n=getValue(e,t);return baseIsNative(n)?n:void 0}function initCloneArray(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&Y.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function initCloneObject(e){return"function"!=typeof e.constructor||isPrototype(e)?{}:baseCreate(ne(e))}function initCloneByTag(e,t,n,r){var a=e.constructor;switch(t){case y:return cloneArrayBuffer(e);case c:case l:return new a(+e);case x:return cloneDataView(e,r);case S:case E:case D:case C:case T:case U:case R:case O:case A:return cloneTypedArray(e,r);case f:return cloneMap(e,r,n);case m:case j:return new a(e);case g:return cloneRegExp(e);case v:return cloneSet(e,r,n);case _:return cloneSymbol(e)}}function isIndex(e,t){return t=null==t?s:t,!!t&&("number"==typeof e||z.test(e))&&e>-1&&e%1==0&&e<t}function isKeyable(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function isMasked(e){return!!X&&X in e}function isPrototype(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||V;return e===n}function toSource(e){if(null!=e){try{return $.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function cloneDeep(e){return baseClone(e,!0,!0)}function eq(e,t){return e===t||e!==e&&t!==t}function isArguments(e){return isArrayLikeObject(e)&&Y.call(e,"callee")&&(!ae.call(e,"callee")||K.call(e)==o)}function isArrayLike(e){return null!=e&&isLength(e.length)&&!isFunction(e)}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}function isFunction(e){var t=isObject(e)?K.call(e):"";return t==d||t==p}function isLength(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s}function isObject(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function isObjectLike(e){return!!e&&"object"==typeof e}function keys(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}function stubArray(){return[]}function stubFalse(){return!1}var r=200,a="__lodash_hash_undefined__",s=9007199254740991,o="[object Arguments]",i="[object Array]",c="[object Boolean]",l="[object Date]",u="[object Error]",d="[object Function]",p="[object GeneratorFunction]",f="[object Map]",m="[object Number]",h="[object Object]",b="[object Promise]",g="[object RegExp]",v="[object Set]",j="[object String]",_="[object Symbol]",w="[object WeakMap]",y="[object ArrayBuffer]",x="[object DataView]",S="[object Float32Array]",E="[object Float64Array]",D="[object Int8Array]",C="[object Int16Array]",T="[object Int32Array]",U="[object Uint8Array]",R="[object Uint8ClampedArray]",O="[object Uint16Array]",A="[object Uint32Array]",N=/[\\^$.*+?()[\]{}|]/g,I=/\w*$/,P=/^\[object .+?Constructor\]$/,z=/^(?:0|[1-9]\d*)$/,k={};k[o]=k[i]=k[y]=k[x]=k[c]=k[l]=k[S]=k[E]=k[D]=k[C]=k[T]=k[f]=k[m]=k[h]=k[g]=k[v]=k[j]=k[_]=k[U]=k[R]=k[O]=k[A]=!0,k[u]=k[d]=k[w]=!1;var M="object"==typeof e&&e&&e.Object===Object&&e,L="object"==typeof self&&self&&self.Object===Object&&self,B=M||L||Function("return this")(),F="object"==typeof n&&n&&!n.nodeType&&n,q=F&&"object"==typeof t&&t&&!t.nodeType&&t,G=q&&q.exports===F,J=Array.prototype,H=Function.prototype,V=Object.prototype,W=B["__core-js_shared__"],X=function(){var e=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),$=H.toString,Y=V.hasOwnProperty,K=V.toString,Q=RegExp("^"+$.call(Y).replace(N,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Z=G?B.Buffer:void 0,ee=B.Symbol,te=B.Uint8Array,ne=overArg(Object.getPrototypeOf,Object),re=Object.create,ae=V.propertyIsEnumerable,se=J.splice,oe=Object.getOwnPropertySymbols,ie=Z?Z.isBuffer:void 0,ce=overArg(Object.keys,Object),le=getNative(B,"DataView"),ue=getNative(B,"Map"),de=getNative(B,"Promise"),pe=getNative(B,"Set"),fe=getNative(B,"WeakMap"),me=getNative(Object,"create"),he=toSource(le),be=toSource(ue),ge=toSource(de),ve=toSource(pe),je=toSource(fe),_e=ee?ee.prototype:void 0,we=_e?_e.valueOf:void 0;Hash.prototype.clear=hashClear,Hash.prototype.delete=hashDelete,Hash.prototype.get=hashGet,Hash.prototype.has=hashHas,Hash.prototype.set=hashSet,ListCache.prototype.clear=listCacheClear,ListCache.prototype.delete=listCacheDelete,ListCache.prototype.get=listCacheGet,ListCache.prototype.has=listCacheHas,ListCache.prototype.set=listCacheSet,MapCache.prototype.clear=mapCacheClear,MapCache.prototype.delete=mapCacheDelete,MapCache.prototype.get=mapCacheGet,MapCache.prototype.has=mapCacheHas,MapCache.prototype.set=mapCacheSet,Stack.prototype.clear=stackClear,Stack.prototype.delete=stackDelete,Stack.prototype.get=stackGet,Stack.prototype.has=stackHas,Stack.prototype.set=stackSet;var ye=oe?overArg(oe,Object):stubArray,xe=baseGetTag;(le&&xe(new le(new ArrayBuffer(1)))!=x||ue&&xe(new ue)!=f||de&&xe(de.resolve())!=b||pe&&xe(new pe)!=v||fe&&xe(new fe)!=w)&&(xe=function(e){var t=K.call(e),n=t==h?e.constructor:void 0,r=n?toSource(n):void 0;if(r)switch(r){case he:return x;case be:return f;case ge:return b;case ve:return v;case je:return w}return t});var Se=Array.isArray,Ee=ie||stubFalse;t.exports=cloneDeep}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],"/stanza.io-8.0.2/node_modules/lodash.filter/index.js":[function(e,t,n){function filter(e,t,n){var i=o(e)?r:s;return t=a(t,n,3),i(e,t)}var r=e("lodash._arrayfilter"),a=e("lodash._basecallback"),s=e("lodash._basefilter"),o=e("lodash.isarray");t.exports=filter},{"lodash._arrayfilter":"/stanza.io-8.0.2/node_modules/lodash._arrayfilter/index.js","lodash._basecallback":"/stanza.io-8.0.2/node_modules/lodash._basecallback/index.js","lodash._basefilter":"/stanza.io-8.0.2/node_modules/lodash._basefilter/index.js","lodash.isarray":"/stanza.io-8.0.2/node_modules/lodash.isarray/index.js"}],"/stanza.io-8.0.2/node_modules/lodash.foreach/index.js":[function(e,t,n){function createForEach(e,t){return function(n,r,a){return"function"==typeof r&&void 0===a&&o(n)?e(n,r):t(n,s(r,a,3))}}var r=e("lodash._arrayeach"),a=e("lodash._baseeach"),s=e("lodash._bindcallback"),o=e("lodash.isarray"),i=createForEach(r,a);t.exports=i},{"lodash._arrayeach":"/stanza.io-8.0.2/node_modules/lodash._arrayeach/index.js","lodash._baseeach":"/stanza.io-8.0.2/node_modules/lodash._baseeach/index.js","lodash._bindcallback":"/stanza.io-8.0.2/node_modules/lodash._bindcallback/index.js","lodash.isarray":"/stanza.io-8.0.2/node_modules/lodash.isarray/index.js"}],"/stanza.io-8.0.2/node_modules/lodash.isarguments/index.js":[function(e,t,n){function isArguments(e){return isArrayLikeObject(e)&&c.call(e,"callee")&&(!u.call(e,"callee")||l.call(e)==a)}function isArrayLike(e){return null!=e&&isLength(e.length)&&!isFunction(e)}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}function isFunction(e){var t=isObject(e)?l.call(e):"";return t==s||t==o}function isLength(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function isObject(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function isObjectLike(e){return!!e&&"object"==typeof e}var r=9007199254740991,a="[object Arguments]",s="[object Function]",o="[object GeneratorFunction]",i=Object.prototype,c=i.hasOwnProperty,l=i.toString,u=i.propertyIsEnumerable;t.exports=isArguments},{}],"/stanza.io-8.0.2/node_modules/lodash.isarray/index.js":[function(e,t,n){function isObjectLike(e){return!!e&&"object"==typeof e}function getNative(e,t){var n=null==e?void 0:e[t];return isNative(n)?n:void 0}function isLength(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function isFunction(e){return isObject(e)&&l.call(e)==a}function isObject(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function isNative(e){return null!=e&&(isFunction(e)?u.test(i.call(e)):isObjectLike(e)&&s.test(e))}var r="[object Array]",a="[object Function]",s=/^\[object .+?Constructor\]$/,o=Object.prototype,i=Function.prototype.toString,c=o.hasOwnProperty,l=o.toString,u=RegExp("^"+i.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),d=getNative(Array,"isArray"),p=9007199254740991,f=d||function(e){return isObjectLike(e)&&isLength(e.length)&&l.call(e)==r};t.exports=f},{}],"/stanza.io-8.0.2/node_modules/lodash.istypedarray/index.js":[function(e,t,n){function isLength(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function isObjectLike(e){return!!e&&"object"==typeof e}function isTypedArray(e){return isObjectLike(e)&&isLength(e.length)&&!!T[R.call(e)]}var r=9007199254740991,a="[object Arguments]",s="[object Array]",o="[object Boolean]",i="[object Date]",c="[object Error]",l="[object Function]",u="[object Map]",d="[object Number]",p="[object Object]",f="[object RegExp]",m="[object Set]",h="[object String]",b="[object WeakMap]",g="[object ArrayBuffer]",v="[object DataView]",j="[object Float32Array]",_="[object Float64Array]",w="[object Int8Array]",y="[object Int16Array]",x="[object Int32Array]",S="[object Uint8Array]",E="[object Uint8ClampedArray]",D="[object Uint16Array]",C="[object Uint32Array]",T={};T[j]=T[_]=T[w]=T[y]=T[x]=T[S]=T[E]=T[D]=T[C]=!0,T[a]=T[s]=T[g]=T[o]=T[v]=T[i]=T[c]=T[l]=T[u]=T[d]=T[p]=T[f]=T[m]=T[h]=T[b]=!1;var U=Object.prototype,R=U.toString;t.exports=isTypedArray},{}],"/stanza.io-8.0.2/node_modules/lodash.keys/index.js":[function(e,t,n){function baseProperty(e){return function(t){return null==t?void 0:t[e]}}function isArrayLike(e){return null!=e&&isLength(d(e))}function isIndex(e,t){return e="number"==typeof e||o.test(e)?+e:-1,t=null==t?u:t,e>-1&&e%1==0&&e<t}function isLength(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=u}function shimKeys(e){for(var t=keysIn(e),n=t.length,r=n&&e.length,o=!!r&&isLength(r)&&(s(e)||a(e)),i=-1,l=[];++i<n;){var u=t[i];(o&&isIndex(u,r)||c.call(e,u))&&l.push(u)}return l}function isObject(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function keysIn(e){if(null==e)return[];isObject(e)||(e=Object(e));var t=e.length;t=t&&isLength(t)&&(s(e)||a(e))&&t||0;for(var n=e.constructor,r=-1,o="function"==typeof n&&n.prototype===e,i=Array(t),l=t>0;++r<t;)i[r]=r+"";for(var u in e)l&&isIndex(u,t)||"constructor"==u&&(o||!c.call(e,u))||i.push(u);return i}var r=e("lodash._getnative"),a=e("lodash.isarguments"),s=e("lodash.isarray"),o=/^\d+$/,i=Object.prototype,c=i.hasOwnProperty,l=r(Object,"keys"),u=9007199254740991,d=baseProperty("length"),p=l?function(e){var t=null==e?void 0:e.constructor;return"function"==typeof t&&t.prototype===e||"function"!=typeof e&&isArrayLike(e)?shimKeys(e):isObject(e)?l(e):[]}:shimKeys;t.exports=p},{"lodash._getnative":"/stanza.io-8.0.2/node_modules/lodash._getnative/index.js","lodash.isarguments":"/stanza.io-8.0.2/node_modules/lodash.isarguments/index.js","lodash.isarray":"/stanza.io-8.0.2/node_modules/lodash.isarray/index.js"}],"/stanza.io-8.0.2/node_modules/lodash.pairs/index.js":[function(e,t,n){function toObject(e){return isObject(e)?e:Object(e)}function isObject(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function pairs(e){e=toObject(e);for(var t=-1,n=r(e),a=n.length,s=Array(a);++t<a;){var o=n[t];s[t]=[o,e[o]]}return s}var r=e("lodash.keys");t.exports=pairs},{"lodash.keys":"/stanza.io-8.0.2/node_modules/lodash.keys/index.js"}],"/stanza.io-8.0.2/node_modules/lodash.restparam/index.js":[function(e,t,n){function restParam(e,t){if("function"!=typeof e)throw new TypeError(r);return t=a(void 0===t?e.length-1:+t||0,0),function(){for(var n=arguments,r=-1,s=a(n.length-t,0),o=Array(s);++r<s;)o[r]=n[t+r];switch(t){case 0:return e.call(this,o);case 1:return e.call(this,n[0],o);case 2:return e.call(this,n[0],n[1],o)}var i=Array(t+1);for(r=-1;++r<t;)i[r]=n[r];return i[t]=o,e.apply(this,i)}}var r="Expected a function",a=Math.max;t.exports=restParam},{}],"/stanza.io-8.0.2/node_modules/lodash.uniq/index.js":[function(e,t,n){function sortedUniq(e,t){for(var n,r=-1,a=e.length,s=-1,o=[];++r<a;){var i=e[r],c=t?t(i,r,e):i;r&&n===c||(n=c,o[++s]=i)}return o}function uniq(e,t,n,o){var i=e?e.length:0;return i?(null!=t&&"boolean"!=typeof t&&(o=n,n=s(e,t,o)?void 0:t,t=!1),n=null==n?n:r(n,o,3),t?sortedUniq(e,n):a(e,n)):[]}var r=e("lodash._basecallback"),a=e("lodash._baseuniq"),s=e("lodash._isiterateecall");t.exports=uniq},{"lodash._basecallback":"/stanza.io-8.0.2/node_modules/lodash._basecallback/index.js","lodash._baseuniq":"/stanza.io-8.0.2/node_modules/lodash._baseuniq/index.js","lodash._isiterateecall":"/stanza.io-8.0.2/node_modules/lodash._isiterateecall/index.js"}],"/stanza.io-8.0.2/node_modules/ltx/index.js":[function(e,t,n){"use strict";var r=e("./lib/parse"),a=e("./lib/Parser"),s=e("./lib/escape"),o=e("./lib/Element"),i=e("./lib/equal"),c=e("./lib/createElement"),l=e("./lib/tag"),u=e("./lib/tagString"),d=e("./lib/is"),p=e("./lib/clone"),f=e("./lib/stringify");n=t.exports=function ltx(){return l.apply(null,arguments)},n.Element=o,n.equal=i.equal,n.nameEqual=i.name,n.attrsEqual=i.attrs,n.childrenEqual=i.children,n.isNode=d.isNode,n.isElement=d.isElement,n.isText=d.isText,n.clone=p,n.createElement=c,n.escapeXML=s.escapeXML,n.unescapeXML=s.unescapeXML,n.escapeXMLText=s.escapeXMLText,n.unescapeXMLText=s.unescapeXMLText,n.Parser=a,n.parse=r,n.tag=l,n.tagString=u,n.stringify=f},{"./lib/Element":"/stanza.io-8.0.2/node_modules/ltx/lib/Element.js","./lib/Parser":"/stanza.io-8.0.2/node_modules/ltx/lib/Parser.js","./lib/clone":"/stanza.io-8.0.2/node_modules/ltx/lib/clone.js","./lib/createElement":"/stanza.io-8.0.2/node_modules/ltx/lib/createElement.js","./lib/equal":"/stanza.io-8.0.2/node_modules/ltx/lib/equal.js","./lib/escape":"/stanza.io-8.0.2/node_modules/ltx/lib/escape.js","./lib/is":"/stanza.io-8.0.2/node_modules/ltx/lib/is.js","./lib/parse":"/stanza.io-8.0.2/node_modules/ltx/lib/parse.js","./lib/stringify":"/stanza.io-8.0.2/node_modules/ltx/lib/stringify.js","./lib/tag":"/stanza.io-8.0.2/node_modules/ltx/lib/tag.js","./lib/tagString":"/stanza.io-8.0.2/node_modules/ltx/lib/tagString.js"}],"/stanza.io-8.0.2/node_modules/ltx/lib/DOMElement.js":[function(e,t,n){"use strict";function DOMElement(e,t){a.call(this,e,t),this.nodeType=1,this.nodeName=this.localName}var r=e("inherits"),a=e("./Element");r(DOMElement,a),DOMElement.prototype._getElement=function(e,t){var n=new DOMElement(e,t);return n},Object.defineProperty(DOMElement.prototype,"localName",{get:function(){return this.getName()}}),Object.defineProperty(DOMElement.prototype,"namespaceURI",{get:function(){return this.getNS()}}),Object.defineProperty(DOMElement.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(DOMElement.prototype,"childNodes",{get:function(){return this.children}}),Object.defineProperty(DOMElement.prototype,"textContent",{get:function(){return this.getText()},set:function(e){this.children.push(e)}}),DOMElement.prototype.getElementsByTagName=function(e){return this.getChildren(e)},DOMElement.prototype.getAttribute=function(e){return this.getAttr(e)},DOMElement.prototype.setAttribute=function(e,t){this.attr(e,t)},DOMElement.prototype.getAttributeNS=function(e,t){return"http://www.w3.org/XML/1998/namespace"===e?this.getAttr(["xml",t].join(":")):this.getAttr(t,e)},DOMElement.prototype.setAttributeNS=function(e,t,n){var r;if("http://www.w3.org/XML/1998/namespace"===e)r="xml";else{var a=this.getXmlns();r=a[e]||""}r&&this.attr([r,t].join(":"),n)},DOMElement.prototype.removeAttribute=function(e){this.attr(e,null)},DOMElement.prototype.removeAttributeNS=function(e,t){var n;if("http://www.w3.org/XML/1998/namespace"===e)n="xml";else{var r=this.getXmlns();n=r[e]||""}n&&this.attr([n,t].join(":"),null)},DOMElement.prototype.appendChild=function(e){this.cnode(e)},DOMElement.prototype.removeChild=function(e){this.remove(e)},DOMElement.createElement=function(e,t){var n=new DOMElement(e,t),r=Array.prototype.slice.call(arguments,2);return r.forEach(function(e){n.appendChild(e)}),n},t.exports=DOMElement},{"./Element":"/stanza.io-8.0.2/node_modules/ltx/lib/Element.js",inherits:"/stanza.io-8.0.2/node_modules/inherits/inherits_browser.js"}],"/stanza.io-8.0.2/node_modules/ltx/lib/Element.js":[function(e,t,n){"use strict";function Element(e,t){this.name=e,this.parent=null,this.children=[],this.attrs={},this.setAttrs(t)}var r=e("./escape"),a=r.escapeXML,s=r.escapeXMLText,o=e("./equal"),i=o.equal,c=o.name,l=o.attrs,u=o.children,d=e("./clone");Element.prototype.is=function(e,t){return this.getName()===e&&(!t||this.getNS()===t)},Element.prototype.getName=function(){return this.name.indexOf(":")>=0?this.name.substr(this.name.indexOf(":")+1):this.name},Element.prototype.getNS=function(){if(this.name.indexOf(":")>=0){var e=this.name.substr(0,this.name.indexOf(":"));return this.findNS(e)}return this.findNS()},Element.prototype.findNS=function(e){if(e){var t="xmlns:"+e;if(this.attrs[t])return this.attrs[t];if(this.parent)return this.parent.findNS(e)}else{if(this.attrs.xmlns)return this.attrs.xmlns;if(this.parent)return this.parent.findNS()}},Element.prototype.getXmlns=function(){var e={};this.parent&&(e=this.parent.getXmlns());for(var t in this.attrs){var n=t.match("xmlns:?(.*)");this.attrs.hasOwnProperty(t)&&n&&(e[this.attrs[t]]=n[1])}return e},Element.prototype.setAttrs=function(e){"string"==typeof e?this.attrs.xmlns=e:e&&Object.keys(e).forEach(function(t){this.attrs[t]=e[t]},this)},Element.prototype.getAttr=function(e,t){if(!t)return this.attrs[e];var n=this.getXmlns();return n[t]?this.attrs[[n[t],e].join(":")]:null},Element.prototype.getChild=function(e,t){return this.getChildren(e,t)[0]},Element.prototype.getChildren=function(e,t){for(var n=[],r=0;r<this.children.length;r++){var a=this.children[r];!a.getName||a.getName()!==e||t&&a.getNS()!==t||n.push(a)}return n},Element.prototype.getChildByAttr=function(e,t,n,r){return this.getChildrenByAttr(e,t,n,r)[0]},Element.prototype.getChildrenByAttr=function(e,t,n,r){for(var a=[],s=0;s<this.children.length;s++){var o=this.children[s];!o.attrs||o.attrs[e]!==t||n&&o.getNS()!==n||a.push(o),r&&o.getChildrenByAttr&&a.push(o.getChildrenByAttr(e,t,n,!0))}return r&&(a=[].concat.apply([],a)),a},Element.prototype.getChildrenByFilter=function(e,t){for(var n=[],r=0;r<this.children.length;r++){var a=this.children[r];e(a)&&n.push(a),t&&a.getChildrenByFilter&&n.push(a.getChildrenByFilter(e,!0))}return t&&(n=[].concat.apply([],n)),n},Element.prototype.getText=function(){for(var e="",t=0;t<this.children.length;t++){var n=this.children[t];"string"!=typeof n&&"number"!=typeof n||(e+=n)}return e},Element.prototype.getChildText=function(e,t){var n=this.getChild(e,t);return n?n.getText():null},Element.prototype.getChildElements=function(){return this.getChildrenByFilter(function(e){return e instanceof Element})},Element.prototype.root=function(){return this.parent?this.parent.root():this},Element.prototype.tree=Element.prototype.root,Element.prototype.up=function(){return this.parent?this.parent:this},Element.prototype.c=function(e,t){return this.cnode(new Element(e,t))},Element.prototype.cnode=function(e){return this.children.push(e),"object"==typeof e&&(e.parent=this),e},Element.prototype.t=function(e){return this.children.push(e),this},Element.prototype.remove=function(e,t){var n;return n="string"==typeof e?function(n){return!(n.is&&n.is(e,t))}:function(t){return t!==e},this.children=this.children.filter(n),this},Element.prototype.clone=function(){return d(this)},Element.prototype.text=function(e){return e&&1===this.children.length?(this.children[0]=e,this):this.getText()},Element.prototype.attr=function(e,t){return"undefined"!=typeof t||null===t?(this.attrs||(this.attrs={}),this.attrs[e]=t,this):this.attrs[e]},Element.prototype.toString=function(){var e="";return this.write(function(t){e+=t}),e},Element.prototype.toJSON=function(){return{name:this.name,attrs:this.attrs, | |
children:this.children.map(function(e){return e&&e.toJSON?e.toJSON():e})}},Element.prototype._addChildren=function(e){e(">");for(var t=0;t<this.children.length;t++){var n=this.children[t];(n||0===n)&&(n.write?n.write(e):"string"==typeof n?e(s(n)):n.toString&&e(s(n.toString(10))))}e("</"),e(this.name),e(">")},Element.prototype.write=function(e){e("<"),e(this.name);for(var t in this.attrs){var n=this.attrs[t];null!=n&&(e(" "),e(t),e('="'),"string"!=typeof n&&(n=n.toString()),e(a(n)),e('"'))}0===this.children.length?e("/>"):this._addChildren(e)},Element.prototype.nameEquals=function(e){return c(this,e)},Element.prototype.attrsEquals=function(e){return l(this,e)},Element.prototype.childrenEquals=function(e){return u(this,e)},Element.prototype.equals=function(e){return i(this,e)},t.exports=Element},{"./clone":"/stanza.io-8.0.2/node_modules/ltx/lib/clone.js","./equal":"/stanza.io-8.0.2/node_modules/ltx/lib/equal.js","./escape":"/stanza.io-8.0.2/node_modules/ltx/lib/escape.js"}],"/stanza.io-8.0.2/node_modules/ltx/lib/Parser.js":[function(e,t,n){"use strict";var r=e("events").EventEmitter,a=e("inherits"),s=e("./Element"),o=e("./parsers/ltx"),i=function(e){r.call(this);var t=this.Parser=e&&e.Parser||this.DefaultParser,n=this.Element=e&&e.Element||this.DefaultElement;this.parser=new t;var a,s=this;this.parser.on("startElement",function(e,t){var r=new n(e,t);a=a?a.cnode(r):r}),this.parser.on("endElement",function(e){a&&e===a.name&&(a.parent?a=a.parent:s.tree||(s.tree=a,a=void 0))}),this.parser.on("text",function(e){a&&a.t(e)}),this.parser.on("error",function(e){s.error=e,s.emit("error",e)})};a(i,r),i.prototype.DefaultParser=o,i.prototype.DefaultElement=s,i.prototype.write=function(e){this.parser.write(e)},i.prototype.end=function(e){this.parser.end(e),this.error||(this.tree?this.emit("tree",this.tree):this.emit("error",new Error("Incomplete document")))},t.exports=i},{"./Element":"/stanza.io-8.0.2/node_modules/ltx/lib/Element.js","./parsers/ltx":"/stanza.io-8.0.2/node_modules/ltx/lib/parsers/ltx.js",events:"/stanza.io-8.0.2/node_modules/events/events.js",inherits:"/stanza.io-8.0.2/node_modules/inherits/inherits_browser.js"}],"/stanza.io-8.0.2/node_modules/ltx/lib/clone.js":[function(e,t,n){"use strict";t.exports=function clone(e){for(var clone=new e.constructor(e.name,e.attrs),t=0;t<e.children.length;t++){var n=e.children[t];clone.cnode(n.clone?n.clone():n)}return clone}},{}],"/stanza.io-8.0.2/node_modules/ltx/lib/createElement.js":[function(e,t,n){"use strict";var r=e("./Element");t.exports=function createElement(e,t){for(var n=new r(e,t),a=2;a<arguments.length;a++){var s=arguments[a];s&&n.cnode(s)}return n}},{"./Element":"/stanza.io-8.0.2/node_modules/ltx/lib/Element.js"}],"/stanza.io-8.0.2/node_modules/ltx/lib/equal.js":[function(e,t,n){"use strict";function nameEqual(e,t){return e.name===t.name}function attrsEqual(e,t){var n=e.attrs,r=Object.keys(n),a=r.length;if(a!==Object.keys(t.attrs).length)return!1;for(var s=0,o=a;s<o;s++){var i=r[s],c=n[i];if(null==c||null==t.attrs[i]){if(c!==t.attrs[i])return!1}else if(c.toString()!==t.attrs[i].toString())return!1}return!0}function childrenEqual(e,t){var n=e.children,r=n.length;if(r!==t.children.length)return!1;for(var a=0,s=r;a<s;a++){var o=n[a];if("string"==typeof o){if(o!==t.children[a])return!1}else if(!o.equals(t.children[a]))return!1}return!0}function equal(e,t){return!!nameEqual(e,t)&&(!!attrsEqual(e,t)&&!!childrenEqual(e,t))}t.exports.name=nameEqual,t.exports.attrs=attrsEqual,t.exports.children=childrenEqual,t.exports.equal=equal},{}],"/stanza.io-8.0.2/node_modules/ltx/lib/escape.js":[function(e,t,n){"use strict";function escapeXMLReplace(e){return r[e]}function unescapeXMLReplace(e){return a[e]}var r={"&":"&","<":"<",">":">",'"':""","'":"'"},a={"&":"&","&":"&","<":"<","<":"<",">":">",">":">",""":'"',""":'"',"'":"'","'":"'"};n.escapeXML=function escapeXML(e){return e.replace(/&|<|>|"|'/g,escapeXMLReplace)},n.unescapeXML=function unescapeXML(e){return e.replace(/&(amp|#38|lt|#60|gt|#62|quot|#34|apos|#39);/g,unescapeXMLReplace)},n.escapeXMLText=function escapeXMLText(e){return e.replace(/&|<|>/g,escapeXMLReplace)},n.unescapeXMLText=function unescapeXMLText(e){return e.replace(/&(amp|#38|lt|#60|gt|#62);/g,unescapeXMLReplace)}},{}],"/stanza.io-8.0.2/node_modules/ltx/lib/is.js":[function(e,t,n){"use strict";var r=e("./Element");t.exports.isNode=function is(e){return e instanceof r||"string"==typeof e},t.exports.isElement=function isElement(e){return e instanceof r},t.exports.isText=function isText(e){return"string"==typeof e}},{"./Element":"/stanza.io-8.0.2/node_modules/ltx/lib/Element.js"}],"/stanza.io-8.0.2/node_modules/ltx/lib/parse.js":[function(e,t,n){"use strict";var r=e("./Parser");t.exports=function parse(e,t){var n;n="function"==typeof t?new t:new r(t);var a=null,s=null;if(n.on("tree",function(e){a=e}),n.on("error",function(e){s=e}),n.write(e),n.end(),s)throw s;return a}},{"./Parser":"/stanza.io-8.0.2/node_modules/ltx/lib/Parser.js"}],"/stanza.io-8.0.2/node_modules/ltx/lib/parsers/ltx.js":[function(e,t,n){"use strict";var r=e("inherits"),a=e("events").EventEmitter,s=e("../escape").unescapeXML,o=0,i=1,c=2,l=3,u=4,d=5,p=6,f=7,m=8,h=t.exports=function SaxLtx(){a.call(this);var e,t,n,r,h,b,g,v=o,j=0;this._handleTagOpening=function(e,t,n){e?this.emit("endElement",t):(this.emit("startElement",t,n),h&&this.emit("endElement",t))},this.write=function(a){function endRecording(){if("number"==typeof j){var e=a.slice(j,_);return j=void 0,e}}"string"!=typeof a&&(a=a.toString());var _=0;for(e&&(a=e+a,_+=e.length,e=null);_<a.length;_++){var w=a.charCodeAt(_);switch(v){case o:if(60===w){var y=endRecording();y&&this.emit("text",s(y)),v=l,j=_+1,n={}}break;case l:47===w&&j===_?(j=_+1,r=!0):33===w?(j=void 0,v=i):63===w?(j=void 0,v=c):(w<=32||47===w||62===w)&&(t=endRecording(),_--,v=u);break;case i:if(62===w){var x=a.charCodeAt(_-1),S=a.charCodeAt(_-2);45===x&&45===S&&(v=o)}break;case c:if(62===w){var E=a.charCodeAt(_-1);63===E&&(v=o)}break;case u:62===w?(this._handleTagOpening(r,t,n),t=void 0,n=void 0,r=void 0,h=void 0,v=o,j=_+1):47===w?h=!0:w>32&&(j=_,v=d);break;case d:(w<=32||61===w)&&(g=endRecording(),_--,v=p);break;case p:61===w&&(v=f);break;case f:34!==w&&39!==w||(b=w,v=m,j=_+1);break;case m:if(w===b){var D=s(endRecording());n[g]=D,g=void 0,v=u}}}"number"==typeof j&&j<=a.length&&(e=a.slice(j),j=0)}};r(h,a),h.prototype.end=function(e){e&&this.write(e),this.write=function(){}}},{"../escape":"/stanza.io-8.0.2/node_modules/ltx/lib/escape.js",events:"/stanza.io-8.0.2/node_modules/events/events.js",inherits:"/stanza.io-8.0.2/node_modules/inherits/inherits_browser.js"}],"/stanza.io-8.0.2/node_modules/ltx/lib/stringify.js":[function(e,t,n){"use strict";function stringify(e,t,n){"number"==typeof t&&(t=" ".repeat(t)),n||(n=1);var r="";return r+="<"+e.name,Object.keys(e.attrs).forEach(function(t){r+=" "+t+'="'+e.attrs[t]+'"'}),e.children.length?(r+=">",e.children.forEach(function(e,a){t&&(r+="\n"+t.repeat(n)),r+="string"==typeof e?e:stringify(e,t,n+1)}),t&&(r+="\n"+t.repeat(n-1)),r+="</"+e.name+">"):r+="/>",r}t.exports=stringify},{}],"/stanza.io-8.0.2/node_modules/ltx/lib/tag.js":[function(e,t,n){"use strict";var r=e("./tagString"),a=e("./parse");t.exports=function tag(){return a(r.apply(null,arguments))}},{"./parse":"/stanza.io-8.0.2/node_modules/ltx/lib/parse.js","./tagString":"/stanza.io-8.0.2/node_modules/ltx/lib/tagString.js"}],"/stanza.io-8.0.2/node_modules/ltx/lib/tagString.js":[function(e,t,n){"use strict";var r=e("./escape").escapeXML;t.exports=function tagString(){for(var e=arguments[0],t="",n=1;n<arguments.length;n++)t+=e[n-1],t+=r(arguments[n]);return t+=e[e.length-1]}},{"./escape":"/stanza.io-8.0.2/node_modules/ltx/lib/escape.js"}],"/stanza.io-8.0.2/node_modules/parse-headers/parse-headers.js":[function(e,t,n){var r=e("trim"),a=e("for-each"),s=function(e){return"[object Array]"===Object.prototype.toString.call(e)};t.exports=function(e){if(!e)return{};var t={};return a(r(e).split("\n"),function(e){var n=e.indexOf(":"),a=r(e.slice(0,n)).toLowerCase(),o=r(e.slice(n+1));"undefined"==typeof t[a]?t[a]=o:s(t[a])?t[a].push(o):t[a]=[t[a],o]}),t}},{"for-each":"/stanza.io-8.0.2/node_modules/for-each/index.js",trim:"/stanza.io-8.0.2/node_modules/trim/index.js"}],"/stanza.io-8.0.2/node_modules/process-nextick-args/index.js":[function(e,t,n){(function(e){"use strict";function nextTick(t,n,r,a){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var s,o,i=arguments.length;switch(i){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick(function afterTickOne(){t.call(null,n)});case 3:return e.nextTick(function afterTickTwo(){t.call(null,n,r)});case 4:return e.nextTick(function afterTickThree(){t.call(null,n,r,a)});default:for(s=new Array(i-1),o=0;o<s.length;)s[o++]=arguments[o];return e.nextTick(function afterTick(){t.apply(null,s)})}}!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports=nextTick:t.exports=e.nextTick}).call(this,e("_process"))},{_process:"/stanza.io-8.0.2/node_modules/browserify/node_modules/process/browser.js"}],"/stanza.io-8.0.2/node_modules/punycode/punycode.js":[function(t,n,r){(function(t){!function(a){function error(e){throw new RangeError(y[e])}function map(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function mapDomain(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(w,".");var a=e.split("."),s=map(a,t).join(".");return r+s}function ucs2decode(e){for(var t,n,r=[],a=0,s=e.length;a<s;)t=e.charCodeAt(a++),t>=55296&&t<=56319&&a<s?(n=e.charCodeAt(a++),56320==(64512&n)?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),a--)):r.push(t);return r}function ucs2encode(e){return map(e,function(e){var t="";return e>65535&&(e-=65536,t+=E(e>>>10&1023|55296),e=56320|1023&e),t+=E(e)}).join("")}function basicToDigit(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:d}function digitToBasic(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function adapt(e,t,n){var r=0;for(e=n?S(e/h):e>>1,e+=S(e/t);e>x*f>>1;r+=d)e=S(e/x);return S(r+(x+1)*e/(e+m))}function decode(e){var t,n,r,a,s,o,i,c,l,m,h=[],j=e.length,_=0,w=g,y=b;for(n=e.lastIndexOf(v),n<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&error("not-basic"),h.push(e.charCodeAt(r));for(a=n>0?n+1:0;a<j;){for(s=_,o=1,i=d;a>=j&&error("invalid-input"),c=basicToDigit(e.charCodeAt(a++)),(c>=d||c>S((u-_)/o))&&error("overflow"),_+=c*o,l=i<=y?p:i>=y+f?f:i-y,!(c<l);i+=d)m=d-l,o>S(u/m)&&error("overflow"),o*=m;t=h.length+1,y=adapt(_-s,t,0==s),S(_/t)>u-w&&error("overflow"),w+=S(_/t),_%=t,h.splice(_++,0,w)}return ucs2encode(h)}function encode(e){var t,n,r,a,s,o,i,c,l,m,h,j,_,w,y,x=[];for(e=ucs2decode(e),j=e.length,t=g,n=0,s=b,o=0;o<j;++o)h=e[o],h<128&&x.push(E(h));for(r=a=x.length,a&&x.push(v);r<j;){for(i=u,o=0;o<j;++o)h=e[o],h>=t&&h<i&&(i=h);for(_=r+1,i-t>S((u-n)/_)&&error("overflow"),n+=(i-t)*_,t=i,o=0;o<j;++o)if(h=e[o],h<t&&++n>u&&error("overflow"),h==t){for(c=n,l=d;m=l<=s?p:l>=s+f?f:l-s,!(c<m);l+=d)y=c-m,w=d-m,x.push(E(digitToBasic(m+y%w,0))),c=S(y/w);x.push(E(digitToBasic(c,0))),s=adapt(n,_,r==a),n=0,++r}++n,++t}return x.join("")}function toUnicode(e){return mapDomain(e,function(e){return j.test(e)?decode(e.slice(4).toLowerCase()):e})}function toASCII(e){return mapDomain(e,function(e){return _.test(e)?"xn--"+encode(e):e})}var s="object"==typeof r&&r&&!r.nodeType&&r,o="object"==typeof n&&n&&!n.nodeType&&n,i="object"==typeof t&&t;i.global!==i&&i.window!==i&&i.self!==i||(a=i);var c,l,u=2147483647,d=36,p=1,f=26,m=38,h=700,b=72,g=128,v="-",j=/^xn--/,_=/[^\x20-\x7E]/,w=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=d-p,S=Math.floor,E=String.fromCharCode;if(c={version:"1.4.1",ucs2:{decode:ucs2decode,encode:ucs2encode},decode:decode,encode:encode,toASCII:toASCII,toUnicode:toUnicode},"function"==typeof e&&"object"==typeof e.amd&&e.amd)e("punycode",function(){return c});else if(s&&o)if(n.exports==s)o.exports=c;else for(l in c)c.hasOwnProperty(l)&&(s[l]=c[l]);else a.punycode=c}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],"/stanza.io-8.0.2/node_modules/randombytes/browser.js":[function(e,t,n){(function(e,n,r){"use strict";function oldBrowser(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}function randomBytes(t,s){if(t>65536)throw new Error("requested too many random bytes");var o=new n.Uint8Array(t);t>0&&a.getRandomValues(o);var i=new r(o.buffer);return"function"==typeof s?e.nextTick(function(){s(null,i)}):i}var a=n.crypto||n.msCrypto;a&&a.getRandomValues?t.exports=randomBytes:t.exports=oldBrowser}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{_process:"/stanza.io-8.0.2/node_modules/browserify/node_modules/process/browser.js",buffer:"/stanza.io-8.0.2/node_modules/buffer/index.js"}],"/stanza.io-8.0.2/node_modules/ripemd160/lib/ripemd160.js":[function(e,t,n){(function(e){function bytesToWords(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t}function wordsToBytes(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t}function processBlock(e,t,c){for(var l=0;l<16;l++){var u=c+l,d=t[u];t[u]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}var p,f,m,h,b,g,v,j,_,w;g=p=e[0],v=f=e[1],j=m=e[2],_=h=e[3],w=b=e[4];var y;for(l=0;l<80;l+=1)y=p+t[c+n[l]]|0,y+=l<16?f1(f,m,h)+o[0]:l<32?f2(f,m,h)+o[1]:l<48?f3(f,m,h)+o[2]:l<64?f4(f,m,h)+o[3]:f5(f,m,h)+o[4],y|=0,y=rotl(y,a[l]),y=y+b|0,p=b,b=h,h=rotl(m,10),m=f,f=y,y=g+t[c+r[l]]|0,y+=l<16?f5(v,j,_)+i[0]:l<32?f4(v,j,_)+i[1]:l<48?f3(v,j,_)+i[2]:l<64?f2(v,j,_)+i[3]:f1(v,j,_)+i[4],y|=0,y=rotl(y,s[l]),y=y+w|0,g=w,w=_,_=rotl(j,10),j=v,v=y;y=e[1]+m+_|0,e[1]=e[2]+h+w|0,e[2]=e[3]+b+g|0,e[3]=e[4]+p+v|0,e[4]=e[0]+f+j|0,e[0]=y}function f1(e,t,n){return e^t^n}function f2(e,t,n){return e&t|~e&n}function f3(e,t,n){return(e|~t)^n}function f4(e,t,n){return e&n|t&~n}function f5(e,t,n){return e^(t|~n)}function rotl(e,t){return e<<t|e>>>32-t}function ripemd160(t){var n=[1732584193,4023233417,2562383102,271733878,3285377520];"string"==typeof t&&(t=new e(t,"utf8"));var r=bytesToWords(t),a=8*t.length,s=8*t.length;r[a>>>5]|=128<<24-a%32,r[(a+64>>>9<<4)+14]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8);for(var o=0;o<r.length;o+=16)processBlock(n,r,o);for(o=0;o<5;o++){var i=n[o];n[o]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var c=wordsToBytes(n);return new e(c)}var n=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],r=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],a=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],o=[0,1518500249,1859775393,2400959708,2840853838],i=[1352829926,1548603684,1836072691,2053994217,0];t.exports=ripemd160}).call(this,e("buffer").Buffer)},{buffer:"/stanza.io-8.0.2/node_modules/buffer/index.js"}],"/stanza.io-8.0.2/node_modules/rtcpeerconnection/rtcpeerconnection.js":[function(e,t,n){function PeerConnection(e,t){var n,r=this;s.call(this),e=e||{},e.iceServers=e.iceServers||[];var a=i.browserDetails.browser;this.enableChromeNativeSimulcast=!1,t&&t.optional&&"chrome"===a&&null===navigator.appVersion.match(/Chromium\//)&&t.optional.forEach(function(e){e.enableChromeNativeSimulcast&&(r.enableChromeNativeSimulcast=!0)}),this.enableMultiStreamHacks=!1,t&&t.optional&&"chrome"===a&&t.optional.forEach(function(e){e.enableMultiStreamHacks&&(r.enableMultiStreamHacks=!0)}),this.restrictBandwidth=0,t&&t.optional&&t.optional.forEach(function(e){e.andyetRestrictBandwidth&&(r.restrictBandwidth=e.andyetRestrictBandwidth)}),this.batchIceCandidates=0,t&&t.optional&&t.optional.forEach(function(e){e.andyetBatchIce&&(r.batchIceCandidates=e.andyetBatchIce)}),this.batchedIceCandidates=[],t&&t.optional&&"chrome"===a&&t.optional.forEach(function(e){e.andyetFasterICE&&(r.eliminateDuplicateCandidates=e.andyetFasterICE)}),t&&t.optional&&t.optional.forEach(function(e){e.andyetDontSignalCandidates&&(r.dontSignalCandidates=e.andyetDontSignalCandidates)}),this.assumeSetLocalSuccess=!1,t&&t.optional&&t.optional.forEach(function(e){e.andyetAssumeSetLocalSuccess&&(r.assumeSetLocalSuccess=e.andyetAssumeSetLocalSuccess)}),"firefox"===a&&t&&t.optional&&(this.wtFirefox=0,t.optional.forEach(function(e){e.andyetFirefoxMakesMeSad&&(r.wtFirefox=e.andyetFirefoxMakesMeSad,r.wtFirefox>0&&(r.firefoxcandidatebuffer=[]))})),this.pc=new o(e,t),this.getLocalStreams=this.pc.getLocalStreams.bind(this.pc),this.getRemoteStreams=this.pc.getRemoteStreams.bind(this.pc),this.addStream=this.pc.addStream.bind(this.pc),this.removeStream=this.pc.removeStream.bind(this.pc),this.pc.on("*",function(){r.emit.apply(r,arguments)}),this.pc.onremovestream=this.emit.bind(this,"removeStream"),this.pc.onaddstream=this.emit.bind(this,"addStream"),this.pc.onnegotiationneeded=this.emit.bind(this,"negotiationNeeded"),this.pc.oniceconnectionstatechange=this.emit.bind(this,"iceConnectionStateChange"),this.pc.onsignalingstatechange=this.emit.bind(this,"signalingStateChange"),this.pc.onicecandidate=this._onIce.bind(this),this.pc.ondatachannel=this._onDataChannel.bind(this),this.localDescription={contents:[]},this.remoteDescription={contents:[]},this.config={debug:!1,sid:"",isInitiator:!0,sdpSessionID:Date.now(),useJingle:!1},this.iceCredentials={local:{},remote:{}};for(n in e)this.config[n]=e[n];this.config.debug&&this.on("*",function(){var t=e.logger||console;t.log("PeerConnection event:",arguments)}),this.hadLocalStunCandidate=!1,this.hadRemoteStunCandidate=!1,this.hadLocalRelayCandidate=!1,this.hadRemoteRelayCandidate=!1,this.hadLocalIPv6Candidate=!1,this.hadRemoteIPv6Candidate=!1,this._remoteDataChannels=[],this._localDataChannels=[],this._candidateBuffer=[]}var r=e("util"),a=e("sdp-jingle-json"),s=e("wildemitter"),o=e("traceablepeerconnection"),i=e("webrtc-adapter"),c=e("lodash.clonedeep");r.inherits(PeerConnection,s),Object.defineProperty(PeerConnection.prototype,"signalingState",{get:function(){return this.pc.signalingState}}),Object.defineProperty(PeerConnection.prototype,"iceConnectionState",{get:function(){return this.pc.iceConnectionState}}),PeerConnection.prototype._role=function(){return this.isInitiator?"initiator":"responder"},PeerConnection.prototype.addStream=function(e){this.localStream=e,this.pc.addStream(e)},PeerConnection.prototype._checkLocalCandidate=function(e){var t=a.toCandidateJSON(e);"srflx"==t.type?this.hadLocalStunCandidate=!0:"relay"==t.type&&(this.hadLocalRelayCandidate=!0),t.ip.indexOf(":")!=-1&&(this.hadLocalIPv6Candidate=!0)},PeerConnection.prototype._checkRemoteCandidate=function(e){var t=a.toCandidateJSON(e);"srflx"==t.type?this.hadRemoteStunCandidate=!0:"relay"==t.type&&(this.hadRemoteRelayCandidate=!0),t.ip.indexOf(":")!=-1&&(this.hadRemoteIPv6Candidate=!0)},PeerConnection.prototype.processIce=function(e,t){t=t||function(){};var n=this;if("closed"===this.pc.signalingState)return t();if(e.contents||e.jingle&&e.jingle.contents){var r=this.remoteDescription.contents.map(function(e){return e.name}),s=e.contents||e.jingle.contents;s.forEach(function(e){var s=e.transport||{},o=s.candidates||[],i=r.indexOf(e.name),c=e.name,l=n.remoteDescription.contents.find(function(t){return t.name===e.name}),u=function(){o.forEach(function(e){var t=a.toCandidateSDP(e)+"\r\n";n.pc.addIceCandidate(new RTCIceCandidate({candidate:t,sdpMLineIndex:i,sdpMid:c}),function(){},function(e){n.emit("error",e)}),n._checkRemoteCandidate(t)}),t()};if(n.iceCredentials.remote[e.name]&&s.ufrag&&n.iceCredentials.remote[e.name].ufrag!==s.ufrag)if(l){l.transport.ufrag=s.ufrag,l.transport.pwd=s.pwd;var d={type:"offer",jingle:n.remoteDescription};d.sdp=a.toSessionSDP(d.jingle,{sid:n.config.sdpSessionID,role:n._role(),direction:"incoming"}),n.pc.setRemoteDescription(new RTCSessionDescription(d),function(){u()},function(e){n.emit("error",e)})}else n.emit("error","ice restart failed to find matching content");else u()})}else{if(e.candidate&&0!==e.candidate.candidate.indexOf("a=")&&(e.candidate.candidate="a="+e.candidate.candidate),this.wtFirefox&&null!==this.firefoxcandidatebuffer&&this.pc.localDescription&&"offer"===this.pc.localDescription.type)return this.firefoxcandidatebuffer.push(e.candidate),t();n.pc.addIceCandidate(new RTCIceCandidate(e.candidate),function(){},function(e){n.emit("error",e)}),n._checkRemoteCandidate(e.candidate.candidate),t()}},PeerConnection.prototype.offer=function(e,t){var n=this,r=2===arguments.length,s=r&&e?e:{offerToReceiveAudio:1,offerToReceiveVideo:1};return t=r?t:e,t=t||function(){},"closed"===this.pc.signalingState?t("Already closed"):void this.pc.createOffer(function(e){var r={type:"offer",sdp:e.sdp};n.assumeSetLocalSuccess&&(n.emit("offer",r),t(null,r)),n._candidateBuffer=[],n.pc.setLocalDescription(e,function(){var s;n.config.useJingle&&(s=a.toSessionJSON(e.sdp,{role:n._role(),direction:"outgoing"}),s.sid=n.config.sid,n.localDescription=s,s.contents.forEach(function(e){var t=e.transport||{};t.ufrag&&(n.iceCredentials.local[e.name]={ufrag:t.ufrag,pwd:t.pwd})}),r.jingle=s),r.sdp.split("\r\n").forEach(function(e){0===e.indexOf("a=candidate:")&&n._checkLocalCandidate(e)}),n.assumeSetLocalSuccess||(n.emit("offer",r),t(null,r))},function(e){n.emit("error",e),t(e)})},function(e){n.emit("error",e),t(e)},s)},PeerConnection.prototype.handleOffer=function(e,t){t=t||function(){};var n=this;if(e.type="offer",e.jingle){if(this.enableChromeNativeSimulcast&&e.jingle.contents.forEach(function(e){"video"===e.name&&(e.application.googConferenceFlag=!0)}),this.enableMultiStreamHacks&&e.jingle.contents.forEach(function(e){if("video"===e.name){var t=e.application.sources||[];0!==t.length&&"3735928559"===t[0].ssrc||(t.unshift({ssrc:"3735928559",parameters:[{key:"cname",value:"deadbeef"},{key:"msid",value:"mixyourfecintothis please"}]}),e.application.sources=t)}}),n.restrictBandwidth>0&&e.jingle.contents.length>=2&&"video"===e.jingle.contents[1].name){var r=e.jingle.contents[1],s=r.application&&r.application.bandwidth&&r.application.bandwidth.bandwidth;s||(e.jingle.contents[1].application.bandwidth={type:"AS",bandwidth:n.restrictBandwidth.toString()},e.sdp=a.toSessionSDP(e.jingle,{sid:n.config.sdpSessionID,role:n._role(),direction:"outgoing"}))}e.jingle.contents.forEach(function(e){var t=e.transport||{};t.ufrag&&(n.iceCredentials.remote[e.name]={ufrag:t.ufrag,pwd:t.pwd})}),e.sdp=a.toSessionSDP(e.jingle,{sid:n.config.sdpSessionID,role:n._role(),direction:"incoming"}),n.remoteDescription=e.jingle}e.sdp.split("\r\n").forEach(function(e){0===e.indexOf("a=candidate:")&&n._checkRemoteCandidate(e)}),n.pc.setRemoteDescription(new RTCSessionDescription(e),function(){t()},t)},PeerConnection.prototype.answerAudioOnly=function(e){var t={mandatory:{OfferToReceiveAudio:!0,OfferToReceiveVideo:!1}};this._answer(t,e)},PeerConnection.prototype.answerBroadcastOnly=function(e){var t={mandatory:{OfferToReceiveAudio:!1,OfferToReceiveVideo:!1}};this._answer(t,e)},PeerConnection.prototype.answer=function(e,t){var n=2===arguments.length,r=n?t:e,a=n&&e?e:{mandatory:{OfferToReceiveAudio:!0,OfferToReceiveVideo:!0}};this._answer(a,r)},PeerConnection.prototype.handleAnswer=function(e,t){t=t||function(){};var n=this;e.jingle&&(e.sdp=a.toSessionSDP(e.jingle,{sid:n.config.sdpSessionID,role:n._role(),direction:"incoming"}),n.remoteDescription=e.jingle,e.jingle.contents.forEach(function(e){var t=e.transport||{};t.ufrag&&(n.iceCredentials.remote[e.name]={ufrag:t.ufrag,pwd:t.pwd})})),e.sdp.split("\r\n").forEach(function(e){0===e.indexOf("a=candidate:")&&n._checkRemoteCandidate(e)}),n.pc.setRemoteDescription(new RTCSessionDescription(e),function(){n.wtFirefox&&window.setTimeout(function(){n.firefoxcandidatebuffer.forEach(function(e){n.pc.addIceCandidate(new RTCIceCandidate(e),function(){},function(e){n.emit("error",e)}),n._checkRemoteCandidate(e.candidate)}),n.firefoxcandidatebuffer=null},n.wtFirefox),t(null)},t)},PeerConnection.prototype.close=function(){this.pc.close(),this._localDataChannels=[],this._remoteDataChannels=[],this.emit("close")},PeerConnection.prototype._answer=function(e,t){t=t||function(){};var n=this;if(!this.pc.remoteDescription)throw new Error("remoteDescription not set");return"closed"===this.pc.signalingState?t("Already closed"):void n.pc.createAnswer(function(e){var r=[];if(n.enableChromeNativeSimulcast&&(e.jingle=a.toSessionJSON(e.sdp,{role:n._role(),direction:"outgoing"}),e.jingle.contents.length>=2&&"video"===e.jingle.contents[1].name)){var s=e.jingle.contents[1].application.sourceGroups||[],o=!1;if(s.forEach(function(e){"SIM"==e.semantics&&(o=!0)}),!o&&e.jingle.contents[1].application.sources.length){var i=JSON.parse(JSON.stringify(e.jingle.contents[1].application.sources[0]));i.ssrc=""+Math.floor(4294967295*Math.random()),e.jingle.contents[1].application.sources.push(i),r.push(e.jingle.contents[1].application.sources[0].ssrc),r.push(i.ssrc),s.push({semantics:"SIM",sources:r});var l=JSON.parse(JSON.stringify(i));l.ssrc=""+Math.floor(4294967295*Math.random()),e.jingle.contents[1].application.sources.push(l),s.push({semantics:"FID",sources:[i.ssrc,l.ssrc]}),e.jingle.contents[1].application.sourceGroups=s,e.sdp=a.toSessionSDP(e.jingle,{sid:n.config.sdpSessionID,role:n._role(),direction:"outgoing"})}}var u={type:"answer",sdp:e.sdp};if(n.assumeSetLocalSuccess){var d=c(u);n.emit("answer",d),t(null,d)}n._candidateBuffer=[],n.pc.setLocalDescription(e,function(){if(n.config.useJingle){var r=a.toSessionJSON(e.sdp,{role:n._role(),direction:"outgoing"});r.sid=n.config.sid,n.localDescription=r,u.jingle=r}if(n.enableChromeNativeSimulcast&&(u.jingle||(u.jingle=a.toSessionJSON(e.sdp,{role:n._role(),direction:"outgoing"})),u.jingle.contents[1].application.sources.forEach(function(e,t){e.parameters=e.parameters.map(function(e){return"msid"===e.key&&(e.value+="-"+Math.floor(t/2)),e})}),u.sdp=a.toSessionSDP(u.jingle,{sid:n.sdpSessionID,role:n._role(),direction:"outgoing"})),u.sdp.split("\r\n").forEach(function(e){0===e.indexOf("a=candidate:")&&n._checkLocalCandidate(e)}),!n.assumeSetLocalSuccess){var s=c(u);n.emit("answer",s),t(null,s)}},function(e){n.emit("error",e),t(e)})},function(e){n.emit("error",e),t(e)},e)},PeerConnection.prototype._onIce=function(e){var t=this;if(e.candidate){if(this.dontSignalCandidates)return;var n=e.candidate,r={candidate:{candidate:n.candidate,sdpMid:n.sdpMid,sdpMLineIndex:n.sdpMLineIndex}};this._checkLocalCandidate(n.candidate);var s,o,i=a.toCandidateJSON(n.candidate);if(this.eliminateDuplicateCandidates&&"relay"===i.type&&(s=this._candidateBuffer.filter(function(e){return"relay"===e.type}).map(function(e){return e.foundation+":"+e.component}),o=s.indexOf(i.foundation+":"+i.component),o>-1&&i.priority>>24>=s[o].priority>>24))return;if("max-bundle"===this.config.bundlePolicy&&(s=this._candidateBuffer.filter(function(e){return i.type===e.type}).map(function(e){return e.address+":"+e.port}),o=s.indexOf(i.address+":"+i.port),o>-1))return;if("require"===this.config.rtcpMuxPolicy&&"2"===i.component)return;if(this._candidateBuffer.push(i),t.config.useJingle){if(n.sdpMid||(t.pc.remoteDescription&&"offer"===t.pc.remoteDescription.type?n.sdpMid=t.remoteDescription.contents[n.sdpMLineIndex].name:n.sdpMid=t.localDescription.contents[n.sdpMLineIndex].name),!t.iceCredentials.local[n.sdpMid]){var c=a.toSessionJSON(t.pc.localDescription.sdp,{role:t._role(),direction:"outgoing"});c.contents.forEach(function(e){var n=e.transport||{};n.ufrag&&(t.iceCredentials.local[e.name]={ufrag:n.ufrag,pwd:n.pwd})})}if(r.jingle={contents:[{name:n.sdpMid,creator:t._role(),transport:{transportType:"iceUdp",ufrag:t.iceCredentials.local[n.sdpMid].ufrag,pwd:t.iceCredentials.local[n.sdpMid].pwd,candidates:[i]}}]},t.batchIceCandidates>0)return 0===t.batchedIceCandidates.length&&window.setTimeout(function(){var e={};t.batchedIceCandidates.forEach(function(t){t=t.contents[0],e[t.name]||(e[t.name]=t),e[t.name].transport.candidates.push(t.transport.candidates[0])});var n={jingle:{contents:[]}};Object.keys(e).forEach(function(t){n.jingle.contents.push(e[t])}),t.batchedIceCandidates=[],t.emit("ice",n)},t.batchIceCandidates),void t.batchedIceCandidates.push(r.jingle)}this.emit("ice",r)}else this.emit("endOfCandidates")},PeerConnection.prototype._onDataChannel=function(e){var t=e.channel;this._remoteDataChannels.push(t),this.emit("addChannel",t)},PeerConnection.prototype.createDataChannel=function(e,t){var n=this.pc.createDataChannel(e,t);return this._localDataChannels.push(n),n},PeerConnection.prototype.getStats=function(e){this.pc.getStats(null,function(t){e(null,t)},function(t){e(t)})},t.exports=PeerConnection},{"lodash.clonedeep":"/stanza.io-8.0.2/node_modules/lodash.clonedeep/index.js","sdp-jingle-json":"/stanza.io-8.0.2/node_modules/sdp-jingle-json/index.js",traceablepeerconnection:"/stanza.io-8.0.2/node_modules/traceablepeerconnection/index.js",util:"/stanza.io-8.0.2/node_modules/util/util.js","webrtc-adapter":"/stanza.io-8.0.2/node_modules/webrtc-adapter/src/js/adapter_core.js",wildemitter:"/stanza.io-8.0.2/node_modules/wildemitter/wildemitter.js"}],"/stanza.io-8.0.2/node_modules/sasl-anonymous/lib/mechanism.js":[function(t,n,r){!function(t,a){"object"==typeof r?a(r,n):"function"==typeof e&&e.amd&&e(["exports","module"],a)}(this,function(e,t){function Mechanism(){}Mechanism.prototype.name="ANONYMOUS",Mechanism.prototype.clientFirst=!0,Mechanism.prototype.response=function(e){return e.trace||""},Mechanism.prototype.challenge=function(e){},e=t.exports=Mechanism})},{}],"/stanza.io-8.0.2/node_modules/sasl-anonymous/main.js":[function(t,n,r){!function(a,s){"object"==typeof r?s(r,n,t("./lib/mechanism")):"function"==typeof e&&e.amd&&e(["exports","module","./lib/mechanism"],s)}(this,function(e,t,n){e=t.exports=n,e.Mechanism=n})},{"./lib/mechanism":"/stanza.io-8.0.2/node_modules/sasl-anonymous/lib/mechanism.js" | |
}],"/stanza.io-8.0.2/node_modules/sasl-external/lib/mechanism.js":[function(t,n,r){!function(t,a){"object"==typeof r?a(r,n):"function"==typeof e&&e.amd&&e(["exports","module"],a)}(this,function(e,t){function Mechanism(){}Mechanism.prototype.name="EXTERNAL",Mechanism.prototype.clientFirst=!0,Mechanism.prototype.response=function(e){return e.authzid||""},Mechanism.prototype.challenge=function(e){},e=t.exports=Mechanism})},{}],"/stanza.io-8.0.2/node_modules/sasl-external/main.js":[function(e,t,n){arguments[4]["/stanza.io-8.0.2/node_modules/sasl-anonymous/main.js"][0].apply(n,arguments)},{"./lib/mechanism":"/stanza.io-8.0.2/node_modules/sasl-external/lib/mechanism.js"}],"/stanza.io-8.0.2/node_modules/sasl-plain/lib/mechanism.js":[function(t,n,r){!function(t,a){"object"==typeof r?a(r,n):"function"==typeof e&&e.amd&&e(["exports","module"],a)}(this,function(e,t){function Mechanism(){}Mechanism.prototype.name="PLAIN",Mechanism.prototype.clientFirst=!0,Mechanism.prototype.response=function(e){var t="";return t+=e.authzid||"",t+="\0",t+=e.username,t+="\0",t+=e.password},Mechanism.prototype.challenge=function(e){return this},e=t.exports=Mechanism})},{}],"/stanza.io-8.0.2/node_modules/sasl-plain/main.js":[function(e,t,n){arguments[4]["/stanza.io-8.0.2/node_modules/sasl-anonymous/main.js"][0].apply(n,arguments)},{"./lib/mechanism":"/stanza.io-8.0.2/node_modules/sasl-plain/lib/mechanism.js"}],"/stanza.io-8.0.2/node_modules/sasl-scram-sha-1/index.js":[function(e,t,n){(function(n){function Mechanism(e){e=e||{},this._genNonce=e.genNonce||a.genNonce,this._stage="initial"}var r=e("./lib/bitops"),a=e("./lib/utils"),s={},o="Client Key",i="Server Key";Mechanism.Mechanism=Mechanism,Mechanism.prototype.name="SCRAM-SHA-1",Mechanism.prototype.clientFirst=!0,Mechanism.prototype.response=function(e){return s[this._stage](this,e)},Mechanism.prototype.challenge=function(e){var t=a.parse(e);return this._salt=new n(t.s||"","base64"),this._iterationCount=parseInt(t.i,10),this._nonce=t.r,this._verifier=t.v,this._error=t.e,this._challenge=e,this},s.initial=function(e,t){e._cnonce=e._genNonce();var n="";t.authzid&&(n="a="+a.saslname(t.authzid)),e._gs2Header="n,"+n+",";var r="r="+e._cnonce,s="n="+a.saslname(t.username||"");e._clientFirstMessageBare=s+","+r;var o=e._gs2Header+e._clientFirstMessageBare;return e._stage="challenge",o},s.challenge=function(e,t){var a=new n(e._gs2Header).toString("base64");e._clientFinalMessageWithoutProof="c="+a+",r="+e._nonce;var s,c,l;t.salt&&0===n.compare(t.salt,e._salt)?t.clientKey&&t.serverKey?(c=t.clientKey,l=t.serverKey):t.saltedPassword&&(s=t.saltedPassword,c=r.HMAC(s,o),l=r.HMAC(s,i)):(s=r.Hi(t.password||"",e._salt,e._iterationCount),c=r.HMAC(s,o),l=r.HMAC(s,i));var u=r.H(c),d=e._clientFirstMessageBare+","+e._challenge+","+e._clientFinalMessageWithoutProof,p=r.HMAC(u,d),f=r.XOR(c,p).toString("base64");e._serverSignature=r.HMAC(l,d);var m=e._clientFinalMessageWithoutProof+",p="+f;return e._stage="final",e.cache={salt:e._salt,saltedPassword:s,clientKey:c,serverKey:l},m},s.final=function(){return""},t.exports=Mechanism}).call(this,e("buffer").Buffer)},{"./lib/bitops":"/stanza.io-8.0.2/node_modules/sasl-scram-sha-1/lib/bitops.js","./lib/utils":"/stanza.io-8.0.2/node_modules/sasl-scram-sha-1/lib/utils.js",buffer:"/stanza.io-8.0.2/node_modules/buffer/index.js"}],"/stanza.io-8.0.2/node_modules/sasl-scram-sha-1/lib/bitops.js":[function(e,t,n){(function(t){var r=e("create-hash"),a=e("create-hmac"),s=e("bitwise-xor");n.XOR=s,n.H=function(e){return r("sha1").update(e).digest()},n.HMAC=function(e,t){return a("sha1",e).update(t).digest()},n.Hi=function(e,r,a){for(var s=n.HMAC(e,t.concat([r,new t([0,0,0,1],"binary")])),o=s,i=0;i<a-1;i++)s=n.HMAC(e,s),o=n.XOR(o,s);return o}}).call(this,e("buffer").Buffer)},{"bitwise-xor":"/stanza.io-8.0.2/node_modules/bitwise-xor/index.js",buffer:"/stanza.io-8.0.2/node_modules/buffer/index.js","create-hash":"/stanza.io-8.0.2/node_modules/create-hash/browser.js","create-hmac":"/stanza.io-8.0.2/node_modules/create-hmac/browser.js"}],"/stanza.io-8.0.2/node_modules/sasl-scram-sha-1/lib/utils.js":[function(e,t,n){var r=e("randombytes");n.parse=function(e){for(var t={},n=e.split(/,(?=(?:[^"]|"[^"]*")*$)/),r=0,a=n.length;r<a;r++){var s=/(\w+)=["]?([^"]+)["]?$/.exec(n[r]);s&&(t[s[1]]=s[2])}return t},n.saslname=function(e){for(var t=[],n="",r=0;r<e.length;r++)n=e[r],","===n?t.push("=2C"):"="===n?t.push("=3D"):t.push(n);return t.join("")},n.genNonce=function(e){return r((e||32)/2).toString("hex")}},{randombytes:"/stanza.io-8.0.2/node_modules/randombytes/browser.js"}],"/stanza.io-8.0.2/node_modules/sasl-x-oauth2/lib/mechanism.js":[function(t,n,r){!function(t,a){"object"==typeof r?a(r,n):"function"==typeof e&&e.amd&&e(["exports","module"],a)}(this,function(e,t){function Mechanism(){}Mechanism.prototype.name="X-OAUTH2",Mechanism.prototype.clientFirst=!0,Mechanism.prototype.response=function(e){var t="";return t+="\0",t+=e.username,t+="\0",t+=e.token},Mechanism.prototype.challenge=function(e){},e=t.exports=Mechanism})},{}],"/stanza.io-8.0.2/node_modules/sasl-x-oauth2/main.js":[function(e,t,n){arguments[4]["/stanza.io-8.0.2/node_modules/sasl-anonymous/main.js"][0].apply(n,arguments)},{"./lib/mechanism":"/stanza.io-8.0.2/node_modules/sasl-x-oauth2/lib/mechanism.js"}],"/stanza.io-8.0.2/node_modules/saslmechanisms/lib/factory.js":[function(t,n,r){!function(t,a){"object"==typeof r?a(r,n):"function"==typeof e&&e.amd&&e(["exports","module"],a)}(this,function(e,t){function Factory(){this._mechs=[]}Factory.prototype.use=function(e,t){return t||(t=e,e=t.prototype.name),this._mechs.push({name:e,mech:t}),this},Factory.prototype.create=function(e){for(var t=0,n=this._mechs.length;t<n;t++)for(var r=0,a=e.length;r<a;r++){var s=this._mechs[t];if(s.name==e[r])return new s.mech}return null},e=t.exports=Factory})},{}],"/stanza.io-8.0.2/node_modules/saslmechanisms/main.js":[function(t,n,r){!function(a,s){"object"==typeof r?s(r,n,t("./lib/factory")):"function"==typeof e&&e.amd&&e(["exports","module","./lib/factory"],s)}(this,function(e,t,n){e=t.exports=n,e.Factory=n})},{"./lib/factory":"/stanza.io-8.0.2/node_modules/saslmechanisms/lib/factory.js"}],"/stanza.io-8.0.2/node_modules/sdp-jingle-json/index.js":[function(e,t,n){var r=e("./lib/tosdp"),a=e("./lib/tojson");n.toIncomingSDPOffer=function(e){return r.toSessionSDP(e,{role:"responder",direction:"incoming"})},n.toOutgoingSDPOffer=function(e){return r.toSessionSDP(e,{role:"initiator",direction:"outgoing"})},n.toIncomingSDPAnswer=function(e){return r.toSessionSDP(e,{role:"initiator",direction:"incoming"})},n.toOutgoingSDPAnswer=function(e){return r.toSessionSDP(e,{role:"responder",direction:"outgoing"})},n.toIncomingMediaSDPOffer=function(e){return r.toMediaSDP(e,{role:"responder",direction:"incoming"})},n.toOutgoingMediaSDPOffer=function(e){return r.toMediaSDP(e,{role:"initiator",direction:"outgoing"})},n.toIncomingMediaSDPAnswer=function(e){return r.toMediaSDP(e,{role:"initiator",direction:"incoming"})},n.toOutgoingMediaSDPAnswer=function(e){return r.toMediaSDP(e,{role:"responder",direction:"outgoing"})},n.toCandidateSDP=r.toCandidateSDP,n.toMediaSDP=r.toMediaSDP,n.toSessionSDP=r.toSessionSDP,n.toIncomingJSONOffer=function(e,t){return a.toSessionJSON(e,{role:"responder",direction:"incoming",creators:t})},n.toOutgoingJSONOffer=function(e,t){return a.toSessionJSON(e,{role:"initiator",direction:"outgoing",creators:t})},n.toIncomingJSONAnswer=function(e,t){return a.toSessionJSON(e,{role:"initiator",direction:"incoming",creators:t})},n.toOutgoingJSONAnswer=function(e,t){return a.toSessionJSON(e,{role:"responder",direction:"outgoing",creators:t})},n.toIncomingMediaJSONOffer=function(e,t){return a.toMediaJSON(e,{role:"responder",direction:"incoming",creator:t})},n.toOutgoingMediaJSONOffer=function(e,t){return a.toMediaJSON(e,{role:"initiator",direction:"outgoing",creator:t})},n.toIncomingMediaJSONAnswer=function(e,t){return a.toMediaJSON(e,{role:"initiator",direction:"incoming",creator:t})},n.toOutgoingMediaJSONAnswer=function(e,t){return a.toMediaJSON(e,{role:"responder",direction:"outgoing",creator:t})},n.toCandidateJSON=a.toCandidateJSON,n.toMediaJSON=a.toMediaJSON,n.toSessionJSON=a.toSessionJSON},{"./lib/tojson":"/stanza.io-8.0.2/node_modules/sdp-jingle-json/lib/tojson.js","./lib/tosdp":"/stanza.io-8.0.2/node_modules/sdp-jingle-json/lib/tosdp.js"}],"/stanza.io-8.0.2/node_modules/sdp-jingle-json/lib/parsers.js":[function(e,t,n){n.lines=function(e){return e.split("\r\n").filter(function(e){return e.length>0})},n.findLine=function(e,t,n){for(var r=e.length,a=0;a<t.length;a++)if(t[a].substr(0,r)===e)return t[a];if(!n)return!1;for(var s=0;s<n.length;s++)if(n[s].substr(0,r)===e)return n[s];return!1},n.findLines=function(e,t,n){for(var r=[],a=e.length,s=0;s<t.length;s++)t[s].substr(0,a)===e&&r.push(t[s]);if(r.length||!n)return r;for(var o=0;o<n.length;o++)n[o].substr(0,a)===e&&r.push(n[o]);return r},n.mline=function(e){for(var t=e.substr(2).split(" "),n={media:t[0],port:t[1],proto:t[2],formats:[]},r=3;r<t.length;r++)t[r]&&n.formats.push(t[r]);return n},n.rtpmap=function(e){var t=e.substr(9).split(" "),n={id:t.shift()};return t=t[0].split("/"),n.name=t[0],n.clockrate=t[1],n.channels=3==t.length?t[2]:"1",n},n.sctpmap=function(e){var t=e.substr(10).split(" "),n={number:t.shift(),protocol:t.shift(),streams:t.shift()};return n},n.fmtp=function(e){for(var t,n,r,a=e.substr(e.indexOf(" ")+1).split(";"),s=[],o=0;o<a.length;o++)t=a[o].split("="),n=t[0].trim(),r=t[1],n&&r?s.push({key:n,value:r}):n&&s.push({key:"",value:n});return s},n.crypto=function(e){var t=e.substr(9).split(" "),n={tag:t[0],cipherSuite:t[1],keyParams:t[2],sessionParams:t.slice(3).join(" ")};return n},n.fingerprint=function(e){var t=e.substr(14).split(" ");return{hash:t[0],value:t[1]}},n.extmap=function(e){var t=e.substr(9).split(" "),n={},r=t.shift(),a=r.indexOf("/");return a>=0?(n.id=r.substr(0,a),n.senders=r.substr(a+1)):(n.id=r,n.senders="sendrecv"),n.uri=t.shift()||"",n},n.rtcpfb=function(e){var t=e.substr(10).split(" "),n={};return n.id=t.shift(),n.type=t.shift(),"trr-int"===n.type?n.value=t.shift():n.subtype=t.shift()||"",n.parameters=t,n},n.candidate=function(e){var t;t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" ");for(var n={foundation:t[0],component:t[1],protocol:t[2].toLowerCase(),priority:t[3],ip:t[4],port:t[5],type:t[7],generation:"0"},r=8;r<t.length;r+=2)"raddr"===t[r]?n.relAddr=t[r+1]:"rport"===t[r]?n.relPort=t[r+1]:"generation"===t[r]?n.generation=t[r+1]:"tcptype"===t[r]&&(n.tcpType=t[r+1]);return n.network="1",n},n.sourceGroups=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n].substr(13).split(" ");t.push({semantics:r.shift(),sources:r})}return t},n.sources=function(e){for(var t=[],n={},r=0;r<e.length;r++){var a=e[r].substr(7).split(" "),s=a.shift();if(!n[s]){var o={ssrc:s,parameters:[]};t.push(o),n[s]=o}a=a.join(" ").split(":");var i=a.shift(),c=a.join(":")||null;n[s].parameters.push({key:i,value:c})}return t},n.groups=function(e){for(var t,n=[],r=0;r<e.length;r++)t=e[r].substr(8).split(" "),n.push({semantics:t.shift(),contents:t});return n},n.bandwidth=function(e){var t=e.substr(2).split(":"),n={};return n.type=t.shift(),n.bandwidth=t.shift(),n},n.msid=function(e){var t=e.substr(7),n=t.split(" ");return{msid:t,mslabel:n[0],label:n[1]}}},{}],"/stanza.io-8.0.2/node_modules/sdp-jingle-json/lib/senders.js":[function(e,t,n){t.exports={initiator:{incoming:{initiator:"recvonly",responder:"sendonly",both:"sendrecv",none:"inactive",recvonly:"initiator",sendonly:"responder",sendrecv:"both",inactive:"none"},outgoing:{initiator:"sendonly",responder:"recvonly",both:"sendrecv",none:"inactive",recvonly:"responder",sendonly:"initiator",sendrecv:"both",inactive:"none"}},responder:{incoming:{initiator:"sendonly",responder:"recvonly",both:"sendrecv",none:"inactive",recvonly:"responder",sendonly:"initiator",sendrecv:"both",inactive:"none"},outgoing:{initiator:"recvonly",responder:"sendonly",both:"sendrecv",none:"inactive",recvonly:"initiator",sendonly:"responder",sendrecv:"both",inactive:"none"}}}},{}],"/stanza.io-8.0.2/node_modules/sdp-jingle-json/lib/tojson.js":[function(e,t,n){var r=e("./senders"),a=e("./parsers"),s=Math.random();n._setIdCounter=function(e){s=e},n.toSessionJSON=function(e,t){var r,s=t.creators||[],o=t.role||"initiator",i=t.direction||"outgoing",c=e.split("\r\nm=");for(r=1;r<c.length;r++)c[r]="m="+c[r],r!==c.length-1&&(c[r]+="\r\n");var l=c.shift()+"\r\n",u=a.lines(l),d={},p=[];for(r=0;r<c.length;r++)p.push(n.toMediaJSON(c[r],l,{role:o,direction:i,creator:s[r]||"initiator"}));d.contents=p;var f=a.findLines("a=group:",u);return f.length&&(d.groups=a.groups(f)),d},n.toMediaJSON=function(e,t,s){var o=s.creator||"initiator",i=s.role||"initiator",c=s.direction||"outgoing",l=a.lines(e),u=a.lines(t),d=a.mline(l[0]),p={creator:o,name:d.media,application:{applicationType:"rtp",media:d.media,payloads:[],encryption:[],feedback:[],headerExtensions:[]},transport:{transportType:"iceUdp",candidates:[],fingerprints:[]}};"application"==d.media&&(p.application={applicationType:"datachannel"},p.transport.sctp=[]);var f=p.application,m=p.transport,h=a.findLine("a=mid:",l);if(h&&(p.name=h.substr(6)),a.findLine("a=sendrecv",l,u)?p.senders="both":a.findLine("a=sendonly",l,u)?p.senders=r[i][c].sendonly:a.findLine("a=recvonly",l,u)?p.senders=r[i][c].recvonly:a.findLine("a=inactive",l,u)&&(p.senders="none"),"rtp"==f.applicationType){var b=a.findLine("b=",l);b&&(f.bandwidth=a.bandwidth(b));var g=a.findLine("a=ssrc:",l);g&&(f.ssrc=g.substr(7).split(" ")[0]);var v=a.findLines("a=rtpmap:",l);v.forEach(function(e){var t=a.rtpmap(e);t.parameters=[],t.feedback=[];var n=a.findLines("a=fmtp:"+t.id,l);n.forEach(function(e){t.parameters=a.fmtp(e)});var r=a.findLines("a=rtcp-fb:"+t.id,l);r.forEach(function(e){t.feedback.push(a.rtcpfb(e))}),f.payloads.push(t)});var j=a.findLines("a=crypto:",l,u);j.forEach(function(e){f.encryption.push(a.crypto(e))}),a.findLine("a=rtcp-mux",l)&&(f.mux=!0);var _=a.findLines("a=rtcp-fb:*",l);_.forEach(function(e){f.feedback.push(a.rtcpfb(e))});var w=a.findLines("a=extmap:",l);w.forEach(function(e){var t=a.extmap(e);t.senders=r[i][c][t.senders],f.headerExtensions.push(t)});var y=a.findLines("a=ssrc-group:",l);f.sourceGroups=a.sourceGroups(y||[]);var x=a.findLines("a=ssrc:",l),S=f.sources=a.sources(x||[]),E=a.findLine("a=msid:",l);if(E){var D=a.msid(E);["msid","mslabel","label"].forEach(function(e){for(var t=0;t<S.length;t++){for(var n=!1,r=0;r<S[t].parameters.length;r++)S[t].parameters[r].key===e&&(n=!0);n||S[t].parameters.push({key:e,value:D[e]})}})}a.findLine("a=x-google-flag:conference",l,u)&&(f.googConferenceFlag=!0)}var C=a.findLines("a=fingerprint:",l,u),T=a.findLine("a=setup:",l,u);C.forEach(function(e){var t=a.fingerprint(e);T&&(t.setup=T.substr(8)),m.fingerprints.push(t)});var U=a.findLine("a=ice-ufrag:",l,u),R=a.findLine("a=ice-pwd:",l,u);if(U&&R){m.ufrag=U.substr(12),m.pwd=R.substr(10),m.candidates=[];var O=a.findLines("a=candidate:",l,u);O.forEach(function(e){m.candidates.push(n.toCandidateJSON(e))})}if("datachannel"==f.applicationType){var A=a.findLines("a=sctpmap:",l);A.forEach(function(e){var t=a.sctpmap(e);m.sctp.push(t)})}return p},n.toCandidateJSON=function(e){var t=a.candidate(e.split("\r\n")[0]);return t.id=(s++).toString(36).substr(0,12),t}},{"./parsers":"/stanza.io-8.0.2/node_modules/sdp-jingle-json/lib/parsers.js","./senders":"/stanza.io-8.0.2/node_modules/sdp-jingle-json/lib/senders.js"}],"/stanza.io-8.0.2/node_modules/sdp-jingle-json/lib/tosdp.js":[function(e,t,n){var r=e("./senders");n.toSessionSDP=function(e,t){var r=(t.role||"initiator",t.direction||"outgoing",t.sid||e.sid||Date.now()),a=t.time||Date.now(),s=["v=0","o=- "+r+" "+a+" IN IP4 0.0.0.0","s=-","t=0 0"],o=e.contents||[],i=!1;o.forEach(function(e){e.application.sources&&e.application.sources.length&&(i=!0)}),i&&s.push("a=msid-semantic: WMS *");var c=e.groups||[];return c.forEach(function(e){s.push("a=group:"+e.semantics+" "+e.contents.join(" "))}),o.forEach(function(e){s.push(n.toMediaSDP(e,t))}),s.join("\r\n")+"\r\n"},n.toMediaSDP=function(e,t){var a=[],s=t.role||"initiator",o=t.direction||"outgoing",i=e.application,c=e.transport,l=i.payloads||[],u=c&&c.fingerprints||[],d=[];if("datachannel"==i.applicationType?(d.push("application"),d.push("1"),d.push("DTLS/SCTP"),c.sctp&&c.sctp.forEach(function(e){d.push(e.number)})):(d.push(i.media),d.push("1"),u.length>0?d.push("UDP/TLS/RTP/SAVPF"):i.encryption&&i.encryption.length>0?d.push("RTP/SAVPF"):d.push("RTP/AVPF"),l.forEach(function(e){d.push(e.id)})),a.push("m="+d.join(" ")),a.push("c=IN IP4 0.0.0.0"),i.bandwidth&&i.bandwidth.type&&i.bandwidth.bandwidth&&a.push("b="+i.bandwidth.type+":"+i.bandwidth.bandwidth),"rtp"==i.applicationType&&a.push("a=rtcp:1 IN IP4 0.0.0.0"),c){c.ufrag&&a.push("a=ice-ufrag:"+c.ufrag),c.pwd&&a.push("a=ice-pwd:"+c.pwd);var p=!1;u.forEach(function(e){a.push("a=fingerprint:"+e.hash+" "+e.value),e.setup&&!p&&a.push("a=setup:"+e.setup)}),c.sctp&&c.sctp.forEach(function(e){a.push("a=sctpmap:"+e.number+" "+e.protocol+" "+e.streams)})}"rtp"==i.applicationType&&a.push("a="+(r[s][o][e.senders]||"sendrecv")),a.push("a=mid:"+e.name),i.sources&&i.sources.length&&(i.sources[0].parameters||[]).forEach(function(e){"msid"===e.key&&a.push("a=msid:"+e.value)}),i.mux&&a.push("a=rtcp-mux");var f=i.encryption||[];f.forEach(function(e){a.push("a=crypto:"+e.tag+" "+e.cipherSuite+" "+e.keyParams+(e.sessionParams?" "+e.sessionParams:""))}),i.googConferenceFlag&&a.push("a=x-google-flag:conference"),l.forEach(function(e){var t="a=rtpmap:"+e.id+" "+e.name+"/"+e.clockrate;if(e.channels&&"1"!=e.channels&&(t+="/"+e.channels),a.push(t),e.parameters&&e.parameters.length){var n=["a=fmtp:"+e.id],r=[];e.parameters.forEach(function(e){r.push((e.key?e.key+"=":"")+e.value)}),n.push(r.join(";")),a.push(n.join(" "))}e.feedback&&e.feedback.forEach(function(t){"trr-int"===t.type?a.push("a=rtcp-fb:"+e.id+" trr-int "+(t.value?t.value:"0")):a.push("a=rtcp-fb:"+e.id+" "+t.type+(t.subtype?" "+t.subtype:""))})}),i.feedback&&i.feedback.forEach(function(e){"trr-int"===e.type?a.push("a=rtcp-fb:* trr-int "+(e.value?e.value:"0")):a.push("a=rtcp-fb:* "+e.type+(e.subtype?" "+e.subtype:""))});var m=i.headerExtensions||[];m.forEach(function(e){a.push("a=extmap:"+e.id+(e.senders?"/"+r[s][o][e.senders]:"")+" "+e.uri)});var h=i.sourceGroups||[];h.forEach(function(e){a.push("a=ssrc-group:"+e.semantics+" "+e.sources.join(" "))});var b=i.sources||[];b.forEach(function(e){for(var t=0;t<e.parameters.length;t++){var n=e.parameters[t];a.push("a=ssrc:"+(e.ssrc||i.ssrc)+" "+n.key+(n.value?":"+n.value:""))}});var g=c.candidates||[];return g.forEach(function(e){a.push(n.toCandidateSDP(e))}),a.join("\r\n")},n.toCandidateSDP=function(e){var t=[];t.push(e.foundation),t.push(e.component),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.ip),t.push(e.port);var n=e.type;return t.push("typ"),t.push(n),"srflx"!==n&&"prflx"!==n&&"relay"!==n||e.relAddr&&e.relPort&&(t.push("raddr"),t.push(e.relAddr),t.push("rport"),t.push(e.relPort)),e.tcpType&&"TCP"==e.protocol.toUpperCase()&&(t.push("tcptype"),t.push(e.tcpType)),t.push("generation"),t.push(e.generation||"0"),"a=candidate:"+t.join(" ")}},{"./senders":"/stanza.io-8.0.2/node_modules/sdp-jingle-json/lib/senders.js"}],"/stanza.io-8.0.2/node_modules/sdp/sdp.js":[function(e,t,n){"use strict";var r={};r.generateIdentifier=function(){return Math.random().toString(36).substr(2,10)},r.localCName=r.generateIdentifier(),r.splitLines=function(e){return e.trim().split("\n").map(function(e){return e.trim()})},r.splitSections=function(e){var t=e.split("\nm=");return t.map(function(e,t){return(t>0?"m="+e:e).trim()+"\r\n"})},r.matchPrefix=function(e,t){return r.splitLines(e).filter(function(e){return 0===e.indexOf(t)})},r.parseCandidate=function(e){var t;t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" ");for(var n={foundation:t[0],component:t[1],protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],port:parseInt(t[5],10),type:t[7]},r=8;r<t.length;r+=2)switch(t[r]){case"raddr":n.relatedAddress=t[r+1];break;case"rport":n.relatedPort=parseInt(t[r+1],10);break;case"tcptype":n.tcpType=t[r+1]}return n},r.writeCandidate=function(e){var t=[];t.push(e.foundation),t.push(e.component),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.ip),t.push(e.port);var n=e.type;return t.push("typ"),t.push(n),"host"!==n&&e.relatedAddress&&e.relatedPort&&(t.push("raddr"),t.push(e.relatedAddress),t.push("rport"),t.push(e.relatedPort)),e.tcpType&&"tcp"===e.protocol.toLowerCase()&&(t.push("tcptype"),t.push(e.tcpType)),"candidate:"+t.join(" ")},r.parseRtpMap=function(e){var t=e.substr(9).split(" "),n={payloadType:parseInt(t.shift(),10)};return t=t[0].split("/"),n.name=t[0],n.clockRate=parseInt(t[1],10),n.numChannels=3===t.length?parseInt(t[2],10):1,n},r.writeRtpMap=function(e){var t=e.payloadType;return void 0!==e.preferredPayloadType&&(t=e.preferredPayloadType),"a=rtpmap:"+t+" "+e.name+"/"+e.clockRate+(1!==e.numChannels?"/"+e.numChannels:"")+"\r\n"},r.parseExtmap=function(e){var t=e.substr(9).split(" ");return{id:parseInt(t[0],10),uri:t[1]}},r.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+" "+e.uri+"\r\n"},r.parseFmtp=function(e){for(var t,n={},r=e.substr(e.indexOf(" ")+1).split(";"),a=0;a<r.length;a++)t=r[a].trim().split("="),n[t[0].trim()]=t[1];return n},r.writeFmtp=function(e){var t="",n=e.payloadType;if(void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.parameters&&Object.keys(e.parameters).length){var r=[];Object.keys(e.parameters).forEach(function(t){r.push(t+"="+e.parameters[t])}),t+="a=fmtp:"+n+" "+r.join(";")+"\r\n"}return t},r.parseRtcpFb=function(e){var t=e.substr(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}},r.writeRtcpFb=function(e){var t="",n=e.payloadType;return void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach(function(e){t+="a=rtcp-fb:"+n+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"}),t},r.parseSsrcMedia=function(e){var t=e.indexOf(" "),n={ssrc:parseInt(e.substr(7,t-7),10)},r=e.indexOf(":",t);return r>-1?(n.attribute=e.substr(t+1,r-t-1),n.value=e.substr(r+1)):n.attribute=e.substr(t+1),n},r.getDtlsParameters=function(e,t){var n=r.splitLines(e);n=n.concat(r.splitLines(t));var a=n.filter(function(e){return 0===e.indexOf("a=fingerprint:")})[0].substr(14),s={role:"auto",fingerprints:[{algorithm:a.split(" ")[0],value:a.split(" ")[1]}]};return s},r.writeDtlsParameters=function(e,t){var n="a=setup:"+t+"\r\n";return e.fingerprints.forEach(function(e){n+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"}),n},r.getIceParameters=function(e,t){var n=r.splitLines(e);n=n.concat(r.splitLines(t));var a={usernameFragment:n.filter(function(e){return 0===e.indexOf("a=ice-ufrag:")})[0].substr(12),password:n.filter(function(e){return 0===e.indexOf("a=ice-pwd:")})[0].substr(10)};return a},r.writeIceParameters=function(e){return"a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n"},r.parseRtpParameters=function(e){for(var t={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},n=r.splitLines(e),a=n[0].split(" "),s=3;s<a.length;s++){var o=a[s],i=r.matchPrefix(e,"a=rtpmap:"+o+" ")[0];if(i){var c=r.parseRtpMap(i),l=r.matchPrefix(e,"a=fmtp:"+o+" ");switch(c.parameters=l.length?r.parseFmtp(l[0]):{},c.rtcpFeedback=r.matchPrefix(e,"a=rtcp-fb:"+o+" ").map(r.parseRtcpFb),t.codecs.push(c),c.name.toUpperCase()){case"RED":case"ULPFEC":t.fecMechanisms.push(c.name.toUpperCase())}}}return r.matchPrefix(e,"a=extmap:").forEach(function(e){t.headerExtensions.push(r.parseExtmap(e))}),t},r.writeRtpDescription=function(e,t){var n="";return n+="m="+e+" ",n+=t.codecs.length>0?"9":"0",n+=" UDP/TLS/RTP/SAVPF ",n+=t.codecs.map(function(e){return void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType}).join(" ")+"\r\n",n+="c=IN IP4 0.0.0.0\r\n",n+="a=rtcp:9 IN IP4 0.0.0.0\r\n",t.codecs.forEach(function(e){n+=r.writeRtpMap(e),n+=r.writeFmtp(e),n+=r.writeRtcpFb(e)}),n+="a=rtcp-mux\r\n",t.headerExtensions.forEach(function(e){n+=r.writeExtmap(e)}),n},r.parseRtpEncodingParameters=function(e){var t,n=[],a=r.parseRtpParameters(e),s=a.fecMechanisms.indexOf("RED")!==-1,o=a.fecMechanisms.indexOf("ULPFEC")!==-1,i=r.matchPrefix(e,"a=ssrc:").map(function(e){return r.parseSsrcMedia(e)}).filter(function(e){return"cname"===e.attribute}),c=i.length>0&&i[0].ssrc,l=r.matchPrefix(e,"a=ssrc-group:FID").map(function(e){var t=e.split(" ");return t.shift(),t.map(function(e){return parseInt(e,10)})});l.length>0&&l[0].length>1&&l[0][0]===c&&(t=l[0][1]),a.codecs.forEach(function(e){if("RTX"===e.name.toUpperCase()&&e.parameters.apt){var r={ssrc:c,codecPayloadType:parseInt(e.parameters.apt,10),rtx:{payloadType:e.payloadType,ssrc:t}};n.push(r),s&&(r=JSON.parse(JSON.stringify(r)),r.fec={ssrc:t,mechanism:o?"red+ulpfec":"red"},n.push(r))}}),0===n.length&&c&&n.push({ssrc:c});var u=r.matchPrefix(e,"b=");return u.length&&(0===u[0].indexOf("b=TIAS:")?u=parseInt(u[0].substr(7),10):0===u[0].indexOf("b=AS:")&&(u=parseInt(u[0].substr(5),10)),n.forEach(function(e){e.maxBitrate=u})),n},r.writeSessionBoilerplate=function(){return"v=0\r\no=thisisadapterortc 8169639915646943137 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},r.writeMediaSection=function(e,t,n,a){var s=r.writeRtpDescription(e.kind,t);if(s+=r.writeIceParameters(e.iceGatherer.getLocalParameters()),s+=r.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===n?"actpass":"active"),s+="a=mid:"+e.mid+"\r\n",s+=e.rtpSender&&e.rtpReceiver?"a=sendrecv\r\n":e.rtpSender?"a=sendonly\r\n":e.rtpReceiver?"a=recvonly\r\n":"a=inactive\r\n",e.rtpSender){var o="msid:"+a.id+" "+e.rtpSender.track.id+"\r\n";s+="a="+o,s+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+o}return s+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+r.localCName+"\r\n"},r.getDirection=function(e,t){for(var n=r.splitLines(e),a=0;a<n.length;a++)switch(n[a]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return n[a].substr(2)}return t?r.getDirection(t):"sendrecv"},t.exports=r},{}],"/stanza.io-8.0.2/node_modules/sha.js/hash.js":[function(e,t,n){(function(e){function Hash(t,n){this._block=new e(t),this._finalSize=n,this._blockSize=t,this._len=0,this._s=0}Hash.prototype.update=function(t,n){"string"==typeof t&&(n=n||"utf8",t=new e(t,n));for(var r=this._len+=t.length,a=this._s||0,s=0,o=this._block;a<r;){for(var i=Math.min(t.length,s+this._blockSize-a%this._blockSize),c=i-s,l=0;l<c;l++)o[a%this._blockSize+l]=t[l+s];a+=c,s+=c,a%this._blockSize===0&&this._update(o)}return this._s=a,this},Hash.prototype.digest=function(e){var t=8*this._len;this._block[this._len%this._blockSize]=128,this._block.fill(0,this._len%this._blockSize+1),t%(8*this._blockSize)>=8*this._finalSize&&(this._update(this._block),this._block.fill(0)),this._block.writeInt32BE(t,this._blockSize-4);var n=this._update(this._block)||this._hash();return e?n.toString(e):n},Hash.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=Hash}).call(this,e("buffer").Buffer)},{buffer:"/stanza.io-8.0.2/node_modules/buffer/index.js"}],"/stanza.io-8.0.2/node_modules/sha.js/index.js":[function(e,t,n){var n=t.exports=function SHA(e){e=e.toLowerCase();var t=n[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};n.sha=e("./sha"),n.sha1=e("./sha1"),n.sha224=e("./sha224"),n.sha256=e("./sha256"),n.sha384=e("./sha384"),n.sha512=e("./sha512")},{"./sha":"/stanza.io-8.0.2/node_modules/sha.js/sha.js","./sha1":"/stanza.io-8.0.2/node_modules/sha.js/sha1.js","./sha224":"/stanza.io-8.0.2/node_modules/sha.js/sha224.js","./sha256":"/stanza.io-8.0.2/node_modules/sha.js/sha256.js","./sha384":"/stanza.io-8.0.2/node_modules/sha.js/sha384.js","./sha512":"/stanza.io-8.0.2/node_modules/sha.js/sha512.js"}],"/stanza.io-8.0.2/node_modules/sha.js/sha.js":[function(e,t,n){(function(n){function Sha(){this.init(),this._w=o,a.call(this,64,56)}function rotl5(e){return e<<5|e>>>27}function rotl30(e){return e<<30|e>>>2}function ft(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}var r=e("inherits"),a=e("./hash"),s=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);r(Sha,a),Sha.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},Sha.prototype._update=function(e){for(var t=this._w,n=0|this._a,r=0|this._b,a=0|this._c,o=0|this._d,i=0|this._e,c=0;c<16;++c)t[c]=e.readInt32BE(4*c);for(;c<80;++c)t[c]=t[c-3]^t[c-8]^t[c-14]^t[c-16];for(var l=0;l<80;++l){var u=~~(l/20),d=rotl5(n)+ft(u,r,a,o)+i+t[l]+s[u]|0;i=o,o=a,a=rotl30(r),r=n,n=d}this._a=n+this._a|0,this._b=r+this._b|0,this._c=a+this._c|0,this._d=o+this._d|0,this._e=i+this._e|0},Sha.prototype._hash=function(){var e=new n(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=Sha}).call(this,e("buffer").Buffer)},{"./hash":"/stanza.io-8.0.2/node_modules/sha.js/hash.js",buffer:"/stanza.io-8.0.2/node_modules/buffer/index.js",inherits:"/stanza.io-8.0.2/node_modules/inherits/inherits_browser.js"}],"/stanza.io-8.0.2/node_modules/sha.js/sha1.js":[function(e,t,n){(function(n){function Sha1(){this.init(),this._w=o,a.call(this,64,56)}function rotl1(e){return e<<1|e>>>31}function rotl5(e){return e<<5|e>>>27}function rotl30(e){return e<<30|e>>>2}function ft(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}var r=e("inherits"),a=e("./hash"),s=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);r(Sha1,a),Sha1.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},Sha1.prototype._update=function(e){for(var t=this._w,n=0|this._a,r=0|this._b,a=0|this._c,o=0|this._d,i=0|this._e,c=0;c<16;++c)t[c]=e.readInt32BE(4*c);for(;c<80;++c)t[c]=rotl1(t[c-3]^t[c-8]^t[c-14]^t[c-16]);for(var l=0;l<80;++l){var u=~~(l/20),d=rotl5(n)+ft(u,r,a,o)+i+t[l]+s[u]|0;i=o,o=a,a=rotl30(r),r=n,n=d}this._a=n+this._a|0,this._b=r+this._b|0,this._c=a+this._c|0,this._d=o+this._d|0,this._e=i+this._e|0},Sha1.prototype._hash=function(){var e=new n(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=Sha1}).call(this,e("buffer").Buffer)},{"./hash":"/stanza.io-8.0.2/node_modules/sha.js/hash.js", | |
buffer:"/stanza.io-8.0.2/node_modules/buffer/index.js",inherits:"/stanza.io-8.0.2/node_modules/inherits/inherits_browser.js"}],"/stanza.io-8.0.2/node_modules/sha.js/sha224.js":[function(e,t,n){(function(n){function Sha224(){this.init(),this._w=o,s.call(this,64,56)}var r=e("inherits"),a=e("./sha256"),s=e("./hash"),o=new Array(64);r(Sha224,a),Sha224.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},Sha224.prototype._hash=function(){var e=new n(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=Sha224}).call(this,e("buffer").Buffer)},{"./hash":"/stanza.io-8.0.2/node_modules/sha.js/hash.js","./sha256":"/stanza.io-8.0.2/node_modules/sha.js/sha256.js",buffer:"/stanza.io-8.0.2/node_modules/buffer/index.js",inherits:"/stanza.io-8.0.2/node_modules/inherits/inherits_browser.js"}],"/stanza.io-8.0.2/node_modules/sha.js/sha256.js":[function(e,t,n){(function(n){function Sha256(){this.init(),this._w=o,a.call(this,64,56)}function ch(e,t,n){return n^e&(t^n)}function maj(e,t,n){return e&t|n&(e|t)}function sigma0(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function sigma1(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function gamma0(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function gamma1(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}var r=e("inherits"),a=e("./hash"),s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o=new Array(64);r(Sha256,a),Sha256.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},Sha256.prototype._update=function(e){for(var t=this._w,n=0|this._a,r=0|this._b,a=0|this._c,o=0|this._d,i=0|this._e,c=0|this._f,l=0|this._g,u=0|this._h,d=0;d<16;++d)t[d]=e.readInt32BE(4*d);for(;d<64;++d)t[d]=gamma1(t[d-2])+t[d-7]+gamma0(t[d-15])+t[d-16]|0;for(var p=0;p<64;++p){var f=u+sigma1(i)+ch(i,c,l)+s[p]+t[p]|0,m=sigma0(n)+maj(n,r,a)|0;u=l,l=c,c=i,i=o+f|0,o=a,a=r,r=n,n=f+m|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=a+this._c|0,this._d=o+this._d|0,this._e=i+this._e|0,this._f=c+this._f|0,this._g=l+this._g|0,this._h=u+this._h|0},Sha256.prototype._hash=function(){var e=new n(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=Sha256}).call(this,e("buffer").Buffer)},{"./hash":"/stanza.io-8.0.2/node_modules/sha.js/hash.js",buffer:"/stanza.io-8.0.2/node_modules/buffer/index.js",inherits:"/stanza.io-8.0.2/node_modules/inherits/inherits_browser.js"}],"/stanza.io-8.0.2/node_modules/sha.js/sha384.js":[function(e,t,n){(function(n){function Sha384(){this.init(),this._w=o,s.call(this,128,112)}var r=e("inherits"),a=e("./sha512"),s=e("./hash"),o=new Array(160);r(Sha384,a),Sha384.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},Sha384.prototype._hash=function(){function writeInt64BE(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}var e=new n(48);return writeInt64BE(this._ah,this._al,0),writeInt64BE(this._bh,this._bl,8),writeInt64BE(this._ch,this._cl,16),writeInt64BE(this._dh,this._dl,24),writeInt64BE(this._eh,this._el,32),writeInt64BE(this._fh,this._fl,40),e},t.exports=Sha384}).call(this,e("buffer").Buffer)},{"./hash":"/stanza.io-8.0.2/node_modules/sha.js/hash.js","./sha512":"/stanza.io-8.0.2/node_modules/sha.js/sha512.js",buffer:"/stanza.io-8.0.2/node_modules/buffer/index.js",inherits:"/stanza.io-8.0.2/node_modules/inherits/inherits_browser.js"}],"/stanza.io-8.0.2/node_modules/sha.js/sha512.js":[function(e,t,n){(function(n){function Sha512(){this.init(),this._w=o,a.call(this,128,112)}function Ch(e,t,n){return n^e&(t^n)}function maj(e,t,n){return e&t|n&(e|t)}function sigma0(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function sigma1(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function Gamma0(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function Gamma0l(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function Gamma1(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function Gamma1l(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function getCarry(e,t){return e>>>0<t>>>0?1:0}var r=e("inherits"),a=e("./hash"),s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],o=new Array(160);r(Sha512,a),Sha512.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},Sha512.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,a=0|this._ch,o=0|this._dh,i=0|this._eh,c=0|this._fh,l=0|this._gh,u=0|this._hh,d=0|this._al,p=0|this._bl,f=0|this._cl,m=0|this._dl,h=0|this._el,b=0|this._fl,g=0|this._gl,v=0|this._hl,j=0;j<32;j+=2)t[j]=e.readInt32BE(4*j),t[j+1]=e.readInt32BE(4*j+4);for(;j<160;j+=2){var _=t[j-30],w=t[j-30+1],y=Gamma0(_,w),x=Gamma0l(w,_);_=t[j-4],w=t[j-4+1];var S=Gamma1(_,w),E=Gamma1l(w,_),D=t[j-14],C=t[j-14+1],T=t[j-32],U=t[j-32+1],R=x+C|0,O=y+D+getCarry(R,x)|0;R=R+E|0,O=O+S+getCarry(R,E)|0,R=R+U|0,O=O+T+getCarry(R,U)|0,t[j]=O,t[j+1]=R}for(var A=0;A<160;A+=2){O=t[A],R=t[A+1];var N=maj(n,r,a),I=maj(d,p,f),P=sigma0(n,d),z=sigma0(d,n),k=sigma1(i,h),M=sigma1(h,i),L=s[A],B=s[A+1],F=Ch(i,c,l),q=Ch(h,b,g),G=v+M|0,J=u+k+getCarry(G,v)|0;G=G+q|0,J=J+F+getCarry(G,q)|0,G=G+B|0,J=J+L+getCarry(G,B)|0,G=G+R|0,J=J+O+getCarry(G,R)|0;var H=z+I|0,V=P+N+getCarry(H,z)|0;u=l,v=g,l=c,g=b,c=i,b=h,h=m+G|0,i=o+J+getCarry(h,m)|0,o=a,m=f,a=r,f=p,r=n,p=d,d=G+H|0,n=J+V+getCarry(d,G)|0}this._al=this._al+d|0,this._bl=this._bl+p|0,this._cl=this._cl+f|0,this._dl=this._dl+m|0,this._el=this._el+h|0,this._fl=this._fl+b|0,this._gl=this._gl+g|0,this._hl=this._hl+v|0,this._ah=this._ah+n+getCarry(this._al,d)|0,this._bh=this._bh+r+getCarry(this._bl,p)|0,this._ch=this._ch+a+getCarry(this._cl,f)|0,this._dh=this._dh+o+getCarry(this._dl,m)|0,this._eh=this._eh+i+getCarry(this._el,h)|0,this._fh=this._fh+c+getCarry(this._fl,b)|0,this._gh=this._gh+l+getCarry(this._gl,g)|0,this._hh=this._hh+u+getCarry(this._hl,v)|0},Sha512.prototype._hash=function(){function writeInt64BE(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}var e=new n(64);return writeInt64BE(this._ah,this._al,0),writeInt64BE(this._bh,this._bl,8),writeInt64BE(this._ch,this._cl,16),writeInt64BE(this._dh,this._dl,24),writeInt64BE(this._eh,this._el,32),writeInt64BE(this._fh,this._fl,40),writeInt64BE(this._gh,this._gl,48),writeInt64BE(this._hh,this._hl,56),e},t.exports=Sha512}).call(this,e("buffer").Buffer)},{"./hash":"/stanza.io-8.0.2/node_modules/sha.js/hash.js",buffer:"/stanza.io-8.0.2/node_modules/buffer/index.js",inherits:"/stanza.io-8.0.2/node_modules/inherits/inherits_browser.js"}],"/stanza.io-8.0.2/node_modules/stream-browserify/index.js":[function(e,t,n){function Stream(){r.call(this)}t.exports=Stream;var r=e("events").EventEmitter,a=e("inherits");a(Stream,r),Stream.Readable=e("readable-stream/readable.js"),Stream.Writable=e("readable-stream/writable.js"),Stream.Duplex=e("readable-stream/duplex.js"),Stream.Transform=e("readable-stream/transform.js"),Stream.PassThrough=e("readable-stream/passthrough.js"),Stream.Stream=Stream,Stream.prototype.pipe=function(e,t){function ondata(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function ondrain(){n.readable&&n.resume&&n.resume()}function onend(){a||(a=!0,e.end())}function onclose(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function onerror(e){if(cleanup(),0===r.listenerCount(this,"error"))throw e}function cleanup(){n.removeListener("data",ondata),e.removeListener("drain",ondrain),n.removeListener("end",onend),n.removeListener("close",onclose),n.removeListener("error",onerror),e.removeListener("error",onerror),n.removeListener("end",cleanup),n.removeListener("close",cleanup),e.removeListener("close",cleanup)}var n=this;n.on("data",ondata),e.on("drain",ondrain),e._isStdio||t&&t.end===!1||(n.on("end",onend),n.on("close",onclose));var a=!1;return n.on("error",onerror),e.on("error",onerror),n.on("end",cleanup),n.on("close",cleanup),e.on("close",cleanup),e.emit("pipe",n),e}},{events:"/stanza.io-8.0.2/node_modules/events/events.js",inherits:"/stanza.io-8.0.2/node_modules/inherits/inherits_browser.js","readable-stream/duplex.js":"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/duplex.js","readable-stream/passthrough.js":"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/passthrough.js","readable-stream/readable.js":"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/readable.js","readable-stream/transform.js":"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/transform.js","readable-stream/writable.js":"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/writable.js"}],"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/isarray/index.js":[function(e,t,n){arguments[4]["/stanza.io-8.0.2/node_modules/buffer/node_modules/isarray/index.js"][0].apply(n,arguments)},{}],"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/duplex.js":[function(e,t,n){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_duplex.js"}],"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_duplex.js":[function(e,t,n){"use strict";function Duplex(e){return this instanceof Duplex?(o.call(this,e),i.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),void this.once("end",onend)):new Duplex(e)}function onend(){this.allowHalfOpen||this._writableState.ended||a(onEndNT,this)}function onEndNT(e){e.end()}var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=Duplex;var a=e("process-nextick-args"),s=e("core-util-is");s.inherits=e("inherits");var o=e("./_stream_readable"),i=e("./_stream_writable");s.inherits(Duplex,o);for(var c=r(i.prototype),l=0;l<c.length;l++){var u=c[l];Duplex.prototype[u]||(Duplex.prototype[u]=i.prototype[u])}},{"./_stream_readable":"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_readable.js","./_stream_writable":"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_writable.js","core-util-is":"/stanza.io-8.0.2/node_modules/core-util-is/lib/util.js",inherits:"/stanza.io-8.0.2/node_modules/inherits/inherits_browser.js","process-nextick-args":"/stanza.io-8.0.2/node_modules/process-nextick-args/index.js"}],"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_passthrough.js":[function(e,t,n){"use strict";function PassThrough(e){return this instanceof PassThrough?void r.call(this,e):new PassThrough(e)}t.exports=PassThrough;var r=e("./_stream_transform"),a=e("core-util-is");a.inherits=e("inherits"),a.inherits(PassThrough,r),PassThrough.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_transform.js","core-util-is":"/stanza.io-8.0.2/node_modules/core-util-is/lib/util.js",inherits:"/stanza.io-8.0.2/node_modules/inherits/inherits_browser.js"}],"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_readable.js":[function(e,t,n){(function(n){"use strict";function prependListener(e,t,n){return"function"==typeof e.prependListener?e.prependListener(t,n):void(e._events&&e._events[t]?s(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n))}function ReadableState(t,n){r=r||e("./_stream_duplex"),t=t||{},this.objectMode=!!t.objectMode,n instanceof r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var a=t.highWaterMark,s=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:s,this.highWaterMark=~~this.highWaterMark,this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(f||(f=e("string_decoder/").StringDecoder),this.decoder=new f(t.encoding),this.encoding=t.encoding)}function Readable(t){return r=r||e("./_stream_duplex"),this instanceof Readable?(this._readableState=new ReadableState(t,this),this.readable=!0,t&&"function"==typeof t.read&&(this._read=t.read),void o.call(this)):new Readable(t)}function readableAddChunk(e,t,n,r,a){var s=chunkInvalid(t,n);if(s)e.emit("error",s);else if(null===n)t.reading=!1,onEofChunk(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!a){var o=new Error("stream.push() after EOF");e.emit("error",o)}else if(t.endEmitted&&a){var i=new Error("stream.unshift() after end event");e.emit("error",i)}else{var c;!t.decoder||a||r||(n=t.decoder.write(n),c=!t.objectMode&&0===n.length),a||(t.reading=!1),c||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,a?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&emitReadable(e))),maybeReadMore(e,t)}else a||(t.reading=!1);return needMoreData(t)}function needMoreData(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}function computeNewHighWaterMark(e){return e>=h?e=h:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function howMuchToRead(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=computeNewHighWaterMark(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function chunkInvalid(e,t){var n=null;return c.isBuffer(t)||"string"==typeof t||null===t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function onEofChunk(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,emitReadable(e)}}function emitReadable(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?a(emitReadable_,e):emitReadable_(e))}function emitReadable_(e){p("emit readable"),e.emit("readable"),flow(e)}function maybeReadMore(e,t){t.readingMore||(t.readingMore=!0,a(maybeReadMore_,e,t))}function maybeReadMore_(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(p("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function pipeOnDrain(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,flow(e))}}function nReadingNextTick(e){p("readable nexttick read 0"),e.read(0)}function resume(e,t){t.resumeScheduled||(t.resumeScheduled=!0,a(resume_,e,t))}function resume_(e,t){t.reading||(p("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),flow(e),t.flowing&&!t.reading&&e.read(0)}function flow(e){var t=e._readableState;for(p("flow",t.flowing);t.flowing&&null!==e.read(););}function fromList(e,t){if(0===t.length)return null;var n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=fromListPartial(e,t.buffer,t.decoder),n}function fromListPartial(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?copyFromBufferString(e,t):copyFromBuffer(e,t),r}function copyFromBufferString(e,t){var n=t.head,r=1,a=n.data;for(e-=a.length;n=n.next;){var s=n.data,o=e>s.length?s.length:e;if(a+=o===s.length?s:s.slice(0,e),e-=o,0===e){o===s.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=s.slice(o));break}++r}return t.length-=r,a}function copyFromBuffer(e,t){var n=l.allocUnsafe(e),r=t.head,a=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var s=r.data,o=e>s.length?s.length:e;if(s.copy(n,n.length-e,0,o),e-=o,0===e){o===s.length?(++a,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=s.slice(o));break}++a}return t.length-=a,n}function endReadable(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,a(endReadableNT,t,e))}function endReadableNT(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function forEach(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}function indexOf(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}t.exports=Readable;var r,a=e("process-nextick-args"),s=e("isarray");Readable.ReadableState=ReadableState;var o,i=(e("events").EventEmitter,function(e,t){return e.listeners(t).length});!function(){try{o=e("stream")}catch(e){}finally{o||(o=e("events").EventEmitter)}}();var c=e("buffer").Buffer,l=e("buffer-shims"),u=e("core-util-is");u.inherits=e("inherits");var d=e("util"),p=void 0;p=d&&d.debuglog?d.debuglog("stream"):function(){};var f,m=e("./internal/streams/BufferList");u.inherits(Readable,o),Readable.prototype.push=function(e,t){var n=this._readableState;return n.objectMode||"string"!=typeof e||(t=t||n.defaultEncoding,t!==n.encoding&&(e=l.from(e,t),t="")),readableAddChunk(this,n,e,t,!1)},Readable.prototype.unshift=function(e){var t=this._readableState;return readableAddChunk(this,t,e,"",!0)},Readable.prototype.isPaused=function(){return this._readableState.flowing===!1},Readable.prototype.setEncoding=function(t){return f||(f=e("string_decoder/").StringDecoder),this._readableState.decoder=new f(t),this._readableState.encoding=t,this};var h=8388608;Readable.prototype.read=function(e){p("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?endReadable(this):emitReadable(this),null;if(e=howMuchToRead(e,t),0===e&&t.ended)return 0===t.length&&endReadable(this),null;var r=t.needReadable;p("need readable",r),(0===t.length||t.length-e<t.highWaterMark)&&(r=!0,p("length less than watermark",r)),t.ended||t.reading?(r=!1,p("reading or ended",r)):r&&(p("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=howMuchToRead(n,t)));var a;return a=e>0?fromList(e,t):null,null===a?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&endReadable(this)),null!==a&&this.emit("data",a),a},Readable.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},Readable.prototype.pipe=function(e,t){function onunpipe(e){p("onunpipe"),e===r&&cleanup()}function onend(){p("onend"),e.end()}function cleanup(){p("cleanup"),e.removeListener("close",onclose),e.removeListener("finish",onfinish),e.removeListener("drain",l),e.removeListener("error",onerror),e.removeListener("unpipe",onunpipe),r.removeListener("end",onend),r.removeListener("end",cleanup),r.removeListener("data",ondata),u=!0,!s.awaitDrain||e._writableState&&!e._writableState.needDrain||l()}function ondata(t){p("ondata"),d=!1;var n=e.write(t);!1!==n||d||((1===s.pipesCount&&s.pipes===e||s.pipesCount>1&&indexOf(s.pipes,e)!==-1)&&!u&&(p("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,d=!0),r.pause())}function onerror(t){p("onerror",t),unpipe(),e.removeListener("error",onerror),0===i(e,"error")&&e.emit("error",t)}function onclose(){e.removeListener("finish",onfinish),unpipe()}function onfinish(){p("onfinish"),e.removeListener("close",onclose),unpipe()}function unpipe(){p("unpipe"),r.unpipe(e)}var r=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=e;break;case 1:s.pipes=[s.pipes,e];break;default:s.pipes.push(e)}s.pipesCount+=1,p("pipe count=%d opts=%j",s.pipesCount,t);var o=(!t||t.end!==!1)&&e!==n.stdout&&e!==n.stderr,c=o?onend:cleanup;s.endEmitted?a(c):r.once("end",c),e.on("unpipe",onunpipe);var l=pipeOnDrain(r);e.on("drain",l);var u=!1,d=!1;return r.on("data",ondata),prependListener(e,"error",onerror),e.once("close",onclose),e.once("finish",onfinish),e.emit("pipe",r),s.flowing||(p("pipe resume"),r.resume()),e},Readable.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this),this);if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<r;a++)n[a].emit("unpipe",this);return this}var s=indexOf(t.pipes,e);return s===-1?this:(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this),this)},Readable.prototype.on=function(e,t){var n=o.prototype.on.call(this,e,t);if("data"===e)this._readableState.flowing!==!1&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&emitReadable(this,r):a(nReadingNextTick,this))}return n},Readable.prototype.addListener=Readable.prototype.on,Readable.prototype.resume=function(){var e=this._readableState;return e.flowing||(p("resume"),e.flowing=!0,resume(this,e)),this},Readable.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Readable.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;e.on("end",function(){if(p("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(a){if(p("wrapped data"),t.decoder&&(a=t.decoder.write(a)),(!t.objectMode||null!==a&&void 0!==a)&&(t.objectMode||a&&a.length)){var s=r.push(a);s||(n=!0,e.pause())}});for(var a in e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));var s=["error","close","destroy","pause","resume"];return forEach(s,function(t){e.on(t,r.emit.bind(r,t))}),r._read=function(t){p("wrapped _read",t),n&&(n=!1,e.resume())},r},Readable._fromList=fromList}).call(this,e("_process"))},{"./_stream_duplex":"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_duplex.js","./internal/streams/BufferList":"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/BufferList.js",_process:"/stanza.io-8.0.2/node_modules/browserify/node_modules/process/browser.js",buffer:"/stanza.io-8.0.2/node_modules/buffer/index.js","buffer-shims":"/stanza.io-8.0.2/node_modules/buffer-shims/index.js","core-util-is":"/stanza.io-8.0.2/node_modules/core-util-is/lib/util.js",events:"/stanza.io-8.0.2/node_modules/events/events.js",inherits:"/stanza.io-8.0.2/node_modules/inherits/inherits_browser.js",isarray:"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/isarray/index.js","process-nextick-args":"/stanza.io-8.0.2/node_modules/process-nextick-args/index.js","string_decoder/":"/stanza.io-8.0.2/node_modules/string_decoder/index.js",util:"/stanza.io-8.0.2/node_modules/browser-resolve/empty.js"}],"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_transform.js":[function(e,t,n){"use strict";function TransformState(e){this.afterTransform=function(t,n){return afterTransform(e,t,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function afterTransform(e,t,n){var r=e._transformState;r.transforming=!1;var a=r.writecb;if(!a)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!==n&&void 0!==n&&e.push(n),a(t);var s=e._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&e._read(s.highWaterMark)}function Transform(e){if(!(this instanceof Transform))return new Transform(e);r.call(this,e),this._transformState=new TransformState(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(e,n){done(t,e,n)}):done(t)})}function done(e,t,n){if(t)return e.emit("error",t);null!==n&&void 0!==n&&e.push(n);var r=e._writableState,a=e._transformState;if(r.length)throw new Error("Calling transform done when ws.length != 0");if(a.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}t.exports=Transform;var r=e("./_stream_duplex"),a=e("core-util-is");a.inherits=e("inherits"),a.inherits(Transform,r),Transform.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},Transform.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},Transform.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var a=this._readableState;(r.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},Transform.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},{"./_stream_duplex":"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_duplex.js","core-util-is":"/stanza.io-8.0.2/node_modules/core-util-is/lib/util.js",inherits:"/stanza.io-8.0.2/node_modules/inherits/inherits_browser.js"}],"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_writable.js":[function(e,t,n){(function(n){"use strict";function nop(){}function WriteReq(e,t,n){this.chunk=e,this.encoding=t,this.callback=n,this.next=null}function WritableState(t,n){r=r||e("./_stream_duplex"),t=t||{},this.objectMode=!!t.objectMode,n instanceof r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var a=t.highWaterMark,s=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:s,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var o=t.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){onwrite(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new CorkedRequest(this)}function Writable(t){return r=r||e("./_stream_duplex"),d.call(Writable,this)||this instanceof r?(this._writableState=new WritableState(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write), | |
"function"==typeof t.writev&&(this._writev=t.writev)),void i.call(this)):new Writable(t)}function writeAfterEnd(e,t){var n=new Error("write after end");e.emit("error",n),a(t,n)}function validChunk(e,t,n,r){var s=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):l.isBuffer(n)||"string"==typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),a(r,o),s=!1),s}function decodeChunk(e,t,n){return e.objectMode||e.decodeStrings===!1||"string"!=typeof t||(t=u.from(t,n)),t}function writeOrBuffer(e,t,n,r,a){n=decodeChunk(t,n,r),l.isBuffer(n)&&(r="buffer");var s=t.objectMode?1:n.length;t.length+=s;var o=t.length<t.highWaterMark;if(o||(t.needDrain=!0),t.writing||t.corked){var i=t.lastBufferedRequest;t.lastBufferedRequest=new WriteReq(n,r,a),i?i.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else doWrite(e,t,!1,s,n,r,a);return o}function doWrite(e,t,n,r,a,s,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(a,t.onwrite):e._write(a,s,t.onwrite),t.sync=!1}function onwriteError(e,t,n,r,s){--t.pendingcb,n?a(s,r):s(r),e._writableState.errorEmitted=!0,e.emit("error",r)}function onwriteStateUpdate(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function onwrite(e,t){var n=e._writableState,r=n.sync,a=n.writecb;if(onwriteStateUpdate(n),t)onwriteError(e,n,r,t,a);else{var o=needFinish(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||clearBuffer(e,n),r?s(afterWrite,e,n,o,a):afterWrite(e,n,o,a)}}function afterWrite(e,t,n,r){n||onwriteDrain(e,t),t.pendingcb--,r(),finishMaybe(e,t)}function onwriteDrain(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function clearBuffer(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,a=new Array(r),s=t.corkedRequestsFree;s.entry=n;for(var o=0;n;)a[o]=n,n=n.next,o+=1;doWrite(e,t,!0,t.length,a,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new CorkedRequest(t)}else{for(;n;){var i=n.chunk,c=n.encoding,l=n.callback,u=t.objectMode?1:i.length;if(doWrite(e,t,!1,u,i,c,l),n=n.next,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=n,t.bufferProcessing=!1}function needFinish(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function prefinish(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function finishMaybe(e,t){var n=needFinish(t);return n&&(0===t.pendingcb?(prefinish(e,t),t.finished=!0,e.emit("finish")):prefinish(e,t)),n}function endWritable(e,t,n){t.ending=!0,finishMaybe(e,t),n&&(t.finished?a(n):e.once("finish",n)),t.ended=!0,e.writable=!1}function CorkedRequest(e){var t=this;this.next=null,this.entry=null,this.finish=function(n){var r=t.entry;for(t.entry=null;r;){var a=r.callback;e.pendingcb--,a(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}}t.exports=Writable;var r,a=e("process-nextick-args"),s=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?setImmediate:a;Writable.WritableState=WritableState;var o=e("core-util-is");o.inherits=e("inherits");var i,c={deprecate:e("util-deprecate")};!function(){try{i=e("stream")}catch(e){}finally{i||(i=e("events").EventEmitter)}}();var l=e("buffer").Buffer,u=e("buffer-shims");o.inherits(Writable,i),WritableState.prototype.getBuffer=function getBuffer(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")})}catch(e){}}();var d;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(Writable,Symbol.hasInstance,{value:function(e){return!!d.call(this,e)||e&&e._writableState instanceof WritableState}})):d=function(e){return e instanceof this},Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},Writable.prototype.write=function(e,t,n){var r=this._writableState,a=!1;return"function"==typeof t&&(n=t,t=null),l.isBuffer(e)?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=nop),r.ended?writeAfterEnd(this,n):validChunk(this,r,e,n)&&(r.pendingcb++,a=writeOrBuffer(this,r,e,t,n)),a},Writable.prototype.cork=function(){var e=this._writableState;e.corked++},Writable.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||clearBuffer(this,e))},Writable.prototype.setDefaultEncoding=function setDefaultEncoding(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Writable.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},Writable.prototype._writev=null,Writable.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||endWritable(this,r,n)}}).call(this,e("_process"))},{"./_stream_duplex":"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_duplex.js",_process:"/stanza.io-8.0.2/node_modules/browserify/node_modules/process/browser.js",buffer:"/stanza.io-8.0.2/node_modules/buffer/index.js","buffer-shims":"/stanza.io-8.0.2/node_modules/buffer-shims/index.js","core-util-is":"/stanza.io-8.0.2/node_modules/core-util-is/lib/util.js",events:"/stanza.io-8.0.2/node_modules/events/events.js",inherits:"/stanza.io-8.0.2/node_modules/inherits/inherits_browser.js","process-nextick-args":"/stanza.io-8.0.2/node_modules/process-nextick-args/index.js","util-deprecate":"/stanza.io-8.0.2/node_modules/util-deprecate/browser.js"}],"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/BufferList.js":[function(e,t,n){"use strict";function BufferList(){this.head=null,this.tail=null,this.length=0}var r=(e("buffer").Buffer,e("buffer-shims"));t.exports=BufferList,BufferList.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},BufferList.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},BufferList.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},BufferList.prototype.clear=function(){this.head=this.tail=null,this.length=0},BufferList.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},BufferList.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t=r.allocUnsafe(e>>>0),n=this.head,a=0;n;)n.data.copy(t,a),a+=n.data.length,n=n.next;return t}},{buffer:"/stanza.io-8.0.2/node_modules/buffer/index.js","buffer-shims":"/stanza.io-8.0.2/node_modules/buffer-shims/index.js"}],"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/passthrough.js":[function(e,t,n){t.exports=e("./lib/_stream_passthrough.js")},{"./lib/_stream_passthrough.js":"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_passthrough.js"}],"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/readable.js":[function(e,t,n){(function(r){var a=function(){try{return e("stream")}catch(e){}}();n=t.exports=e("./lib/_stream_readable.js"),n.Stream=a||n,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js"),!r.browser&&"disable"===r.env.READABLE_STREAM&&a&&(t.exports=a)}).call(this,e("_process"))},{"./lib/_stream_duplex.js":"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_duplex.js","./lib/_stream_passthrough.js":"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_passthrough.js","./lib/_stream_readable.js":"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_readable.js","./lib/_stream_transform.js":"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_transform.js","./lib/_stream_writable.js":"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_writable.js",_process:"/stanza.io-8.0.2/node_modules/browserify/node_modules/process/browser.js"}],"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/transform.js":[function(e,t,n){t.exports=e("./lib/_stream_transform.js")},{"./lib/_stream_transform.js":"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_transform.js"}],"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/writable.js":[function(e,t,n){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":"/stanza.io-8.0.2/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_writable.js"}],"/stanza.io-8.0.2/node_modules/string_decoder/index.js":[function(e,t,n){function assertEncoding(e){if(e&&!a(e))throw new Error("Unknown encoding: "+e)}function passThroughWrite(e){return e.toString(this.encoding)}function utf16DetectIncompleteChar(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function base64DetectIncompleteChar(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}var r=e("buffer").Buffer,a=r.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},s=n.StringDecoder=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),assertEncoding(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=utf16DetectIncompleteChar;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=base64DetectIncompleteChar;break;default:return void(this.write=passThroughWrite)}this.charBuffer=new r(6),this.charReceived=0,this.charLength=0};s.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";e=e.slice(n,e.length),t=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var r=t.charCodeAt(t.length-1);if(!(r>=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var a=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,a),a-=this.charReceived),t+=e.toString(this.encoding,0,a);var a=t.length-1,r=t.charCodeAt(a);if(r>=55296&&r<=56319){var s=this.surrogateSize;return this.charLength+=s,this.charReceived+=s,this.charBuffer.copy(this.charBuffer,s,0,s),e.copy(this.charBuffer,0,0,s),t.substring(0,a)}return t},s.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},s.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,a=this.encoding;t+=r.slice(0,n).toString(a)}return t}},{buffer:"/stanza.io-8.0.2/node_modules/buffer/index.js"}],"/stanza.io-8.0.2/node_modules/traceablepeerconnection/index.js":[function(e,t,n){function dumpSDP(e){return{type:e.type,sdp:e.sdp}}function dumpStream(e){var t={label:e.id};return e.getAudioTracks().length&&(t.audio=e.getAudioTracks().map(function(e){return e.id})),e.getVideoTracks().length&&(t.video=e.getVideoTracks().map(function(e){return e.id})),t}function TraceablePeerConnection(e,t){var n=this;a.call(this),this.peerconnection=new window.RTCPeerConnection(e,t),this.trace=function(e,t){n.emit("PeerConnectionTrace",{time:new Date,type:e,value:t||""})},this.onicecandidate=null,this.peerconnection.onicecandidate=function(e){n.trace("onicecandidate",e.candidate),null!==n.onicecandidate&&n.onicecandidate(e)},this.onaddstream=null,this.peerconnection.onaddstream=function(e){n.trace("onaddstream",dumpStream(e.stream)),null!==n.onaddstream&&n.onaddstream(e)},this.onremovestream=null,this.peerconnection.onremovestream=function(e){n.trace("onremovestream",dumpStream(e.stream)),null!==n.onremovestream&&n.onremovestream(e)},this.onsignalingstatechange=null,this.peerconnection.onsignalingstatechange=function(e){n.trace("onsignalingstatechange",n.signalingState),null!==n.onsignalingstatechange&&n.onsignalingstatechange(e)},this.oniceconnectionstatechange=null,this.peerconnection.oniceconnectionstatechange=function(e){n.trace("oniceconnectionstatechange",n.iceConnectionState),null!==n.oniceconnectionstatechange&&n.oniceconnectionstatechange(e)},this.onnegotiationneeded=null,this.peerconnection.onnegotiationneeded=function(e){n.trace("onnegotiationneeded"),null!==n.onnegotiationneeded&&n.onnegotiationneeded(e)},n.ondatachannel=null,this.peerconnection.ondatachannel=function(e){n.trace("ondatachannel",e),null!==n.ondatachannel&&n.ondatachannel(e)},this.getLocalStreams=this.peerconnection.getLocalStreams.bind(this.peerconnection),this.getRemoteStreams=this.peerconnection.getRemoteStreams.bind(this.peerconnection)}var r=e("util"),a=(e("webrtc-adapter"),e("wildemitter"));r.inherits(TraceablePeerConnection,a),["signalingState","iceConnectionState","localDescription","remoteDescription"].forEach(function(e){Object.defineProperty(TraceablePeerConnection.prototype,e,{get:function(){return this.peerconnection[e]}})}),TraceablePeerConnection.prototype.addStream=function(e){this.trace("addStream",dumpStream(e)),this.peerconnection.addStream(e)},TraceablePeerConnection.prototype.removeStream=function(e){this.trace("removeStream",dumpStream(e)),this.peerconnection.removeStream(e)},TraceablePeerConnection.prototype.createDataChannel=function(e,t){return this.trace("createDataChannel",e,t),this.peerconnection.createDataChannel(e,t)},TraceablePeerConnection.prototype.setLocalDescription=function(e,t,n){var r=this;return this.trace("setLocalDescription",dumpSDP(e)),this.peerconnection.setLocalDescription(e).then(function(){r.trace("setLocalDescriptionOnSuccess"),t&&t()},function(e){r.trace("setLocalDescriptionOnFailure",e),n&&n(e)})},TraceablePeerConnection.prototype.setRemoteDescription=function(e,t,n){var r=this;return this.trace("setRemoteDescription",dumpSDP(e)),this.peerconnection.setRemoteDescription(e).then(function(){r.trace("setRemoteDescriptionOnSuccess"),t&&t()},function(e){r.trace("setRemoteDescriptionOnFailure",e),n&&n(e)})},TraceablePeerConnection.prototype.close=function(){this.trace("stop"),"closed"!=this.peerconnection.signalingState&&this.peerconnection.close()},TraceablePeerConnection.prototype.createOffer=function(e,t,n){var r=this;return this.trace("createOffer",n),this.peerconnection.createOffer(n).then(function(t){r.trace("createOfferOnSuccess",dumpSDP(t)),e&&e(t)},function(e){r.trace("createOfferOnFailure",e),t&&t(e)})},TraceablePeerConnection.prototype.createAnswer=function(e,t,n){var r=this;return this.trace("createAnswer",n),this.peerconnection.createAnswer(n).then(function(t){r.trace("createAnswerOnSuccess",dumpSDP(t)),e&&e(t)},function(e){r.trace("createAnswerOnFailure",e),t&&t(e)})},TraceablePeerConnection.prototype.addIceCandidate=function(e,t,n){var r=this;return this.trace("addIceCandidate",e),this.peerconnection.addIceCandidate(e).then(function(){t&&t()},function(e){r.trace("addIceCandidateOnFailure",e),n&&n(e)})},TraceablePeerConnection.prototype.getStats=function(){this.peerconnection.getStats.apply(this.peerconnection,arguments)},t.exports=TraceablePeerConnection},{util:"/stanza.io-8.0.2/node_modules/util/util.js","webrtc-adapter":"/stanza.io-8.0.2/node_modules/traceablepeerconnection/node_modules/webrtc-adapter/src/js/adapter_core.js",wildemitter:"/stanza.io-8.0.2/node_modules/wildemitter/wildemitter.js"}],"/stanza.io-8.0.2/node_modules/traceablepeerconnection/node_modules/webrtc-adapter/src/js/adapter_core.js":[function(e,t,n){"use strict";!function(){var n=e("./utils").log,r=e("./utils").browserDetails;t.exports.browserDetails=r,t.exports.extractVersion=e("./utils").extractVersion,t.exports.disableLog=e("./utils").disableLog;var a=e("./chrome/chrome_shim")||null,s=e("./edge/edge_shim")||null,o=e("./firefox/firefox_shim")||null,i=e("./safari/safari_shim")||null;switch(r.browser){case"opera":case"chrome":if(!a||!a.shimPeerConnection)return void n("Chrome shim is not included in this adapter release.");n("adapter.js shimming chrome."),t.exports.browserShim=a,a.shimGetUserMedia(),a.shimMediaStream(),a.shimSourceObject(),a.shimPeerConnection(),a.shimOnTrack();break;case"firefox":if(!o||!o.shimPeerConnection)return void n("Firefox shim is not included in this adapter release.");n("adapter.js shimming firefox."),t.exports.browserShim=o,o.shimGetUserMedia(),o.shimSourceObject(),o.shimPeerConnection(),o.shimOnTrack();break;case"edge":if(!s||!s.shimPeerConnection)return void n("MS edge shim is not included in this adapter release.");n("adapter.js shimming edge."),t.exports.browserShim=s,s.shimGetUserMedia(),s.shimPeerConnection();break;case"safari":if(!i)return void n("Safari shim is not included in this adapter release.");n("adapter.js shimming safari."),t.exports.browserShim=i,i.shimGetUserMedia();break;default:n("Unsupported browser!")}}()},{"./chrome/chrome_shim":"/stanza.io-8.0.2/node_modules/traceablepeerconnection/node_modules/webrtc-adapter/src/js/chrome/chrome_shim.js","./edge/edge_shim":"/stanza.io-8.0.2/node_modules/traceablepeerconnection/node_modules/webrtc-adapter/src/js/edge/edge_shim.js","./firefox/firefox_shim":"/stanza.io-8.0.2/node_modules/traceablepeerconnection/node_modules/webrtc-adapter/src/js/firefox/firefox_shim.js","./safari/safari_shim":"/stanza.io-8.0.2/node_modules/traceablepeerconnection/node_modules/webrtc-adapter/src/js/safari/safari_shim.js","./utils":"/stanza.io-8.0.2/node_modules/traceablepeerconnection/node_modules/webrtc-adapter/src/js/utils.js"}],"/stanza.io-8.0.2/node_modules/traceablepeerconnection/node_modules/webrtc-adapter/src/js/chrome/chrome_shim.js":[function(e,t,n){"use strict";var r=e("../utils.js").log,a=e("../utils.js").browserDetails,s={shimMediaStream:function(){window.MediaStream=window.MediaStream||window.webkitMediaStream},shimOnTrack:function(){"object"!=typeof window||!window.RTCPeerConnection||"ontrack"in window.RTCPeerConnection.prototype||Object.defineProperty(window.RTCPeerConnection.prototype,"ontrack",{get:function(){return this._ontrack},set:function(e){var t=this;this._ontrack&&(this.removeEventListener("track",this._ontrack),this.removeEventListener("addstream",this._ontrackpoly)),this.addEventListener("track",this._ontrack=e),this.addEventListener("addstream",this._ontrackpoly=function(e){e.stream.addEventListener("addtrack",function(n){var r=new Event("track");r.track=n.track,r.receiver={track:n.track},r.streams=[e.stream],t.dispatchEvent(r)}),e.stream.getTracks().forEach(function(t){var n=new Event("track");n.track=t,n.receiver={track:t},n.streams=[e.stream],this.dispatchEvent(n)}.bind(this))}.bind(this))}})},shimSourceObject:function(){"object"==typeof window&&(!window.HTMLMediaElement||"srcObject"in window.HTMLMediaElement.prototype||Object.defineProperty(window.HTMLMediaElement.prototype,"srcObject",{get:function(){return this._srcObject},set:function(e){var t=this;return this._srcObject=e,this.src&&URL.revokeObjectURL(this.src),e?(this.src=URL.createObjectURL(e),e.addEventListener("addtrack",function(){t.src&&URL.revokeObjectURL(t.src),t.src=URL.createObjectURL(e)}),void e.addEventListener("removetrack",function(){t.src&&URL.revokeObjectURL(t.src),t.src=URL.createObjectURL(e)})):void(this.src="")}}))},shimPeerConnection:function(){window.RTCPeerConnection=function(e,t){r("PeerConnection"),e&&e.iceTransportPolicy&&(e.iceTransports=e.iceTransportPolicy);var n=new webkitRTCPeerConnection(e,t),a=n.getStats.bind(n);return n.getStats=function(e,t,n){var r=this,s=arguments;if(arguments.length>0&&"function"==typeof e)return a(e,t);var o=function(e){var t={},n=e.result();return n.forEach(function(e){var n={id:e.id,timestamp:e.timestamp,type:e.type};e.names().forEach(function(t){n[t]=e.stat(t)}),t[n.id]=n}),t},i=function(e,t){var n=new Map(Object.keys(e).map(function(t){return[t,e[t]]}));return t=t||e,Object.keys(t).forEach(function(e){n[e]=t[e]}),n};if(arguments.length>=2){var c=function(e){s[1](i(o(e)))};return a.apply(this,[c,arguments[0]])}return new Promise(function(t,n){1===s.length&&"object"==typeof e?a.apply(r,[function(e){t(i(o(e)))},n]):a.apply(r,[function(e){t(i(o(e),e.result()))},n])}).then(t,n)},n},window.RTCPeerConnection.prototype=webkitRTCPeerConnection.prototype,webkitRTCPeerConnection.generateCertificate&&Object.defineProperty(window.RTCPeerConnection,"generateCertificate",{get:function(){return webkitRTCPeerConnection.generateCertificate}}),["createOffer","createAnswer"].forEach(function(e){var t=webkitRTCPeerConnection.prototype[e];webkitRTCPeerConnection.prototype[e]=function(){var e=this;if(arguments.length<1||1===arguments.length&&"object"==typeof arguments[0]){var n=1===arguments.length?arguments[0]:void 0;return new Promise(function(r,a){t.apply(e,[r,a,n])})}return t.apply(this,arguments)}}),a.version<51&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(e){var t=webkitRTCPeerConnection.prototype[e];webkitRTCPeerConnection.prototype[e]=function(){var e=arguments,n=this,r=new Promise(function(r,a){t.apply(n,[e[0],r,a])});return e.length<2?r:r.then(function(){e[1].apply(null,[])},function(t){e.length>=3&&e[2].apply(null,[t])})}});var e=RTCPeerConnection.prototype.addIceCandidate;RTCPeerConnection.prototype.addIceCandidate=function(){return null===arguments[0]?Promise.resolve():e.apply(this,arguments)},["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(e){var t=webkitRTCPeerConnection.prototype[e];webkitRTCPeerConnection.prototype[e]=function(){return arguments[0]=new("addIceCandidate"===e?RTCIceCandidate:RTCSessionDescription)(arguments[0]),t.apply(this,arguments)}})},attachMediaStream:function(e,t){r("DEPRECATED, attachMediaStream will soon be removed."),a.version>=43?e.srcObject=t:"undefined"!=typeof e.src?e.src=URL.createObjectURL(t):r("Error attaching stream to element.")},reattachMediaStream:function(e,t){r("DEPRECATED, reattachMediaStream will soon be removed."),a.version>=43?e.srcObject=t.srcObject:e.src=t.src}};t.exports={shimMediaStream:s.shimMediaStream,shimOnTrack:s.shimOnTrack,shimSourceObject:s.shimSourceObject,shimPeerConnection:s.shimPeerConnection,shimGetUserMedia:e("./getusermedia"),attachMediaStream:s.attachMediaStream,reattachMediaStream:s.reattachMediaStream}},{"../utils.js":"/stanza.io-8.0.2/node_modules/traceablepeerconnection/node_modules/webrtc-adapter/src/js/utils.js","./getusermedia":"/stanza.io-8.0.2/node_modules/traceablepeerconnection/node_modules/webrtc-adapter/src/js/chrome/getusermedia.js"}],"/stanza.io-8.0.2/node_modules/traceablepeerconnection/node_modules/webrtc-adapter/src/js/chrome/getusermedia.js":[function(e,t,n){"use strict";var r=e("../utils.js").log;t.exports=function(){var e=function(e){if("object"!=typeof e||e.mandatory||e.optional)return e;var t={};return Object.keys(e).forEach(function(n){if("require"!==n&&"advanced"!==n&&"mediaSource"!==n){var r="object"==typeof e[n]?e[n]:{ideal:e[n]};void 0!==r.exact&&"number"==typeof r.exact&&(r.min=r.max=r.exact);var a=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==r.ideal){t.optional=t.optional||[];var s={};"number"==typeof r.ideal?(s[a("min",n)]=r.ideal,t.optional.push(s),s={},s[a("max",n)]=r.ideal,t.optional.push(s)):(s[a("",n)]=r.ideal,t.optional.push(s))}void 0!==r.exact&&"number"!=typeof r.exact?(t.mandatory=t.mandatory||{},t.mandatory[a("",n)]=r.exact):["min","max"].forEach(function(e){void 0!==r[e]&&(t.mandatory=t.mandatory||{},t.mandatory[a(e,n)]=r[e])})}}),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},t=function(t,n){if(t=JSON.parse(JSON.stringify(t)),t&&t.audio&&(t.audio=e(t.audio)),t&&"object"==typeof t.video){var a=t.video.facingMode;if(a=a&&("object"==typeof a?a:{ideal:a}),a&&("user"===a.exact||"environment"===a.exact||"user"===a.ideal||"environment"===a.ideal)&&(!navigator.mediaDevices.getSupportedConstraints||!navigator.mediaDevices.getSupportedConstraints().facingMode)&&(delete t.video.facingMode,"environment"===a.exact||"environment"===a.ideal))return navigator.mediaDevices.enumerateDevices().then(function(s){s=s.filter(function(e){return"videoinput"===e.kind});var o=s.find(function(e){return e.label.toLowerCase().indexOf("back")!==-1})||s.length&&s[s.length-1];return o&&(t.video.deviceId=a.exact?{exact:o.deviceId}:{ideal:o.deviceId}),t.video=e(t.video),r("chrome: "+JSON.stringify(t)),n(t)});t.video=e(t.video)}return r("chrome: "+JSON.stringify(t)),n(t)},n=function(e){return{name:{PermissionDeniedError:"NotAllowedError",ConstraintNotSatisfiedError:"OverconstrainedError"}[e.name]||e.name,message:e.message,constraint:e.constraintName,toString:function(){return this.name+(this.message&&": ")+this.message}}},a=function(e,r,a){t(e,function(e){navigator.webkitGetUserMedia(e,r,function(e){a(n(e))})})};navigator.getUserMedia=a;var s=function(e){return new Promise(function(t,n){navigator.getUserMedia(e,t,n)})};if(navigator.mediaDevices||(navigator.mediaDevices={getUserMedia:s,enumerateDevices:function(){return new Promise(function(e){var t={audio:"audioinput",video:"videoinput"};return MediaStreamTrack.getSources(function(n){e(n.map(function(e){return{label:e.label,kind:t[e.kind],deviceId:e.id,groupId:""}}))})})}}),navigator.mediaDevices.getUserMedia){var o=navigator.mediaDevices.getUserMedia.bind(navigator.mediaDevices);navigator.mediaDevices.getUserMedia=function(e){return t(e,function(e){return o(e).catch(function(e){return Promise.reject(n(e))})})}}else navigator.mediaDevices.getUserMedia=function(e){return s(e)};"undefined"==typeof navigator.mediaDevices.addEventListener&&(navigator.mediaDevices.addEventListener=function(){r("Dummy mediaDevices.addEventListener called.")}),"undefined"==typeof navigator.mediaDevices.removeEventListener&&(navigator.mediaDevices.removeEventListener=function(){r("Dummy mediaDevices.removeEventListener called.")})}},{"../utils.js":"/stanza.io-8.0.2/node_modules/traceablepeerconnection/node_modules/webrtc-adapter/src/js/utils.js"}],"/stanza.io-8.0.2/node_modules/traceablepeerconnection/node_modules/webrtc-adapter/src/js/edge/edge_shim.js":[function(e,t,n){"use strict";var r=e("sdp"),a=e("../utils").log,s={shimPeerConnection:function(){window.RTCIceGatherer&&(window.RTCIceCandidate||(window.RTCIceCandidate=function(e){return e}),window.RTCSessionDescription||(window.RTCSessionDescription=function(e){return e})),window.RTCPeerConnection=function(e){var t=this,n=document.createDocumentFragment();if(["addEventListener","removeEventListener","dispatchEvent"].forEach(function(e){t[e]=n[e].bind(n)}),this.onicecandidate=null,this.onaddstream=null,this.ontrack=null,this.onremovestream=null,this.onsignalingstatechange=null,this.oniceconnectionstatechange=null,this.onnegotiationneeded=null,this.ondatachannel=null,this.localStreams=[],this.remoteStreams=[],this.getLocalStreams=function(){return t.localStreams},this.getRemoteStreams=function(){return t.remoteStreams},this.localDescription=new RTCSessionDescription({type:"",sdp:""}),this.remoteDescription=new RTCSessionDescription({type:"",sdp:""}),this.signalingState="stable",this.iceConnectionState="new",this.iceGatheringState="new",this.iceOptions={gatherPolicy:"all",iceServers:[]},e&&e.iceTransportPolicy)switch(e.iceTransportPolicy){case"all":case"relay":this.iceOptions.gatherPolicy=e.iceTransportPolicy;break;case"none":throw new TypeError('iceTransportPolicy "none" not supported')}if(this.usingBundle=e&&"max-bundle"===e.bundlePolicy,e&&e.iceServers){var r=JSON.parse(JSON.stringify(e.iceServers));this.iceOptions.iceServers=r.filter(function(e){if(e&&e.urls){var t=e.urls;return"string"==typeof t&&(t=[t]),t=t.filter(function(e){return 0===e.indexOf("turn:")&&e.indexOf("transport=udp")!==-1})[0],!!t}return!1})}this.transceivers=[],this._localIceCandidatesBuffer=[]},window.RTCPeerConnection.prototype._emitBufferedCandidates=function(){var e=this,t=r.splitSections(e.localDescription.sdp);this._localIceCandidatesBuffer.forEach(function(n){var r=!n.candidate||0===Object.keys(n.candidate).length;if(r)for(var a=1;a<t.length;a++)t[a].indexOf("\r\na=end-of-candidates\r\n")===-1&&(t[a]+="a=end-of-candidates\r\n");else n.candidate.candidate.indexOf("typ endOfCandidates")===-1&&(t[n.candidate.sdpMLineIndex+1]+="a="+n.candidate.candidate+"\r\n");if(e.localDescription.sdp=t.join(""),e.dispatchEvent(n),null!==e.onicecandidate&&e.onicecandidate(n),!n.candidate&&"complete"!==e.iceGatheringState){var s=e.transceivers.every(function(e){return e.iceGatherer&&"completed"===e.iceGatherer.state});s&&(e.iceGatheringState="complete")}}),this._localIceCandidatesBuffer=[]},window.RTCPeerConnection.prototype.addStream=function(e){this.localStreams.push(e.clone()),this._maybeFireNegotiationNeeded()},window.RTCPeerConnection.prototype.removeStream=function(e){var t=this.localStreams.indexOf(e);t>-1&&(this.localStreams.splice(t,1),this._maybeFireNegotiationNeeded())},window.RTCPeerConnection.prototype.getSenders=function(){return this.transceivers.filter(function(e){return!!e.rtpSender}).map(function(e){return e.rtpSender})},window.RTCPeerConnection.prototype.getReceivers=function(){return this.transceivers.filter(function(e){return!!e.rtpReceiver}).map(function(e){return e.rtpReceiver})},window.RTCPeerConnection.prototype._getCommonCapabilities=function(e,t){var n={codecs:[],headerExtensions:[],fecMechanisms:[]};return e.codecs.forEach(function(e){ | |
for(var r=0;r<t.codecs.length;r++){var a=t.codecs[r];if(e.name.toLowerCase()===a.name.toLowerCase()&&e.clockRate===a.clockRate&&e.numChannels===a.numChannels){n.codecs.push(a);break}}}),e.headerExtensions.forEach(function(e){for(var r=0;r<t.headerExtensions.length;r++){var a=t.headerExtensions[r];if(e.uri===a.uri){n.headerExtensions.push(a);break}}}),n},window.RTCPeerConnection.prototype._createIceAndDtlsTransports=function(e,t){var n=this,a=new RTCIceGatherer(n.iceOptions),s=new RTCIceTransport(a);a.onlocalcandidate=function(o){var i=new Event("icecandidate");i.candidate={sdpMid:e,sdpMLineIndex:t};var c=o.candidate,l=!c||0===Object.keys(c).length;l?(void 0===a.state&&(a.state="completed"),i.candidate.candidate="candidate:1 1 udp 1 0.0.0.0 9 typ endOfCandidates"):(c.component="RTCP"===s.component?2:1,i.candidate.candidate=r.writeCandidate(c));var u=r.splitSections(n.localDescription.sdp);i.candidate.candidate.indexOf("typ endOfCandidates")===-1?u[i.candidate.sdpMLineIndex+1]+="a="+i.candidate.candidate+"\r\n":u[i.candidate.sdpMLineIndex+1]+="a=end-of-candidates\r\n",n.localDescription.sdp=u.join("");var d=n.transceivers.every(function(e){return e.iceGatherer&&"completed"===e.iceGatherer.state});switch(n.iceGatheringState){case"new":n._localIceCandidatesBuffer.push(i),l&&d&&n._localIceCandidatesBuffer.push(new Event("icecandidate"));break;case"gathering":n._emitBufferedCandidates(),n.dispatchEvent(i),null!==n.onicecandidate&&n.onicecandidate(i),d&&(n.dispatchEvent(new Event("icecandidate")),null!==n.onicecandidate&&n.onicecandidate(new Event("icecandidate")),n.iceGatheringState="complete");break;case"complete":}},s.onicestatechange=function(){n._updateConnectionState()};var o=new RTCDtlsTransport(s);return o.ondtlsstatechange=function(){n._updateConnectionState()},o.onerror=function(){o.state="failed",n._updateConnectionState()},{iceGatherer:a,iceTransport:s,dtlsTransport:o}},window.RTCPeerConnection.prototype._transceive=function(e,t,n){var a=this._getCommonCapabilities(e.localCapabilities,e.remoteCapabilities);t&&e.rtpSender&&(a.encodings=e.sendEncodingParameters,a.rtcp={cname:r.localCName},e.recvEncodingParameters.length&&(a.rtcp.ssrc=e.recvEncodingParameters[0].ssrc),e.rtpSender.send(a)),n&&e.rtpReceiver&&(a.encodings=e.recvEncodingParameters,a.rtcp={cname:e.cname},e.sendEncodingParameters.length&&(a.rtcp.ssrc=e.sendEncodingParameters[0].ssrc),e.rtpReceiver.receive(a))},window.RTCPeerConnection.prototype.setLocalDescription=function(e){var t,n,a=this;if("offer"===e.type)this._pendingOffer&&(t=r.splitSections(e.sdp),n=t.shift(),t.forEach(function(e,t){var n=r.parseRtpParameters(e);a._pendingOffer[t].localCapabilities=n}),this.transceivers=this._pendingOffer,delete this._pendingOffer);else if("answer"===e.type){t=r.splitSections(a.remoteDescription.sdp),n=t.shift();var s=r.matchPrefix(n,"a=ice-lite").length>0;t.forEach(function(e,t){var o=a.transceivers[t],i=o.iceGatherer,c=o.iceTransport,l=o.dtlsTransport,u=o.localCapabilities,d=o.remoteCapabilities,p="0"===e.split("\n",1)[0].split(" ",2)[1];if(!p){var f=r.getIceParameters(e,n);if(s){var m=r.matchPrefix(e,"a=candidate:").map(function(e){return r.parseCandidate(e)}).filter(function(e){return"1"===e.component});m.length&&c.setRemoteCandidates(m)}var h=r.getDtlsParameters(e,n);s&&(h.role="server"),a.usingBundle&&0!==t||(c.start(i,f,s?"controlling":"controlled"),l.start(h));var b=a._getCommonCapabilities(u,d);a._transceive(o,b.codecs.length>0,!1)}})}switch(this.localDescription={type:e.type,sdp:e.sdp},e.type){case"offer":this._updateSignalingState("have-local-offer");break;case"answer":this._updateSignalingState("stable");break;default:throw new TypeError('unsupported type "'+e.type+'"')}var o=arguments.length>1&&"function"==typeof arguments[1];if(o){var i=arguments[1];window.setTimeout(function(){i(),"new"===a.iceGatheringState&&(a.iceGatheringState="gathering"),a._emitBufferedCandidates()},0)}var c=Promise.resolve();return c.then(function(){o||("new"===a.iceGatheringState&&(a.iceGatheringState="gathering"),window.setTimeout(a._emitBufferedCandidates.bind(a),500))}),c},window.RTCPeerConnection.prototype.setRemoteDescription=function(e){var t=this,n=new MediaStream,a=[],s=r.splitSections(e.sdp),o=s.shift(),i=r.matchPrefix(o,"a=ice-lite").length>0;switch(this.usingBundle=r.matchPrefix(o,"a=group:BUNDLE ").length>0,s.forEach(function(s,c){var l,u,d,p,f,m,h,b,g,v,j,_,w=r.splitLines(s),y=w[0].substr(2).split(" "),x=y[0],S="0"===y[1],E=r.getDirection(s,o),D=r.parseRtpParameters(s);S||(j=r.getIceParameters(s,o),_=r.getDtlsParameters(s,o),_.role="client"),b=r.parseRtpEncodingParameters(s);var C=r.matchPrefix(s,"a=mid:");C=C.length?C[0].substr(6):r.generateIdentifier();var T,U=r.matchPrefix(s,"a=ssrc:").map(function(e){return r.parseSsrcMedia(e)}).filter(function(e){return"cname"===e.attribute})[0];U&&(T=U.value);var R=r.matchPrefix(s,"a=end-of-candidates").length>0,O=r.matchPrefix(s,"a=candidate:").map(function(e){return r.parseCandidate(e)}).filter(function(e){return"1"===e.component});if("offer"!==e.type||S)"answer"!==e.type||S||(l=t.transceivers[c],u=l.iceGatherer,d=l.iceTransport,p=l.dtlsTransport,f=l.rtpSender,m=l.rtpReceiver,h=l.sendEncodingParameters,g=l.localCapabilities,t.transceivers[c].recvEncodingParameters=b,t.transceivers[c].remoteCapabilities=D,t.transceivers[c].cname=T,(i||R)&&O.length&&d.setRemoteCandidates(O),t.usingBundle&&0!==c||(d.start(u,j,"controlling"),p.start(_)),t._transceive(l,"sendrecv"===E||"recvonly"===E,"sendrecv"===E||"sendonly"===E),!m||"sendrecv"!==E&&"sendonly"!==E?delete l.rtpReceiver:(v=m.track,a.push([v,m]),n.addTrack(v)));else{var A=t.usingBundle&&c>0?{iceGatherer:t.transceivers[0].iceGatherer,iceTransport:t.transceivers[0].iceTransport,dtlsTransport:t.transceivers[0].dtlsTransport}:t._createIceAndDtlsTransports(C,c);if(R&&A.iceTransport.setRemoteCandidates(O),g=RTCRtpReceiver.getCapabilities(x),h=[{ssrc:1001*(2*c+2)}],m=new RTCRtpReceiver(A.dtlsTransport,x),v=m.track,a.push([v,m]),n.addTrack(v),t.localStreams.length>0&&t.localStreams[0].getTracks().length>=c){var N=t.localStreams[0].getTracks()[c];f=new RTCRtpSender(N,A.dtlsTransport)}t.transceivers[c]={iceGatherer:A.iceGatherer,iceTransport:A.iceTransport,dtlsTransport:A.dtlsTransport,localCapabilities:g,remoteCapabilities:D,rtpSender:f,rtpReceiver:m,kind:x,mid:C,cname:T,sendEncodingParameters:h,recvEncodingParameters:b},t._transceive(t.transceivers[c],!1,"sendrecv"===E||"sendonly"===E)}}),this.remoteDescription={type:e.type,sdp:e.sdp},e.type){case"offer":this._updateSignalingState("have-remote-offer");break;case"answer":this._updateSignalingState("stable");break;default:throw new TypeError('unsupported type "'+e.type+'"')}return n.getTracks().length&&(t.remoteStreams.push(n),window.setTimeout(function(){var e=new Event("addstream");e.stream=n,t.dispatchEvent(e),null!==t.onaddstream&&window.setTimeout(function(){t.onaddstream(e)},0),a.forEach(function(r){var a=r[0],s=r[1],o=new Event("track");o.track=a,o.receiver=s,o.streams=[n],t.dispatchEvent(e),null!==t.ontrack&&window.setTimeout(function(){t.ontrack(o)},0)})},0)),arguments.length>1&&"function"==typeof arguments[1]&&window.setTimeout(arguments[1],0),Promise.resolve()},window.RTCPeerConnection.prototype.close=function(){this.transceivers.forEach(function(e){e.iceTransport&&e.iceTransport.stop(),e.dtlsTransport&&e.dtlsTransport.stop(),e.rtpSender&&e.rtpSender.stop(),e.rtpReceiver&&e.rtpReceiver.stop()}),this._updateSignalingState("closed")},window.RTCPeerConnection.prototype._updateSignalingState=function(e){this.signalingState=e;var t=new Event("signalingstatechange");this.dispatchEvent(t),null!==this.onsignalingstatechange&&this.onsignalingstatechange(t)},window.RTCPeerConnection.prototype._maybeFireNegotiationNeeded=function(){var e=new Event("negotiationneeded");this.dispatchEvent(e),null!==this.onnegotiationneeded&&this.onnegotiationneeded(e)},window.RTCPeerConnection.prototype._updateConnectionState=function(){var e,t=this,n={new:0,closed:0,connecting:0,checking:0,connected:0,completed:0,failed:0};if(this.transceivers.forEach(function(e){n[e.iceTransport.state]++,n[e.dtlsTransport.state]++}),n.connected+=n.completed,e="new",n.failed>0?e="failed":n.connecting>0||n.checking>0?e="connecting":n.disconnected>0?e="disconnected":n.new>0?e="new":(n.connected>0||n.completed>0)&&(e="connected"),e!==t.iceConnectionState){t.iceConnectionState=e;var r=new Event("iceconnectionstatechange");this.dispatchEvent(r),null!==this.oniceconnectionstatechange&&this.oniceconnectionstatechange(r)}},window.RTCPeerConnection.prototype.createOffer=function(){var e=this;if(this._pendingOffer)throw new Error("createOffer called while there is a pending offer.");var t;1===arguments.length&&"function"!=typeof arguments[0]?t=arguments[0]:3===arguments.length&&(t=arguments[2]);var n=[],a=0,s=0;if(this.localStreams.length&&(a=this.localStreams[0].getAudioTracks().length,s=this.localStreams[0].getVideoTracks().length),t){if(t.mandatory||t.optional)throw new TypeError("Legacy mandatory/optional constraints not supported.");void 0!==t.offerToReceiveAudio&&(a=t.offerToReceiveAudio),void 0!==t.offerToReceiveVideo&&(s=t.offerToReceiveVideo)}for(this.localStreams.length&&this.localStreams[0].getTracks().forEach(function(e){n.push({kind:e.kind,track:e,wantReceive:"audio"===e.kind?a>0:s>0}),"audio"===e.kind?a--:"video"===e.kind&&s--});a>0||s>0;)a>0&&(n.push({kind:"audio",wantReceive:!0}),a--),s>0&&(n.push({kind:"video",wantReceive:!0}),s--);var o=r.writeSessionBoilerplate(),i=[];n.forEach(function(t,n){var a,s,o=t.track,c=t.kind,l=r.generateIdentifier(),u=e.usingBundle&&n>0?{iceGatherer:i[0].iceGatherer,iceTransport:i[0].iceTransport,dtlsTransport:i[0].dtlsTransport}:e._createIceAndDtlsTransports(l,n),d=RTCRtpSender.getCapabilities(c),p=[{ssrc:1001*(2*n+1)}];o&&(a=new RTCRtpSender(o,u.dtlsTransport)),t.wantReceive&&(s=new RTCRtpReceiver(u.dtlsTransport,c)),i[n]={iceGatherer:u.iceGatherer,iceTransport:u.iceTransport,dtlsTransport:u.dtlsTransport,localCapabilities:d,remoteCapabilities:null,rtpSender:a,rtpReceiver:s,kind:c,mid:l,sendEncodingParameters:p,recvEncodingParameters:null}}),this.usingBundle&&(o+="a=group:BUNDLE "+i.map(function(e){return e.mid}).join(" ")+"\r\n"),n.forEach(function(t,n){var a=i[n];o+=r.writeMediaSection(a,a.localCapabilities,"offer",e.localStreams[0])}),this._pendingOffer=i;var c=new RTCSessionDescription({type:"offer",sdp:o});return arguments.length&&"function"==typeof arguments[0]&&window.setTimeout(arguments[0],0,c),Promise.resolve(c)},window.RTCPeerConnection.prototype.createAnswer=function(){var e=this,t=r.writeSessionBoilerplate();this.usingBundle&&(t+="a=group:BUNDLE "+this.transceivers.map(function(e){return e.mid}).join(" ")+"\r\n"),this.transceivers.forEach(function(n){var a=e._getCommonCapabilities(n.localCapabilities,n.remoteCapabilities);t+=r.writeMediaSection(n,a,"answer",e.localStreams[0])});var n=new RTCSessionDescription({type:"answer",sdp:t});return arguments.length&&"function"==typeof arguments[0]&&window.setTimeout(arguments[0],0,n),Promise.resolve(n)},window.RTCPeerConnection.prototype.addIceCandidate=function(e){if(null===e)this.transceivers.forEach(function(e){e.iceTransport.addRemoteCandidate({})});else{var t=e.sdpMLineIndex;if(e.sdpMid)for(var n=0;n<this.transceivers.length;n++)if(this.transceivers[n].mid===e.sdpMid){t=n;break}var a=this.transceivers[t];if(a){var s=Object.keys(e.candidate).length>0?r.parseCandidate(e.candidate):{};if("tcp"===s.protocol&&0===s.port)return;if("1"!==s.component)return;"endOfCandidates"===s.type&&(s={}),a.iceTransport.addRemoteCandidate(s);var o=r.splitSections(this.remoteDescription.sdp);o[t+1]+=(s.type?e.candidate.trim():"a=end-of-candidates")+"\r\n",this.remoteDescription.sdp=o.join("")}}return arguments.length>1&&"function"==typeof arguments[1]&&window.setTimeout(arguments[1],0),Promise.resolve()},window.RTCPeerConnection.prototype.getStats=function(){var e=[];this.transceivers.forEach(function(t){["rtpSender","rtpReceiver","iceGatherer","iceTransport","dtlsTransport"].forEach(function(n){t[n]&&e.push(t[n].getStats())})});var t=arguments.length>1&&"function"==typeof arguments[1]&&arguments[1];return new Promise(function(n){var r=new Map;Promise.all(e).then(function(e){e.forEach(function(e){Object.keys(e).forEach(function(t){r.set(t,e[t]),r[t]=e[t]})}),t&&window.setTimeout(t,0,r),n(r)})})}},attachMediaStream:function(e,t){a("DEPRECATED, attachMediaStream will soon be removed."),e.srcObject=t},reattachMediaStream:function(e,t){a("DEPRECATED, reattachMediaStream will soon be removed."),e.srcObject=t.srcObject}};t.exports={shimPeerConnection:s.shimPeerConnection,shimGetUserMedia:e("./getusermedia"),attachMediaStream:s.attachMediaStream,reattachMediaStream:s.reattachMediaStream}},{"../utils":"/stanza.io-8.0.2/node_modules/traceablepeerconnection/node_modules/webrtc-adapter/src/js/utils.js","./getusermedia":"/stanza.io-8.0.2/node_modules/traceablepeerconnection/node_modules/webrtc-adapter/src/js/edge/getusermedia.js",sdp:"/stanza.io-8.0.2/node_modules/sdp/sdp.js"}],"/stanza.io-8.0.2/node_modules/traceablepeerconnection/node_modules/webrtc-adapter/src/js/edge/getusermedia.js":[function(e,t,n){"use strict";t.exports=function(){var e=function(e){return{name:{PermissionDeniedError:"NotAllowedError"}[e.name]||e.name,message:e.message,constraint:e.constraint,toString:function(){return this.name}}},t=navigator.mediaDevices.getUserMedia.bind(navigator.mediaDevices);navigator.mediaDevices.getUserMedia=function(n){return t(n).catch(function(t){return Promise.reject(e(t))})}}},{}],"/stanza.io-8.0.2/node_modules/traceablepeerconnection/node_modules/webrtc-adapter/src/js/firefox/firefox_shim.js":[function(e,t,n){"use strict";var r=e("../utils").log,a=e("../utils").browserDetails,s={shimOnTrack:function(){"object"!=typeof window||!window.RTCPeerConnection||"ontrack"in window.RTCPeerConnection.prototype||Object.defineProperty(window.RTCPeerConnection.prototype,"ontrack",{get:function(){return this._ontrack},set:function(e){this._ontrack&&(this.removeEventListener("track",this._ontrack),this.removeEventListener("addstream",this._ontrackpoly)),this.addEventListener("track",this._ontrack=e),this.addEventListener("addstream",this._ontrackpoly=function(e){e.stream.getTracks().forEach(function(t){var n=new Event("track");n.track=t,n.receiver={track:t},n.streams=[e.stream],this.dispatchEvent(n)}.bind(this))}.bind(this))}})},shimSourceObject:function(){"object"==typeof window&&(!window.HTMLMediaElement||"srcObject"in window.HTMLMediaElement.prototype||Object.defineProperty(window.HTMLMediaElement.prototype,"srcObject",{get:function(){return this.mozSrcObject},set:function(e){this.mozSrcObject=e}}))},shimPeerConnection:function(){if("object"==typeof window&&(window.RTCPeerConnection||window.mozRTCPeerConnection)){window.RTCPeerConnection||(window.RTCPeerConnection=function(e,t){if(a.version<38&&e&&e.iceServers){for(var n=[],r=0;r<e.iceServers.length;r++){var s=e.iceServers[r];if(s.hasOwnProperty("urls"))for(var o=0;o<s.urls.length;o++){var i={url:s.urls[o]};0===s.urls[o].indexOf("turn")&&(i.username=s.username,i.credential=s.credential),n.push(i)}else n.push(e.iceServers[r])}e.iceServers=n}return new mozRTCPeerConnection(e,t)},window.RTCPeerConnection.prototype=mozRTCPeerConnection.prototype,mozRTCPeerConnection.generateCertificate&&Object.defineProperty(window.RTCPeerConnection,"generateCertificate",{get:function(){return mozRTCPeerConnection.generateCertificate}}),window.RTCSessionDescription=mozRTCSessionDescription,window.RTCIceCandidate=mozRTCIceCandidate),["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(e){var t=RTCPeerConnection.prototype[e];RTCPeerConnection.prototype[e]=function(){return arguments[0]=new("addIceCandidate"===e?RTCIceCandidate:RTCSessionDescription)(arguments[0]),t.apply(this,arguments)}});var e=RTCPeerConnection.prototype.addIceCandidate;RTCPeerConnection.prototype.addIceCandidate=function(){return null===arguments[0]?Promise.resolve():e.apply(this,arguments)};var t=function(e){var t=new Map;return Object.keys(e).forEach(function(n){t.set(n,e[n]),t[n]=e[n]}),t},n=RTCPeerConnection.prototype.getStats;RTCPeerConnection.prototype.getStats=function(e,r,a){return n.apply(this,[e||null]).then(function(e){return t(e)}).then(r,a)}}},attachMediaStream:function(e,t){r("DEPRECATED, attachMediaStream will soon be removed."),e.srcObject=t},reattachMediaStream:function(e,t){r("DEPRECATED, reattachMediaStream will soon be removed."),e.srcObject=t.srcObject}};t.exports={shimOnTrack:s.shimOnTrack,shimSourceObject:s.shimSourceObject,shimPeerConnection:s.shimPeerConnection,shimGetUserMedia:e("./getusermedia"),attachMediaStream:s.attachMediaStream,reattachMediaStream:s.reattachMediaStream}},{"../utils":"/stanza.io-8.0.2/node_modules/traceablepeerconnection/node_modules/webrtc-adapter/src/js/utils.js","./getusermedia":"/stanza.io-8.0.2/node_modules/traceablepeerconnection/node_modules/webrtc-adapter/src/js/firefox/getusermedia.js"}],"/stanza.io-8.0.2/node_modules/traceablepeerconnection/node_modules/webrtc-adapter/src/js/firefox/getusermedia.js":[function(e,t,n){"use strict";var r=e("../utils").log,a=e("../utils").browserDetails;t.exports=function(){var e=function(e){return{name:{SecurityError:"NotAllowedError",PermissionDeniedError:"NotAllowedError"}[e.name]||e.name,message:{"The operation is insecure.":"The request is not allowed by the user agent or the platform in the current context."}[e.message]||e.message,constraint:e.constraint,toString:function(){return this.name+(this.message&&": ")+this.message}}},t=function(t,n,s){var o=function(e){if("object"!=typeof e||e.require)return e;var t=[];return Object.keys(e).forEach(function(n){if("require"!==n&&"advanced"!==n&&"mediaSource"!==n){var r=e[n]="object"==typeof e[n]?e[n]:{ideal:e[n]};if(void 0===r.min&&void 0===r.max&&void 0===r.exact||t.push(n),void 0!==r.exact&&("number"==typeof r.exact?r.min=r.max=r.exact:e[n]=r.exact,delete r.exact),void 0!==r.ideal){e.advanced=e.advanced||[];var a={};"number"==typeof r.ideal?a[n]={min:r.ideal,max:r.ideal}:a[n]=r.ideal,e.advanced.push(a),delete r.ideal,Object.keys(r).length||delete e[n]}}}),t.length&&(e.require=t),e};return t=JSON.parse(JSON.stringify(t)),a.version<38&&(r("spec: "+JSON.stringify(t)),t.audio&&(t.audio=o(t.audio)),t.video&&(t.video=o(t.video)),r("ff37: "+JSON.stringify(t))),navigator.mozGetUserMedia(t,n,function(t){s(e(t))})},n=function(e){return new Promise(function(n,r){t(e,n,r)})};if(navigator.mediaDevices||(navigator.mediaDevices={getUserMedia:n,addEventListener:function(){},removeEventListener:function(){}}),navigator.mediaDevices.enumerateDevices=navigator.mediaDevices.enumerateDevices||function(){return new Promise(function(e){var t=[{kind:"audioinput",deviceId:"default",label:"",groupId:""},{kind:"videoinput",deviceId:"default",label:"",groupId:""}];e(t)})},a.version<41){var s=navigator.mediaDevices.enumerateDevices.bind(navigator.mediaDevices);navigator.mediaDevices.enumerateDevices=function(){return s().then(void 0,function(e){if("NotFoundError"===e.name)return[];throw e})}}if(a.version<49){var o=navigator.mediaDevices.getUserMedia.bind(navigator.mediaDevices);navigator.mediaDevices.getUserMedia=function(t){return o(t).catch(function(t){return Promise.reject(e(t))})}}navigator.getUserMedia=function(e,n,r){return a.version<44?t(e,n,r):(console.warn("navigator.getUserMedia has been replaced by navigator.mediaDevices.getUserMedia"),void navigator.mediaDevices.getUserMedia(e).then(n,r))}}},{"../utils":"/stanza.io-8.0.2/node_modules/traceablepeerconnection/node_modules/webrtc-adapter/src/js/utils.js"}],"/stanza.io-8.0.2/node_modules/traceablepeerconnection/node_modules/webrtc-adapter/src/js/safari/safari_shim.js":[function(e,t,n){"use strict";var r={shimGetUserMedia:function(){navigator.getUserMedia=navigator.webkitGetUserMedia}};t.exports={shimGetUserMedia:r.shimGetUserMedia}},{}],"/stanza.io-8.0.2/node_modules/traceablepeerconnection/node_modules/webrtc-adapter/src/js/utils.js":[function(e,t,n){"use strict";var r=!0,a={disableLog:function(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(r=e,e?"adapter.js logging disabled":"adapter.js logging enabled")},log:function(){if("object"==typeof window){if(r)return;"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,arguments)}},extractVersion:function(e,t,n){var r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)},detectBrowser:function(){var e={};if(e.browser=null,e.version=null,e.minVersion=null,"undefined"==typeof window||!window.navigator)return e.browser="Not a browser.",e;if(navigator.mozGetUserMedia)e.browser="firefox",e.version=this.extractVersion(navigator.userAgent,/Firefox\/([0-9]+)\./,1),e.minVersion=31;else if(navigator.webkitGetUserMedia)if(window.webkitRTCPeerConnection)e.browser="chrome",e.version=this.extractVersion(navigator.userAgent,/Chrom(e|ium)\/([0-9]+)\./,2),e.minVersion=38;else{if(!navigator.userAgent.match(/Version\/(\d+).(\d+)/))return e.browser="Unsupported webkit-based browser with GUM support but no WebRTC support.",e;e.browser="safari",e.version=this.extractVersion(navigator.userAgent,/AppleWebKit\/([0-9]+)\./,1),e.minVersion=602}else{if(!navigator.mediaDevices||!navigator.userAgent.match(/Edge\/(\d+).(\d+)$/))return e.browser="Not a supported browser.",e;e.browser="edge",e.version=this.extractVersion(navigator.userAgent,/Edge\/(\d+).(\d+)$/,2),e.minVersion=10547}return e.version<e.minVersion&&a.log("Browser: "+e.browser+" Version: "+e.version+" < minimum supported version: "+e.minVersion+"\n some things might not work!"),e}};t.exports={log:a.log,disableLog:a.disableLog,browserDetails:a.detectBrowser(),extractVersion:a.extractVersion}},{}],"/stanza.io-8.0.2/node_modules/trim/index.js":[function(e,t,n){function trim(e){return e.replace(/^\s*|\s*$/g,"")}n=t.exports=trim,n.left=function(e){return e.replace(/^\s*/,"")},n.right=function(e){return e.replace(/\s*$/,"")}},{}],"/stanza.io-8.0.2/node_modules/util-deprecate/browser.js":[function(e,t,n){(function(e){function deprecate(e,t){function deprecated(){if(!n){if(config("throwDeprecation"))throw new Error(t);config("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}if(config("noDeprecation"))return e;var n=!1;return deprecated}function config(t){try{if(!e.localStorage)return!1}catch(e){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=deprecate}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],"/stanza.io-8.0.2/node_modules/util/node_modules/inherits/inherits_browser.js":[function(e,t,n){arguments[4]["/stanza.io-8.0.2/node_modules/inherits/inherits_browser.js"][0].apply(n,arguments)},{}],"/stanza.io-8.0.2/node_modules/util/support/isBufferBrowser.js":[function(e,t,n){t.exports=function isBuffer(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],"/stanza.io-8.0.2/node_modules/util/util.js":[function(e,t,n){(function(t,r){function inspect(e,t){var r={seen:[],stylize:stylizeNoColor};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),isBoolean(t)?r.showHidden=t:t&&n._extend(r,t),isUndefined(r.showHidden)&&(r.showHidden=!1),isUndefined(r.depth)&&(r.depth=2),isUndefined(r.colors)&&(r.colors=!1),isUndefined(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=stylizeWithColor),formatValue(r,e,r.depth)}function stylizeWithColor(e,t){var n=inspect.styles[t];return n?"["+inspect.colors[n][0]+"m"+e+"["+inspect.colors[n][1]+"m":e}function stylizeNoColor(e,t){return e}function arrayToHash(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function formatValue(e,t,r){if(e.customInspect&&t&&isFunction(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var a=t.inspect(r,e);return isString(a)||(a=formatValue(e,a,r)),a}var s=formatPrimitive(e,t);if(s)return s;var o=Object.keys(t),i=arrayToHash(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),isError(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return formatError(t);if(0===o.length){if(isFunction(t)){var c=t.name?": "+t.name:"";return e.stylize("[Function"+c+"]","special")}if(isRegExp(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(isDate(t))return e.stylize(Date.prototype.toString.call(t),"date");if(isError(t))return formatError(t)}var l="",u=!1,d=["{","}"];if(isArray(t)&&(u=!0,d=["[","]"]),isFunction(t)){var p=t.name?": "+t.name:"";l=" [Function"+p+"]"}if(isRegExp(t)&&(l=" "+RegExp.prototype.toString.call(t)),isDate(t)&&(l=" "+Date.prototype.toUTCString.call(t)),isError(t)&&(l=" "+formatError(t)),0===o.length&&(!u||0==t.length))return d[0]+l+d[1];if(r<0)return isRegExp(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var f;return f=u?formatArray(e,t,r,i,o):o.map(function(n){return formatProperty(e,t,r,i,n,u)}),e.seen.pop(),reduceToSingleString(f,l,d)}function formatPrimitive(e,t){if(isUndefined(t))return e.stylize("undefined","undefined");if(isString(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return isNumber(t)?e.stylize(""+t,"number"):isBoolean(t)?e.stylize(""+t,"boolean"):isNull(t)?e.stylize("null","null"):void 0}function formatError(e){return"["+Error.prototype.toString.call(e)+"]"}function formatArray(e,t,n,r,a){for(var s=[],o=0,i=t.length;o<i;++o)hasOwnProperty(t,String(o))?s.push(formatProperty(e,t,n,r,String(o),!0)):s.push("");return a.forEach(function(a){a.match(/^\d+$/)||s.push(formatProperty(e,t,n,r,a,!0))}),s}function formatProperty(e,t,n,r,a,s){var o,i,c;if(c=Object.getOwnPropertyDescriptor(t,a)||{value:t[a]},c.get?i=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(i=e.stylize("[Setter]","special")),hasOwnProperty(r,a)||(o="["+a+"]"),i||(e.seen.indexOf(c.value)<0?(i=isNull(n)?formatValue(e,c.value,null):formatValue(e,c.value,n-1),i.indexOf("\n")>-1&&(i=s?i.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+i.split("\n").map(function(e){return" "+e}).join("\n"))):i=e.stylize("[Circular]","special")),isUndefined(o)){if(s&&a.match(/^\d+$/))return i;o=JSON.stringify(""+a),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+i}function reduceToSingleString(e,t,n){var r=0,a=e.reduce(function(e,t){return r++,t.indexOf("\n")>=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return a>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function isArray(e){return Array.isArray(e)}function isBoolean(e){return"boolean"==typeof e}function isNull(e){return null===e}function isNullOrUndefined(e){return null==e}function isNumber(e){return"number"==typeof e}function isString(e){return"string"==typeof e}function isSymbol(e){return"symbol"==typeof e}function isUndefined(e){return void 0===e}function isRegExp(e){return isObject(e)&&"[object RegExp]"===objectToString(e)}function isObject(e){return"object"==typeof e&&null!==e}function isDate(e){return isObject(e)&&"[object Date]"===objectToString(e)}function isError(e){return isObject(e)&&("[object Error]"===objectToString(e)||e instanceof Error)}function isFunction(e){return"function"==typeof e}function isPrimitive(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||"undefined"==typeof e}function objectToString(e){return Object.prototype.toString.call(e)}function pad(e){return e<10?"0"+e.toString(10):e.toString(10)}function timestamp(){var e=new Date,t=[pad(e.getHours()),pad(e.getMinutes()),pad(e.getSeconds())].join(":");return[e.getDate(),i[e.getMonth()],t].join(" ")}function hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var a=/%[sdj%]/g;n.format=function(e){if(!isString(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(inspect(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,s=r.length,o=String(e).replace(a,function(e){if("%%"===e)return"%";if(n>=s)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),i=r[n];n<s;i=r[++n])o+=isNull(i)||!isObject(i)?" "+i:" "+inspect(i);return o},n.deprecate=function(e,a){function deprecated(){if(!s){if(t.throwDeprecation)throw new Error(a);t.traceDeprecation?console.trace(a):console.error(a),s=!0}return e.apply(this,arguments)}if(isUndefined(r.process))return function(){return n.deprecate(e,a).apply(this,arguments)};if(t.noDeprecation===!0)return e;var s=!1;return deprecated};var s,o={};n.debuglog=function(e){if(isUndefined(s)&&(s=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!o[e])if(new RegExp("\\b"+e+"\\b","i").test(s)){var r=t.pid;o[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,r,t)}}else o[e]=function(){};return o[e]},n.inspect=inspect,inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},inspect.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=isArray,n.isBoolean=isBoolean,n.isNull=isNull,n.isNullOrUndefined=isNullOrUndefined,n.isNumber=isNumber,n.isString=isString,n.isSymbol=isSymbol,n.isUndefined=isUndefined,n.isRegExp=isRegExp,n.isObject=isObject,n.isDate=isDate,n.isError=isError,n.isFunction=isFunction,n.isPrimitive=isPrimitive,n.isBuffer=e("./support/isBuffer");var i=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];n.log=function(){console.log("%s - %s",timestamp(),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!isObject(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":"/stanza.io-8.0.2/node_modules/util/support/isBufferBrowser.js",_process:"/stanza.io-8.0.2/node_modules/browserify/node_modules/process/browser.js",inherits:"/stanza.io-8.0.2/node_modules/util/node_modules/inherits/inherits_browser.js"}],"/stanza.io-8.0.2/node_modules/uuid/rng-browser.js":[function(e,t,n){(function(e){var n,r=e.crypto||e.msCrypto;if(r&&r.getRandomValues){var a=new Uint8Array(16);n=function whatwgRNG(){return r.getRandomValues(a),a}}if(!n){var s=new Array(16);n=function(){for(var e,t=0;t<16;t++)0===(3&t)&&(e=4294967296*Math.random()),s[t]=e>>>((3&t)<<3)&255;return s}}t.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],"/stanza.io-8.0.2/node_modules/uuid/uuid.js":[function(e,t,n){function parse(e,t,n){var r=t&&n||0,a=0;for(t=t||[],e.toLowerCase().replace(/[0-9a-f]{2}/g,function(e){a<16&&(t[r+a++]=s[e])});a<16;)t[r+a++]=0;return t}function unparse(e,t){var n=t||0,r=a;return r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]; | |
}function v1(e,t,n){var r=t&&n||0,a=t||[];e=e||{};var s=void 0!==e.clockseq?e.clockseq:l,o=void 0!==e.msecs?e.msecs:(new Date).getTime(),i=void 0!==e.nsecs?e.nsecs:d+1,p=o-u+(i-d)/1e4;if(p<0&&void 0===e.clockseq&&(s=s+1&16383),(p<0||o>u)&&void 0===e.nsecs&&(i=0),i>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=o,d=i,l=s,o+=122192928e5;var f=(1e4*(268435455&o)+i)%4294967296;a[r++]=f>>>24&255,a[r++]=f>>>16&255,a[r++]=f>>>8&255,a[r++]=255&f;var m=o/4294967296*1e4&268435455;a[r++]=m>>>8&255,a[r++]=255&m,a[r++]=m>>>24&15|16,a[r++]=m>>>16&255,a[r++]=s>>>8|128,a[r++]=255&s;for(var h=e.node||c,b=0;b<6;b++)a[r+b]=h[b];return t?t:unparse(a)}function v4(e,t,n){var a=t&&n||0;"string"==typeof e&&(t="binary"==e?new Array(16):null,e=null),e=e||{};var s=e.random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var o=0;o<16;o++)t[a+o]=s[o];return t||unparse(s)}for(var r=e("./rng"),a=[],s={},o=0;o<256;o++)a[o]=(o+256).toString(16).substr(1),s[a[o]]=o;var i=r(),c=[1|i[0],i[1],i[2],i[3],i[4],i[5]],l=16383&(i[6]<<8|i[7]),u=0,d=0,p=v4;p.v1=v1,p.v4=v4,p.parse=parse,p.unparse=unparse,t.exports=p},{"./rng":"/stanza.io-8.0.2/node_modules/uuid/rng-browser.js"}],"/stanza.io-8.0.2/node_modules/webrtc-adapter/src/js/adapter_core.js":[function(e,t,n){arguments[4]["/stanza.io-8.0.2/node_modules/traceablepeerconnection/node_modules/webrtc-adapter/src/js/adapter_core.js"][0].apply(n,arguments)},{"./chrome/chrome_shim":"/stanza.io-8.0.2/node_modules/webrtc-adapter/src/js/chrome/chrome_shim.js","./edge/edge_shim":"/stanza.io-8.0.2/node_modules/webrtc-adapter/src/js/edge/edge_shim.js","./firefox/firefox_shim":"/stanza.io-8.0.2/node_modules/webrtc-adapter/src/js/firefox/firefox_shim.js","./safari/safari_shim":"/stanza.io-8.0.2/node_modules/webrtc-adapter/src/js/safari/safari_shim.js","./utils":"/stanza.io-8.0.2/node_modules/webrtc-adapter/src/js/utils.js"}],"/stanza.io-8.0.2/node_modules/webrtc-adapter/src/js/chrome/chrome_shim.js":[function(e,t,n){"use strict";var r=e("../utils.js").log,a=e("../utils.js").browserDetails,s={shimMediaStream:function(){window.MediaStream=window.MediaStream||window.webkitMediaStream},shimOnTrack:function(){"object"!=typeof window||!window.RTCPeerConnection||"ontrack"in window.RTCPeerConnection.prototype||Object.defineProperty(window.RTCPeerConnection.prototype,"ontrack",{get:function(){return this._ontrack},set:function(e){var t=this;this._ontrack&&(this.removeEventListener("track",this._ontrack),this.removeEventListener("addstream",this._ontrackpoly)),this.addEventListener("track",this._ontrack=e),this.addEventListener("addstream",this._ontrackpoly=function(e){e.stream.addEventListener("addtrack",function(n){var r=new Event("track");r.track=n.track,r.receiver={track:n.track},r.streams=[e.stream],t.dispatchEvent(r)}),e.stream.getTracks().forEach(function(t){var n=new Event("track");n.track=t,n.receiver={track:t},n.streams=[e.stream],this.dispatchEvent(n)}.bind(this))}.bind(this))}})},shimSourceObject:function(){"object"==typeof window&&(!window.HTMLMediaElement||"srcObject"in window.HTMLMediaElement.prototype||Object.defineProperty(window.HTMLMediaElement.prototype,"srcObject",{get:function(){return this._srcObject},set:function(e){var t=this;return this._srcObject=e,this.src&&URL.revokeObjectURL(this.src),e?(this.src=URL.createObjectURL(e),e.addEventListener("addtrack",function(){t.src&&URL.revokeObjectURL(t.src),t.src=URL.createObjectURL(e)}),void e.addEventListener("removetrack",function(){t.src&&URL.revokeObjectURL(t.src),t.src=URL.createObjectURL(e)})):void(this.src="")}}))},shimPeerConnection:function(){window.RTCPeerConnection=function(e,t){r("PeerConnection"),e&&e.iceTransportPolicy&&(e.iceTransports=e.iceTransportPolicy);var n=new webkitRTCPeerConnection(e,t),a=n.getStats.bind(n);return n.getStats=function(e,t,n){var r=this,s=arguments;if(arguments.length>0&&"function"==typeof e)return a(e,t);var o=function(e){var t={},n=e.result();return n.forEach(function(e){var n={id:e.id,timestamp:e.timestamp,type:e.type};e.names().forEach(function(t){n[t]=e.stat(t)}),t[n.id]=n}),t},i=function(e,t){var n=new Map(Object.keys(e).map(function(t){return[t,e[t]]}));return t=t||e,Object.keys(t).forEach(function(e){n[e]=t[e]}),n};if(arguments.length>=2){var c=function(e){s[1](i(o(e)))};return a.apply(this,[c,arguments[0]])}return new Promise(function(t,n){1===s.length&&"object"==typeof e?a.apply(r,[function(e){t(i(o(e)))},n]):a.apply(r,[function(e){t(i(o(e),e.result()))},n])}).then(t,n)},n},window.RTCPeerConnection.prototype=webkitRTCPeerConnection.prototype,webkitRTCPeerConnection.generateCertificate&&Object.defineProperty(window.RTCPeerConnection,"generateCertificate",{get:function(){return webkitRTCPeerConnection.generateCertificate}}),["createOffer","createAnswer"].forEach(function(e){var t=webkitRTCPeerConnection.prototype[e];webkitRTCPeerConnection.prototype[e]=function(){var e=this;if(arguments.length<1||1===arguments.length&&"object"==typeof arguments[0]){var n=1===arguments.length?arguments[0]:void 0;return new Promise(function(r,a){t.apply(e,[r,a,n])})}return t.apply(this,arguments)}}),a.version<51&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(e){var t=webkitRTCPeerConnection.prototype[e];webkitRTCPeerConnection.prototype[e]=function(){var e=arguments,n=this,r=new Promise(function(r,a){t.apply(n,[e[0],r,a])});return e.length<2?r:r.then(function(){e[1].apply(null,[])},function(t){e.length>=3&&e[2].apply(null,[t])})}}),["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(e){var t=webkitRTCPeerConnection.prototype[e];webkitRTCPeerConnection.prototype[e]=function(){return arguments[0]=new("addIceCandidate"===e?RTCIceCandidate:RTCSessionDescription)(arguments[0]),t.apply(this,arguments)}});var e=RTCPeerConnection.prototype.addIceCandidate;RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?e.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}};t.exports={shimMediaStream:s.shimMediaStream,shimOnTrack:s.shimOnTrack,shimSourceObject:s.shimSourceObject,shimPeerConnection:s.shimPeerConnection,shimGetUserMedia:e("./getusermedia")}},{"../utils.js":"/stanza.io-8.0.2/node_modules/webrtc-adapter/src/js/utils.js","./getusermedia":"/stanza.io-8.0.2/node_modules/webrtc-adapter/src/js/chrome/getusermedia.js"}],"/stanza.io-8.0.2/node_modules/webrtc-adapter/src/js/chrome/getusermedia.js":[function(e,t,n){"use strict";var r=e("../utils.js").log;t.exports=function(){var e=function(e){if("object"!=typeof e||e.mandatory||e.optional)return e;var t={};return Object.keys(e).forEach(function(n){if("require"!==n&&"advanced"!==n&&"mediaSource"!==n){var r="object"==typeof e[n]?e[n]:{ideal:e[n]};void 0!==r.exact&&"number"==typeof r.exact&&(r.min=r.max=r.exact);var a=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==r.ideal){t.optional=t.optional||[];var s={};"number"==typeof r.ideal?(s[a("min",n)]=r.ideal,t.optional.push(s),s={},s[a("max",n)]=r.ideal,t.optional.push(s)):(s[a("",n)]=r.ideal,t.optional.push(s))}void 0!==r.exact&&"number"!=typeof r.exact?(t.mandatory=t.mandatory||{},t.mandatory[a("",n)]=r.exact):["min","max"].forEach(function(e){void 0!==r[e]&&(t.mandatory=t.mandatory||{},t.mandatory[a(e,n)]=r[e])})}}),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},t=function(t,n){if(t=JSON.parse(JSON.stringify(t)),t&&t.audio&&(t.audio=e(t.audio)),t&&"object"==typeof t.video){var a=t.video.facingMode;if(a=a&&("object"==typeof a?a:{ideal:a}),a&&("user"===a.exact||"environment"===a.exact||"user"===a.ideal||"environment"===a.ideal)&&(!navigator.mediaDevices.getSupportedConstraints||!navigator.mediaDevices.getSupportedConstraints().facingMode)&&(delete t.video.facingMode,"environment"===a.exact||"environment"===a.ideal))return navigator.mediaDevices.enumerateDevices().then(function(s){s=s.filter(function(e){return"videoinput"===e.kind});var o=s.find(function(e){return e.label.toLowerCase().indexOf("back")!==-1})||s.length&&s[s.length-1];return o&&(t.video.deviceId=a.exact?{exact:o.deviceId}:{ideal:o.deviceId}),t.video=e(t.video),r("chrome: "+JSON.stringify(t)),n(t)});t.video=e(t.video)}return r("chrome: "+JSON.stringify(t)),n(t)},n=function(e){return{name:{PermissionDeniedError:"NotAllowedError",ConstraintNotSatisfiedError:"OverconstrainedError"}[e.name]||e.name,message:e.message,constraint:e.constraintName,toString:function(){return this.name+(this.message&&": ")+this.message}}},a=function(e,r,a){t(e,function(e){navigator.webkitGetUserMedia(e,r,function(e){a(n(e))})})};navigator.getUserMedia=a;var s=function(e){return new Promise(function(t,n){navigator.getUserMedia(e,t,n)})};if(navigator.mediaDevices||(navigator.mediaDevices={getUserMedia:s,enumerateDevices:function(){return new Promise(function(e){var t={audio:"audioinput",video:"videoinput"};return MediaStreamTrack.getSources(function(n){e(n.map(function(e){return{label:e.label,kind:t[e.kind],deviceId:e.id,groupId:""}}))})})}}),navigator.mediaDevices.getUserMedia){var o=navigator.mediaDevices.getUserMedia.bind(navigator.mediaDevices);navigator.mediaDevices.getUserMedia=function(e){return t(e,function(e){return o(e).then(function(t){if(e.audio&&!t.getAudioTracks().length||e.video&&!t.getVideoTracks().length)throw t.getTracks().forEach(function(e){e.stop()}),new DOMException("","NotFoundError");return t},function(e){return Promise.reject(n(e))})})}}else navigator.mediaDevices.getUserMedia=function(e){return s(e)};"undefined"==typeof navigator.mediaDevices.addEventListener&&(navigator.mediaDevices.addEventListener=function(){r("Dummy mediaDevices.addEventListener called.")}),"undefined"==typeof navigator.mediaDevices.removeEventListener&&(navigator.mediaDevices.removeEventListener=function(){r("Dummy mediaDevices.removeEventListener called.")})}},{"../utils.js":"/stanza.io-8.0.2/node_modules/webrtc-adapter/src/js/utils.js"}],"/stanza.io-8.0.2/node_modules/webrtc-adapter/src/js/edge/edge_shim.js":[function(e,t,n){"use strict";var r=e("sdp"),a=e("../utils").browserDetails,s={shimPeerConnection:function(){if(window.RTCIceGatherer){window.RTCIceCandidate||(window.RTCIceCandidate=function(e){return e}),window.RTCSessionDescription||(window.RTCSessionDescription=function(e){return e});var e=Object.getOwnPropertyDescriptor(MediaStreamTrack.prototype,"enabled");Object.defineProperty(MediaStreamTrack.prototype,"enabled",{set:function(t){e.set.call(this,t);var n=new Event("enabled");n.enabled=t,this.dispatchEvent(n)}})}window.RTCPeerConnection=function(e){var t=this,n=document.createDocumentFragment();if(["addEventListener","removeEventListener","dispatchEvent"].forEach(function(e){t[e]=n[e].bind(n)}),this.onicecandidate=null,this.onaddstream=null,this.ontrack=null,this.onremovestream=null,this.onsignalingstatechange=null,this.oniceconnectionstatechange=null,this.onnegotiationneeded=null,this.ondatachannel=null,this.localStreams=[],this.remoteStreams=[],this.getLocalStreams=function(){return t.localStreams},this.getRemoteStreams=function(){return t.remoteStreams},this.localDescription=new RTCSessionDescription({type:"",sdp:""}),this.remoteDescription=new RTCSessionDescription({type:"",sdp:""}),this.signalingState="stable",this.iceConnectionState="new",this.iceGatheringState="new",this.iceOptions={gatherPolicy:"all",iceServers:[]},e&&e.iceTransportPolicy)switch(e.iceTransportPolicy){case"all":case"relay":this.iceOptions.gatherPolicy=e.iceTransportPolicy;break;case"none":throw new TypeError('iceTransportPolicy "none" not supported')}if(this.usingBundle=e&&"max-bundle"===e.bundlePolicy,e&&e.iceServers){var r=JSON.parse(JSON.stringify(e.iceServers));this.iceOptions.iceServers=r.filter(function(e){if(e&&e.urls){var t=e.urls;return"string"==typeof t&&(t=[t]),t=t.filter(function(e){return 0===e.indexOf("turn:")&&e.indexOf("transport=udp")!==-1&&e.indexOf("turn:[")===-1||0===e.indexOf("stun:")&&a.version>=14393})[0],!!t}return!1})}this._config=e,this.transceivers=[],this._localIceCandidatesBuffer=[]},window.RTCPeerConnection.prototype._emitBufferedCandidates=function(){var e=this,t=r.splitSections(e.localDescription.sdp);this._localIceCandidatesBuffer.forEach(function(n){var r=!n.candidate||0===Object.keys(n.candidate).length;if(r)for(var a=1;a<t.length;a++)t[a].indexOf("\r\na=end-of-candidates\r\n")===-1&&(t[a]+="a=end-of-candidates\r\n");else n.candidate.candidate.indexOf("typ endOfCandidates")===-1&&(t[n.candidate.sdpMLineIndex+1]+="a="+n.candidate.candidate+"\r\n");if(e.localDescription.sdp=t.join(""),e.dispatchEvent(n),null!==e.onicecandidate&&e.onicecandidate(n),!n.candidate&&"complete"!==e.iceGatheringState){var s=e.transceivers.every(function(e){return e.iceGatherer&&"completed"===e.iceGatherer.state});s&&(e.iceGatheringState="complete")}}),this._localIceCandidatesBuffer=[]},window.RTCPeerConnection.prototype.getConfiguration=function(){return this._config},window.RTCPeerConnection.prototype.addStream=function(e){var t=e.clone();e.getTracks().forEach(function(e,n){var r=t.getTracks()[n];e.addEventListener("enabled",function(e){r.enabled=e.enabled})}),this.localStreams.push(t),this._maybeFireNegotiationNeeded()},window.RTCPeerConnection.prototype.removeStream=function(e){var t=this.localStreams.indexOf(e);t>-1&&(this.localStreams.splice(t,1),this._maybeFireNegotiationNeeded())},window.RTCPeerConnection.prototype.getSenders=function(){return this.transceivers.filter(function(e){return!!e.rtpSender}).map(function(e){return e.rtpSender})},window.RTCPeerConnection.prototype.getReceivers=function(){return this.transceivers.filter(function(e){return!!e.rtpReceiver}).map(function(e){return e.rtpReceiver})},window.RTCPeerConnection.prototype._getCommonCapabilities=function(e,t){var n={codecs:[],headerExtensions:[],fecMechanisms:[]};return e.codecs.forEach(function(e){for(var r=0;r<t.codecs.length;r++){var a=t.codecs[r];if(e.name.toLowerCase()===a.name.toLowerCase()&&e.clockRate===a.clockRate){a.numChannels=Math.min(e.numChannels,a.numChannels),n.codecs.push(a),a.rtcpFeedback=a.rtcpFeedback.filter(function(t){for(var n=0;n<e.rtcpFeedback.length;n++)if(e.rtcpFeedback[n].type===t.type&&e.rtcpFeedback[n].parameter===t.parameter)return!0;return!1});break}}}),e.headerExtensions.forEach(function(e){for(var r=0;r<t.headerExtensions.length;r++){var a=t.headerExtensions[r];if(e.uri===a.uri){n.headerExtensions.push(a);break}}}),n},window.RTCPeerConnection.prototype._createIceAndDtlsTransports=function(e,t){var n=this,a=new RTCIceGatherer(n.iceOptions),s=new RTCIceTransport(a);a.onlocalcandidate=function(o){var i=new Event("icecandidate");i.candidate={sdpMid:e,sdpMLineIndex:t};var c=o.candidate,l=!c||0===Object.keys(c).length;l?(void 0===a.state&&(a.state="completed"),i.candidate.candidate="candidate:1 1 udp 1 0.0.0.0 9 typ endOfCandidates"):(c.component="RTCP"===s.component?2:1,i.candidate.candidate=r.writeCandidate(c));var u=r.splitSections(n.localDescription.sdp);i.candidate.candidate.indexOf("typ endOfCandidates")===-1?u[i.candidate.sdpMLineIndex+1]+="a="+i.candidate.candidate+"\r\n":u[i.candidate.sdpMLineIndex+1]+="a=end-of-candidates\r\n",n.localDescription.sdp=u.join("");var d=n.transceivers.every(function(e){return e.iceGatherer&&"completed"===e.iceGatherer.state});switch(n.iceGatheringState){case"new":n._localIceCandidatesBuffer.push(i),l&&d&&n._localIceCandidatesBuffer.push(new Event("icecandidate"));break;case"gathering":n._emitBufferedCandidates(),n.dispatchEvent(i),null!==n.onicecandidate&&n.onicecandidate(i),d&&(n.dispatchEvent(new Event("icecandidate")),null!==n.onicecandidate&&n.onicecandidate(new Event("icecandidate")),n.iceGatheringState="complete");break;case"complete":}},s.onicestatechange=function(){n._updateConnectionState()};var o=new RTCDtlsTransport(s);return o.ondtlsstatechange=function(){n._updateConnectionState()},o.onerror=function(){o.state="failed",n._updateConnectionState()},{iceGatherer:a,iceTransport:s,dtlsTransport:o}},window.RTCPeerConnection.prototype._transceive=function(e,t,n){var a=this._getCommonCapabilities(e.localCapabilities,e.remoteCapabilities);t&&e.rtpSender&&(a.encodings=e.sendEncodingParameters,a.rtcp={cname:r.localCName},e.recvEncodingParameters.length&&(a.rtcp.ssrc=e.recvEncodingParameters[0].ssrc),e.rtpSender.send(a)),n&&e.rtpReceiver&&("video"===e.kind&&e.recvEncodingParameters&&e.recvEncodingParameters.forEach(function(e){delete e.rtx}),a.encodings=e.recvEncodingParameters,a.rtcp={cname:e.cname},e.sendEncodingParameters.length&&(a.rtcp.ssrc=e.sendEncodingParameters[0].ssrc),e.rtpReceiver.receive(a))},window.RTCPeerConnection.prototype.setLocalDescription=function(e){var t,n,a=this;if("offer"===e.type)this._pendingOffer&&(t=r.splitSections(e.sdp),n=t.shift(),t.forEach(function(e,t){var n=r.parseRtpParameters(e);a._pendingOffer[t].localCapabilities=n}),this.transceivers=this._pendingOffer,delete this._pendingOffer);else if("answer"===e.type){t=r.splitSections(a.remoteDescription.sdp),n=t.shift();var s=r.matchPrefix(n,"a=ice-lite").length>0;t.forEach(function(e,t){var o=a.transceivers[t],i=o.iceGatherer,c=o.iceTransport,l=o.dtlsTransport,u=o.localCapabilities,d=o.remoteCapabilities,p="0"===e.split("\n",1)[0].split(" ",2)[1];if(!p&&!o.isDatachannel){var f=r.getIceParameters(e,n);if(s){var m=r.matchPrefix(e,"a=candidate:").map(function(e){return r.parseCandidate(e)}).filter(function(e){return"1"===e.component});m.length&&c.setRemoteCandidates(m)}var h=r.getDtlsParameters(e,n);s&&(h.role="server"),a.usingBundle&&0!==t||(c.start(i,f,s?"controlling":"controlled"),l.start(h));var b=a._getCommonCapabilities(u,d);a._transceive(o,b.codecs.length>0,!1)}})}switch(this.localDescription={type:e.type,sdp:e.sdp},e.type){case"offer":this._updateSignalingState("have-local-offer");break;case"answer":this._updateSignalingState("stable");break;default:throw new TypeError('unsupported type "'+e.type+'"')}var o=arguments.length>1&&"function"==typeof arguments[1];if(o){var i=arguments[1];window.setTimeout(function(){i(),"new"===a.iceGatheringState&&(a.iceGatheringState="gathering"),a._emitBufferedCandidates()},0)}var c=Promise.resolve();return c.then(function(){o||("new"===a.iceGatheringState&&(a.iceGatheringState="gathering"),window.setTimeout(a._emitBufferedCandidates.bind(a),500))}),c},window.RTCPeerConnection.prototype.setRemoteDescription=function(e){var t=this,n=new MediaStream,a=[],s=r.splitSections(e.sdp),o=s.shift(),i=r.matchPrefix(o,"a=ice-lite").length>0;switch(this.usingBundle=r.matchPrefix(o,"a=group:BUNDLE ").length>0,s.forEach(function(s,c){var l=r.splitLines(s),u=l[0].substr(2).split(" "),d=u[0],p="0"===u[1],f=r.getDirection(s,o),m=r.matchPrefix(s,"a=mid:");if(m=m.length?m[0].substr(6):r.generateIdentifier(),"application"===d&&"DTLS/SCTP"===u[2])return void(t.transceivers[c]={mid:m,isDatachannel:!0});var h,b,g,v,j,_,w,y,x,S,E,D,C=r.parseRtpParameters(s);p||(E=r.getIceParameters(s,o),D=r.getDtlsParameters(s,o),D.role="client"),y=r.parseRtpEncodingParameters(s);var T,U=r.matchPrefix(s,"a=ssrc:").map(function(e){return r.parseSsrcMedia(e)}).filter(function(e){return"cname"===e.attribute})[0];U&&(T=U.value);var R=r.matchPrefix(s,"a=end-of-candidates",o).length>0,O=r.matchPrefix(s,"a=candidate:").map(function(e){return r.parseCandidate(e)}).filter(function(e){return"1"===e.component});if("offer"!==e.type||p)"answer"!==e.type||p||(h=t.transceivers[c],b=h.iceGatherer,g=h.iceTransport,v=h.dtlsTransport,j=h.rtpSender,_=h.rtpReceiver,w=h.sendEncodingParameters,x=h.localCapabilities,t.transceivers[c].recvEncodingParameters=y,t.transceivers[c].remoteCapabilities=C,t.transceivers[c].cname=T,(i||R)&&O.length&&g.setRemoteCandidates(O),t.usingBundle&&0!==c||(g.start(b,E,"controlling"),v.start(D)),t._transceive(h,"sendrecv"===f||"recvonly"===f,"sendrecv"===f||"sendonly"===f),!_||"sendrecv"!==f&&"sendonly"!==f?delete h.rtpReceiver:(S=_.track,a.push([S,_]),n.addTrack(S)));else{var A=t.usingBundle&&c>0?{iceGatherer:t.transceivers[0].iceGatherer,iceTransport:t.transceivers[0].iceTransport,dtlsTransport:t.transceivers[0].dtlsTransport}:t._createIceAndDtlsTransports(m,c);if(R&&A.iceTransport.setRemoteCandidates(O),x=RTCRtpReceiver.getCapabilities(d),x.codecs=x.codecs.filter(function(e){return"rtx"!==e.name}),w=[{ssrc:1001*(2*c+2)}],_=new RTCRtpReceiver(A.dtlsTransport,d),S=_.track,a.push([S,_]),n.addTrack(S),t.localStreams.length>0&&t.localStreams[0].getTracks().length>=c){var N;"audio"===d?N=t.localStreams[0].getAudioTracks()[0]:"video"===d&&(N=t.localStreams[0].getVideoTracks()[0]),N&&(j=new RTCRtpSender(N,A.dtlsTransport))}t.transceivers[c]={iceGatherer:A.iceGatherer,iceTransport:A.iceTransport,dtlsTransport:A.dtlsTransport,localCapabilities:x,remoteCapabilities:C,rtpSender:j,rtpReceiver:_,kind:d,mid:m,cname:T,sendEncodingParameters:w,recvEncodingParameters:y},t._transceive(t.transceivers[c],!1,"sendrecv"===f||"sendonly"===f)}}),this.remoteDescription={type:e.type,sdp:e.sdp},e.type){case"offer":this._updateSignalingState("have-remote-offer");break;case"answer":this._updateSignalingState("stable");break;default:throw new TypeError('unsupported type "'+e.type+'"')}return n.getTracks().length&&(t.remoteStreams.push(n),window.setTimeout(function(){var e=new Event("addstream");e.stream=n,t.dispatchEvent(e),null!==t.onaddstream&&window.setTimeout(function(){t.onaddstream(e)},0),a.forEach(function(r){var a=r[0],s=r[1],o=new Event("track");o.track=a,o.receiver=s,o.streams=[n],t.dispatchEvent(e),null!==t.ontrack&&window.setTimeout(function(){t.ontrack(o)},0)})},0)),arguments.length>1&&"function"==typeof arguments[1]&&window.setTimeout(arguments[1],0),Promise.resolve()},window.RTCPeerConnection.prototype.close=function(){this.transceivers.forEach(function(e){e.iceTransport&&e.iceTransport.stop(),e.dtlsTransport&&e.dtlsTransport.stop(),e.rtpSender&&e.rtpSender.stop(),e.rtpReceiver&&e.rtpReceiver.stop()}),this._updateSignalingState("closed")},window.RTCPeerConnection.prototype._updateSignalingState=function(e){this.signalingState=e;var t=new Event("signalingstatechange");this.dispatchEvent(t),null!==this.onsignalingstatechange&&this.onsignalingstatechange(t)},window.RTCPeerConnection.prototype._maybeFireNegotiationNeeded=function(){var e=new Event("negotiationneeded");this.dispatchEvent(e),null!==this.onnegotiationneeded&&this.onnegotiationneeded(e)},window.RTCPeerConnection.prototype._updateConnectionState=function(){var e,t=this,n={new:0,closed:0,connecting:0,checking:0,connected:0,completed:0,failed:0};if(this.transceivers.forEach(function(e){n[e.iceTransport.state]++,n[e.dtlsTransport.state]++}),n.connected+=n.completed,e="new",n.failed>0?e="failed":n.connecting>0||n.checking>0?e="connecting":n.disconnected>0?e="disconnected":n.new>0?e="new":(n.connected>0||n.completed>0)&&(e="connected"),e!==t.iceConnectionState){t.iceConnectionState=e;var r=new Event("iceconnectionstatechange");this.dispatchEvent(r),null!==this.oniceconnectionstatechange&&this.oniceconnectionstatechange(r)}},window.RTCPeerConnection.prototype.createOffer=function(){var e=this;if(this._pendingOffer)throw new Error("createOffer called while there is a pending offer.");var t;1===arguments.length&&"function"!=typeof arguments[0]?t=arguments[0]:3===arguments.length&&(t=arguments[2]);var n=[],a=0,s=0;if(this.localStreams.length&&(a=this.localStreams[0].getAudioTracks().length,s=this.localStreams[0].getVideoTracks().length),t){if(t.mandatory||t.optional)throw new TypeError("Legacy mandatory/optional constraints not supported.");void 0!==t.offerToReceiveAudio&&(a=t.offerToReceiveAudio),void 0!==t.offerToReceiveVideo&&(s=t.offerToReceiveVideo)}for(this.localStreams.length&&this.localStreams[0].getTracks().forEach(function(e){n.push({kind:e.kind,track:e,wantReceive:"audio"===e.kind?a>0:s>0}),"audio"===e.kind?a--:"video"===e.kind&&s--});a>0||s>0;)a>0&&(n.push({kind:"audio",wantReceive:!0}),a--),s>0&&(n.push({kind:"video",wantReceive:!0}),s--);var o=r.writeSessionBoilerplate(),i=[];n.forEach(function(t,n){var a=t.track,s=t.kind,o=r.generateIdentifier(),c=e.usingBundle&&n>0?{iceGatherer:i[0].iceGatherer,iceTransport:i[0].iceTransport,dtlsTransport:i[0].dtlsTransport}:e._createIceAndDtlsTransports(o,n),l=RTCRtpSender.getCapabilities(s);l.codecs=l.codecs.filter(function(e){return"rtx"!==e.name}),l.codecs.forEach(function(e){"H264"===e.name&&void 0===e.parameters["level-asymmetry-allowed"]&&(e.parameters["level-asymmetry-allowed"]="1")});var u,d,p=[{ssrc:1001*(2*n+1)}];a&&(u=new RTCRtpSender(a,c.dtlsTransport)),t.wantReceive&&(d=new RTCRtpReceiver(c.dtlsTransport,s)),i[n]={iceGatherer:c.iceGatherer,iceTransport:c.iceTransport,dtlsTransport:c.dtlsTransport,localCapabilities:l,remoteCapabilities:null,rtpSender:u,rtpReceiver:d,kind:s,mid:o,sendEncodingParameters:p,recvEncodingParameters:null}}),this.usingBundle&&(o+="a=group:BUNDLE "+i.map(function(e){return e.mid}).join(" ")+"\r\n"),n.forEach(function(t,n){var a=i[n];o+=r.writeMediaSection(a,a.localCapabilities,"offer",e.localStreams[0])}),this._pendingOffer=i;var c=new RTCSessionDescription({type:"offer",sdp:o});return arguments.length&&"function"==typeof arguments[0]&&window.setTimeout(arguments[0],0,c),Promise.resolve(c)},window.RTCPeerConnection.prototype.createAnswer=function(){var e=this,t=r.writeSessionBoilerplate();this.usingBundle&&(t+="a=group:BUNDLE "+this.transceivers.map(function(e){return e.mid}).join(" ")+"\r\n"),this.transceivers.forEach(function(n){if(n.isDatachannel)return void(t+="m=application 0 DTLS/SCTP 5000\r\nc=IN IP4 0.0.0.0\r\na=mid:"+n.mid+"\r\n");var a=e._getCommonCapabilities(n.localCapabilities,n.remoteCapabilities);t+=r.writeMediaSection(n,a,"answer",e.localStreams[0])});var n=new RTCSessionDescription({type:"answer",sdp:t});return arguments.length&&"function"==typeof arguments[0]&&window.setTimeout(arguments[0],0,n),Promise.resolve(n)},window.RTCPeerConnection.prototype.addIceCandidate=function(e){if(e){var t=e.sdpMLineIndex;if(e.sdpMid)for(var n=0;n<this.transceivers.length;n++)if(this.transceivers[n].mid===e.sdpMid){t=n;break}var a=this.transceivers[t];if(a){var s=Object.keys(e.candidate).length>0?r.parseCandidate(e.candidate):{};if("tcp"===s.protocol&&(0===s.port||9===s.port))return;if("1"!==s.component)return;"endOfCandidates"===s.type&&(s={}),a.iceTransport.addRemoteCandidate(s);var o=r.splitSections(this.remoteDescription.sdp);o[t+1]+=(s.type?e.candidate.trim():"a=end-of-candidates")+"\r\n",this.remoteDescription.sdp=o.join("")}}else this.transceivers.forEach(function(e){e.iceTransport.addRemoteCandidate({})});return arguments.length>1&&"function"==typeof arguments[1]&&window.setTimeout(arguments[1],0),Promise.resolve()},window.RTCPeerConnection.prototype.getStats=function(){var e=[];this.transceivers.forEach(function(t){["rtpSender","rtpReceiver","iceGatherer","iceTransport","dtlsTransport"].forEach(function(n){t[n]&&e.push(t[n].getStats())})});var t=arguments.length>1&&"function"==typeof arguments[1]&&arguments[1];return new Promise(function(n){var r=new Map;Promise.all(e).then(function(e){e.forEach(function(e){Object.keys(e).forEach(function(t){r.set(t,e[t]),r[t]=e[t]})}),t&&window.setTimeout(t,0,r),n(r)})})}}};t.exports={shimPeerConnection:s.shimPeerConnection,shimGetUserMedia:e("./getusermedia")}},{"../utils":"/stanza.io-8.0.2/node_modules/webrtc-adapter/src/js/utils.js","./getusermedia":"/stanza.io-8.0.2/node_modules/webrtc-adapter/src/js/edge/getusermedia.js",sdp:"/stanza.io-8.0.2/node_modules/sdp/sdp.js"}],"/stanza.io-8.0.2/node_modules/webrtc-adapter/src/js/edge/getusermedia.js":[function(e,t,n){arguments[4]["/stanza.io-8.0.2/node_modules/traceablepeerconnection/node_modules/webrtc-adapter/src/js/edge/getusermedia.js"][0].apply(n,arguments)},{}],"/stanza.io-8.0.2/node_modules/webrtc-adapter/src/js/firefox/firefox_shim.js":[function(e,t,n){"use strict";var r=e("../utils").browserDetails,a={shimOnTrack:function(){"object"!=typeof window||!window.RTCPeerConnection||"ontrack"in window.RTCPeerConnection.prototype||Object.defineProperty(window.RTCPeerConnection.prototype,"ontrack",{get:function(){return this._ontrack},set:function(e){this._ontrack&&(this.removeEventListener("track",this._ontrack),this.removeEventListener("addstream",this._ontrackpoly)),this.addEventListener("track",this._ontrack=e),this.addEventListener("addstream",this._ontrackpoly=function(e){e.stream.getTracks().forEach(function(t){var n=new Event("track");n.track=t,n.receiver={track:t},n.streams=[e.stream],this.dispatchEvent(n)}.bind(this))}.bind(this))}})},shimSourceObject:function(){"object"==typeof window&&(!window.HTMLMediaElement||"srcObject"in window.HTMLMediaElement.prototype||Object.defineProperty(window.HTMLMediaElement.prototype,"srcObject",{get:function(){return this.mozSrcObject},set:function(e){this.mozSrcObject=e}}))},shimPeerConnection:function(){if("object"==typeof window&&(window.RTCPeerConnection||window.mozRTCPeerConnection)){window.RTCPeerConnection||(window.RTCPeerConnection=function(e,t){if(r.version<38&&e&&e.iceServers){for(var n=[],a=0;a<e.iceServers.length;a++){var s=e.iceServers[a];if(s.hasOwnProperty("urls"))for(var o=0;o<s.urls.length;o++){var i={url:s.urls[o]};0===s.urls[o].indexOf("turn")&&(i.username=s.username,i.credential=s.credential),n.push(i)}else n.push(e.iceServers[a])}e.iceServers=n}return new mozRTCPeerConnection(e,t)},window.RTCPeerConnection.prototype=mozRTCPeerConnection.prototype,mozRTCPeerConnection.generateCertificate&&Object.defineProperty(window.RTCPeerConnection,"generateCertificate",{get:function(){return mozRTCPeerConnection.generateCertificate}}),window.RTCSessionDescription=mozRTCSessionDescription,window.RTCIceCandidate=mozRTCIceCandidate),["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(e){var t=RTCPeerConnection.prototype[e];RTCPeerConnection.prototype[e]=function(){return arguments[0]=new("addIceCandidate"===e?RTCIceCandidate:RTCSessionDescription)(arguments[0]),t.apply(this,arguments)}});var e=RTCPeerConnection.prototype.addIceCandidate;if(RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?e.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())},r.version<48){var t=function(e){var t=new Map;return Object.keys(e).forEach(function(n){t.set(n,e[n]),t[n]=e[n]}),t},n=RTCPeerConnection.prototype.getStats;RTCPeerConnection.prototype.getStats=function(e,r,a){return n.apply(this,[e||null]).then(function(e){return t(e)}).then(r,a)}}}}};t.exports={shimOnTrack:a.shimOnTrack,shimSourceObject:a.shimSourceObject,shimPeerConnection:a.shimPeerConnection,shimGetUserMedia:e("./getusermedia")}},{"../utils":"/stanza.io-8.0.2/node_modules/webrtc-adapter/src/js/utils.js","./getusermedia":"/stanza.io-8.0.2/node_modules/webrtc-adapter/src/js/firefox/getusermedia.js"}],"/stanza.io-8.0.2/node_modules/webrtc-adapter/src/js/firefox/getusermedia.js":[function(e,t,n){"use strict";var r=e("../utils").log,a=e("../utils").browserDetails;t.exports=function(){var e=function(e){return{name:{SecurityError:"NotAllowedError",PermissionDeniedError:"NotAllowedError"}[e.name]||e.name,message:{"The operation is insecure.":"The request is not allowed by the user agent or the platform in the current context."}[e.message]||e.message,constraint:e.constraint,toString:function(){return this.name+(this.message&&": ")+this.message}}},t=function(t,n,s){var o=function(e){if("object"!=typeof e||e.require)return e; | |
var t=[];return Object.keys(e).forEach(function(n){if("require"!==n&&"advanced"!==n&&"mediaSource"!==n){var r=e[n]="object"==typeof e[n]?e[n]:{ideal:e[n]};if(void 0===r.min&&void 0===r.max&&void 0===r.exact||t.push(n),void 0!==r.exact&&("number"==typeof r.exact?r.min=r.max=r.exact:e[n]=r.exact,delete r.exact),void 0!==r.ideal){e.advanced=e.advanced||[];var a={};"number"==typeof r.ideal?a[n]={min:r.ideal,max:r.ideal}:a[n]=r.ideal,e.advanced.push(a),delete r.ideal,Object.keys(r).length||delete e[n]}}}),t.length&&(e.require=t),e};return t=JSON.parse(JSON.stringify(t)),a.version<38&&(r("spec: "+JSON.stringify(t)),t.audio&&(t.audio=o(t.audio)),t.video&&(t.video=o(t.video)),r("ff37: "+JSON.stringify(t))),navigator.mozGetUserMedia(t,n,function(t){s(e(t))})},n=function(e){return new Promise(function(n,r){t(e,n,r)})};if(navigator.mediaDevices||(navigator.mediaDevices={getUserMedia:n,addEventListener:function(){},removeEventListener:function(){}}),navigator.mediaDevices.enumerateDevices=navigator.mediaDevices.enumerateDevices||function(){return new Promise(function(e){var t=[{kind:"audioinput",deviceId:"default",label:"",groupId:""},{kind:"videoinput",deviceId:"default",label:"",groupId:""}];e(t)})},a.version<41){var s=navigator.mediaDevices.enumerateDevices.bind(navigator.mediaDevices);navigator.mediaDevices.enumerateDevices=function(){return s().then(void 0,function(e){if("NotFoundError"===e.name)return[];throw e})}}if(a.version<49){var o=navigator.mediaDevices.getUserMedia.bind(navigator.mediaDevices);navigator.mediaDevices.getUserMedia=function(t){return o(t).then(function(e){if(t.audio&&!e.getAudioTracks().length||t.video&&!e.getVideoTracks().length)throw e.getTracks().forEach(function(e){e.stop()}),new DOMException("The object can not be found here.","NotFoundError");return e},function(t){return Promise.reject(e(t))})}}navigator.getUserMedia=function(e,n,r){return a.version<44?t(e,n,r):(console.warn("navigator.getUserMedia has been replaced by navigator.mediaDevices.getUserMedia"),void navigator.mediaDevices.getUserMedia(e).then(n,r))}}},{"../utils":"/stanza.io-8.0.2/node_modules/webrtc-adapter/src/js/utils.js"}],"/stanza.io-8.0.2/node_modules/webrtc-adapter/src/js/safari/safari_shim.js":[function(e,t,n){"use strict";var r={shimGetUserMedia:function(){navigator.getUserMedia=navigator.webkitGetUserMedia}};t.exports={shimGetUserMedia:r.shimGetUserMedia}},{}],"/stanza.io-8.0.2/node_modules/webrtc-adapter/src/js/utils.js":[function(e,t,n){"use strict";var r=!0,a={disableLog:function(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(r=e,e?"adapter.js logging disabled":"adapter.js logging enabled")},log:function(){if("object"==typeof window){if(r)return;"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,arguments)}},extractVersion:function(e,t,n){var r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)},detectBrowser:function(){var e={};if(e.browser=null,e.version=null,"undefined"==typeof window||!window.navigator)return e.browser="Not a browser.",e;if(navigator.mozGetUserMedia)e.browser="firefox",e.version=this.extractVersion(navigator.userAgent,/Firefox\/([0-9]+)\./,1);else if(navigator.webkitGetUserMedia)if(window.webkitRTCPeerConnection)e.browser="chrome",e.version=this.extractVersion(navigator.userAgent,/Chrom(e|ium)\/([0-9]+)\./,2);else{if(!navigator.userAgent.match(/Version\/(\d+).(\d+)/))return e.browser="Unsupported webkit-based browser with GUM support but no WebRTC support.",e;e.browser="safari",e.version=this.extractVersion(navigator.userAgent,/AppleWebKit\/([0-9]+)\./,1)}else{if(!navigator.mediaDevices||!navigator.userAgent.match(/Edge\/(\d+).(\d+)$/))return e.browser="Not a supported browser.",e;e.browser="edge",e.version=this.extractVersion(navigator.userAgent,/Edge\/(\d+).(\d+)$/,2)}return e}};t.exports={log:a.log,disableLog:a.disableLog,browserDetails:a.detectBrowser(),extractVersion:a.extractVersion}},{}],"/stanza.io-8.0.2/node_modules/webrtcsupport/index-browser.js":[function(e,t,n){var r,a;window.mozRTCPeerConnection||navigator.mozGetUserMedia?(r="moz",a=parseInt(navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1],10)):(window.webkitRTCPeerConnection||navigator.webkitGetUserMedia)&&(r="webkit",a=navigator.userAgent.match(/Chrom(e|ium)/)&&parseInt(navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)[2],10));var s=window.mozRTCPeerConnection||window.webkitRTCPeerConnection,o=window.mozRTCIceCandidate||window.RTCIceCandidate,i=window.mozRTCSessionDescription||window.RTCSessionDescription,c=window.webkitMediaStream||window.MediaStream,l="https:"===window.location.protocol&&("webkit"===r&&a>=26||"moz"===r&&a>=33),u=window.AudioContext||window.webkitAudioContext,d=document.createElement("video"),p=d&&d.canPlayType&&"probably"===d.canPlayType('video/webm; codecs="vp8", vorbis'),f=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.msGetUserMedia||navigator.mozGetUserMedia;t.exports={prefix:r,browserVersion:a,support:!!s&&p&&!!f,supportRTCPeerConnection:!!s,supportVp8:p,supportGetUserMedia:!!f,supportDataChannel:!!(s&&s.prototype&&s.prototype.createDataChannel),supportWebAudio:!(!u||!u.prototype.createMediaStreamSource),supportMediaStream:!(!c||!c.prototype.removeTrack),supportScreenSharing:!!l,dataChannel:!!(s&&s.prototype&&s.prototype.createDataChannel),webAudio:!(!u||!u.prototype.createMediaStreamSource),mediaStream:!(!c||!c.prototype.removeTrack),screenSharing:!!l,AudioContext:u,PeerConnection:s,SessionDescription:i,IceCandidate:o,MediaStream:c,getUserMedia:f}},{}],"/stanza.io-8.0.2/node_modules/wildemitter/wildemitter.js":[function(e,t,n){function WildEmitter(){}t.exports=WildEmitter,WildEmitter.mixin=function(e){var t=e.prototype||e;t.isWildEmitter=!0,t.on=function(e,t,n){this.callbacks=this.callbacks||{};var r=3===arguments.length,a=r?arguments[1]:void 0,s=r?arguments[2]:arguments[1];return s._groupName=a,(this.callbacks[e]=this.callbacks[e]||[]).push(s),this},t.once=function(e,t,n){function on(){r.off(e,on),o.apply(this,arguments)}var r=this,a=3===arguments.length,s=a?arguments[1]:void 0,o=a?arguments[2]:arguments[1];return this.on(e,s,on),this},t.releaseGroup=function(e){this.callbacks=this.callbacks||{};var t,n,r,a;for(t in this.callbacks)for(a=this.callbacks[t],n=0,r=a.length;n<r;n++)a[n]._groupName===e&&(a.splice(n,1),n--,r--);return this},t.off=function(e,t){this.callbacks=this.callbacks||{};var n,r=this.callbacks[e];return r?1===arguments.length?(delete this.callbacks[e],this):(n=r.indexOf(t),r.splice(n,1),0===r.length&&delete this.callbacks[e],this):this},t.emit=function(e){this.callbacks=this.callbacks||{};var t,n,r,a=[].slice.call(arguments,1),s=this.callbacks[e],o=this.getWildcardCallbacks(e);if(s)for(r=s.slice(),t=0,n=r.length;t<n&&r[t];++t)r[t].apply(this,a);if(o)for(n=o.length,r=o.slice(),t=0,n=r.length;t<n&&r[t];++t)r[t].apply(this,[e].concat(a));return this},t.getWildcardCallbacks=function(e){this.callbacks=this.callbacks||{};var t,n,r=[];for(t in this.callbacks)n=t.split("*"),("*"===t||2===n.length&&e.slice(0,n[0].length)===n[0])&&(r=r.concat(this.callbacks[t]));return r}},WildEmitter.mixin(WildEmitter)},{}],"/stanza.io-8.0.2/node_modules/xhr/index.js":[function(e,t,n){"use strict";function forEachArray(e,t){for(var n=0;n<e.length;n++)t(e[n])}function isEmpty(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function initParams(e,t,n){var r=e;return a(t)?(n=t,"string"==typeof e&&(r={uri:e})):r=o(t,{uri:e}),r.callback=n,r}function createXHR(e,t,n){return t=initParams(e,t,n),_createXHR(t)}function _createXHR(e){function readystatechange(){4===r.readyState&&loadFunc()}function getBody(){var e=void 0;if(e=r.response?r.response:r.responseText||getXml(r),f)try{e=JSON.parse(e)}catch(e){}return e}function errorFunc(e){return clearTimeout(i),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,m)}function loadFunc(){if(!o){var t;clearTimeout(i),t=e.useXDR&&void 0===r.status?200:1223===r.status?204:r.status;var a=m,u=null;return 0!==t?(a={body:getBody(),statusCode:t,method:l,headers:{},url:c,rawRequest:r},r.getAllResponseHeaders&&(a.headers=s(r.getAllResponseHeaders()))):u=new Error("Internal XMLHttpRequest Error"),n(u,a,a.body)}}if("undefined"==typeof e.callback)throw new Error("callback argument missing");var t=!1,n=function cbOnce(n,r,a){t||(t=!0,e.callback(n,r,a))},r=e.xhr||null;r||(r=e.cors||e.useXDR?new createXHR.XDomainRequest:new createXHR.XMLHttpRequest);var a,o,i,c=r.url=e.uri||e.url,l=r.method=e.method||"GET",u=e.body||e.data,d=r.headers=e.headers||{},p=!!e.sync,f=!1,m={body:void 0,headers:{},statusCode:0,method:l,url:c,rawRequest:r};if("json"in e&&e.json!==!1&&(f=!0,d.accept||d.Accept||(d.Accept="application/json"),"GET"!==l&&"HEAD"!==l&&(d["content-type"]||d["Content-Type"]||(d["Content-Type"]="application/json"),u=JSON.stringify(e.json===!0?u:e.json))),r.onreadystatechange=readystatechange,r.onload=loadFunc,r.onerror=errorFunc,r.onprogress=function(){},r.onabort=function(){o=!0},r.ontimeout=errorFunc,r.open(l,c,!p,e.username,e.password),p||(r.withCredentials=!!e.withCredentials),!p&&e.timeout>0&&(i=setTimeout(function(){if(!o){o=!0,r.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",errorFunc(e)}},e.timeout)),r.setRequestHeader)for(a in d)d.hasOwnProperty(a)&&r.setRequestHeader(a,d[a]);else if(e.headers&&!isEmpty(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(r.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(r),r.send(u||null),r}function getXml(e){if("document"===e.responseType)return e.responseXML;var t=204===e.status&&e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;return""!==e.responseType||t?null:e.responseXML}function noop(){}var r=e("global/window"),a=e("is-function"),s=e("parse-headers"),o=e("xtend");t.exports=createXHR,createXHR.XMLHttpRequest=r.XMLHttpRequest||noop,createXHR.XDomainRequest="withCredentials"in new createXHR.XMLHttpRequest?createXHR.XMLHttpRequest:r.XDomainRequest,forEachArray(["get","put","post","patch","head","delete"],function(e){createXHR["delete"===e?"del":e]=function(t,n,r){return n=initParams(t,n,r),n.method=e.toUpperCase(),_createXHR(n)}})},{"global/window":"/stanza.io-8.0.2/node_modules/global/window.js","is-function":"/stanza.io-8.0.2/node_modules/is-function/index.js","parse-headers":"/stanza.io-8.0.2/node_modules/parse-headers/parse-headers.js",xtend:"/stanza.io-8.0.2/node_modules/xtend/immutable.js"}],"/stanza.io-8.0.2/node_modules/xmpp-constants/index.js":[function(e,t,n){t.exports={Namespace:e("./lib/namespaces"),MUC:e("./lib/muc"),PubSub:e("./lib/pubsub"),Jingle:e("./lib/jingle"),Presence:e("./lib/presence")}},{"./lib/jingle":"/stanza.io-8.0.2/node_modules/xmpp-constants/lib/jingle.js","./lib/muc":"/stanza.io-8.0.2/node_modules/xmpp-constants/lib/muc.js","./lib/namespaces":"/stanza.io-8.0.2/node_modules/xmpp-constants/lib/namespaces.js","./lib/presence":"/stanza.io-8.0.2/node_modules/xmpp-constants/lib/presence.js","./lib/pubsub":"/stanza.io-8.0.2/node_modules/xmpp-constants/lib/pubsub.js"}],"/stanza.io-8.0.2/node_modules/xmpp-constants/lib/jingle.js":[function(e,t,n){t.exports={Action:{CONTENT_ACCEPT:"content-accept",CONTENT_ADD:"content-add",CONTENT_MODIFY:"content-modify",CONTENT_REJECT:"content-reject",CONTENT_REMOVE:"content-remove",DESCRIPTION_INFO:"description-info",SECURITY_INFO:"security-info",SESSION_ACCEPT:"session-accept",SESSION_INFO:"session-info",SESSION_INITIATE:"session-initiate",SESSION_TERMINATE:"session-terminate",TRANSPORT_ACCEPT:"transport-accept",TRANSPORT_INFO:"transport-info",TRANSPORT_REJECT:"transport-reject",TRANSPORT_REPLACE:"transport-replace"},Reason:{ALTERNATIVE_SESSION:"alernative-session",BUSY:"busy",CANCEL:"cancel",CONNECTIVITY_ERROR:"connectivity-error",DECLINE:"decline",EXPIRED:"expired",FAILED_APPLICATION:"failed-application",FAILED_TRANSPORT:"failed-transport",GENERAL_ERROR:"general-error",GONE:"gone",INCOMPATIBLE_PARAMETERS:"incompatible-parameters",MEDIA_ERROR:"media-error",SECURITY_ERROR:"security-error",SUCCESS:"success",TIMEOUT:"timeout",UNSUPPORTED_APPLICATIONS:"unsupported-applications",UNSUPPORTED_TRANSPORTS:"unsupported-transports"},Condition:{OUT_OF_ORDER:"out-of-order",TIE_BREAK:"tie-break",UNKNOWN_SESSION:"unknown-session",UNSUPPORTED_INFO:"unsupported-info"}}},{}],"/stanza.io-8.0.2/node_modules/xmpp-constants/lib/muc.js":[function(e,t,n){t.exports={Status:{REALJID_PUBLIC:"100",AFFILIATION_CHANGED:"101",UNAVAILABLE_SHOWN:"102",UNAVAILABLE_NOT_SHOWN:"103",CONFIGURATION_CHANGED:"104",SELF_PRESENCE:"110",LOGGING_ENABLED:"170",LOGGING_DISABLED:"171",NON_ANONYMOUS:"172",SEMI_ANONYMOUS:"173",FULLY_ANONYMOUS:"174",ROOM_CREATED:"201",NICK_ASSIGNED:"210",BANNED:"301",NEW_NICK:"303",KICKED:"307",REMOVED_AFFILIATION:"321",REMOVED_MEMBERSHIP:"322",REMOVED_SHUTDOWN:"332"},Affiliation:{ADMIN:"admin",MEMBER:"member",NONE:"none",OUTCAST:"outcast",OWNER:"owner"},Role:{MODERATOR:"moderator",NONE:"none",PARTICIPANT:"participant",VISITOR:"visitor"}}},{}],"/stanza.io-8.0.2/node_modules/xmpp-constants/lib/namespaces.js":[function(e,t,n){t.exports={BIND:"urn:ietf:params:xml:ns:xmpp-bind",CLIENT:"jabber:client",SASL:"urn:ietf:params:xml:ns:xmpp-sasl",SERVER:"jabber:server",SESSION:"urn:ietf:params:xml:ns:xmpp-session",STANZA_ERROR:"urn:ietf:params:xml:ns:xmpp-stanzas",STREAM:"http://etherx.jabber.org/streams",STREAM_ERROR:"urn:ietf:params:xml:ns:xmpp-streams",ROSTER:"jabber:iq:roster",ROSTER_VERSIONING:"urn:xmpp:features:rosterver",SUBSCRIPTION_PREAPPROVAL:"urn:xmpp:features:pre-approval",FRAMING:"urn:ietf:params:xml:ns:xmpp-framing",DATAFORM:"jabber:x:data",RPC:"jabber:iq:rpc",LAST_ACTIVITY:"jabber:iq:last",PRIVACY:"jabber:iq:privacy",DISCO_INFO:"http://jabber.org/protocol/disco#info",DISCO_ITEMS:"http://jabber.org/protocol/disco#items",ADDRESS:"http://jabber.org/protocol/address",MUC:"http://jabber.org/protocol/muc",MUC_ADMIN:"http://jabber.org/protocol/muc#admin",MUC_OWNER:"http://jabber.org/protocol/muc#owner",MUC_USER:"http://jabber.org/protocol/muc#user",IBB:"http://jabber.org/protocol/ibb",BOOKMARKS:"storage:bookmarks",PRIVATE:"jabber:iq:private",ADHOC_COMMANDS:"http://jabber.org/protocol/commands",VCARD_TEMP:"vcard-temp",SEARCH:"jabber:iq:search",RSM:"http://jabber.org/protocol/rsm",PUBSUB:"http://jabber.org/protocol/pubsub",PUBSUB_ERRORS:"http://jabber.org/protocol/pubsub#errors",PUBSUB_EVENT:"http://jabber.org/protocol/pubsub#event",PUBSUB_OWNER:"http://jabber.org/protocol/pubsub#owner",SOCKS5:"http://jabber.org/protocol/bytestreams",OOB:"jabber:x:oob",HTTP_AUTH:"http://jabber.org/protocol/http-auth",XHTML_IM:"http://jabber.org/protocol/xhtml-im",REGISTER:"jabber:iq:register",AMP:"http://jabber.org/protocol/amp",GEOLOC:"http://jabber.org/protocol/geoloc",ROSTER_DELIMITER:"roster:delimiter",AVATAR_DATA:"urn:xmpp:avatar:data",AVATAR_METADATA:"urn:xmpp:avatar:metadata",CHAT_STATES:"http://jabber.org/protocol/chatstates",VERSION:"jabber:iq:version",MOOD:"http://jabber.org/protocol/mood",ACTIVITY:"http://jabber.org/protocol/activity",COMPONENT:"jabber:component:accept",CAPS:"http://jabber.org/protocol/caps",TUNE:"http://jabber.org/protocol/tune",DATAFORM_VALIDATION:"http://jabber.org/protocol/xdata-validate",BOSH:"http://jabber.org/protocol/httpbind",SHIM:"http://jabber.org/protocol/shim",COMPRESSION:"http://jabber.org/features/compress",DATAFORM_LAYOUT:"http://jabber.org/protocol/xdata-layout",ROSTER_EXCHANGE:"http://jabber.org/protocol/rosterx",ROSTER_NOTES:"storage:rosternotes",REACH_0:"urn:xmpp:reach:0",VCARD_TEMP_UPDATE:"vcard-temp:x:update",CAPTCHA:"urn:xmpp:captcha",JINGLE_1:"urn:xmpp:jingle:1",JINGLE_ERRORS_1:"urn:xmpp:jingle:errors:1",JINGLE_RTP_1:"urn:xmpp:jingle:apps:rtp:1",JINGLE_RTP_ERRORS_1:"urn:xmpp:jingle:apps:rtp:errors:1",JINGLE_RTP_INFO_1:"urn:xmpp:jingle:apps:rtp:info:1",LANG_TRANS:"urn:xmpp:langtrans",LANG_TRANS_ITEMS:"urn:xmpp:langtrans:items",NICK:"http://jabber.org/protocol/nick",JINGLE_ICE_UDP_1:"urn:xmpp:jingle:transports:ice-udp:1",JINGLE_RAW_UDP_1:"urn:xmpp:jingle:transports:raw-udp:1",RECEIPTS:"urn:xmpp:receipts",INVISIBLE_0:"urn:xmpp:invisible:0",BLOCKING:"urn:xmpp:blocking",SMACKS_3:"urn:xmpp:sm:3",PING:"urn:xmpp:ping",TIME:"urn:xmpp:time",DELAY:"urn:xmpp:delay",BOSH_XMPP:"urn:xmpp:xbosh",DISCO_EXTERNAL_1:"urn:xmpp:extdisco:1",DATAFORM_MEDIA:"urn:xmpp:media-element",ATTENTION_0:"urn:xmpp:attention:0",BOB:"urn:xmpp:bob",FILE_TRANSFER_3:"urn:xmpp:jingle:apps:file-transfer:3",FILE_TRANSFER_4:"urn:xmpp:jingle:apps:file-transfer:4",MUC_DIRECT_INVITE:"jabber:x:conference",SEC_LABEL_0:"urn:xmpp:sec-label:0",SEC_LABEL_CATALOG_2:"urn:xmpp:sec-label:catalog:2",SEC_LABEL_ESS_0:"urn:xmpp:sec-label:ess:0",JINGLE_SOCKS5_1:"urn:xmpp:jingle:transports:s5b:1",JINGLE_IBB_1:"urn:xmpp:jingle:transports:ibb:1",JINGLE_RTP_ZRTP_1:"urn:xmpp:jingle:apps:rtp:zrtp:1",THUMBS_0:"urn:xmpp:thumbs:0",THUMBS_1:"urn:xmpp:thumbs:1",DECLOAKING_0:"urn:xmpp:decloaking:0",CARBONS_2:"urn:xmpp:carbons:2",JINGLE_RTP_RTCP_FB_0:"urn:xmpp:jingle:apps:rtp:rtcp-fb:0",JINGLE_RTP_HDREXT_0:"urn:xmpp:jingle:apps:rtp:rtp-hdrext:0",FORWARD_0:"urn:xmpp:forward:0",HASHES_1:"urn:xmpp:hashes:1",RTT_0:"urn:xmpp:rtt:0",MUC_UNIQUE:"http://jabber.org/protocol/muc#unique",CORRECTION_0:"urn:xmpp:message-correct:0",PSA:"urn:xmpp:psa",MAM_TMP:"urn:xmpp:mam:tmp",MAM_0:"urn:xmpp:mam:0",HATS_0:"urn:xmpp:hats:0",IDLE_1:"urn:xmpp:idle:1",JINGLE_DTLS_0:"urn:xmpp:jingle:apps:dtls:0",JID_PREP_0:"urn:xmpp:jidprep:0",HINTS:"urn:xmpp:hints",JSON_0:"urn:xmpp:json:0",EVENTLOG:"urn:xmpp:eventlog",JINGLE_GROUPING_0:"urn:xmpp:jingle:apps:grouping:0",JINGLE_RTP_SSMA_0:"urn:xmpp:jingle:apps:rtp:ssma:0",COLIBRI:"http://jitsi.org/protocol/colibri",DTLS_SCTP_1:"urn:xmpp:jingle:transports:dtls-sctp:1",CSI:"urn:xmpp:csi",JINGLE_MSG_INITIATE_0:"urn:xmpp:jingle:jingle-message:0",PUSH_0:"urn:xmpp:push:0",JINGLE_PUB_1:"urn:xmpp:jinglepub:1"}},{}],"/stanza.io-8.0.2/node_modules/xmpp-constants/lib/presence.js":[function(e,t,n){t.exports={Type:{SUBSCRIBE:"subscribe",SUBSCRIBED:"subscribed",UNSUBSCRIBE:"unsubscribe",UNSUBSCRIBED:"unsubscribed",PROBE:"probe",UNAVAILABLE:"unavailable"},Show:{CHAT:"chat",AWAY:"away",DO_NOT_DISTURB:"dnd",EXTENDED_AWAY:"xa"}}},{}],"/stanza.io-8.0.2/node_modules/xmpp-constants/lib/pubsub.js":[function(e,t,n){t.exports={Affiliation:{MEMBER:"member",NONE:"none",OUTCAST:"outcast",OWNER:"owner",PUBLISHER:"publisher",PUBLISH_ONLY:"publish-only"},Subscription:{NONE:"none",PENDING:"pending",UNCONFIGURED:"unconfigured",SUBSCRIBED:"subscribed"},AccessModel:{OPEN:"open",PRESENCE:"presence",ROSTER:"roster",AUTHORIZE:"authorize",WHITELIST:"whitelist"},Condition:{CONFLICT:"conflict"}}},{}],"/stanza.io-8.0.2/node_modules/xmpp-jid/index.js":[function(e,t,n){"use strict";function bareJID(e,t){return e?e+"@"+t:t}function fullJID(e,t,n){return n?bareJID(e,t)+"/"+n:bareJID(e,t)}var r=e("./lib/stringprep"),a=/^[\x00-\x7F]*$/;n.prep=function(e){var t=e.local,a=e.domain,s=e.resource,o=t;return t&&(t=r.nodeprep(t),o=n.unescape(t)),s&&(s=r.resourceprep(s)),"."===a[a.length-1]&&(a=a.slice(0,a.length-1)),a=r.nameprep(a.split(".").map(r.toUnicode).join(".")),{prepped:e.prepped||r.available,local:t,domain:a,resource:s,bare:bareJID(t,a),full:fullJID(t,a,s),unescapedLocal:o,unescapedBare:bareJID(o,a),unescapedFull:fullJID(o,a,s)}},n.parse=function(e,t){var r="",s="",o="";t=t||a.test(e);var i=e.indexOf("/");i>0&&(o=e.slice(i+1),e=e.slice(0,i));var c=e.indexOf("@");c>0&&(r=e.slice(0,c),e=e.slice(c+1)),s=e;var l=n.prep({local:r,domain:s,resource:o});return l.prepped=l.prepped||t,l},n.equal=function(e,t,r){return e=new n.JID(e),t=new n.JID(t),2===arguments.length&&(r=!0),e.local===t.local&&e.domain===t.domain&&e.resource===t.resource&&(!r||e.prepped&&t.prepped)},n.equalBare=function(e,t,r){return e=new n.JID(e),t=new n.JID(t),2===arguments.length&&(r=!0),e.local===t.local&&e.domain===t.domain&&(!r||e.prepped&&t.prepped)},n.isBare=function(e){e=new n.JID(e);var t=!!e.resource;return!t},n.isFull=function(e){e=new n.JID(e);var t=!!e.resource;return t},n.escape=function(e){return e.replace(/^\s+|\s+$/g,"").replace(/\\5c/g,"\\5c5c").replace(/\\20/g,"\\5c20").replace(/\\22/g,"\\5c22").replace(/\\26/g,"\\5c26").replace(/\\27/g,"\\5c27").replace(/\\2f/g,"\\5c2f").replace(/\\3a/g,"\\5c3a").replace(/\\3c/g,"\\5c3c").replace(/\\3e/g,"\\5c3e").replace(/\\40/g,"\\5c40").replace(/ /g,"\\20").replace(/\"/g,"\\22").replace(/\&/g,"\\26").replace(/\'/g,"\\27").replace(/\//g,"\\2f").replace(/:/g,"\\3a").replace(/</g,"\\3c").replace(/>/g,"\\3e").replace(/@/g,"\\40")},n.unescape=function(e){return e.replace(/\\20/g," ").replace(/\\22/g,'"').replace(/\\26/g,"&").replace(/\\27/g,"'").replace(/\\2f/g,"/").replace(/\\3a/g,":").replace(/\\3c/g,"<").replace(/\\3e/g,">").replace(/\\40/g,"@").replace(/\\5c/g,"\\")},n.create=function(e,t,r){return new n.JID(e,t,r)},n.JID=function JID(e,t,r){var s={};if(!e||t||r)if(t){var o=a.test(e)&&a.test(t);r&&(o=o&&a.test(r)),s=n.prep({local:n.escape(e),domain:t,resource:r,prepped:o})}else s={};else if("string"==typeof e)s=n.parse(e);else{if(!(e._isJID||e instanceof n.JID))throw new Error("Invalid argument type");s=e}this._isJID=!0,this.local=s.local||"",this.domain=s.domain||"",this.resource=s.resource||"",this.bare=s.bare||"",this.full=s.full||"",this.unescapedLocal=s.unescapedLocal||"",this.unescapedBare=s.unescapedBare||"",this.unescapedFull=s.unescapedFull||"",this.prepped=s.prepped},n.JID.prototype.toString=function(){return this.full},n.JID.prototype.toJSON=function(){return this.full}},{"./lib/stringprep":"/stanza.io-8.0.2/node_modules/xmpp-jid/lib/stringprep-browser.js"}],"/stanza.io-8.0.2/node_modules/xmpp-jid/lib/stringprep-browser.js":[function(e,t,n){"use strict";var r=e("punycode");n.available=!1,n.toUnicode=r.toUnicode,n.nameprep=function(e){return e.toLowerCase()},n.nodeprep=function(e){return e.toLowerCase()},n.resourceprep=function(e){return e}},{punycode:"/stanza.io-8.0.2/node_modules/punycode/punycode.js"}],"/stanza.io-8.0.2/node_modules/xtend/immutable.js":[function(e,t,n){function extend(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var a in n)r.call(n,a)&&(e[a]=n[a])}return e}t.exports=extend;var r=Object.prototype.hasOwnProperty},{}]},{},["/stanza.io-8.0.2/index.js"])("/stanza.io-8.0.2/index.js")}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment