require=functione(t,n,i){functionr(s,a){if(!n[s]){if(!t[s]){varl="function"==typeofrequire&&require;if(!a&&l)returnl(s,!0);if(o)returno(s,!0);varc=newError("Cannot find module '"+s+"'");throwc.code="MODULE_NOT_FOUND",c}varu=n[s]={exports:{}};t[s][0].call(u.exports,function(e){varn=t[s][1][e];returnr(n?n:e)},u,u.exports,e,t,n,i)}returnn[s].exports}for(varo="function"==typeofrequire&&require,s=0;s<i.length;s++)r(i[s]);returnr}({1:[function(e,t,n){"use strict";e("babel-polyfill"),e("../../../../thirdparty/jquery/jquery.js"),e("../../../../thirdparty/jquery-ondemand/jquery.ondemand.js"),e("../../src/sspath.js"),e("../../../../thirdparty/jquery-ui/jquery-ui.js"),e("../../../../thirdparty/jquery-entwine/dist/jquery.entwine-dist.js"),e("../../../../thirdparty/jquery-cookie/jquery.cookie.js"),e("../../../../thirdparty/jquery-query/jquery.query.js"),e("../../../../thirdparty/jquery-form/jquery.form.js"),e("../../../thirdparty/jquery-notice/jquery.notice.js"),e("../../../thirdparty/jsizes/lib/jquery.sizes.js"),e("../../../thirdparty/jlayout/lib/jlayout.border.js"),e("../../../thirdparty/jlayout/lib/jquery.jlayout.js"),e("../../../../thirdparty/jstree/jquery.jstree.js"),e("../../../thirdparty/jquery-hoverIntent/jquery.hoverIntent.js"),e("../../../../thirdparty/jquery-changetracker/lib/jquery.changetracker.js"),e("../../../../javascript/src/TreeDropdownField.js"),e("../../../../javascript/src/DateField.js"),e("../../../../javascript/src/HtmlEditorField.js"),e("../../../../javascript/src/TabSet.js"),e("../../src/ssui.core.js"),e("../../../../javascript/src/GridField.js")},{"../../../../javascript/src/DateField.js":14,"../../../../javascript/src/GridField.js":15,"../../../../javascript/src/HtmlEditorField.js":16,"../../../../javascript/src/TabSet.js":17,"../../../../javascript/src/TreeDropdownField.js":18,"../../../../thirdparty/jquery-changetracker/lib/jquery.changetracker.js":502,"../../../../thirdparty/jquery-cookie/jquery.cookie.js":503,"../../../../thirdparty/jquery-entwine/dist/jquery.entwine-dist.js":504,"../../../../thirdparty/jquery-form/jquery.form.js":505,"../../../../thirdparty/jquery-ondemand/jquery.ondemand.js":506,"../../../../thirdparty/jquery-query/jquery.query.js":507,"../../../../thirdparty/jquery-ui/jquery-ui.js":508,"../../../../thirdparty/jquery/jquery.js":509,"../../../../thirdparty/jstree/jquery.jstree.js":510,"../../../thirdparty/jlayout/lib/jlayout.border.js":9,"../../../thirdparty/jlayout/lib/jquery.jlayout.js":10,"../../../thirdparty/jquery-hoverIntent/jquery.hoverIntent.js":11,"../../../thirdparty/jquery-notice/jquery.notice.js":12,"../../../thirdparty/jsizes/lib/jquery.sizes.js":13,"../../src/sspath.js":3,"../../src/ssui.core.js":4,"babel-polyfill":19}],2:[function(e,t,n){"use strict";functioni(e){returne&&e.__esModule?e:{"default":e}}functionr(e,t){for(varn=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){varr=n[i],o=Object.getOwnPropertyDescriptor(t,r);o&&o.configurable&&void0===e[r]&&Object.defineProperty(e,r,o)}returne}functiono(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functions(e,t){if(!e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeoft&&"function"!=typeoft?e:t}functiona(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function, not "+typeoft);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):r(e,t))}Object.defineProperty(n,"__esModule",{value:!0});varl=e("react"),c=i(l),u=e("silverstripe-component"),d=i(u),h=function(e){functiont(n){o(this,t);vari=s(this,e.call(this,n));returni.handleClick=i.handleClick.bind(i),i}returna(t,e),t.prototype.render=function(){returnc["default"].createElement("button",{className:"grid-field__icon-action font-icon-"+this.props.icon,onClick:this.handleClick})},t.prototype.handleClick=function(e){this.props.handleClick(e,this.props.record.ID)},t}(d["default"]);h.PropTypes
[][e]&&n(Array,e,Function.call.bind([][e]))})}).call(this,"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{"babel-regenerator-runtime":20,"core-js/fn/regexp/escape":21,"core-js/shim":308}],20:[function(e,t,n){(function(e,n){!function(n){"use strict";functioni(e,t,n,i){varr=Object.create((t||o).prototype),s=newf(i||[]);returnr._invoke=d(e,n,s),r}functionr(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(i){return{type:"throw",arg:i}}}functiono(){}functions(){}functiona(){}functionl(e){["next","throw","return"].forEach(function(t){e[t]=function(e){returnthis._invoke(t,e)}})}functionc(e){this.arg=e}functionu(t){functionn(e,n){vari=t[e](n),r=i.value;returnrinstanceofc?Promise.resolve(r.arg).then(o,s):Promise.resolve(r).then(function(e){returni.value=e,i})}functioni(e,t){functioni(){returnn(e,t)}returnr=r?r.then(i,i):newPromise(function(e){e(i())})}"object"==typeofe&&e.domain&&(n=e.domain.bind(n));varr,o=n.bind(t,"next"),s=n.bind(t,"throw");n.bind(t,"return");this._invoke=i}functiond(e,t,n){vari=w;returnfunction(o,s){if(i===C)thrownewError("Generator is already running");if(i===k){if("throw"===o)throws;returnm()}for(;;){vara=n.delegate;if(a){if("return"===o||"throw"===o&&a.iterator[o]===v){n.delegate=null;varl=a.iterator["return"];if(l){varc=r(l,a.iterator,s);if("throw"===c.type){o="throw",s=c.arg;continue}}if("return"===o)continue}varc=r(a.iterator[o],a.iterator,s);if("throw"===c.type){n.delegate=null,o="throw",s=c.arg;continue}o="next",s=v;varu=c.arg;if(!u.done)returni=j,u;n[a.resultName]=u.value,n.next=a.nextLoc,n.delegate=null}if("next"===o)n._sent=s,i===j?n.sent=s:n.sent=v;elseif("throw"===o){if(i===w)throwi=k,s;n.dispatchException(s)&&(o="next",s=v)}else"return"===o&&n.abrupt("return",s);i=C;varc=r(e,t,n);if("normal"===c.type){i=n.done?k:j;varu={value:c.arg,done:n.done};if(c.arg!==E)returnu;n.delegate&&"next"===o&&(s=v)}else"throw"===c.type&&(i=k,o="throw",s=c.arg)}}}functionh(e){vart={tryLoc:e[0]};1ine&&(t.catchLoc=e[1]),2ine&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}functionp(e){vart=e.completion||{};t.type="normal",deletet.arg,e.completion=t}functionf(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(h,this),this.reset(!0)}functiong(e){if(e){vart=e[y];if(t)returnt.call(e);if("function"==typeofe.next)returne;if(!isNaN(e.length)){varn=-1,i=functionr(){for(;++n<e.length;)if(_.call(e,n))returnr.value=e[n],r.done=!1,r;returnr.value=v,r.done=!0,r};returni.next=i}}return{next:m}}functionm(){return{value:v,done:!0}}varv,_=Object.prototype.hasOwnProperty,y="function"==typeofSymbol&&Symbol.iterator||"@@iterator",b="object"==typeoft,x=n.regeneratorRuntime;if(x)returnvoid(b&&(t.exports=x));x=n.regeneratorRuntime=b?t.exports:{},x.wrap=i;varw="suspendedStart",j="suspendedYield",C="executing",k="completed",E={},T=a.prototype=o.prototype;s.prototype=T.constructor=a,a.constructor=s,s.displayName="GeneratorFunction",x.isGeneratorFunction=function(e){vart="function"==typeofe&&e.constructor;returnt?t===s||"GeneratorFunction"===(t.displayName||t.name):!1},x.mark=function(e){returnObject.setPrototypeOf?Object.setPrototypeOf(e,a):e.__proto__=a,e.prototype=Object.create(T),e},x.awrap=function(e){returnnewc(e)},l(u.prototype),x.async=function(e,t,n,r){varo=newu(i(e,t,n,r));returnx.isGeneratorFunction(t)?o:o.next().then(function(e){returne.done?e.value:o.next()})},l(T),T[y]=function(){returnthis},T.toString=function(){return"[object Generator]"},x.keys=function(e){vart=[];for(varnine)t.push(n);returnt.reverse(),functioni(){for(;t.length;){varn=t.pop();if(nine)returni.value=n,i.done=!1,i}returni.done=!0,i}},x.values=g,f.prototype={constructor:f,reset:function(e){if(this.prev=0,this.next=0,this.sent=v,this.done=!1,this.delegate=null,this.tryEntries.forEach(p),!e)for(vartinthis)"t"===t.charAt(0)&&_.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=v)},stop:function(){this.done=!0;vare=this.tryEntries[0],t=e.completion;if("throw"===t.type)throwt.arg;returnthis.rval},dispatchExcept
t.exports=function(){for(vare=o(this),t=arguments.length,n=Array(t),s=0,a=i._,l=!1;t>s;)(n[s]=arguments[s++])===a&&(l=!0);returnfunction(){vari,o=this,s=arguments.length,c=0,u=0;if(!l&&!s)returnr(e,n,o);if(i=n.slice(),l)for(;t>c;c++)i[c]===a&&(i[c]=arguments[u++]);for(;s>u;)i.push(arguments[u++]);returnr(e,i,o)}}},{"./_a-function":22,"./_invoke":62,"./_path":102}],102:[function(e,t,n){t.exports=e("./_global")},{"./_global":56}],103:[function(e,t,n){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],104:[function(e,t,n){vari=e("./_redefine");t.exports=function(e,t,n){for(varrint)i(e,r,t[r],n);returne}},{"./_redefine":105}],105:[function(e,t,n){vari=e("./_global"),r=e("./_hide"),o=e("./_has"),s=e("./_uid")("src"),a="toString",l=Function[a],c=(""+l).split(a);e("./_core").inspectSource=function(e){returnl.call(e)},(t.exports=function(e,t,n,a){varl="function"==typeofn;l&&(o(n,"name")||r(n,"name",t)),e[t]!==n&&(l&&(o(n,s)||r(n,s,e[t]?""+e[t]:c.join(String(t)))),e===i?e[t]=n:a?e[t]?e[t]=n:r(e,t,n):(deletee[t],r(e,t,n)))})(Function.prototype,a,function(){return"function"==typeofthis&&this[s]||l.call(this)})},{"./_core":41,"./_global":56,"./_has":57,"./_hide":58,"./_uid":132}],106:[function(e,t,n){t.exports=function(e,t){varn=t===Object(t)?function(e){returnt[e]}:t;returnfunction(t){returnString(t).replace(e,n)}}},{}],107:[function(e,t,n){t.exports=Object.is||function(e,t){returne===t?0!==e||1/e===1/t:e!=e&&t!=t}},{}],108:[function(e,t,n){vari=e("./_is-object"),r=e("./_an-object"),o=function(e,t){if(r(e),!i(t)&&null!==t)throwTypeError(t+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,i){try{i=e("./_ctx")(Function.call,e("./_object-gopd").f(Object.prototype,"__proto__").set,2),i(t,[]),n=!(tinstanceofArray)}catch(r){n=!0}returnfunction(e,t){returno(e,t),n?e.__proto__=t:i(e,t),e}}({},!1):void0),check:o}},{"./_an-object":26,"./_ctx":43,"./_is-object":67,"./_object-gopd":88}],109:[function(e,t,n){"use strict";vari=e("./_global"),r=e("./_object-dp"),o=e("./_descriptors"),s=e("./_wks")("species");t.exports=function(e){vart=i[e];o&&t&&!t[s]&&r.f(t,s,{configurable:!0,get:function(){returnthis}})}},{"./_descriptors":46,"./_global":56,"./_object-dp":85,"./_wks":133}],110:[function(e,t,n){vari=e("./_object-dp").f,r=e("./_has"),o=e("./_wks")("toStringTag");t.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,o)&&i(e,o,{configurable:!0,value:t})}},{"./_has":57,"./_object-dp":85,"./_wks":133}],111:[function(e,t,n){vari=e("./_shared")("keys"),r=e("./_uid");t.exports=function(e){returni[e]||(i[e]=r(e))}},{"./_shared":112,"./_uid":132}],112:[function(e,t,n){vari=e("./_global"),r="__core-js_shared__",o=i[r]||(i[r]={});t.exports=function(e){returno[e]||(o[e]={})}},{"./_global":56}],113:[function(e,t,n){vari=e("./_an-object"),r=e("./_a-function"),o=e("./_wks")("species");t.exports=function(e,t){varn,s=i(e).constructor;returnvoid0===s||void0==(n=i(s)[o])?t:r(n)}},{"./_a-function":22,"./_an-object":26,"./_wks":133}],114:[function(e,t,n){vari=e("./_fails");t.exports=function(e,t){return!!e&&i(function(){t?e.call(null,function(){},1):e.call(null)})}},{"./_fails":52}],115:[function(e,t,n){vari=e("./_to-integer"),r=e("./_defined");t.exports=function(e){returnfunction(t,n){varo,s,a=String(r(t)),l=i(n),c=a.length;return0>l||l>=c?e?"":void0:(o=a.charCodeAt(l),55296>o||o>56319||l+1===c||(s=a.charCodeAt(l+1))<56320||s>57343?e?a.charAt(l):o:e?a.slice(l,l+2):(o-55296<<10)+(s-56320)+65536)}}},{"./_defined":45,"./_to-integer":124}],116:[function(e,t,n){vari=e("./_is-regexp"),r=e("./_defined");t.exports=function(e,t,n){if(i(t))throwTypeError("String#"+n+" doesn't accept regex!");returnString(r(e))}},{"./_defined":45,"./_is-regexp":68}],117:[function(e,t,n){vari=e("./_export"),r=e("./_fails"),o=e("./_defined"),s=/"/g,a=function(e,t,n,i){varr=String(o(e)),a="<"+t;return""!==n&&(a+=" "+n+'="'+String(i).replace(s,""")+'"'),a+">"+r+"</"+t+">"};t.exports=function(e,t){varn={};n[e]=t(a),i(i.P+i.F*r(function(){vart=""[e]
n._settledAt(oe,t,e)},function(e){n._settledAt(se,t,e)})};varge=B,me={Promise:pe,polyfill:ge};"function"==typeofdefine&&define.amd?define(function(){returnme}):"undefined"!=typeoft&&t.exports?t.exports=me:"undefined"!=typeofthis&&(this.ES6Promise=me),ge()}).call(this)}).call(this,e("_process"),"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{_process:310}],312:[function(e,t,n){e("whatwg-fetch"),t.exports=self.fetch.bind(self)},{"whatwg-fetch":313}],313:[function(e,t,n){!function(e){"use strict";functiont(e){if("string"!=typeofe&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))thrownewTypeError("Invalid character in header field name");returne.toLowerCase()}functionn(e){return"string"!=typeofe&&(e=String(e)),e}functioni(e){this.map={},einstanceofi?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}functionr(e){returne.bodyUsed?Promise.reject(newTypeError("Already read")):void(e.bodyUsed=!0)}functiono(e){returnnewPromise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}functions(e){vart=newFileReader;returnt.readAsArrayBuffer(e),o(t)}functiona(e){vart=newFileReader;returnt.readAsText(e),o(t)}functionl(){returnthis.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeofe)this._bodyText=e;elseif(f.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;elseif(f.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;elseif(e){if(!f.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))thrownewError("unsupported BodyInit type")}elsethis._bodyText="";this.headers.get("content-type")||("string"==typeofe?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type&&this.headers.set("content-type",this._bodyBlob.type))},f.blob?(this.blob=function(){vare=r(this);if(e)returne;if(this._bodyBlob)returnPromise.resolve(this._bodyBlob);if(this._bodyFormData)thrownewError("could not read FormData body as blob");returnPromise.resolve(newBlob([this._bodyText]))},this.arrayBuffer=function(){returnthis.blob().then(s)},this.text=function(){vare=r(this);if(e)returne;if(this._bodyBlob)returna(this._bodyBlob);if(this._bodyFormData)thrownewError("could not read FormData body as text");returnPromise.resolve(this._bodyText)}):this.text=function(){vare=r(this);returne?e:Promise.resolve(this._bodyText)},f.formData&&(this.formData=function(){returnthis.text().then(d)}),this.json=function(){returnthis.text().then(JSON.parse)},this}functionc(e){vart=e.toUpperCase();returng.indexOf(t)>-1?t:e}functionu(e,t){t=t||{};varn=t.body;if(u.prototype.isPrototypeOf(e)){if(e.bodyUsed)thrownewTypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=newi(e.headers)),this.method=e.method,this.mode=e.mode,n||(n=e._bodyInit,e.bodyUsed=!0)}elsethis.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=newi(t.headers)),this.method=c(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)thrownewTypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}functiond(e){vart=newFormData;returne.trim().split("&").forEach(function(e){if(e){varn=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}}),t}functionh(e){vart=newi,n=e.getAllResponseHeaders().trim().split("\n");returnn.forEach(function(e){varn=e.trim().split(":"),i=n.shift().trim(),r=n.join(":").trim();t.append(i,r)}),t}functionp(e,t){t||(t={}),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headersinstanceofi?t.headers:newi(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){i.prototype.append=function(e,i){e=t(e),i=n(i);varr=this.map[e];r||(r=[],this.map[e]=r),r.push(
o.hasOwnProperty(u)&&o[u]||(u===l.topWheel?d("wheel")?v.ReactEventListener.trapBubbledEvent(l.topWheel,"wheel",n):d("mousewheel")?v.ReactEventListener.trapBubbledEvent(l.topWheel,"mousewheel",n):v.ReactEventListener.trapBubbledEvent(l.topWheel,"DOMMouseScroll",n):u===l.topScroll?d("scroll",!0)?v.ReactEventListener.trapCapturedEvent(l.topScroll,"scroll",n):v.ReactEventListener.trapBubbledEvent(l.topScroll,"scroll",v.ReactEventListener.WINDOW_HANDLE):u===l.topFocus||u===l.topBlur?(d("focus",!0)?(v.ReactEventListener.trapCapturedEvent(l.topFocus,"focus",n),v.ReactEventListener.trapCapturedEvent(l.topBlur,"blur",n)):d("focusin")&&(v.ReactEventListener.trapBubbledEvent(l.topFocus,"focusin",n),v.ReactEventListener.trapBubbledEvent(l.topBlur,"focusout",n)),o[l.topBlur]=!0,o[l.topFocus]=!0):g.hasOwnProperty(u)&&v.ReactEventListener.trapBubbledEvent(u,g[u],n),o[u]=!0)}},trapBubbledEvent:function(e,t,n){returnv.ReactEventListener.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){returnv.ReactEventListener.trapCapturedEvent(e,t,n)},ensureScrollValueMonitoring:function(){if(!p){vare=c.refreshScrollValues;v.ReactEventListener.monitorScrollValue(e),p=!0}},eventNameDispatchConfigs:o.eventNameDispatchConfigs,registrationNameModules:o.registrationNameModules,putListener:o.putListener,getListener:o.getListener,deleteListener:o.deleteListener,deleteAllListeners:o.deleteAllListeners});l.measureMethods(v,"ReactBrowserEventEmitter",{putListener:"putListener",deleteListener:"deleteListener"}),t.exports=v},{"./EventConstants":345,"./EventPluginHub":346,"./EventPluginRegistry":347,"./Object.assign":353,"./ReactEventEmitterMixin":390,"./ReactPerf":404,"./ViewportMetrics":438,"./isEventSupported":456}],358:[function(e,t,n){"use strict";functioni(e){vart="transition"+e+"Timeout",n="transition"+e;returnfunction(e){if(e[n]){if(null==e[t])returnnewError(t+" wasn't supplied to ReactCSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeofe[t])returnnewError(t+" must be a number (in milliseconds)")}}}varr=e("./React"),o=e("./Object.assign"),s=e("./ReactTransitionGroup"),a=e("./ReactCSSTransitionGroupChild"),l=r.createClass({displayName:"ReactCSSTransitionGroup",propTypes:{transitionName:a.propTypes.name,transitionAppear:r.PropTypes.bool,transitionEnter:r.PropTypes.bool,transitionLeave:r.PropTypes.bool,transitionAppearTimeout:i("Appear"),transitionEnterTimeout:i("Enter"),transitionLeaveTimeout:i("Leave")},getDefaultProps:function(){return{transitionAppear:!1,transitionEnter:!0,transitionLeave:!0}},_wrapChild:function(e){returnr.createElement(a,{name:this.props.transitionName,appear:this.props.transitionAppear,enter:this.props.transitionEnter,leave:this.props.transitionLeave,appearTimeout:this.props.transitionAppearTimeout,enterTimeout:this.props.transitionEnterTimeout,leaveTimeout:this.props.transitionLeaveTimeout},e)},render:function(){returnr.createElement(s,o({},this.props,{childFactory:this._wrapChild}))}});t.exports=l},{"./Object.assign":353,"./React":355,"./ReactCSSTransitionGroupChild":359,"./ReactTransitionGroup":418}],359:[function(e,t,n){"use strict";vari=e("./React"),r=e("./ReactDOM"),o=e("fbjs/lib/CSSCore"),s=e("./ReactTransitionEvents"),a=e("./onlyChild"),l=17,c=i.createClass({displayName:"ReactCSSTransitionGroupChild",propTypes:{name:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.shape({enter:i.PropTypes.string,leave:i.PropTypes.string,active:i.PropTypes.string}),i.PropTypes.shape({enter:i.PropTypes.string,enterActive:i.PropTypes.string,leave:i.PropTypes.string,leaveActive:i.PropTypes.string,appear:i.PropTypes.string,appearActive:i.PropTypes.string})]).isRequired,appear:i.PropTypes.bool,enter:i.PropTypes.bool,leave:i.PropTypes.bool,appearTimeout:i.PropTypes.number,enterTimeout:i.PropTypes.number,leaveTimeout:i.PropTypes.number},transition:function(e,t,n){vari=r.findDOMNode(this);if(!i)returnvoid(t&&t());vara=this.props.name[e]||this.props.name+"-"+e,l=th
functioni(e){returnr.createFactory(e)}varr=e("./ReactElement"),o=(e("./ReactElementValidator"),e("fbjs/lib/mapObject")),s=o({a:"a",abbr:"abbr",address:"address",area:"area",article:"article",aside:"aside",audio:"audio",b:"b",base:"base",bdi:"bdi",bdo:"bdo",big:"big",blockquote:"blockquote",body:"body",br:"br",button:"button",canvas:"canvas",caption:"caption",cite:"cite",code:"code",col:"col",colgroup:"colgroup",data:"data",datalist:"datalist",dd:"dd",del:"del",details:"details",dfn:"dfn",dialog:"dialog",div:"div",dl:"dl",dt:"dt",em:"em",embed:"embed",fieldset:"fieldset",figcaption:"figcaption",figure:"figure",footer:"footer",form:"form",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",head:"head",header:"header",hgroup:"hgroup",hr:"hr",html:"html",i:"i",iframe:"iframe",img:"img",input:"input",ins:"ins",kbd:"kbd",keygen:"keygen",label:"label",legend:"legend",li:"li",link:"link",main:"main",map:"map",mark:"mark",menu:"menu",menuitem:"menuitem",meta:"meta",meter:"meter",nav:"nav",noscript:"noscript",object:"object",ol:"ol",optgroup:"optgroup",option:"option",output:"output",p:"p",param:"param",picture:"picture",pre:"pre",progress:"progress",q:"q",rp:"rp",rt:"rt",ruby:"ruby",s:"s",samp:"samp",script:"script",section:"section",select:"select",small:"small",source:"source",span:"span",strong:"strong",style:"style",sub:"sub",summary:"summary",sup:"sup",table:"table",tbody:"tbody",td:"td",textarea:"textarea",tfoot:"tfoot",th:"th",thead:"thead",time:"time",title:"title",tr:"tr",track:"track",u:"u",ul:"ul","var":"var",video:"video",wbr:"wbr",circle:"circle",clipPath:"clipPath",defs:"defs",ellipse:"ellipse",g:"g",image:"image",line:"line",linearGradient:"linearGradient",mask:"mask",path:"path",pattern:"pattern",polygon:"polygon",polyline:"polyline",radialGradient:"radialGradient",rect:"rect",stop:"stop",svg:"svg",text:"text",tspan:"tspan"},i);t.exports=s},{"./ReactElement":385,"./ReactElementValidator":386,"fbjs/lib/mapObject":487}],372:[function(e,t,n){"use strict";vari={useCreateElement:!1};t.exports=i},{}],373:[function(e,t,n){"use strict";vari=e("./DOMChildrenOperations"),r=e("./DOMPropertyOperations"),o=e("./ReactMount"),s=e("./ReactPerf"),a=e("fbjs/lib/invariant"),l={dangerouslySetInnerHTML:"`dangerouslySetInnerHTML` must be set using `updateInnerHTMLByID()`.",style:"`style` must be set using `updateStylesByID()`."},c={updatePropertyByID:function(e,t,n){vari=o.getNode(e);l.hasOwnProperty(t)?a(!1):void0,null!=n?r.setValueForProperty(i,t,n):r.deleteValueForProperty(i,t)},dangerouslyReplaceNodeWithMarkupByID:function(e,t){varn=o.getNode(e);i.dangerouslyReplaceNodeWithMarkup(n,t)},dangerouslyProcessChildrenUpdates:function(e,t){for(varn=0;n<e.length;n++)e[n].parentNode=o.getNode(e[n].parentID);i.processUpdates(e,t)}};s.measureMethods(c,"ReactDOMIDOperations",{dangerouslyReplaceNodeWithMarkupByID:"dangerouslyReplaceNodeWithMarkupByID",dangerouslyProcessChildrenUpdates:"dangerouslyProcessChildrenUpdates"}),t.exports=c},{"./DOMChildrenOperations":339,"./DOMPropertyOperations":341,"./ReactMount":398,"./ReactPerf":404,"fbjs/lib/invariant":482}],374:[function(e,t,n){"use strict";functioni(){this._rootNodeID&&h.updateWrapper(this)}functionr(e){vart=this._currentElement.props,n=s.executeOnChange(t,e);l.asap(i,this);varr=t.name;if("radio"===t.type&&null!=r){for(varo=a.getNode(this._rootNodeID),c=o;c.parentNode;)c=c.parentNode;for(varh=c.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),p=0;p<h.length;p++){varf=h[p];if(f!==o&&f.form===o.form){varg=a.getID(f);g?void0:u(!1);varm=d[g];m?void0:u(!1),l.asap(i,m)}}}returnn}varo=e("./ReactDOMIDOperations"),s=e("./LinkedValueUtils"),a=e("./ReactMount"),l=e("./ReactUpdates"),c=e("./Object.assign"),u=e("fbjs/lib/invariant"),d={},h={getNativeProps:function(e,t,n){vari=s.getValue(t),r=s.getChecked(t),o=c({},t,{defaultChecked:void0,defaultValue:void0,value:null!=i?i:e._wrapperState.initialValue,checked:null!=r?r:e._wrapperState.initialChecked,onChange:e._wrapperState.onChange});returno},mountWrapper:function(e,t){varn=t.defaultValue;e._wrapperState={initi
init:function(i){if(i&&!i.match(/^[A-Za-z0-9.]+$/)&&e.entwine.warn("Entwine namespace "+i+" is not formatted as period seperated identifiers",e.entwine.WARN_LEVEL_BESTPRACTISE),i=i||"__base",this.name=i,this.store={},n[i]=this,"__base"==i)this.injectee=e.fn,this.$=e;else{this.$=e.sub?e.sub():t(),this.$.cache=e.cache,this.injectee=this.$.prototype;varr=this.injectee.entwine=function(t){varn=arguments;returnt&&"string"==typeoft?"."!=t.charAt(0)&&(n[0]=i+"."+t):(n=e.makeArray(n),n.unshift(i)),e.fn.entwine.apply(this,n)};this.$.entwine=function(){r.apply(null,arguments)};for(varo=0;o<s.length;o++){vara,l=s[o];if(a=l.namespaceMethodOverrides){varc=a(this);for(varuinc)this.injectee[u]=c[u]}if(a=l.namespaceStaticOverrides){varc=a(this);for(varuinc)this.$.entwine[u]=c[u]}}}},one:function(e,t,n){vari=this,r=this.store[e],o=function(e,s,a){for(void0===a&&(a=r.length);a--;)if(r[a].selector.matches(e)){varl,c=e.i,u=e.f;e.i=a,e.f=o;try{l=r[a][t].apply(i.$(e),s)}finally{e.i=c,e.f=u}returnl}returnn?n.apply(i.$(e),s):void0};returno},build_proxy:function(t,n){vari=this.one(t,"func",n),r=function(){for(vart,n=e(this),r=n.length;r--;)t=i(n[r],arguments);returnt};returnr},bind_proxy:function(t,n,i){varr=this.store[n]||(this.store[n]=e.entwine.RuleList()),o=r.addRule(t,n);o.func=i,this.injectee.hasOwnProperty(n)&&this.injectee[n].isentwinemethod||(this.injectee[n]=this.build_proxy(n,this.injectee.hasOwnProperty(n)?this.injectee[n]:null),this.injectee[n].isentwinemethod=!0),this.injectee[n].isentwinemethod||e.entwine.warn("Warning: Entwine function "+n+" clashes with regular jQuery function - entwine function will not be callable directly on jQuery object",e.entwine.WARN_LEVEL_IMPORTANT)},add:function(e,t){for(varnint)for(vari=t[n],r=0;r<s.length&&(!s[r].bind||!s[r].bind.call(this,e,n,i));r++);},has:function(e,t){varn=this.store[t];if(!n)return!1;for(vari=0;i<n.length;i++)if(e=e.not(n[i].selector),!e.length)return!0;return!1}}),e.entwine.Namespace.addHandler=function(e){for(vart=0;t<s.length&&s[t].order<e.order;t++);s.splice(t,0,e)},e.entwine.Namespace.addHandler({order:50,bind:function(t,n,i){returne.isFunction(i)?(this.bind_proxy(t,n,i),!0):void0}}),e.extend(e.fn,{entwine:function(t){vari=0,r=null,o=n.__base||e.entwine.Namespace();for("string"==typeoft&&("."==t.charAt("0")&&(t=t.substr(1)),t&&(o=n[t]||e.entwine.Namespace(t)),i=1);i<arguments.length;){vars=arguments[i++];e.isFunction(s)&&(1!=s.length&&e.entwine.warn("Function block inside entwine definition does not take $ argument properly",e.entwine.WARN_LEVEL_IMPORTANT),s=s.call(o.$(this),o.$)),s&&(null===r&&(r=this.selector?e.selector(this.selector):!1),r?o.add(r,s):e.entwine.warn("Entwine block given to entwine call without selector. Make sure you call $(selector).entwine when defining blocks",e.entwine.WARN_LEVEL_IMPORTANT))}returno.$(this)},_super:function(){for(vare,t=this.length;t--;){varn=this[0];e=n.f(n,arguments,n.i)}returne}})}(jQuery),function(e){functiont(e,t){for(varn,i=e.length,r=t.firstChild;n=r;)for(1===n.nodeType&&(e[i++]=n),r=n.firstChild||n.nextSibling;!r&&(n=n.parentNode)&&n!==t;)r=n.nextSibling}varn=!1,i=function(i){varr=function(r){varo=[];n||(1==r.nodeType&&(o[o.length]=r),t(o,r));vars=i.apply(this,arguments);if(!n&&o.length){vara=e.Event("EntwineElementsAdded");a.targets=o,e(document).triggerHandler(a)}returns};returnr.patched=!0,r},r=e.prototype.jquery.split("."),o=r[0]>1||r[1]>=10?1:2,s=e.prototype.domManip;e.prototype.domManip=function(){returnarguments[o].patched||(arguments[o]=i(arguments[o])),s.apply(this,arguments)};vara=e.prototype.html;e.prototype.html=function(i){if(void0===i)returna.apply(this,arguments);n=!0;varr=a.apply(this,arguments);n=!1;for(varo=[],s=0,l=this.length;l>s;s++)t(o,this[s]);varc=e.Event("EntwineElementsAdded");returnc.targets=o,e(document).triggerHandler(c),r};varl=!1,c=e.cleanData;e.cleanData=function(t){varn=t;if(l)for(vari=0,r=t.length,n=[],o=0;r>i;i++)for(vars=t[i],a=s;a=a.parentNode;)if(9==a.nodeType){n[o++]=s;break}if(n.length){varu=e.Event("EntwineElementsRemoved")
position:"absolute",left:"0",top:"-100px"}),$.blockUI&&($.unblockUI(),$("body").append(this.dpDiv))),this._inDialog=!1}},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(e){if($.datepicker._curInst){vart=$(e.target),n=$.datepicker._getInst(t[0]);(t[0].id==$.datepicker._mainDivId||0!=t.parents("#"+$.datepicker._mainDivId).length||t.hasClass($.datepicker.markerClassName)||t.closest("."+$.datepicker._triggerClass).length||!$.datepicker._datepickerShowing||$.datepicker._inDialog&&$.blockUI)&&(!t.hasClass($.datepicker.markerClassName)||$.datepicker._curInst==n)||$.datepicker._hideDatepicker()}},_adjustDate:function(e,t,n){vari=$(e),r=this._getInst(i[0]);this._isDisabledDatepicker(i[0])||(this._adjustInstDate(r,t+("M"==n?this._get(r,"showCurrentAtPos"):0),n),this._updateDatepicker(r))},_gotoToday:function(e){vart=$(e),n=this._getInst(t[0]);if(this._get(n,"gotoCurrent")&&n.currentDay)n.selectedDay=n.currentDay,n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear;else{vari=newDate;n.selectedDay=i.getDate(),n.drawMonth=n.selectedMonth=i.getMonth(),n.drawYear=n.selectedYear=i.getFullYear()}this._notifyChange(n),this._adjustDate(t)},_selectMonthYear:function(e,t,n){vari=$(e),r=this._getInst(i[0]);r["selected"+("M"==n?"Month":"Year")]=r["draw"+("M"==n?"Month":"Year")]=parseInt(t.options[t.selectedIndex].value,10),this._notifyChange(r),this._adjustDate(i)},_selectDay:function(e,t,n,i){varr=$(e);if(!$(i).hasClass(this._unselectableClass)&&!this._isDisabledDatepicker(r[0])){varo=this._getInst(r[0]);o.selectedDay=o.currentDay=$("a",i).html(),o.selectedMonth=o.currentMonth=t,o.selectedYear=o.currentYear=n,this._selectDate(e,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear))}},_clearDate:function(e){vart=$(e);this._getInst(t[0]);this._selectDate(t,"")},_selectDate:function(e,t){varn=$(e),i=this._getInst(n[0]);t=null!=t?t:this._formatDate(i),i.input&&i.input.val(t),this._updateAlternate(i);varr=this._get(i,"onSelect");r?r.apply(i.input?i.input[0]:null,[t,i]):i.input&&i.input.trigger("change"),i.inline?this._updateDatepicker(i):(this._hideDatepicker(),this._lastInput=i.input[0],"object"!=typeofi.input[0]&&i.input.focus(),this._lastInput=null)},_updateAlternate:function(e){vart=this._get(e,"altField");if(t){varn=this._get(e,"altFormat")||this._get(e,"dateFormat"),i=this._getDate(e),r=this.formatDate(n,i,this._getFormatConfig(e));$(t).each(function(){$(this).val(r)})}},noWeekends:function(e){vart=e.getDay();return[t>0&&6>t,""]},iso8601Week:function(e){vart=newDate(e.getTime());t.setDate(t.getDate()+4-(t.getDay()||7));varn=t.getTime();returnt.setMonth(0),t.setDate(1),Math.floor(Math.round((n-t)/864e5)/7)+1},parseDate:function(e,t,n){if(null==e||null==t)throw"Invalid arguments";if(t="object"==typeoft?t.toString():t+"",""==t)returnnull;vari=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff;i="string"!=typeofi?i:(newDate).getFullYear()%100+parseInt(i,10);for(varr=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,o=(n?n.dayNames:null)||this._defaults.dayNames,s=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,a=(n?n.monthNames:null)||this._defaults.monthNames,l=-1,c=-1,u=-1,d=-1,h=!1,p=function(t){varn=_+1<e.length&&e.charAt(_+1)==t;returnn&&_++,n},f=function(e){varn=p(e),i="@"==e?14:"!"==e?20:"y"==e&&n?4:"o"==e?3:2,r=newRegExp("^\\d{1,"+i+"}"),o=t.substring(v).match(r);if(!o)throw"Missing number at position "+v;returnv+=o[0].length,parseInt(o[0],10)},g=function(e,n,i){varr=$.map(p(e)?i:n,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)}),o=-1;if($.each(r,function(e,n){vari=n[1];returnt.substr(v,i.length).toLowerCase()==i.toLowerCase()?(o=n[0],v+=i.length,!1):void0}),-1!=o)returno+1;throw"Unknown name at position "+v},m=function(){if(t.charAt(v)!=e.charAt(_))throw"Unexpected literal at position "+v;v++},v=0,_=0;_<e.length;_++)if(h)"'"!=e.charAt(_)||p("'")?m():h=!1;elseswitch(e.charAt(_)){case"d":u=f("d");break;case"D":g("D",r,o);break;ca
}}})}(jQuery)}}()},{}],"bootstrap-collapse":[function(e,t,n){!function(i,r){if("function"==typeofdefine&&define.amd)define(["exports","module","./util"],r);elseif("undefined"!=typeofn&&"undefined"!=typeoft)r(n,t,e("./util"));else{varo={exports:{}};r(o.exports,o,i.Util),i.collapse=o.exports}}(this,function(e,t,n){"use strict";functioni(e){returne&&e.__esModule?e:{"default":e}}functionr(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}varo=function(){functione(e,t){for(varn=0;n<t.length;n++){vari=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"ini&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}returnfunction(t,n,i){returnn&&e(t.prototype,n),i&&e(t,i),t}}(),s=i(n),a=function(e){vart="collapse",n="4.0.0-alpha",i="bs.collapse",a="."+i,l=".data-api",c=e.fn[t],u=600,d={toggle:!0,parent:""},h={toggle:"boolean",parent:"string"},p={SHOW:"show"+a,SHOWN:"shown"+a,HIDE:"hide"+a,HIDDEN:"hidden"+a,CLICK_DATA_API:"click"+a+l},f={IN:"in",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},g={WIDTH:"width",HEIGHT:"height"},m={ACTIVES:".panel > .in, .panel > .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},v=function(){functiona(t,n){r(this,a),this._isTransitioning=!1,this._element=t,this._config=this._getConfig(n),this._triggerArray=e.makeArray(e('[data-toggle="collapse"][href="#'+t.id+'"],'+('[data-toggle="collapse"][data-target="#'+t.id+'"]'))),this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}returno(a,[{key:"toggle",value:function(){e(this._element).hasClass(f.IN)?this.hide():this.show()}},{key:"show",value:function(){vart=this;if(!this._isTransitioning&&!e(this._element).hasClass(f.IN)){varn=void0,r=void0;if(this._parent&&(n=e.makeArray(e(m.ACTIVES)),n.length||(n=null)),!(n&&(r=e(n).data(i),r&&r._isTransitioning))){varo=e.Event(p.SHOW);if(e(this._element).trigger(o),!o.isDefaultPrevented()){n&&(a._jQueryInterface.call(e(n),"hide"),r||e(n).data(i,null));varl=this._getDimension();e(this._element).removeClass(f.COLLAPSE).addClass(f.COLLAPSING),this._element.style[l]=0,this._element.setAttribute("aria-expanded",!0),this._triggerArray.length&&e(this._triggerArray).removeClass(f.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);varc=function(){e(t._element).removeClass(f.COLLAPSING).addClass(f.COLLAPSE).addClass(f.IN),t._element.style[l]="",t.setTransitioning(!1),e(t._element).trigger(p.SHOWN)};if(!s["default"].supportsTransitionEnd())returnvoidc();vard=l[0].toUpperCase()+l.slice(1),h="scroll"+d;e(this._element).one(s["default"].TRANSITION_END,c).emulateTransitionEnd(u),this._element.style[l]=this._element[h]+"px"}}}}},{key:"hide",value:function(){vart=this;if(!this._isTransitioning&&e(this._element).hasClass(f.IN)){varn=e.Event(p.HIDE);if(e(this._element).trigger(n),!n.isDefaultPrevented()){vari=this._getDimension(),r=i===g.WIDTH?"offsetWidth":"offsetHeight";this._element.style[i]=this._element[r]+"px",s["default"].reflow(this._element),e(this._element).addClass(f.COLLAPSING).removeClass(f.COLLAPSE).removeClass(f.IN),this._element.setAttribute("aria-expanded",!1),this._triggerArray.length&&e(this._triggerArray).addClass(f.COLLAPSED).attr("aria-expanded",!1),this.setTransitioning(!0);varo=function(){t.setTransitioning(!1),e(t._element).removeClass(f.COLLAPSING).addClass(f.COLLAPSE).trigger(p.HIDDEN)};returnthis._element.style[i]=0,s["default"].supportsTransitionEnd()?voide(this._element).one(s["default"].TRANSITION_END,o).emulateTransitionEnd(u):voido()}}}},{key:"setTransitioning",value:function(e){this._isTransitioning=e}},{key:"dispose",value:function(){e.removeData(this._element,i),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null}},{key:"_getConfig",value:function(n){returnn=e.extend({},d,n),n.toggle=Boolean(n.toggle),s["default"].typeCheckConfig(t,n,h),n}},{key:"_getDimension",value:function(){vart=e(this._element).hasClass(g.WIDTH);retur
return!t||"object"!=typeoft&&"function"!=typeoft?e:t}functiona(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function, not "+typeoft);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):r(e,t))}Object.defineProperty(n,"__esModule",{value:!0});varl=e("react"),c=i(l),u=e("silverstripe-component"),d=i(u),h=function(e){functiont(n){o(this,t);vari=s(this,e.call(this,n));returni.handleChange=i.handleChange.bind(i),i}returna(t,e),t.prototype.render=function(){returnc["default"].createElement("div",{className:"field text"},this.props.label&&c["default"].createElement("label",{className:"left",htmlFor:"gallery_"+this.props.name},this.props.label),c["default"].createElement("div",{className:"middleColumn"},c["default"].createElement("input",this.getInputProps())))},t.prototype.getInputProps=function(){return{className:["text",this.props.extraClass].join(" "),id:"gallery_"+this.props.name,name:this.props.name,onChange:this.props.onChange,type:"text",value:this.props.value}},t.prototype.handleChange=function(){"undefined"!=typeofthis.props.onChange&&this.props.onChange()},t}(d["default"]);h.propTypes={label:c["default"].PropTypes.string,extraClass:c["default"].PropTypes.string,name:c["default"].PropTypes.string.isRequired,onChange:c["default"].PropTypes.func,value:c["default"].PropTypes.string},n["default"]=h},{react:"react","silverstripe-component":"silverstripe-component"}],config:[function(e,t,n){"use strict";functioni(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});varr=function(){functione(){i(this,e)}returne.getSection=function(e){returnwindow.ss.config.sections[e]},e.getTopLevelRoutes=function(){vare=[];returnObject.keys(window.ss.config.sections).forEach(function(t){varn=window.ss.config.sections[t].route,i=-1===n.indexOf("/"),r=-1===e.indexOf(n);i&&r&&e.push(n)}),e},e}();n["default"]=r},{}],"deep-freeze":[function(e,t,n){t.exports=functioni(e){returnObject.freeze(e),Object.getOwnPropertyNames(e).forEach(function(t){!e.hasOwnProperty(t)||null===e[t]||"object"!=typeofe[t]&&"function"!=typeofe[t]||Object.isFrozen(e[t])||i(e[t])}),e}},{}],i18n:[function(e,t,n){"use strict";functioni(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});varr=function(){functione(){i(this,e),this.currentLocale=null,this.defaultLocale="en_US",this.lang={}}returne.prototype.setLocale=function(e){this.currentLocale=e},e.prototype.getLocale=function(){returnnull!==this.currentLocale?this.currentLocale:this.defaultLocale},e.prototype._t=function(e,t,n,i){varr=this.getLocale().replace(/_[\w]+/i,""),o=this.defaultLocale.replace(/_[\w]+/i,"");returnthis.lang&&this.lang[this.getLocale()]&&this.lang[this.getLocale()][e]?this.lang[this.getLocale()][e]:this.lang&&this.lang[r]&&this.lang[r][e]?this.lang[r][e]:this.lang&&this.lang[this.defaultLocale]&&this.lang[this.defaultLocale][e]?this.lang[this.defaultLocale][e]:this.lang&&this.lang[o]&&this.lang[o][e]?this.lang[o][e]:t?t:""},e.prototype.addDictionary=function(e,t){"undefined"==typeofthis.lang[e]&&(this.lang[e]={});for(varnint)this.lang[e][n]=t[n]},e.prototype.getDictionary=function(e){returnthis.lang[e]},e.prototype.stripStr=function(e){returne.replace(/^\s*/,"").replace(/\s*$/,"")},e.prototype.stripStrML=function(e){for(vart=e.split("\n"),n=0;n<t.length;n+=1)t[n]=stripStr(t[n]);returnstripStr(t.join(" "))},e.prototype.sprintf=function(e){for(vart=arguments.length,n=Array(t>1?t-1:0),i=1;t>i;i++)n[i-1]=arguments[i];if(0===n.length)returne;varr=newRegExp("(.?)(%s)","g"),o=0;returne.replace(r,function(e,t,i,r,s){return"%"===t?e:t+n[o++]})},e.prototype.inject=function(e,t){varn=newRegExp("{([A-Za-z0-9_]*)}","g");returne.replace(n,function(e,n,i,r){returnt[n]?t[n]:e})},e.prototype.detectLocale=function(){vart,n;if(t=jQuery("body").attr("lang