urbit/pkg/arvo/app/chat/js/tile.js

1 line
96 KiB
JavaScript
Raw Normal View History

!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("tile",t):(n=n||self).tile=t()}(this,function(){"use strict";var n="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};"function"==typeof n.setTimeout&&setTimeout,"function"==typeof n.clearTimeout&&clearTimeout;function t(n,t){this.fun=n,this.array=t}t.prototype.run=function(){this.fun.apply(null,this.array)};var e=n.performance||{};e.now||e.mozNow||e.msNow||e.oNow||e.webkitNow;new Date;var r={},u="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(n,t){return n(t={exports:{}},t.exports),t.exports}var i=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var c=function(){try{if(!Object.assign)return!1;var n=new String("abc");if(n[5]="de","5"===Object.getOwnPropertyNames(n)[0])return!1;for(var t={},e=0;e<10;e++)t["_"+String.fromCharCode(e)]=e;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(n){return t[n]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(n){r[n]=n}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(n){return!1}}()?Object.assign:function(n,t){for(var e,r,u=function(n){if(null==n)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}(n),o=1;o<arguments.length;o++){for(var c in e=Object(arguments[o]))a.call(e,c)&&(u[c]=e[c]);if(i){r=i(e);for(var l=0;l<r.length;l++)f.call(e,r[l])&&(u[r[l]]=e[r[l]])}}return u},l="function"==typeof Symbol&&Symbol.for,s=l?Symbol.for("react.element"):60103,p=l?Symbol.for("react.portal"):60106,h=l?Symbol.for("react.fragment"):60107,v=l?Symbol.for("react.strict_mode"):60108,y=l?Symbol.for("react.profiler"):60114,d=l?Symbol.for("react.provider"):60109,_=l?Symbol.for("react.context"):60110,g=l?Symbol.for("react.concurrent_mode"):60111,m=l?Symbol.for("react.forward_ref"):60112,b=l?Symbol.for("react.suspense"):60113,w=l?Symbol.for("react.memo"):60115,x=l?Symbol.for("react.lazy"):60116,j="function"==typeof Symbol&&Symbol.iterator;function k(n){for(var t=arguments.length-1,e="https://reactjs.org/docs/error-decoder.html?invariant="+n,r=0;r<t;r++)e+="&args[]="+encodeURIComponent(arguments[r+1]);!function(n,t,e,r,u,o,i,a){if(!n){if(n=void 0,void 0===t)n=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[e,r,u,o,i,a],c=0;(n=Error(t.replace(/%s/g,function(){return f[c++]}))).name="Invariant Violation"}throw n.framesToPop=1,n}}(!1,"Minified React error #"+n+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O={};function R(n,t,e){this.props=n,this.context=t,this.refs=O,this.updater=e||S}function A(){}function E(n,t,e){this.props=n,this.context=t,this.refs=O,this.updater=e||S}R.prototype.isReactComponent={},R.prototype.setState=function(n,t){"object"!=typeof n&&"function"!=typeof n&&null!=n&&k("85"),this.updater.enqueueSetState(this,n,t,"setState")},R.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")},A.prototype=R.prototype;var C=E.prototype=new A;C.constructor=E,c(C,R.prototype),C.isPureReactComponent=!0;var $={current:null,currentDispatcher:null},P=Object.prototype.hasOwnProperty,I={key:!0,ref:!0,__self:!0,__source:!0};function N(n,t,e){var r=void 0,u={},o=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(o=""+t.key),t)P.call(t,r)&&!I.hasOwnProperty(r)&&(u[r]=t[r]);var a=arguments.length-2;if(1===a)u.children=e;else if(1<a){for(var f=Array(a),c=0;c<a;c++)f[c]=arguments[c+2];u.children=f}if(n&&n.defaultProps)for(r in a=n.defaultProps)void 0===u[r]&&(u[r]=a[r]);return{$$typeof:s,type:n,key:o,ref:i,props:u,_owner:$.current}}function z(n){