diff --git a/dist/js/app.js b/dist/js/app.js index ddaae1a0..5a0ec96b 100644 --- a/dist/js/app.js +++ b/dist/js/app.js @@ -21,6 +21,10 @@ // Attribution-NonCommercial-ShareAlike 4.0 International License. // http://creativecommons.org/licenses/by-nc-sa/4.0/ +// PTN Ninja by Craig Laparo is licensed under a Creative Commons + +// http://creativecommons.org/licenses/by-nc-sa/4.0/ + /*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */ // Updated to use the 2014 proposed W3C DOM events: @@ -87,10 +91,10 @@ // Software is furnished to do so, subject to the following // conditions: -!function(){"use strict";function t(t,e,n,r,i,o){e[t]&&(n.push(t),(e[t]===!0||1===e[t])&&r.push(i+t+"/"+o))}function e(t,e,n,r,i){var o=r+e+"/"+i;require._fileExists(t.toUrl(o+".js"))&&n.push(o)}function n(t,e,r){var i;for(i in e)!e.hasOwnProperty(i)||t.hasOwnProperty(i)&&!r?"object"==typeof e[i]&&(!t[i]&&e[i]&&(t[i]={}),n(t[i],e[i],r)):t[i]=e[i]}var r=/(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/;define("i18n",["module"],function(i){var o=i.config?i.config():{};return{version:"2.0.6",load:function(i,a,s,u){u=u||{},u.locale&&(o.locale=u.locale);var l,c,f,p=r.exec(i),h=p[1],d=p[4],g=p[5],v=d.split("-"),y=[],m={},b="";if(p[5]?(h=p[1],l=h+g):(l=i,g=p[4],d=o.locale,d||(d=o.locale="undefined"==typeof navigator?"root":(navigator.languages&&navigator.languages[0]||navigator.language||navigator.userLanguage||"root").toLowerCase()),v=d.split("-")),u.isBuild){for(y.push(l),e(a,"root",y,h,g),c=0;c-1&&i[t];t--)o=i[t],r=e[o],(r===!0||1===r)&&(r=a(h+o+"/"+g)),n(m,r);s(m)})})}}})}(),define("nls/main",{root:{App_Title:"PTN Ninja",Clock:"Clock",Date:"Date",Download:"Download",Edit_Mode:"Edit Mode",Event:"Event",First_Ply:"First Ply",Last_Ply:"Last Ply",Next_Ply:"Next Ply",Open:"Open",Permalink:"Permalink",Play_Mode:"Play Mode",PlayPause:"Play/Pause",Player1:"Player1",Player2:"Player2",Points:"Points",Previous_Ply:"Previous Ply",Rating1:"Rating1",Rating2:"Rating2",Result:"Result",Round:"Round",Share:"Share",ShowHide_Errors:"Show/Hide Errors",Site:"Site",Size:"Size",TPS:"TPS",Tak:"Tak",Time:"Time",n_characters:"<%=n%> characters",result:{1:"<%=player%> wins by default",F:"<%=player%> wins by flats",R:"<%=player%> wins by building a road",tie:"It's a tie"},success:{},warning:{long_url:"The permalink is over 2000 characters long, which might not work in some browsers."},error:{illegal_ply:'Illegal ply: "<%=ply%>"',invalid_movetext:'Invalid movetext: "<%=text%>"',invalid_file_format:"Invalid file format",invalid_header:"Invalid header",invalid_ply:'Invalid ply: "<%=ply%>"',invalid_square:'Invalid square: "<%=square%>"',invalid_tag:'Invalid tag: "<%=tag%>"',invalid_tag_value:'Invalid <%=tag%>: "<%=value%>"',invalid_TPS_dimensions:"Invalid TPS dimensions",missing_tags:"Missing required tag(s): <%=_.map(tags, _.upperFirst).join(', ')%>"},help:{},info:{}}}),!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function n(t){var e=!!t&&"length"in t&&t.length,n=ot.type(t);return"function"===n||ot.isWindow(t)?!1:"array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t}function r(t,e,n){if(ot.isFunction(e))return ot.grep(t,function(t,r){return!!e.call(t,r,t)!==n});if(e.nodeType)return ot.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(gt.test(e))return ot.filter(e,t,n);e=ot.filter(e,t)}return ot.grep(t,function(t){return J.call(e,t)>-1!==n})}function i(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function o(t){var e={};return ot.each(t.match(xt)||[],function(t,n){e[n]=!0}),e}function a(){Q.removeEventListener("DOMContentLoaded",a),t.removeEventListener("load",a),ot.ready()}function s(){this.expando=ot.expando+s.uid++}function u(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(St,"-$&").toLowerCase(),n=t.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:Tt.test(n)?ot.parseJSON(n):n}catch(i){}At.set(t,e,n)}else n=void 0;return n}function l(t,e,n,r){var i,o=1,a=20,s=r?function(){return r.cur()}:function(){return ot.css(t,e,"")},u=s(),l=n&&n[3]||(ot.cssNumber[e]?"":"px"),c=(ot.cssNumber[e]||"px"!==l&&+u)&&Rt.exec(ot.css(t,e));if(c&&c[3]!==l){l=l||c[3],n=n||[],c=+u||1;do o=o||".5",c/=o,ot.style(t,e,c+l);while(o!==(o=s()/u)&&1!==o&&--a)}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}function c(t,e){var n="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&ot.nodeName(t,e)?ot.merge([t],n):n}function f(t,e){for(var n=0,r=t.length;r>n;n++)jt.set(t[n],"globalEval",!e||jt.get(e[n],"globalEval"))}function p(t,e,n,r,i){for(var o,a,s,u,l,p,h=e.createDocumentFragment(),d=[],g=0,v=t.length;v>g;g++)if(o=t[g],o||0===o)if("object"===ot.type(o))ot.merge(d,o.nodeType?[o]:o);else if(Mt.test(o)){for(a=a||h.appendChild(e.createElement("div")),s=(Lt.exec(o)||["",""])[1].toLowerCase(),u=Pt[s]||Pt._default,a.innerHTML=u[1]+ot.htmlPrefilter(o)+u[2],p=u[0];p--;)a=a.lastChild;ot.merge(d,a.childNodes),a=h.firstChild,a.textContent=""}else d.push(e.createTextNode(o));for(h.textContent="",g=0;o=d[g++];)if(r&&ot.inArray(o,r)>-1)i&&i.push(o);else if(l=ot.contains(o.ownerDocument,o),a=c(h.appendChild(o),"script"),l&&f(a),n)for(p=0;o=a[p++];)qt.test(o.type||"")&&n.push(o);return h}function h(){return!0}function d(){return!1}function g(){try{return Q.activeElement}catch(t){}}function v(t,e,n,r,i,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=void 0);for(s in e)v(t,s,n,r,e[s],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=d;else if(!i)return t;return 1===o&&(a=i,i=function(t){return ot().off(t),a.apply(this,arguments)},i.guid=a.guid||(a.guid=ot.guid++)),t.each(function(){ot.event.add(this,e,i,r,n)})}function y(t,e){return ot.nodeName(t,"table")&&ot.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function m(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function b(t){var e=Wt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function _(t,e){var n,r,i,o,a,s,u,l;if(1===e.nodeType){if(jt.hasData(t)&&(o=jt.access(t),a=jt.set(e,o),l=o.events)){delete a.handle,a.events={};for(i in l)for(n=0,r=l[i].length;r>n;n++)ot.event.add(e,i,l[i][n])}At.hasData(t)&&(s=At.access(t),u=ot.extend({},s),At.set(e,u))}}function x(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Nt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function w(t,e,n,r){e=Y.apply([],e);var i,o,a,s,u,l,f=0,h=t.length,d=h-1,g=e[0],v=ot.isFunction(g);if(v||h>1&&"string"==typeof g&&!rt.checkClone&&zt.test(g))return t.each(function(i){var o=t.eq(i);v&&(e[0]=g.call(this,i,o.html())),w(o,e,n,r)});if(h&&(i=p(e,t[0].ownerDocument,!1,t,r),o=i.firstChild,1===i.childNodes.length&&(i=o),o||r)){for(a=ot.map(c(i,"script"),m),s=a.length;h>f;f++)u=i,f!==d&&(u=ot.clone(u,!0,!0),s&&ot.merge(a,c(u,"script"))),n.call(t[f],u,f);if(s)for(l=a[a.length-1].ownerDocument,ot.map(a,b),f=0;s>f;f++)u=a[f],qt.test(u.type||"")&&!jt.access(u,"globalEval")&&ot.contains(l,u)&&(u.src?ot._evalUrl&&ot._evalUrl(u.src):ot.globalEval(u.textContent.replace(Ut,"")))}return t}function k(t,e,n){for(var r,i=e?ot.filter(e,t):t,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||ot.cleanData(c(r)),r.parentNode&&(n&&ot.contains(r.ownerDocument,r)&&f(c(r,"script")),r.parentNode.removeChild(r));return t}function C(t,e){var n=ot(e.createElement(t)).appendTo(e.body),r=ot.css(n[0],"display");return n.detach(),r}function j(t){var e=Q,n=Xt[t];return n||(n=C(t,e),"none"!==n&&n||(Vt=(Vt||ot("