text
stringlengths 2
1.05M
|
|---|
const { verify } = require('jsonwebtoken');
module.exports = (req, res, next) => {
const token = req.get('X-native-auth');
if (!token || token === '') {
req.isAuth = false;
res.status(401).send('Authorization failed..');
return next();
} else {
let decoded;
try {
decoded = verify(token, process.env.JWT_SECRET);
} catch (error) {
req.isAuth = false;
res.status(401).send('Authorization failed..');
return next();
}
if (!decoded) {
req.isAuth = false;
res.status(401).send('Authorization failed..');
return next();
} else {
req.isAuth = true;
req.user = decoded.user;
req.userData = decoded;
return next();
}
}
};
|
/*
artifact generator: /wizzi/lib/artifacts/js/module/gen/main.js
primary source IttfDocument: c:\my\wizzi\v4\apps-wizzi\v4-solutions\formbuilder\ittf\webpacks\formbuilder\src\demos\reduxform\wizardform3.js.ittf
utc time: Mon, 10 Jul 2017 12:31:59 GMT
*/
'use strict';
import React from 'react';
import { Field, reduxForm } from 'redux-form';
import PropTypes from 'prop-types';
import renderField from './renderField';
import WizardFormValidate from './WizardFormValidate';
const colors = ['Red', 'Orange', 'Yellow', 'Green', 'Blue', 'Indigo', 'Violet'];
const WizardForm3 = (props) => {
const {
handleSubmit,
pristine,
reset,
submitting,
previousPage
} = props;
return (
<form onSubmit={handleSubmit}>
<Field name="favoriteColor" id="favoriteColor" label="Favorite Color" type="select" component={renderField} options={colors} emptyOption={'Select a color...'}>
</Field>
<Field name="employed" label="Employed" component={renderField} type="checkbox">
</Field>
<Field name="notes" id="notes" label="Notes" value="bla bla" type="textarea" component={renderField}>
</Field>
<div>
<button type="button" className="previous" onClick={previousPage}>
</button>
<button type="submit" className="next">
Submit
</button>
</div>
</form>
)
;
}
WizardForm3.propTypes = {
handleSubmit: PropTypes.func,
pristine: PropTypes.bool,
reset: PropTypes.func,
submitting: PropTypes.bool,
previousPage: PropTypes.func
}
export default reduxForm({
form: 'wizard',
destroyOnUnmount: false,
forceUnregisterOnUnmount: true,
validate: WizardFormValidate
})(WizardForm3)
;
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{12:function(e,t,n){e.exports=n(23)},22:function(e,t,n){},23:function(e,t,n){"use strict";n.r(t);var a=n(2),i=n(3),s=n(5),r=n(4),u=n(6),c=n(0),o=n.n(c),l=n(9),m=n(11),h=n(1),d=n.n(h),v=n(10),f=n.n(v),p=n(7),S=n.n(p),O=function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(s.a)(this,Object(r.a)(t).call(this,e))).removeAnimation=function(){},n}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=this;this._mount();var t=this.props,n=t.animator;this.animator=n||new S.a,t.animate&&(this.removeAnimation=this.animator.add(function(n){var a=e.getCanvasElement(),i=e.getContext(),s=a.width,r=a.height;t.animate(i,s,r,n)}))}},{key:"componentWillUnmount",value:function(){this._unmount(),this.removeAnimation()}},{key:"render",value:function(){var e=this,t=this.props,n=(t.maintainPixelSize,t.onResize,t.animator,t.contextType,t.animate,Object(m.a)(t,["maintainPixelSize","onResize","animator","contextType","animate"]));return o.a.createElement("canvas",Object.assign({ref:function(t){return e.canvas=t}},n))}}]),t}(f.a);O.propTypes={maintainPixelSize:d.a.bool,onResize:d.a.func,contextType:d.a.string,animator:d.a.instanceOf(S.a),animate:d.a.func},O.defaultProps={maintainPixelSize:!0,contextType:"2d"};var b=O,P=(n(22),function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(s.a)(this,Object(r.a)(t).call(this,e))).x=0,n.secondInterval=0,n.state={FPS:0,actualFPS:0,pauseOnHidden:!1,resumeOnShown:!1},n}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=this.canvas.animator,t=e.FPS,n=e.actualFPS,a=e.pauseOnHidden,i=e.resumeOnShown;this.setState({FPS:t,actualFPS:n,pauseOnHidden:a,resumeOnShown:i})}},{key:"draw",value:function(){var e=this.canvas,t=e.getContext(),n=e.getCanvasElement(),a=n.width,i=n.height;t.clearRect(0,0,a,i),t.beginPath(),t.arc(this.x,50,40,0,2*Math.PI,!1),t.fillStyle="green",t.fill(),t.lineWidth=5,t.strokeStyle="#003300",t.stroke()}},{key:"animate",value:function(e,t,n,a){this.x=(this.x+200*a)%t,this.secondInterval+=a,this.secondInterval>.5&&(this.setState({actualFPS:1/a}),this.secondInterval=0),this.draw()}},{key:"setFPS",value:function(e){this.canvas.animator.setFPS(e),this.setState({FPS:e})}},{key:"setResumeOnShown",value:function(e){this.canvas.animator.setResumeOnShown(e),this.setState({resumeOnShown:e})}},{key:"setPauseOnHidden",value:function(e){this.canvas.animator.setPauseOnHidden(e),this.setState({pauseOnHidden:e})}},{key:"start",value:function(){this.canvas.animator.start()}},{key:"pause",value:function(){this.canvas.animator.pause()}},{key:"resume",value:function(){this.canvas.animator.resume()}},{key:"stop",value:function(){var e=this.canvas,t=e.getCanvasElement(),n=t.width,a=t.height;e.animator.stop(),this.x=0,e.getContext().clearRect(0,0,n,a)}},{key:"render",value:function(){var e=this,t=this.state,n=t.FPS,a=t.actualFPS,i=t.pauseOnHidden,s=t.resumeOnShown;return o.a.createElement("div",this.props,o.a.createElement(b,{className:"animation",ref:function(t){return e.canvas=t},animate:function(t,n,a,i){return e.animate(t,n,a,i)},onResize:function(){return e.draw()}}),o.a.createElement("div",{className:"settings"},o.a.createElement("div",{className:"field"},o.a.createElement("label",null,"Actual FPS: "),o.a.createElement("input",{type:"number",value:a.toFixed(2),disabled:!0,onChange:function(){}})),o.a.createElement("div",{className:"field"},o.a.createElement("label",null,"FPS: "),o.a.createElement("input",{type:"number",value:n,onChange:function(t){return e.setFPS(t.target.value)}})),o.a.createElement("div",{className:"field"},o.a.createElement("label",null,"Pause on hidden: "),o.a.createElement("input",{type:"checkbox",checked:i,onChange:function(t){return e.setPauseOnHidden(t.target.checked)}})),o.a.createElement("div",{className:"field"},o.a.createElement("label",null,"Resume on shown: "),o.a.createElement("input",{type:"checkbox",checked:s,onChange:function(t){return e.setResumeOnShown(t.target.checked)}}))))}}]),t}(c.Component)),k=function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(s.a)(this,Object(r.a)(t).call(this,e))).state={status:"STOPPED"},n}return Object(u.a)(t,e),Object(i.a)(t,[{key:"startHandler",value:function(){this.a1.start(),this.a2.start(),this.setState({status:"PLAYING"})}},{key:"pauseHandler",value:function(){this.a1.pause(),this.a2.pause()}},{key:"resumeHandler",value:function(){this.a1.resume(),this.a2.resume()}},{key:"stopHandler",value:function(){this.a1.stop(),this.a2.stop(),this.setState({status:"STOPPED"})}},{key:"render",value:function(){var e=this,t=this.state.status;return o.a.createElement("div",null,o.a.createElement(P,{ref:function(t){return e.a1=t},id:"animator1"}),o.a.createElement(P,{ref:function(t){return e.a2=t},id:"animator2"}),o.a.createElement("div",{id:"controller"},o.a.createElement("button",{id:"start",onClick:function(){return e.startHandler()},disabled:"STOPPED"!==t},"start"),o.a.createElement("button",{id:"pause",onClick:function(){return e.pauseHandler()}},"pause"),o.a.createElement("button",{id:"resume",onClick:function(){return e.resumeHandler()}},"resume"),o.a.createElement("button",{id:"stop",onClick:function(){return e.stopHandler()},disabled:"STOPPED"===t},"stop")))}}]),t}(c.Component);Object(l.render)(o.a.createElement(k,null),document.getElementById("root"))}},[[12,1,2]]]);
//# sourceMappingURL=main.c0c26c23.chunk.js.map
|
require('@babel/register');
({
ignore: /node_modules/
});
require('@babel/polyfill');
const HDWalletProvider = require('@truffle/hdwallet-provider');
let mnemonic = 'gloom kiwi office spot edge rescue spawn punch install deputy frame spirit';
let testAccounts = [
"0x5807a138697e2c8d3d72cf5c037c84ec6762bca92f8f3647f66985a77aeaef4d",
"0x6f8901148bc8d1546cc596e58c5f52a6300c52e10fdb9fd92d37691e6eb5a0f7",
"0x5b0ecc9a5240e04d8f8806c642dd2cb947243fbf10e23205e3f00974abe5922b",
"0x944ec9ddbb4f1ffa22d5abdb09f88388298bafd315ef869f3144f6da4adc87ee",
"0x3416da09ec9736bf56e143d61682380769363734b1d2bbb9c2d3d683949f053c",
"0xcf7ed6cc51370fdfb9cc7b71b86d0c684b0c837f44425d23802d1b9ce9e18e48",
"0x7a2ad508c570e68ba38350bc599db24f44e10b5fe25aa541878200d9ea9260b8",
"0x477f7407746239dbbd990a3a49e06f9024257ce7b6735ec205302cd3465ae4f2",
"0x1c3909f6cc806cde523e5d9c52b47223a7e7175e971b323acd73c0cd6348658e",
"0x6066cff887f20049c61f59271a31c5ff65e351a83783db9c5b161bce3378b569"
];
let devUri = 'https://rpc-mumbai.matic.today';
module.exports = {
testAccounts,
mnemonic,
networks: {
development: {
uri: devUri,
provider: () => new HDWalletProvider(
mnemonic,
devUri, // provider url
0, // address index
10, // number of addresses
true, // share nonce
`m/44'/60'/0'/0/` // wallet HD path
),
gas: 2000000,
network_id: 80001,
confirmations: 1,
timeoutBlocks: 100,
skipDryRun: true
}
},
compilers: {
solc: {
version: '^0.5.11'
}
}
};
|
module.exports = {
pages: {
index: {
entry: 'examples/main.js',
template: 'public/index.html',
filename: 'index.html'
}
},
chainWebpack: (config) => {
config.module
.rule('js')
.include
.add('/packages/')
.end()
.use('babel')
.loader('babel-loader')
.tap(options => {
return options
})
}
}
|
import React from "react"
import { useTranslation } from "gatsby-plugin-react-i18next"
import Layout from "../components/layout"
import SEO from "../components/seo"
import Banner from "../components/Banner/Banner.js"
import H2Article from "../components/Article/H2Article"
import BenefitsCard from "../components/BenefitsPage/BenefitsCard"
import BothSide from "../components/BenefitsPage/BothSide"
const bannerImg = `${process.env.GATSBY_CDN_CONFIG}/assets/image/branch/Benefits/Img/BenefitsBanner.jpg`
const bannerData = {
title: "Employee benefits",
content: `At Neurond AI,... get onboard!`,
buttonContent: "open positions",
}
const articleData = {
reverse: "reverse",
imgLink: `${process.env.GATSBY_CDN_CONFIG}/assets/image/branch/Benefits/Vector/TrainingAndProfessionalDevelopment.svg`,
h2Title: "Training and professional development",
description: [
`Neurond AI has... career objectives.`,
`Our employees... processes and methodology.`,
],
}
const BenefitsPage = () => {
const { t } = useTranslation()
return (
<Layout>
<SEO title={t("Benefits")} />
<Banner item={bannerData} backgroundImage={bannerImg} />
<section>
<H2Article item={articleData} />
<BenefitsCard />
</section>
<BothSide />
</Layout>
)
}
export default BenefitsPage
|
import { VERIFICATION_STATUSES } from '../../src';
import FIXTURES from '../fixtures';
const verifier = require('../../dist/verifier');
describe('verifier build test suite', function () {
it('works as expected with a v1 certificate', async function () {
const certificate = new verifier.Certificate(FIXTURES.TestnetV1Valid);
await certificate.init();
const result = await certificate.verify();
expect(result.status).toBe(VERIFICATION_STATUSES.FAILURE);
expect(result.message).toBe('The address used to issue this Blockcerts does not belong to the claimed issuer.');
});
});
|
var classv8_1_1internal_1_1_reg_exp_macro_assembler =
[
[ "GlobalMode", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a8c5dd9fba6bb0f236a08e824e5b83198", [
[ "NOT_GLOBAL", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a8c5dd9fba6bb0f236a08e824e5b83198a94ecd2a35d97feb8324107e8d04027ff", null ],
[ "GLOBAL_NO_ZERO_LENGTH_CHECK", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a8c5dd9fba6bb0f236a08e824e5b83198a5bd3e202770792d32f3a58b4d9fc7e7c", null ],
[ "GLOBAL", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a8c5dd9fba6bb0f236a08e824e5b83198af58a10282996c623781965e1c17deb44", null ],
[ "GLOBAL_UNICODE", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a8c5dd9fba6bb0f236a08e824e5b83198af3419291f8c78f1ae69fff9a5ed344c9", null ]
] ],
[ "IrregexpImplementation", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#aa25bfd5e513b3364931b82afd32f087d", [
[ "kIA32Implementation", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#aa25bfd5e513b3364931b82afd32f087dad4b715ad85fe750cde21af72385523aa", null ],
[ "kARMImplementation", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#aa25bfd5e513b3364931b82afd32f087da9d934c8ea5086f96cd54bcc5b597f89e", null ],
[ "kARM64Implementation", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#aa25bfd5e513b3364931b82afd32f087da14b14f8e1cf04f25302c4ca50bf168ef", null ],
[ "kMIPSImplementation", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#aa25bfd5e513b3364931b82afd32f087da079f258b1e322b1c5713690f643b2ade", null ],
[ "kS390Implementation", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#aa25bfd5e513b3364931b82afd32f087da0ae9d6f320ffa718b5567a9392c6203c", null ],
[ "kPPCImplementation", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#aa25bfd5e513b3364931b82afd32f087da4a4589faf15341cd372b0ad87f4ca741", null ],
[ "kX64Implementation", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#aa25bfd5e513b3364931b82afd32f087da464e34febcd39a050a2e5f7dfea60bf0", null ],
[ "kX87Implementation", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#aa25bfd5e513b3364931b82afd32f087da847b2a9cf36ee27ab17f641bfd8e8db1", null ],
[ "kBytecodeImplementation", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#aa25bfd5e513b3364931b82afd32f087da450015e7067e6d7753be1ce012b6e6be", null ]
] ],
[ "StackCheckFlag", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a91a9710d7239b05c338264daf2730f3b", [
[ "kNoStackLimitCheck", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a91a9710d7239b05c338264daf2730f3bafc7f2249dc4f07094d4e262fcc249a38", null ],
[ "kCheckStackLimit", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a91a9710d7239b05c338264daf2730f3ba2614b617305ac1fdf3d8a9ccf561323b", null ]
] ],
[ "RegExpMacroAssembler", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#aa4fc46f0406a21347225142b47201327", null ],
[ "~RegExpMacroAssembler", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#aeb88eb4222bb4006427f8bcbdcac072e", null ],
[ "AbortedCodeGeneration", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a3fdb2dd4ace9521cee0995f9e3c2b29e", null ],
[ "AdvanceCurrentPosition", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#abd0e490196a7e5485e6f4f024d35688f", null ],
[ "AdvanceRegister", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#aebf719b9944a4a6be84c46d5554e8283", null ],
[ "Backtrack", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a5dcae018cbb0d117c0ccd0062ecf67ef", null ],
[ "Bind", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a391acf2eec9925c733a0d12349bdb165", null ],
[ "CanReadUnaligned", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#ac12553b824b0bd97c2cce6d8637a6fd7", null ],
[ "CaseInsensitiveCompareUC16", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#ae69f86f4af77ac94c6b6570704f37d89", null ],
[ "CheckAtStart", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a5ecd7a813bf293dc9325c65840a2353b", null ],
[ "CheckBitInTable", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a26238606beb5c4dd46ccf3bd08f400ac", null ],
[ "CheckCharacter", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a7d8a5cb9434ebe6a748b75bff7849eaa", null ],
[ "CheckCharacterAfterAnd", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a663101d81689ecee9375b9b2216b827b", null ],
[ "CheckCharacterGT", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a828b95b58f1f3173e5dcbd4268239bde", null ],
[ "CheckCharacterInRange", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a873c96a4e121d2d86129085b086d3ced", null ],
[ "CheckCharacterLT", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a6da6588d1142120898c35726d44ba28a", null ],
[ "CheckCharacterNotInRange", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a63f2f1fe5214dbbd5143dc25d3c25279", null ],
[ "CheckGreedyLoop", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#abc266b4989f0c084987f50f20f1f3e23", null ],
[ "CheckNotAtStart", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a12b0a00f2d90487e6eccc9559f45a104", null ],
[ "CheckNotBackReference", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a3f57a3263201ff4724ee6504a079d72a", null ],
[ "CheckNotBackReferenceIgnoreCase", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a167317edcfc0cd3ef2326d7c08938875", null ],
[ "CheckNotCharacter", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#ae8333c77adc1f824766f1b8450e7135d", null ],
[ "CheckNotCharacterAfterAnd", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#afca08e02faa3cddd9ab89ecd5505e28c", null ],
[ "CheckNotCharacterAfterMinusAnd", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a6ec10ec5fa6560fa42fc8c473774852d", null ],
[ "CheckNotInSurrogatePair", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a213197a543acbc5e2aef5e4d2a11096b", null ],
[ "CheckPosition", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#aa506d0e3f87c6934d21ced6a776a729c", null ],
[ "CheckSpecialCharacterClass", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a50f9c35c57778c72994841897fda6d6b", null ],
[ "ClearRegisters", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#af27c82d6793671c4e55baa50655943e4", null ],
[ "Fail", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a0a9cebd794b4db9b3561ef1c2193887e", null ],
[ "GetCode", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#abcd2973036a4f070c0fccf2ed45af9ce", null ],
[ "global", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#aa5d11940ad624a215a8706d01573ca22", null ],
[ "global_unicode", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a49f5c3d17a70dfc99a0a46c2cfce0ef9", null ],
[ "global_with_zero_length_check", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#ab5f358d7a47b7993cc9cf8160836acd5", null ],
[ "GoTo", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#ae917b8d08e28a52204d8e3cfb65ae21e", null ],
[ "IfRegisterEqPos", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a4097b2943c7d1e5aa0d44df625c5cdf4", null ],
[ "IfRegisterGE", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#af9c100b024fc5106d78164a6ad832581", null ],
[ "IfRegisterLT", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a903c065fc63c4c470c3fab190f732691", null ],
[ "Implementation", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a95d43ccae92f8edbd7cfb002360fd151", null ],
[ "isolate", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a427e86ee343285b225666eca6a437681", null ],
[ "LoadCurrentCharacter", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a19c605442aa08ffb088368a98fed0243", null ],
[ "PopCurrentPosition", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#ad2077cab7ae1f13f8d8be972afd6e220", null ],
[ "PopRegister", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#accf76e0091230e0e29f58bed22826fcb", null ],
[ "PushBacktrack", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a3c79da20c15da3339defb598cdaeb45e", null ],
[ "PushCurrentPosition", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a96c21dc359474e6db50893c0b8fea4fe", null ],
[ "PushRegister", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a2d225e3c6813a1f170ae2aeb48898490", null ],
[ "ReadCurrentPositionFromRegister", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a810b1e8b1bf498658765a4d3358b8ead", null ],
[ "ReadStackPointerFromRegister", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a9da08910342d85b0ae9b444d9dd9a443", null ],
[ "set_global_mode", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a4fa0c060dbcabb9dac145301a719c37f", null ],
[ "set_slow_safe", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a5b98ff624af82e98e5fb7369aba4f334", null ],
[ "SetCurrentPositionFromEnd", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a7bd6e918db0bc938c5d26728c63b0b46", null ],
[ "SetRegister", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a545e20d50385d80782124f3562907417", null ],
[ "slow_safe", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a514e68e2f362575d6666a85cc4366e6e", null ],
[ "stack_limit_slack", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#ac8301db0110b57d8ee371480fd2f0475", null ],
[ "Succeed", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a1e08e084eb2fa2e7ebe538631fcaaefb", null ],
[ "WriteCurrentPositionToRegister", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#ab2c114d6736c553fb03d898c05aa19ec", null ],
[ "WriteStackPointerToRegister", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#ab20c01102f11c10c5077539e898bf063", null ],
[ "zone", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a79c2138f3a331246b9ae564a75968179", null ],
[ "global_mode_", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a7cef49db1b38e1f892e49626e4415a42", null ],
[ "isolate_", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a3fe359ddfdd9cf6a3c1f57a6502ec6c7", null ],
[ "kMaxCPOffset", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#ab05cfb65132cef288534e395a058d773", null ],
[ "kMaxRegister", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#aab3ae21c4255e84293d23f61d9916cbf", null ],
[ "kMinCPOffset", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a70bb0c9a038cdaff24b24f4af8fd9586", null ],
[ "kTableMask", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a9337d4910330fb9eb954b2b5e2ae933f", null ],
[ "kTableSize", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#aed8b41d2ad7dc04d332f8051017a12ea", null ],
[ "kTableSizeBits", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a8718bcee67dbdf905a30f8e81dfce44f", null ],
[ "slow_safe_compiler_", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a2357efbc563c1deeb1ab7f1fb7494a3d", null ],
[ "zone_", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a81e97e7085f2d48b2f5147557834a974", null ]
];
|
'use strict';
// Configuring the Articles module
//angular.module('articles').run(['Menus',
// function(Menus) {
// Set top bar menu items
// Menus.addMenuItem('topbar', 'Articles', 'articles', 'dropdown', '/articles(/create)?');
// Menus.addSubMenuItem('topbar', 'articles', 'List Articles', 'articles');
// Menus.addSubMenuItem('topbar', 'articles', 'New Article', 'articles/create');
// }
//]);
|
const path = require('path');
// Implement the Gatsby API “createPages”. This is called once the
// data layer is bootstrapped to let plugins create pages from data.
exports.createPages = async ({ graphql, actions, reporter }) => {
const { createPage } = actions;
// Query all tours from contentful
const result = await graphql(`
{
tours: allContentfulTour {
edges {
node {
slug
}
}
}
posts: allContentfulPost {
edges {
node {
slug
}
}
}
}
`);
// Handle errors
if (result.errors) {
reporter.panicOnBuild(`Error while building pages.`);
return;
}
// Create pages
const tourDetailPageTemplate = path.resolve(
`src/templates/TourDetailPage/index.js`
);
const blogDetailPageTemplate = path.resolve(
`src/templates/BlogDetailPage/index.js`
);
const blogPaginatedPageTemplate = path.resolve(
`src/templates/BlogsPaginatedPage/index.js`
);
result.data.tours.edges.forEach(({ node: { slug } }) => {
createPage({
path: `tours/${slug}`,
component: tourDetailPageTemplate,
// In the tour detail template's graphql query, use slug
// as a GraphQL variable to query for data from contentful.
context: {
slug,
},
});
});
result.data.posts.edges.forEach(({ node: { slug } }) => {
createPage({
path: `blog/${slug}`,
component: blogDetailPageTemplate,
context: {
slug,
},
});
});
const numberOfBlogPosts = result.data.posts.edges.length;
const postsPerPage = 5;
const numberOfPages = Math.ceil(numberOfBlogPosts / postsPerPage);
for (let i = 0; i < numberOfPages; i += 1) {
createPage({
path: i === 0 ? 'blogs' : `blogs/${i + 1}`,
component: blogPaginatedPageTemplate,
context: {
limit: postsPerPage,
skip: i * postsPerPage,
currentPage: i + 1,
numberOfPages,
},
});
}
};
|
define(
//begin v1.x content
({
insertEntity: "แทรกสัญลักษณ์"
})
//end v1.x content
);
|
import Vue from 'vue'
import VueRouter from 'vue-router'
import Layout from '@/layout'
Vue.use(VueRouter)
const routes = [
{
path: '/',
name: 'Home',
component: Layout,
redirect: '/index',
children: [
{
path: '/index',
name: 'Index',
component: () => import('@/views/index/index'),
}
]
},
{
path: '/content',
component: Layout,
redirect: '/index',
children: [
{
path: 'index/:text :src',
name: 'Content',
component: () => import('@/views/content/index')
}
]
},
// {
// path: '/test',
// name: 'Name',
// component: () => import('@/views/test/index')
// }
]
const router = new VueRouter({
mode: 'history',
base: process.env.BASE_URL,
routes
})
export default router
|
// This is a JavaScript file
$(document).on("click","#camera",function(){
navigator.camera.getPicture(onSuccess, onFail, {
quality: 50,
destinationType: Camera.DestinationType.FILE_URI,
correctOrientation: true,
saveToPhotoAlbum: true,
});
function onSuccess(imageURI) {
var image = document.getElementById('imagem');
image.src = imageURI;
}
function onFail(message) {
alert('Failed because: ' + message);
}
});
function editImage() {
var gs = $("#gs").val(); // grayscale
var blur = $("#blu").val(); // blur
var opacity = $("#opa").val(); //opacity
var saturate = $("#sat").val();//saturate
var filter = 'grayscale(' + gs+ '%) blur(' + blur + 'px) opacity(' + opacity + '%) saturate(' + saturate + '%)';
$("#imageContainer img").css("filter", filter);
}
$("input[type=range]").change(editImage).mousemove(editImage);
|
import React,{useState,useEffect} from "react";
//import React,{useState} from "react";
// @material-ui/core components
import Button from '@material-ui/core/Button';
import {Redirect,Switch,Route}from 'react-router-dom';
import { makeStyles } from "@material-ui/core/styles";
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
// core components
import Add from '../Add/add'
import axios from "axios";
import GridItem from "components/Grid/GridItem.js";
import GridContainer from "components/Grid/GridContainer.js";
import Table from "components/Table/Table.js";
import Card from "components/Card/Card.js";
import CardHeader from "components/Card/CardHeader.js";
import CardBody from "components/Card/CardBody.js";
import {displaystudent} from 'reduxStore/Action/Action';
let ans=[];
const styles = {
cardCategoryWhite: {
"&,& a,& a:hover,& a:focus": {
color: "rgba(0,0,0,.62)",
margin: "0",
fontSize: "14px",
marginTop: "0",
marginBottom: "0",
},
"& a,& a:hover,& a:focus": {
color: "#000",
},
},
cardTitleWhite: {
color: "#000",
marginTop: "0px",
minHeight: "auto",
fontWeight: "300",
fontFamily: "'Roboto', 'Helvetica', 'Arial', sans-serif",
marginBottom: "3px",
textDecoration: "none",
"& small": {
color: "#777",
fontSize: "65%",
fontWeight: "400",
lineHeight: "1",
},
},
};
const useStyles = makeStyles(styles);
function TableList(props) {
const classes = useStyles();
const [fatchdata, setFetchdata] = useState([]);
const [data,setData]=useState([]);
// eslint-disable-next-line no-unused-vars
const [flag, setFlag] = useState(0);
const flagvalue = (e) => {
e.preventDefault();
setFlag(1);
}
useEffect(() => {
/* (async () => {
ans = await axios("http://localhost:3001/student");
// console.log(ans.data);
setFetchdata(ans.data);
// props.displaystudent(ans.data);
})();
*/
}, []);
console.log("hello doll");
return (
<GridContainer>
<GridItem xs={12} sm={12} md={12}>
{flag === 1 ? (
<Switch>
<Redirect from="/admin/table" to="/admin/add" />
<Route path="/add" exact>
</Route>
</Switch>
) :null
}
<Card>
<CardHeader color="primary">
<h4 className={classes.cardTitleWhite}>Student List</h4>
<p className={classes.cardCategoryWhite}>
Here is a subtitle for this table
</p>
<Button style={{borderRadius:"10px",borderColor:"black"}} onClick={flagvalue}>Add Student</Button>
</CardHeader>
<CardBody>
<Table
tableHeaderColor="buttonGradient"
tableHead={["FirstName", "Lastname","Profile", "age", "er num","Edit","Delete"]}
// tableData={props.data}
status='student'
/>
</CardBody>
</Card>
</GridItem>
</GridContainer>
);
}
const mapStateToProps = state => {
console.log("this is state",state);
return {
data :state
};
}
const mapDispatchToProps = (dispatch) => {
return bindActionCreators({
displaystudent
}, dispatch)
}
export default connect(mapStateToProps, mapDispatchToProps)(TableList);
|
import React from "react";
import { Route, Navigate } from "react-router-dom";
import { auth } from '../auth';
import * as awsAuth from '../auth/aws-auth';
import { connect } from 'react-redux';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import posed, { PoseGroup } from "react-pose";
import { render, ReactDOM } from "react-dom";
import styled from "styled-components";
const Title = styled("p")`
color: #ccc;
`;
const PrivateRoute = ({
component: Component,
authenticated,
authenticating,
...rest
}) => {
return (
<Route {...rest} render={(props) =>
(authenticating) ? <div>Authenticating...</div> : (
authenticated === true ? (
<Component {...props} {...rest} />
) : (
<Navigate to="/login" />
)
)
}
/>
);
};
// <Redirect to="/login" />
const SecureRoute = ({ component: Component, authenticated, ...rest }) => (
<Route {...rest} render={(props) => (
authenticated === true ?
<Component {...props} /> : <Navigate to={{ pathname: '/login', state: { from: props.location } }} />
)} />
);
const AuthButton = ({ authenticated, history, ...rest }) => (
authenticated === true ?
(
<Title>Welcome <button className="btn btn-primary btn-sm" onClick={() => {
// auth.doSignOut();
awsAuth.doSignOut();
history.push('/');
}}><FontAwesomeIcon icon="sign-out-alt" /> Sign out</button></Title>
) : (<p>You are not logged in.</p>)
);
export default PrivateRoute;
export const ProtectedRoute = connect(({ auth }) => ({ authenticated: auth.authenticated }))(SecureRoute);
export const SecureButton = connect(({ auth }) => ({ authenticated: auth.authenticated }))(AuthButton);
|
export default class Product {
constructor(divId) {
if (divId) {
this.divContainerId = divId;
} else {
this.divContainerId = document;
}
}
init() {
this.addToWishlistClick();
this.addToSharedCartClick();
this.addToCartClick();
this.addAllToCartClick();
this.deleteWishlistClick();
}
addToCart(data, url, callback, isAddToCart) {
$('body>.loading-box').show();
data.requestFrom = "axios";
axios.post(url, data)
.then(function (result) {
if (result.data.StatusCode == 0) {
notification.warning(result.data.Message);
}
if (result.data.StatusCode == 1) {
let checkoutLink = "";
let cartLink = "";
if ($('#checkoutBtnId')) {
checkoutLink = $('#checkoutBtnId').attr('href');
}
if ($('#cartBtnId')) {
cartLink = $('#cartBtnId').attr('href');
}
let message = result.data.Message;
if (isAddToCart) {
let bottomNotification = `\n<div style='display: flex; justify-content: space-between; margin-top: 15px;'>
<a href='`+ cartLink + `' class='btn-notification'>View Cart</a>
<a href='`+ checkoutLink + `' class='btn-notification'>Checkout</a>
</div>`;
message += bottomNotification;
}
notification.success(message, false);
if (callback) callback(result.data.CountItems);
}
})
.catch(function (error) {
notification.error("Can not add the product to the cart.\n" + error.response.statusText);
})
.finally(function () {
$('body>.loading-box').hide();
});
return false;
}
// use in Wishlist Page
removeItem(data, url, message, callback) {
$('body>.loading-box').show();
axios.post(url, data)
.then(function (result) {
if (result.status == 200) {
notification.success(message);
$('#my-wishlist').html(result.data);
let product = new Product('#my-wishlist');
product.Init();
let count = $('#countWishListInPage').val();
if (callback) callback(count);
feather.replace();
}
if (result.status == 204) {
notification.error(result.statusText);
}
})
.catch(function (error) {
notification.error(error);
})
.finally(function () {
$('body>.loading-box').hide();
});
}
callbackAddToCart(selector, count) {
if (selector == ".jsCartBtn") { cartHelper.setCartReload(count); }
else if (selector == ".jsSharedCartBtn") { cartHelper.setSharedCartReload(count)}
else cartHelper.setWishlistReload(count);
}
addToSharedCartClick() {
let inst = this;
$(this.divContainerId).find('.addToSharedCart').each(function (i, e) {
$(e).click(function () {
let code = $(this).attr('data');
let callback = (count) => {
inst.callbackAddToCart('.jsSharedCartBtn', count);
};
inst.addToCart({ Code: code }, '/SharedCart/AddToCart', callback);
});
});
}
addToWishlistClick() {
let inst = this;
$(this.divContainerId).find('.addToWishlist').each(function (i, e) {
$(e).click(function () {
let code = $(this).attr('data');
let callback = (count) => {
inst.callbackAddToCart('#js-wishlist', count);
};
inst.addToCart({ Code: code }, '/Wishlist/AddToCart', callback);
});
});
}
addToCartClick() {
let inst = this;
$(this.divContainerId).find('.addToCart').each(function (i, e) {
$(e).attr("href", "javascript:void(0);")
$(e).click(function () {
let code = $(this).attr('data');
let data = {
Code: code
};
if ($(this).attr('qty')) data.Quantity = $(this).attr('qty');
if ($(this).attr('store')) data.Store = $(this).attr('store');
if ($(this).attr('selectedStore')) data.SelectedStore = $(this).attr('selectedStore');
let callback = (count) => {
inst.callbackAddToCart('.jsCartBtn', count);
};
inst.addToCart(data, '/DefaultCart/AddToCart', callback, true);
});
});
}
deleteWishlistClick() {
let inst = this;
$(this.divContainerId).find('.deleteLineItemWishlist').each(function (i, e) {
$(e).click(function () {
if (confirm("Are you sure?")) {
let code = $(e).attr('data');
let data = { Code: code, Quantity: 0, RequestFrom: "axios" };
let callback = (count) => {
inst.callbackAddToCart("#js-wishlist", count);
};
inst.removeItem(data, '/Wishlist/ChangeCartItem', "Removed " + code + " from wishlist", callback);
}
});
});
}
addAllToCartClick() {
$(this.divContainerId).find('.jsAddAllToCart').each(function (i, e) {
$(e).click(function () {
$('.loading-box').show();
let url = $(this).attr('url');
axios.post(url)
.then(function (result) {
notification.success(result.data.Message);
cartHelper.setCartReload(result.data.CountItems);
})
.catch(function (error) {
notification.error(error);
})
.finally(function () {
$('.loading-box').hide();
});
});
});
}
}
|
define("add",[],function(){return function(e,t){return e+t}}),define("minus",[],function(){return function(e,t){return e-t}}),define("pub/ten",[],function(){return function(e){return e*100}}),requirejs(["add","minus","pub/ten"],function(e,t,n){var r=1,i=2,s=e(r,i),o=t(r,i),u=n(r);console.log(s,o,u)}),define("app/index",function(){});
|
const path = require('path');
const slash = require('slash');
exports.createPages = ({ graphql, actions }) => {
const { createPage } = actions;
return new Promise((resolve, reject) => {
resolve(
graphql(`
{
allProjectsJson {
edges {
node {
name
description
headline
stack
tags
repo
image
featured
weight
route
team {
name
twitter
}
content {
title
description
screenshots {
screen
}
}
}
}
}
}
`).then(result => {
if (result.errors) {
reject(result.errors);
}
// Create pages for each project detail
const projectDetailsTemplate = path.resolve(`src/templates/ProjectLandingPage/index.js`);
result.data.allProjectsJson.edges.forEach(({ node }) => {
createPage({
path: `/${node.route.toLowerCase()}`,
component: slash(projectDetailsTemplate),
context: {
project: { ...node },
},
});
});
return;
})
);
});
};
|
const { nanoid } = require('nanoid');
const notes = require('./notes');
const addNoteHandler = (request, h) => {
const { title, tags, body } = request.payload;
const id = nanoid(16);
const createdAt = new Date().toISOString();
const updatedAt = createdAt;
const newNote = {
title, tags, body, id, createdAt, updatedAt,
};
notes.push(newNote);
const isSuccess = notes.filter((note) => note.id === id).length > 0;
if (isSuccess) {
const response = h.response({
status: 'success',
message: 'Catatan berhasil ditambahkan',
data: {
noteId: id,
},
});
response.code(201);
return response;
}
const response = h.response({
status: 'fail',
message: 'Catatan gagal ditambahkan',
});
response.code(500);
return response;
};
const getAllNotesHandler = () => ({
status: 'success',
data: {
notes,
},
});
const getNoteByIdHandler = (request, h) => {
const { id } = request.params;
const note = notes.filter((n) => n.id === id)[0];
if (note !== undefined) {
return {
status: 'success',
data: {
note,
},
};
}
const response = h.response({
status: 'fail',
message: 'Catatan tidak ditemukan',
});
response.code(404);
return response;
};
const editNoteByIdHandler = (request, h) => {
const { id } = request.params;
const { title, tags, body } = request.payload;
const updatedAt = new Date().toISOString();
const index = notes.findIndex((note) => note.id === id);
if (index !== -1) {
notes[index] = {
...notes[index],
title, tags, body, updatedAt,
};
const response = h.response({
status: 'success',
message: 'Catatan berhasil diperbarui',
});
response.code(200);
return response;
}
const response = h.response({
status: 'fail',
message: 'Gagal memperbarui catatan. Id tidak ditemukan',
});
response.code(404);
return response;
};
const deleteNoteByIdHandler = (request, h) => {
const { id } = request.params;
const index = notes.findIndex((note) => note.id === id);
if (index !== -1) {
notes.splice(index, 1);
const response = h.response({
status: 'success',
message: 'Catatan berhasil dihapus',
});
response.code(200);
return response;
}
const response = h.response({
status: 'fail',
message: 'Catatan gagal dihapus. Id tidak ditemukan',
});
response.code(404);
return response;
};
module.exports = {
addNoteHandler, getAllNotesHandler, getNoteByIdHandler, editNoteByIdHandler, deleteNoteByIdHandler,
};
|
(this.webpackJsonpadmin=this.webpackJsonpadmin||[]).push([[43,57],{625:function(e,t,c){"use strict";c.d(t,"a",(function(){return u}));var n=c(43),r=c(158),s=c(1),a=c.n(s),i=c(621),o=c(20),j=function(e){var t=e.name,c=e.text,s=Object(r.a)(e,["name","text"]),a=t?"https://coreui.io/react/docs/components/".concat(t):e.href;return Object(o.jsx)("div",{className:"card-header-actions",children:Object(o.jsx)(i.T,Object(n.a)(Object(n.a)({},s),{},{href:a,rel:"noreferrer noopener",target:"_blank",className:"card-header-action",children:Object(o.jsx)("small",{className:"text-muted",children:c||"docs"})}))})},u=a.a.memo(j)},671:function(e,t,c){"use strict";c.r(t),c.d(t,"getIconsView",(function(){return j}));var n=c(623),r=(c(1),c(621)),s=c(637),a=c(1032),i=c(625),o=c(20),j=function(e){return Object.entries(e).map((function(e){var t,c=Object(n.a)(e,2),a=c[0],i=c[1];return Object(o.jsxs)(r.o,{className:"mb-5",xs:"6",sm:"4",md:"3",xl:"2",children:[Object(o.jsx)(s.a,{content:i,size:"2xl"}),Object(o.jsx)("div",{children:(t=a,t.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase())})]},a)}))};t.default=function(){return Object(o.jsxs)(r.j,{children:[Object(o.jsxs)(r.n,{children:["Brand Icons",Object(o.jsx)(i.a,{href:"https://github.com/coreui/coreui-icons",text:"GitHub"})]}),Object(o.jsx)(r.k,{children:Object(o.jsx)(r.mb,{className:"text-center",children:j(a.a)})})]})}},924:function(e,t,c){"use strict";c.r(t);c(1);var n=c(621),r=c(1033),s=c(671),a=c(625),i=c(20);t.default=function(){return Object(i.jsxs)(n.j,{children:[Object(i.jsxs)(n.n,{children:["Free Icons / as CIcon"," ",Object(i.jsx)(a.a,{href:"https://github.com/coreui/coreui-icons",text:"GitHub"})]}),Object(i.jsx)(n.k,{children:Object(i.jsx)(n.mb,{className:"text-center",children:Object(s.getIconsView)(r.a)})})]})}}}]);
//# sourceMappingURL=43.319e2c7f.chunk.js.map
|
'use strict'
const path = require('path')
const utils = require('./utils')
const webpack = require('webpack')
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
function resolve (dir) {
return path.join(__dirname, '..', dir)
}
const createLintingRule = () => ({
test: /\.(js|vue)$/,
loader: 'eslint-loader',
enforce: 'pre',
include: [resolve('src'), resolve('test')],
options: {
formatter: require('eslint-friendly-formatter'),
emitWarning: true
}
})
module.exports = {
context: path.resolve(__dirname, '../'),
entry: {
'vue-lib-template': './src/index.js'
},
output: {
path: path.resolve(__dirname, '../dist'),
filename: '[name].mini.js',
library: 'VueLibTemplate',
libraryTarget: 'umd'
},
resolve: {
extensions: ['.js', '.vue', '.json'],
alias: {
'vue$': 'vue/dist/vue.esm.js',
'@': resolve('src')
},
modules: ['node_modules']
},
module: {
rules: [
...[createLintingRule()],
...utils.styleLoaders(),
{
test: /\.vue$/,
loader: 'vue-loader',
options: {
loaders: utils.cssLoaders(),
transformToRequire: {
video: ['src', 'poster'],
source: 'src',
img: 'src',
image: 'xlink:href'
}
}
},
{
test: /\.js$/,
loader: 'babel-loader',
include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client')]
},
{
test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
loader: 'url-loader',
options: {
limit: 10000,
name: path.posix.join('static', 'img/[name].[hash:7].[ext]')
}
},
{
test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/,
loader: 'url-loader',
options: {
limit: 10000,
name: path.posix.join('static', 'media/[name].[hash:7].[ext]')
}
},
{
test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
loader: 'url-loader',
options: {
limit: 10000,
name: path.posix.join('static', 'fonts/[name].[hash:7].[ext]')
}
}
]
},
plugins: [
new UglifyJsPlugin({
uglifyOptions: {
compress: {
warnings: false
}
},
sourceMap: false
}),
new webpack.LoaderOptionsPlugin({
minimize: true
})
]
}
|
/**
* @module Hiori.test.js
* @author cloudiirain
* @description Unit tests for Hiori class
*/
'use strict';
const chai = require('chai');
const expect = chai.expect;
const { Hiori } = require('../../index.js');
// Run tests
describe('Hiori', function () {
describe('constructor', function () {
context('with a username and password', function () {
it('should construct a Hiori object');
});
context('with no username or password', function () {
it('should throw a RangeError');
});
});
describe('init', function () {
it('should initialize the Hiori bot');
});
describe('goTo', function () {
context('with a good url', function () {
it('should return a Cheerio if everything is okay');
it('should throw a NavigationError if any dependency fails');
});
context('with a bad url', function () {
it('should throw a RangeError');
});
});
describe('isLoggedIn', function () {
it('should return false if hiori hasn\'t navigated anywhere yet');
it('should return false if hiori has navigated to a non-NUF page');
it('should return false if NUF page lacks logged-in user dropdown');
it('should return true if NUF page has logged-in user dropdown');
});
describe('login', function () {
it('should not login again if hiori is already logged in');
it('should throw a ParserError if login page HTML is bad');
});
describe('fetchThreadPosts', function () {
it('should throw a NotFoundError if the thread page doesn\'t exist');
it('should throw a ParserError if the thread page HTML is bad');
});
describe('fetchThreadPostsSince', function () {
it('should throw a NotFoundError if the thread post doesn\'t exist');
it('should return a list of ThreadPostJSON');
it('should not return posts older than the specified postID');
});
describe('fetchThreadCommandsSince', function () {
it('should return a list of DetailedCommands with post context');
it('the first command should have a null prevPost');
});
describe('fetchThreadLastPageURL', function () {
it('should return the URL of the last page in a thread series');
it('should return false if no last page could be detected');
});
describe('replyThread', function () {
it('should throw a RangeError if no message is provided');
it('should throw a RangeError if message length is greater than 100,000 characters');
it('should login hiori if not logged in already');
it('should throw a NotFoundError if the reply page doesn\'t exist');
it('should throw a ParserError if the reply page HTML is bad');
});
describe('decodeUserstr', function () {
it('should convert an @USER:1234|Username string to a user object', function () {
const str = '@USER:1234|hiori';
const obj = Hiori.decodeUserstr(str);
expect(obj.uid).to.be.equal(1234);
expect(obj.user).to.be.equal('hiori');
});
it('should convert to regular spaces', function () {
const str = '@USER:1234|Hello I Am A Tree';
const obj = Hiori.decodeUserstr(str);
expect(obj.user).to.be.equal('Hello I Am A Tree');
});
});
})
|
var searchData=
[
['allowescapecharacter_755',['AllowEscapeCharacter',['../namespacedaw_1_1json.html#a75daffb79d06d1d88576d3de104f3b05',1,'daw::json']]]
];
|
/**
* @author astrodud / http://astrodud.isgreat.org/
* @author zz85 / https://github.com/zz85
* @author bhouston / http://clara.io
*/
// points - to create a closed torus, one must use a set of points
// like so: [ a, b, c, d, a ], see first is the same as last.
// segments - the number of circumference segments to create
// phiStart - the starting radian
// phiLength - the radian (0 to 2*PI) range of the lathed section
// 2*pi is a closed lathe, less than 2PI is a portion.
THREE.LatheGeometry = function ( points, segments, phiStart, phiLength ) {
THREE.Geometry.call( this );
this.type = 'LatheGeometry';
this.parameters = {
points: points,
segments: segments,
phiStart: phiStart,
phiLength: phiLength
};
segments = segments || 12;
phiStart = phiStart || 0;
phiLength = phiLength || 2 * Math.PI;
var inversePointLength = 1.0 / ( points.length - 1 );
var inverseSegments = 1.0 / segments;
for ( var i = 0, il = segments; i <= il; i ++ ) {
var phi = phiStart + i * inverseSegments * phiLength;
var c = Math.cos( phi ),
s = Math.sin( phi );
for ( var j = 0, jl = points.length; j < jl; j ++ ) {
var pt = points[ j ];
var vertex = new THREE.Vector3();
vertex.x = c * pt.x - s * pt.y;
vertex.y = s * pt.x + c * pt.y;
vertex.z = pt.z;
this.vertices.push( vertex );
}
}
var np = points.length;
for ( var i = 0, il = segments; i < il; i ++ ) {
for ( var j = 0, jl = points.length - 1; j < jl; j ++ ) {
var base = j + np * i;
var a = base;
var b = base + np;
var c = base + 1 + np;
var d = base + 1;
var u0 = i * inverseSegments;
var v0 = j * inversePointLength;
var u1 = u0 + inverseSegments;
var v1 = v0 + inversePointLength;
this.faces.push( new THREE.Face3( a, b, d ) );
this.faceVertexUvs[ 0 ].push( [
new THREE.Vector2( u0, v0 ),
new THREE.Vector2( u1, v0 ),
new THREE.Vector2( u0, v1 )
] );
this.faces.push( new THREE.Face3( b, c, d ) );
this.faceVertexUvs[ 0 ].push( [
new THREE.Vector2( u1, v0 ),
new THREE.Vector2( u1, v1 ),
new THREE.Vector2( u0, v1 )
] );
}
}
this.mergeVertices();
this.computeFaceNormals();
this.computeVertexNormals();
};
THREE.LatheGeometry.prototype = Object.create( THREE.Geometry.prototype );
THREE.LatheGeometry.prototype.constructor = THREE.LatheGeometry;
|
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// ** This file is automatically generated by gapic-generator-typescript. **
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** All changes to this file may be overwritten. **
/* eslint-disable node/no-missing-require, no-unused-vars */
const gateway = require('@google-cloud/gke-connect-gateway');
function main() {
const gatewayServiceClient = new gateway.GatewayServiceClient();
}
main();
|
import $ from 'jquery';
import dateSerialization from 'core/utils/date_serialization';
import Tooltip from 'ui/tooltip';
import tooltip from 'ui/tooltip/ui.tooltip';
import resizeCallbacks from 'core/utils/resize_callbacks';
import fx from 'animation/fx';
import dateLocalization from 'localization/date';
import messageLocalization from 'localization/message';
import { DataSource } from 'data/data_source/data_source';
import keyboardMock from '../../helpers/keyboardMock.js';
import devices from 'core/devices';
import dataUtils from 'core/element_data';
import { createWrapper, initTestMarkup } from '../../helpers/scheduler/helpers.js';
import { getSimpleDataArray } from '../../helpers/scheduler/data.js';
import 'generic_light.css!';
import 'ui/scheduler/ui.scheduler';
const dateFormat = 'monthandday';
const timeFormat = 'shorttime';
const { testStart, module, test } = QUnit;
testStart(() => initTestMarkup());
const moduleConfig = {
beforeEach() {
fx.off = true;
this.clock = sinon.useFakeTimers();
},
afterEach() {
fx.off = false;
tooltip.hide();
this.clock.restore();
}
};
module('Integration: Appointment tooltip', moduleConfig, () => {
const createScheduler = options => createWrapper($.extend(options, { height: 600 }));
const getDeltaTz = (schedulerTz, date) => schedulerTz * 3600000 + date.getTimezoneOffset() * 60000;
const getSampleData = () => [
{
text: 'Task 1',
startDate: new Date(2015, 1, 9, 1, 0),
endDate: new Date(2015, 1, 9, 2, 0)
},
{
text: 'Task 2',
startDate: new Date(2015, 1, 9, 11, 0),
endDate: new Date(2015, 1, 9, 12, 0)
}
];
test('Tooltip marker should be color up in resource color', function(assert) {
const views = ['workWeek', 'month'];
const data = [
{
text: 'Book Flights to San Fran for Sales Trip',
priorityId: 1,
startDate: new Date(2017, 4, 22, 12, 0),
endDate: new Date(2017, 4, 22, 13, 0)
}, {
text: 'Install New Router in Dev Room',
priorityId: 2,
startDate: new Date(2017, 4, 23, 14, 30),
endDate: new Date(2017, 4, 23, 15, 30)
}, {
text: 'Website Re-Design Plan',
priorityId: 3,
startDate: new Date(2017, 4, 24, 9, 30),
endDate: new Date(2017, 4, 24, 11, 30)
}, {
text: 'Approve Personal Computer Upgrade Plan',
priorityId: 4,
startDate: new Date(2017, 4, 25, 10, 0),
endDate: new Date(2017, 4, 25, 11, 0)
}
];
const priorities = [
{
text: 'Samantha Bright',
id: 1,
color: 'rgb(114, 123, 210)'
}, {
text: 'John Heart',
id: 2,
color: 'rgb(50, 201, 237)'
}, {
text: 'Todd Hoffman',
id: 3,
color: 'rgb(42, 126, 228)'
}, {
text: 'Sandra Johnson',
id: 4,
color: 'rgb(128, 193, 42)'
}
];
const scheduler = createScheduler({
dataSource: data,
views: views,
currentDate: new Date(2017, 4, 22),
startDayHour: 9,
endDayHour: 19,
width: 500,
height: 600,
resources: [
{
fieldExpr: 'priorityId',
allowMultiple: true,
dataSource: priorities,
label: 'Priority'
}
]
});
views.forEach(view => {
scheduler.option('currentView', view);
scheduler.appointments.getAppointments().each(index => {
scheduler.appointments.click(index);
const marker = scheduler.tooltip.getMarker();
assert.equal(marker.css('backgroundColor'), priorities[index].color, `marker color in tooltip should equal color in resource, ${view} view`);
});
});
});
test('After change view type, tooltip should be appear after click on appointment, group mode(T802158)', function(assert) {
const data = [
{
text: 'Website Re-Design Plan',
priorityId: 2,
startDate: new Date(2018, 4, 21, 9, 30),
endDate: new Date(2018, 4, 21, 11, 30)
}
];
const priorityData = [
{
text: 'Low Priority',
id: 1,
color: '#1e90ff'
}, {
text: 'High Priority',
id: 2,
color: '#ff9747'
}
];
const defaultViews = ['week', 'agenda', 'month'];
const scheduler = createScheduler({
dataSource: data,
views: defaultViews,
currentView: defaultViews[0],
crossScrollingEnabled: true,
currentDate: new Date(2018, 4, 21),
startDayHour: 9,
endDayHour: 16,
width: 800,
height: 600,
groups: ['priorityId'],
resources: [
{
fieldExpr: 'priorityId',
allowMultiple: false,
dataSource: priorityData,
label: 'Priority'
}
]
});
defaultViews.forEach(view => {
scheduler.option('currentView', view);
scheduler.appointments.click();
assert.ok(scheduler.tooltip.isVisible(), `tooltip should be visible after click on item in ${view} view`);
});
});
test('There is no need to check recurring appointment if editing.allowUpdating is false', function(assert) {
const scheduler = createScheduler({
editing: {
allowUpdating: false
},
currentDate: new Date(2015, 5, 15),
firstDayOfWeek: 1,
dataSource: [{
text: 'a',
startDate: new Date(2015, 5, 15, 10),
endDate: new Date(2015, 5, 15, 10, 30),
recurrenceRule: 'FREQ=MONTHLY'
}]
});
const $appointment = scheduler.appointments.getAppointment(0);
const itemData = dataUtils.data($appointment[0], 'dxItemData');
scheduler.instance.showAppointmentTooltip(itemData, $appointment);
scheduler.tooltip.clickOnItem();
assert.ok(scheduler.appointmentPopup.isVisible(), 'Popup is rendered instead of recurrence tooltip');
});
test('Delete button should not exist if editing.allowUpdating is false', function(assert) {
const scheduler = createScheduler({
editing: {
allowDeleting: false
},
currentDate: new Date(2015, 5, 15),
firstDayOfWeek: 1,
dataSource: [{
text: 'a',
startDate: new Date(2015, 5, 15, 10),
endDate: new Date(2015, 5, 15, 10, 30)
}]
});
const $appointment = scheduler.appointments.getAppointment(0);
const itemData = dataUtils.data($appointment[0], 'dxItemData');
scheduler.instance.showAppointmentTooltip(itemData, $appointment);
assert.notOk(scheduler.tooltip.hasDeleteButton(), 'Delete button should not exist');
});
test('Click on appointment should call scheduler.showAppointmentTooltip', function(assert) {
const data = new DataSource({
store: getSampleData()
});
const scheduler = createScheduler({ currentDate: new Date(2015, 1, 9), dataSource: data });
const stub = sinon.stub(scheduler.instance, 'showAppointmentTooltip');
scheduler.appointments.click(1);
assert.deepEqual(
stub.getCall(0).args[0],
{
startDate: new Date(2015, 1, 9, 11, 0),
endDate: new Date(2015, 1, 9, 12, 0),
text: 'Task 2'
},
'showAppointmentTooltip has a right arguments'
);
});
test('Shown tooltip should have right boundary', function(assert) {
const tasks = [
{
text: 'Task 1',
startDate: new Date(2015, 1, 9, 1, 0),
endDate: new Date(2015, 1, 9, 2, 0)
},
{
text: 'Task 2',
startDate: new Date(2015, 1, 9, 11, 0),
endDate: new Date(2015, 1, 9, 11, 0, 30),
allDay: true
}
];
const data = new DataSource({
store: tasks
});
const scheduler = createScheduler({ currentDate: new Date(2015, 1, 9), dataSource: data });
const $firstAppointment = $(scheduler.instance.$element()).find('.dx-scheduler-appointment').eq(1);
const firstItemData = dataUtils.data($firstAppointment[0], 'dxItemData');
scheduler.instance.showAppointmentTooltip(firstItemData, $firstAppointment);
assert.deepEqual(Tooltip.getInstance($('.dx-tooltip')).option('position').boundary.get(0), scheduler.instance.getWorkSpace().$element().find('.dx-scrollable-container').get(0), 'Boundary is correct');
const $secondAppointment = $(scheduler.instance.$element()).find('.dx-scheduler-appointment').eq(0);
const secondItemData = dataUtils.data($secondAppointment[0], 'dxItemData');
scheduler.instance.showAppointmentTooltip(secondItemData, $secondAppointment);
assert.deepEqual(Tooltip.getInstance($('.dx-tooltip')).option('position').boundary.get(0), $(scheduler.instance.$element()).get(0), 'Boundary of allDay appointment is correct');
});
test('\'rtlEnabled\' option value should be passed to appointmentTooltip', function(assert) {
const data = new DataSource({
store: getSampleData()
});
const scheduler = createScheduler({ currentDate: new Date(2015, 1, 9), dataSource: data, rtlEnabled: true });
this.clock.tick();
scheduler.appointments.click(1);
assert.equal(Tooltip.getInstance($('.dx-tooltip')).option('rtlEnabled'), true, 'rtlEnabled for tooltip was set to true');
});
test('Click on tooltip-edit button should call scheduler._appointmentPopup and hide tooltip', function(assert) {
const data = new DataSource({
store: getSampleData()
});
const scheduler = createScheduler({
currentDate: new Date(2015, 1, 9),
dataSource: data
});
const stub = sinon.stub(scheduler.instance._appointmentPopup, 'show');
scheduler.appointments.click(1);
scheduler.tooltip.clickOnItem();
const args = stub.getCall(0).args;
assert.deepEqual(args[0], {
startDate: new Date(2015, 1, 9, 11, 0),
endDate: new Date(2015, 1, 9, 12, 0),
text: 'Task 2'
},
'show has a right appointment data arg');
assert.equal(args[1], true, 'show has a right createNewAppointment arg');
assert.notOk(scheduler.tooltip.isVisible(), 'tooltip was hidden');
});
test('Scheduler appointment tooltip should has right content', function(assert) {
const data = new DataSource({
store: getSampleData()
});
const scheduler = createScheduler({ currentDate: new Date(2015, 1, 9), dataSource: data });
scheduler.appointments.click(1);
assert.equal(scheduler.tooltip.getContentElement().length, 1, 'one tooltip was shown');
assert.equal(scheduler.tooltip.getTitleText(), 'Task 2', 'tooltip title is correct');
assert.equal(scheduler.tooltip.getDateElement().length, 1, 'dates container was rendered');
assert.equal(scheduler.tooltip.hasDeleteButton(), 1, 'buttons container was rendered');
});
test('Scheduler appointment tooltip should has right content when appointmentTooltipTemplate is used', function(assert) {
const tasks = getSampleData();
const data = new DataSource({
store: tasks
});
const scheduler = createScheduler({
currentDate: new Date(2015, 1, 9),
dataSource: data,
appointmentTooltipTemplate: model => {
assert.deepEqual(model.appointmentData, tasks[1], 'data is right');
return $('<div>').addClass('new-scheduler-tooltip-template');
}
});
scheduler.appointments.click(1);
const $tooltip = $('.new-scheduler-tooltip-template');
assert.equal($tooltip.length, 1, 'one tooltip with template was shown');
});
test('Scheduler appointment tooltip dates are displayed with right format, date/week views', function(assert) {
const data = new DataSource({
store: getSampleData()
});
const scheduler = createScheduler({ currentDate: new Date(2015, 1, 9), dataSource: data, currentView: 'day' });
scheduler.appointments.click(1);
assert.equal(scheduler.tooltip.getDateText(), '11:00 AM - 12:00 PM', 'dates and time were displayed correctly');
});
test('Scheduler tooltip should be closed after call hideAppointmentTooltip', function(assert) {
const data = new DataSource({
store: getSampleData()
});
const scheduler = createScheduler({ currentDate: new Date(2015, 1, 9), dataSource: data, currentView: 'day' });
scheduler.appointments.click(1);
assert.ok(scheduler.tooltip.isVisible(), 'tooltip is shown');
scheduler.instance.hideAppointmentTooltip();
this.clock.tick(300);
assert.notOk(scheduler.tooltip.isVisible(), 'tooltip is hidden');
});
test('Appointment Tooltip on Day view should have a right dates', function(assert) {
const scheduler = createScheduler({
dataSource: [{
startDate: new Date(2016, 9, 5, 23, 30),
endDate: new Date(2016, 9, 6, 1),
text: 'new Date sample'
}],
currentDate: new Date(2016, 9, 6),
views: ['day'],
currentView: 'day',
cellDuration: 60
});
scheduler.appointments.click();
assert.equal(scheduler.tooltip.getDateText(), 'October 5 11:30 PM - October 6 1:00 AM', 'dates and time were displayed correctly');
});
test('Scheduler appointment tooltip dates should be correct, when custom timeZone is set', function(assert) {
const startDate = new Date(2015, 1, 9, 11);
const endDate = new Date(2015, 1, 9, 12);
const data = new DataSource({
store: [{
text: 'Task 2',
startDate: startDate,
endDate: endDate
}]
});
const deltaTz = getDeltaTz(5, startDate);
const scheduler = createScheduler({ currentDate: new Date(2015, 1, 9), dataSource: data, currentView: 'week', timeZone: 5 });
scheduler.appointments.click();
const expectedStartDate = dateLocalization.format(new Date(startDate.getTime() + deltaTz), 'shorttime');
const expectedEndDate = dateLocalization.format(new Date(endDate.getTime() + deltaTz), 'shorttime');
assert.equal(scheduler.tooltip.getDateText(), expectedStartDate + ' - ' + expectedEndDate, 'dates and time were displayed correctly');
});
test('Scheduler appointment tooltip dates should be correct, when custom timeZone is set as string', function(assert) {
const startDate = new Date(2015, 1, 9, 11);
const endDate = new Date(2015, 1, 9, 12);
const appointment = {
text: 'Task 2',
startDate: startDate,
endDate: endDate
};
const data = new DataSource({
store: [appointment]
});
const deltaTz = getDeltaTz(5, startDate);
const scheduler = createScheduler({ currentDate: new Date(2015, 1, 9), dataSource: data, currentView: 'week', timeZone: 'Asia/Ashkhabad' });
scheduler.appointments.click();
const expectedStartDate = dateLocalization.format(new Date(startDate.getTime() + deltaTz), 'shorttime');
const expectedEndDate = dateLocalization.format(new Date(endDate.getTime() + deltaTz), 'shorttime');
assert.equal(scheduler.tooltip.getDateText(), expectedStartDate + ' - ' + expectedEndDate, 'dates and time were displayed correctly');
});
test('Scheduler appointment tooltip dates should be correct, when appointment timeZone is set', function(assert) {
const appointment = {
text: 'Task',
startDate: new Date(2015, 1, 9, 11),
endDate: new Date(2015, 1, 9, 12),
startDateTimeZone: 'Asia/Ashkhabad', // +5
endDateTimeZone: 'Asia/Bishkek', // +6
};
const scheduler = createScheduler({
currentDate: new Date(2015, 1, 9),
dataSource: [appointment],
currentView: 'week'
});
const expectedDate = scheduler.appointments.getDateText(0);
scheduler.appointments.click(0);
assert.equal(scheduler.tooltip.getDateText(), expectedDate, 'dates and time were displayed correctly');
});
test('Scheduler appointment tooltip dates should be correct, when appointment timeZone and scheduler timeZone was set', function(assert) {
const appointment = {
text: 'Task',
startDate: new Date(2015, 1, 9, 11),
endDate: new Date(2015, 1, 9, 12),
Timezone: 'Asia/Ashkhabad'
};
const scheduler = createScheduler({
currentDate: new Date(2015, 1, 9),
dataSource: [appointment],
currentView: 'week',
startDateTimezoneExpr: 'Timezone',
timeZone: 'Asia/Qyzylorda'
});
const expectedDate = scheduler.appointments.getDateText(0);
scheduler.appointments.click(0);
assert.equal(scheduler.tooltip.getDateText(), expectedDate, 'dates and time were displayed correctly');
});
test('Scheduler appointment tooltip dates are displayed with right format, month view', function(assert) {
const data = new DataSource({
store: getSampleData()
});
const scheduler = createScheduler({ currentDate: new Date(2015, 1, 9), dataSource: data, currentView: 'month' });
scheduler.appointments.click(1);
assert.equal(scheduler.tooltip.getDateText(), 'February 9 11:00 AM - 12:00 PM', 'dates and time were displayed correctly');
});
test('Click on tooltip-remove button should call scheduler.deleteAppointment and hide tooltip', function(assert) {
const data = new DataSource({
store: getSampleData()
});
const scheduler = createScheduler({ currentDate: new Date(2015, 1, 9), dataSource: data });
const stub = sinon.stub(scheduler.instance, 'deleteAppointment');
scheduler.appointments.click(1);
scheduler.tooltip.clickOnDeleteButton();
assert.deepEqual(stub.getCall(0).args[0],
{
startDate: new Date(2015, 1, 9, 11, 0),
endDate: new Date(2015, 1, 9, 12, 0),
text: 'Task 2'
},
'deleteAppointment has a right arguments');
assert.notOk(scheduler.tooltip.isVisible(), 'tooltip was hidden');
});
test('Click on tooltip-remove button should call scheduler.updateAppointment and hide tooltip, if recurrenceRuleExpr and recurrenceExceptionExpr is set', function(assert) {
const scheduler = createScheduler({
currentDate: new Date(2018, 6, 30),
currentView: 'month',
views: ['month'],
recurrenceRuleExpr: 'SC_RecurrenceRule',
recurrenceExceptionExpr: 'SC_RecurrenceException',
recurrenceEditMode: 'occurrence',
dataSource: [{
text: 'Meeting of Instructors',
startDate: new Date(2018, 6, 30, 10, 0),
endDate: new Date(2018, 6, 30, 11, 0),
SC_RecurrenceRule: 'FREQ=DAILY;COUNT=3',
SC_RecurrenceException: '20170626T100000Z'
}
]
});
const stub = sinon.stub(scheduler.instance, '_updateAppointment');
scheduler.appointments.click(1);
scheduler.tooltip.clickOnDeleteButton();
const exceptionDate = new Date(2018, 6, 31, 10, 0, 0, 0);
const exceptionString = dateSerialization.serializeDate(exceptionDate, 'yyyyMMddTHHmmssZ');
assert.deepEqual(stub.getCall(0).args[1],
{
startDate: new Date(2018, 6, 30, 10, 0),
endDate: new Date(2018, 6, 30, 11, 0),
text: 'Meeting of Instructors',
SC_RecurrenceRule: 'FREQ=DAILY;COUNT=3',
SC_RecurrenceException: '20170626T100000Z,' + exceptionString
},
'updateAppointment has a right arguments');
assert.notOk(scheduler.tooltip.isVisible(), 'tooltip was hidden');
});
test('Tooltip should appear if mouse is over arrow icon', function(assert) {
const endDate = new Date(2015, 9, 12);
const scheduler = createScheduler({
currentDate: new Date(2015, 4, 6),
views: ['month'],
currentView: 'month',
firstDayOfWeek: 1,
dataSource: [{ startDate: new Date(2015, 4, 10), endDate: endDate }]
});
const $appointment = $(scheduler.instance.$element()).find('.dx-scheduler-appointment');
const $arrowIcon = $appointment.find('.dx-scheduler-appointment-reduced-icon');
$arrowIcon.trigger('dxpointerenter');
const $tooltip = $('.dx-tooltip');
assert.equal($tooltip.length, 1, 'Tooltip has appeared');
assert.equal(Tooltip.getInstance($tooltip).$content().text(), messageLocalization.format('dxScheduler-editorLabelEndDate') + ': October 12, 2015');
$arrowIcon.trigger('dxpointerleave');
assert.equal($('.dx-tooltip').length, 0, 'Tooltip has disappeared');
});
test('showAppointmentTooltip should be called after click on arrow icon and doesn\'t hide after pointerleave', function(assert) {
const endDate = new Date(2015, 9, 12);
const scheduler = createScheduler({
currentDate: new Date(2015, 4, 6),
views: ['month'],
currentView: 'month',
firstDayOfWeek: 1,
dataSource: [{ startDate: new Date(2015, 4, 10), endDate: endDate }]
});
const $appointment = $(scheduler.instance.$element()).find('.dx-scheduler-appointment');
const $arrowIcon = $appointment.find('.dx-scheduler-appointment-reduced-icon');
$arrowIcon.trigger('dxpointerenter');
$arrowIcon.eq(0).trigger('dxclick');
this.clock.tick(300);
$arrowIcon.trigger('dxpointerleave');
assert.ok(scheduler.tooltip.isVisible(), 'Appointment tooltip is shown');
});
test('Tooltip of allDay appointment should display right dates', function(assert) {
const startDate = new Date(2015, 2, 5);
const endDate = new Date(2015, 2, 6);
const scheduler = createScheduler({
currentDate: new Date(2015, 2, 4),
currentView: 'week',
dataSource: [{
text: 'a',
allDay: true,
startDate: startDate,
endDate: endDate
}]
});
scheduler.appointments.click();
assert.equal(scheduler.tooltip.getDateText(), dateLocalization.format(startDate, 'monthAndDay') + ' - ' + dateLocalization.format(endDate, 'monthAndDay'), 'dates were displayed correctly');
});
test('Tooltip of allDay appointment with startDate = endDate should display right date', function(assert) {
const startDate = new Date(2015, 2, 5, 6);
const endDate = new Date(2015, 2, 5, 10);
const scheduler = createScheduler({
currentDate: new Date(2015, 2, 4),
currentView: 'week',
dataSource: [{
text: 'a',
allDay: true,
startDate: startDate,
endDate: endDate
}]
});
scheduler.appointments.click();
assert.equal(scheduler.tooltip.getDateText(), dateLocalization.format(startDate, 'monthAndDay'), 'date was displayed correctly');
});
test('Tooltip of multiday appointment should display date & time for usual view', function(assert) {
const startDate = new Date(2015, 2, 5, 6);
const endDate = new Date(2015, 2, 6, 8);
const scheduler = createScheduler({
currentDate: new Date(2015, 2, 4),
currentView: 'week',
dataSource: [{
text: 'a',
startDate: startDate,
endDate: endDate
}]
});
scheduler.appointments.click(0);
const startDateString = dateLocalization.format(startDate, dateFormat) + ' ' + dateLocalization.format(startDate, timeFormat);
const endDateString = dateLocalization.format(endDate, dateFormat) + ' ' + dateLocalization.format(endDate, timeFormat);
assert.equal(scheduler.tooltip.getDateText(), startDateString + ' - ' + endDateString, 'dates were displayed correctly');
});
test('Tooltip of multiday appointment should display date & time for month view', function(assert) {
const startDate = new Date(2015, 2, 5, 6);
const endDate = new Date(2015, 2, 6, 8);
const scheduler = createScheduler({
currentDate: new Date(2015, 2, 4),
currentView: 'month',
dataSource: [{
text: 'a',
startDate: startDate,
endDate: endDate
}]
});
scheduler.appointments.click(0);
const startDateString = dateLocalization.format(startDate, dateFormat) + ' ' + dateLocalization.format(startDate, timeFormat);
const endDateString = dateLocalization.format(endDate, dateFormat) + ' ' + dateLocalization.format(endDate, timeFormat);
assert.equal(scheduler.tooltip.getDateText(), startDateString + ' - ' + endDateString, 'dates were displayed correctly');
});
test('Tooltip of appointment part after midnight should display right date & time', function(assert) {
const startDate = new Date(2015, 4, 25, 23, 0);
const endDate = new Date(2015, 4, 26, 1, 15);
const scheduler = createScheduler({
currentDate: new Date(2015, 4, 25),
currentView: 'week',
dataSource: [{
text: 'a',
startDate: startDate,
endDate: endDate
}]
});
scheduler.appointments.click(1);
const startDateString = dateLocalization.format(startDate, dateFormat) + ' ' + dateLocalization.format(startDate, timeFormat);
const endDateString = dateLocalization.format(endDate, dateFormat) + ' ' + dateLocalization.format(endDate, timeFormat);
assert.equal(scheduler.tooltip.getDateText(), startDateString + ' - ' + endDateString, 'dates were displayed correctly');
});
test('Tooltip of recurrence appointment part after midnight should display right date & time', function(assert) {
const startDate = new Date(2015, 4, 25, 23, 0);
const endDate = new Date(2015, 4, 26, 1, 15);
const scheduler = createScheduler({
currentDate: new Date(2015, 4, 25),
currentView: 'month',
dataSource: [{
text: 'a',
startDate: startDate,
endDate: endDate,
recurrenceRule: 'FREQ=DAILY;INTERVAL=5'
}]
});
scheduler.appointments.click(2);
assert.equal(scheduler.tooltip.getDateText(), 'May 30 11:00 PM - May 31 1:15 AM', 'dates were displayed correctly');
});
test('Tooltip for recurrence appointment should display right dates(T384181)', function(assert) {
const startDate = new Date(2015, 1, 5, 11);
const endDate = new Date(2015, 1, 5, 12);
const scheduler = createScheduler({
currentDate: new Date(2015, 1, 4),
views: ['month'],
currentView: 'month',
dataSource: [{
text: 'a',
startDate: startDate,
endDate: endDate,
recurrenceRule: 'FREQ=DAILY'
}]
});
scheduler.appointments.click(1);
assert.equal(scheduler.tooltip.getDateText(), 'February 6 11:00 AM - 12:00 PM', 'dates and time were displayed correctly');
});
test('Tooltip should hide when window was resized', function(assert) {
const scheduler = createScheduler({
currentDate: new Date(2016, 1, 11),
currentView: 'week',
dataSource: [{
text: 'a',
allDay: true,
startDate: new Date(2016, 1, 11, 10),
endDate: new Date(2016, 1, 11, 15)
}]
});
scheduler.appointments.click();
assert.ok(scheduler.tooltip.isVisible(), 'tooltip was shown');
resizeCallbacks.fire();
assert.notOk(scheduler.tooltip.isVisible(), 'tooltip was hidden');
});
test('Appointment tooltip should be hidden after immediately delete key pressing', function(assert) {
const appt = {
text: 'a',
allDay: true,
startDate: new Date(2016, 1, 11, 10),
endDate: new Date(2016, 1, 11, 15)
};
const scheduler = createScheduler({
currentDate: new Date(2016, 1, 11),
currentView: 'week',
dataSource: [appt],
focusStateEnabled: true
});
const $appt1 = $(scheduler.instance.$element()).find('.dx-scheduler-appointment').eq(0);
const keyboard = keyboardMock($appt1);
const notifyStub = sinon.spy(scheduler.instance.getAppointmentsInstance(), 'notifyObserver');
$appt1.trigger('dxclick');
keyboard.keyDown('del');
this.clock.tick(300);
assert.ok(notifyStub.called, 'notify is called');
assert.ok(notifyStub.withArgs('onDeleteButtonPress').called, 'onDeleteButtonPress is called');
assert.notOk(notifyStub.withArgs('showAppointmentTooltip').called, 'showAppointmentTooltip isn\'t called');
});
test('Tooltip should has right boundary in timeline view if appointment is allDay', function(assert) {
const scheduler = createScheduler({
dataSource: [{
startDate: new Date(2018, 8, 24),
endDate: new Date(2018, 8, 25)
}],
currentView: 'timelineDay',
currentDate: new Date(2018, 8, 24)
});
scheduler.appointments.click(0);
const tooltip = Tooltip.getInstance($('.dx-tooltip'));
const tooltipBoundary = tooltip.option('position').boundary.get(0);
const containerBoundary = scheduler.instance.getWorkSpaceScrollableContainer().get(0);
assert.deepEqual(tooltipBoundary, containerBoundary, 'tooltip has right boundary');
});
test('the targetedAppointmentData parameter appends to arguments of the appointment tooltip template for a recurrence rule', function(assert) {
const scheduler = createScheduler({
dataSource: [{
startDate: new Date(2015, 4, 24, 9),
endDate: new Date(2015, 4, 24, 11),
allDay: true,
recurrenceRule: 'FREQ=DAILY;COUNT=3',
text: 'Task 2'
}],
height: 600,
currentDate: new Date(2015, 4, 24),
currentView: 'month',
views: ['month'],
appointmentTooltipTemplate: model => {
assert.deepEqual(model.targetedAppointmentData, {
allDay: true,
endDate: new Date(2015, 4, 25, 11),
recurrenceRule: 'FREQ=DAILY;COUNT=3',
startDate: new Date(2015, 4, 25, 9),
text: 'Task 2'
});
}
});
scheduler.appointments.click(1);
});
test('the targetedAppointmentData parameter appends to arguments of the appointment tooltip template for a non-recurrence rule', function(assert) {
const scheduler = createScheduler({
dataSource: [{
startDate: new Date(2015, 4, 24, 9),
endDate: new Date(2015, 4, 24, 11),
text: 'Task 1'
}],
height: 600,
currentDate: new Date(2015, 4, 24),
currentView: 'month',
views: ['month'],
appointmentTooltipTemplate: model => {
assert.deepEqual(model.targetedAppointmentData, {
startDate: new Date(2015, 4, 24, 9),
endDate: new Date(2015, 4, 24, 11),
text: 'Task 1'
});
}
});
scheduler.appointments.click(0);
});
});
QUnit.module('Appointment tooltip template', moduleConfig, () => {
const checkAppointmentDataInTooltipTemplate = (assert, dataSource, currentDate) => {
const scheduler = createWrapper({
dataSource: dataSource,
height: 600,
currentDate: currentDate,
currentView: 'month',
views: ['month'],
appointmentTooltipTemplate: model => {
assert.equal(dataSource.indexOf(model.appointmentData), 0, 'appointment data contains in the data source');
}
});
scheduler.appointments.click(0);
};
test('The appointmentData argument of the appointment tooltip template is should be instance of the data source', function(assert) {
const dataSource = [
{
text: 'Task 1',
startDate: new Date(2015, 1, 9, 1, 0),
endDate: new Date(2015, 1, 9, 2, 0)
},
{
text: 'Task 2',
startDate: new Date(2015, 1, 9, 11, 0),
endDate: new Date(2015, 1, 9, 12, 0)
}
];
checkAppointmentDataInTooltipTemplate(assert, dataSource, new Date(2015, 1, 9));
});
test('The appointmentData argument of the appointment tooltip template is should be instance of the data source for recurrence rule', function(assert) {
const dataSource = [{
startDate: new Date(2015, 4, 24, 9),
endDate: new Date(2015, 4, 24, 11),
recurrenceRule: 'FREQ=DAILY;COUNT=3',
allDay: true,
text: 'Task 1'
}, {
startDate: new Date(2015, 4, 24, 19),
endDate: new Date(2015, 4, 24, 31),
allDay: true,
recurrenceRule: 'FREQ=DAILY;COUNT=2',
text: 'Task 2'
}];
checkAppointmentDataInTooltipTemplate(assert, dataSource, new Date(2015, 4, 24));
});
});
QUnit.module('New common tooltip for compact and cell appointments', moduleConfig, () => {
const createScheduler = (options, data) => {
const defaultOption = {
dataSource: data || getSimpleDataArray(),
views: ['agenda', 'day', 'week', 'workWeek', 'month'],
currentView: 'month',
currentDate: new Date(2017, 4, 25),
startDayHour: 9,
height: 600,
};
return createWrapper($.extend(defaultOption, options));
};
test('Title in tooltip should equals title of cell appointments in month view', function(assert) {
const scheduler = createScheduler();
assert.notOk(scheduler.tooltip.isVisible(), 'On page load tooltip should be invisible');
for(let i = 0; i < scheduler.appointments.getAppointmentCount(); i++) {
scheduler.appointments.click(i);
assert.equal(scheduler.tooltip.getTitleText(), scheduler.appointments.getTitleText(i), 'Title in tooltip should be equal with appointment');
}
const compactAppointmentSample = [
['Install New Router in Dev Room'],
['New Brochures'],
['Upgrade Personal Computers'],
['Brochure Design Review'],
['Upgrade Server Hardware', 'Submit New Website Design']
];
for(let i = 0; i < scheduler.appointments.compact.getButtonCount(); i++) {
const compactAppointmentSampleItem = compactAppointmentSample[i];
scheduler.appointments.compact.click(i);
assert.equal(scheduler.appointments.compact.getButtonText(i), `${compactAppointmentSampleItem.length} more`, 'Count of compact appointments in button is match of count real appointments');
compactAppointmentSampleItem.forEach((sampleTitle, index) => {
assert.equal(scheduler.tooltip.getTitleText(index), sampleTitle, 'Title in tooltip should be equal with sample data');
});
}
});
test('Title in tooltip should equals title of cell appointments in other views', function(assert) {
const scheduler = createScheduler();
assert.notOk(scheduler.tooltip.isVisible(), 'On page load tooltip should be invisible');
const views = ['week', 'day', 'workWeek', 'agenda'];
const testTitles = () => {
for(let i = 0; i < scheduler.appointments.getAppointmentCount(); i++) {
scheduler.appointments.click(i);
assert.equal(scheduler.tooltip.getTitleText(), scheduler.appointments.getTitleText(i), 'Title in tooltip should be equal with appointment');
}
};
views.forEach(viewValue => {
scheduler.instance.option('currentView', viewValue);
testTitles();
});
});
test('Delete button in tooltip shouldn\'t render if editing = false', function(assert) {
const scheduler = createScheduler({
editing: false
});
for(let i = 0; i < scheduler.appointments.getAppointmentCount(); i++) {
scheduler.appointments.click(i);
assert.notOk(scheduler.tooltip.hasDeleteButton(), 'Delete button shouldn\'t render');
}
for(let i = 0; i < scheduler.appointments.compact.getButtonCount(); i++) {
scheduler.appointments.compact.click(i);
assert.notOk(scheduler.tooltip.hasDeleteButton(), 'Delete button shouldn\'t render for compact appointments');
}
scheduler.instance.option('editing', true);
for(let i = 0; i < scheduler.appointments.getAppointmentCount(); i++) {
scheduler.appointments.click(i);
assert.ok(scheduler.tooltip.hasDeleteButton(), 'Delete button should be render');
}
});
test('Compact button should hide or show after change in data source', function(assert) {
const dataList = getSimpleDataArray();
const scheduler = createScheduler({}, dataList);
assert.equal(scheduler.appointments.compact.getButtonText(), '1 more', 'Value on init should be correct');
assert.equal(scheduler.appointments.compact.getButtonCount(), 5, 'Count of compact buttons on init should be correct');
scheduler.instance.deleteAppointment(dataList[0]);
assert.equal(scheduler.appointments.compact.getButtonCount(), 4, 'Count of compact buttons should be reduce after delete appointment');
scheduler.instance.addAppointment({
text: 'Temp appointment',
startDate: new Date(2017, 4, 22, 9, 30),
endDate: new Date(2017, 4, 22, 11, 30)
});
assert.equal(scheduler.appointments.compact.getButtonText(), '1 more', 'Count of compact buttons should be increase after add appointment');
assert.equal(scheduler.appointments.compact.getButtonCount(), 5, 'Count of compact buttons should be increase after add appointment');
scheduler.instance.addAppointment({
text: 'Temp appointment 2',
startDate: new Date(2017, 4, 22, 9, 30),
endDate: new Date(2017, 4, 22, 11, 30)
});
assert.equal(scheduler.appointments.compact.getButtonText(), '2 more', 'Count of compact buttons should be increase after add appointment');
assert.equal(scheduler.appointments.compact.getButtonCount(), 5, 'Count of compact buttons shouldn\'t change');
});
test('Tooltip should hide after perform action', function(assert) {
const scheduler = createScheduler();
scheduler.appointments.click();
assert.ok(scheduler.tooltip.isVisible(), 'Tooltip should visible');
scheduler.tooltip.clickOnItem();
assert.notOk(scheduler.tooltip.isVisible(), 'Tooltip shouldn\'t visible');
scheduler.appointmentPopup.clickCancelButton();
scheduler.appointments.compact.click(scheduler.appointments.compact.getButtonCount() - 1);
assert.ok(scheduler.tooltip.isVisible(), 'Tooltip should visible');
scheduler.tooltip.clickOnItem(1);
assert.notOk(scheduler.tooltip.isVisible(), 'Tooltip shouldn\'t visible');
scheduler.appointmentPopup.clickCancelButton();
scheduler.appointments.compact.click(scheduler.appointments.compact.getButtonCount() - 1);
assert.equal(scheduler.tooltip.getItemCount(), 2, 'Count of items in tooltip should be equal 2');
scheduler.tooltip.clickOnDeleteButton(1);
assert.notOk(scheduler.tooltip.isVisible(), 'Tooltip shouldn\'t visible');
scheduler.appointments.compact.click(scheduler.appointments.compact.getButtonCount() - 1);
assert.equal(scheduler.tooltip.getItemCount(), 1, 'Count of items in tooltip should be equal 1');
scheduler.tooltip.clickOnDeleteButton();
assert.notOk(scheduler.tooltip.isVisible(), 'Tooltip shouldn\'t visible');
});
test('Tooltip should work correct in week view', function(assert) {
const DEFAULT_TEXT = 'Temp appointment';
const scheduler = createScheduler({
currentView: 'week',
width: 600
});
assert.equal(scheduler.appointments.compact.getButtonCount(), 0, 'Compact button shouldn\'t render on init');
scheduler.instance.addAppointment({
text: DEFAULT_TEXT,
startDate: new Date(2017, 4, 22, 9, 30),
endDate: new Date(2017, 4, 22, 11, 30)
});
assert.equal(scheduler.appointments.compact.getButtonCount(), 1, 'Compact button should render');
scheduler.appointments.compact.click();
assert.equal(scheduler.tooltip.getTitleText(), DEFAULT_TEXT, 'Title in tooltip should equal text in appointment cell');
scheduler.tooltip.clickOnDeleteButton();
assert.equal(scheduler.appointments.compact.getButtonCount(), 0, 'Compact button shouldn\'t render after click delete button');
});
test('appointmentTooltipTemplate method should pass valid arguments', function(assert) {
let templateCallCount = 0;
const scheduler = createScheduler({
appointmentTooltipTemplate: (model, index, contentElement) => {
assert.ok($(contentElement).hasClass('dx-list-item-content'), 'Content element should be list item');
assert.equal(model.targetedAppointmentData.text, model.appointmentData.text, 'targetedAppointmentData should be not empty');
assert.equal(index, templateCallCount, 'Index should be correct pass in template callback');
templateCallCount++;
return $('<div />').text(`template item index - ${index}`);
}
});
scheduler.appointments.click();
assert.ok(scheduler.tooltip.checkItemElementHtml(0, `template item index - ${0}`), `Template should render content contains ${0} item index`);
templateCallCount = 0;
const buttonCount = scheduler.appointments.compact.getButtonCount();
scheduler.appointments.compact.click(buttonCount - 1);
assert.ok(scheduler.tooltip.checkItemElementHtml(0, `template item index - ${0}`), `Template should render content contains ${0} item index. Compact appointments`);
assert.ok(scheduler.tooltip.checkItemElementHtml(1, `template item index - ${1}`), `Template should render content contains ${1} item index. Compact appointments`);
});
if(devices.current().deviceType === 'desktop') {
module('Keyboard navigation in tooltip', () => {
const ITEM_FOCUSED_STATE_CLASS_NAME = 'dx-state-focused';
test('List should be navigate by keyboard', function(assert) {
const scheduler = createScheduler();
const checkFocusedState = index => scheduler.tooltip.getItemElement(index).hasClass(ITEM_FOCUSED_STATE_CLASS_NAME);
scheduler.appointments.click();
assert.notOk(checkFocusedState(0), 'On first show tooltip, list item shouldn\'t focused');
const keyboard = keyboardMock(scheduler.tooltip.getContentElement());
keyboard.keyDown('down');
assert.ok(checkFocusedState(0), 'After press key down, list item should focused');
const buttonCount = scheduler.appointments.compact.getButtonCount();
scheduler.appointments.compact.click(buttonCount - 1);
assert.notOk(checkFocusedState(0), 'After tooltip showed, list item shouldn\'t focused');
keyboard.keyDown('down');
assert.ok(checkFocusedState(0), 'After press key down, first list item should focused');
keyboard.keyDown('down');
assert.ok(checkFocusedState(1), 'After press key down, second list item should focused');
});
test('focusStateEnabled property should disable or enable navigate in list', function(assert) {
const scheduler = createScheduler();
scheduler.appointments.click();
const buttonCount = scheduler.appointments.compact.getButtonCount();
const keyboard = keyboardMock(scheduler.tooltip.getContentElement());
const checkFocusedState = index => scheduler.tooltip.getItemElement(index).hasClass(ITEM_FOCUSED_STATE_CLASS_NAME);
scheduler.option('focusStateEnabled', false);
scheduler.appointments.compact.click(buttonCount - 1);
keyboard.keyDown('down');
assert.notOk(checkFocusedState(0));
scheduler.instance.hideAppointmentTooltip();
scheduler.option('focusStateEnabled', true);
scheduler.appointments.compact.click(buttonCount - 1);
keyboard.keyDown('down');
assert.ok(checkFocusedState(0));
});
});
}
test('onAppointmentDblClick event should raised after click on tooltip from collector and in adaptivity mode', function(assert) {
const options = {
onAppointmentClick: () => {}
};
const stub = sinon.stub(options, 'onAppointmentClick');
const scheduler = createScheduler(options);
scheduler.appointments.click();
stub.reset();
scheduler.tooltip.clickOnItem();
assert.equal(stub.callCount, 0, 'onAppointmentClick shouldn\'t raised after click on common tooltip');
scheduler.appointments.compact.click();
scheduler.tooltip.clickOnItem();
assert.equal(stub.callCount, 1, 'onAppointmentClick should raised after click on tooltip from collector');
stub.reset();
scheduler.instance.option('adaptivityEnabled', true);
scheduler.appointments.compact.click();
scheduler.tooltip.clickOnItem();
assert.equal(stub.callCount, 1, 'onAppointmentClick should raised in adaptivity mode');
});
test('Tooltip should crop list, if list has many items', function(assert) {
const scheduler = createScheduler({
dataSource: [
{
text: 'Prepare 2015 Marketing Plan',
startDate: new Date(2017, 4, 25, 11, 0),
endDate: new Date(2017, 4, 25, 13, 30)
}, {
text: 'Prepare 2015 Marketing Plan',
startDate: new Date(2017, 4, 25, 11, 0),
endDate: new Date(2017, 4, 25, 13, 30)
}, {
text: 'Prepare 2015 Marketing Plan',
startDate: new Date(2017, 4, 25, 11, 0),
endDate: new Date(2017, 4, 25, 13, 30)
}, {
text: 'Prepare 2015 Marketing Plan',
startDate: new Date(2017, 4, 25, 11, 0),
endDate: new Date(2017, 4, 25, 13, 30)
}, {
text: 'Prepare 2015 Marketing Plan',
startDate: new Date(2017, 4, 25, 11, 0),
endDate: new Date(2017, 4, 25, 13, 30)
}, {
text: 'Prepare 2015 Marketing Plan',
startDate: new Date(2017, 4, 25, 11, 0),
endDate: new Date(2017, 4, 25, 13, 30)
}
]
});
const { getItemCount, getItemElement, getOverlayContentElement } = scheduler.tooltip;
scheduler.appointments.compact.click();
assert.equal(getItemCount(), 4, 'Tooltip should render 4 items');
assert.ok(getItemElement().outerHeight() * 4 > getOverlayContentElement().outerHeight(), 'Tooltip height should less then list height');
scheduler.instance.option('dataSource', [
{
text: 'Prepare 2015 Marketing Plan',
startDate: new Date(2017, 4, 25, 11, 0),
endDate: new Date(2017, 4, 25, 13, 30)
}, {
text: 'Prepare 2015 Marketing Plan',
startDate: new Date(2017, 4, 25, 11, 0),
endDate: new Date(2017, 4, 25, 13, 30)
}, {
text: 'Prepare 2015 Marketing Plan',
startDate: new Date(2017, 4, 25, 11, 0),
endDate: new Date(2017, 4, 25, 13, 30)
}
]);
scheduler.appointments.compact.click();
assert.equal(getItemCount(), 1, 'Tooltip should render 1 item');
assert.roughEqual(getItemElement().outerHeight(), getOverlayContentElement().outerHeight(), 10, 'Tooltip height should equals then list height');
});
test('Component should draw correctly, if component append to container in appointmentTooltipTemplate', function(assert) {
const data = [
{
text: 'Website Re-Design Plan',
startDate: new Date(2017, 4, 22, 9, 30),
endDate: new Date(2017, 4, 22, 11, 30)
}, {
text: 'Book Flights to San Fran for Sales Trip',
startDate: new Date(2017, 4, 22, 12, 0),
endDate: new Date(2017, 4, 22, 13, 0),
allDay: true
}, {
text: 'Install New Router in Dev Room',
startDate: new Date(2017, 4, 22, 14, 30),
endDate: new Date(2017, 4, 22, 15, 30)
}, {
text: 'Approve Personal Computer Upgrade Plan',
startDate: new Date(2017, 4, 22, 10, 0),
endDate: new Date(2017, 4, 22, 11, 0)
}
];
const findButton = index => {
const tooltipContentElement = scheduler.tooltip.getItemElement(index);
return tooltipContentElement.find(`#button-${index}`).dxButton('instance');
};
const getExpectedText = index => `test-${index}`;
const scheduler = createScheduler({
dataSource: data,
views: ['month'],
currentView: 'month',
currentDate: new Date(2017, 4, 25),
appointmentTooltipTemplate: (model, index, container) => {
const div = $('<div>').attr('id', `button-${index}`);
$(container).append(div);
$(`#button-${index}`).dxButton({ text: `test-${index}` });
},
startDayHour: 9,
height: 600
});
scheduler.appointments.click();
assert.equal(findButton(0).option('text'), getExpectedText(0), 'dxButton component should placed in item of tooltip');
scheduler.appointments.compact.click();
assert.equal(findButton(0).option('text'), getExpectedText(0), 'dxButton component should placed in first item of compact tooltip');
assert.equal(findButton(1).option('text'), getExpectedText(1), 'dxButton component should placed in second item of compact tooltip');
});
test('onAppointmentDblClick should have correct targetedAppointmentData', function(assert) {
const scheduler = createScheduler({
views: [{
type: 'week',
maxAppointmentsPerCell: 1,
}],
currentDate: new Date(2020, 11, 1),
dataSource: [{
startDate: new Date(2020, 11, 1, 9),
endDate: new Date(2020, 11, 1, 9, 30),
recurrenceRule: 'FREQ=DAILY',
}, {
startDate: new Date(2020, 11, 1, 9),
endDate: new Date(2020, 11, 1, 9, 30),
recurrenceRule: 'FREQ=DAILY',
}],
currentView: 'week',
onAppointmentClick: ({ targetedAppointmentData }) => {
const expectedAppointment = {
startDate: new Date(2020, 11, 3, 9),
endDate: new Date(2020, 11, 3, 9, 30),
recurrenceRule: 'FREQ=DAILY',
};
assert.deepEqual(targetedAppointmentData, expectedAppointment, 'Correct targeted appointment');
},
});
scheduler.appointments.compact.click(2);
scheduler.tooltip.clickOnItem();
scheduler.appointmentPopup.dialog.hide();
});
});
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
//require用來訪問其他模塊,exec用來執行與Native連結.
var exec = require('cordova/exec');
var testPlugin = function(){
// this.param = XXX;
}
testPlugin.prototype.testJava = function(successCallback, errorCallback, arg) {
arg = arg || [];//若無傳入值,預設為[]
//exec需傳入5個參數,分別為成功時回傳、失敗時回傳、功能名稱feature name、Native的method、參數(需為array)
exec(successCallback, errorCallback, "TestFeature", "testJStoObjc", arg);
};
testplugin = new testPlugin();
//module.exports = 類別的實例
module.exports = testplugin;
|
import React from 'react';
import $ from 'jquery';
import {Link} from 'react-router-dom';
import {API_ROOT} from "../Constants";
import {Form, Icon, Input, Button, message} from 'antd';
const FormItem = Form.Item;
class NormalLoginForm extends React.Component {
handleSubmit = (e) => {
e.preventDefault();
this.props.form.validateFields((err, values) => {
if (!err) {
console.log('Received values of form: ', values);
$.ajax({
url: `${API_ROOT}/login`,
method: 'POST',
data: JSON.stringify({
username: values.username,
password: values.password,
}),
}).then((response) => {
this.props.handleLogin(response);
}, (error) => {
message.error(error.responseText);
}).catch((error) => {
console.log(error);
});
}
});
}
render() {
const {getFieldDecorator} = this.props.form;
return (
<Form onSubmit={this.handleSubmit} className="my-login-form">
<FormItem>
{getFieldDecorator('userName', {
rules: [{required: true, message: 'Please input your username!'}],
})(
<Input prefix={<Icon type="user" style={{color: 'rgba(0,0,0,.25)'}}/>} placeholder="Username"/>
)}
</FormItem>
<FormItem>
{getFieldDecorator('password', {
rules: [{required: true, message: 'Please input your Password!'}],
})(
<Input prefix={<Icon type="lock" style={{color: 'rgba(0,0,0,.25)'}}/>} type="password"
placeholder="Password"/>
)}
</FormItem>
<FormItem>
{/*{getFieldDecorator('remember', {*/}
{/*valuePropName: 'checked',*/}
{/*initialValue: true,*/}
{/*})(*/}
{/*<Checkbox>Remember me</Checkbox>*/}
{/*)}*/}
<Button type="primary" htmlType="submit" className="login-form-button">
Log in
</Button>{" "}
Or {" "}
<Link to="/register">register now!</Link>
</FormItem>
</Form>
);
}
}
export const Login = Form.create()(NormalLoginForm);
|
import Build from "../Build/BuildModule.js";
const babelConfig = Build.getReactAppBabelOption();
export default babelConfig;
|
import React, { useEffect } from 'react'
import Editor from 'react-simple-code-editor'
import { Light as SyntaxHighlighter } from 'react-syntax-highlighter'
import json from 'react-syntax-highlighter/dist/cjs/languages/hljs/json'
import a11yDark from 'react-syntax-highlighter/dist/cjs/styles/hljs/a11y-dark'
import a11yLight from 'react-syntax-highlighter/dist/cjs/styles/hljs/a11y-light'
import { useTheme, makeStyles } from '@material-ui/core'
// fontSize and fontFamily have to match between Editor and SyntaxHighlighter
const fontSize = '12px'
// Optimize by using system default fonts: https://css-tricks.com/snippets/css/font-stacks/
const fontFamily =
'Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace'
const useStyles = makeStyles({
callbackEditor: {
fontFamily,
fontSize,
overflowX: 'auto',
marginTop: '16px',
borderBottom: '1px solid rgba(0,0,0,0.42)',
},
syntaxHighlighter: {
margin: 0,
fontFamily,
fontSize,
},
})
// eslint-disable-next-line react/prop-types
export default function CodeEditor({ contents, setContents }) {
const classes = useStyles()
const theme = useTheme()
useEffect(() => {
SyntaxHighlighter.registerLanguage('json', json)
}, [])
return (
<Editor
className={classes.callbackEditor}
value={contents}
onValueChange={setContents}
highlight={newCode => (
<SyntaxHighlighter
language="json"
style={theme.palette.type === 'dark' ? a11yDark : a11yLight}
className={classes.syntaxHighlighter}
// override some inline style stuff that's higher specificity
// than className
customStyle={{ background: 'none', padding: 0 }}
>
{newCode}
</SyntaxHighlighter>
)}
padding={10}
style={{}}
/>
)
}
|
"use strict";
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1.21.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.V1PodCondition = void 0;
/**
* PodCondition contains details for the current condition of this pod.
*/
class V1PodCondition {
static getAttributeTypeMap() {
return V1PodCondition.attributeTypeMap;
}
}
exports.V1PodCondition = V1PodCondition;
V1PodCondition.discriminator = undefined;
V1PodCondition.attributeTypeMap = [
{
"name": "lastProbeTime",
"baseName": "lastProbeTime",
"type": "Date"
},
{
"name": "lastTransitionTime",
"baseName": "lastTransitionTime",
"type": "Date"
},
{
"name": "message",
"baseName": "message",
"type": "string"
},
{
"name": "reason",
"baseName": "reason",
"type": "string"
},
{
"name": "status",
"baseName": "status",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "string"
}
];
//# sourceMappingURL=v1PodCondition.js.map
|
var mongoose = require("mongoose");
var japri_config = require("../japri_config.json");
var userModel = require("../models/user.js");
var tagModel = require("../models/tag.js");
// Make sure app's config file has both username and password
// Because mongoDB access control allows anonymous login
// By making sure mongoDB username and password to be required
// We will have an authenticated user to access our database
if(japri_config.db_username == "" || japri_config.db_password == ""){
console.log("DB Username/Password cannot be empty");
process.exit(1);
}
// Basic Settings
var app_port = japri_config.app_port;
var db_port = japri_config.db_port;
var db_url = "mongodb://localhost:" + db_port + "/japri";
var db_config = {
user: japri_config.db_username,
pass: japri_config.db_password
};
var api_route = "/api";
module.exports = {
"secure": japri_config.secure,
"app_port": app_port,
"app_secure_port": japri_config.app_secure_port,
"db_port": db_port,
"db_url": db_url,
"db_config": db_config,
"api_route": api_route,
"jwt_secret": japri_config.jwt_secret,
"weatherAPIKey": japri_config.weatherAPIKey,
"nytTopStoriesAPIKey": japri_config.nytTopStoriesAPIKey,
"mailer_email": japri_config.mailer_email,
"mailer_password": japri_config.mailer_password,
"initLiveStream": japri_config.initLiveStream,
"initNFCReader": japri_config.initNFCReader,
"initPIRSensor": japri_config.initPIRSensor,
"initLightSensor": japri_config.initLightSensor,
"initMilight": japri_config.initMilight,
"initLightStrip": japri_config.initLightStrip,
"automate": japri_config.automate,
"milightIPAddress": japri_config.milightIPAddress
}
// Database Connection
mongoose.connect(db_url, db_config, function(err){
if(err){
console.log("Unable to connect to database");
console.log("DB Error message: "+err.message);
process.exit(1);
}
});
// Database watch connection
mongoose.connection.on("connected", function(){
console.log("Connected to database");
});
mongoose.connection.on("error", function(err){
console.log("Unable to connect to database");
process.exit(1);
});
mongoose.connection.on("disconnected", function(){
console.log("Database is not connected. Exiting web server.");
process.exit(1);
});
// Database proper closing upon keyboard interruption
process.on("SIGINT", function() {
mongoose.connection.close(function () {
console.log("Mongoose is disconnected on app termination");
process.exit(1);
});
});
|
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {Fiber} from 'react-reconciler/src/ReactFiber';
import {
getListener,
runExtractedPluginEventsInBatch,
} from 'legacy-events/EventPluginHub';
import {registrationNameModules} from 'legacy-events/EventPluginRegistry';
import {batchedUpdates} from 'legacy-events/ReactGenericBatching';
import type {AnyNativeEvent} from 'legacy-events/PluginModuleType';
import {enableFlareAPI} from 'shared/ReactFeatureFlags';
import type {TopLevelType} from 'legacy-events/TopLevelEventTypes';
import {dispatchEventForResponderEventSystem} from './ReactFabricEventResponderSystem';
export {getListener, registrationNameModules as registrationNames};
export function dispatchEvent(
target: null | Object,
topLevelType: TopLevelType,
nativeEvent: AnyNativeEvent,
) {
const targetFiber = (target: null | Fiber);
if (enableFlareAPI) {
// React Flare event system
dispatchEventForResponderEventSystem(
(topLevelType: any),
target,
(nativeEvent: any),
);
}
batchedUpdates(function() {
// Heritage plugin event system
runExtractedPluginEventsInBatch(
topLevelType,
targetFiber,
nativeEvent,
nativeEvent.target,
);
});
// React Native doesn't use ReactControlledComponent but if it did, here's
// where it would do it.
}
|
/*
*
* (c) Copyright Ascensio System Limited 2010-2021
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
if (typeof ASC === "undefined") {
ASC = {};
}
if (typeof ASC.CRM === "undefined") {
ASC.CRM = function () { return {} };
}
if (typeof ASC.CRM.Voip === "undefined") {
ASC.CRM.Voip = function () { return {} };
}
ASC.CRM.Voip.QuickView = (function ($) {
var buyPhonePopupInit = false,
linkPhonePopupInit = false,
numbers = [],
operators = [];
var $view,
$showBuyPhonePopupBtn,
$showLinkPhonePopupBtn,
$linkPhonePopup,
$buyPhonePopup,
$removeNumberPopup,
$countrySelectorBox,
$countrySelector,
$countryCode,
$countryInput,
$countryInputClearBtn,
$countrySelectorSearchBtn,
$availableNumbers,
$availableNumbersLoader,
$availableNumbersEmptyMsg,
$availableNumbersEmptySearchMsg,
$buyPhoneBtn,
$cancelBuyPhoneBtn,
$existingNumbers,
$existingNumbersLoader,
$existingNumbersEmptyMsg,
$linkPhoneBtn,
$cancelLinkPhoneBtn,
$existingNumbersEmptyBox,
$existingNumbersList,
$emptyBuyPhoneBtn,
$emptyLinkPhoneBtn;
var loadingBanner = LoadingBanner,
clickEventName = "click";
function init () {
cacheElements();
bindEvents();
showLoader();
getData(function(numbersResp) {
saveData(numbersResp);
renderView();
hideLoader();
});
};
function cacheElements() {
$view = $('#voip-quick-view');
$showBuyPhonePopupBtn = $view.find('#show-buy-phone-popup-btn');
$showLinkPhonePopupBtn = $view.find('#show-link-phone-popup-btn');
$buyPhonePopup = $view.find('#buy-phone-popup');
$linkPhonePopup = $view.find('#link-phone-popup');
$removeNumberPopup = $view.find('#remove-number-popup');
$countrySelectorBox = $buyPhonePopup.find('#country-selector-box');
$countrySelector = $countrySelectorBox.find('#country-selector');
$countryCode = $countrySelectorBox.find('#country-code');
$countryInput = $countrySelectorBox.find('#country-input');
$countryInputClearBtn = $countrySelectorBox.find('#country-input-clear-btn');
$countrySelectorSearchBtn = $buyPhonePopup.find('#country-selector-search-btn');
$availableNumbers = $buyPhonePopup.find('.numbers');
$availableNumbersLoader = $buyPhonePopup.find('.numbers-loader');
$availableNumbersEmptyMsg = $buyPhonePopup.find('.numbers-empty-msg');
$availableNumbersEmptySearchMsg = $buyPhonePopup.find('#available-numbers-empty-search-msg');
$buyPhoneBtn = $buyPhonePopup.find('.phone-btn');
$cancelBuyPhoneBtn = $buyPhonePopup.find('.cancel-btn');
$existingNumbers = $linkPhonePopup.find('.numbers');
$existingNumbersLoader = $linkPhonePopup.find('.numbers-loader');
$existingNumbersEmptyMsg = $linkPhonePopup.find('.numbers-empty-msg');
$linkPhoneBtn = $linkPhonePopup.find('.phone-btn');
$cancelLinkPhoneBtn = $linkPhonePopup.find('.cancel-btn');
$existingNumbersEmptyBox = $view.find('#existing-numbers-empty-box');
$existingNumbersList = $view.find('#existing-numbers-list');
var CRMVoipResource = ASC.CRM.Resources.CRMVoipResource;
var describe = [
Encoder.htmlEncode(CRMVoipResource.EmptyScreenNumberDescription1),
"<br/><br/>",
Encoder.htmlEncode(CRMVoipResource.EmptyScreenNumberDescription2)
].join('');
$existingNumbersEmptyBox.append(jq.tmpl("template-emptyScreen",
{
ID: "phones-empty-screen",
ImgSrc: ASC.CRM.Data.EmptyScrImgs["empty_screen_phones"],
Header: CRMVoipResource.EmptyScreenNumberHeader,
Describe: describe,
ButtonHTML: jq.format("<a class='link dotline plus' id=\"empty-buy-phone-btn\">{0}</a><br/><a class='link dotline plus' id=\"empty-link-phone-btn\">{1}</a>", CRMVoipResource.BuyNumberBtn, CRMVoipResource.LinkNumberBtn)
}));
$emptyBuyPhoneBtn = $view.find('#empty-buy-phone-btn');
$emptyLinkPhoneBtn = $view.find('#empty-link-phone-btn');
};
function bindEvents() {
$('body').on(clickEventName, clickHandler);
$showBuyPhonePopupBtn.add($emptyBuyPhoneBtn).on(clickEventName, showBuyPhonePopupHandler);
$showLinkPhonePopupBtn.add($emptyLinkPhoneBtn).on(clickEventName, showLinkPhonePopupHandler);
$countrySelectorBox.on(clickEventName, '.studio-action-panel .dropdown-item', countryChangedHandler);
$countrySelector.on(clickEventName, countrySelectorToggleHandler);
$countryInput.on('keyup', countryInputKeyupHandler);
$countryInputClearBtn.on(clickEventName, countryInputClearHandler);
$countrySelectorSearchBtn.on(clickEventName, countrySelectorSearchHandler);
$existingNumbersList.on(clickEventName, '.number-box .actions', toggleNumberActionsHandler);
$existingNumbersList.on(clickEventName, '.operators-box .actions', toggleOperatorActionsHandler);
$existingNumbersList.on(clickEventName, '.number .number-box .outgoing-calls .on_off_button', numberOutgoingCallsUpdatedHandler);
$existingNumbersList.on(clickEventName, '.number .number-box .voicemail .on_off_button', numberVoicemailUpdatedHandler);
$existingNumbersList.on(clickEventName, '.number .number-box .recording-calls .on_off_button', numberRecordingCallsUpdatedHandler);
$existingNumbersList.on(clickEventName, '.number .number-box .show-remove-number-btn', showNumberRemovePopup);
$existingNumbersList.on(clickEventName, '.number .number-box .edit-number-btn', editNumber);
$existingNumbersList.on(clickEventName, '.number .switcher', toggleOperatorsBoxHandler);
$existingNumbersList.on(clickEventName, '.number .operator .outgoing-calls .on_off_button', operatorOutgoingCallsUpdatedHandler);
$existingNumbersList.on(clickEventName, '.number .operator .recording-calls .on_off_button', operatorRecordingCallsUpdatedHandler);
$existingNumbersList.on('showList', '.number .operators-box .add-operators-btn', addOperatorsHandler);
$existingNumbersList.on(clickEventName, '.number .operators-box .delete-operator-btn', deleteOperatorHandler);
$availableNumbers.on(clickEventName, '.number input', numberSelectedHandler);
$buyPhoneBtn.on(clickEventName, buyNumberHandler);
$cancelBuyPhoneBtn.on(clickEventName, cancelBuyNumberHandler);
$existingNumbers.on(clickEventName, '.number input', existingNumberSelectedHandler);
$linkPhoneBtn.on(clickEventName, linkNumberHandler);
$cancelLinkPhoneBtn.on(clickEventName, cancelLinkPhoneHandler);
};
//#region data
function getData(cb) {
showLoader();
Teamlab.getCrmVoipExistingNumbers(null, {
success: function(params, numbersResp) {
hideLoader();
cb(numbersResp);
},
error: function() {
hideLoader();
showErrorMessage();
}
});
};
function saveData(numbersResp) {
if (!numbersResp || !numbersResp.length) {
$existingNumbersEmptyBox.removeClass("display-none");
return;
}
numbers = numbersResp;
for (var i = 0; i < numbersResp.length; i++) {
var number = numbersResp[i];
for (var j = 0; j < number.settings.operators.length; j++) {
operators.push(number.settings.operators[j].id);
}
}
};
function saveNumber(number) {
for (var i = 0; i < numbers.length; i++) {
if (numbers[i].id == number.id) {
numbers[i] = number;
return;
}
}
};
function deleteNumber(numberId) {
numbers = numbers.filter(function (item) { return item.id !== numberId });
};
function addOperators(numberId, operatorsResp) {
if (!operatorsResp || !operatorsResp.length) {
return;
}
var result = null;
for (var i = 0; i < numbers.length; i++) {
if (numbers[i].id == numberId) {
result = numbers[i];
break;
}
}
if (!result) return;
operatorsResp = setOperatorsUserInfo(operatorsResp);
result.settings.operators = operatorsResp;
for (i = 0; i < operatorsResp.length; i++) {
operators.push(operatorsResp[i].id);
}
return result;
};
function deleteOperator(operatorId) {
for (var i = 0; i < operators.length; i++) {
if (operators[i] == operatorId) {
operators.splice(i, 1);
return;
}
}
};
//#endregion
//#region rendering
function renderView() {
renderExistingNumbers();
$view.show();
};
function renderExistingNumbers() {
if (!numbers.length) {
$existingNumbersEmptyBox.show();
return;
}
$showBuyPhonePopupBtn.removeClass("display-none");
$showLinkPhonePopupBtn.removeClass("display-none");
var $numbers = [];
for (var i = 0; i < numbers.length; i++) {
numbers[i].settings.operators = setOperatorsUserInfo(numbers[i].settings.operators);
$numbers.push(renderExistingNumber(numbers[i]));
}
$existingNumbersList.append($numbers);
$existingNumbersList.show();
};
function renderExistingNumber(number) {
var $number = jq.tmpl("voip-existing-number-tmpl", number);
var $addOperatorsBtn = $number.find('.add-operators-btn');
$addOperatorsBtn.useradvancedSelector({ showGroups: true });
$addOperatorsBtn.useradvancedSelector('disable', operators);
return $number;
};
function renderAddedOperators(number) {
var $operators = jq.tmpl("voip-operators-tmpl", number);
$existingNumbersList.find('#enumber' + number.id + ' .operators-box').append($operators);
var $addOperatorBtn = $view.find('.add-operators-btn');
$addOperatorBtn.useradvancedSelector('disable', operators);
};
//#endregion
//#region handlers
function clickHandler(e) {
var $this = $(e.target);
if (!$this.is('.actions')) {
clearActionPanel();
}
if (!$this.is('#country-selector')) {
$buyPhonePopup.find('#country-selector-box .studio-action-panel').hide();
}
};
function clearActionPanel() {
$view.find('.number-box').removeClass('selected').removeClass('operator-selected');
$view.find('.operator').removeClass('selected');
$view.find('.studio-action-panel').hide();
};
function showBuyPhonePopupHandler() {
if (!buyPhonePopupInit) {
var $countriesList = jq.tmpl("voip-countries-list-tmpl", { countries: ASC.Voip.Countries });
$countrySelector.after($countriesList);
renderAvailableNumbers('US', 1);
buyPhonePopupInit = true;
}
StudioBlockUIManager.blockUI($buyPhonePopup, 550);
};
function showLinkPhonePopupHandler() {
if (!linkPhonePopupInit) {
$linkPhoneBtn.addClass('disable');
$existingNumbers.empty();
$existingNumbersEmptyMsg.hide();
$existingNumbersLoader.show();
Teamlab.getCrmVoipUnlinkedNumbers({}, {
success: function (params, numbersResp) {
$existingNumbersLoader.hide();
if (numbersResp.length) {
var $numbers = jq.tmpl("voip-available-number-tmpl", numbersResp);
$existingNumbers.html($numbers);
} else {
$existingNumbersEmptyMsg.show();
}
},
error: function () {
$existingNumbersLoader.hide();
showErrorMessage();
}
});
linkPhonePopupInit = true;
}
StudioBlockUIManager.blockUI($linkPhonePopup, 550);
};
function countrySelectorToggleHandler() {
$countrySelector.siblings('.studio-action-panel').toggle();
};
function countryInputKeyupHandler() {
var text = $countryInput.val();
if (text) {
$countryInputClearBtn.show();
} else {
$countryInputClearBtn.hide();
}
countrySelectorSearchHandler();
};
function countryInputClearHandler() {
$countryInput.val('');
$countryInputClearBtn.hide();
countrySelectorSearchHandler();
};
function countrySelectorSearchHandler() {
var text = $countryInput.val();
var seachText = $countryCode.text() + text;
var exist = false;
$availableNumbers.find('.number').each(function() {
var $el = $(this);
var number = $el.find('.number-value').text();
if (number.indexOf(seachText) != 0) {
$el.hide();
} else {
exist = true;
$el.show();
}
});
if (!exist) {
$availableNumbersEmptySearchMsg.show();
} else {
$availableNumbersEmptySearchMsg.hide();
}
};
function toggleNumberActionsHandler(e) {
var $this = $(e.target);
var $panel = $this.find('.studio-action-panel');
var $number = $this.closest('.number-box');
var visible = $panel.is(':visible');
clearActionPanel();
if (visible) {
$panel.hide();
$number.removeClass('selected');
} else {
$panel.css({
top: $this.outerHeight(),
left: $this.width() - $panel.width()
});
$panel.show();
$number.addClass('selected');
}
};
function toggleOperatorActionsHandler(e) {
var $this = $(e.target);
var $panel = $this.find('.studio-action-panel');
var $operator = $this.closest('.operator');
var $number = $this.closest('.number').find('.number-box');
var visible = $panel.is(':visible');
clearActionPanel();
if (visible) {
$panel.hide();
$number.removeClass('operator-selected');
$operator.removeClass('selected');
} else {
$panel.css({
top: $this.outerHeight(),
left: $this.width() - $panel.width()
});
$panel.show();
$number.addClass('operator-selected');
$operator.addClass('selected');
}
};
function numberOutgoingCallsUpdatedHandler(e) {
var on = $(e.target).is('.off');
var setting = { allowOutgoingCalls: on };
numberSettinglUpdatedHandler(e, setting);
};
function numberVoicemailUpdatedHandler(e) {
var on = $(e.target).is('.off');
var setting = { voiceMail: { enabled: on } };
numberSettinglUpdatedHandler(e, setting);
};
function numberRecordingCallsUpdatedHandler(e) {
var on = $(e.target).is('.off');
var setting = { record: on };
numberSettinglUpdatedHandler(e, setting);
};
function editNumber(e) {
var $this = $(e.target).closest('.number');
var numberId = $this.attr('data-numberId');
window.open("Settings.aspx?type=voip.numbers#" + numberId);
}
function showNumberRemovePopup(e) {
$removeNumberPopup.off(clickEventName)
.on(clickEventName, "#remove-number-btn", numberRemoveHandler.bind(null, e.target))
.on(clickEventName, "#cancel-remove-phone-btn", cancelNumberRemoveHandler);
StudioBlockUIManager.blockUI($removeNumberPopup, 550);
}
function cancelNumberRemoveHandler() {
jq.unblockUI();
}
function numberRemoveHandler(target) {
var $this = $(target).closest('.number');
var numberId = $this.attr('data-numberId');
Teamlab.removeCrmVoipNumber({}, numberId, {
after: jq.unblockUI,
success: function (params, number) {
deleteNumber(numberId);
if (numbers.length) {
$this.remove();
var $addOperatorBtns = $view.find('.add-operators-btn');
number.settings.operators.forEach(function (item) {
deleteOperator(item.id);
$addOperatorBtns.useradvancedSelector('undisable', [item.id]);
});
} else {
location.reload();
}
},
error: showErrorMessage
});
};
function numberSettinglUpdatedHandler(e, setting) {
var $this = $(e.target);
var numberId = $this.closest('.number').attr('data-numberId');
var on = $this.is('.off');
var operatorBtnSelector = $this.attr('data-operator-btn-selector');
showLoader();
Teamlab.updateCrmVoipNumberSettings(null, numberId, setting, {
success: function(params, number) {
saveNumber(number);
if (on) {
$this.removeClass('off').addClass('on');
if (operatorBtnSelector) {
$this.closest('.number').find('.operators-box ' + operatorBtnSelector + ' .on_off_button')
.removeClass('disable');
}
} else {
$this.removeClass('on').addClass('off');
if (operatorBtnSelector) {
$this.closest('.number').find('.operators-box ' + operatorBtnSelector + ' .on_off_button')
.removeClass('on').addClass('off').addClass('disable');
}
}
hideLoader();
showSuccessOpearationMessage();
},
error: function() {
hideLoader();
showErrorMessage();
}
});
};
function operatorOutgoingCallsUpdatedHandler(e) {
var on = $(e.target).is('.off');
var setting = { allowOutgoingCalls: on };
operatorSettingUpdatedHandler(e, setting);
};
function operatorRecordingCallsUpdatedHandler(e) {
var on = $(e.target).is('.off');
var setting = { record: on };
operatorSettingUpdatedHandler(e, setting);
};
function operatorSettingUpdatedHandler(e, setting) {
var $this = $(e.target);
if ($this.is('.disable')) {
return;
}
var operatorId = $this.closest('.operator').attr('data-operatorId');
var on = $this.is('.off');
showLoader();
Teamlab.updateCrmVoipOperator(null, operatorId, setting, {
success: function() {
if (on) {
$this.removeClass('off').addClass('on');
} else {
$this.removeClass('on').addClass('off');
}
hideLoader();
showSuccessOpearationMessage();
},
error: function() {
hideLoader();
showErrorMessage();
}
});
};
function addOperatorsHandler(e, addedOperators) {
var ids = addedOperators.map(function(o) {
return o.id;
});
if (!ids.length) {
return;
}
var numberId = $(e.target).closest('.number').attr('data-numberid');
showLoader();
Teamlab.addCrmVoipNumberOperators(null, numberId, { operators: ids }, {
success: function(params, operatorsResp) {
var number = addOperators(numberId, operatorsResp);
renderAddedOperators(number);
hideLoader();
},
error: function() {
showErrorMessage();
hideLoader();
}
});
};
function deleteOperatorHandler(e) {
var numberId = $(e.target).closest('.number').attr('data-numberid');
var operatorId = $(e.target).closest('.operator').attr('data-operatorid');
showLoader();
Teamlab.removeCrmVoipNumberOperators(null, numberId, { oper: operatorId }, {
success: function() {
deleteOperator(operatorId);
$existingNumbersList.find('#enumber' + numberId + ' .operator[data-operatorid=' + operatorId + ']').remove();
hideLoader();
var $addOperatorBtns = $view.find('.add-operators-btn');
$addOperatorBtns.useradvancedSelector('undisable', [operatorId]);
},
error: function() {
hideLoader();
showErrorMessage();
}
});
};
function countryChangedHandler(e) {
var $this = $(e.currentTarget).find('.voip-flag');
var iso = $this.attr('data-iso');
var code = $this.attr('data-code');
renderAvailableNumbers(iso, code);
};
function numberSelectedHandler() {
$buyPhoneBtn.removeClass('disable');
};
function existingNumberSelectedHandler() {
$linkPhoneBtn.removeClass('disable');
};
function toggleOperatorsBoxHandler(e) {
var $this = $(e.currentTarget);
$this.closest('.number').find('.operators-box').toggle();
$this.find('.expander-icon').toggleClass('open');
};
function renderAvailableNumbers(iso, code) {
$buyPhoneBtn.addClass('disable');
$countrySelector.attr('class', 'voip-flag link arrow-down ' + iso);
$countryCode.text('+' + code);
$countryInput.val('');
$countryInput.hide();
$countryInputClearBtn.hide();
$availableNumbers.empty();
$availableNumbersEmptyMsg.hide();
$availableNumbersEmptySearchMsg.hide();
$availableNumbersLoader.show();
Teamlab.getCrmVoipAvailableNumbers(null, {
filter: { numberType: 0, isoCountryCode: iso },
success: function(params, numbersResp) {
$availableNumbersLoader.hide();
if (numbersResp.length) {
var $numbers = jq.tmpl("voip-available-number-tmpl", numbersResp);
$availableNumbers.empty();
$availableNumbers.append($numbers);
} else {
$availableNumbersEmptyMsg.show();
}
$countryInput.show();
},
error: function() {
$availableNumbersLoader.hide();
showErrorMessage();
}
});
};
function buyNumberHandler() {
if ($buyPhoneBtn.is('.disable')) {
return;
}
$buyPhoneBtn.addClass('disable');
$cancelBuyPhoneBtn.addClass('disable');
var $selectedNumber = $availableNumbers.find('input:checked');
if (!$selectedNumber.length) {
return;
}
var number = $selectedNumber.attr('data-number');
Teamlab.createCrmVoipNumber(null,
{ number: number },
{
before: function () {
loadingBanner.showLoaderBtn("#buy-phone-popup");
},
after: function () {
loadingBanner.hideLoaderBtn("#buy-phone-popup");
},
success: function(params, addedNumber) {
$existingNumbersEmptyBox.hide();
var $number = renderExistingNumber(addedNumber);
numbers.push(addedNumber);
$availableNumbers.find('#anumber\\' + number).remove();
$existingNumbersList.append($number);
$existingNumbersList.show();
$showBuyPhonePopupBtn.removeClass("display-none");
$showLinkPhonePopupBtn.removeClass("display-none");
$cancelBuyPhoneBtn.removeClass('disable');
$.unblockUI();
toastr.success(ASC.Resources.Master.ResourceJS.BuyNumberSuccessMsg);
},
error: function() {
$cancelBuyPhoneBtn.removeClass('disable');
showErrorMessage();
}
});
};
function linkNumberHandler() {
if ($linkPhoneBtn.is('.disable')) {
return;
}
$linkPhoneBtn.addClass('disable');
$cancelLinkPhoneBtn.addClass('disable');
var $selectedNumber = $existingNumbers.find('input:checked');
if (!$selectedNumber.length) {
return;
}
var number = $selectedNumber.attr('data-number');
var numberId = $selectedNumber.attr('data-numberId');
Teamlab.linkCrmVoipNumber(null,
{ number: number, id: numberId },
{
before: function () {
loadingBanner.showLoaderBtn("#link-phone-popup");
},
after: function () {
loadingBanner.hideLoaderBtn("#link-phone-popup");
},
success: function(params, addedNumber) {
$existingNumbersEmptyBox.hide();
var $number = renderExistingNumber(addedNumber);
numbers.push(addedNumber);
$existingNumbers.find('#anumber\\' + number).remove();
$existingNumbersList.append($number);
$existingNumbersList.show();
$showBuyPhonePopupBtn.removeClass("display-none");
$showLinkPhonePopupBtn.removeClass("display-none");
$cancelLinkPhoneBtn.removeClass('disable');
$.unblockUI();
toastr.success(ASC.CRM.Resources.CRMVoipResource.LinkNumberSuccessMsg);
},
error: function() {
$cancelLinkPhoneBtn.removeClass('disable');
showErrorMessage();
}
});
};
function cancelBuyNumberHandler() {
if ($cancelBuyPhoneBtn.is('.disable')) {
return;
}
$.unblockUI();
};
function cancelLinkPhoneHandler() {
if ($cancelLinkPhoneBtn.is('.disable')) {
return;
}
$.unblockUI();
};
function setOperatorsUserInfo(operatorsResp) {
if (!operatorsResp || !operatorsResp.length) {
return operatorsResp;
}
for (var i = 0; i < operatorsResp.length; i++) {
operatorsResp[i].userInfo = window.UserManager.getUser(operatorsResp[i].id);
}
return operatorsResp.filter(function (item) { return item.userInfo !== null; });
};
//#endregion
//#region utils
function showLoader() {
loadingBanner.displayLoading();
};
function hideLoader() {
loadingBanner.hideLoading();
};
function showSuccessOpearationMessage() {
toastr.success(ASC.Resources.Master.ResourceJS.ChangesSuccessfullyAppliedMsg);
};
function showErrorMessage() {
toastr.error(ASC.Resources.Master.ResourceJS.CommonJSErrorMsg);
}
//#endregion
return {
init: init
};
})(jq);
|
import Event from './Event';
import Modal from './Modal';
import Socket from './Socket';
import Toast from './Toast';
import User from './User';
export {
Event,
Modal,
Socket,
User,
Toast
};
|
module.exports={C:{"52":0.00881,"60":0.00881,"78":0.02644,"86":0.00881,"91":0.03084,"92":0.01762,"93":0.12777,"94":0.8063,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 87 88 89 90 95 96 3.5 3.6"},D:{"42":0.00441,"49":0.02203,"63":0.00881,"64":0.00441,"65":0.00881,"66":0.01322,"67":0.00441,"71":0.00441,"75":0.00441,"76":0.05287,"77":0.03965,"78":0.01322,"79":0.06609,"80":0.01762,"81":0.03525,"83":0.00881,"84":0.01762,"85":0.02644,"86":0.03965,"87":0.03084,"88":0.03525,"89":0.01322,"90":0.03084,"91":0.05728,"92":0.22911,"93":0.14099,"94":1.85493,"95":15.59724,"96":9.31869,"97":0.14099,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 43 44 45 46 47 48 50 51 52 53 54 55 56 57 58 59 60 61 62 68 69 70 72 73 74 98 99"},F:{"56":0.00441,"79":0.00881,"80":0.33926,"81":0.12337,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 9.5-9.6 10.5 10.6 11.1 11.5 11.6 12.1","10.0-10.1":0},B:{"17":0.01322,"18":0.04406,"84":0.00881,"86":0.00441,"89":0.01322,"91":0.01322,"92":0.19386,"93":0.02203,"94":0.05728,"95":6.00538,"96":1.79324,_:"12 13 14 15 16 79 80 81 83 85 87 88 90"},E:{"4":0,"10":0.00881,"13":0.01322,"14":0.17624,"15":0.55075,_:"0 5 6 7 8 9 11 12 3.1 3.2 6.1 7.1 9.1 10.1","5.1":0.00881,"11.1":0.00881,"12.1":0.01762,"13.1":0.1498,"14.1":0.89882,"15.1":1.10591},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0.00742,"6.0-6.1":0,"7.0-7.1":0.06783,"8.1-8.4":0,"9.0-9.2":0.01378,"9.3":0.21302,"10.0-10.2":0,"10.3":0.19607,"11.0-11.2":0.00318,"11.3-11.4":0.00954,"12.0-12.1":0,"12.2-12.5":0.42075,"13.0-13.1":0.00848,"13.2":0.00318,"13.3":0.02438,"13.4-13.7":0.08373,"14.0-14.4":0.33172,"14.5-14.8":4.50318,"15.0-15.1":4.70879},P:{"4":0.07596,"5.0-5.4":0.15307,"6.2-6.4":0.03061,"7.2-7.4":0.41238,"8.2":0.0102,"9.2":0.06424,"10.1":0.01071,"11.1-11.2":0.21704,"12.0":0.03147,"13.0":0.11937,"14.0":0.13023,"15.0":3.32074},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00777,"4.4":0,"4.4.3-4.4.4":0.15445},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"10":0.02203,"11":0.15421,_:"6 7 8 9 5.5"},J:{"7":0,"10":0},N:{"10":0.00821,"11":0.22582},L:{"0":42.44927},S:{"2.5":0.22376},R:{_:"0"},M:{"0":0.25732},Q:{"10.4":0},O:{"0":0.23495},H:{"0":0.07414}};
|
(function (window) {
'use strict';
/**
* Takes a model and view and acts as the controller between them
*
* @constructor
* @param {object} model The model instance
* @param {object} view The view instance
*/
function Controller(model, view) {
var self = this;
self.model = model;
self.view = view;
self.view.bind('newTodo', function (title) {
self.addItem(title);
});
self.view.bind('itemEdit', function (item) {
self.editItem(item.id);
});
self.view.bind('itemEditDone', function (item) {
self.editItemSave(item.id, item.title);
});
self.view.bind('itemEditCancel', function (item) {
self.editItemCancel(item.id);
});
self.view.bind('itemRemove', function (item) {
self.removeItem(item.id);
});
self.view.bind('itemToggle', function (item) {
self.toggleComplete(item.id, item.completed);
});
self.view.bind('removeCompleted', function () {
self.removeCompletedItems();
});
self.view.bind('toggleAll', function (status) {
self.toggleAll(status.completed);
});
}
/**
* Loads and initialises the view
*
* @param {string} '' | 'active' | 'completed'
*/
Controller.prototype.setView = function (locationHash) {
var route = locationHash.split('/')[1];
var page = route || '';
this._updateFilterState(page);
};
/**
* An event to fire on load. Will get all items and display them in the
* todo-list
*/
Controller.prototype.showAll = function () {
var self = this;
self.model.read(function (data) {
self.view.render('showEntries', data);
});
};
/**
* Renders all active tasks
*/
Controller.prototype.showActive = function () {
var self = this;
self.model.read({ completed: false }, function (data) {
self.view.render('showEntries', data);
});
};
/**
* Renders all completed tasks
*/
Controller.prototype.showCompleted = function () {
var self = this;
self.model.read({ completed: true }, function (data) {
self.view.render('showEntries', data);
});
};
/**
* An event to fire whenever you want to add an item. Simply pass in the event
* object and it'll handle the DOM insertion and saving of the new item.
*/
/*Controller.prototype.adddItem = function (title)*/
Controller.prototype.addItem = function (title) {
var self = this;
if (title.trim() === '') {
return;
}
self.model.create(title, function () {
self.view.render('clearNewTodo');
self._filter(true);
});
};
/*
* Triggers the item editing mode.
*/
Controller.prototype.editItem = function (id) {
var self = this;
self.model.read(id, function (data) {
self.view.render('editItem', {id: id, title: data[0].title});
});
};
/*
* Finishes the item editing mode successfully.
*/
Controller.prototype.editItemSave = function (id, title) {
var self = this;
while (title[0] === " ") {
title = title.slice(1);
}
while (title[title.length-1] === " ") {
title = title.slice(0, -1);
}
if (title.length !== 0) {
self.model.update(id, {title: title}, function () {
self.view.render('editItemDone', {id: id, title: title});
});
} else {
self.removeItem(id);
}
};
/*
* Cancels the item editing mode.
*/
Controller.prototype.editItemCancel = function (id) {
var self = this;
self.model.read(id, function (data) {
self.view.render('editItemDone', {id: id, title: data[0].title});
});
};
/**
* By giving it an ID it'll find the DOM element matching that ID,
* remove it from the DOM and also remove it from storage.
*
* @param {number} id The ID of the item to remove from the DOM and
* storage
*/
Controller.prototype.removeItem = function (id) {
var self = this;
var items;
self.model.read(function(data) {
items = data;
});
items.forEach(function(item) {
if (item.id === id) {
console.log("Element with ID: " + id + " has been removed.");
}
});
self.model.remove(id, function () {
self.view.render('removeItem', id);
});
self._filter();
};
/**
* Will remove all completed items from the DOM and storage.
*/
Controller.prototype.removeCompletedItems = function () {
var self = this;
self.model.read({ completed: true }, function (data) {
data.forEach(function (item) {
self.removeItem(item.id);
});
});
self._filter();
};
/**
* Give it an ID of a model and a checkbox and it will update the item
* in storage based on the checkbox's state.
*
* @param {number} id The ID of the element to complete or uncomplete
* @param {object} checkbox The checkbox to check the state of complete
* or not
* @param {boolean|undefined} silent Prevent re-filtering the todo items
*/
Controller.prototype.toggleComplete = function (id, completed, silent) {
var self = this;
self.model.update(id, { completed: completed }, function () {
self.view.render('elementComplete', {
id: id,
completed: completed
});
});
if (!silent) {
self._filter();
}
};
/**
* Will toggle ALL checkboxes' on/off state and completeness of models.
* Just pass in the event object.
*/
Controller.prototype.toggleAll = function (completed) {
var self = this;
self.model.read({ completed: !completed }, function (data) {
data.forEach(function (item) {
self.toggleComplete(item.id, completed, true);
});
});
self._filter();
};
/**
* Updates the pieces of the page which change depending on the remaining
* number of todos.
*/
Controller.prototype._updateCount = function () {
var self = this;
self.model.getCount(function (todos) {
self.view.render('updateElementCount', todos.active);
self.view.render('clearCompletedButton', {
completed: todos.completed,
visible: todos.completed > 0
});
self.view.render('toggleAll', {checked: todos.completed === todos.total});
self.view.render('contentBlockVisibility', {visible: todos.total > 0});
});
};
/**
* Re-filters the todo items, based on the active route.
* @param {boolean|undefined} force forces a re-painting of todo items.
*/
Controller.prototype._filter = function (force) {
var activeRoute = this._activeRoute.charAt(0).toUpperCase() + this._activeRoute.substr(1);
// Update the elements on the page, which change with each completed todo
this._updateCount();
// If the last active route isn't "All", or we're switching routes, we
// re-create the todo item elements, calling:
// this.show[All|Active|Completed]();
if (force || this._lastActiveRoute !== 'All' || this._lastActiveRoute !== activeRoute) {
this['show' + activeRoute]();
}
this._lastActiveRoute = activeRoute;
};
/**
* Simply updates the filter nav's selected states
*/
Controller.prototype._updateFilterState = function (currentPage) {
// Store a reference to the active route, allowing us to re-filter todo
// items as they are marked complete or incomplete.
this._activeRoute = currentPage;
if (currentPage === '') {
this._activeRoute = 'All';
}
this._filter();
this.view.render('setFilter', currentPage);
};
// Export to window
window.app = window.app || {};
window.app.Controller = Controller;
})(window);
|
const QR = require('./qrcode.js');
const GD = require('./gradient.js');
export const penCache = {
// 用于存储带 id 的 view 的 rect 信息
viewRect: {},
textLines: {},
};
export const clearPenCache = id => {
if (id) {
penCache.viewRect[id] = null;
penCache.textLines[id] = null;
} else {
penCache.viewRect = {};
penCache.textLines = {};
}
};
export default class Painter {
constructor(ctx, data) {
this.ctx = ctx;
this.data = data;
}
paint(callback) {
this.style = {
width: this.data.width.toPx(),
height: this.data.height.toPx(),
};
this._background();
for (const view of this.data.views) {
this._drawAbsolute(view);
}
this.ctx.draw(false, () => {
callback && callback();
});
}
_background() {
this.ctx.save();
const { width, height } = this.style;
const bg = this.data.background;
this.ctx.translate(width / 2, height / 2);
this._doClip(this.data.borderRadius, width, height);
if (!bg) {
// 如果未设置背景,则默认使用透明色
this.ctx.fillStyle = 'transparent';
this.ctx.fillRect(-(width / 2), -(height / 2), width, height);
} else if (bg.startsWith('#') || bg.startsWith('rgba') || bg.toLowerCase() === 'transparent') {
// 背景填充颜色
this.ctx.fillStyle = bg;
this.ctx.fillRect(-(width / 2), -(height / 2), width, height);
} else if (GD.api.isGradient(bg)) {
GD.api.doGradient(bg, width, height, this.ctx);
this.ctx.fillRect(-(width / 2), -(height / 2), width, height);
} else {
// 背景填充图片
this.ctx.drawImage(bg, -(width / 2), -(height / 2), width, height);
}
this.ctx.restore();
}
_drawAbsolute(view) {
if (!(view && view.type)) {
// 过滤无效 view
return;
}
// 证明 css 为数组形式,需要合并
if (view.css && view.css.length) {
/* eslint-disable no-param-reassign */
view.css = Object.assign(...view.css);
}
switch (view.type) {
case 'image':
this._drawAbsImage(view);
break;
case 'text':
this._fillAbsText(view);
break;
case 'rect':
this._drawAbsRect(view);
break;
case 'qrcode':
this._drawQRCode(view);
break;
default:
break;
}
}
_border({ borderRadius = 0, width, height, borderWidth = 0, borderStyle = 'solid' }) {
let r1 = 0,
r2 = 0,
r3 = 0,
r4 = 0;
const minSize = Math.min(width, height);
if (borderRadius) {
const border = borderRadius.split(/\s+/);
if (border.length === 4) {
r1 = Math.min(border[0].toPx(false, minSize), width / 2, height / 2);
r2 = Math.min(border[1].toPx(false, minSize), width / 2, height / 2);
r3 = Math.min(border[2].toPx(false, minSize), width / 2, height / 2);
r4 = Math.min(border[3].toPx(false, minSize), width / 2, height / 2);
} else {
r1 = r2 = r3 = r4 = Math.min(borderRadius && borderRadius.toPx(false, minSize), width / 2, height / 2);
}
}
const lineWidth = borderWidth && borderWidth.toPx(false, minSize);
this.ctx.lineWidth = lineWidth;
if (borderStyle === 'dashed') {
this.ctx.setLineDash([(lineWidth * 4) / 3, (lineWidth * 4) / 3]);
// this.ctx.lineDashOffset = 2 * lineWidth
} else if (borderStyle === 'dotted') {
this.ctx.setLineDash([lineWidth, lineWidth]);
}
const notSolid = borderStyle !== 'solid';
this.ctx.beginPath();
notSolid && r1 === 0 && this.ctx.moveTo(-width / 2 - lineWidth, -height / 2 - lineWidth / 2); // 顶边虚线规避重叠规则
r1 !== 0 && this.ctx.arc(-width / 2 + r1, -height / 2 + r1, r1 + lineWidth / 2, 1 * Math.PI, 1.5 * Math.PI); //左上角圆弧
this.ctx.lineTo(
r2 === 0 ? (notSolid ? width / 2 : width / 2 + lineWidth / 2) : width / 2 - r2,
-height / 2 - lineWidth / 2,
); // 顶边线
notSolid && r2 === 0 && this.ctx.moveTo(width / 2 + lineWidth / 2, -height / 2 - lineWidth); // 右边虚线规避重叠规则
r2 !== 0 && this.ctx.arc(width / 2 - r2, -height / 2 + r2, r2 + lineWidth / 2, 1.5 * Math.PI, 2 * Math.PI); // 右上角圆弧
this.ctx.lineTo(
width / 2 + lineWidth / 2,
r3 === 0 ? (notSolid ? height / 2 : height / 2 + lineWidth / 2) : height / 2 - r3,
); // 右边线
notSolid && r3 === 0 && this.ctx.moveTo(width / 2 + lineWidth, height / 2 + lineWidth / 2); // 底边虚线规避重叠规则
r3 !== 0 && this.ctx.arc(width / 2 - r3, height / 2 - r3, r3 + lineWidth / 2, 0, 0.5 * Math.PI); // 右下角圆弧
this.ctx.lineTo(
r4 === 0 ? (notSolid ? -width / 2 : -width / 2 - lineWidth / 2) : -width / 2 + r4,
height / 2 + lineWidth / 2,
); // 底边线
notSolid && r4 === 0 && this.ctx.moveTo(-width / 2 - lineWidth / 2, height / 2 + lineWidth); // 左边虚线规避重叠规则
r4 !== 0 && this.ctx.arc(-width / 2 + r4, height / 2 - r4, r4 + lineWidth / 2, 0.5 * Math.PI, 1 * Math.PI); // 左下角圆弧
this.ctx.lineTo(
-width / 2 - lineWidth / 2,
r1 === 0 ? (notSolid ? -height / 2 : -height / 2 - lineWidth / 2) : -height / 2 + r1,
); // 左边线
notSolid && r1 === 0 && this.ctx.moveTo(-width / 2 - lineWidth, -height / 2 - lineWidth / 2); // 顶边虚线规避重叠规则
if (!notSolid) {
this.ctx.closePath();
}
}
/**
* 根据 borderRadius 进行裁减
*/
_doClip(borderRadius, width, height, borderStyle) {
if (borderRadius && width && height) {
// 防止在某些机型上周边有黑框现象,此处如果直接设置 fillStyle 为透明,在 Android 机型上会导致被裁减的图片也变为透明, iOS 和 IDE 上不会
// globalAlpha 在 1.9.90 起支持,低版本下无效,但把 fillStyle 设为了 white,相对默认的 black 要好点
this.ctx.globalAlpha = 0;
this.ctx.fillStyle = 'white';
this._border({
borderRadius,
width,
height,
borderStyle,
});
this.ctx.fill();
// 在 ios 的 6.6.6 版本上 clip 有 bug,禁掉此类型上的 clip,也就意味着,在此版本微信的 ios 设备下无法使用 border 属性
if (!(getApp().systemInfo && getApp().systemInfo.version <= '6.6.6' && getApp().systemInfo.platform === 'ios')) {
this.ctx.clip();
}
this.ctx.globalAlpha = 1;
}
}
/**
* 画边框
*/
_doBorder(view, width, height) {
if (!view.css) {
return;
}
const { borderRadius, borderWidth, borderColor, borderStyle } = view.css;
if (!borderWidth) {
return;
}
this.ctx.save();
this._preProcess(view, true);
this.ctx.strokeStyle = borderColor || 'black';
this._border({
borderRadius,
width,
height,
borderWidth,
borderStyle,
});
this.ctx.stroke();
this.ctx.restore();
}
_preProcess(view, notClip) {
let width = 0;
let height;
let extra;
const paddings = this._doPaddings(view);
switch (view.type) {
case 'text': {
const textArray = String(view.text).split('\n');
// 处理多个连续的'\n'
for (let i = 0; i < textArray.length; ++i) {
if (textArray[i] === '') {
textArray[i] = ' ';
}
}
const fontWeight = view.css.fontWeight || '400';
const textStyle = view.css.textStyle || 'normal';
if (!view.css.fontSize) {
view.css.fontSize = '20rpx';
}
this.ctx.font = `${textStyle} ${fontWeight} ${view.css.fontSize.toPx()}px "${
view.css.fontFamily || 'sans-serif'
}"`;
// 计算行数
let lines = 0;
const linesArray = [];
for (let i = 0; i < textArray.length; ++i) {
const textLength = this.ctx.measureText(textArray[i]).width;
const minWidth = view.css.fontSize.toPx() + paddings[1] + paddings[3];
let partWidth = view.css.width
? view.css.width.toPx(false, this.style.width) - paddings[1] - paddings[3]
: textLength;
if (partWidth < minWidth) {
partWidth = minWidth;
}
const calLines = Math.ceil(textLength / partWidth);
// 取最长的作为 width
width = partWidth > width ? partWidth : width;
lines += calLines;
linesArray[i] = calLines;
}
lines = view.css.maxLines < lines ? view.css.maxLines : lines;
const lineHeight = view.css.lineHeight ? view.css.lineHeight.toPx() : view.css.fontSize.toPx();
height = lineHeight * lines;
extra = {
lines: lines,
lineHeight: lineHeight,
textArray: textArray,
linesArray: linesArray,
};
break;
}
case 'image': {
// image的长宽设置成auto的逻辑处理
const ratio = getApp().systemInfo.pixelRatio ? getApp().systemInfo.pixelRatio : 2;
// 有css却未设置width或height,则默认为auto
if (view.css) {
if (!view.css.width) {
view.css.width = 'auto';
}
if (!view.css.height) {
view.css.height = 'auto';
}
}
if (!view.css || (view.css.width === 'auto' && view.css.height === 'auto')) {
width = Math.round(view.sWidth / ratio);
height = Math.round(view.sHeight / ratio);
} else if (view.css.width === 'auto') {
height = view.css.height.toPx(false, this.style.height);
width = (view.sWidth / view.sHeight) * height;
} else if (view.css.height === 'auto') {
width = view.css.width.toPx(false, this.style.width);
height = (view.sHeight / view.sWidth) * width;
} else {
width = view.css.width.toPx(false, this.style.width);
height = view.css.height.toPx(false, this.style.height);
}
break;
}
default:
if (!(view.css.width && view.css.height)) {
console.error('You should set width and height');
return;
}
width = view.css.width.toPx(false, this.style.width);
height = view.css.height.toPx(false, this.style.height);
break;
}
let x;
if (view.css && view.css.right) {
if (typeof view.css.right === 'string') {
x = this.style.width - view.css.right.toPx(true, this.style.width);
} else {
// 可以用数组方式,把文字长度计算进去
// [right, 文字id, 乘数(默认 1)]
const rights = view.css.right;
x =
this.style.width -
rights[0].toPx(true, this.style.width) -
penCache.viewRect[rights[1]].width * (rights[2] || 1);
}
} else if (view.css && view.css.left) {
if (typeof view.css.left === 'string') {
x = view.css.left.toPx(true, this.style.width);
} else {
const lefts = view.css.left;
x = lefts[0].toPx(true, this.style.width) + penCache.viewRect[lefts[1]].width * (lefts[2] || 1);
}
} else {
x = 0;
}
//const y = view.css && view.css.bottom ? this.style.height - height - view.css.bottom.toPx(true) : (view.css && view.css.top ? view.css.top.toPx(true) : 0);
let y;
if (view.css && view.css.bottom) {
y = this.style.height - height - view.css.bottom.toPx(true, this.style.height);
} else {
if (view.css && view.css.top) {
if (typeof view.css.top === 'string') {
y = view.css.top.toPx(true, this.style.height);
} else {
const tops = view.css.top;
y = tops[0].toPx(true, this.style.height) + penCache.viewRect[tops[1]].height * (tops[2] || 1);
}
} else {
y = 0;
}
}
const angle = view.css && view.css.rotate ? this._getAngle(view.css.rotate) : 0;
// 当设置了 right 时,默认 align 用 right,反之用 left
const align = view.css && view.css.align ? view.css.align : view.css && view.css.right ? 'right' : 'left';
const verticalAlign = view.css && view.css.verticalAlign ? view.css.verticalAlign : 'top';
// 记录绘制时的画布
let xa = 0;
switch (align) {
case 'center':
xa = x;
break;
case 'right':
xa = x - width / 2;
break;
default:
xa = x + width / 2;
break;
}
let ya = 0;
switch (verticalAlign) {
case 'center':
ya = y;
break;
case 'bottom':
ya = y - height / 2;
break;
default:
ya = y + height / 2;
break;
}
this.ctx.translate(xa, ya);
// 记录该 view 的有效点击区域
// TODO ,旋转和裁剪的判断
// 记录在真实画布上的左侧
let left = x;
if (align === 'center') {
left = x - width / 2;
} else if (align === 'right') {
left = x - width;
}
var top = y;
if (verticalAlign === 'center') {
top = y - height / 2;
} else if (verticalAlign === 'bottom') {
top = y - height;
}
if (view.rect) {
view.rect.left = left;
view.rect.top = top;
view.rect.right = left + width;
view.rect.bottom = top + height;
view.rect.x = view.css && view.css.right ? x - width : x;
view.rect.y = y;
} else {
view.rect = {
left: left,
top: top,
right: left + width,
bottom: top + height,
x: view.css && view.css.right ? x - width : x,
y: y,
};
}
view.rect.left = view.rect.left - paddings[3];
view.rect.top = view.rect.top - paddings[0];
view.rect.right = view.rect.right + paddings[1];
view.rect.bottom = view.rect.bottom + paddings[2];
if (view.type === 'text') {
view.rect.minWidth = view.css.fontSize.toPx() + paddings[1] + paddings[3];
}
this.ctx.rotate(angle);
if (!notClip && view.css && view.css.borderRadius && view.type !== 'rect') {
this._doClip(view.css.borderRadius, width, height, view.css.borderStyle);
}
this._doShadow(view);
if (view.id) {
penCache.viewRect[view.id] = {
width,
height,
left: x,
top: y,
right: x + width,
bottom: y + height,
};
}
return {
width: width,
height: height,
x: x,
y: y,
extra: extra,
};
}
_doPaddings(view) {
const { padding } = view.css ? view.css : {};
let pd = [0, 0, 0, 0];
if (padding) {
const pdg = padding.split(/\s+/);
if (pdg.length === 1) {
const x = pdg[0].toPx();
pd = [x, x, x, x];
}
if (pdg.length === 2) {
const x = pdg[0].toPx();
const y = pdg[1].toPx();
pd = [x, y, x, y];
}
if (pdg.length === 3) {
const x = pdg[0].toPx();
const y = pdg[1].toPx();
const z = pdg[2].toPx();
pd = [x, y, z, y];
}
if (pdg.length === 4) {
const x = pdg[0].toPx();
const y = pdg[1].toPx();
const z = pdg[2].toPx();
const a = pdg[3].toPx();
pd = [x, y, z, a];
}
}
return pd;
}
// 画文字的背景图片
_doBackground(view) {
this.ctx.save();
const { width: rawWidth, height: rawHeight } = this._preProcess(view, true);
const { background } = view.css;
let pd = this._doPaddings(view);
const width = rawWidth + pd[1] + pd[3];
const height = rawHeight + pd[0] + pd[2];
this._doClip(view.css.borderRadius, width, height, view.css.borderStyle);
if (GD.api.isGradient(background)) {
GD.api.doGradient(background, width, height, this.ctx);
} else {
this.ctx.fillStyle = background;
}
this.ctx.fillRect(-(width / 2), -(height / 2), width, height);
this.ctx.restore();
}
_drawQRCode(view) {
this.ctx.save();
const { width, height } = this._preProcess(view);
QR.api.draw(view.content, this.ctx, -width / 2, -height / 2, width, height, view.css.background, view.css.color);
this.ctx.restore();
this._doBorder(view, width, height);
}
_drawAbsImage(view) {
if (!view.url) {
return;
}
this.ctx.save();
const { width, height } = this._preProcess(view);
// 获得缩放到图片大小级别的裁减框
let rWidth = view.sWidth;
let rHeight = view.sHeight;
let startX = 0;
let startY = 0;
// 绘画区域比例
const cp = width / height;
// 原图比例
const op = view.sWidth / view.sHeight;
if (cp >= op) {
rHeight = rWidth / cp;
startY = Math.round((view.sHeight - rHeight) / 2);
} else {
rWidth = rHeight * cp;
startX = Math.round((view.sWidth - rWidth) / 2);
}
if (view.css && view.css.mode === 'scaleToFill') {
this.ctx.drawImage(view.url, -(width / 2), -(height / 2), width, height);
} else {
this.ctx.drawImage(view.url, startX, startY, rWidth, rHeight, -(width / 2), -(height / 2), width, height);
view.rect.startX = startX / view.sWidth;
view.rect.startY = startY / view.sHeight;
view.rect.endX = (startX + rWidth) / view.sWidth;
view.rect.endY = (startY + rHeight) / view.sHeight;
}
this.ctx.restore();
this._doBorder(view, width, height);
}
_fillAbsText(view) {
if (!view.text) {
return;
}
if (view.css.background) {
// 生成背景
this._doBackground(view);
}
this.ctx.save();
const { width, height, extra } = this._preProcess(view, view.css.background && view.css.borderRadius);
this.ctx.fillStyle = view.css.color || 'black';
if (view.id && penCache.textLines[view.id]) {
this.ctx.textAlign = view.css.textAlign ? view.css.textAlign : 'left';
for (const i of penCache.textLines[view.id]) {
const { measuredWith, text, x, y, textDecoration } = i;
if (view.css.textStyle === 'stroke') {
this.ctx.strokeText(text, x, y, measuredWith);
} else {
this.ctx.fillText(text, x, y, measuredWith);
}
if (textDecoration) {
const fontSize = view.css.fontSize.toPx();
this.ctx.lineWidth = fontSize / 13;
this.ctx.beginPath();
this.ctx.moveTo(...textDecoration.moveTo);
this.ctx.lineTo(...textDecoration.lineTo);
this.ctx.closePath();
this.ctx.strokeStyle = view.css.color;
this.ctx.stroke();
}
}
} else {
const { lines, lineHeight, textArray, linesArray } = extra;
// 如果设置了id,则保留 text 的长度
if (view.id) {
let textWidth = 0;
for (let i = 0; i < textArray.length; ++i) {
const _w = this.ctx.measureText(textArray[i]).width;
textWidth = _w > textWidth ? _w : textWidth;
}
penCache.viewRect[view.id].width = width ? (textWidth < width ? textWidth : width) : textWidth;
}
let lineIndex = 0;
for (let j = 0; j < textArray.length; ++j) {
const preLineLength = Math.ceil(textArray[j].length / linesArray[j]);
let start = 0;
let alreadyCount = 0;
for (let i = 0; i < linesArray[j]; ++i) {
// 绘制行数大于最大行数,则直接跳出循环
if (lineIndex >= lines) {
break;
}
alreadyCount = preLineLength;
let text = textArray[j].substr(start, alreadyCount);
let measuredWith = this.ctx.measureText(text).width;
// 如果测量大小小于width一个字符的大小,则进行补齐,如果测量大小超出 width,则进行减除
// 如果已经到文本末尾,也不要进行该循环
while (
start + alreadyCount <= textArray[j].length &&
(width - measuredWith > view.css.fontSize.toPx() || measuredWith - width > view.css.fontSize.toPx())
) {
if (measuredWith < width) {
text = textArray[j].substr(start, ++alreadyCount);
} else {
if (text.length <= 1) {
// 如果只有一个字符时,直接跳出循环
break;
}
text = textArray[j].substr(start, --alreadyCount);
// break;
}
measuredWith = this.ctx.measureText(text).width;
}
start += text.length;
// 如果是最后一行了,发现还有未绘制完的内容,则加...
if (lineIndex === lines - 1 && (j < textArray.length - 1 || start < textArray[j].length)) {
while (this.ctx.measureText(`${text}...`).width > width) {
if (text.length <= 1) {
// 如果只有一个字符时,直接跳出循环
break;
}
text = text.substring(0, text.length - 1);
}
text += '...';
measuredWith = this.ctx.measureText(text).width;
}
this.ctx.textAlign = view.css.textAlign ? view.css.textAlign : 'left';
let x;
let lineX;
switch (view.css.textAlign) {
case 'center':
x = 0;
lineX = x - measuredWith / 2;
break;
case 'right':
x = width / 2;
lineX = x - measuredWith;
break;
default:
x = -(width / 2);
lineX = x;
break;
}
const y =
-(height / 2) +
(lineIndex === 0 ? view.css.fontSize.toPx() : view.css.fontSize.toPx() + lineIndex * lineHeight);
lineIndex++;
if (view.css.textStyle === 'stroke') {
this.ctx.strokeText(text, x, y, measuredWith);
} else {
this.ctx.fillText(text, x, y, measuredWith);
}
const fontSize = view.css.fontSize.toPx();
let textDecoration;
if (view.css.textDecoration) {
this.ctx.lineWidth = fontSize / 13;
this.ctx.beginPath();
if (/\bunderline\b/.test(view.css.textDecoration)) {
this.ctx.moveTo(lineX, y);
this.ctx.lineTo(lineX + measuredWith, y);
textDecoration = {
moveTo: [lineX, y],
lineTo: [lineX + measuredWith, y],
};
}
if (/\boverline\b/.test(view.css.textDecoration)) {
this.ctx.moveTo(lineX, y - fontSize);
this.ctx.lineTo(lineX + measuredWith, y - fontSize);
textDecoration = {
moveTo: [lineX, y - fontSize],
lineTo: [lineX + measuredWith, y - fontSize],
};
}
if (/\bline-through\b/.test(view.css.textDecoration)) {
this.ctx.moveTo(lineX, y - fontSize / 3);
this.ctx.lineTo(lineX + measuredWith, y - fontSize / 3);
textDecoration = {
moveTo: [lineX, y - fontSize / 3],
lineTo: [lineX + measuredWith, y - fontSize / 3],
};
}
this.ctx.closePath();
this.ctx.strokeStyle = view.css.color;
this.ctx.stroke();
}
if (view.id) {
penCache.textLines[view.id]
? penCache.textLines[view.id].push({
text,
x,
y,
measuredWith,
textDecoration,
})
: (penCache.textLines[view.id] = [
{
text,
x,
y,
measuredWith,
textDecoration,
},
]);
}
}
}
}
this.ctx.restore();
this._doBorder(view, width, height);
}
_drawAbsRect(view) {
this.ctx.save();
const { width, height } = this._preProcess(view);
if (GD.api.isGradient(view.css.color)) {
GD.api.doGradient(view.css.color, width, height, this.ctx);
} else {
this.ctx.fillStyle = view.css.color;
}
const { borderRadius, borderStyle, borderWidth } = view.css;
this._border({
borderRadius,
width,
height,
borderWidth,
borderStyle,
});
this.ctx.fill();
this.ctx.restore();
this._doBorder(view, width, height);
}
// shadow 支持 (x, y, blur, color), 不支持 spread
// shadow:0px 0px 10px rgba(0,0,0,0.1);
_doShadow(view) {
if (!view.css || !view.css.shadow) {
return;
}
const box = view.css.shadow.replace(/,\s+/g, ',').split(/\s+/);
if (box.length > 4) {
console.error("shadow don't spread option");
return;
}
this.ctx.shadowOffsetX = parseInt(box[0], 10);
this.ctx.shadowOffsetY = parseInt(box[1], 10);
this.ctx.shadowBlur = parseInt(box[2], 10);
this.ctx.shadowColor = box[3];
}
_getAngle(angle) {
return (Number(angle) * Math.PI) / 180;
}
}
|
const { resolve } = require('path');
const root = (path = '') => {
return resolve('.', path);
};
module.exports= {
root
}
|
export type User = {
name: string;
};
export default function demo (input: User): string {
return input.name;
}
|
const producer = require("../dataproducer");
//希尔排序
function shellSort(ary) {
var n = ary.length;
//计算分组增量
var stepInc = parseInt(n/2);
//
while(stepInc > 0) {
for(var i = 0; i < stepInc; i++) {
for( var j = i + stepInc; j < n; j += stepInc) {
if(ary[j] < ary[j - stepInc]) {
var temp = ary[j];
var k = j - stepInc;
// 插入到目标位置
while( k >= 0 && ary[k] > temp) {
ary[k + stepInc] = ary[k];
k -= stepInc;
}
ary[k + stepInc] = temp;
}
}
}
stepInc = parseInt(stepInc / 2);
}
}
var toSort = producer.produceIntAry(12);
console.log(toSort);
shellSort(toSort);
console.log(toSort);
|
import React from 'react'
import { Link } from 'react-router-dom'
import Exception from 'Components/Exception'
export default () => (
<Exception type='500' style={{ minHeight: 500, height: '80%' }} linkElement={Link} />
)
|
'use strict';
/**
* Module dependencies.
*/
var passport = require('passport');
module.exports = function(app) {
// User Routes
var users = require('../../app/controllers/users.server.controller');
// Setting up the users profile api
app.route('/api/users/me').get(users.me);
app.route('/api/users').put(users.update);
app.route('/api/users/accounts').delete(users.removeOAuthProvider);
// Setting up the users password api
app.route('/api/users/password').post(users.changePassword);
app.route('/api/auth/forgot').post(users.forgot);
app.route('/api/auth/reset/:token').get(users.validateResetToken);
app.route('/api/auth/reset/:token').post(users.reset);
// Setting up the users authentication api
app.route('/api/auth/signup').post(users.signup);
app.route('/api/auth/signin').post(users.signin);
app.route('/api/auth/signout').get(users.signout);
// Setting the twitter oauth routes
app.route('/api/auth/twitter').get(passport.authenticate('twitter'));
app.route('/api/auth/twitter/callback').get(users.oauthCallback('twitter'));
// Setting the github oauth routes
app.route('/api/auth/github').get(passport.authenticate('github'));
app.route('/api/auth/github/callback').get(users.oauthCallback('github'));
// Finish by binding the user middleware
app.param('userId', users.userByID);
};
|
var elixir = require('laravel-elixir');
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a clean, fluent API for defining some basic Gulp tasks
| for your Laravel application. By default, we are compiling the Sass
| file for our application, as well as publishing vendor resources.
|
*/
elixir(function(mix) {
mix.sass('app.scss');
mix.scripts([
'../../../node_modules/jquery/dist/jquery.min.js',
'../../../node_modules/sweetalert/dist/sweetalert.min.js',
'app.js']);
});
|
const path = require('path');
module.exports = {
dev: {
filename: '[name].bundle.js',
publicPath: '',
pathinfo: true,
chunkFilename: "[id].chunk.js",
sourceMapFilename: '[file].map',
path: path.resolve(__dirname, '../client')
},
prodWebsite: {
filename: '[name].bundle.[chunkhash].js',
publicPath: '',
chunkFilename: '[id].[chunkhash].chunk.js',
sourceMapFilename: '[file].map',
path: path.resolve(__dirname, '../dist/website')
},
prodApp: {
filename: '[name].bundle.[chunkhash].js',
publicPath: '',
chunkFilename: '[id].[chunkhash].chunk.js',
sourceMapFilename: '[file].map',
path: path.resolve(__dirname, '../dist/app')
},
prodCordova: {
filename: '[name].bundle.[chunkhash].js',
publicPath: '',
chunkFilename: '[id].[chunkhash].chunk.js',
sourceMapFilename: '[file].map',
path: path.resolve(__dirname, '../dist/cordova')
}
};
|
function moduleController($scope, $http) {
$scope.moduleInit = function() {
this._init();
};
$scope.moduleInit.prototype = {
_init: function() {
this.getModule(); //获取模块列表
this.change_option(); //模块上传,列表切换
this.submit_module(); //上传模块
this.delete_module(); //删除模块
this.module_info(); //模块详情
this.open_module(); //开启模块
},
/**
* 获取模块列表
*
*/
getModule: function() {
$.ajax({
url: "/getmodule",
type: "GET",
async: false,
dataType: "json",
success: function(json) {
$.each(json, function(k, v) {
$("#read_module tbody").append("<tr data-id='" + v.id + "'><td>" + v.name + "</td><td>" + v.description + "</td>\n\
<td class='text-center'>" + v.p_name + "</td>\n\
<td class='text-center'>" + (v.play == 1 ? '<i class="fa fa-lg fa-check" style="margin-right:5px;color:#337AB7;"></i>' : '<i class="fa fa-lg fa-remove" style="margin-right:5px;color:#DA3327;"></i>') + "</td>\n\
<td class='text-center switch'><a href='javascript:void(0);'><span class='module_open " + (v.open == 1 ? "selected" : "") + "' style='margin:10px;'>开启</span></a>|<a href='javascript:void(0);'><span class='module_close " + (v.open == 0 ? "selected" : "") + "' style='margin:10px;'>关闭</span></a></td>\n\
<td class='text-center'>" + (v.settingurl ? ("<a href='" + v.settingurl + "'><i class='fa fa-lg fa-cogs'></i></a>") : "") + "<a href='javascript:void(0);'><i class='fa fa-lg fa-eye module_info'></i></a><a href='javascript:void(0);'><i class='fa fa-lg fa-arrow-up up_module'></i></a><a href='javascript:void(0);'><i class='fa fa-lg fa-trash del_module'></i></a></td></tr>");
});
}
});
},
/**
* 模块上传,列表切换
*
*/
change_option: function() {
$("#edit_module li").click(function() {
var id = $(this).data("id");
$("#edit_module li").removeClass("active");
$(this).addClass("active");
$("#module_info .panel-body").hide();
$("#module_info #" + id).show();
})
},
/**
*
* 删除模块
*/
delete_module: function() {
$(".del_module").click(function() {
var _this = $(this);
var id = $(this).parents("tr").data("id");
$.ajax({
url: "/deletemodule?id=" + id,
type: "GET",
dataType: "json",
success: function(json) {
alert(json.msg);
_this.parents("tr").remove();
}
});
});
},
/**
*
* 编辑模块
*/
module_info: function() {
$(".module_info").click(function() {
var op_html = '<ul class="nav">\n\
<form class="navbar-form navbar-left">\n\
<div class="form-group">';
var id = $(this).parents("tr").data("id");
$.ajax({
url: "/moduleinfo?id=" + id,
type: "GET",
async: false,
dataType: "json",
success: function(json) {
op_html += '<li><div class="panel panel-default"><label>模块名</label>: ' + json.name + '</div></li>';
op_html += '<li><div class="panel panel-default"><label>关联模块名</label>: ' + (json.p_name == "" ? "顶级模块" : json.p_name) + '</div></li>';
$.each(json.files, function(key, item) {
op_html += '<li><div class="panel panel-default"><label>' + key + '文件</label>: <ul class="nav" style="margin-left:50px;">';
$.each(item, function(k, v) {
op_html += '<li>' + v + '</li>';
})
op_html += '</ul></div></li>';
});
$.each(json.router, function(key, item) {
op_html += '<li><div class="panel panel-default"><label>后台界面路由</label>: <ul class="nav" style="margin-left:50px;">';
$.each(item, function(k, v) {
op_html += '<li><label>' + k + '</label>: ' + v + '</li>';
})
op_html += '</ul></div></li>';
});
op_html += '<li><div class="panel panel-default"><label>路由接口</label>: <ul class="nav" style="margin-left:50px;">';
$.each(json.routes, function(k, v) {
op_html += '<li>' + v.toString() + '</li>';
});
op_html += '</ul></div></li>';
op_html += '<li><div class="panel panel-default"><label>描 述</label>: ' + (json.description ? json.description : "") + '</div></li>';
op_html += '<li><div class="panel panel-default"><label>使用说明</label>: ' + (json.instructions ? json.instructions : "") + '</div></li>';
}
});
op_html += "</div></form></ul>";
var json = {title: "查看模块详情", class: "module_info", html: op_html};
var edit_module = Mask_panel(json);
// $(".module_info .save").hide();
$(".module_info .save").text("打印");
$(".module_info .save").click(function() {
$(".module_info").css("top", "0px");
$(".module_info").css("margin-top", "0px");
$(".module_info .panel-body").css("height", "");
$(".module_info .panel-body").css("overflow", "");
$(".module_info .panel-body").print();
if ($('.content').length) {
UE.getEditor('content').destroy();
}
$(".mask").remove();
});
});
$(".up_module").click(function() {
var op_html = "";
var id = $(this).parents("tr").data("id");
$.ajax({
url: "/moduleinfo?id=" + id,
type: "GET",
async: false,
dataType: "json",
success: function(json) {
op_html += '<li data-role="name"><label>模块名</label>: <div class="top_align"><input type="text" class="form-control data" value="' + json.name + '"><input type="hidden" class="module_id" value="' + id + '"/></div></li>';
var p_name_html = "";
var p_names = [];
p_names = json.p_name.split(",");
$.each(p_names, function(k, v) {
p_name_html += "<div class='p_name_div'><input type='text' class='form-control data' value='" + v + "'><span class='del_i del_p_name' onclick='del_div($(this));'><i class='fa fa-minus-circle'></i></span></div>";
});
p_name_html += '<div><span class="add_i add_p_name" onclick="add_p_name($(this));"><i class="fa fa-plus-circle"></i></span></div>';
op_html += '<li data-role="p_name"><label>关联模块名</label>: <div class="top_align">' + p_name_html + '</div></li>';
var files_html = '';
$.each(json.files, function(key, item) {
var file_html = '';
$.each(item, function(k, v) {
file_html += '<div class="file_div"><input type="text" class="form-control data" style="width:80%;" value="' + v + '" /><span class="del_i" onclick="del_div($(this));"><i class="fa fa-minus-circle"></i></span></div>';
});
files_html += '<div class="files_div"><span class="del_div del_i del_files_div" onclick="del_div($(this));"><i class="fa fa-times-circle-o"></i></span><label>名称:</label><input type="text" class="form-control top_align title" value="' + key + '" /><br /><label>文件:</label><div class="top_align" style="width:80%;display: inline-block;margin-top:5px;">' + file_html + '<div><span class="add_i add_file" onclick="add_file($(this));"><i class="fa fa-plus-circle"></i></span></div></div></div>'
});
op_html += '<li data-role="files"><label>涉及文件</label>:<div class="top_align" style="width:80%">' + files_html + '<div><span class="add_i add_files" onclick="add_files($(this));"><i class="fa fa-plus-circle"></i></span></div></div></li>';
var router_html = '';
var router_names = {};
router_names["router"] = "名称";
router_names["url"] = "路由";
router_names["templateUrl"] = "模板文件";
router_names["jsurl"] = "js文件";
router_names["pagecontroller"] = "js控制器名称";
var router_place = {};
router_place["router"] = "(例:article)";
router_place["url"] = "(例:/article)";
router_place["templateUrl"] = "(例:page/article.html)";
router_place["jsurl"] = "(例:page/js/article.js)";
router_place["pagecontroller"] = "(例:articleController)";
$.each(json.router, function(key, item) {
router_html += '<div class="router_div"><span class="del_i del_div del_router_div" onclick="del_div($(this));"><i class="fa fa-times-circle-o"></i></span>';
$.each(item, function(k, v) {
router_html += '<div data-title="' + k + '" style="margin-bottom:5px;"><label>' + router_names[k] + '</label>:<input type="text" class="form-control data" value="' + v + '" style="margin-left:5px;" placeholder="' + router_place[k] + '" /></div>';
})
router_html += '</div>';
});
op_html += '<li data-role="router"><label>后台界面路由</label>:<div class="top_align" style="width:80%">' + router_html + '<div><span class="add_i add_router" onclick="add_router($(this));"><i class="fa fa-plus-circle"></i></span></div></div></li>';
var routes_html = "";
$.each(json.routes, function(k, v) {
routes_html += '<div class="routes_div"><input type="text" class="form-control data" style="width:80%;margin-bottom:5px;" value="' + v + '" /><span class="del_i del_routes" onclick="del_div($(this));"><i class="fa fa-minus-circle"></i></span></div>';
});
op_html += '<li data-role="routes"><label>路由接口</label>: <div class="top_align" style="width:80%;">' + routes_html + '<div><span class="add_i add_routes" onclick="add_routes($(this));"><i class="fa fa-plus-circle"></i></span></div></div></li>';
var json_html = "";
$.each(json.json, function(k, v) {
json_html += '<div class="json_div" style="margin-bottom:20px;"><span class="del_i del_div del_json_div" onclick="del_div($(this));"><i class="fa fa-times-circle-o"></i></span><label>文件路径:</label><input type="text" class="form-control top_align title" style="margin-bottom:5px;width:80%;max-width:300px;" value="' + k + '" /><br /><label>json内容:</label><textarea class="form-control top_align data" style="width:80%;height:100px;">' + JSON.stringify(v) + '</textarea></div>';
});
op_html += '<li data-role="json"><label>json文件配置</label>: <div class="top_align" style="width:80%;">' + json_html + '<div><span class="add_i add_json" onclick="add_json($(this));"><i class="fa fa-plus-circle"></i></span></div></div></li>';
op_html += '<li data-role="settingurl"><label>模块设置路由</label>: <div class="top_align"><input type="text" class="form-control data" placeholder="(例:#/homesetting)" value="' + json.settingurl + '"></div></li>';
op_html += '<li data-role="description"><label>描 述</label>: <div class="top_align" style="width:80%"><textarea class="form-control data" style="width:100%;height:100px;">' + (json.description ? json.description : "") + '</textarea></div></li>';
op_html += '<li data-role="instructions"><label>使用说明</label>: <div class="top_align" style="width:80%"><textarea class="form-control data" style="width:100%;height:100px;">' + (json.instructions ? json.instructions : "") + '</textarea></div></li>';
}
});
$(".upgrade_module_ul").html(op_html);
$(".upgrade_module_panel").show();
$(".upgrade_module_panel .save").attr("disabled", false);
});
$(".create_module").click(function() {
var op_html = "";
var id = 0;
var json = {name: "", p_name: "", files: "", router: "", routes: "", json: "", description: "", instructions: "", settingurl: ""};
op_html += '<li data-role="name"><label>模块名</label>: <div class="top_align"><input type="text" class="form-control data" value="' + json.name + '"><input type="hidden" class="module_id" value="' + id + '"/></div></li>';
var p_name_html = "";
var p_names = [];
p_names = json.p_name.split(",");
$.each(p_names, function(k, v) {
p_name_html += "<div class='p_name_div'><input type='text' class='form-control data' value='" + v + "'><span class='del_i del_p_name' onclick='del_div($(this));'><i class='fa fa-minus-circle'></i></span></div>";
});
p_name_html += '<div><span class="add_i add_p_name" onclick="add_p_name($(this));"><i class="fa fa-plus-circle"></i></span></div>';
op_html += '<li data-role="p_name"><label>关联模块名</label>: <div class="top_align">' + p_name_html + '</div></li>';
var files_html = '';
$.each(json.files, function(key, item) {
var file_html = '';
$.each(item, function(k, v) {
file_html += '<div class="file_div"><input type="text" class="form-control data" style="width:80%;" value="' + v + '" /><span class="del_i" onclick="del_div($(this));"><i class="fa fa-minus-circle"></i></span></div>';
});
files_html += '<div class="files_div"><span class="del_div del_i del_files_div" onclick="del_div($(this));"><i class="fa fa-times-circle-o"></i></span><label>名称:</label><input type="text" class="form-control top_align title" value="' + key + '" /><br /><label>文件:</label><div class="top_align" style="width:80%;display: inline-block;margin-top:5px;">' + file_html + '<div><span class="add_i add_file" onclick="add_file($(this));"><i class="fa fa-plus-circle"></i></span></div></div></div>'
});
op_html += '<li data-role="files"><label>涉及文件</label>:<div class="top_align" style="width:80%">' + files_html + '<div><span class="add_i add_files" onclick="add_files($(this));"><i class="fa fa-plus-circle"></i></span></div></div></li>';
var router_html = '';
var router_names = {};
router_names["router"] = "名称";
router_names["url"] = "路由";
router_names["templateUrl"] = "模板文件";
router_names["jsurl"] = "js文件";
router_names["pagecontroller"] = "js控制器名称";
var router_place = {};
router_place["router"] = "(例:article)";
router_place["url"] = "(例:/article)";
router_place["templateUrl"] = "(例:page/article.html)";
router_place["jsurl"] = "(例:page/js/article.js)";
router_place["pagecontroller"] = "(例:articleController)";
$.each(json.router, function(key, item) {
router_html += '<div class="router_div"><span class="del_i del_div del_router_div" onclick="del_div($(this));"><i class="fa fa-times-circle-o"></i></span>';
$.each(item, function(k, v) {
router_html += '<div data-title="' + k + '" style="margin-bottom:5px;"><label>' + router_names[k] + '</label>:<input type="text" class="form-control data" value="' + v + '" style="margin-left:5px;" placeholder="' + router_place[k] + '" /></div>';
})
router_html += '</div>';
});
op_html += '<li data-role="router"><label>后台界面路由</label>:<div class="top_align" style="width:80%">' + router_html + '<div><span class="add_i add_router" onclick="add_router($(this));"><i class="fa fa-plus-circle"></i></span></div></div></li>';
var routes_html = "";
$.each(json.routes, function(k, v) {
routes_html += '<div class="routes_div"><input type="text" class="form-control data" style="width:80%;margin-bottom:5px;" value="' + v + '" /><span class="del_i del_routes" onclick="del_div($(this));"><i class="fa fa-minus-circle"></i></span></div>';
});
op_html += '<li data-role="routes"><label>路由接口</label>: <div class="top_align" style="width:80%;">' + routes_html + '<div><span class="add_i add_routes" onclick="add_routes($(this));"><i class="fa fa-plus-circle"></i></span></div></div></li>';
var json_html = "";
$.each(json.json, function(k, v) {
json_html += '<div class="json_div" style="margin-bottom:20px;"><span class="del_i del_div del_json_div" onclick="del_div($(this));"><i class="fa fa-times-circle-o"></i></span><label>文件路径:</label><input type="text" class="form-control top_align title" style="margin-bottom:5px;width:80%;max-width:300px;" value="' + k + '" /><br /><label>json内容:</label><textarea class="form-control top_align data" style="width:80%;height:100px;">' + JSON.stringify(v) + '</textarea></div>';
});
op_html += '<li data-role="json"><label>json文件配置</label>: <div class="top_align" style="width:80%;">' + json_html + '<div><span class="add_i add_json" onclick="add_json($(this));"><i class="fa fa-plus-circle"></i></span></div></div></li>';
op_html += '<li data-role="settingurl"><label>模块设置路由</label>: <div class="top_align"><input type="text" class="form-control data" placeholder="(例:#/homesetting)" value="' + json.settingurl + '"></div></li>';
op_html += '<li data-role="description"><label>描 述</label>: <div class="top_align" style="width:80%"><textarea class="form-control data" style="width:100%;height:100px;">' + (json.description ? json.description : "") + '</textarea></div></li>';
op_html += '<li data-role="instructions"><label>使用说明</label>: <div class="top_align" style="width:80%"><textarea class="form-control data" style="width:100%;height:100px;">' + (json.instructions ? json.instructions : "") + '</textarea></div></li>';
$(".upgrade_module_ul").html(op_html);
$(".upgrade_module_panel").show();
$(".upgrade_module_panel .save").attr("disabled", false);
});
$(".upgrade_module_panel .save").click(function() {
$(".upgrade_module_panel .save").attr("disabled", true);
$(".upgrade_module_panel").hide();
});
$(".upgrade_module_panel .cancel").click(function() {
$(".upgrade_module_panel .save").attr("disabled", true);
$(".upgrade_module_panel").hide();
});
window.del_div = function(_this) {
_this.parent("div").remove();
}
window.add_p_name = function(_this) {
var html = '<div class="p_name_div">\n\
<input type="text" class="form-control data" placeholder="(例:Upload)" value="">\n\
<span class="del_i del_p_name" onclick="del_div($(this));">\n\
<i class="fa fa-minus-circle"></i>\n\
</span>\n\
</div>';
_this.parent("div").before(html);
}
window.add_file = function(_this) {
var html = '<div class="file_div">\n\
<input type="text" class="form-control data" placeholder="(例:app/Http/Controllers/ClassifyController.php)" style="width:80%;" value="">\n\
<span class="del_i" onclick="del_div($(this));">\n\
<i class="fa fa-minus-circle"></i>\n\
</span>\n\
</div>';
_this.parent("div").before(html);
}
window.add_files = function(_this) {
var html = '<div class="files_div">\n\
<span class="del_div del_i del_files_div" onclick="del_div($(this));">\n\
<i class="fa fa-times-circle-o"></i>\n\
</span>\n\
<label>名称:</label><input type="text" class="form-control top_align title" placeholder="(例:include_function)" value=""><br />\n\
<label>文件:</label><div class="top_align" style="width:80%;display: inline-block;margin-top:5px;">\n\
<div class="file_div">\n\
<input type="text" class="form-control data" style="width:80%;" placeholder="(例:app/Http/Controllers/include_function/print_classify.php)" value="">\n\
<span class="del_i" onclick="del_div($(this));">\n\
<i class="fa fa-minus-circle"></i>\n\
</span>\n\
</div>\n\
<div>\n\
<span class="add_i add_file" onclick="add_file($(this));">\n\
<i class="fa fa-plus-circle"></i>\n\
</span>\n\
</div>\n\
</div>';
_this.parent("div").before(html);
}
window.add_router = function(_this) {
var html = '<div class="router_div">\n\
<span class="del_i del_div del_router_div" onclick="del_div($(this));">\n\
<i class="fa fa-times-circle-o"></i>\n\
</span>\n\
<div data-title="router" style="margin-bottom:5px;">\n\
<label>名称</label>:<input type="text" class="form-control data" value="" style="margin-left:5px;" placeholder="(例:article)">\n\
</div>\n\
<div data-title="url" style="margin-bottom:5px;">\n\
<label>路由</label>:<input type="text" class="form-control data" value="" style="margin-left:5px;" placeholder="(例:/article)">\n\
</div>\n\
<div data-title="templateUrl" style="margin-bottom:5px;">\n\
<label>模板文件</label>:<input type="text" class="form-control data" value="" style="margin-left:5px;" placeholder="(例:page/article.html)">\n\
</div>\n\
<div data-title="jsurl" style="margin-bottom:5px;">\n\
<label>js文件</label>:<input type="text" class="form-control data" value="" style="margin-left:5px;" placeholder="(例:page/js/article.js)">\n\
</div>\n\
<div data-title="pagecontroller" style="margin-bottom:5px;">\n\
<label>js控制器名称</label>:<input type="text" class="form-control data" value="" style="margin-left:5px;" placeholder="(例:articleController)">\n\
</div>\n\
</div>';
_this.parent("div").before(html);
}
window.add_routes = function(_this) {
var html = '<div class="routes_div">\n\
<input type="text" class="form-control data" style="width:80%;margin-bottom:5px;" value="" placeholder="(例:Route::post(\'classify-sort\', [\'as\' => \'classify-list\',\'middleware\' => \'auth\',\'uses\' => \'ClassifyController@classifySort\']);//不可使用双引号)">\n\
<span class="del_i del_routes" onclick="del_div($(this));">\n\
<i class="fa fa-minus-circle"></i>\n\
</span>\n\
</div>';
_this.parent("div").before(html);
}
window.add_json = function(_this) {
var html = '<div class="json_div" style="margin-bottom:20px;">\n\
<span class="del_i del_div del_json_div" onclick="del_div($(this));">\n\
<i class="fa fa-times-circle-o"></i>\n\
</span>\n\
<label>文件路径:</label>\n\
<input type="text" class="form-control top_align title" style="margin-bottom:5px;width:80%;max-width:300px;" placeholder="/public/admin/json/page_type.json" value=""><br />\n\
<label>json内容:</label><textarea class="form-control top_align data" placeholder=\'(例:{"list":"列表","page":"单页"})\' style="width:80%;height:100px;"></textarea>\n\
</div>';
_this.parent("div").before(html);
}
window.save_upgrad = function(_this) {
var data = {};
var id = $("#upgrade-module .module_id").val();
data['name'] = $("#upgrade-module li[data-role=name] .data").val();
var p_names = [];
var num = 0;
var err = 0;
var msg = "";
$("#upgrade-module li[data-role=p_name] .data").each(function() {
if ($(this).val() != "") {
p_names[num] = $(this).val();
num++;
}
});
data['p_name'] = p_names.join(",");
var files = {};
$("#upgrade-module li[data-role=files] .files_div").each(function() {
var title = $(this).find(".title").val();
if (title == "" && $(this).find(".data").length > 0) {
err = 1;
msg = "涉及文件-名称,不可为空!";
} else if (title != "" && $(this).find(".data").length > 0) {
files[title] = {};
num = 1;
$(this).find(".data").each(function() {
files[title][num] = $(this).val();
num++;
});
}
});
data['files'] = files;
var router = {};
num = 1;
$("#upgrade-module li[data-role=router] .router_div").each(function() {
router[num] = {};
router[num]["url"] = $(this).find("div[data-title=url]").length > 0 ? $(this).find("div[data-title=url] .data").val() : "";
router[num]["router"] = $(this).find("div[data-title=router]").length > 0 ? $(this).find("div[data-title=router] .data").val() : "";
router[num]["templateUrl"] = $(this).find("div[data-title=templateUrl]").length > 0 ? $(this).find("div[data-title=templateUrl] .data").val() : "";
router[num]["jsurl"] = $(this).find("div[data-title=jsurl]").length > 0 ? $(this).find("div[data-title=jsurl] .data").val() : "";
router[num]["pagecontroller"] = $(this).find("div[data-title=pagecontroller]").length > 0 ? $(this).find("div[data-title=pagecontroller] .data").val() : "";
num++;
});
data['router'] = router;
var routes = {};
num = 1;
$("#upgrade-module li[data-role=routes] .routes_div").each(function() {
$(this).find(".data").val != "" ? (routes[num++] = $(this).find(".data").val()) : "";
});
data['routes'] = routes;
var json_data = {};
$("#upgrade-module li[data-role=json] .json_div").each(function() {
var title = $(this).find(".title").val();
if (title != "") {
json_data[title] = $(this).find(".data").val() != "" ? JSON.parse($(this).find(".data").val()) : "";
} else {
err = 1;
msg = "json文件配置-文件路径,不可为空!";
}
});
if (err == 1) {
alert(msg);
}
data['json'] = json_data;
data['settingurl'] = $("#upgrade-module li[data-role=settingurl] .data").val();
data['description'] = $("#upgrade-module li[data-role=description] .data").val();
data['instructions'] = $("#upgrade-module li[data-role=instructions] .data").val();
$.ajax({
url: "/upgrade_module",
type: "POST",
data: {id: id, open: 0, data: data},
dataType: "json",
async: false,
success: function(json) {
alert(json.msg);
if (err == 0) {
window.location.reload();
}
}
});
}
},
/**
* 上传模块
*
*/
submit_module: function() {
$("#add_module #add_submit").click(function() {
var data = new FormData();
var files = $('#module_file')[0].files;
var file = files[0];
data.append("module_file", file);
$.ajax({
url: "/addmodule",
type: "POST",
data: data,
dataType: "json",
cache: false,
contentType: false, //告诉jQuery不要去处理发送的数据
processData: false, //不将传输数据转为对象,告诉jQuery不要去设置Content-Type请求头
success: function(json) {
alert(json.msg);
location.reload();
}
});
});
},
/**
* 开启关闭模块
*/
open_module: function() {
$("#read_module .module_open").click(function() {
if (!$(this).hasClass("selected")) {
var id = $(this).parents("tr").data("id");
var _this = $(this);
$.ajax({
url: "/openmodule",
aysnc: false,
data: {id: id, open: 1},
type: "POST",
dataType: "json",
success: function(json) {
if (json.err == 0) {
_this.parents("tr").find("span").removeClass("selected");
_this.addClass("selected");
var hint = new Hint_box(json.msg);
} else {
var hint = new Hint_box(json.msg);
}
}
});
}
});
$("#read_module .module_close").click(function() {
if (!$(this).hasClass("selected")) {
var id = $(this).parents("tr").data("id");
var _this = $(this);
$.ajax({
url: "/openmodule",
aysnc: false,
data: {id: id, open: 0},
type: "POST",
dataType: "json",
success: function(json) {
if (json.err == 0) {
_this.parents("tr").find("span").removeClass("selected");
_this.addClass("selected");
var hint = new Hint_box(json.msg);
} else {
var hint = new Hint_box(json.msg);
}
}
});
}
});
}
}
var init = new $scope.moduleInit();
}
|
dojo.provide("dojo.nls.dojo-ext_fr-fr");dojo.provide("dojo.nls.colors");dojo.nls.colors._built=true;dojo.provide("dojo.nls.colors.fr_fr");dojo.nls.colors.fr_fr={"lightsteelblue":"bleu acier clair","orangered":"rouge orangé","midnightblue":"bleu nuit","cadetblue":"bleu pétrole","seashell":"coquillage","slategrey":"gris ardoise","coral":"corail","darkturquoise":"turquoise foncé","antiquewhite":"blanc antique","mediumspringgreen":"vert printemps moyen","salmon":"saumon","darkgrey":"gris foncé","ivory":"ivoire","greenyellow":"vert-jaune","mistyrose":"rose pâle","lightsalmon":"saumon clair","silver":"argent","dimgrey":"gris soutenu","orange":"orange","white":"blanc","navajowhite":"chair","royalblue":"bleu roi","deeppink":"rose soutenu","lime":"vert citron","oldlace":"blanc cassé","chartreuse":"vert vif","darkcyan":"cyan foncé","yellow":"jaune","linen":"écru","olive":"olive","gold":"or","lawngreen":"vert prairie","lightyellow":"jaune clair","tan":"grège","darkviolet":"violet foncé","lightslategrey":"gris ardoise clair","grey":"gris","darkkhaki":"kaki foncé","green":"vert","deepskyblue":"bleu ciel soutenu","aqua":"bleu-vert","sienna":"terre de sienne","mintcream":"crème de menthe","rosybrown":"vieux rose","mediumslateblue":"bleu ardoise moyen","magenta":"magenta","lightseagreen":"vert d'eau clair","cyan":"cyan","olivedrab":"brun verdâtre","darkgoldenrod":"jaune paille foncé","slateblue":"bleu ardoise","mediumaquamarine":"aigue-marine moyen","lavender":"lavande","mediumseagreen":"vert d'eau moyen","maroon":"marron","darkslategray":"gris ardoise foncé","mediumturquoise":"turquoise moyen","ghostwhite":"blanc laiteux","darkblue":"bleu foncé","mediumvioletred":"rouge violacé moyen","brown":"brun","lightgray":"gris clair","sandybrown":"sable","pink":"rose","firebrick":"rouge brique","indigo":"indigo","snow":"neige","darkorchid":"lilas foncé","turquoise":"turquoise","chocolate":"chocolat","springgreen":"vert printemps","moccasin":"chamois","navy":"bleu marine","lemonchiffon":"mousse de citron","teal":"sarcelle","floralwhite":"lys","cornflowerblue":"bleuet","paleturquoise":"turquoise pâle","purple":"pourpre","gainsboro":"gris souris","plum":"prune","red":"rouge","blue":"bleu","forestgreen":"vert sapin","darkgreen":"vert foncé","honeydew":"opalin","darkseagreen":"vert d'eau foncé","lightcoral":"corail clair","palevioletred":"rouge violacé pâle","mediumpurple":"pourpre moyen","saddlebrown":"brun cuir","darkmagenta":"magenta foncé","thistle":"chardon","whitesmoke":"blanc cendré","wheat":"blé","violet":"violet","lightskyblue":"bleu ciel clair","goldenrod":"jaune paille","mediumblue":"bleu moyen","skyblue":"bleu ciel","crimson":"cramoisi","darksalmon":"saumon foncé","darkred":"rouge foncé","darkslategrey":"gris ardoise foncé","peru":"caramel","lightgrey":"gris clair","lightgoldenrodyellow":"jaune paille clair","blanchedalmond":"coquille d'oeuf","aliceblue":"bleu gris","bisque":"beige rosé","slategray":"gris ardoise","palegoldenrod":"jaune paille pâle","darkorange":"orange foncé","aquamarine":"aigue-marine","lightgreen":"vert clair","burlywood":"bois précieux","dodgerblue":"bleu France","darkgray":"gris foncé","lightcyan":"cyan clair","powderblue":"bleu de smalt","blueviolet":"bleu-violet","orchid":"lilas","dimgray":"gris soutenu","beige":"beige","fuchsia":"fuchsia","lavenderblush":"lavandin","hotpink":"rose intense","steelblue":"bleu acier","tomato":"tomate","lightpink":"rose clair","limegreen":"citron vert","indianred":"rose indien","papayawhip":"crème de papaye","lightslategray":"gris ardoise clair","gray":"gris","mediumorchid":"lilas moyen","cornsilk":"vanille","black":"noir","seagreen":"vert d'eau","darkslateblue":"bleu ardoise foncé","khaki":"kaki","lightblue":"bleu clair","palegreen":"vert pâle","azure":"bleu azur","peachpuff":"pêche","darkolivegreen":"olive foncé","yellowgreen":"vert jaunâtre"};dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.fr_fr");dijit.nls.loading.fr_fr={"loadingState":"Chargement...","errorState":"Une erreur est survenue"};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.fr_fr");dijit.nls.common.fr_fr={"buttonOk":"OK","buttonCancel":"Annuler","buttonSave":"Sauvegarder","itemClose":"Fermer"};dojo.provide("dijit._editor.nls.commands");dijit._editor.nls.commands._built=true;dojo.provide("dijit._editor.nls.commands.fr_fr");dijit._editor.nls.commands.fr_fr={"removeFormat":"Supprimer la mise en forme","copy":"Copier","paste":"Coller","selectAll":"Sélectionner tout","insertOrderedList":"Liste numérotée","insertTable":"Insérer/Modifier un tableau","print":"Imprimer","underline":"Souligner","foreColor":"Couleur d'avant-plan","htmlToggle":"Source HTML","formatBlock":"Style de paragraphe","newPage":"Nouvelle page","insertHorizontalRule":"Règle horizontale","delete":"Supprimer","insertUnorderedList":"Liste à puces","tableProp":"Propriété du tableau","insertImage":"Insérer une image","superscript":"Exposant","subscript":"Indice","createLink":"Créer un lien","undo":"Annuler","fullScreen":"Basculer en plein écran","italic":"Italique","fontName":"Nom de police","justifyLeft":"Aligner à gauche","unlink":"Supprimer le lien","toggleTableBorder":"Afficher/Masquer la bordure du tableau","viewSource":"Afficher la source HTML","fontSize":"Taille de police","systemShortcut":"L'action \"${0}\" est disponible dans votre navigateur uniquement, par le biais d'un raccourci-clavier. Utilisez ${1}.","indent":"Retrait","redo":"Rétablir","strikethrough":"Barrer","justifyFull":"Justifier","justifyCenter":"Aligner au centre","hiliteColor":"Couleur d'arrière-plan","deleteTable":"Supprimer le tableau","outdent":"Retrait négatif","cut":"Couper","plainFormatBlock":"Style de paragraphe","toggleDir":"Changer de sens","bold":"Gras","tabIndent":"Retrait de tabulation","justifyRight":"Aligner à droite","appleKey":"⌘${0}","ctrlKey":"ctrl+${0}"};dojo.provide("dijit.form.nls.validate");dijit.form.nls.validate._built=true;dojo.provide("dijit.form.nls.validate.fr_fr");dijit.form.nls.validate.fr_fr={"rangeMessage":"Cette valeur n'est pas comprise dans la plage autorisée.","invalidMessage":"La valeur indiquée n'est pas correcte.","missingMessage":"Cette valeur est requise."};dojo.provide("dijit.form.nls.ComboBox");dijit.form.nls.ComboBox._built=true;dojo.provide("dijit.form.nls.ComboBox.fr_fr");dijit.form.nls.ComboBox.fr_fr={"previousMessage":"Choix précédents","nextMessage":"Plus de choix"};dojo.provide("dijit._editor.nls.FontChoice");dijit._editor.nls.FontChoice._built=true;dojo.provide("dijit._editor.nls.FontChoice.fr_fr");dijit._editor.nls.FontChoice.fr_fr={"noFormat":"Néant","1":"xxs","2":"xs","formatBlock":"Mise en forme","3":"s","4":"m","5":"l","6":"xl","7":"xxl","fantasy":"fantaisie","serif":"serif","p":"Paragraphe","pre":"Pré-mise en forme","sans-serif":"sans serif","fontName":"Police","h1":"En-tête","h2":"Sous-en-tête","h3":"Sous-sous-en-tête","monospace":"espacement fixe","fontSize":"Taille","cursive":"cursive"};dojo.provide("dijit._editor.nls.LinkDialog");dijit._editor.nls.LinkDialog._built=true;dojo.provide("dijit._editor.nls.LinkDialog.fr_fr");dijit._editor.nls.LinkDialog.fr_fr={"text":"Description :","insertImageTitle":"Propriétés de l'image","set":"Définir","newWindow":"Nouvelle fenêtre","topWindow":"Fenêtre supérieure","target":"Cible :","createLinkTitle":"Propriétés du lien","parentWindow":"Fenêtre parent","currentWindow":"Fenêtre actuelle","url":"URL :"};dojo.provide("dojo.cldr.nls.number");dojo.cldr.nls.number._built=true;dojo.provide("dojo.cldr.nls.number.fr_fr");dojo.cldr.nls.number.fr_fr={"group":" ","percentSign":"%","exponential":"E","percentFormat":"#,##0 %","scientificFormat":"#E0","list":";","infinity":"∞","patternDigit":"#","minusSign":"-","decimal":",","nan":"NaN","nativeZeroDigit":"0","perMille":"‰","decimalFormat":"#,##0.###","currencyFormat":"#,##0.00 ¤","plusSign":"+","currencySpacing-afterCurrency-currencyMatch":"[:letter:]","currencySpacing-beforeCurrency-surroundingMatch":"[:digit:]","decimalFormat-short":"000T","currencySpacing-afterCurrency-insertBetween":" ","currencySpacing-afterCurrency-surroundingMatch":"[:digit:]","currencySpacing-beforeCurrency-currencyMatch":"[:letter:]","currencySpacing-beforeCurrency-insertBetween":" "};dojo.provide("dojo.cldr.nls.currency");dojo.cldr.nls.currency._built=true;dojo.provide("dojo.cldr.nls.currency.fr_fr");dojo.cldr.nls.currency.fr_fr={"HKD_displayName":"dollar de Hong Kong","CHF_displayName":"franc suisse","CHF_symbol":"CHF","JPY_symbol":"¥JP","HKD_symbol":"$HK","CAD_displayName":"dollar canadien","CNY_displayName":"yuan renminbi chinois","USD_symbol":"$US","AUD_displayName":"dollar australien","JPY_displayName":"yen japonais","CAD_symbol":"$CA","USD_displayName":"dollar des États-Unis","CNY_symbol":"Ұ","GBP_displayName":"livre sterling","GBP_symbol":"£UK","AUD_symbol":"$AU","EUR_displayName":"euro","EUR_symbol":"€"};dojo.provide("dojo.cldr.nls.gregorian");dojo.cldr.nls.gregorian._built=true;dojo.provide("dojo.cldr.nls.gregorian.fr_fr");dojo.cldr.nls.gregorian.fr_fr={"months-format-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-weekday":"jour de la semaine","dateFormatItem-yyQQQQ":"QQQQ yy","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"EEE d/M/yyyy","dateFormatItem-MMMEd":"E d MMM","eraNarrow":["av. J.-C.","ap. J.-C."],"dayPeriods-format-wide-morning":"matin","dateFormatItem-MMMdd":"dd MMM","dateFormat-long":"d MMMM y","months-format-wide":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],"dayPeriods-format-wide-pm":"PM","dateFormat-full":"EEEE d MMMM y","dateFormatItem-Md":"d/M","dayPeriods-format-wide-noon":"midi","field-era":"ère","dateFormatItem-yM":"M/yyyy","months-standAlone-wide":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],"timeFormat-short":"HH:mm","quarters-format-wide":["1er trimestre","2e trimestre","3e trimestre","4e trimestre"],"timeFormat-long":"HH:mm:ss z","field-year":"année","dateFormatItem-yMMM":"MMM y","dateFormatItem-yQ":"'T'Q y","dateFormatItem-yyyyMMMM":"MMMM y","field-hour":"heure","dateFormatItem-MMdd":"dd/MM","months-format-abbr":["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],"dateFormatItem-yyQ":"'T'Q yy","timeFormat-full":"HH:mm:ss zzzz","field-day-relative+0":"aujourd’hui","field-day-relative+1":"demain","field-day-relative+2":"après-demain","field-day-relative+3":"après-après-demain","months-standAlone-abbr":["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],"quarters-format-abbr":["T1","T2","T3","T4"],"quarters-standAlone-wide":["1er trimestre","2e trimestre","3e trimestre","4e trimestre"],"dateFormatItem-M":"L","days-standAlone-wide":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],"dateFormatItem-yyMMMEEEd":"EEE d MMM yy","dateFormatItem-yyMMM":"MMM yy","timeFormat-medium":"HH:mm:ss","dateFormatItem-Hm":"HH:mm","quarters-standAlone-abbr":["T1","T2","T3","T4"],"eraAbbr":["av. J.-C.","ap. J.-C."],"field-minute":"minute","field-dayperiod":"cadran","days-standAlone-abbr":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"dayPeriods-format-wide-night":"soir","dateFormatItem-yyMMMd":"d MMM yy","dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["T1","T2","T3","T4"],"field-day-relative+-1":"hier","field-day-relative+-2":"avant-hier","field-day-relative+-3":"avant-avant-hier","dateFormatItem-MMMd":"d MMM","dateFormatItem-MEd":"EEE d/M","field-day":"jour","days-format-wide":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],"field-zone":"fuseau horaire","dateFormatItem-y":"y","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"dateFormatItem-yyMM":"MM/yy","days-format-abbr":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"eraNames":["avant Jésus-Christ","après Jésus-Christ"],"days-format-narrow":["D","L","M","M","J","V","S"],"field-month":"mois","days-standAlone-narrow":["D","L","M","M","J","V","S"],"dateFormatItem-MMM":"LLL","dayPeriods-format-wide-am":"AM","dateFormatItem-MMMMEd":"EEE d MMMM","dateFormat-short":"dd/MM/yy","dateFormatItem-MMd":"d/MM","dayPeriods-format-wide-afternoon":"après-midi","field-second":"seconde","dateFormatItem-yMMMEd":"EEE d MMM y","dateFormatItem-Ed":"E d","field-week":"semaine","dateFormat-medium":"d MMM y","dateFormatItem-Hms":"HH:mm:ss","quarters-standAlone-narrow":["1","2","3","4"],"dateTimeFormats-appendItem-Day-Of-Week":"{0} {1}","dateTimeFormat-medium":"{1} {0}","dateFormatItem-EEEd":"d EEE","dayPeriods-format-abbr-am":"AM","dateTimeFormats-appendItem-Second":"{0} ({2}: {1})","dateTimeFormats-appendItem-Era":"{0} {1}","dateTimeFormats-appendItem-Week":"{0} ({2}: {1})","dateFormatItem-H":"HH","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"AM","dateTimeFormat-full":"{1} {0}","dateTimeFormats-appendItem-Day":"{0} ({2}: {1})","dateFormatItem-hm":"h:mm a","dateTimeFormats-appendItem-Year":"{0} {1}","dateTimeFormats-appendItem-Hour":"{0} ({2}: {1})","dayPeriods-format-abbr-pm":"PM","dateTimeFormats-appendItem-Quarter":"{0} ({2}: {1})","dateTimeFormats-appendItem-Month":"{0} ({2}: {1})","dateTimeFormats-appendItem-Minute":"{0} ({2}: {1})","dateTimeFormats-appendItem-Timezone":"{0} {1}","dayPeriods-format-narrow-pm":"PM","dateTimeFormat-short":"{1} {0}","dateFormatItem-hms":"h:mm:ss a"};dojo.provide("dojox.widget.nls.ColorPicker");dojox.widget.nls.ColorPicker._built=true;dojo.provide("dojox.widget.nls.ColorPicker.fr_fr");dojox.widget.nls.ColorPicker.fr_fr={"hueLabel":"t","saturationPickerTitle":"Sélecteur de saturation","huePickerTitle":"Sélecteur de teinte","greenLabel":"v","valueLabel":"v","blueLabel":"b","saturationLabel":"s","redLabel":"r","hexLabel":"hex","degLabel":"°"};
|
// import the gql tagged template function
const { gql } = require('apollo-server-express');
// create our typeDefs
const typeDefs = gql`
type Query {
user: User
}
type User {
_id: ID!
username: String
email: String
password: String
bookCount: Int
savedBooks: [Book]
}
type Mutation {
login(email: String!, password: String!): Auth
addUser(username: String!, email: String!, password: String!) : Auth
saveBook(body: saveBookInput): User
removeBook(bookId: String!): User
}
type saveBookInput {
description: String!,
titel: String
bookId: String
image: String
link: String
authors: [String]
}
type Book {
_id: ID
authors: [String]
description: String
title: String
bookId: String
image: String
link: String
}
type Auth {
token: ID!
user: User
}
`;
// export the typeDefs
module.exports = typeDefs;
|
var searchData=
[
['data_2emd_726',['data.md',['../data_8md.html',1,'']]],
['database_2ecpp_727',['Database.cpp',['../_database_8cpp.html',1,'']]],
['database_2eh_728',['Database.h',['../_database_8h.html',1,'']]],
['database_2emd_729',['database.md',['../database_8md.html',1,'']]],
['datamanager_2ecpp_730',['DataManager.cpp',['../_data_manager_8cpp.html',1,'']]],
['datamanager_2eh_731',['DataManager.h',['../_data_manager_8h.html',1,'']]]
];
|
"use strict"
var fs = require("fs");
var bundle = require("./bundle")
var minify = require("./minify")
var aliases = {o: "output", m: "minify", w: "watch", a: "aggressive"}
var params = {}
var args = process.argv.slice(2), command = null
for (var i = 0; i < args.length; i++) {
if (args[i][0] === '"') args[i] = JSON.parse(args[i])
if (args[i][0] === "-") {
if (command != null) add(true)
command = args[i].replace(/\-+/g, "")
}
else if (command != null) add(args[i])
else params.input = args[i]
}
if (command != null) add(true)
function add(value) {
params[aliases[command] || command] = value
command = null
}
bundle(params.input, params.output, {watch: params.watch})
if (params.minify) {
minify(params.output, params.output, {watch: params.watch, advanced: params.aggressive}, function(stats) {
var readme, kb;
function format(n) {
return n.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,")
}
console.log("Original size: " + format(stats.originalGzipSize) + " bytes gzipped (" + format(stats.originalSize) + " bytes uncompressed)")
console.log("Compiled size: " + format(stats.compressedGzipSize) + " bytes gzipped (" + format(stats.compressedSize) + " bytes uncompressed)")
readme = fs.readFileSync("./README.md", "utf8")
kb = stats.compressedGzipSize / 1024
fs.writeFileSync("./README.md",
readme.replace(
/(<!-- size -->)(.+?)(<!-- \/size -->)/,
"$1" + (kb % 1 ? kb.toFixed(2) : kb) + " KB$3"
)
)
})
}
|
/*! formstone v0.8.26 [dropdown.js] 2015-11-01 | MIT License | formstone.it */
!function(a,b,c){"use strict";function d(){I=b.$body}function e(d){d.multiple=this.prop("multiple"),d.disabled=this.is(":disabled"),d.multiple?d.links=!1:d.external&&(d.links=!0);var e=this.find("[selected]").not(":disabled"),f=this.find(":selected").not(":disabled"),g=f.text(),h=this.find("option").index(f);d.multiple||""===d.label||e.length?d.label="":(f=this.prepend('<option value="" class="'+D.item_placeholder+'" selected>'+d.label+"</option>"),g=d.label,h=0);var i=this.find("option, optgroup"),l=i.filter("option");d.tabIndex=this[0].tabIndex,this[0].tabIndex=-1;var m=[D.base,d.customClass];d.mobile||b.isMobile?m.push(D.mobile):d.cover&&m.push(D.cover),d.multiple&&m.push(D.multiple),d.disabled&&m.push(D.disabled);var n='<div class="'+m.join(" ")+'" tabindex="'+d.tabIndex+'"></div>',o="";d.multiple||(o+='<button type="button" class="'+D.selected+'">',o+=a("<span></span>").text(z(g,d.trim)).html(),o+="</button>"),o+='<div class="'+D.options+'">',o+="</div>",this.wrap(n).after(o),d.$dropdown=this.parent(C.base),d.$allOptions=i,d.$options=l,d.$selected=d.$dropdown.find(C.selected),d.$wrapper=d.$dropdown.find(C.options),d.$placeholder=d.$dropdown.find(C.placeholder),d.index=-1,d.closed=!0,d.focused=!1,j(d),d.multiple||v(h,d),a.fn.fsScrollbar!==c&&d.$wrapper.fsScrollbar(),d.$selected.on(E.click,d,k),d.$dropdown.on(E.click,C.item,d,q).on(E.close,d,p),this.on(E.change,d,r),b.isMobile||(d.$dropdown.on(E.focusIn,d,s).on(E.focusOut,d,t),this.on(E.focusIn,d,function(a){a.data.$dropdown.trigger(E.raw.focusIn)}))}function f(b){b.$dropdown.hasClass(D.open)&&b.$selected.trigger(E.click),a.fn.fsScrollbar!==c&&b.$wrapper.fsScrollbar("destroy"),b.$el[0].tabIndex=b.tabIndex,b.$dropdown.off(E.namespace),b.$options.off(E.namespace),b.$placeholder.remove(),b.$selected.remove(),b.$wrapper.remove(),b.$el.off(E.namespace).show().unwrap()}function g(a,b){if("undefined"!=typeof b){var c=a.$items.index(a.$items.filter("[data-value="+b+"]"));a.$items.eq(c).addClass(D.item_disabled),a.$options.eq(c).prop("disabled",!0)}else a.$dropdown.hasClass(D.open)&&a.$selected.trigger(E.click),a.$dropdown.addClass(D.disabled),a.$el.prop("disabled",!0),a.disabled=!0}function h(a,b){if("undefined"!=typeof b){var c=a.$items.index(a.$items.filter("[data-value="+b+"]"));a.$items.eq(c).removeClass(D.item_disabled),a.$options.eq(c).prop("disabled",!1)}else a.$dropdown.removeClass(D.disabled),a.$el.prop("disabled",!1),a.disabled=!1}function i(a){var b=a.index;a.$allOptions=a.$el.find("option, optgroup"),a.$options=a.$allOptions.filter("option"),a.index=-1,b=a.$options.index(a.$options.filter(":selected")),j(a),a.multiple||v(b,a)}function j(b){for(var c="",d=0,e=0,f=b.$allOptions.length;f>e;e++){var g=b.$allOptions.eq(e),h=[];if("OPTGROUP"===g[0].tagName)h.push(D.group),g.is(":disabled")&&h.push(D.disabled),c+='<span class="'+h.join(" ")+'">'+g.attr("label")+"</span>";else{var i=g.val(),j=g.data("label");g.attr("value")||g.attr("value",i),h.push(D.item),g.hasClass(D.item_placeholder)&&h.push(D.item_placeholder),g.is(":selected")&&h.push(D.item_selected),g.is(":disabled")&&h.push(D.item_disabled),c+='<button type="button" class="'+h.join(" ")+'" ',c+='data-value="'+i+'">',c+=j?j:F.decodeEntities(z(g.text(),b.trim)),c+="</button>",d++}}b.$items=b.$wrapper.html(a.parseHTML(c)).find(C.item)}function k(a){F.killEvent(a);var c=a.data;if(!c.disabled)if(c.mobile||!b.isMobile||b.isFirefoxMobile)c.closed?m(c):n(c);else{var d=c.$el[0];if(H.createEvent){var e=H.createEvent("MouseEvents");e.initMouseEvent("mousedown",!1,!0,G,0,0,0,0,0,!1,!1,!1,!1,0,null),d.dispatchEvent(e)}else d.fireEvent&&d.fireEvent("onmousedown")}l(c)}function l(b){a(C.base).not(b.$dropdown).trigger(E.close,[b])}function m(a){if(a.closed){{var b=a.$dropdown.offset(),c=I.outerHeight(),d=a.$wrapper.outerHeight(!0);a.index>=0?a.$items.eq(a.index).position():{left:0,top:0}}b.top+d>c-a.bottomEdge&&a.$dropdown.addClass(D.bottom),I.on(E.click+a.dotGuid,":not("+C.options+")",a,o),a.$dropdown.trigger(E.focusIn),a.$dropdown.addClass(D.open),w(a),a.closed=!1}}function n(a){a&&!a.closed&&(I.off(E.click+a.dotGuid),a.$dropdown.removeClass([D.open,D.bottom].join(" ")),a.closed=!0)}function o(b){F.killEvent(b);var c=b.data;c&&0===a(b.currentTarget).parents(C.base).length&&(n(c),c.$dropdown.trigger(E.focusOut))}function p(a){var b=a.data;b&&(n(b),b.$dropdown.trigger(E.focusOut))}function q(b){F.killEvent(b);var c=a(this),d=b.data;if(!d.disabled){if(d.$wrapper.is(":visible")){var e=d.$items.index(c);e!==d.index&&(v(e,d),x(d))}d.multiple||n(d),d.$dropdown.trigger(E.focusIn)}}function r(b,c){var d=a(this),e=b.data;if(!c&&!e.multiple){var f=e.$options.index(e.$options.filter("[value='"+A(d.val())+"']"));v(f,e),x(e)}}function s(b){F.killEvent(b);var c=(a(b.currentTarget),b.data);c.disabled||c.multiple||c.focused||(l(c),c.focused=!0,c.$dropdown.addClass(D.focus).on(E.keyDown+c.dotGuid,c,u))}function t(b){F.killEvent(b);var c=(a(b.currentTarget),b.data);c.focused&&c.closed&&(c.focused=!1,c.$dropdown.removeClass(D.focus).off(E.keyDown+c.dotGuid),c.multiple||n(c))}function u(c){var d=c.data;if(13===c.keyCode)d.closed||(n(d),v(d.index,d)),x(d);else if(!(9===c.keyCode||c.metaKey||c.altKey||c.ctrlKey||c.shiftKey)){F.killEvent(c);var e=d.$items.length-1,f=d.index<0?0:d.index;if(a.inArray(c.keyCode,b.isFirefox?[38,40,37,39]:[38,40])>-1)f+=38===c.keyCode||b.isFirefox&&37===c.keyCode?-1:1,0>f&&(f=0),f>e&&(f=e);else{var g,h,i=String.fromCharCode(c.keyCode).toUpperCase();for(h=d.index+1;e>=h;h++)if(g=d.$options.eq(h).text().charAt(0).toUpperCase(),g===i){f=h;break}if(0>f||f===d.index)for(h=0;e>=h;h++)if(g=d.$options.eq(h).text().charAt(0).toUpperCase(),g===i){f=h;break}}f>=0&&(v(f,d),w(d))}}function v(a,b){var c=b.$items.eq(a),d=b.$options.eq(a),e=c.hasClass(D.item_selected),f=c.hasClass(D.item_disabled);if(!f)if(b.multiple)e?(d.prop("selected",null),c.removeClass(D.item_selected)):(d.prop("selected",!0),c.addClass(D.item_selected));else if(a>-1&&a<b.$items.length){var g=d.data("label")||c.html();b.$selected.html(g).removeClass(C.item_placeholder),b.$items.filter(C.item_selected).removeClass(D.item_selected),b.$el[0].selectedIndex=a,c.addClass(D.item_selected),b.index=a}else""!==b.label&&b.$selected.html(b.label)}function w(b){var d=b.$items.eq(b.index),e=b.index>=0&&!d.hasClass(D.item_placeholder)?d.position():{left:0,top:0},f=(b.$wrapper.outerHeight()-d.outerHeight())/2;a.fn.fsScrollbar!==c?b.$wrapper.fsScrollbar("resize").fsScrollbar("scroll",b.$wrapper.find(".fs-scrollbar-content").scrollTop()+e.top):b.$wrapper.scrollTop(b.$wrapper.scrollTop()+e.top-f)}function x(a){a.links?y(a):a.$el.trigger(E.raw.change,[!0])}function y(a){var b=a.$el.val();a.external?G.open(b):G.location.href=b}function z(a,b){return 0===b?a:a.length>b?a.substring(0,b)+"...":a}function A(a){return"string"==typeof a?a.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"):a}var B=b.Plugin("dropdown",{widget:!0,defaults:{bottomEdge:0,cover:!1,customClass:"",label:"",external:!1,links:!1,mobile:!1,trim:0},methods:{_setup:d,_construct:e,_destruct:f,disable:g,enable:h,update:i,open:m,close:n},classes:["cover","bottom","multiple","mobile","open","disabled","focus","selected","options","group","item","item_disabled","item_selected","item_placeholder"],events:{close:"close"}}),C=B.classes,D=C.raw,E=B.events,F=B.functions,G=b.window,H=(b.$window,b.document),I=null}(jQuery,Formstone);
|
TC.control = TC.control || {};
if (!TC.Control) {
TC.syncLoadJS(TC.apiLocation + 'TC/Control');
}
TC.Consts.event.BEFOREFEATUREMODIFY = "beforefeaturemodify.tc";
TC.Consts.event.FEATUREMODIFY = "featuremodify.tc";
TC.Consts.event.FEATURESSELECT = "featuresselect.tc";
TC.Consts.event.FEATURESUNSELECT = "featuresunselect.tc";
TC.Consts.event.CHANGE = 'change';
TC.control.Modify = function () {
const self = this;
TC.Control.apply(self, arguments);
if (!TC.browserFeatures.inputTypeColor() && !window.CP) {
TC.loadCSS(TC.apiLocation + 'lib/color-picker/color-picker.min.css');
TC.syncLoadJS(TC.apiLocation + 'lib/color-picker/color-picker.min.js');
}
self.styles = TC.Util.extend(true, TC.Cfg.styles.selection, self.options.styles);
self.styles.text = self.styles.text || {
fontSize: self.styles.line.fontSize,
fontColor: self.styles.line.fontColor,
labelOutlineColor: self.styles.line.labelOutlineColor,
labelOutlineWidth: self.styles.line.labelOutlineWidth
};
self._classSelector = '.' + self.CLASS;
self.wrap = new TC.wrap.control.Modify(self);
self.snapping = (typeof self.options.snapping === 'boolean') ? self.options.snapping : true;
};
TC.inherit(TC.control.Modify, TC.Control);
(function () {
var ctlProto = TC.control.Modify.prototype;
ctlProto.CLASS = 'tc-ctl-mod';
ctlProto.template = {};
ctlProto.template[ctlProto.CLASS] = TC.apiLocation + "TC/templates/Modify.html";
ctlProto.template[ctlProto.CLASS + '-attr'] = TC.apiLocation + "TC/templates/ModifyAttributes.html";
const setFeatureSelectedState = function (ctl, features) {
ctl._deleteBtn.disabled = features.length === 0;
ctl._editAttrBtn.disabled = features.length !== 1;
ctl._joinBtn.disabled = features.length < 2;
ctl._splitBtn.disabled = features.filter(complexGeometryFilter).length === 0;
ctl.displayLabelText();
};
//const styleFunction = function (feature, mapStyles) {
// var result;
// switch (true) {
// case TC.feature.Polygon && feature instanceof TC.feature.Polygon:
// case TC.feature.MultiPolygon && feature instanceof TC.feature.MultiPolygon:
// result = TC.Util.extend({}, mapStyles.polygon);
// break;
// case TC.feature.Point && feature instanceof TC.feature.Point:
// case TC.feature.MultiPoint && feature instanceof TC.feature.MultiPoint:
// result = TC.Util.extend({}, mapStyles.point);
// break;
// default:
// result = TC.Util.extend({}, mapStyles.line);
// break;
// }
// const style = feature.getStyle();
// if (style.label) {
// result.label = style.label;
// result.fontSize = style.fontSize;
// result.fontColor = style.fontColor;
// result.labelOutlineColor = style.labelOutlineColor;
// result.labelOutlineWidth = style.labelOutlineWidth;
// }
// return result;
//};
//const setFeatureSelectedStyle = function (ctl, features) {
// const mapStyles = ctl.map.options.styles.selection;
// features.forEach(function (feature) {
// feature._originalStyle = TC.Util.extend({}, feature.getStyle());
// feature.setStyle(ctl.styleFunction(feature));
// });
//};
//const setFeatureUnselectedStyle = function (ctl, features) {
// features.forEach(function (feature) {
// if (feature._originalStyle) {
// const style = feature.getStyle();
// if (style.label) {
// const originalStyle = feature._originalStyle;
// originalStyle.label = style.label;
// originalStyle.fontSize = style.fontSize;
// originalStyle.fontColor = style.fontColor;
// originalStyle.labelOutlineColor = style.labelOutlineColor;
// originalStyle.labelOutlineWidth = style.labelOutlineWidth;
// }
// feature.setStyle(feature._originalStyle);
// feature._originalStyle = undefined;
// }
// })
//};
const complexGeometryFilter = function (elm) {
var result = false;
if ((TC.feature.MultiPolygon && elm instanceof TC.feature.MultiPolygon) ||
(TC.feature.MultiPolyline && elm instanceof TC.feature.MultiPolyline)) {
if (elm.geometry.length > 1) {
result = true;
}
}
return result;
};
ctlProto.register = function (map) {
const self = this;
const result = TC.Control.prototype.register.call(self, map);
if (self.options.layer) {
self.setLayer(self.options.layer);
}
map
.on(TC.Consts.event.FEATUREADD + ' ' + TC.Consts.event.FEATURESADD, function (e) {
Promise.all([self.getLayer(), self.renderPromise()]).then(function (objects) {
const layer = objects[0];
if (e.layer === layer) {
self.setSelectableState(true);
}
});
})
.on(TC.Consts.event.FEATUREREMOVE + ' ' + TC.Consts.event.FEATURESCLEAR, function (e) {
const layer = e.layer;
const feature = e.feature;
Promise.all([self.getLayer(), self.renderPromise()]).then(function (objects) {
if (layer === objects[0]) {
if (feature) {
self.unselectFeatures([feature]);
}
else {
self.unselectFeatures();
}
setFeatureSelectedState(self, self.getSelectedFeatures());
if (self.layer.features.length === 0) {
self.setSelectableState(false);
self.setTextMode(false);
}
}
});
})
.on(TC.Consts.event.LAYERUPDATE, function (e) {
const layer = e.layer;
Promise.all([self.getLayer(), self.renderPromise()]).then(function (objects) {
if (layer === objects[0]) {
setFeatureSelectedState(self, self.getSelectedFeatures());
}
});
});
self.on(TC.Consts.event.FEATURESSELECT + ' ' + TC.Consts.event.FEATURESUNSELECT, function () {
const selectedFeatures = self.getSelectedFeatures();
setFeatureSelectedState(self, selectedFeatures);
const unselectedFeatures = self.layer.features.filter(function (feature) {
return selectedFeatures.indexOf(feature) < 0;
});
unselectedFeatures.forEach(function (feature) {
feature.toggleSelectedStyle(false);
});
selectedFeatures.forEach(function (feature) {
feature.toggleSelectedStyle(true);
});
if (!self.getAttributeDisplayTarget().classList.contains(TC.Consts.classes.HIDDEN)) {
self.displayAttributes();
}
if (!selectedFeatures.length) {
self.closeAttributes();
}
});
return result;
};
ctlProto.render = function (callback) {
const self = this;
const renderCallback = function () {
self._selectBtn = self.div.querySelector('.' + self.CLASS + '-btn-select');
self._selectBtn.addEventListener(TC.Consts.event.CLICK, function (e) {
if (!e.target.disabled) {
if (self.isActive) {
self.deactivate();
}
else {
self.activate();
}
}
});
self._deleteBtn = self.div.querySelector('.' + self.CLASS + '-btn-delete');
self._deleteBtn.addEventListener(TC.Consts.event.CLICK, function () {
self.deleteSelectedFeatures();
});
self._textBtn = self.div.querySelector('.' + self.CLASS + '-btn-text');
self._textBtn.addEventListener(TC.Consts.event.CLICK, function () {
self.setTextMode(!self.textActive);
});
self._joinBtn = self.div.querySelector('.' + self.CLASS + '-btn-join');
self._splitBtn = self.div.querySelector('.' + self.CLASS + '-btn-split');
self._editAttrBtn = self.div.querySelector('.' + self.CLASS + '-btn-attr');
self._editAttrBtn.addEventListener(TC.Consts.event.CLICK, function () {
self.toggleAttributes();
});
self._textInput = self.div.querySelector('input.' + self.CLASS + '-txt');
self._textInput.addEventListener('input', function (e) {
self.labelFeatures(e.target.value);
});
self._styleSection = self.div.querySelector('.' + self.CLASS + '-style');
self._fontColorPicker = self.div.querySelector(self._classSelector + '-fnt-c');
self._fontColorPicker.addEventListener(TC.Consts.event.CHANGE, function (e) {
self.setFontColor(e.target.value);
});
self._fontSizeSelector = self.div.querySelector('.' + self.CLASS + '-fnt-s');
self._fontSizeSelector.addEventListener(TC.Consts.event.CHANGE, function (e) {
self.setFontSize(e.target.value);
});
self._attributesSection = self.div.querySelector('.' + self.CLASS + '-attr');
if (TC.Util.isFunction(callback)) {
callback();
}
};
const renderObject = {
fontSize: self.styles.text.fontSize,
fontColor: self.styles.text.fontColor,
labelOutlineColor: self.styles.text.labelOutlineColor,
labelOutlineWidth: self.styles.text.labelOutlineWidth
};
var promise;
if (TC.browserFeatures.inputTypeColor()) {
promise = self._set1stRenderPromise(self.renderData(renderObject, renderCallback));
}
else {
// El navegador no soporta input[type=color], usamos polyfill
promise = self._set1stRenderPromise(self.renderData(renderObject, function () {
const input = self.div.querySelector('input[type=color]');
input.style.backgroundColor = input.value;
input.style.color = 'transparent';
const picker = new CP(input, 'click', document.body);
input.onclick = function (e) {
e.preventDefault();
};
// Evitamos que salga el teclado virtual en iOS
input.onfocus = function (e) {
this.blur();
};
input.onchange = function (e) {
this.style.backgroundColor = this.value;
};
self.map.loaded(function () {
picker.on("change", function (color) {
self.setFontColor('#' + color);
});
});
renderCallback();
}));
}
return promise;
};
ctlProto.activate = function () {
const self = this;
self._selectBtn.classList.add(TC.Consts.classes.ACTIVE);
TC.Control.prototype.activate.call(self);
self.wrap.activate(self.mode);
};
ctlProto.deactivate = function () {
const self = this;
TC.Control.prototype.deactivate.call(self);
if (self._selectBtn) {
setFeatureSelectedState(self, []);
}
if (self.wrap) {
self.wrap.deactivate();
}
//self.trigger(TC.Consts.event.DRAWCANCEL, { ctrl: self });
if (self._selectBtn) {
self._selectBtn.classList.remove(TC.Consts.classes.ACTIVE);
if (self.layer) {
self.layer.features.forEach(function (feature) {
feature.toggleSelectedStyle(false);
});
}
//setFeatureUnselectedStyle(self, self.getSelectedFeatures());
}
};
ctlProto.clear = function () {
const self = this;
if (self.layer) {
self.layer.clearFatures();
}
return self;
};
ctlProto.isExclusive = function () {
return true;
};
ctlProto.end = function () {
const self = this;
self.wrap.end();
return self;
};
ctlProto.setMode = function (mode, activate) {
const self = this;
if (mode)
self.mode = mode;
if (activate && mode) {
if (self.layer) {
self.layer.map.putLayerOnTop(self.layer);
}
self.activate();
}
else {
self.deactivate();
}
return self;
};
ctlProto.getLayer = function () {
var self = this;
// Se ha instanciado un control sin capa asociada
if (self.options && typeof self.options.layer === 'boolean' && !self.options.layer) {
return Promise.resolve(null);
}
if (self.layer) {
return Promise.resolve(self.layer);
}
return self._layerPromise;
};
ctlProto.setLayer = function (layer) {
const self = this;
if (self.map) {
self.setSelectedFeatures([]);
self._layerPromise = new Promise(function (resolve, reject) {
if (typeof (layer) === "string") {
self.map.loaded(function () {
self.layer = self.map.getLayer(layer);
resolve(self.layer);
});
}
else {
self.layer = layer;
resolve(self.layer);
}
});
Promise.all([self._layerPromise, self.renderPromise()]).then(function (objs) {
const layer = objs[0];
self.setSelectableState(layer && layer.features.length > 0);
});
}
};
ctlProto.setSelectableState = function (active) {
const self = this;
self._selectBtn.disabled = !active;
self._textBtn.disabled = !active;
};
ctlProto.getSelectedFeatures = function () {
return this.wrap.getSelectedFeatures();
};
ctlProto.setSelectedFeatures = function (features) {
const self = this;
const result = self.wrap.setSelectedFeatures(features);
self.displayLabelText();
return result;
};
ctlProto.getActiveFeatures = function () {
const self = this;
const result = self.getSelectedFeatures();
if (!result.length && self.layer.features.length) {
result.push(self.layer.features[self.layer.features.length - 1]);
}
return result;
};
ctlProto.unselectFeatures = function (features) {
features = features || [];
this.wrap.unselectFeatures(features.map(function (feat) {
return feat.wrap.feature;
}));
return this;
};
ctlProto.deleteSelectedFeatures = function () {
const self = this;
const features = self.getSelectedFeatures();
self.wrap.unselectFeatures(features);
features.forEach(function (feature) {
self.layer.removeFeature(feature);
self.trigger(TC.Consts.event.FEATUREREMOVE, { feature: feature });
});
return self;
};
ctlProto.styleFunction = function (feature, resolution) {
const self = this;
var result;
const mapStyles = self.map.options.styles.selection;
switch (true) {
case TC.feature.Polygon && feature instanceof TC.feature.Polygon:
case TC.feature.MultiPolygon && feature instanceof TC.feature.MultiPolygon:
result = TC.Util.extend({}, mapStyles.polygon);
break;
case TC.feature.Point && feature instanceof TC.feature.Point:
case TC.feature.MultiPoint && feature instanceof TC.feature.MultiPoint:
result = TC.Util.extend({}, mapStyles.point);
break;
default:
result = TC.Util.extend({}, mapStyles.line);
break;
}
const style = feature.getStyle();
if (style.label) {
result.label = style.label;
result.fontSize = style.fontSize;
result.fontColor = style.fontColor;
result.labelOutlineColor = style.labelOutlineColor;
result.labelOutlineWidth = style.labelOutlineWidth;
}
return result;
};
ctlProto.setTextMode = function (active) {
const self = this;
self.textActive = active;
if (active) {
self._textBtn.classList.add(TC.Consts.classes.ACTIVE, active);
self._styleSection.classList.remove(TC.Consts.classes.HIDDEN);
}
else {
self._textBtn.classList.remove(TC.Consts.classes.ACTIVE, active);
self._styleSection.classList.add(TC.Consts.classes.HIDDEN);
}
self.displayLabelText();
return self;
};
ctlProto.setFontColorWatch = function (color, outlineColor) {
const self = this;
if (color === undefined) {
color = self.styles.text.fontColor;
}
color = TC.Util.colorArrayToString(color);
outlineColor = outlineColor || self.getLabelOutlineColor(color);
self.renderPromise().then(function () {
self._fontColorPicker.value = color;
self._textInput.style.color = color;
self._textInput.style.textShadow = '0 0 ' + self.styles.text.labelOutlineWidth + 'px ' + outlineColor;
if (!TC.browserFeatures.inputTypeColor()) {
self._fontColorPicker.style.backgroundColor = color;
self._fontColorPicker.blur();
}
});
return self;
};
ctlProto.setFontColor = function (color) {
const self = this;
self.styles.text.fontColor = color;
self.styles.text.labelOutlineColor = self.getLabelOutlineColor(color);
self.setFontColorWatch(color, self.styles.text.labelOutlineColor);
const features = self.getActiveFeatures();
features.forEach(function (feature) {
const style = feature.getStyle();
style.fontColor = color;
style.labelOutlineColor = self.styles.text.labelOutlineColor;
feature.setStyle(style);
});
return self;
};
ctlProto.setFontSizeWatch = function (size) {
const self = this;
if (size === undefined) {
size = self.styles.text.fontSize;
}
const sizeValue = parseInt(size);
if (sizeValue !== Number.NaN) {
self.renderPromise().then(function () {
self._fontSizeSelector.value = sizeValue;
self._textInput.style.fontSize = sizeValue + 'pt';
});
}
return self;
};
ctlProto.setFontSize = function (size) {
const self = this;
const sizeValue = parseInt(size);
if (sizeValue !== Number.NaN) {
self.styles.text.fontSize = sizeValue;
self.setFontSizeWatch(sizeValue);
const features = self.getActiveFeatures();
features.forEach(function (feature) {
const style = feature.getStyle();
style.fontSize = sizeValue;
feature.setStyle(style);
});
}
return self;
};
ctlProto.getLabelOutlineColor = function (fontColor) {
if (fontColor) {
fontColor = TC.Util.colorArrayToString(fontColor);
const matchForShort = fontColor.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i);
if (matchForShort && matchForShort.length) {
fontColor = '#' + matchForShort[1] + matchForShort[1] + matchForShort[2] + matchForShort[2] + matchForShort[3] + matchForShort[3];
}
const matchForLong = fontColor.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i);
if (matchForLong && matchForLong.length) {
const r = parseInt(matchForLong[1], 16);
const g = parseInt(matchForLong[2], 16);
const b = parseInt(matchForLong[3], 16);
return (r + g + b) / 3 < 128 ? '#ffffff' : '#000000';
}
}
return '#ffffff';
};
ctlProto.displayLabelText = function () {
const self = this;
const features = self.getSelectedFeatures();
var text;
var size;
var color;
if (self.isActive && features.length) {
const feature = features[features.length - 1];
const style = feature.getStyle();
text = style.label;
color = style.fontColor;
size = style.fontSize;
}
else {
text = '';
color = self.styles.text.fontColor;
size = self.styles.text.fontSize;
}
self.renderPromise().then(function () {
self
.setFontSizeWatch(size)
.setFontColorWatch(color)
._textInput.value = text || '';
});
return self;
};
ctlProto.labelFeatures = function (text) {
const self = this;
const features = self.getActiveFeatures();
if (features.length) {
const style = features[0].getStyle();
features.forEach(function (feature) {
const textStyle = TC.Util.extend({}, self.styles.text, style);
style.label = text;
style.labelOffset = textStyle.labelOffset;
style.fontColor = textStyle.fontColor;
style.fontSize = textStyle.fontSize;
style.labelOutlineColor = textStyle.labelOutlineColor;
style.labelOutlineWidth = textStyle.labelOutlineWidth;
feature.setStyle(style);
});
}
return self;
};
ctlProto.getAttributeDisplayTarget = function () {
return this._attributesSection;
};
ctlProto.displayAttributes = function () {
const self = this;
const selectedFeatures = self.getSelectedFeatures();
const feature = selectedFeatures[selectedFeatures.length - 1];
if (feature) {
self.getRenderedHtml(self.CLASS + '-attr', { data: feature.getData() }, function (html) {
const attributesSection = self.getAttributeDisplayTarget();
attributesSection.innerHTML = html;
attributesSection.classList.remove(TC.Consts.classes.HIDDEN);
self._editAttrBtn.classList.add(TC.Consts.classes.ACTIVE);
attributesSection.querySelector(`${self.CLASS}-btn-attr-ok`).addEventListener(TC.Consts.event.CLICK, function (e) {
self._onAttrOK();
});
attributesSection.querySelector(`.${self.modifyControl.CLASS}-btn-attr-cancel`).addEventListener(TC.Consts.event.CLICK, function () {
self.closeAttributes();
});
});
}
};
ctlProto.closeAttributes = function () {
const self = this;
self._attributesSection.classList.add(TC.Consts.classes.HIDDEN);
self._editAttrBtn.classList.remove(TC.Consts.classes.ACTIVE);
};
ctlProto.toggleAttributes = function () {
const self = this;
if (self._editAttrBtn.classList.toggle(TC.Consts.classes.ACTIVE)) {
self.displayAttributes();
}
else {
self.closeAttributes();
}
};
ctlProto._onAttrOK = function () {
const self = this;
const feature = self.getSelectedFeatures()[0];
if (feature) {
const data = {};
self.getAttributeDisplayTarget().querySelectorAll('input').forEach(function (input) {
data[input.getAttribute('name')] = input.value;
});
feature.setData(data);
self.trigger(TC.Consts.event.FEATUREMODIFY, { feature: feature, layer: self.layer });
self.closeAttributes();
}
};
ctlProto.joinFeatures = function (features) {
const self = this;
if (self.geometryType === TC.Consts.geom.MULTIPOLYLINE ||
self.geometryType === TC.Consts.geom.MULTIPOLYGON ||
self.geometryType === TC.Consts.geom.MULTIPOINT) {
self._joinedFeatureAttributes = [];
if (features.length > 1) {
var geometries = features.map(function (elm) {
self._joinedFeatureAttributes[self._joinedFeatureAttributes.length] = elm.getData();
return elm.geometry;
});
var newGeometry = geometries.reduce(function (a, b) {
return a.concat(b);
});
var newFeature = new features[0].constructor(newGeometry);
for (var i = 0, len = features.length; i < len; i++) {
var feature = features[i];
self.layer.removeFeature(feature);
self.trigger(TC.Consts.event.FEATUREREMOVE, { feature: feature });
}
self.layer.addFeature(newFeature).then(function (feat) {
self.setSelectedFeatures([newFeature]);
self.trigger(TC.Consts.event.FEATUREADD, { feature: feat });
feat.showPopup(self.attributeEditor);
});
}
setFeatureSelectedState(self, [newFeature]);
}
};
})();
|
export default {
isoName: 'de',
nativeName: 'Deutsch',
label: {
clear: 'Leeren',
ok: 'Ok',
cancel: 'Abbrechen',
close: 'Schließen',
set: 'Setzen',
select: 'Auswählen',
reset: 'Zurücksetzen',
remove: 'Löschen',
update: 'Aktualisieren',
create: 'Erstellen',
search: 'Suche',
filter: 'Filter',
refresh: 'Aktualisieren'
},
date: {
days: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
daysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
monthsShort: 'Jan_Feb_Mar_Apr_Mai_Jun_Jul_Aug_Sep_Okt_Nov_Dez'.split('_'),
firstDayOfWeek: 1, // 0-6, 0 - Sunday, 1 Monday, ...
format24h: true,
pluralDay: 'tage'
},
table: {
noData: 'Keine Daten vorhanden.',
noResults: 'Keine Einträge gefunden',
loading: 'Lade...',
selectedRecords: rows => (
rows > 1
? rows + ' ausgewählte Zeilen'
: (rows === 0 ? 'Keine' : '1') + ' ausgewählt.'
),
recordsPerPage: 'Zeilen pro Seite',
allRows: 'Alle',
pagination: (start, end, total) => start + '-' + end + ' von ' + total,
columns: 'Spalten'
},
editor: {
url: 'URL',
bold: 'Fett',
italic: 'Kursiv',
strikethrough: 'Durchgestrichen',
underline: 'Unterstrichen',
unorderedList: 'Ungeordnete Liste',
orderedList: 'Geordnete Liste',
subscript: 'tiefgestellt',
superscript: 'hochgestellt',
hyperlink: 'Link',
toggleFullscreen: 'Vollbild umschalten',
quote: 'Zitat',
left: 'linksbündig',
center: 'zentriert',
right: 'rechtsbündig',
justify: 'Ausrichten',
print: 'Drucken',
outdent: 'ausrücken',
indent: 'einrücken',
removeFormat: 'Entferne Formatierung',
formatting: 'Formatiere',
fontSize: 'Schriftgröße',
align: 'Ausrichten',
hr: 'Horizontale Linie einfügen',
undo: 'Rückgänging',
redo: 'Wiederherstellen',
heading1: 'Überschrift 1',
heading2: 'Überschrift 2',
heading3: 'Überschrift 3',
heading4: 'Überschrift 4',
heading5: 'Überschrift 5',
heading6: 'Überschrift 6',
paragraph: 'Absatz',
code: 'Code',
size1: 'Sehr klein',
size2: 'klein',
size3: 'Normal',
size4: 'Groß',
size5: 'Größer',
size6: 'Sehr groß',
size7: 'Maximum',
defaultFont: 'Standard Schrift',
viewSource: 'Quelltext anzeigen'
},
tree: {
noNodes: 'Keine Knoten verfügbar',
noResults: 'Keine passenden Knoten gefunden'
}
}
|
import "../styles/navbar.css";
const Navbar = () => {
return (
<div className="navbar">
<div className="content">
<div className="brand item">
<a href="/" className="">
CoviData
</a>
</div>
</div>
</div>
);
};
export default Navbar;
|
var jsm = require('../lib/jsmidgen.js');
console.log('Listing notes by MIDI pitches...');
for (var i=21; i<109; i++) {
console.log(i, jsm.Util.noteFromMidiPitch(i));
}
console.log('Done!');
console.log('Reference: http://newt.phys.unsw.edu.au/jw/notes.html');
|
Ext.define('Penggajian.view.transaksi.hitungpendapatan.PerhitunganPendapatanController', {
extend: 'Ext.app.ViewController',
alias: 'controller.hitungpendapatan'
,onShow:function(){
var refstore=Ext.getCmp('idhitungpendapatanlist').store;
var app = Penggajian.getApplication();
Ext.override(Ext.data.Store,{
addField: function(field){
// readLog(this);
field = new Ext.data.Field(field);
// this.recordType.prototype.fields.replace(field);
if(typeof field.defaultValue != 'undefined'){
this.each(function(r){
if(typeof r.data[field.name] == 'undefined'){
r.data[field.name] = field.defaultValue;
}
});
}
},
removeField: function(name){
// this.recordType.prototype.fields.removeKey(name);
this.each(function(r){
delete r.data[name];
if(r.modified){
delete r.modified[name];
}
});
}
});
app.getStore('storeperiode').load({
scope: this,
callback:function(records, operation, success){
if(success){
if(records.length>0){
var thbl = records[0].get('thbl');
thbl=thbl.substring(0, 4)+'-'+thbl.substring(4, 6)+'-'+'01';
Ext.getCmp('hitungpendapatan_thbl').setValue(thbl);
refstore.getProxy().setExtraParam('thbl',records[0].get('thbl'));
this.getDataSet();
//refstore.getProxy().setExtraParam('thbl',records[0].get('thbl'));
// refstore.load({
// params:{
// searchvalue:Ext.getCmp('hitungpendapatansearch').getValue()
// }
// });
}
}
}
});
},
getDataSet:function(){
var vurl=Ext.getCmp('idhitungpendapatanlist').store.getProxy().getUrl();
// console.log(vurl);
Ext.Ajax.request({
url: vurl,
method:'GET',
// params:{
// start:0,
// limit:25
// },
waitMsg:'Load Data...',
// params:{},
success: function(obj, opts) {
var resp = Ext.decode(obj.responseText);
var data=resp.data;
// console.log(data);
var gridView = Ext.getCmp('idhitungpendapatanlist');
var me=Ext.getCmp('tab2g1').controller;
var str=gridView.store;
me.genStore(data);
gridView.reconfigure(str, me.genColumns(data));
gridView.store.load();
},
failure: function(response, opts) {
var resp = Ext.decode(response.responseText);
if (resp.reason == 'Session Expired' || resp.message == 'Session Expired') {
session_expired('Session Expired');
} else{
set_message(0, resp.reason +' '+resp.message);
}
}
});
},
genStore : function (json) {
// console.log(json);
var me=Ext.getCmp('tab2g1').controller;
var keys = (Object.keys(json[0]));
// var app = Penggajian.getApplication();
var gridstore=Ext.getCmp('idhitungpendapatanlist').store;
gridstore.setFields(keys);
// gridstore.setData(json);
return gridstore;
},
genColumns : function (json) {
var me=Ext.getCmp('tab2g1').controller;
var keys = (Object.keys(json[0]));
// readLog(json[0]);
var colmap=new Array();
var col=null;
//colmap.push(col);
Ext.each(keys,function (mfield) {
if(mfield!='id' ){
if(mfield=='nik'|| mfield=='thbl'){
col={
text: Ext.String.capitalize(mfield),
dataIndex: mfield,
align:'center',
width:100
}
}else{
if(mfield=='jabatan' || mfield=='nama'){
col={
text: Ext.String.capitalize(mfield),
dataIndex: mfield,
align:'left',
width:200
}
}else{
col={
text: Ext.String.capitalize(mfield),
width: 150,
dataIndex: mfield,
xtype:'numbercolumn',
format:'0,0',
align:'right'
}
}
}
colmap.push(col);
}
});
return colmap;
}
,
onSearchPeriode:function(){
var thbl=Ext.Date.format(Ext.getCmp('hitungpendapatan_thbl').getValue(),'Ym');
var refstore=Ext.getCmp('idhitungpendapatanlist').store;
refstore.load({
params:{
thbl:thbl,
searchvalue:Ext.getCmp('hitungpendapatansearch').getValue()
}
});
}
,
onHitPotongan:function(btn){
var winhit=Ext.create({
xtype:'hitungpendapataninput'
});
winhit.show();
},
onProcess:function(btn){
var formfield=btn.up('form').getForm();
var vthbl=Ext.Date.format(Ext.getCmp('hpot_thbl').getValue(),'Ym');
if (formfield.isValid()) {
formfield.submit({
url: Penggajian.Global.getApiUrl() + 'hitpendapatan/executeRow',
methods:'POST',
params:{
_token:tokendata,
thbl:vthbl
},
// If login is successful
success:function(form,action) {
var res = Ext.decode(action.response.responseText);
var thbl=res.thbl;
thbl=thbl.substring(0, 4)+'-'+thbl.substring(4, 6)+'-'+'01';
Ext.getCmp('hitungpendapatan_thbl').setValue(thbl);
set_message(0, res.message);
Ext.getCmp('hitungpendapatansearch').setValue(null);
Ext.getCmp('idhitungpendapatanlist').store.load({params:{thbl:thbl}});
Ext.getCmp('hitungpendapatan_input').close();
},
failure:function(form,action){
var obj=action.response;
try{
var resp = Ext.decode(obj.responseText);
var thbl=resp.thbl;
thbl=thbl.substring(0, 4)+'-'+thbl.substring(4, 6)+'-'+'01';
Ext.getCmp('hitungpendapatansearch').setValue(null);
Ext.getCmp('hitungpendapatan_thbl').setValue(thbl);
Ext.getCmp('idhitungpendapatanlist').store.load({params:{thbl:thbl}});
if (resp.reason == 'Session Expired' || resp.message == 'Session Expired') {
session_expired('Session Expired');
} else{
set_message(2, resp.message);
Ext.getCmp('hitungpendapatan_input').close();
}
}catch(ex){
var msg=ex.message;
// var divEl = Ext.DomHelper.createDom('<div>'+ex.msg+'</div>');
// var vdiv=divEl.textContent;
var exmsg=null;
if (msg.indexOf('TokenMismatchException') > -1) {
//console.log('TokenMismatchException');
session_expired('Session Expired');
}else{
Ext.Msg.show({
title:'Message Error',
msg: ex.message,
buttons: Ext.Msg.OK,
icon: Ext.Msg.ERROR,
maxWidth:'100%',
listeners:{
show:function(){
Ext.Msg.doComponentLayout();
}
}
});
}
}
}
});
}else{
set_message(1, 'Data Input Not Valid !');
}
}
});
|
function solve(input){
let words = input.toUpperCase().split(/[\W+]/).filter(word => word.length > 0).join(', ');
console.log(words);
}
solve('Hi, how are you?');
|
// @flow
import { call, put } from 'redux-saga/effects'
import { getToken } from 'containers/LoginModal/saga'
import * as api from 'services/api'
import type { Response } from 'services/api'
import * as actions from './actions'
export function* post(endpoint: string, data: Object): Generator<*, void, *> {
const token = yield call(getToken)
yield call(api.postRequest, endpoint, data, token)
}
export function* get(
endpoint: string,
isToken?: boolean
): Generator<*, Response, *> {
let token = null
if (isToken) {
token = yield call(getToken)
}
// $FlowFixMe
const response = yield call(api.getRequest, endpoint, {}, token)
// $FlowFixMe
yield put(actions.apiRequestSuccess(response))
// $FlowFixMe
return response
}
|
'use strict';
// Forms controller
angular.module('forms').controller('ListFormsController', ['$rootScope', '$scope', '$stateParams', '$state', 'GetForms', 'CurrentForm', '$http', '$uibModal', 'myForms', '$window',
function($rootScope, $scope, $stateParams, $state, GetForms, CurrentForm, $http, $uibModal, myForms, $window) {
$scope = $rootScope;
$scope.forms = {};
$scope.showCreateModal = false;
$scope.myforms = myForms;
$scope.formLanguage = $window.$locale;
$rootScope.languageRegExp = {
regExp: /[@!#$%^&*()\-+={}\[\]|\\/'";:`.,~№?<>]+/i,
test: function(val) {
return !this.regExp.test(val);
}
};
/*
** DeleteModal Functions
*/
$scope.openDeleteModal = function(index){
$scope.deleteModal = $uibModal.open({
animation: $scope.animationsEnabled,
templateUrl: 'deleteModalListForms.html',
controller: function($uibModalInstance, items, $scope) {
$scope.content = items;
$scope.cancel = $scope.cancelDeleteModal;
$scope.deleteForm = function() {
$scope.$parent.removeForm(items.formIndex);
};
},
resolve: {
items: function() {
return {
currFormTitle: $scope.myforms[index].title,
formIndex: index
};
}
}
});
};
$scope.cancelDeleteModal = function(){
if($scope.deleteModal){
$scope.deleteModal.dismiss('cancel');
}
};
//Modal functions
$scope.openCreateModal = function(){
if(!$scope.showCreateModal){
$scope.showCreateModal = true;
}
};
$scope.closeCreateModal = function(){
if($scope.showCreateModal){
$scope.showCreateModal = false;
}
};
$scope.setForm = function (form) {
$scope.myform = form;
};
$scope.duplicateForm = function(form_index){
var form = _.cloneDeep($scope.myforms[form_index]);
delete form._id;
delete form.id;
form.title += ' copy';
$http.post('/forms', {form: form})
.then(function(resp_data, status, headers){
var result_form = resp_data.data;
result_form.submissionNum = 0;
$scope.myforms.splice(form_index+1, 0, result_form);
}, function(errorResponse){
console.error(errorResponse);
if(errorResponse === null){
$scope.error = errorResponse.data.message;
}
});
};
// Create new Form
$scope.createNewForm = function(){
var form = {};
form.title = $scope.forms.createForm.title.$modelValue;
form.language = $scope.forms.createForm.language.$modelValue;
if($scope.forms.createForm.$valid && $scope.forms.createForm.$dirty){
$http.post('/forms', {form: form})
.then(function(response, status, headers){
// Redirect after save
$state.go('viewForm.create', {formId: response.data.id}, {reload: true});
}, function(errorResponse){
console.error(errorResponse);
$scope.error = errorResponse.data.message;
});
}
};
$scope.removeForm = function(form_index) {
if(form_index >= $scope.myforms.length || form_index < 0){
throw new Error('Error: form_index in removeForm() must be between 0 and '+$scope.myforms.length-1);
}
$http.delete('/forms/'+$scope.myforms[form_index]._id)
.then(function(data, status, headers){
$scope.myforms.splice(form_index, 1);
$scope.cancelDeleteModal();
}, function(error){
console.error(error);
});
};
}
]);
|
CodeMirror.defineMode("plasm", function(conf, parserConf) {
var ERRORCLASS = 'error';
function wordRegexp(words) {
return new RegExp("^((" + words.join(")|(") + "))\\b");
}
var singleOperators = new RegExp("^[\\+\\-\\*/%&|\\^~<>!]");
var singleDelimiters = new RegExp('^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]');
var doubleOperators = new RegExp("^((==)|(!=)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))");
var doubleDelimiters = new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))");
var tripleDelimiters = new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))");
var identifiers = new RegExp("^[_A-Za-z][_A-Za-z0-9]*");
var assignOperators = new RegExp("^\\W*((=)|(\\+=)|(-=)|(/=)|(\\*=))");
var funcIdentifiers = new RegExp("^[_A-Z][_A-Z0-9]*$");
var wordOperators = wordRegexp(['and', 'or', 'not', 'is', 'in']);
var commonkeywords = ['as', 'assert', 'break', 'class', 'continue',
'def', 'del', 'elif', 'else', 'except', 'finally',
'for', 'from', 'global', 'if', 'import',
'lambda', 'pass', 'raise', 'return',
'try', 'while', 'with', 'yield'];
var commonBuiltins = ['abs', 'all', 'any', 'bin', 'bool', 'bytearray', 'callable', 'chr',
'classmethod', 'compile', 'complex', 'delattr', 'dict', 'dir', 'divmod',
'enumerate', 'eval', 'filter', 'float', 'format', 'frozenset',
'getattr', 'globals', 'hasattr', 'hash', 'help', 'hex', 'id',
'input', 'int', 'isinstance', 'issubclass', 'iter', 'len',
'list', 'locals', 'map', 'max', 'memoryview', 'min', 'next',
'object', 'oct', 'open', 'ord', 'pow', 'property', 'range',
'repr', 'reversed', 'round', 'set', 'setattr', 'slice',
'sorted', 'staticmethod', 'str', 'sum', 'super', 'tuple',
'type', 'vars', 'zip', '__import__', 'NotImplemented',
'Ellipsis', '__debug__'];
var customGroups = [
[
'CUBE', 'SQUARE', 'SQUARE3D', 'BOX', 'BRICK', 'RECTANGLE', 'RECTANGLE3D', 'HEXAHEDRON', 'SIMPLEX', 'CHULL', 'INTERVALS', 'RING', 'TUBE', 'RING3D', 'CIRCLE', 'CIRCLE3D', 'ELLIPSE', 'ARC', 'ARC3D', 'CYLINDER', 'CYL', 'SPHERE', 'TORUS', 'DONUT', 'ELBOW', 'CONE', 'PYRAMID', 'TCONE', 'TRUNCONE', 'DODECAHEDRON', 'ICOSAHEDRON', 'TETRAHEDRON', 'TRIANGLE', 'TRIANGLE3D', 'QUAD', 'QUADRILATERAL', 'BEZIER1', 'BEZIER2', 'BEZIER3', 'COONSPATCH', 'RULEDSURFACE', 'PROFILEPRODSURFACE', 'ROTATIONALSURFACE', 'ROSURFACE', 'ROSURF', 'ROTATIONALSOLID', 'ROSOLID', 'ROSOL', 'ROTATIONALSHELL', 'ROSHELL', 'CYLINDRICALSURFACE', 'CYSURFACE', 'CYSURF', 'CONICALSURFACE', 'COSURFACE', 'COSURF', 'CUBICHERMITE1', 'CUBICHERMITE2', 'CUBICHERMITE3', 'STAR', 'PRISM', 'REFDOMAIN', 'REFDOMAIN3D', 'UNITSQUARE', 'UNITCUBE', 'TANGRAM1', 'TANGRAM2', 'TANGRAM3', 'TANGRAM4', 'TANGRAM5', 'TANGRAM6', 'TANGRAM7', 'POINT', 'SHELL', 'OCTAHEDRON', 'KRYCHLE', 'KOSTKA', 'SZESCIAN', 'WUERFEL', 'WURFEL', 'CUBO', 'CTVEREC', 'KWADRAT', 'QUADRAT', 'CUADRADO', 'QUADRATO', 'CARRE', 'KVADR', 'CIHLA', 'PUDLO', 'CEGLA', 'KASTEN', 'SCHACHTEL', 'LADRILLO', 'CAJA', 'CUADRO', 'COTTO', 'SCATOLA', 'MATTONE', 'LATERIZIO', 'PARALELLEPIPEDO', 'BRIQUE', 'BOITE', 'RECT', 'OBDELNIK', 'PROSTOKAT', 'RECHTECK', 'RECTANGULO', 'RETTANGOLO', 'HEX', 'HEXAEDR', 'HEXAEDER', 'HEXAEDRO', 'ESAEDRO', 'HEXAEDRE', 'CONVEXHULL', 'CONVEX', 'CH', 'SPAN', 'KONVEXNIOBAL', 'KONVEX', 'OBAL', 'KOBAL', 'OTOCZKAWYPUKLA', 'OTOCZKA', 'HUELLE', 'HULLE', 'SPANNE', 'CASCO', 'CONVEXA', 'CONVESSO', 'SPANNA', 'CONVEXE', 'ENVELOPPE', 'DUREE', 'DIVISION', 'DELENI', 'INTERVALY', 'DZIELENIE', 'INTERWALY', 'INTERVALLE', 'AUFTEILEN', 'AUFSPALTEN', 'DIVISIONE', 'TRUBICE', 'TRUBKA', 'TUBA', 'ROURA', 'RURA', 'ROHR', 'TUBO', 'KRUH', 'KRUZNICE', 'KOLO', 'KRAG', 'OKRAG', 'KREIS', 'CIRCULO', 'CERCHIO', 'CERCLE', 'ROND', 'VALEC', 'ZYLINDER', 'ZYL', 'CILINDRO', 'CIL', 'CYLINDRE', 'KOULE', 'KULA', 'SFERA', 'KUGEL', 'ESFERA', 'TORO', 'TORE', 'KUZEL', 'STOZEK', 'KEGEL', 'CONO', 'KOMOLYKUZEL', 'KKUZEL', 'SCIETYSTOZEK', 'SSTOZEK', 'KEGELSTUMPF', 'KSTUMPF', 'CONOTRUNCADO', 'TRUNCONO', 'TCONO', 'TRONCONO', 'TRONCONE', 'DODEKAEDR', 'DVANACTISTEN', 'DWUNASTOSCIAN', 'DODEKAEDER', 'DODECAEDRO', 'DODECAEDRE', 'IKOSAEDR', 'DVACETISTEN', 'DWUDZIESTOSCIAN', 'IKOSAEDER', 'ICOSAEDRO', 'ICOSAEDRE', 'TET', 'TETRAEDR', 'CTYRSTEN', 'CZWOROBOK', 'CZWOROSCIAN', 'TETRAEDER', 'TETRAEDRO', 'TETRAEDRE', 'TROJUHELNIK', 'TROJKAT', 'DREIECK', 'TRIANGULO', 'TRIANGOLO', 'RUSURFACE', 'RUSURF', 'RUSU', 'PPSURFACE', 'PPSURF', 'PPSU', 'ROSU', 'ROTSOLID', 'ROTSHELL', 'CYSU', 'COSU', 'HRANOL', 'PRYZMA', 'PRYZMAT', 'PRISMA', 'PRISME', 'OKTAEDR', 'OCTAEDER', 'OCTAEDRO', 'EMPTY', 'EMPTYLIST'
],
[
'MOVE', 'M', 'SCALE', 'S', 'ROTATERAD', 'ROTATE', 'R', 'FLIP', 'TRANSLATE', 'T', 'SHIFT', 'POSUN', 'POSUNUTI', 'PRZENIES', 'PRZESUN', 'BEWEGE', 'BEWEGEN', 'BEWEGUNG', 'VERSCHIEBUNG', 'VERSCHIEBEN', 'VERSCHIEBE', 'MOVER', 'MUEVA', 'MUEVE', 'MUOVERE', 'MUOVI', 'SPOSTARE', 'SPOSTA', 'DEPLACER', 'DEPLACE', 'SKALUJ', 'SKALOVANI', 'PRZESKALUJ', 'SKALIERE', 'SKALIEREN', 'ESCALA', 'ESCALAR', 'SCALA', 'SCALARE', 'ECHELLE', 'REDIMENSIONNER', 'RRAD', 'OTOCRAD', 'OTOCENIRAD', 'ROTACERAD', 'ROTUJRAD', 'OBROCRAD', 'DREHERAD', 'DREHENRAD', 'DREHUNGRAD', 'ROTIERERAD', 'ROTIERENRAD', 'ROTIERUNGRAD', 'GIRARAD', 'ROTARAD', 'GIRARRAD', 'ROTARRAD', 'RUOTARERAD', 'RUOTARAD', 'TOURNERRAD', 'TOURNERAD', 'ROTATEDEG', 'RDEG', 'OTOC', 'OTOCENI', 'ROTACE', 'ROTUJ', 'OBROC', 'DREHE', 'DREHEN', 'DREHUNG', 'ROTIERE', 'ROTIEREN', 'ROTIERUNG', 'GIRA', 'ROTA', 'GIRAR', 'ROTAR', 'RUOTARE', 'RUOTA', 'TOURNER', 'TOURNE'
],
[
'ERASE', 'SPLIT', 'COPY', 'WELD', 'UNION', 'STRUCT', 'INTERSECTION', 'I', 'SUBTRACT', 'DIFFERENCE', 'DIFF', 'XOR', 'JOIN', 'PRODUCT', 'POWER', 'GRID', 'TOP', 'BOTTOM', 'LEFT', 'RIGHT', 'FRONT', 'REAR', 'MAP', 'MIRROR', 'SOLIDIFY', 'EXTRUDE', 'REVOLVE', 'SPIRAL', 'E', 'KOPIE', 'KOPIA', 'COPIA', 'COPIE', 'SPOJ', 'SPOJIT', 'SPOJENI', 'STRUKTURA', 'STRUKTUR', 'VERBINDE', 'ESTRUCTURA', 'ESTRUCT', 'STRUTTURA', 'GLUE', 'U', 'SUM', 'SJEDNOCENI', 'SOUCET', 'SECTI', 'SECIST', 'SUMA', 'UNIA', 'VEREINIGE', 'VEREINIGUNG', 'SUMME', 'SOMMA', 'UNIONE', 'SOMME', 'PRUNIK', 'PRZECIECIE', 'PRZETNIJ', 'DURCHSCHNITT', 'SCHNITT', 'SCHNEIDE', 'INTERSECCION', 'INTERSEZIONE', 'INTERSECA', 'MINUS', 'ODECTI', 'ODECIST', 'ODEJMIJ', 'ABZIEHE', 'SUBTRAHIERE', 'SUSTRAER', 'SUSTRAE', 'SOTTRARRE', 'SOTTRAI', 'SOUSTRAIRE', 'SOUSTRAIS', 'D', 'ROZDIL', 'ROZNICA', 'DIFFERENZ', 'DIFERENCIA', 'DIF', 'MOCNINA', 'PRODUKT', 'SOUCIN', 'UMOCNIT', 'UMOCNI', 'MOC', 'ILOCZYN', 'LEISTUNG', 'POTENCIA', 'PRODUCTO', 'POTENZA', 'PUISSANCE', 'PRODUIT', 'QUOTE', 'SIT', 'MRIZ', 'SIATKA', 'GITTER', 'NETZ', 'REJILLA', 'CUADRICULA', 'GRIGLIA', 'GRILLE', 'EXT', 'APPEND'
],
[
'SHOW', 'SIZEX', 'SIZEY', 'SIZEZ', 'SIZE', 'MINX', 'MINY', 'MINZ', 'MAXX', 'MAXY', 'MAXZ', 'GETDIM', 'COLOR', 'C', 'MATERIAL', 'TEXTURE', 'IS2D', 'IS3D', 'EMPTYSET', 'SUBSET', 'DISJOINT', 'HASBOX2D', 'HASNTBOX2D', 'ISINBOX2D', 'HASBOX3D', 'HASNTBOX3D', 'ISINBOX3D', 'SIZETEST2D', 'SIZETEST3D', 'BBTEST2D', 'BBTEST3D', 'SIZEMATCH2D', 'SIZEMATCH3D', 'POSITIONTEST2D', 'POSITIONTEST3D', 'PRINTSIZE', 'EXTREMA', 'EXTREMS', 'EXTREMES', 'VALIDATE', 'UKAZ', 'POKAZ', 'ZEIGE', 'MOSTRA', 'MONTRE', 'MUESTRA', 'VELIKOST', 'ROZMER', 'DELKA', 'ROZMIAR', 'GROESSE', 'GROSSE', 'LAENGE', 'LANGE', 'TAMANO', 'LONGITUD', 'TAGLIA', 'LUNGHEZZA', 'TAILLE', 'LONGUEUR', 'BARVA', 'OBARVI', 'OBARVIT', 'KOLOR', 'FARBE', 'COLORE', 'COULEUR'
],
[
'MANGO', 'BLACKBERRY', 'PAPAYA', 'HONEY', 'KETCHUP', 'MUSTARD', 'GRAY', 'GREY', 'SAND', 'LIGHTGREEN', 'GREEN', 'DARKGREEN', 'BLACK', 'LIGHTBLUE', 'BLUE', 'DARKBLUE', 'LIGHTBROWN', 'BROWN', 'DARKBROWN', 'LIME', 'MAROON', 'OLIVE', 'TEAL', 'NAVY', 'NAVYBLUE', 'SKYBLUE', 'CRIMSON', 'CORAL', 'SALMON', 'KHAKI', 'TURQUOISE', 'ORCHID', 'BEIGE', 'WHEAT', 'LIGHTCYAN', 'CYAN', 'DARKCYAN', 'PINK', 'LIGHTMAGENTA', 'MAGENTA', 'DARKMAGENTA', 'ORANGE', 'DARKORANGE', 'PURPLE', 'INDIGO', 'VIOLET', 'WHITE', 'LIGHTRED', 'RED', 'DARKRED', 'YELLOW', 'DARKYELLOW', 'STRAWBERRY', 'RASPBERRY', 'BLUEBERRY', 'PEACH', 'BANANA', 'MINT', 'VANILLA', 'LEMON', 'CHOCOLATE', 'CANDY', 'BRASS', 'COPPER', 'BRONZE', 'SILVER', 'GOLD', 'WOOD', 'STEEL', 'SEDA', 'SEDIVA', 'ZELENA', 'CERNA', 'MODRA', 'HNEDA', 'ORANZOVA', 'RUZOVA', 'FIALOVA', 'BILA', 'CERVENA', 'RUDA', 'ZLUTA', 'OCEL', 'OCELOVA', 'MOSAZ', 'MOSAZNA', 'MED', 'MEDENA', 'BRONZ', 'BRONZOVA', 'STRIBRO', 'STRIBRNA', 'ZLATO', 'ZLATA', 'SZARY', 'SIWY', 'ZIELONY', 'CZARNY', 'NIEBIESKI', 'BRAZOWY', 'POMARANCZOVY', 'ROZOWY', 'PURPUROWY', 'BIALY', 'CZERWONY', 'ZOLTY', 'STAL', 'STALOWY', 'MOSIADZ', 'MIEDZ', 'BRAZ', 'SREBRO', 'SREBRNY', 'ZLOTO', 'ZLOTY', 'GRAU', 'GRUEN', 'GRUN', 'SCHWARZ', 'BLAU', 'BRAUN', 'ROSA', 'LILA', 'WEISS', 'ROT', 'GELB', 'STAHL', 'MESSING', 'KUPFER', 'SILBER', 'GRIS', 'VERDE', 'NEGRO', 'NEGRA', 'AZUL', 'MARRON', 'CIAN', 'ROSO', 'NARANJA', 'PURPURO', 'PURPURA', 'BLANCO', 'BLANCA', 'ROJO', 'ROJA', 'AMARILLO', 'AMARILLA', 'ACERO', 'LATON', 'COBRE', 'BRONCE', 'PLATA', 'ORO', 'GRIGIO', 'NERO', 'NERA', 'AZZURRO', 'AZZURRA', 'MARRONE', 'ROSOLARE', 'CIANO', 'DENTELLARE', 'ARANCIONE', 'ARANCIO', 'ARANCIA', 'VIOLA', 'PORPORA', 'BIANCO', 'BIANCA', 'ROSSO', 'ROSSA', 'GIALLO', 'GIALLA', 'ACCIAIO', 'OTTONE', 'RAME', 'BRONZO', 'ARGENTO', 'VERT', 'NOIR', 'BLEU', 'BRUN', 'ROSE', 'POURPRE', 'BLANC', 'ROUGE', 'JAUNE', 'ACIER', 'LAITON', 'CUIVRE', 'ARGENT', 'OR'
],
['X'],
['Y'],
['Z']
];
var py2 = {'builtins': ['apply', 'basestring', 'buffer', 'cmp', 'coerce', 'execfile',
'file', 'intern', 'long', 'raw_input', 'reduce', 'reload',
'unichr', 'unicode', 'xrange', 'False', 'True', 'None'],
'keywords': ['exec', 'print']};
var py3 = {'builtins': ['ascii', 'bytes', 'exec', 'print'],
'keywords': ['nonlocal', 'False', 'True', 'None']};
if (!!parserConf.version && parseInt(parserConf.version, 10) === 3) {
commonkeywords = commonkeywords.concat(py3.keywords);
commonBuiltins = commonBuiltins.concat(py3.builtins);
var stringPrefixes = new RegExp("^(([rb]|(br))?('{3}|\"{3}|['\"]))", "i");
} else {
commonkeywords = commonkeywords.concat(py2.keywords);
commonBuiltins = commonBuiltins.concat(py2.builtins);
var stringPrefixes = new RegExp("^(([rub]|(ur)|(br))?('{3}|\"{3}|['\"]))", "i");
}
var keywords = wordRegexp(commonkeywords);
var builtins = wordRegexp(commonBuiltins);
var customKeywords = [];
for (var i=0; i<customGroups.length; i++) {
customKeywords.push(wordRegexp(customGroups[i]));
}
var indentInfo = null;
// tokenizers
function tokenBase(stream, state) {
// Handle scope changes
if (stream.sol()) {
var scopeOffset = state.scopes[0].offset;
if (stream.eatSpace()) {
var lineOffset = stream.indentation();
if (lineOffset > scopeOffset) {
indentInfo = 'indent';
} else if (lineOffset < scopeOffset) {
indentInfo = 'dedent';
}
return null;
} else {
if (scopeOffset > 0) {
dedent(stream, state);
}
}
}
if (stream.eatSpace()) {
return null;
}
var ch = stream.peek();
// Handle Comments
if (ch === '#') {
stream.skipToEnd();
return 'comment';
}
// Handle Number Literals
if (stream.match(/^[0-9\.]/, false)) {
var floatLiteral = false;
// Floats
if (stream.match(/^\d*\.\d+(e[\+\-]?\d+)?/i)) { floatLiteral = true; }
if (stream.match(/^\d+\.\d*/)) { floatLiteral = true; }
if (stream.match(/^\.\d+/)) { floatLiteral = true; }
if (floatLiteral) {
// Float literals may be "imaginary"
stream.eat(/J/i);
return 'number';
}
// Integers
var intLiteral = false;
// Hex
if (stream.match(/^0x[0-9a-f]+/i)) { intLiteral = true; }
// Binary
if (stream.match(/^0b[01]+/i)) { intLiteral = true; }
// Octal
if (stream.match(/^0o[0-7]+/i)) { intLiteral = true; }
// Decimal
if (stream.match(/^[1-9]\d*(e[\+\-]?\d+)?/)) {
// Decimal literals may be "imaginary"
stream.eat(/J/i);
// TODO - Can you have imaginary longs?
intLiteral = true;
}
// Zero by itself with no other piece of number.
if (stream.match(/^0(?![\dx])/i)) { intLiteral = true; }
if (intLiteral) {
// Integer literals may be "long"
stream.eat(/L/i);
return 'number';
}
}
// Handle Strings
if (stream.match(stringPrefixes)) {
state.tokenize = tokenStringFactory(stream.current());
return state.tokenize(stream, state);
}
// Handle operators and Delimiters
if (stream.match(tripleDelimiters) || stream.match(doubleDelimiters)) {
return null;
}
if (stream.match(doubleOperators)
|| stream.match(singleOperators)
|| stream.match(wordOperators)) {
return 'operator';
}
if (stream.match(singleDelimiters)) {
return null;
}
if (stream.match(keywords)) {
return 'keyword';
}
if (stream.match(builtins)) {
return 'builtin';
}
for (var i=0; i<customKeywords.length; i++) {
if (stream.match(customKeywords[i])) {
if (stream.match(assignOperators)) {
return ERRORCLASS;
}
else {
return 'plasm-custom'+i;
}
}
}
var variable = stream.match(identifiers);
if (variable) {
if (stream.match(assignOperators)) {
if (funcIdentifiers.test(variable)){
return ERRORCLASS;
}
}
return 'variable';
}
// Handle non-detected items
stream.next();
return ERRORCLASS;
}
function tokenStringFactory(delimiter) {
while ('rub'.indexOf(delimiter.charAt(0).toLowerCase()) >= 0) {
delimiter = delimiter.substr(1);
}
var singleline = delimiter.length == 1;
var OUTCLASS = 'string';
return function tokenString(stream, state) {
while (!stream.eol()) {
stream.eatWhile(/[^'"\\]/);
if (stream.eat('\\')) {
stream.next();
if (singleline && stream.eol()) {
return OUTCLASS;
}
} else if (stream.match(delimiter)) {
state.tokenize = tokenBase;
return OUTCLASS;
} else {
stream.eat(/['"]/);
}
}
if (singleline) {
if (parserConf.singleLineStringErrors) {
return ERRORCLASS;
} else {
state.tokenize = tokenBase;
}
}
return OUTCLASS;
};
}
function indent(stream, state, type) {
type = type || 'py';
var indentUnit = 0;
if (type === 'py') {
if (state.scopes[0].type !== 'py') {
state.scopes[0].offset = stream.indentation();
return;
}
for (var i = 0; i < state.scopes.length; ++i) {
if (state.scopes[i].type === 'py') {
indentUnit = state.scopes[i].offset + conf.indentUnit;
break;
}
}
} else {
indentUnit = stream.column() + stream.current().length;
}
state.scopes.unshift({
offset: indentUnit,
type: type
});
}
function dedent(stream, state, type) {
type = type || 'py';
if (state.scopes.length == 1) return;
if (state.scopes[0].type === 'py') {
var _indent = stream.indentation();
var _indent_index = -1;
for (var i = 0; i < state.scopes.length; ++i) {
if (_indent === state.scopes[i].offset) {
_indent_index = i;
break;
}
}
if (_indent_index === -1) {
return true;
}
while (state.scopes[0].offset !== _indent) {
state.scopes.shift();
}
return false;
} else {
if (type === 'py') {
state.scopes[0].offset = stream.indentation();
return false;
} else {
if (state.scopes[0].type != type) {
return true;
}
state.scopes.shift();
return false;
}
}
}
function tokenLexer(stream, state) {
indentInfo = null;
var style = state.tokenize(stream, state);
var current = stream.current();
// Handle '.' connected identifiers
if (current === '.') {
style = stream.match(identifiers, false) ? null : ERRORCLASS;
if (style === null && state.lastToken === 'meta') {
// Apply 'meta' style to '.' connected identifiers when
// appropriate.
style = 'meta';
}
return style;
}
// Handle decorators
if (current === '@') {
return stream.match(identifiers, false) ? 'meta' : ERRORCLASS;
}
if ((style === 'variable' || style === 'builtin')
&& state.lastToken === 'meta') {
style = 'meta';
}
// Handle scope changes.
if (current === 'pass' || current === 'return') {
state.dedent += 1;
}
if (current === 'lambda') state.lambda = true;
if ((current === ':' && !state.lambda && state.scopes[0].type == 'py')
|| indentInfo === 'indent') {
indent(stream, state);
}
var delimiter_index = '[({'.indexOf(current);
if (delimiter_index !== -1) {
indent(stream, state, '])}'.slice(delimiter_index, delimiter_index+1));
}
if (indentInfo === 'dedent') {
if (dedent(stream, state)) {
return ERRORCLASS;
}
}
delimiter_index = '])}'.indexOf(current);
if (delimiter_index !== -1) {
if (dedent(stream, state, current)) {
return ERRORCLASS;
}
}
if (state.dedent > 0 && stream.eol() && state.scopes[0].type == 'py') {
if (state.scopes.length > 1) state.scopes.shift();
state.dedent -= 1;
}
return style;
}
var external = {
startState: function(basecolumn) {
return {
tokenize: tokenBase,
scopes: [{offset:basecolumn || 0, type:'py'}],
lastToken: null,
lambda: false,
dedent: 0
};
},
token: function(stream, state) {
var style = tokenLexer(stream, state);
state.lastToken = style;
if (stream.eol() && stream.lambda) {
state.lambda = false;
}
return style;
},
indent: function(state, textAfter) {
if (state.tokenize != tokenBase) {
return 0;
}
return state.scopes[0].offset;
}
};
if (parserConf.overlay != null) {
// overlay a mode over this mode
return CodeMirror.overlayMode(external, CodeMirror.getMode(conf, parserConf.overlay));
} else {
return external;
}
});
CodeMirror.defineMIME("text/x-plasm", "plasm");
|
{"project": [null,null,[[0,false,false,false,false,false,false,false,false,false],[1,true,false,false,false,false,false,false,false,false],[2,true,false,false,false,false,false,false,false,false],[3,true,false,false,false,false,false,false,false,false],[4,false,true,true,false,true,true,true,true,true],[5,false,true,true,false,true,true,true,true,false],[6,false,true,true,true,true,true,true,true,false],[7,false,true,true,true,true,true,true,true,false]],[["t0",6,false,[],0,0,null,[["Default",0,false,1,0,false,436984382159092,[["images/basicskeleton_skeleton_arml-sheet0.png",1703,0,0,50,123,1,0,0,[],[0.1000000014901161,0.04065040126442909,0.5,0.0243902001529932,0.7799999713897705,0.08943089842796326,0.7799999713897705,0.4959349930286408,0.9200000166893005,0.9674800038337708,0.5,1,0.119999997317791,0.9512190222740173],0]]]],[],false,false,345091718075058,[],null],["t1",6,false,[],0,0,null,[["Default",0,false,1,0,false,722114380737554,[["images/basicskeleton_skeleton_feetl-sheet0.png",794,0,0,73,29,1,0,0,[],[0.04109590128064156,0.1034480035305023,0.4931510090827942,0.2758620083332062,0.7808219790458679,0.5517240166664124,0.7260270118713379,0.4827589988708496,0.9863010048866272,0.965516984462738,0.4931510090827942,0.965516984462738,0.02739729918539524,0.9310349822044373],0]]]],[],false,false,188046617467535,[],null],["t2",6,false,[],0,0,null,[["Default",0,false,1,0,false,120097385672194,[["images/basicskeleton_skeleton_elbowl-sheet0.png",1392,0,0,57,114,1,0,0,[],[0.1403509974479675,0.07017540186643601,0.4912280142307282,0.008771929889917374,0.7719299793243408,0.114035002887249,0.9824560284614563,0.5,0.8947370052337647,0.9473680257797241,0.4912280142307282,0.9561399817466736,0.228070005774498,0.8859649896621704,0.2456140071153641,0.5],0]]]],[],false,false,134695028427762,[],null],["t3",6,false,[],0,0,null,[["Default",0,false,1,0,false,120358237695918,[["images/basicskeleton_skeleton_handl-sheet0.png",730,0,0,56,42,1,0,0,[],[0.1785710006952286,0.2380950003862381,0.5,0,0.8214290142059326,0.2380950003862381,0.9464290142059326,0.5,0.982142984867096,0.9761899709701538,0.5,0.9761899709701538,0.1607140004634857,0.7857139706611633,0.0357142984867096,0.5],0]]]],[],false,false,906503545008751,[],null],["t4",6,false,[],0,0,null,[["Default",0,false,1,0,false,594337252087884,[["images/basicskeleton_skeleton_sword-sheet0.png",8193,0,0,112,351,1,0,0,[],[0.07142859697341919,0.02279200032353401,0.5,0.03418799862265587,0.6874999403953552,0.09971509873867035,0.8482139706611633,0.4985759854316711,0.5178570151329041,0.8461539745330811,0.5,0.9629629850387573,0.0982142984867096,0.9686610102653503,0.1964289993047714,0.4985759854316711],0]]]],[],false,false,312344151124341,[],null],["t5",6,false,[],0,0,null,[["Default",0,false,1,0,false,955035190567864,[["images/basicskeleton_skeleton_hand_grab-sheet0.png",1275,0,0,55,51,1,0,0,[],[0.03636360168457031,0.03921569883823395,0.9636359810829163,0.03921569883823395,1,0.4901959896087647,0.8727269768714905,0.8627449870109558,0.4909090101718903,0.9607840180397034,0.1818179935216904,0.8039219975471497,0.09090910106897354,0.4901959896087647],0]]]],[],false,false,570785177229013,[],null],["t6",6,false,[],0,0,null,[["Default",0,false,1,0,false,445632003085939,[["images/basicskeleton_skeleton_legl-sheet0.png",1495,0,0,52,101,1,0,0,[],[0.1346150040626526,0.06930690258741379,0.5,0.01980200037360191,0.8076919913291931,0.09900990128517151,0.8846150040626526,0.4950500130653381,0.8846150040626526,0.9405940175056458,0.5,1,0.1346150040626526,0.9306929707527161,0.2115380018949509,0.4950500130653381],0]]]],[],false,false,558258700741241,[],null],["t7",6,false,[],0,0,null,[["Default",0,false,1,0,false,785759543998004,[["images/basicskeleton_skeleton_lower_legl-sheet0.png",1515,0,0,56,112,1,0,0,[],[0.1785710006952286,0.08928570151329041,0.5,0,0.8035709857940674,0.0982142984867096,0.9107139706611633,0.5,0.6428570151329041,0.8214290142059326,0.5,0.9553570151329041,0.08928570151329041,0.9553570151329041,0.08928570151329041,0.5],0]]]],[],false,false,251284974922339,[],null],["t8",6,false,[],0,0,null,[["Default",0,false,1,0,false,693015372340272,[["images/basicskeleton_skeleton_legr-sheet0.png",1326,0,0,50,101,1,0,0,[],[0.2199999988079071,0.1089110001921654,0.5,0.01980200037360191,0.8799999952316284,0.05940590053796768,0.800000011920929,0.4950500130653381,0.8600000143051148,0.9306929707527161,0.5,1,0.119999997317791,0.9405940175056458,0.1400000005960465,0.4950500130653381],0]]]],[],false,false,210041948482724,[],null],["t9",6,false,[],0,0,null,[["Default",0,false,1,0,false,246602150953007,[["images/basicskeleton_skeleton_lower_legr-sheet0.png",1447,0,0,56,109,1,0,0,[],[0.2321429997682571,0.119266003370285,0.5,0.01834860071539879,0.875,0.06422019749879837,0.8928570151329041,0.4954130053520203,0.6964290142059326,0.8440369963645935,0.5,1,0.1428570002317429,0.9266059994697571,0.01785710081458092,0.4954130053520203],0]]]],[],false,false,294944601518789,[],null],["t10",6,false,[],0,0,null,[["Default",0,false,1,0,false,416072743873512,[["images/basicskeleton_skeleton_feetr-sheet0.png",790,0,0,51,25,1,0,0,[],[0.1176469996571541,0.239999994635582,0.4901959896087647,0.03999999910593033,0.8627449870109558,0.2800000011920929,0.9411759972572327,0.4799999892711639,0.9803919792175293,0.9599999785423279,0.4901959896087647,0.9599999785423279,0.03921569883823395,0.9200000166893005,0.05882349982857704,0.4799999892711639],0],["images/basicskeleton_skeleton_feetl-sheet0.png",794,0,0,73,29,1,0,0,[],[0.04109590128064156,0.1034480035305023,0.4931510090827942,0.2758620083332062,0.7808219790458679,0.5517240166664124,0.7260270118713379,0.4827589988708496,0.9863010048866272,0.965516984462738,0.4931510090827942,0.965516984462738,0.02739729918539524,0.9310349822044373],0]]]],[],false,false,106711196312327,[],null],["t11",6,false,[],0,0,null,[["Default",0,false,1,0,false,620405281018572,[["images/basicskeleton_skeleton_torso-sheet0.png",5788,0,0,164,202,1,0,0,[],[0.1402440071105957,0.1138610020279884,0.5,0.04950499907135963,0.8353660106658936,0.1336629986763001,0.9695119857788086,0.5,0.6890239715576172,0.7475249767303467,0.5,1,0.3597559928894043,0.707921028137207,0.06097560003399849,0.5],0]]]],[],false,false,593932435192441,[],null],["t12",6,false,[],0,0,null,[["Default",0,false,1,0,false,285475067906175,[["images/basicskeleton_skeleton_hips-sheet0.png",3885,0,0,198,128,1,0,0,[],[0.03535350039601326,0.0546875,0.5,0.3203130066394806,0.9343429803848267,0.1015629991889,0.9242420196533203,0.5,0.8030300140380859,0.6953129768371582,0.5,0.921875,0.1818179935216904,0.71875,0.07575760036706924,0.5],0]]]],[],false,false,637861059350799,[],null],["t13",6,false,[],0,0,null,[["Default",0,false,1,0,false,313121208964325,[["images/basicskeleton_skeleton_head-sheet0.png",3339,0,0,217,229,1,0,0,[],[0.1059909984469414,0.1004370003938675,0.4976960122585297,0.004366809967905283,0.8663589954376221,0.1266379952430725,1,0.4978170096874237,0.8525350093841553,0.8602619767189026,0.4976960122585297,0.9956330060958862,0.2903229892253876,0.7248910069465637,0.01843320019543171,0.4978170096874237],0]]]],[],false,false,110662543954783,[],null],["t14",6,false,[],0,0,null,[["Default",0,false,1,0,false,861052436727042,[["images/basicskeleton_skeleton_armr-sheet0.png",1717,0,0,52,123,1,0,0,[],[0.25,0.1056910008192062,0.5,0.0243902001529932,0.9230769872665405,0.03252030164003372,0.8653849959373474,0.4959349930286408,0.8653849959373474,0.9430890083312988,0.5,0.9918699860572815,0.09615380316972733,0.9593499898910523,0.2307689934968948,0.4959349930286408],0]]]],[],false,false,131718616646499,[],null],["t15",6,false,[],0,0,null,[["Default",0,false,1,0,false,578403350382079,[["images/basicskeleton_skeleton_elbowr-sheet0.png",1364,0,0,57,113,1,0,0,[],[0.2456140071153641,0.1238939985632896,0.4912280142307282,0.01769910007715225,0.8947370052337647,0.05309730023145676,0.7719299793243408,0.4955750107765198,0.7719299793243408,0.8849560022354126,0.4912280142307282,0.964601993560791,0.105263002216816,0.9469029903411865,0.035087700933218,0.4955750107765198],0]]]],[],false,false,503807622426060,[],null],["t16",6,false,[],0,0,null,[["Default",0,false,1,0,false,118801183998359,[["images/basicskeleton_skeleton_handr-sheet0.png",1672,0,0,82,74,1,0,0,[],[0.1341460049152374,0.1486490070819855,0.5,0.04054050147533417,0.7439020276069641,0.2837840020656586,1,0.5,0.5853660106658936,0.5405409932136536,0.5,0.8108109831809998,0.0853658989071846,0.9054049849510193,0,0.5],0]]]],[],false,false,956659048719922,[],null],["t17",6,false,[],0,0,null,[["Default",0,false,1,0,false,805534884347994,[["images/barbarian_skeleton_arml-sheet0.png",1627,0,0,48,118,1,0,0,[],[0.1458330005407333,0.05932199954986572,0.5,0.008474580012261868,0.8125,0.07627119868993759,0.8333330154418945,0.5,0.9374999403953552,0.9745759963989258,0.5,1,0.125,0.9491530060768127,0.1875,0.5],0]]]],[],false,false,142253605027647,[],null],["t18",6,false,[],0,0,null,[["Default",0,false,1,0,false,429037564182752,[["images/basicskeleton_skeleton_feetl-sheet0.png",794,0,0,73,29,1,0,0,[],[0.04109590128064156,0.1034480035305023,0.4931510090827942,0.2758620083332062,0.7808219790458679,0.5517240166664124,0.7260270118713379,0.4827589988708496,0.9863010048866272,0.965516984462738,0.4931510090827942,0.965516984462738,0.02739729918539524,0.9310349822044373],0]]]],[],false,false,150956101800385,[],null],["t19",6,false,[],0,0,null,[["Default",0,false,1,0,false,420079563170170,[["images/barbarian_skeleton_elbowl-sheet0.png",1400,0,0,53,110,1,0,0,[],[0.1509429961442947,0.07272730022668839,0.4905659854412079,0.009090909734368324,0.7924529910087585,0.1000000014901161,1,0.5,0.8679249882698059,0.9363639950752258,0.4905659854412079,0.9545450210571289,0.1886789947748184,0.9090909957885742,0.2264149934053421,0.5],0]]]],[],false,false,316716985860671,[],null],["t20",6,false,[],0,0,null,[["Default",0,false,1,0,false,504906789168232,[["images/barbarian_skeleton_handl-sheet0.png",676,0,0,55,39,1,0,0,[],[0.2000000029802322,0.2820509970188141,0.4909090101718903,0.02564099989831448,0.8727269768714905,0.1794870048761368,0.945455014705658,0.4871790111064911,0.9090909957885742,0.8717949986457825,0.4909090101718903,1,0.09090910106897354,0.8717949986457825,0.1090909987688065,0.4871790111064911],0]]]],[],false,false,444477825309188,[],null],["t21",6,false,[],0,0,null,[["Default",0,false,1,0,false,179716921261856,[["images/barbarian_skeleton_flag-sheet0.png",20867,0,0,263,521,1,0,0,[],[0.2357410043478012,0.1190019994974136,0.4980989992618561,0.1170829981565476,0.9353610277175903,0.03262960165739059,0.9771860241889954,0.4990400075912476,0.9847909808158875,0.9923220276832581,0.4980989992618561,0.8598849773406982,0.3193919956684113,0.8387719988822937,0.2015209943056107,0.4990400075912476],0]]]],[],false,false,628072370059454,[],null],["t22",6,false,[],0,0,null,[["Default",0,false,1,0,false,552626382931679,[["images/barbarian_skeleton_legl-sheet0.png",1525,0,0,55,107,1,0,0,[],[0.145455002784729,0.07476639747619629,0.4909090101718903,0.01869159936904907,0.8181819915771484,0.0934578999876976,0.8909090161323547,0.4953269958496094,0.8909090161323547,0.9439250230789185,0.4909090101718903,1,0.145455002784729,0.9252340197563171,0.2181819975376129,0.4953269958496094],0]]]],[],false,false,632086103841734,[],null],["t23",6,false,[],0,0,null,[["Default",0,false,1,0,false,738669804645722,[["images/barbarian_skeleton_lower_legl-sheet0.png",1588,0,0,59,118,1,0,0,[],[0.1864410042762756,0.0932203009724617,0.4915249943733215,0.008474580012261868,0.8135589957237244,0.0932203009724617,0.9322029948234558,0.5,0.6610170006752014,0.8305079936981201,0.4915249943733215,0.9661020040512085,0.08474580198526382,0.95762699842453,0.1016950011253357,0.5],0]]]],[],false,false,892540844026706,[],null],["t24",6,false,[],0,0,null,[["Default",0,false,1,0,false,879669351014317,[["images/barbarian_skeleton_legr-sheet0.png",1309,0,0,54,106,1,0,0,[],[0.2037039995193481,0.1037739962339401,0.5,0.009433959610760212,0.8703699707984924,0.06603769958019257,0.8148149847984314,0.5,0.8518519997596741,0.9245280027389526,0.5,1,0.1296299993991852,0.9339619874954224,0.1296299993991852,0.5],0]]]],[],false,false,242812585034917,[],null],["t25",6,false,[],0,0,null,[["Default",0,false,1,0,false,213492846629320,[["images/barbarian_skeleton_lower_legr-sheet0.png",1657,0,0,59,119,1,0,0,[],[0.2542369961738586,0.1260499954223633,0.4915249943733215,0.0168066993355751,0.8813560009002686,0.05882349982857704,0.8983049988746643,0.4957979917526245,0.6949149966239929,0.8487399816513062,0.4915249943733215,0.9831929802894592,0.152541995048523,0.9243699908256531,0,0.4957979917526245],0]]]],[],false,false,713308861788536,[],null],["t26",6,false,[],0,0,null,[["Default",0,false,1,0,false,141728065438072,[["images/basicskeleton_skeleton_feetr-sheet0.png",790,0,0,51,25,1,0,0,[],[0.1176469996571541,0.239999994635582,0.4901959896087647,0.03999999910593033,0.8627449870109558,0.2800000011920929,0.9411759972572327,0.4799999892711639,0.9803919792175293,0.9599999785423279,0.4901959896087647,0.9599999785423279,0.03921569883823395,0.9200000166893005,0.05882349982857704,0.4799999892711639],0],["images/basicskeleton_skeleton_feetl-sheet0.png",794,0,0,73,29,1,0,0,[],[0.04109590128064156,0.1034480035305023,0.4931510090827942,0.2758620083332062,0.7808219790458679,0.5517240166664124,0.7260270118713379,0.4827589988708496,0.9863010048866272,0.965516984462738,0.4931510090827942,0.965516984462738,0.02739729918539524,0.9310349822044373],0]]]],[],false,false,801845432227163,[],null],["t27",6,false,[],0,0,null,[["Default",0,false,1,0,false,444216568614857,[["images/barbarian_skeleton_hips-sheet0.png",7431,0,0,209,180,1,0,0,[],[0.3301439881324768,0.3833329975605011,0.4976080060005188,0.005555559881031513,0.6076560020446777,0.4555560052394867,0.9952149987220764,0.5,0.7990429997444153,0.7666670083999634,0.4976080060005188,0.9388890266418457,0.1818179935216904,0.7888889908790588,0.02392340078949928,0.5],0]]]],[],false,false,701628923403266,[],null],["t28",6,false,[],0,0,null,[["Default",0,false,1,0,false,357771323909074,[["images/barbarian_skeleton_torso-sheet0.png",6310,0,0,231,175,1,0,0,[],[0.1125539988279343,0.1485709995031357,0.4978350102901459,0.1771429926156998,0.9826840162277222,0.02285709977149963,0.9090909957885742,0.4971430003643036,0.8398270010948181,0.7885710000991821,0.4978350102901459,0.9885709881782532,0.1428570002317429,0.8114290237426758,0.07359310239553452,0.4971430003643036],0]]]],[],false,false,884356865654554,[],null],["t29",6,false,[],0,0,null,[["Default",0,false,1,0,false,559406482417457,[["images/barbarian_skeleton_hair-sheet0.png",5472,0,0,188,135,1,0,0,[],[0.3404259979724884,0.4740740060806274,0.5,0.07407409697771072,0.9042549729347229,0.1333329975605011,0.9893620014190674,0.4962959885597229,0.9414889812469482,0.9185190200805664,0.5,0.3555560111999512,0.202127993106842,0.7185180187225342,0.3404259979724884,0.4962959885597229],0]]]],[],false,false,505948367004313,[],null],["t30",6,false,[],0,0,null,[["Default",0,false,1,0,false,402554040641163,[["images/barbarian_skeleton_head-sheet0.png",3398,0,0,229,241,1,0,0,[],[0.1048030033707619,0.09958510100841522,0.4978170096874237,0.004149380140006542,0.8689960241317749,0.1244810000061989,1,0.4979250133037567,0.8515279889106751,0.8589209914207459,0.4978170096874237,1,0.2882100045681,0.7261409759521484,0.01310039963573217,0.4979250133037567],0]]]],[],false,false,171837779640625,[],null],["t31",6,false,[],0,0,null,[["Default",0,false,1,0,false,319773224385916,[["images/barbarian_skeleton_armr-sheet0.png",2706,0,0,90,157,1,0,0,[],[0.14444400370121,0.08280249685049057,0.5,0.006369430106133223,0.8444439768791199,0.08917199820280075,0.7666670083999634,0.4968149960041046,0.6666669845581055,0.8089169859886169,0.5,1,0.2000000029802322,0.8853499889373779,0.2222220003604889,0.4968149960041046],0]]]],[],false,false,181210811034091,[],null],["t32",6,false,[],0,0,null,[["Default",0,false,1,0,false,792106009052308,[["images/barbarian_skeleton_elbowr-sheet0.png",1380,0,0,56,107,1,0,0,[],[0.25,0.130841001868248,0.5,0.01869159936904907,0.8928570151329041,0.05607479810714722,0.7678570151329041,0.4953269958496094,0.75,0.8691589832305908,0.5,0.9719629883766174,0.08928570151329041,0.9532709717750549,0.05357139930129051,0.4953269958496094],0]]]],[],false,false,933808554783463,[],null],["t33",6,false,[],0,0,null,[["Default",0,false,1,0,false,591965777146812,[["images/barbarian_skeleton_sword-sheet0.png",19587,0,0,327,768,1,0,0,[],[0.4984709918498993,0.009114580228924751,0.6024460196495056,0.1692710071802139,0.5963299870491028,0.5,0.6880729794502258,0.8671879768371582,0.4984709918498993,0.9440100193023682,0.1162080019712448,0.9505209922790527,0.4892970025539398,0.5],0]]]],[],false,false,352846963253759,[],null],["t34",6,false,[],0,0,null,[["Default",0,false,1,0,false,967353033599411,[["images/barbarian_skeleton_hand_grab-sheet0.png",1313,0,0,60,57,1,0,0,[],[0.1833329945802689,0.1929820030927658,0.5,0.122807003557682,0.7833330035209656,0.228070005774498,1,0.4912280142307282,0.8166670203208923,0.807017982006073,0.5,1,0.03333330154418945,0.9649119973182678],0]]]],[],false,false,107330519700534,[],null],["t35",6,false,[],0,0,null,[["Default",0,false,1,0,false,321499565115744,[["images/barbarian_skeleton_handr-sheet0.png",1539,0,0,78,71,1,0,0,[],[0.1410260051488876,0.1549299955368042,0.5,0.02816900052130222,0.7435899972915649,0.2816900014877319,1,0.4929580092430115,0.589743971824646,0.5492960214614868,0.5,0.8028169870376587,0.08974359929561615,0.9014080166816711,0.01282049994915724,0.4929580092430115],0]]]],[],false,false,560652530133204,[],null],["t36",6,false,[],0,0,null,[["Default",0,false,1,0,false,280358759548872,[["images/basicskeleton_skeleton_legl-sheet0.png",1495,0,0,52,101,1,0,0,[],[0.1346150040626526,0.06930690258741379,0.5,0.01980200037360191,0.8076919913291931,0.09900990128517151,0.8846150040626526,0.4950500130653381,0.8846150040626526,0.9405940175056458,0.5,1,0.1346150040626526,0.9306929707527161,0.2115380018949509,0.4950500130653381],0]]]],[],false,false,769003280161505,[],null],["t37",6,false,[],0,0,null,[["Default",0,false,1,0,false,672448695088785,[["images/basicskeleton_skeleton_feetl-sheet0.png",794,0,0,73,29,1,0,0,[],[0.04109590128064156,0.1034480035305023,0.4931510090827942,0.2758620083332062,0.7808219790458679,0.5517240166664124,0.7260270118713379,0.4827589988708496,0.9863010048866272,0.965516984462738,0.4931510090827942,0.965516984462738,0.02739729918539524,0.9310349822044373],0]]]],[],false,false,246655631992839,[],null],["t38",6,false,[],0,0,null,[["Default",0,false,1,0,false,114674598180839,[["images/headlessbomber_skeleton_protector_000-sheet0.png",2737,0,0,67,107,1,0,0,[],[0.05970149859786034,0.03738319873809815,0.4925369918346405,0,0.9701489806175232,0.01869159936904907,0.8059700131416321,0.4953269958496094,0.671642005443573,0.794393002986908,0.4925369918346405,1,0.1044780015945435,0.9345790147781372,0.1194029971957207,0.4953269958496094],0]]]],[],false,false,820048881690573,[],null],["t39",6,false,[],0,0,null,[["Default",0,false,1,0,false,908205561661680,[["images/headlessbomber_skeleton_ex_1-sheet0.png",945782,1,1,807,612,1,0,0,[],[0.4993799924850464,0.8382350206375122,0.3853780031204224,0.8104580044746399,0.4993799924850464,0.9918299913406372],0],["images/headlessbomber_skeleton_ex_1-sheet0.png",945782,810,1,807,612,1,0,0,[],[0.47707599401474,0.6290850043296814,0.4993799924850464,0.4983659982681274,0.5303589701652527,0.619280993938446,0.5353159904479981,0.5,0.5204460024833679,0.3676469922065735,0.4993799924850464,0.9901959896087647,0.1809169948101044,0.7614380121231079,0.4993799924850464,0.5],0],["images/headlessbomber_skeleton_ex_1-sheet0.png",945782,1,615,807,612,1,0,0,[],[0.4200739860534668,0.5539219975471497,0.4993799924850464,0.2287580072879791,0.5873609781265259,0.5441179871559143,0.8190829753875732,0.5,0.7781909704208374,0.7075160145759583,0.4993799924850464,0.9526140093803406,0.1784390062093735,0.764706015586853,0.2218089997768402,0.5],0],["images/headlessbomber_skeleton_ex_1-sheet0.png",945782,810,615,807,612,1,0,0,[],[0.5130109786987305,0.6764709949493408,0.4993799924850464,0.2303919941186905,0.617099940776825,0.5049020051956177,0.8178439736366272,0.5,0.9355639815330505,0.9150329828262329,0.4993799924850464,0.9232029914855957,0.159850999712944,0.7892159819602966,0.4907059967517853,0.5],0],["images/headlessbomber_skeleton_ex_1-sheet0.png",945782,1,1229,807,612,1,0,0,[],[0.2949190139770508,0.3888889849185944,0.4993799924850464,0.1013069972395897,0.7534080147743225,0.3251630067825317,0.8513010144233704,0.5,0.9355639815330505,0.9150329828262329,0.4993799924850464,0.3921569883823395,0.06071870028972626,0.9199349880218506,0.323419988155365,0.5],0],["images/headlessbomber_skeleton_ex_1-sheet0.png",945782,810,1229,807,612,1,0,0,[],[0.322180986404419,0.4248369932174683,0.4993799924850464,0.3431369960308075,0.7521690130233765,0.3267970085144043,0.8364310264587402,0.5,0.9739779829978943,0.965686023235321,0.4993799924850464,0.3496730029582977,0.09913259744644165,0.869280993938446],0],["images/headlessbomber_skeleton_ex_1-sheet1.png",96632,0,0,807,612,1,0,0,[],[0.2180919945240021,0.2875820100307465,0.7534080147743225,0.3251630067825317,0.8339530229568481,0.5,0.9690210223197937,0.9591500163078308,0.09913259744644165,0.869280993938446,0.7273849844932556,0.5],0],["images/headlessbomber_skeleton_ex_1-sheet2.png",1540,0,0,807,612,1,0,0,[],[],0]]]],[],false,false,644158447965016,[],null],["t40",6,false,[],0,0,null,[["Default",0,false,1,0,false,653082745245316,[["images/basicskeleton_skeleton_lower_legl-sheet0.png",1515,0,0,56,112,1,0,0,[],[0.1785710006952286,0.08928570151329041,0.5,0,0.8035709857940674,0.0982142984867096,0.9107139706611633,0.5,0.6428570151329041,0.8214290142059326,0.5,0.9553570151329041,0.08928570151329041,0.9553570151329041,0.08928570151329041,0.5],0]]]],[],false,false,758807251771254,[],null],["t41",6,false,[],0,0,null,[["Default",0,false,1,0,false,895111848408823,[["images/basicskeleton_skeleton_legr-sheet0.png",1326,0,0,50,101,1,0,0,[],[0.2199999988079071,0.1089110001921654,0.5,0.01980200037360191,0.8799999952316284,0.05940590053796768,0.800000011920929,0.4950500130653381,0.8600000143051148,0.9306929707527161,0.5,1,0.119999997317791,0.9405940175056458,0.1400000005960465,0.4950500130653381],0]]]],[],false,false,744205246661558,[],null],["t42",6,false,[],0,0,null,[["Default",0,false,1,0,false,168563325906087,[["images/basicskeleton_skeleton_lower_legr-sheet0.png",1447,0,0,56,109,1,0,0,[],[0.2321429997682571,0.119266003370285,0.5,0.01834860071539879,0.875,0.06422019749879837,0.8928570151329041,0.4954130053520203,0.6964290142059326,0.8440369963645935,0.5,1,0.1428570002317429,0.9266059994697571,0.01785710081458092,0.4954130053520203],0]]]],[],false,false,941998217661231,[],null],["t43",6,false,[],0,0,null,[["Default",0,false,1,0,false,384259767222481,[["images/basicskeleton_skeleton_feetr-sheet0.png",790,0,0,51,25,1,0,0,[],[0.1176469996571541,0.239999994635582,0.4901959896087647,0.03999999910593033,0.8627449870109558,0.2800000011920929,0.9411759972572327,0.4799999892711639,0.9803919792175293,0.9599999785423279,0.4901959896087647,0.9599999785423279,0.03921569883823395,0.9200000166893005,0.05882349982857704,0.4799999892711639],0],["images/basicskeleton_skeleton_feetl-sheet0.png",794,0,0,73,29,1,0,0,[],[0.04109590128064156,0.1034480035305023,0.4931510090827942,0.2758620083332062,0.7808219790458679,0.5517240166664124,0.7260270118713379,0.4827589988708496,0.9863010048866272,0.965516984462738,0.4931510090827942,0.965516984462738,0.02739729918539524,0.9310349822044373],0]]]],[],false,false,448610090590873,[],null],["t44",6,false,[],0,0,null,[["Default",0,false,1,0,false,197624176722145,[["images/headlessbomber_skeleton_spine-sheet0.png",2205,0,0,65,180,1,0,0,[],[0.2000000029802322,0.07222220301628113,0.4923079907894135,0.01111110020428896,0.8615379929542542,0.05000000074505806,0.8923079967498779,0.5,0.9846150279045105,0.9944440126419067,0.4923079907894135,1,0.06153849884867668,0.9777780175209045,0.06153849884867668,0.5],0]]]],[],false,false,345863685206654,[],null],["t45",6,false,[],0,0,null,[["Default",0,false,1,0,false,469142970061941,[["images/basicskeleton_skeleton_hips-sheet0.png",3885,0,0,198,128,1,0,0,[],[0.03535350039601326,0.0546875,0.5,0.3203130066394806,0.9343429803848267,0.1015629991889,0.9242420196533203,0.5,0.8030300140380859,0.6953129768371582,0.5,0.921875,0.1818179935216904,0.71875,0.07575760036706924,0.5],0]]]],[],false,false,855926970097124,[],null],["t46",6,false,[],0,0,null,[["Default",0,false,1,0,false,835271699326613,[["images/headlessbomber_skeleton_bomb-sheet0.png",12406,0,0,232,344,1,0,0,[],[0.2456900030374527,0.1656980067491531,0.5,0.1860470026731491,0.590516984462738,0.2761630117893219,0.9568970203399658,0.5,0.8577589988708496,0.9040700197219849,0.5,1,0.1336210072040558,0.909883975982666,0.05603450164198875,0.5],0]]]],[],false,false,473997699457251,[],null],["t47",6,false,[],0,0,null,[["Default",0,false,1,0,false,342698657626390,[["images/headlessbomber_skeleton_torso-sheet0.png",5983,0,0,240,134,1,0,0,[],[0.04166670143604279,0.07462690025568008,0.5,0.268656998872757,0.9708330035209656,0.05223879963159561,0.9833329916000366,0.5,0.9041669964790344,0.828357994556427,0.5,0.9029849767684937,0.1541669964790344,0.7238810062408447,0.1375000029802322,0.5],0]]]],[],false,false,741764509085408,[],null],["t48",6,false,[],0,0,null,[["Default",0,false,1,0,false,800649307815581,[["images/headlessbomber_skeleton_protector_000-sheet0.png",2737,0,0,67,107,1,0,0,[],[0.05970149859786034,0.03738319873809815,0.4925369918346405,0,0.9701489806175232,0.01869159936904907,0.8059700131416321,0.4953269958496094,0.671642005443573,0.794393002986908,0.4925369918346405,1,0.1044780015945435,0.9345790147781372,0.1194029971957207,0.4953269958496094],0]]]],[],false,false,636085456999786,[],null],["t49",6,false,[],0,0,null,[["Default",0,false,1,0,false,319348070041503,[["images/basicskeleton_skeleton_arml-sheet0.png",1703,0,0,50,123,1,0,0,[],[0.1000000014901161,0.04065040126442909,0.5,0.0243902001529932,0.7799999713897705,0.08943089842796326,0.7799999713897705,0.4959349930286408,0.9200000166893005,0.9674800038337708,0.5,1,0.119999997317791,0.9512190222740173],0]]]],[],false,false,326714880840582,[],null],["t50",6,false,[],0,0,null,[["Default",0,false,1,0,false,813540559998774,[["images/basicskeleton_skeleton_elbowl-sheet0.png",1392,0,0,57,114,1,0,0,[],[0.1403509974479675,0.07017540186643601,0.4912280142307282,0.008771929889917374,0.7719299793243408,0.114035002887249,0.9824560284614563,0.5,0.8947370052337647,0.9473680257797241,0.4912280142307282,0.9561399817466736,0.228070005774498,0.8859649896621704,0.2456140071153641,0.5],0]]]],[],false,false,911990752703033,[],null],["t51",6,false,[],0,0,null,[["Default",0,false,1,0,false,258132351036453,[["images/heavywarrior_skeleton_handl-sheet0.png",1606,0,0,73,101,1,0,0,[],[0.1506849974393845,0.1089110001921654,0.4931510090827942,0.009900989942252636,0.9863010048866272,0.009900989942252636,0.9726030230522156,0.4950500130653381,0.8630139827728272,0.9009900093078613,0.4931510090827942,1,0.1917809993028641,0.8613860011100769,0.1095890030264854,0.4950500130653381],0]]]],[],false,false,588789470504470,[],null],["t52",6,false,[],0,0,null,[["Default",0,false,1,0,false,739330181656417,[["images/basicskeleton_skeleton_sword-sheet0.png",8193,0,0,112,351,1,0,0,[],[0.07142859697341919,0.02279200032353401,0.5,0.03418799862265587,0.6874999403953552,0.09971509873867035,0.8482139706611633,0.4985759854316711,0.5178570151329041,0.8461539745330811,0.5,0.9629629850387573,0.0982142984867096,0.9686610102653503,0.1964289993047714,0.4985759854316711],0]]]],[],false,false,449278598860893,[],null],["t53",6,false,[],0,0,null,[["Default",0,false,1,0,false,701449827856807,[["images/basicskeleton_skeleton_hand_grab-sheet0.png",1275,0,0,55,51,1,0,0,[],[0.03636360168457031,0.03921569883823395,0.9636359810829163,0.03921569883823395,1,0.4901959896087647,0.8727269768714905,0.8627449870109558,0.4909090101718903,0.9607840180397034,0.1818179935216904,0.8039219975471497,0.09090910106897354,0.4901959896087647],0]]]],[],false,false,942440289643224,[],null],["t54",6,false,[],0,0,null,[["Default",0,false,1,0,false,380359929397454,[["images/basicskeleton_skeleton_legl-sheet0.png",1495,0,0,52,101,1,0,0,[],[0.1346150040626526,0.06930690258741379,0.5,0.01980200037360191,0.8076919913291931,0.09900990128517151,0.8846150040626526,0.4950500130653381,0.8846150040626526,0.9405940175056458,0.5,1,0.1346150040626526,0.9306929707527161,0.2115380018949509,0.4950500130653381],0]]]],[],false,false,719702486806965,[],null],["t55",6,false,[],0,0,null,[["Default",0,false,1,0,false,896457632642615,[["images/basicskeleton_skeleton_lower_legl-sheet0.png",1515,0,0,56,112,1,0,0,[],[0.1785710006952286,0.08928570151329041,0.5,0,0.8035709857940674,0.0982142984867096,0.9107139706611633,0.5,0.6428570151329041,0.8214290142059326,0.5,0.9553570151329041,0.08928570151329041,0.9553570151329041,0.08928570151329041,0.5],0]]]],[],false,false,977731319855083,[],null],["t56",6,false,[],0,0,null,[["Default",0,false,1,0,false,935077946389771,[["images/basicskeleton_skeleton_feetl-sheet0.png",794,0,0,73,29,1,0,0,[],[0.04109590128064156,0.1034480035305023,0.4931510090827942,0.2758620083332062,0.7808219790458679,0.5517240166664124,0.7260270118713379,0.4827589988708496,0.9863010048866272,0.965516984462738,0.4931510090827942,0.965516984462738,0.02739729918539524,0.9310349822044373],0]]]],[],false,false,713628700956090,[],null],["t57",6,false,[],0,0,null,[["Default",0,false,1,0,false,782348872818583,[["images/basicskeleton_skeleton_legr-sheet0.png",1326,0,0,50,101,1,0,0,[],[0.2199999988079071,0.1089110001921654,0.5,0.01980200037360191,0.8799999952316284,0.05940590053796768,0.800000011920929,0.4950500130653381,0.8600000143051148,0.9306929707527161,0.5,1,0.119999997317791,0.9405940175056458,0.1400000005960465,0.4950500130653381],0]]]],[],false,false,333407877890458,[],null],["t58",6,false,[],0,0,null,[["Default",0,false,1,0,false,883057981761449,[["images/basicskeleton_skeleton_lower_legr-sheet0.png",1447,0,0,56,109,1,0,0,[],[0.2321429997682571,0.119266003370285,0.5,0.01834860071539879,0.875,0.06422019749879837,0.8928570151329041,0.4954130053520203,0.6964290142059326,0.8440369963645935,0.5,1,0.1428570002317429,0.9266059994697571,0.01785710081458092,0.4954130053520203],0]]]],[],false,false,761855608129368,[],null],["t59",6,false,[],0,0,null,[["Default",0,false,1,0,false,768022168649476,[["images/basicskeleton_skeleton_feetr-sheet0.png",790,0,0,51,25,1,0,0,[],[0.1176469996571541,0.239999994635582,0.4901959896087647,0.03999999910593033,0.8627449870109558,0.2800000011920929,0.9411759972572327,0.4799999892711639,0.9803919792175293,0.9599999785423279,0.4901959896087647,0.9599999785423279,0.03921569883823395,0.9200000166893005,0.05882349982857704,0.4799999892711639],0]]]],[],false,false,249238084168642,[],null],["t60",6,false,[],0,0,null,[["Default",0,false,1,0,false,885439703696784,[["images/heavywarrior_skeleton_torso-sheet0.png",10079,0,0,204,205,1,0,0,[],[0.112745001912117,0.1121950000524521,0.5,0.1268289983272553,0.985293984413147,0.0146340997889638,0.8872550129890442,0.4975610077381134,0.6715689897537231,0.6731709837913513,0.5,1,0.2696079909801483,0.731706976890564,0.1470589935779572,0.4975610077381134],0]]]],[],false,false,413955341831017,[],null],["t61",6,false,[],0,0,null,[["Default",0,false,1,0,false,713272504920854,[["images/basicskeleton_skeleton_hips-sheet0.png",3885,0,0,198,128,1,0,0,[],[0.03535350039601326,0.0546875,0.5,0.3203130066394806,0.9343429803848267,0.1015629991889,0.9242420196533203,0.5,0.8030300140380859,0.6953129768371582,0.5,0.921875,0.1818179935216904,0.71875,0.07575760036706924,0.5],0]]]],[],false,false,611435543008809,[],null],["t62",6,false,[],0,0,null,[["Default",0,false,1,0,false,367871623125308,[["images/heavywarrior_skeleton_head-sheet0.png",13075,0,0,212,315,1,0,0,[],[0.2405660003423691,0.1619050055742264,0.5,0.0253967996686697,0.6933959722518921,0.2063490003347397,0.9433959722518921,0.4984129965305328,0.8490570187568665,0.8984130024909973,0.5,0.9936509728431702,0.1603769958019257,0.8920630216598511,0.01886790059506893,0.4984129965305328],0]]]],[],false,false,732125481121837,[],null],["t63",6,false,[],0,0,null,[["Default",0,false,1,0,false,450454618715327,[["images/heavywarrior_skeleton_armr-sheet0.png",2057,0,0,50,115,1,0,0,[],[0.2599999904632568,0.1130430027842522,0.5,0.03478259965777397,0.9200000166893005,0.03478259965777397,0.8799999952316284,0.4956519901752472,0.8799999952316284,0.9478260278701782,0.5,1,0.07999999821186066,0.9652169942855835,0.2599999904632568,0.4956519901752472],0]]]],[],false,false,275885029566114,[],null],["t64",6,false,[],0,0,null,[["Default",0,false,1,0,false,372451164658380,[["images/basicskeleton_skeleton_elbowr-sheet0.png",1364,0,0,57,113,1,0,0,[],[0.2456140071153641,0.1238939985632896,0.4912280142307282,0.01769910007715225,0.8947370052337647,0.05309730023145676,0.7719299793243408,0.4955750107765198,0.7719299793243408,0.8849560022354126,0.4912280142307282,0.964601993560791,0.105263002216816,0.9469029903411865,0.035087700933218,0.4955750107765198],0]]]],[],false,false,490123996994613,[],null],["t65",6,false,[],0,0,null,[["Default",0,false,1,0,false,437225107180142,[["images/heavywarrior_skeleton_handr-sheet0.png",2283,0,0,76,71,1,0,0,[],[0.1447370052337647,0.1549299955368042,0.5,0.02816900052130222,0.8815789818763733,0.4929580092430115,0.5789470076560974,0.5492960214614868,0.5,0.8873239755630493,0.09210529923439026,0.9014080166816711,0.02631580084562302,0.4929580092430115],0]]]],[],false,false,968214106330335,[],null],["t66",6,false,[],0,0,null,[["Default",0,false,1,0,false,345697783373724,[["images/heavywarrior_skeleton_leg_armorl-sheet0.png",2649,0,0,72,89,1,0,0,[],[0.01388890016824007,0.01123599987477064,0.5,0.1011240035295487,0.7361109852790833,0.2134830057621002,0.875,0.4943819940090179,0.9444440007209778,0.9550560116767883,0.5,0.7752810120582581,0.4583329856395721,0.6292139887809753,0.3333329856395721,0.4943819940090179],0]]]],[],false,false,737822261112978,[],null],["t67",6,false,[],0,0,null,[["Default",0,false,1,0,false,436595702945793,[["images/heavywarrior_skeleton_piece_of_cloth-sheet0.png",6250,0,0,112,120,1,0,0,[],[0.1160710006952286,0.1083329990506172,0.5,0.008333330042660236,0.9107139706611633,0.08333329856395721,0.9732139706611633,0.5,0.9017859697341919,0.9083330035209656,0.5,0.925000011920929,0.1875,0.824999988079071,0.05357139930129051,0.5],0]]]],[],false,false,665835700330584,[],null],["t68",6,false,[],0,0,null,[["Default",0,false,1,0,false,485954204537348,[["images/heavywarrior_skeleton_leg_armorr-sheet0.png",2273,0,0,117,86,1,0,0,[],[0.4957259893417358,0.06976740062236786,1,0,0.8119660019874573,0.5,0.4957259893417358,0.8953490257263184,0.1111110001802445,0.8488370180130005,0.1880339980125427,0.5],0]]]],[],false,false,640361469057721,[],null],["t69",6,false,[],0,0,null,[["Default",0,false,1,0,false,930590828244095,[["images/heavywarrior_skeleton_belt-sheet0.png",5352,0,0,192,76,1,0,0,[],[0.1041669994592667,0.263157993555069,0.5,0.105263002216816,0.8854169845581055,0.2894740104675293,1,0.5,0.9479169845581055,0.8684210181236267,0.5,1,0.03125,0.9210529923439026,0.015625,0.5],0]]]],[],false,false,481697231815451,[],null],["t70",6,false,[],0,0,null,[["Default",0,false,1,0,false,262352691801920,[["images/heavywarrior_skeleton_bootsr-sheet0.png",1798,0,0,67,77,1,0,0,[],[0.08955220133066177,0.07792209833860397,0.4925369918346405,0.02597399987280369,0.8955219984054565,0.09090910106897354,0.9104480147361755,0.4935060143470764,1,1,0.4925369918346405,1,0.1044780015945435,0.9090909957885742,0.04477610066533089,0.4935060143470764],0]]]],[],false,false,630095231407835,[],null],["t71",6,false,[],0,0,null,[["Default",0,false,1,0,false,124290119135345,[["images/heavywarrior_skeleton_bootsr-sheet0.png",1798,0,0,67,77,1,0,0,[],[0.08955220133066177,0.07792209833860397,0.4925369918346405,0.02597399987280369,0.8955219984054565,0.09090910106897354,0.9104480147361755,0.4935060143470764,1,1,0.4925369918346405,1,0.1044780015945435,0.9090909957885742,0.04477610066533089,0.4935060143470764],0]]]],[],false,false,512186913304576,[],null],["t72",6,false,[],0,0,null,[["Default",0,false,1,0,false,631325181337339,[["images/basicskeleton_skeleton_feetl-sheet0.png",794,0,0,73,29,1,0,0,[],[0.04109590128064156,0.1034480035305023,0.4931510090827942,0.2758620083332062,0.7808219790458679,0.5517240166664124,0.7260270118713379,0.4827589988708496,0.9863010048866272,0.965516984462738,0.4931510090827942,0.965516984462738,0.02739729918539524,0.9310349822044373],0]]]],[],false,false,797787392851460,[],null],["t73",6,false,[],0,0,null,[["Default",0,false,1,0,false,478925974851102,[["images/basicskeleton_skeleton_handr-sheet0.png",1672,0,0,82,74,1,0,0,[],[0.1341460049152374,0.1486490070819855,0.5,0.04054050147533417,0.7439020276069641,0.2837840020656586,1,0.5,0.5853660106658936,0.5405409932136536,0.5,0.8108109831809998,0.0853658989071846,0.9054049849510193,0,0.5],0]]]],[],false,false,545604141673572,[],null],["t74",6,false,[],0,0,null,[["Default",0,false,1,0,false,483513926771994,[["images/kamikazebomber_skeleton_badge_tail_1-sheet0.png",1749,0,0,47,186,1,0,0,[],[0.3617019951343536,0.09139789640903473,0.4893620014190674,0.005376339890062809,0.638297975063324,0.09139789640903473,0.4468089938163757,0.5,0.7872340083122253,0.9462370276451111,0.4893620014190674,0.9946240186691284,0.531915009021759,0.8655909895896912,0.1276600062847138,0.5],0]]]],[],false,false,506124228502506,[],null],["t75",6,false,[],0,0,null,[["Default",0,false,1,0,false,669665686495971,[["images/headlessbomber_skeleton_ex_1-sheet0.png",945782,1,1,807,612,1,0,0,[],[0.4993799924850464,0.8382350206375122,0.3853780031204224,0.8104580044746399,0.4993799924850464,0.9918299913406372],0],["images/headlessbomber_skeleton_ex_1-sheet0.png",945782,810,1,807,612,1,0,0,[],[0.47707599401474,0.6290850043296814,0.4993799924850464,0.4983659982681274,0.5303589701652527,0.619280993938446,0.5353159904479981,0.5,0.5204460024833679,0.3676469922065735,0.4993799924850464,0.9901959896087647,0.1809169948101044,0.7614380121231079,0.4993799924850464,0.5],0],["images/headlessbomber_skeleton_ex_1-sheet0.png",945782,1,615,807,612,1,0,0,[],[0.4200739860534668,0.5539219975471497,0.4993799924850464,0.2287580072879791,0.5873609781265259,0.5441179871559143,0.8190829753875732,0.5,0.7781909704208374,0.7075160145759583,0.4993799924850464,0.9526140093803406,0.1784390062093735,0.764706015586853,0.2218089997768402,0.5],0],["images/headlessbomber_skeleton_ex_1-sheet0.png",945782,810,615,807,612,1,0,0,[],[0.5130109786987305,0.6764709949493408,0.4993799924850464,0.2303919941186905,0.617099940776825,0.5049020051956177,0.8178439736366272,0.5,0.9355639815330505,0.9150329828262329,0.4993799924850464,0.9232029914855957,0.159850999712944,0.7892159819602966,0.4907059967517853,0.5],0],["images/headlessbomber_skeleton_ex_1-sheet0.png",945782,1,1229,807,612,1,0,0,[],[0.2949190139770508,0.3888889849185944,0.4993799924850464,0.1013069972395897,0.7534080147743225,0.3251630067825317,0.8513010144233704,0.5,0.9355639815330505,0.9150329828262329,0.4993799924850464,0.3921569883823395,0.06071870028972626,0.9199349880218506,0.323419988155365,0.5],0],["images/headlessbomber_skeleton_ex_1-sheet0.png",945782,810,1229,807,612,1,0,0,[],[0.322180986404419,0.4248369932174683,0.4993799924850464,0.3431369960308075,0.7521690130233765,0.3267970085144043,0.8364310264587402,0.5,0.9739779829978943,0.965686023235321,0.4993799924850464,0.3496730029582977,0.09913259744644165,0.869280993938446],0],["images/headlessbomber_skeleton_ex_1-sheet1.png",96632,0,0,807,612,1,0,0,[],[0.2180919945240021,0.2875820100307465,0.7534080147743225,0.3251630067825317,0.8339530229568481,0.5,0.9690210223197937,0.9591500163078308,0.09913259744644165,0.869280993938446,0.7273849844932556,0.5],0],["images/headlessbomber_skeleton_ex_1-sheet2.png",1540,0,0,807,612,1,0,0,[],[],0]]]],[],false,false,455472621250995,[],null],["t76",6,false,[],0,0,null,[["Default",0,false,1,0,false,169848220591028,[["images/kamikazebomber_skeleton_badge_tail_2-sheet0.png",1439,0,0,41,154,1,0,0,[],[0.4878050088882446,0.1298699975013733,0.4878050088882446,0.1233770027756691,0.9268289804458618,0.01948050037026405,0.4878050088882446,0.5,0.5609760284423828,0.8831170201301575,0.4878050088882446,0.9610390067100525,0.2439019978046417,0.935064971446991,0.1951220035552979,0.5],0]]]],[],false,false,381139131727261,[],null],["t77",6,false,[],0,0,null,[["Default",0,false,1,0,false,184494912393207,[["images/basicskeleton_skeleton_arml-sheet0.png",1703,0,0,50,123,1,0,0,[],[0.1000000014901161,0.04065040126442909,0.5,0.0243902001529932,0.7799999713897705,0.08943089842796326,0.7799999713897705,0.4959349930286408,0.9200000166893005,0.9674800038337708,0.5,1,0.119999997317791,0.9512190222740173],0]]]],[],false,false,722625807607309,[],null],["t78",6,false,[],0,0,null,[["Default",0,false,1,0,false,730290537211409,[["images/basicskeleton_skeleton_elbowl-sheet0.png",1392,0,0,57,114,1,0,0,[],[0.1403509974479675,0.07017540186643601,0.4912280142307282,0.008771929889917374,0.7719299793243408,0.114035002887249,0.9824560284614563,0.5,0.8947370052337647,0.9473680257797241,0.4912280142307282,0.9561399817466736,0.228070005774498,0.8859649896621704,0.2456140071153641,0.5],0]]]],[],false,false,937952982583685,[],null],["t79",6,false,[],0,0,null,[["Default",0,false,1,0,false,441104102313071,[["images/kamikazebomber_skeleton_protectorl-sheet0.png",2838,0,0,71,107,1,0,0,[],[0.08450700342655182,0.05607479810714722,0.4929580092430115,0.00934579037129879,0.9718310236930847,0.01869159936904907,0.8309860229492188,0.4953269958496094,0.7042250037193298,0.803737998008728,0.4929580092430115,1,0.140845000743866,0.9065420031547546,0.07042250037193298,0.4953269958496094],0]]]],[],false,false,192060822959066,[],null],["t80",6,false,[],0,0,null,[["Default",0,false,1,0,false,842858355497880,[["images/basicskeleton_skeleton_handr-sheet0.png",1672,0,0,82,74,1,0,0,[],[0.1341460049152374,0.1486490070819855,0.5,0.04054050147533417,0.7439020276069641,0.2837840020656586,1,0.5,0.5853660106658936,0.5405409932136536,0.5,0.8108109831809998,0.0853658989071846,0.9054049849510193,0,0.5],0],["images/basicskeleton_skeleton_hand_grab-sheet0.png",1275,0,0,55,51,1,0,0,[],[0.03636360168457031,0.03921569883823395,0.9636359810829163,0.03921569883823395,1,0.4901959896087647,0.8727269768714905,0.8627449870109558,0.4909090101718903,0.9607840180397034,0.1818179935216904,0.8039219975471497,0.09090910106897354,0.4901959896087647],0]]]],[],false,false,721281961302095,[],null],["t81",6,false,[],0,0,null,[["Default",0,false,1,0,false,634618289016570,[["images/headlessbomber_skeleton_bomb-sheet0.png",12406,0,0,232,344,1,0,0,[],[0.2456900030374527,0.1656980067491531,0.5,0.1860470026731491,0.590516984462738,0.2761630117893219,0.9568970203399658,0.5,0.8577589988708496,0.9040700197219849,0.5,1,0.1336210072040558,0.909883975982666,0.05603450164198875,0.5],0]]]],[],false,false,319388882560903,[],null],["t82",6,false,[],0,0,null,[["Default",0,false,1,0,false,703753344204905,[["images/basicskeleton_skeleton_legl-sheet0.png",1495,0,0,52,101,1,0,0,[],[0.1346150040626526,0.06930690258741379,0.5,0.01980200037360191,0.8076919913291931,0.09900990128517151,0.8846150040626526,0.4950500130653381,0.8846150040626526,0.9405940175056458,0.5,1,0.1346150040626526,0.9306929707527161,0.2115380018949509,0.4950500130653381],0]]]],[],false,false,334794482974182,[],null],["t83",6,false,[],0,0,null,[["Default",0,false,1,0,false,261950227743423,[["images/basicskeleton_skeleton_lower_legl-sheet0.png",1515,0,0,56,112,1,0,0,[],[0.1785710006952286,0.08928570151329041,0.5,0,0.8035709857940674,0.0982142984867096,0.9107139706611633,0.5,0.6428570151329041,0.8214290142059326,0.5,0.9553570151329041,0.08928570151329041,0.9553570151329041,0.08928570151329041,0.5],0]]]],[],false,false,819109965884438,[],null],["t84",6,false,[],0,0,null,[["Default",0,false,1,0,false,128309676561922,[["images/basicskeleton_skeleton_legr-sheet0.png",1326,0,0,50,101,1,0,0,[],[0.2199999988079071,0.1089110001921654,0.5,0.01980200037360191,0.8799999952316284,0.05940590053796768,0.800000011920929,0.4950500130653381,0.8600000143051148,0.9306929707527161,0.5,1,0.119999997317791,0.9405940175056458,0.1400000005960465,0.4950500130653381],0]]]],[],false,false,533693640922941,[],null],["t85",6,false,[],0,0,null,[["Default",0,false,1,0,false,885479868553839,[["images/basicskeleton_skeleton_lower_legr-sheet0.png",1447,0,0,56,109,1,0,0,[],[0.2321429997682571,0.119266003370285,0.5,0.01834860071539879,0.875,0.06422019749879837,0.8928570151329041,0.4954130053520203,0.6964290142059326,0.8440369963645935,0.5,1,0.1428570002317429,0.9266059994697571,0.01785710081458092,0.4954130053520203],0]]]],[],false,false,562805777990913,[],null],["t86",6,false,[],0,0,null,[["Default",0,false,1,0,false,192899674032217,[["images/basicskeleton_skeleton_feetr-sheet0.png",790,0,0,51,25,1,0,0,[],[0.1176469996571541,0.239999994635582,0.4901959896087647,0.03999999910593033,0.8627449870109558,0.2800000011920929,0.9411759972572327,0.4799999892711639,0.9803919792175293,0.9599999785423279,0.4901959896087647,0.9599999785423279,0.03921569883823395,0.9200000166893005,0.05882349982857704,0.4799999892711639],0],["images/basicskeleton_skeleton_feetl-sheet0.png",794,0,0,73,29,1,0,0,[],[0.04109590128064156,0.1034480035305023,0.4931510090827942,0.2758620083332062,0.7808219790458679,0.5517240166664124,0.7260270118713379,0.4827589988708496,0.9863010048866272,0.965516984462738,0.4931510090827942,0.965516984462738,0.02739729918539524,0.9310349822044373],0]]]],[],false,false,907788009805578,[],null],["t87",6,false,[],0,0,null,[["Default",0,false,1,0,false,145474916892581,[["images/basicskeleton_skeleton_torso-sheet0.png",5788,0,0,164,202,1,0,0,[],[0.1402440071105957,0.1138610020279884,0.5,0.04950499907135963,0.8353660106658936,0.1336629986763001,0.9695119857788086,0.5,0.6890239715576172,0.7475249767303467,0.5,1,0.3597559928894043,0.707921028137207,0.06097560003399849,0.5],0]]]],[],false,false,456893765173985,[],null],["t88",6,false,[],0,0,null,[["Default",0,false,1,0,false,742874983002482,[["images/basicskeleton_skeleton_hips-sheet0.png",3885,0,0,198,128,1,0,0,[],[0.03535350039601326,0.0546875,0.5,0.3203130066394806,0.9343429803848267,0.1015629991889,0.9242420196533203,0.5,0.8030300140380859,0.6953129768371582,0.5,0.921875,0.1818179935216904,0.71875,0.07575760036706924,0.5],0]]]],[],false,false,529410492984874,[],null],["t89",6,false,[],0,0,null,[["Default",0,false,1,0,false,929199563103991,[["images/kamikazebomber_skeleton_head-sheet0.png",5017,0,0,230,227,1,0,0,[],[0.1304350048303604,0.1321589946746826,0.5,0,0.8739129900932312,0.1277530044317246,1,0.4977970123291016,0.8565220236778259,0.8546259999275208,0.5,0.9911890029907227,0.2782610058784485,0.7180619835853577,0.07826089859008789,0.4977970123291016],0]]]],[],false,false,962446957649147,[],null],["t90",6,false,[],0,0,null,[["Default",0,false,1,0,false,822318060373334,[["images/basicskeleton_skeleton_armr-sheet0.png",1717,0,0,52,123,1,0,0,[],[0.25,0.1056910008192062,0.5,0.0243902001529932,0.9230769872665405,0.03252030164003372,0.8653849959373474,0.4959349930286408,0.8653849959373474,0.9430890083312988,0.5,0.9918699860572815,0.09615380316972733,0.9593499898910523,0.2307689934968948,0.4959349930286408],0]]]],[],false,false,735431258755580,[],null],["t91",6,false,[],0,0,null,[["Default",0,false,1,0,false,442558250297786,[["images/basicskeleton_skeleton_elbowr-sheet0.png",1364,0,0,57,113,1,0,0,[],[0.2456140071153641,0.1238939985632896,0.4912280142307282,0.01769910007715225,0.8947370052337647,0.05309730023145676,0.7719299793243408,0.4955750107765198,0.7719299793243408,0.8849560022354126,0.4912280142307282,0.964601993560791,0.105263002216816,0.9469029903411865,0.035087700933218,0.4955750107765198],0]]]],[],false,false,780318882394421,[],null],["t92",6,false,[],0,0,null,[["Default",0,false,1,0,false,347910089066641,[["images/headlessbomber_skeleton_protector_000-sheet0.png",2737,0,0,67,107,1,0,0,[],[0.05970149859786034,0.03738319873809815,0.4925369918346405,0,0.9701489806175232,0.01869159936904907,0.8059700131416321,0.4953269958496094,0.671642005443573,0.794393002986908,0.4925369918346405,1,0.1044780015945435,0.9345790147781372,0.1194029971957207,0.4953269958496094],0]]]],[],false,false,842040384494632,[],null],["t93",6,false,[],0,0,null,[["Default",0,false,1,0,false,137724776906668,[["images/basicskeleton_skeleton_arml-sheet0.png",1703,0,0,50,123,1,0,0,[],[0.1000000014901161,0.04065040126442909,0.5,0.0243902001529932,0.7799999713897705,0.08943089842796326,0.7799999713897705,0.4959349930286408,0.9200000166893005,0.9674800038337708,0.5,1,0.119999997317791,0.9512190222740173],0]]]],[],false,false,444949591035468,[],null],["t94",6,false,[],0,0,null,[["Default",0,false,1,0,false,441472763292899,[["images/basicskeleton_skeleton_elbowl-sheet0.png",1392,0,0,57,114,1,0,0,[],[0.1403509974479675,0.07017540186643601,0.4912280142307282,0.008771929889917374,0.7719299793243408,0.114035002887249,0.9824560284614563,0.5,0.8947370052337647,0.9473680257797241,0.4912280142307282,0.9561399817466736,0.228070005774498,0.8859649896621704,0.2456140071153641,0.5],0]]]],[],false,false,235937174568785,[],null],["t95",6,false,[],0,0,null,[["Default",0,false,1,0,false,883699131308435,[["images/leightwarrior_skeleton_handl-sheet0.png",1597,0,0,73,101,1,0,0,[],[0.01369860023260117,0.009900989942252636,0.4931510090827942,0.009900989942252636,0.8630139827728272,0.09900990128517151,0.9041100144386292,0.4950500130653381,0.8219180107116699,0.8712869882583618,0.4931510090827942,1,0.1369860023260117,0.9009900093078613,0.02739729918539524,0.4950500130653381],0]]]],[],false,false,520871409336594,[],null],["t96",6,false,[],0,0,null,[["Default",0,false,1,0,false,872979982552357,[["images/basicskeleton_skeleton_sword-sheet0.png",8193,0,0,112,351,1,0,0,[],[0.07142859697341919,0.02279200032353401,0.5,0.03418799862265587,0.6874999403953552,0.09971509873867035,0.8482139706611633,0.4985759854316711,0.5178570151329041,0.8461539745330811,0.5,0.9629629850387573,0.0982142984867096,0.9686610102653503,0.1964289993047714,0.4985759854316711],0]]]],[],false,false,210277651076293,[],null],["t97",6,false,[],0,0,null,[["Default",0,false,1,0,false,893189507778476,[["images/basicskeleton_skeleton_hand_grab-sheet0.png",1275,0,0,55,51,1,0,0,[],[0.03636360168457031,0.03921569883823395,0.9636359810829163,0.03921569883823395,1,0.4901959896087647,0.8727269768714905,0.8627449870109558,0.4909090101718903,0.9607840180397034,0.1818179935216904,0.8039219975471497,0.09090910106897354,0.4901959896087647],0]]]],[],false,false,741833147198213,[],null],["t98",6,false,[],0,0,null,[["Default",0,false,1,0,false,477906707295445,[["images/basicskeleton_skeleton_legl-sheet0.png",1495,0,0,52,101,1,0,0,[],[0.1346150040626526,0.06930690258741379,0.5,0.01980200037360191,0.8076919913291931,0.09900990128517151,0.8846150040626526,0.4950500130653381,0.8846150040626526,0.9405940175056458,0.5,1,0.1346150040626526,0.9306929707527161,0.2115380018949509,0.4950500130653381],0]]]],[],false,false,566619937265264,[],null],["t99",6,false,[],0,0,null,[["Default",0,false,1,0,false,521358720406569,[["images/basicskeleton_skeleton_lower_legl-sheet0.png",1515,0,0,56,112,1,0,0,[],[0.1785710006952286,0.08928570151329041,0.5,0,0.8035709857940674,0.0982142984867096,0.9107139706611633,0.5,0.6428570151329041,0.8214290142059326,0.5,0.9553570151329041,0.08928570151329041,0.9553570151329041,0.08928570151329041,0.5],0]]]],[],false,false,612647783395646,[],null],["t100",6,false,[],0,0,null,[["Default",0,false,1,0,false,469519943784647,[["images/basicskeleton_skeleton_feetl-sheet0.png",794,0,0,73,29,1,0,0,[],[0.04109590128064156,0.1034480035305023,0.4931510090827942,0.2758620083332062,0.7808219790458679,0.5517240166664124,0.7260270118713379,0.4827589988708496,0.9863010048866272,0.965516984462738,0.4931510090827942,0.965516984462738,0.02739729918539524,0.9310349822044373],0]]]],[],false,false,589995370400075,[],null],["t101",6,false,[],0,0,null,[["Default",0,false,1,0,false,831374141853349,[["images/basicskeleton_skeleton_legr-sheet0.png",1326,0,0,50,101,1,0,0,[],[0.2199999988079071,0.1089110001921654,0.5,0.01980200037360191,0.8799999952316284,0.05940590053796768,0.800000011920929,0.4950500130653381,0.8600000143051148,0.9306929707527161,0.5,1,0.119999997317791,0.9405940175056458,0.1400000005960465,0.4950500130653381],0]]]],[],false,false,131709935834698,[],null],["t102",6,false,[],0,0,null,[["Default",0,false,1,0,false,750298591078332,[["images/basicskeleton_skeleton_lower_legr-sheet0.png",1447,0,0,56,109,1,0,0,[],[0.2321429997682571,0.119266003370285,0.5,0.01834860071539879,0.875,0.06422019749879837,0.8928570151329041,0.4954130053520203,0.6964290142059326,0.8440369963645935,0.5,1,0.1428570002317429,0.9266059994697571,0.01785710081458092,0.4954130053520203],0]]]],[],false,false,253903644596625,[],null],["t103",6,false,[],0,0,null,[["Default",0,false,1,0,false,552319745448255,[["images/basicskeleton_skeleton_feetr-sheet0.png",790,0,0,51,25,1,0,0,[],[0.1176469996571541,0.239999994635582,0.4901959896087647,0.03999999910593033,0.8627449870109558,0.2800000011920929,0.9411759972572327,0.4799999892711639,0.9803919792175293,0.9599999785423279,0.4901959896087647,0.9599999785423279,0.03921569883823395,0.9200000166893005,0.05882349982857704,0.4799999892711639],0]]]],[],false,false,351457464155972,[],null],["t104",6,false,[],0,0,null,[["Default",0,false,1,0,false,168451686364476,[["images/leightwarrior_skeleton_torso-sheet0.png",6752,0,0,204,202,1,0,0,[],[0.1176469996571541,0.1188120022416115,0.5,0.128712996840477,0.985293984413147,0.01485150028020144,0.8578429818153381,0.5,0.6911759972572327,0.6881189942359924,0.5,1,0.2598040103912354,0.7376239895820618,0.1470589935779572,0.5],0]]]],[],false,false,280215996075544,[],null],["t105",6,false,[],0,0,null,[["Default",0,false,1,0,false,766988600656992,[["images/basicskeleton_skeleton_hips-sheet0.png",3885,0,0,198,128,1,0,0,[],[0.03535350039601326,0.0546875,0.5,0.3203130066394806,0.9343429803848267,0.1015629991889,0.9242420196533203,0.5,0.8030300140380859,0.6953129768371582,0.5,0.921875,0.1818179935216904,0.71875,0.07575760036706924,0.5],0]]]],[],false,false,263668838889562,[],null],["t106",6,false,[],0,0,null,[["Default",0,false,1,0,false,347159513630538,[["images/basicskeleton_skeleton_head-sheet0.png",3339,0,0,217,229,1,0,0,[],[0.1059909984469414,0.1004370003938675,0.4976960122585297,0.004366809967905283,0.8663589954376221,0.1266379952430725,1,0.4978170096874237,0.8525350093841553,0.8602619767189026,0.4976960122585297,0.9956330060958862,0.2903229892253876,0.7248910069465637,0.01843320019543171,0.4978170096874237],0]]]],[],false,false,637991192486141,[],null],["t107",6,false,[],0,0,null,[["Default",0,false,1,0,false,219560368945786,[["images/basicskeleton_skeleton_armr-sheet0.png",1717,0,0,52,123,1,0,0,[],[0.25,0.1056910008192062,0.5,0.0243902001529932,0.9230769872665405,0.03252030164003372,0.8653849959373474,0.4959349930286408,0.8653849959373474,0.9430890083312988,0.5,0.9918699860572815,0.09615380316972733,0.9593499898910523,0.2307689934968948,0.4959349930286408],0]]]],[],false,false,169350255612609,[],null],["t108",6,false,[],0,0,null,[["Default",0,false,1,0,false,731838868587105,[["images/basicskeleton_skeleton_elbowr-sheet0.png",1364,0,0,57,113,1,0,0,[],[0.2456140071153641,0.1238939985632896,0.4912280142307282,0.01769910007715225,0.8947370052337647,0.05309730023145676,0.7719299793243408,0.4955750107765198,0.7719299793243408,0.8849560022354126,0.4912280142307282,0.964601993560791,0.105263002216816,0.9469029903411865,0.035087700933218,0.4955750107765198],0]]]],[],false,false,301805069838529,[],null],["t109",6,false,[],0,0,null,[["Default",0,false,1,0,false,669856381319358,[["images/heavywarrior_skeleton_handl-sheet0.png",1606,0,0,73,101,1,0,0,[],[0.1506849974393845,0.1089110001921654,0.4931510090827942,0.009900989942252636,0.9863010048866272,0.009900989942252636,0.9726030230522156,0.4950500130653381,0.8630139827728272,0.9009900093078613,0.4931510090827942,1,0.1917809993028641,0.8613860011100769,0.1095890030264854,0.4950500130653381],0]]]],[],false,false,117190913029217,[],null],["t110",6,false,[],0,0,null,[["Default",0,false,1,0,false,241858632668577,[["images/leightwarrior_skeleton_belt-sheet0.png",9636,0,0,192,198,1,0,0,[],[0.109375,0.1060609966516495,0.5,0.04040399938821793,0.8802080154418945,0.1161620020866394,0.8541669845581055,0.5,0.6979169845581055,0.7070710062980652,0.5,0.7777779698371887,0.359375,0.651515007019043,0.375,0.5],0]]]],[],false,false,681522966143671,[],null],["t111",6,false,[],0,0,null,[["Default",0,false,1,0,false,924413195456398,[["images/leightwarrior_skeleton_helmet-sheet0.png",13082,0,0,236,293,1,0,0,[],[0.1694920063018799,0.1365189999341965,0.5,0.003412970108911395,0.8305079936981201,0.1365189999341965,1,0.4982939958572388,0.5127120018005371,0.6075090169906616,0.5,0.6075090169906616,0.1355929970741272,0.8907849788665772,0.004237290006130934,0.4982939958572388],0]]]],[],false,false,322806380729325,[],null],["t112",6,false,[],0,0,null,[["Default",0,false,1,0,false,193260628664803,[["images/heavywarrior_skeleton_bootsr-sheet0.png",1798,0,0,67,77,1,0,0,[],[0.08955220133066177,0.07792209833860397,0.4925369918346405,0.02597399987280369,0.8955219984054565,0.09090910106897354,0.9104480147361755,0.4935060143470764,1,1,0.4925369918346405,1,0.1044780015945435,0.9090909957885742,0.04477610066533089,0.4935060143470764],0]]]],[],false,false,629256095737414,[],null],["t113",6,false,[],0,0,null,[["Default",0,false,1,0,false,896303498457550,[["images/heavywarrior_skeleton_bootsr-sheet0.png",1798,0,0,67,77,1,0,0,[],[0.08955220133066177,0.07792209833860397,0.4925369918346405,0.02597399987280369,0.8955219984054565,0.09090910106897354,0.9104480147361755,0.4935060143470764,1,1,0.4925369918346405,1,0.1044780015945435,0.9090909957885742,0.04477610066533089,0.4935060143470764],0]]]],[],false,false,163620581772871,[],null],["t114",6,false,[],0,0,null,[["Default",0,false,1,0,false,474605644638206,[["images/leightwarrior_skeleton_shield-sheet0.png",20571,0,0,265,259,1,0,0,[],[0.05283020064234734,0.05405410006642342,0.4981130063533783,0.2471040040254593,0.9320759773254395,0.06949809938669205,0.9924529790878296,0.4980689883232117,0.8641510009765625,0.8610039949417114,0.4981130063533783,0.8146719932556152,0.464150995016098,0.5250970125198364,0.4679250121116638,0.4980689883232117],0]]]],[],false,false,435410003217601,[],null],["t115",6,false,[],0,0,null,[["Default",0,false,1,0,false,514203204672919,[["images/nightmarerider_skeleton_armback-sheet0.png",1940,0,0,104,178,1,0,0,[],[0.05769230052828789,0.03370790183544159,0.5,0.01123599987477064,0.9519230127334595,0.02808989956974983,0.8269230127334595,0.5,0.7980769872665405,0.8820229768753052,0.5,0.9662920236587524,0.2211540043354034,0.8707860112190247,0.02884620055556297,0.5],0]]]],[],false,false,369643351892420,[],null],["t116",6,false,[],0,0,null,[["Default",0,false,1,0,false,795037553320757,[["images/nightmarerider_skeleton_rider_legl-sheet0.png",6380,0,0,123,219,1,0,0,[],[0.1138209998607636,0.06392689794301987,0.4959349930286408,0,0.7967479825019836,0.1141550019383431,0.7560979723930359,0.4977169930934906,0.6097559928894043,0.7808219790458679,0.4959349930286408,0.9726030230522156,0.3008129894733429,0.8310499787330627],0]]]],[],false,false,982046706711448,[],null],["t117",6,false,[],0,0,null,[["Default",0,false,1,0,false,607046355548594,[["images/nightmarerider_skeleton_elbow-sheet0.png",1579,0,0,77,47,1,0,0,[],[0.1948049962520599,0.319148987531662,0.4935060143470764,0.1063830032944679,0.922078013420105,0.1276600062847138,0.9740260243415833,0.4893620014190674,0.84415602684021,0.7446810007095337,0.4935060143470764,0.9787229895591736,0.1038959994912148,0.829787015914917,0.4285709857940674,0.4893620014190674],0]]]],[],false,false,321315310411013,[],null],["t118",6,false,[],0,0,null,[["Default",0,false,1,0,false,586329287447726,[["images/nightmarerider_skeleton_arm-sheet0.png",1978,0,0,84,155,1,0,0,[],[0.05952379852533341,0.03225810080766678,0.5,0.01290319953113794,0.7380949854850769,0.1419350057840347,0.8333330154418945,0.4967739880084992,0.7023810148239136,0.8387100100517273,0.5,1,0.130952000617981,0.929032027721405,0.08333329856395721,0.4967739880084992],0]]]],[],false,false,150441850886607,[],null],["t119",6,false,[],0,0,null,[["Default",0,false,1,0,false,267925158001499,[["images/nightmarerider_skeleton_hand-sheet0.png",2952,0,0,83,70,1,0,0,[],[0.1445779949426651,0.171428993344307,0.4939759969711304,0.0428570993244648,1,0.5,0.8915659785270691,0.8714290261268616,0.4939759969711304,0.942857027053833,0.2168669998645783,0.7428569793701172,0.08433730155229569,0.5],0]]]],[],false,false,576006919324550,[],null],["t120",6,false,[],0,0,null,[["Default",0,false,1,0,false,252402258706051,[["images/nightmarerider_skeleton_weapon-sheet0.png",31358,0,0,419,903,1,0,0,[],[0.8854420185089111,0.4108529984951019,0.4988070130348206,0.8449609875679016,0.9809070229530335,0.008859359659254551,0.9498810172080994,0.4994460046291351,0.9594269990921021,0.9811739921569824,0.4988070130348206,0.9468439817428589,0.2840099930763245,0.8682169914245606,0.8806679844856262,0.4994460046291351],0]]]],[],false,false,204471804827925,[],null],["t121",6,false,[],0,0,null,[["Default",0,false,1,0,false,851777061252450,[["images/nightmarerider_skeleton_horse_lowerleg_bl-sheet0.png",1562,0,0,54,157,1,0,0,[],[0.07407409697771072,0.02547769993543625,0.5,0.006369430106133223,0.7962960004806519,0.07006370276212692,0.7222219705581665,0.4968149960041046,0.8888890147209168,0.9617829918861389,0.5,1,0.2037039995193481,0.9299359917640686,0.2222220003604889,0.4968149960041046],0]]]],[],false,false,259621719331694,[],null],["t122",6,false,[],0,0,null,[["Default",0,false,1,0,false,123748695059131,[["images/nightmarerider_skeleton_horse_upperleg_bl-sheet0.png",2873,0,0,153,244,1,0,0,[],[0.07189539819955826,0.04508199915289879,0.4967319965362549,0.00409835996106267,0.8823530077934265,0.07377050071954727,0.8823530077934265,0.5,0.7450979948043823,0.8401640057563782,0.4967319965362549,1,0.418300986289978,0.7377049922943115],0]]]],[],false,false,707590306570770,[],null],["t123",6,false,[],0,0,null,[["Default",0,false,1,0,false,563725073702695,[["images/nightmarerider_skeleton_horse_feet_bl-sheet0.png",1000,0,0,87,65,1,0,0,[],[0.1494249999523163,0.2000000029802322,0.494253009557724,0.01538459956645966,0.7931029796600342,0.2769230008125305,0.9080460071563721,0.4923079907894135,0.954023003578186,0.9384620189666748,0.494253009557724,1,0.1149429976940155,0.8461539745330811,0.02298850007355213,0.4923079907894135],0]]]],[],false,false,744038706715680,[],null],["t124",6,false,[],0,0,null,[["Default",0,false,1,0,false,589656578972533,[["images/nightmarerider_skeleton_horse_lowerleg_fl-sheet0.png",1621,0,0,85,130,1,0,0,[],[0.4941180050373077,0.007692310027778149,0.8588240146636963,0.09230770170688629,0.6000000238418579,0.5,0.8941180109977722,0.9307690262794495,0.4941180050373077,0.9923080205917358,0.1647060066461563,0.8923079967498779,0.2588239908218384,0.5],0]]]],[],false,false,344912968675010,[],null],["t125",6,false,[],0,0,null,[["Default",0,false,1,0,false,529880942889172,[["images/nightmarerider_skeleton_horse_upperleg_fl-sheet0.png",2827,0,0,128,210,1,0,0,[],[0.109375,0.06666669994592667,0.5,0.02380950003862381,0.890625,0.06666669994592667,0.765625,0.5,0.6484379768371582,0.7857139706611633,0.5,0.9666669964790344,0.171875,0.8952379822731018,0.1953130066394806,0.5],0]]]],[],false,false,162427687552211,[],null],["t126",6,false,[],0,0,null,[["Default",0,false,1,0,false,438182390784133,[["images/nightmarerider_skeleton_horse_feet_fl-sheet0.png",1373,0,0,101,81,1,0,0,[],[0.1089110001921654,0.1358020007610321,0.4950500130653381,0.03703700006008148,0.6930689811706543,0.3827160000801086,0.8811879754066467,0.4938269853591919,0.9207919836044312,0.9012349843978882,0.4950500130653381,0.9382719993591309,0.1188120022416115,0.8518519997596741,0.0792078971862793,0.4938269853591919],0]]]],[],false,false,284400278729336,[],null],["t127",6,false,[],0,0,null,[["Default",0,false,1,0,false,898276370742062,[["images/nightmarerider_skeleton_horse_tail-sheet0.png",4106,0,0,128,286,1,0,0,[],[0.5,0.1643359959125519,1,0,0.65625,0.5,0.5234379768371582,0.7867130041122437,0.5,0.8496500253677368,0.1640630066394806,0.9265729784965515,0.09375,0.5],0]]]],[],false,false,737887439519646,[],null],["t128",6,false,[],0,0,null,[["Default",0,false,1,0,false,932284605154248,[["images/nightmarerider_skeleton_horse_torso-sheet0.png",49768,0,0,900,428,1,0,0,[],[0.1311109960079193,0.2757009863853455,0.5,0.3130840063095093,0.9577779769897461,0.08878500014543533,0.9300000071525574,0.5,0.8644440174102783,0.7149530053138733,0.5,0.9439250230789185,0.0311111006885767,0.9345790147781372,0.004444439895451069,0.5],0]]]],[],false,false,224739743313510,[],null],["t129",6,false,[],0,0,null,[["Default",0,false,1,0,false,959611448828449,[["images/nightmarerider_skeleton_horse_head-sheet0.png",15156,0,0,402,337,1,0,0,[],[0.2039799988269806,0.2433229982852936,0.5,0.2344209998846054,0.9577109813690186,0.4985159933567047,0.781095027923584,0.7388719916343689,0.5,0.7270029783248901,0.1467660069465637,0.8249260187149048,0.01243779994547367,0.4985159933567047],0]]]],[],false,false,794051504796383,[],null],["t130",6,false,[],0,0,null,[["Default",0,false,1,0,false,585976442431011,[["images/nightmarerider_skeleton_horse_feet_fr-sheet0.png",1422,0,0,98,80,1,0,0,[],[0.09183669835329056,0.1124999970197678,0.5,0.01250000018626452,0.6836730241775513,0.387499988079071,0.8775510191917419,0.5,0.9489799737930298,0.9374999403953552,0.5,0.9374999403953552,0.1224490031599999,0.8500000238418579,0.05102039873600006,0.5],0]]]],[],false,false,214810673724061,[],null],["t131",6,false,[],0,0,null,[["Default",0,false,1,0,false,838611441541517,[["images/nightmarerider_skeleton_horse_feet_br-sheet0.png",1031,0,0,86,66,1,0,0,[],[0.1395349949598312,0.1818179935216904,0.5,0.01515149977058172,0.8023260235786438,0.2575759887695313,0.9186049699783325,0.5,0.9534879922866821,0.9393939971923828,0.5,0.9848480224609375,0.1511629968881607,0.8030300140380859,0.02325580082833767,0.5],0]]]],[],false,false,932880223587866,[],null],["t132",6,false,[],0,0,null,[["Default",0,false,1,0,false,657070740802123,[["images/nightmarerider_skeleton_horse_lowerleg_br-sheet0.png",1623,0,0,57,157,1,0,0,[],[0.07017540186643601,0.02547769993543625,0.4912280142307282,0.006369430106133223,0.7894740104675293,0.07643309980630875,0.7017539739608765,0.4968149960041046,0.8947370052337647,0.9617829918861389,0.4912280142307282,1,0.2105260044336319,0.923566997051239,0.228070005774498,0.4968149960041046],0]]]],[],false,false,761264412433775,[],null],["t133",6,false,[],0,0,null,[["Default",0,false,1,0,false,366972511500355,[["images/nightmarerider_skeleton_horse_lowerleg_fr-sheet0.png",1601,0,0,85,130,1,0,0,[],[0.4470590054988861,0.2923080027103424,0.4941180050373077,0.04615379869937897,0.8705880045890808,0.08461540192365646,0.6588240265846252,0.5,0.9176470041275024,0.946153998374939,0.4941180050373077,0.9923080205917358,0.1764709949493408,0.8846150040626526,0.3058820068836212,0.5],0]]]],[],false,false,448349028394518,[],null],["t134",6,false,[],0,0,null,[["Default",0,false,1,0,false,263201280878727,[["images/nightmarerider_skeleton_horse_upperleg_br-sheet0.png",3829,0,0,115,182,1,0,0,[],[0.03478259965777397,0.02197800017893314,0.8347830176353455,0.1043960005044937,0.8869569897651672,0.5,0.7913039922714233,0.8681319952011108,0.4956519901752472,1,0.3130429983139038,0.5],0]]]],[],false,false,692801174933101,[],null],["t135",6,false,[],0,0,null,[["Default",0,false,1,0,false,726112057673603,[["images/nightmarerider_skeleton_horse_upperleg_fr-sheet0.png",2872,0,0,128,206,1,0,0,[],[0.1015629991889,0.06310679763555527,0.5,0.01456310041248798,0.890625,0.0679612010717392,0.734375,0.5,0.6171879768371582,0.7621359825134277,0.5,0.8737859725952148,0.1328130066394806,0.9174759984016419,0.15625,0.5],0]]]],[],false,false,751151943003286,[],null],["t136",6,false,[],0,0,null,[["Default",0,false,1,0,false,204420817656344,[["images/nightmarerider_skeleton_torso-sheet0.png",6857,0,0,221,266,1,0,0,[],[0.1131220012903214,0.09398499876260757,0.4977380037307739,0,0.8733029961585999,0.105263002216816,0.9321269989013672,0.5,0.8552039861679077,0.8796989917755127,0.4977380037307739,0.9849619865417481,0.1583710014820099,0.8684210181236267],0]]]],[],false,false,607613746409752,[],null],["t137",6,false,[],0,0,null,[["Default",0,false,1,0,false,690453767679831,[["images/nightmarerider_skeleton_leg-sheet0.png",6051,0,0,127,208,1,0,0,[],[0.2283460050821304,0.1394229978322983,0.4960629940032959,0,0.8740159869194031,0.07692310214042664,0.6692910194396973,0.7980769872665405,0.4960629940032959,0.9951919913291931,0.3385829925537109,0.7932689785957336,0.2125979959964752,0.5],0]]]],[],false,false,410300386967040,[],null],["t138",6,false,[],0,0,null,[["Default",0,false,1,0,false,774534618009122,[["images/nightmarerider_skeleton_cape-sheet0.png",7332,0,0,236,390,1,0,0,[],[0.3474580049514771,0.2102559953927994,0.5,0.03846149891614914,0.9110170006752014,0.05384619906544685,0.9618639945983887,0.5,0.9152539968490601,0.9487180113792419,0.08474580198526382,0.9487180113792419,0.3305079936981201,0.5],0]]]],[],false,false,323431820877413,[],null],["t139",6,false,[],0,0,null,[["Default",0,false,1,0,false,827492491378937,[["images/nightmarerider_skeleton_head-sheet0.png",6125,0,0,300,243,1,0,0,[],[0.1500000059604645,0.1851850003004074,0.5,0.0123456995934248,0.836667001247406,0.2016460001468658,0.9833329916000366,0.4979420006275177,0.9033330082893372,0.880657970905304,0.5,0.9876539707183838,0.2199999988079071,0.7283949851989746,0.009999999776482582,0.4979420006275177],0]]]],[],false,false,630377329270685,[],null],["t140",6,false,[],0,0,null,[["Default",0,false,1,0,false,716545655186864,[["images/basicskeleton_skeleton_arml-sheet0.png",1703,0,0,50,123,1,0,0,[],[0.1000000014901161,0.04065040126442909,0.5,0.0243902001529932,0.7799999713897705,0.08943089842796326,0.7799999713897705,0.4959349930286408,0.9200000166893005,0.9674800038337708,0.5,1,0.119999997317791,0.9512190222740173],0]]]],[],false,false,371984747502313,[],null],["t141",6,false,[],0,0,null,[["Default",0,false,1,0,false,620824422224149,[["images/basicskeleton_skeleton_feetl-sheet0.png",794,0,0,73,29,1,0,0,[],[0.04109590128064156,0.1034480035305023,0.4931510090827942,0.2758620083332062,0.7808219790458679,0.5517240166664124,0.7260270118713379,0.4827589988708496,0.9863010048866272,0.965516984462738,0.4931510090827942,0.965516984462738,0.02739729918539524,0.9310349822044373],0]]]],[],false,false,501062046816094,[],null],["t142",6,false,[],0,0,null,[["Default",0,false,1,0,false,874034188067395,[["images/peasant_skeleton_elbowl-sheet0.png",2111,0,0,62,127,1,0,0,[],[0.2741940021514893,0.1338579952716827,0.5,0.03149610012769699,0.9032260179519653,0.04724410176277161,0.8387100100517273,0.4960629940032959,0.854839026927948,0.9291340112686157,0.5,1,0.03225810080766678,0.9842519760131836,0.0645160973072052,0.4960629940032959],0]]]],[],false,false,117366876875204,[],null],["t143",6,false,[],0,0,null,[["Default",0,false,1,0,false,618809500255402,[["images/basicskeleton_skeleton_handl-sheet0.png",730,0,0,56,42,1,0,0,[],[0.1785710006952286,0.2380950003862381,0.5,0,0.8214290142059326,0.2380950003862381,0.9464290142059326,0.5,0.982142984867096,0.9761899709701538,0.5,0.9761899709701538,0.1607140004634857,0.7857139706611633,0.0357142984867096,0.5],0]]]],[],false,false,220916370077059,[],null],["t144",6,false,[],0,0,null,[["Default",0,false,1,0,false,114683429859564,[["images/peasant_skeleton_sword-sheet0.png",3777,0,0,111,418,1,0,0,[],[0.09909909963607788,0.02631580084562302,0.4954949915409088,0.1004780009388924,0.6396399736404419,0.09569379687309265,0.5405409932136536,0.5,0.4054049849510193,0.842104971408844,0.4954949915409088,0.5980859994888306,0.1531530022621155,0.9593300223350525,0.2072069942951202,0.5],0]]]],[],false,false,422483375674706,[],null],["t145",6,false,[],0,0,null,[["Default",0,false,1,0,false,449091074179070,[["images/basicskeleton_skeleton_hand_grab-sheet0.png",1275,0,0,55,51,1,0,0,[],[0.03636360168457031,0.03921569883823395,0.9636359810829163,0.03921569883823395,1,0.4901959896087647,0.8727269768714905,0.8627449870109558,0.4909090101718903,0.9607840180397034,0.1818179935216904,0.8039219975471497,0.09090910106897354,0.4901959896087647],0]]]],[],false,false,342356215148236,[],null],["t146",6,false,[],0,0,null,[["Default",0,false,1,0,false,540242523377146,[["images/basicskeleton_skeleton_lower_legl-sheet0.png",1515,0,0,56,112,1,0,0,[],[0.1785710006952286,0.08928570151329041,0.5,0,0.8035709857940674,0.0982142984867096,0.9107139706611633,0.5,0.6428570151329041,0.8214290142059326,0.5,0.9553570151329041,0.08928570151329041,0.9553570151329041,0.08928570151329041,0.5],0]]]],[],false,false,599978265960819,[],null],["t147",6,false,[],0,0,null,[["Default",0,false,1,0,false,673944657893632,[["images/peasant_skeleton_legl-sheet0.png",3844,0,0,69,125,1,0,0,[],[0.1449279934167862,0.07999999821186066,0.4927540123462677,0,0.8260869979858398,0.09600000083446503,0.9420289993286133,0.4959999918937683,0.9275360107421875,0.9599999785423279,0.4927540123462677,0.7839999794960022,0.4202899932861328,0.7680000066757202,0.1449279934167862,0.4959999918937683],0]]]],[],false,false,549395281345835,[],null],["t148",6,false,[],0,0,null,[["Default",0,false,1,0,false,569625308823001,[["images/peasant_skeleton_hips-sheet0.png",3200,0,0,157,101,1,0,0,[],[0.03184710070490837,0.04950499907135963,0.4968149960041046,0.3168320059776306,0.9363059997558594,0.09900990128517151,0.9299359917640686,0.4950500130653381,0.8025479912757874,0.6930689811706543,0.4968149960041046,0.9306929707527161,0.1783439964056015,0.7227720022201538,0.07643309980630875,0.4950500130653381],0]]]],[],false,false,472045069446238,[],null],["t149",6,false,[],0,0,null,[["Default",0,false,1,0,false,865303112521774,[["images/basicskeleton_skeleton_lower_legr-sheet0.png",1447,0,0,56,109,1,0,0,[],[0.2321429997682571,0.119266003370285,0.5,0.01834860071539879,0.875,0.06422019749879837,0.8928570151329041,0.4954130053520203,0.6964290142059326,0.8440369963645935,0.5,1,0.1428570002317429,0.9266059994697571,0.01785710081458092,0.4954130053520203],0]]]],[],false,false,410533216477860,[],null],["t150",6,false,[],0,0,null,[["Default",0,false,1,0,false,582196219114594,[["images/peasant_skeleton_legr-sheet0.png",4649,0,0,72,152,1,0,0,[],[0.2083330005407333,0.09868419915437698,0.5,0.01973680034279823,0.8194440007209778,0.08552630245685577,0.7222219705581665,0.8684210181236267,0.5,0.717104971408844,0.2361110001802445,0.8881580233573914,0.09722220152616501,0.5],0]]]],[],false,false,798725496603887,[],null],["t151",6,false,[],0,0,null,[["Default",0,false,1,0,false,363903022231520,[["images/basicskeleton_skeleton_feetr-sheet0.png",790,0,0,51,25,1,0,0,[],[0.1176469996571541,0.239999994635582,0.4901959896087647,0.03999999910593033,0.8627449870109558,0.2800000011920929,0.9411759972572327,0.4799999892711639,0.9803919792175293,0.9599999785423279,0.4901959896087647,0.9599999785423279,0.03921569883823395,0.9200000166893005,0.05882349982857704,0.4799999892711639],0],["images/basicskeleton_skeleton_feetl-sheet0.png",794,0,0,73,29,1,0,0,[],[0.04109590128064156,0.1034480035305023,0.4931510090827942,0.2758620083332062,0.7808219790458679,0.5517240166664124,0.7260270118713379,0.4827589988708496,0.9863010048866272,0.965516984462738,0.4931510090827942,0.965516984462738,0.02739729918539524,0.9310349822044373],0]]]],[],false,false,786203675471604,[],null],["t152",6,false,[],0,0,null,[["Default",0,false,1,0,false,673112580285485,[["images/peasant_skeleton_torso-sheet0.png",5419,0,0,196,278,1,0,0,[],[0.112245000898838,0.07913669943809509,0.5,0.03956830129027367,0.8469390273094177,0.107914000749588,0.9285709857940674,0.5,0.7653059959411621,0.8345320224761963,0.5,0.9316549897193909,0.3061220049858093,0.7841730117797852,0.01530610024929047,0.5],0]]]],[],false,false,468938034997489,[],null],["t153",6,false,[],0,0,null,[["Default",0,false,1,0,false,566065625516684,[["images/peasant_skeleton_head-sheet0.png",8102,0,0,214,221,1,0,0,[],[0.08411219716072083,0.08144800364971161,0.5,0.004524889867752791,0.8738319873809815,0.1221719980239868,1,0.4977380037307739,0.8691589832305908,0.8733029961585999,0.5,0.9954749941825867,0.2710280120372772,0.7375569939613342,0.01869159936904907,0.4977380037307739],0]]]],[],false,false,349769378009072,[],null],["t154",6,false,[],0,0,null,[["Default",0,false,1,0,false,184330264809968,[["images/basicskeleton_skeleton_elbowr-sheet0.png",1364,0,0,57,113,1,0,0,[],[0.2456140071153641,0.1238939985632896,0.4912280142307282,0.01769910007715225,0.8947370052337647,0.05309730023145676,0.7719299793243408,0.4955750107765198,0.7719299793243408,0.8849560022354126,0.4912280142307282,0.964601993560791,0.105263002216816,0.9469029903411865,0.035087700933218,0.4955750107765198],0]]]],[],false,false,135228829201361,[],null],["t155",6,false,[],0,0,null,[["Default",0,false,1,0,false,323636253378053,[["images/peasant_skeleton_armr-sheet0.png",1971,0,0,65,132,1,0,0,[],[0.1384620070457459,0.06818179786205292,0.4923079907894135,0.03787880018353462,0.738461971282959,0.1287879943847656,0.8615379929542542,0.5,0.7692310214042664,0.8863639831542969,0.4923079907894135,0.8409090042114258,0.1846150010824204,0.9090909957885742,0.09230770170688629,0.5],0]]]],[],false,false,907933514396722,[],null],["t156",6,false,[],0,0,null,[["Default",0,false,1,0,false,685601889172985,[["images/basicskeleton_skeleton_handr-sheet0.png",1672,0,0,82,74,1,0,0,[],[0.1341460049152374,0.1486490070819855,0.5,0.04054050147533417,0.7439020276069641,0.2837840020656586,1,0.5,0.5853660106658936,0.5405409932136536,0.5,0.8108109831809998,0.0853658989071846,0.9054049849510193,0,0.5],0]]]],[],false,false,480252645585631,[],null],["t157",6,false,[],0,0,null,[["Default",0,false,1,0,false,361117645780923,[["images/cannonboy_skeleton_arml-sheet0.png",1346,0,0,50,123,1,0,0,[],[0.1000000014901161,0.04065040126442909,0.5,0.0243902001529932,0.7799999713897705,0.08943089842796326,0.7799999713897705,0.4959349930286408,0.9200000166893005,0.9674800038337708,0.5,1,0.119999997317791,0.9512190222740173],0]]]],[],false,false,879082745626548,[],null],["t158",6,false,[],0,0,null,[["Default",0,false,1,0,false,529218836347502,[["images/headlessbomber_skeleton_ex_1-sheet0.png",945782,1,1,807,612,1,0,0,[],[0.4993799924850464,0.8382350206375122,0.3853780031204224,0.8104580044746399,0.4993799924850464,0.9918299913406372],0],["images/headlessbomber_skeleton_ex_1-sheet0.png",945782,810,1,807,612,1,0,0,[],[0.47707599401474,0.6290850043296814,0.4993799924850464,0.4983659982681274,0.5303589701652527,0.619280993938446,0.5353159904479981,0.5,0.5204460024833679,0.3676469922065735,0.4993799924850464,0.9901959896087647,0.1809169948101044,0.7614380121231079,0.4993799924850464,0.5],0],["images/headlessbomber_skeleton_ex_1-sheet0.png",945782,1,615,807,612,1,0,0,[],[0.4200739860534668,0.5539219975471497,0.4993799924850464,0.2287580072879791,0.5873609781265259,0.5441179871559143,0.8190829753875732,0.5,0.7781909704208374,0.7075160145759583,0.4993799924850464,0.9526140093803406,0.1784390062093735,0.764706015586853,0.2218089997768402,0.5],0],["images/headlessbomber_skeleton_ex_1-sheet0.png",945782,810,615,807,612,1,0,0,[],[0.5130109786987305,0.6764709949493408,0.4993799924850464,0.2303919941186905,0.617099940776825,0.5049020051956177,0.8178439736366272,0.5,0.9355639815330505,0.9150329828262329,0.4993799924850464,0.9232029914855957,0.159850999712944,0.7892159819602966,0.4907059967517853,0.5],0],["images/headlessbomber_skeleton_ex_1-sheet0.png",945782,1,1229,807,612,1,0,0,[],[0.2949190139770508,0.3888889849185944,0.4993799924850464,0.1013069972395897,0.7534080147743225,0.3251630067825317,0.8513010144233704,0.5,0.9355639815330505,0.9150329828262329,0.4993799924850464,0.3921569883823395,0.06071870028972626,0.9199349880218506,0.323419988155365,0.5],0],["images/headlessbomber_skeleton_ex_1-sheet0.png",945782,810,1229,807,612,1,0,0,[],[0.322180986404419,0.4248369932174683,0.4993799924850464,0.3431369960308075,0.7521690130233765,0.3267970085144043,0.8364310264587402,0.5,0.9739779829978943,0.965686023235321,0.4993799924850464,0.3496730029582977,0.09913259744644165,0.869280993938446],0],["images/headlessbomber_skeleton_ex_1-sheet1.png",96632,0,0,807,612,1,0,0,[],[0.2180919945240021,0.2875820100307465,0.7534080147743225,0.3251630067825317,0.8339530229568481,0.5,0.9690210223197937,0.9591500163078308,0.09913259744644165,0.869280993938446,0.7273849844932556,0.5],0],["images/headlessbomber_skeleton_ex_1-sheet2.png",1540,0,0,807,612,1,0,0,[],[],0]]]],[],false,false,658697724907466,[],null],["t159",6,false,[],0,0,null,[["Default",0,false,1,0,false,835913712601677,[["images/cannonboy_skeleton_ball-sheet0.png",12334,0,0,293,298,1,0,0,[],[0.1433449983596802,0.1409399956464768,0.4982939958572388,0,0.8600680232048035,0.137584000825882,1,0.5,0.8566550016403198,0.8590599894523621,0.4982939958572388,0.9966440200805664,0.1365189999341965,0.865772008895874,0,0.5],0]]]],[],false,false,651465502614328,[],null],["t160",6,false,[],0,0,null,[["Default",0,false,1,0,false,337492071128043,[["images/cannonboy_skeleton_elbowl-sheet0.png",1376,0,0,57,114,1,0,0,[],[0.1403509974479675,0.07017540186643601,0.4912280142307282,0.008771929889917374,0.7719299793243408,0.114035002887249,0.9824560284614563,0.5,0.8947370052337647,0.9473680257797241,0.4912280142307282,0.9561399817466736,0.228070005774498,0.8859649896621704,0.2456140071153641,0.5],0]]]],[],false,false,853226283603198,[],null],["t161",6,false,[],0,0,null,[["Default",0,false,1,0,false,785380039601288,[["images/cannonboy_skeleton_handl-sheet0.png",720,0,0,56,42,1,0,0,[],[0.1785710006952286,0.2380950003862381,0.5,0,0.8214290142059326,0.2380950003862381,0.9464290142059326,0.5,0.982142984867096,0.9761899709701538,0.5,0.9761899709701538,0.1607140004634857,0.7857139706611633,0.0357142984867096,0.5],0]]]],[],false,false,222353743632938,[],null],["t162",6,false,[],0,0,null,[["Default",0,false,1,0,false,597247416135652,[["images/cannonboy_skeleton_hand_grab-sheet0.png",1254,0,0,55,51,1,0,0,[],[0.03636360168457031,0.03921569883823395,0.9636359810829163,0.03921569883823395,1,0.4901959896087647,0.8727269768714905,0.8627449870109558,0.4909090101718903,0.9607840180397034,0.1818179935216904,0.8039219975471497,0.09090910106897354,0.4901959896087647],0]]]],[],false,false,992285753264004,[],null],["t163",6,false,[],0,0,null,[["Default",0,false,1,0,false,903133683661697,[["images/cannonboy_skeleton_legl-sheet0.png",1504,0,0,52,101,1,0,0,[],[0.1346150040626526,0.06930690258741379,0.5,0.01980200037360191,0.8076919913291931,0.09900990128517151,0.8846150040626526,0.4950500130653381,0.8846150040626526,0.9405940175056458,0.5,1,0.1346150040626526,0.9306929707527161,0.2115380018949509,0.4950500130653381],0]]]],[],false,false,729278651831988,[],null],["t164",6,false,[],0,0,null,[["Default",0,false,1,0,false,806197935867310,[["images/cannonboy_skeleton_lower_legl-sheet0.png",1489,0,0,56,112,1,0,0,[],[0.1785710006952286,0.08928570151329041,0.5,0,0.8035709857940674,0.0982142984867096,0.9107139706611633,0.5,0.6428570151329041,0.8214290142059326,0.5,0.9553570151329041,0.08928570151329041,0.9553570151329041,0.08928570151329041,0.5],0]]]],[],false,false,681293441782902,[],null],["t165",6,false,[],0,0,null,[["Default",0,false,1,0,false,767851211744018,[["images/cannonboy_skeleton_feetl-sheet0.png",674,0,0,73,29,1,0,0,[],[0.04109590128064156,0.1034480035305023,0.4931510090827942,0.2758620083332062,0.7808219790458679,0.5517240166664124,0.7260270118713379,0.4827589988708496,0.9863010048866272,0.965516984462738,0.4931510090827942,0.965516984462738,0.02739729918539524,0.9310349822044373],0]]]],[],false,false,791978426315069,[],null],["t166",6,false,[],0,0,null,[["Default",0,false,1,0,false,298757034995602,[["images/cannonboy_skeleton_legr-sheet0.png",1316,0,0,50,101,1,0,0,[],[0.2199999988079071,0.1089110001921654,0.5,0.01980200037360191,0.8799999952316284,0.05940590053796768,0.800000011920929,0.4950500130653381,0.8600000143051148,0.9306929707527161,0.5,1,0.119999997317791,0.9405940175056458,0.1400000005960465,0.4950500130653381],0]]]],[],false,false,344254255400999,[],null],["t167",6,false,[],0,0,null,[["Default",0,false,1,0,false,951597843156905,[["images/cannonboy_skeleton_lower_legr-sheet0.png",1433,0,0,56,109,1,0,0,[],[0.2321429997682571,0.119266003370285,0.5,0.01834860071539879,0.875,0.06422019749879837,0.8928570151329041,0.4954130053520203,0.6964290142059326,0.8440369963645935,0.5,1,0.1428570002317429,0.9266059994697571,0.01785710081458092,0.4954130053520203],0]]]],[],false,false,540798007092537,[],null],["t168",6,false,[],0,0,null,[["Default",0,false,1,0,false,885650792091826,[["images/cannonboy_skeleton_feetr-sheet0.png",670,0,0,51,25,1,0,0,[],[0.1176469996571541,0.239999994635582,0.4901959896087647,0.03999999910593033,0.8627449870109558,0.2800000011920929,0.9411759972572327,0.4799999892711639,0.9803919792175293,0.9599999785423279,0.4901959896087647,0.9599999785423279,0.03921569883823395,0.9200000166893005,0.05882349982857704,0.4799999892711639],0]]]],[],false,false,792734438920141,[],null],["t169",6,false,[],0,0,null,[["Default",0,false,1,0,false,950452797175699,[["images/cannonboy_skeleton_torso-sheet0.png",5540,0,0,164,201,1,0,0,[],[0.1402440071105957,0.1144279986619949,0.5,0.05472639948129654,0.8353660106658936,0.1343279927968979,0.9695119857788086,0.497512012720108,0.6951220035552979,0.7512440085411072,0.5,1,0.3597559928894043,0.7064679861068726,0.07317069917917252,0.497512012720108],0]]]],[],false,false,329312274904043,[],null],["t170",6,false,[],0,0,null,[["Default",0,false,1,0,false,554684240852455,[["images/cannonboy_skeleton_hips-sheet0.png",3870,0,0,198,128,1,0,0,[],[0.03535350039601326,0.0546875,0.5,0.3203130066394806,0.9343429803848267,0.1015629991889,0.9242420196533203,0.5,0.8030300140380859,0.6953129768371582,0.5,0.921875,0.1818179935216904,0.71875,0.07575760036706924,0.5],0]]]],[],false,false,157747857105790,[],null],["t171",6,false,[],0,0,null,[["Default",0,false,1,0,false,457286994003936,[["images/cannonboy_skeleton_head-sheet0.png",11782,0,0,201,232,1,0,0,[],[0.1691540032625198,0.1465519964694977,0.497512012720108,0.004310340154916048,0.8358209729194641,0.1422410011291504,0.9950249791145325,0.5,0.9104480147361755,0.9224140048027039,0.497512012720108,0.9956899881362915,0.1442790031433106,0.875,0.009950250387191773,0.5],0]]]],[],false,false,366272610939661,[],null],["t172",6,false,[],0,0,null,[["Default",0,false,1,0,false,558294225001504,[["images/cannonboy_skeleton_armr-sheet0.png",1350,0,0,52,123,1,0,0,[],[0.25,0.1056910008192062,0.5,0.0243902001529932,0.9230769872665405,0.03252030164003372,0.8653849959373474,0.4959349930286408,0.8653849959373474,0.9430890083312988,0.5,0.9918699860572815,0.09615380316972733,0.9593499898910523,0.2307689934968948,0.4959349930286408],0]]]],[],false,false,874986627523290,[],null],["t173",6,false,[],0,0,null,[["Default",0,false,1,0,false,217546487071121,[["images/cannonboy_skeleton_elbowr-sheet0.png",1352,0,0,57,113,1,0,0,[],[0.2456140071153641,0.1238939985632896,0.4912280142307282,0.01769910007715225,0.8947370052337647,0.05309730023145676,0.7719299793243408,0.4955750107765198,0.7719299793243408,0.8849560022354126,0.4912280142307282,0.964601993560791,0.105263002216816,0.9469029903411865,0.035087700933218,0.4955750107765198],0]]]],[],false,false,696616735849952,[],null],["t174",6,false,[],0,0,null,[["Default",0,false,1,0,false,523706674406888,[["images/cannonboy_skeleton_handr-sheet0.png",1571,0,0,82,74,1,0,0,[],[0.1341460049152374,0.1486490070819855,0.5,0.04054050147533417,0.7439020276069641,0.2837840020656586,1,0.5,0.5853660106658936,0.5405409932136536,0.5,0.8108109831809998,0.0853658989071846,0.9054049849510193,0,0.5],0]]]],[],false,false,855543772283192,[],null],["t175",6,false,[],0,0,null,[["Default",0,false,1,0,false,815459805050798,[["images/cannonboy_skeleton_cannon_000-sheet0.png",43338,1,1,588,288,1,0,0,[],[0.07312929630279541,0.1493059992790222,0.5,0.006944439839571714,0.9506800174713135,0.1006940007209778,1,0.5,0.8996599912643433,0.7951390147209168,0.5,0.9548609852790833,0.06972789764404297,0.8576390147209168,0.003401360008865595,0.5],0],["images/cannonboy_skeleton_cannon_000-sheet0.png",43338,1,567,562,270,1,0,0,[],[0.06405690312385559,0.1333329975605011,0.5,0.0259259007871151,0.927046000957489,0.1518519967794418,1,0.5,0.9395020008087158,0.8740739822387695,0.5,0.9814810156822205,0.07473310083150864,0.8444439768791199,0,0.5],0],["images/cannonboy_skeleton_cannon_000-sheet0.png",43338,1,291,562,274,1,0,0,[],[0.06761570274829865,0.1386860013008118,0.5,0.007299270015209913,0.9501780271530151,0.1021900027990341,1,0.5,0.9003559947013855,0.7956200242042542,0.5,0.9489049911499023,0.07295370101928711,0.8503649830818176,0,0.5],0]]]],[],false,false,671529533208034,[],null],["t176",6,false,[],0,0,null,[["Default",0,false,1,0,false,983391878529419,[["images/cannonboy_skeleton_stationary-sheet0.png",38985,0,0,432,322,1,0,0,[],[0.2083330005407333,0.2795029878616333,0.5,0,0.7962960004806519,0.2732920050621033,0.9976850152015686,0.5,1,1,0,1,0.002314809942618012,0.5],0],["images/cannonboy_skeleton_stationary-sheet2.png",41040,0,0,434,277,1,0,0,[],[0.32949298620224,0.5162450075149536,0.5,0.007220219820737839,0.6935480237007141,0.4801439940929413,1,0.4981949925422669,1,1,0.004608289804309607,0.9927799701690674,0.004608289804309607,0.4981949925422669],0],["images/cannonboy_skeleton_stationary-sheet1.png",46084,0,0,432,322,1,0,0,[],[0.2083330005407333,0.2795029878616333,0.5,0,0.7962960004806519,0.2732920050621033,0.9976850152015686,0.5,1,1,0,1,0.002314809942618012,0.5],0]]]],[],false,false,686352490573126,[],null],["t177",6,false,[],0,0,null,[["Default",0,false,1,0,false,318172950758991,[["images/evilmage_skeleton_arm-sheet0.png",2022,0,0,98,168,1,0,0,[],[0.06122450157999992,0.0357142984867096,0.5,0.01785710081458092,0.9489799737930298,0.0297618992626667,0.8265309929847717,0.5,0.8061220049858093,0.8869050145149231,0.5,0.9702379703521729,0.2142859995365143,0.875,0.03061220049858093,0.5],0]]]],[],false,false,901933705525189,[],null],["t178",6,false,[],0,0,null,[["Default",0,false,1,0,false,528030346451806,[["images/evilmage_skeleton_elbow-sheet0.png",1542,0,0,82,50,1,0,0,[],[0.1951220035552979,0.3199999928474426,0.5,0.1000000014901161,0.9146339893341065,0.1400000005960465,0.9512190222740173,0.5,0.8414629697799683,0.7400000095367432,0.5,0.9800000190734863,0.09756100177764893,0.8399999737739563,0.3902440071105957,0.5],0]]]],[],false,false,122189178675285,[],null],["t179",6,false,[],0,0,null,[["Default",0,false,1,0,false,677609335692411,[["images/evilmage_skeleton_arml-sheet0.png",1915,0,0,79,145,1,0,0,[],[0.06329110264778137,0.03448279947042465,0.4936710000038147,0.006896549835801125,0.7468349933624268,0.1379310041666031,0.8607590198516846,0.4965519905090332,0.6962029933929443,0.8344830274581909,0.4936710000038147,1,0.126581996679306,0.9310349822044373],0]]]],[],false,false,415163750267378,[],null],["t180",6,false,[],0,0,null,[["Default",0,false,1,0,false,690181885032989,[["images/evilmage_skeleton_torso-sheet0.png",8749,0,0,261,352,1,0,0,[],[0.1609199941158295,0.119318000972271,0.4980840086936951,0.005681820213794708,0.8429120182991028,0.1164769977331162,0.9578539729118347,0.5,0.9463599920272827,0.9602270126342773,0.4980840086936951,0.9176139831542969,0.180077001452446,0.8664770126342773,0,0.5],0]]]],[],false,false,516240384130864,[],null],["t181",6,false,[],0,0,null,[["Default",0,false,1,0,false,106167801624509,[["images/evilmage_skeleton_head-sheet0.png",6226,0,0,282,228,1,0,0,[],[0.148936003446579,0.1842110008001328,0.5,0.01315790042281151,0.8368790149688721,0.2017540037631989,0.9858160018920898,0.5,0.9042549729347229,0.8815789818763733,0.5,0.9868419766426086,0.2163120061159134,0.7324560284614563,0.01063830032944679,0.5],0]]]],[],false,false,465806464964304,[],null],["t182",6,false,[],0,0,null,[["Default",0,false,1,0,false,872173484179025,[["images/evilmage_skeleton_handl-sheet0.png",2807,0,0,89,75,1,0,0,[],[0.1460669934749603,0.173333004117012,0.4943819940090179,0.02666670083999634,0.7528089880943298,0.2933329939842224,1,0.4933330118656158,0.8876399993896484,0.8666669726371765,0.4943819940090179,0.9599999785423279,0.2134830057621002,0.7466670274734497,0.06741569936275482,0.4933330118656158],0]]]],[],false,false,248186433713693,[],null],["t183",6,false,[],0,0,null,[["Default",0,false,1,0,false,651494723244942,[["images/cannonboy_skeleton_arml-sheet0.png",1346,0,0,50,123,1,0,0,[],[0.1000000014901161,0.04065040126442909,0.5,0.0243902001529932,0.7799999713897705,0.08943089842796326,0.7799999713897705,0.4959349930286408,0.9200000166893005,0.9674800038337708,0.5,1,0.119999997317791,0.9512190222740173],0]]]],[],false,false,971193998431974,[],null],["t184",6,false,[],0,0,null,[["Default",0,false,1,0,false,111087131641949,[["images/marksmen_skeleton_feetl-sheet0.png",1612,0,0,77,57,1,0,0,[],[0.07792209833860397,0.105263002216816,0.4935060143470764,0.01754390075802803,0.7142860293388367,0.3859649896621704,0.6623380184173584,0.4912280142307282,0.9480519890785217,0.9298250079154968,0.4935060143470764,1,0.07792209833860397,0.8947370052337647,0.1298699975013733,0.4912280142307282],0]]]],[],false,false,512342789771762,[],null],["t185",6,false,[],0,0,null,[["Default",0,false,1,0,false,545508232859029,[["images/marksmen_skeleton_arrow-sheet0.png",1335,0,0,23,195,1,0,0,[],[0.434783011674881,0.05128210037946701,0.4782609939575195,0.04102560132741928,0.6521739959716797,0.04102560132741928,0.7391300201416016,0.9692310094833374,0.4782609939575195,0.9743589758872986,0.434783011674881,0.9487180113792419],0]]]],[],false,false,721705771215204,[],null],["t186",6,false,[],0,0,null,[["Default",0,false,1,0,false,338623002006453,[["images/marksmen_skeleton_elbowl-sheet0.png",1632,0,0,75,93,1,0,0,[],[0.4933330118656158,0.03225810080766678,0.8133329749107361,0.1505379974842072,0.9866669774055481,0.494623988866806,0.7866669893264771,0.8279569745063782,0.2133329957723618,0.8279569745063782,0,0.494623988866806],0]]]],[],false,false,827078506946776,[],null],["t187",6,false,[],0,0,null,[["Default",0,false,1,0,false,299715969005530,[["images/marksmen_skeleton_handl-sheet0.png",1333,0,0,69,62,1,0,0,[],[0,0,0.4927540123462677,0,0.8405799865722656,0.1774190068244934,0.9565219879150391,0.5,0.8260869979858398,0.8064519762992859,0.4927540123462677,1,0.1449279934167862,0.8387100100517273,0.07246380299329758,0.5],0]]]],[],false,false,406867292158378,[],null],["t188",6,false,[],0,0,null,[["Default",0,false,1,0,false,272055705864534,[["images/marksmen_skeleton_sword-sheet0.png",6760,0,0,88,450,1,0,0,[],[0.05681819841265678,0.01111110020428896,0.5,0.1044439971446991,0.4886359870433807,0.1000000014901161,0.75,0.5,0.4659090042114258,0.8955559730529785,0.5,0.886667013168335,0.03409089893102646,0.9933329820632935,0.6363639831542969,0.5],0]]]],[],false,false,950508775486324,[],null],["t189",6,false,[],0,0,null,[["Default",0,false,1,0,false,410811949909402,[["images/cannonboy_skeleton_hand_grab-sheet0.png",1254,0,0,55,51,1,0,0,[],[0.03636360168457031,0.03921569883823395,0.9636359810829163,0.03921569883823395,1,0.4901959896087647,0.8727269768714905,0.8627449870109558,0.4909090101718903,0.9607840180397034,0.1818179935216904,0.8039219975471497,0.09090910106897354,0.4901959896087647],0]]]],[],false,false,255066153907670,[],null],["t190",6,false,[],0,0,null,[["Default",0,false,1,0,false,274802487203769,[["images/cannonboy_skeleton_legl-sheet0.png",1504,0,0,52,101,1,0,0,[],[0.1346150040626526,0.06930690258741379,0.5,0.01980200037360191,0.8076919913291931,0.09900990128517151,0.8846150040626526,0.4950500130653381,0.8846150040626526,0.9405940175056458,0.5,1,0.1346150040626526,0.9306929707527161,0.2115380018949509,0.4950500130653381],0]]]],[],false,false,164318941002211,[],null],["t191",6,false,[],0,0,null,[["Default",0,false,1,0,false,270331652022295,[["images/marksmen_skeleton_lower_legl-sheet0.png",1963,0,0,58,108,1,0,0,[],[0.2931030094623566,0.1574070006608963,0.5,0.1111110001802445,0.9137930274009705,0.04629629850387573,0.8103449940681458,0.5,0.6724140048027039,0.8240739703178406,0.5,0.9259259700775147,0.1034480035305023,0.9444440007209778,0.1379310041666031,0.5],0]]]],[],false,false,226852077593803,[],null],["t192",6,false,[],0,0,null,[["Default",0,false,1,0,false,354047323741625,[["images/cannonboy_skeleton_legr-sheet0.png",1316,0,0,50,101,1,0,0,[],[0.2199999988079071,0.1089110001921654,0.5,0.01980200037360191,0.8799999952316284,0.05940590053796768,0.800000011920929,0.4950500130653381,0.8600000143051148,0.9306929707527161,0.5,1,0.119999997317791,0.9405940175056458,0.1400000005960465,0.4950500130653381],0]]]],[],false,false,546825434990016,[],null],["t193",6,false,[],0,0,null,[["Default",0,false,1,0,false,515480143658700,[["images/cannonboy_skeleton_lower_legr-sheet0.png",1433,0,0,56,109,1,0,0,[],[0.2321429997682571,0.119266003370285,0.5,0.01834860071539879,0.875,0.06422019749879837,0.8928570151329041,0.4954130053520203,0.6964290142059326,0.8440369963645935,0.5,1,0.1428570002317429,0.9266059994697571,0.01785710081458092,0.4954130053520203],0]]]],[],false,false,383774782273699,[],null],["t194",6,false,[],0,0,null,[["Default",0,false,1,0,false,845104869411240,[["images/marksmen_skeleton_feetr-sheet0.png",1270,0,0,56,56,1,0,0,[],[0.1071429997682571,0.1071429997682571,0.5,0.01785710081458092,0.8928570151329041,0.1071429997682571,0.9107139706611633,0.9107139706611633,0.5,1,0.125,0.875,0.1785710006952286,0.5],0],["images/marksmen_skeleton_feetl-sheet0.png",1612,0,0,77,57,1,0,0,[],[0.07792209833860397,0.105263002216816,0.4935060143470764,0.01754390075802803,0.7142860293388367,0.3859649896621704,0.6623380184173584,0.4912280142307282,0.9480519890785217,0.9298250079154968,0.4935060143470764,1,0.07792209833860397,0.8947370052337647,0.1298699975013733,0.4912280142307282],0]]]],[],false,false,970305868434527,[],null],["t195",6,false,[],0,0,null,[["Default",0,false,1,0,false,244289156812693,[["images/marksmen_skeleton_quiver-sheet0.png",7662,0,0,76,244,1,0,0,[],[0.1842110008001328,0.05737699940800667,0.7368419766426086,0.08196719735860825,0.7236840128898621,0.5,0.5263159871101379,0.8524590134620667,0.5,0.8893439769744873,0.02631580084562302,0.991802990436554,0,0.5],0]]]],[],false,false,838443808053157,[],null],["t196",6,false,[],0,0,null,[["Default",0,false,1,0,false,130552814791044,[["images/marksmen_skeleton_torso-sheet0.png",15390,0,0,176,202,1,0,0,[],[0.2215909957885742,0.1930689960718155,0.5,0,0.8011360168457031,0.1732670068740845,0.9374999403953552,0.5,0.9147729873657227,0.9257429838180542,0.5,0.9653469920158386,0.09659089893102646,0.9158419966697693,0.05681819841265678,0.5],0]]]],[],false,false,696314262555450,[],null],["t197",6,false,[],0,0,null,[["Default",0,false,1,0,false,513214045358858,[["images/marksmen_skeleton_piece_of_cloth_front-sheet0.png",3696,0,0,136,78,1,0,0,[],[0.08823529630899429,0.1538459956645966,0.5,0,0.9191179871559143,0.1410260051488876,0.9485290050506592,0.5,0.8382350206375122,0.7179489731788635,0.5,0.9358969926834106,0.25,0.5641030073165894,0.05147060006856918,0.5],0]]]],[],false,false,305300479191807,[],null],["t198",6,false,[],0,0,null,[["Default",0,false,1,0,false,732342863440934,[["images/marksmen_skeleton_belt-sheet0.png",6635,0,0,163,76,1,0,0,[],[0.05521469935774803,0.1184210032224655,0.4969330132007599,0.02631580084562302,0.9386500120162964,0.1315789967775345,0.9447849988937378,0.5,0.9263799786567688,0.842104971408844,0.4969330132007599,0.9736840128898621,0.05521469935774803,0.8815789818763733],0]]]],[],false,false,623875963606807,[],null],["t199",6,false,[],0,0,null,[["Default",0,false,1,0,false,800576009159697,[["images/marksmen_skeleton_head-sheet0.png",15321,0,0,254,216,1,0,0,[],[0.2322829961776733,0.2731480002403259,0.5,0.02777780033648014,0.8267719745635986,0.2037039995193481,0.8858270049095154,0.5,0.7952759861946106,0.7592589855194092,0.5,0.9629629850387573,0.1692910045385361,0.8009259700775147,0.07480320334434509,0.5],0],["images/marksmen_skeleton_head-sheet1.png",11729,0,0,254,216,1,0,0,[],[0.2322829961776733,0.2731480002403259,0.5,0.02777780033648014,0.8267719745635986,0.2037039995193481,0.8858270049095154,0.5,0.7952759861946106,0.7592589855194092,0.5,0.9629629850387573,0.1692910045385361,0.8009259700775147,0.07480320334434509,0.5],0]]]],[],false,false,208991012953238,[],null],["t200",6,false,[],0,0,null,[["Default",0,false,1,0,false,721493536105829,[["images/cannonboy_skeleton_armr-sheet0.png",1350,0,0,52,123,1,0,0,[],[0.25,0.1056910008192062,0.5,0.0243902001529932,0.9230769872665405,0.03252030164003372,0.8653849959373474,0.4959349930286408,0.8653849959373474,0.9430890083312988,0.5,0.9918699860572815,0.09615380316972733,0.9593499898910523,0.2307689934968948,0.4959349930286408],0]]]],[],false,false,283316286824714,[],null],["t201",6,false,[],0,0,null,[["Default",0,false,1,0,false,441230146330077,[["images/cannonboy_skeleton_elbowr-sheet0.png",1352,0,0,57,113,1,0,0,[],[0.2456140071153641,0.1238939985632896,0.4912280142307282,0.01769910007715225,0.8947370052337647,0.05309730023145676,0.7719299793243408,0.4955750107765198,0.7719299793243408,0.8849560022354126,0.4912280142307282,0.964601993560791,0.105263002216816,0.9469029903411865,0.035087700933218,0.4955750107765198],0]]]],[],false,false,928031647357683,[],null],["t202",6,false,[],0,0,null,[["Default",0,false,1,0,false,449837621335548,[["images/cannonboy_skeleton_handr-sheet0.png",1571,0,0,82,74,1,0,0,[],[0.1341460049152374,0.1486490070819855,0.5,0.04054050147533417,0.7439020276069641,0.2837840020656586,1,0.5,0.5853660106658936,0.5405409932136536,0.5,0.8108109831809998,0.0853658989071846,0.9054049849510193,0,0.5],0]]]],[],false,false,975501559624292,[],null],["t203",6,false,[],0,0,null,[["Default",0,false,1,0,false,339101363379198,[["images/marksmen_skeleton_bow_string_1-sheet0.png",119,0,0,2,217,1,0,0,[],[0.5,0.004608289804309607,0.5,0,1,0,1,1,0,1,0,0.4976960122585297],0]]]],[],false,false,831291525529367,[],null],["t204",6,false,[],0,0,null,[["Default",0,false,1,0,false,538045979052057,[["images/marksmen_skeleton_bow_string_1-sheet0.png",119,0,0,2,217,1,0,0,[],[0.5,0.004608289804309607,0.5,0,1,0,1,1,0,1,0,0.4976960122585297],0]]]],[],false,false,958481012915355,[],null],["t205",6,false,[],0,0,null,[["Default",0,false,1,0,false,512642545728588,[["images/mysteriousmage_skeleton_arm-sheet0.png",1968,0,0,98,168,1,0,0,[],[0.06122450157999992,0.0357142984867096,0.5,0.01190480031073093,0.9489799737930298,0.0297618992626667,0.8265309929847717,0.5,0.7959179878234863,0.880952000617981,0.5,0.9702379703521729,0.2244900017976761,0.869047999382019,0.03061220049858093,0.5],0]]]],[],false,false,248248366517397,[],null],["t206",6,false,[],0,0,null,[["Default",0,false,1,0,false,372396578652025,[["images/evilmage_skeleton_elbow-sheet0.png",1542,0,0,82,50,1,0,0,[],[0.1951220035552979,0.3199999928474426,0.5,0.1000000014901161,0.9146339893341065,0.1400000005960465,0.9512190222740173,0.5,0.8414629697799683,0.7400000095367432,0.5,0.9800000190734863,0.09756100177764893,0.8399999737739563,0.3902440071105957,0.5],0]]]],[],false,false,290902442029613,[],null],["t207",6,false,[],0,0,null,[["Default",0,false,1,0,false,400451854076845,[["images/mysteriousmage_skeleton_arml-sheet0.png",1792,0,0,82,148,1,0,0,[],[0.06097560003399849,0.03378380089998245,0.5,0.01351349987089634,0.7439020276069641,0.1418920010328293,0.8902440071105957,0.5,0.6951220035552979,0.831080973148346,0.5,1,0.1219509989023209,0.9324319958686829,0.07317069917917252,0.5],0]]]],[],false,false,182502413058616,[],null],["t208",6,false,[],0,0,null,[["Default",0,false,1,0,false,635875619623899,[["images/mysteriousmage_skeleton_torso-sheet0.png",8655,0,0,261,352,1,0,0,[],[0.1609199941158295,0.119318000972271,0.4980840086936951,0.005681820213794708,0.8429120182991028,0.1164769977331162,0.9616860151290894,0.5,0.9501919746398926,0.9630680084228516,0.4980840086936951,0.9176139831542969,0.180077001452446,0.8664770126342773,0.003831420093774796,0.5],0]]]],[],false,false,745605070060028,[],null],["t209",6,false,[],0,0,null,[["Default",0,false,1,0,false,691077764218321,[["images/mysteriousmage_skeleton_head-sheet0.png",7720,0,0,282,228,1,0,0,[],[0.148936003446579,0.1842110008001328,0.5,0.01315790042281151,0.8368790149688721,0.2017540037631989,0.9858160018920898,0.5,0.9007089734077454,0.8771929740905762,0.5,0.9868419766426086,0.2163120061159134,0.7324560284614563,0.007092200219631195,0.5],0]]]],[],false,false,547910102079581,[],null],["t210",6,false,[],0,0,null,[["Default",0,false,1,0,false,637376289388178,[["images/evilmage_skeleton_handl-sheet0.png",2807,0,0,89,75,1,0,0,[],[0.1460669934749603,0.173333004117012,0.4943819940090179,0.02666670083999634,0.7528089880943298,0.2933329939842224,1,0.4933330118656158,0.8876399993896484,0.8666669726371765,0.4943819940090179,0.9599999785423279,0.2134830057621002,0.7466670274734497,0.06741569936275482,0.4933330118656158],0]]]],[],false,false,704187796950095,[],null],["t211",6,false,[],0,0,null,[["Default",0,false,1,0,false,356075864076355,[["images/cannonboy_skeleton_arml-sheet0.png",1346,0,0,50,123,1,0,0,[],[0.1000000014901161,0.04065040126442909,0.5,0.0243902001529932,0.7799999713897705,0.08943089842796326,0.7799999713897705,0.4959349930286408,0.9200000166893005,0.9674800038337708,0.5,1,0.119999997317791,0.9512190222740173],0]]]],[],false,false,427078055357988,[],null],["t212",6,false,[],0,0,null,[["Default",0,false,1,0,false,679846412586384,[["images/sharpshooter_skeleton_feetl-sheet0.png",643,0,0,71,28,1,0,0,[],[0.02816900052130222,0.07142859697341919,0.4929580092430115,0.2857140004634857,0.7746480107307434,0.5714290142059326,0.7183099985122681,0.5,0.9859150052070618,0.9642859697341919,0.4929580092430115,1,0.01408450026065111,0.9642859697341919],0]]]],[],false,false,385716431918139,[],null],["t213",6,false,[],0,0,null,[["Default",0,false,1,0,false,582739476140741,[["images/marksmen_skeleton_arrow-sheet0.png",1335,0,0,23,195,1,0,0,[],[0.434783011674881,0.05128210037946701,0.4782609939575195,0.04102560132741928,0.6521739959716797,0.04102560132741928,0.7391300201416016,0.9692310094833374,0.4782609939575195,0.9743589758872986,0.434783011674881,0.9487180113792419],0]]]],[],false,false,443326686806314,[],null],["t214",6,false,[],0,0,null,[["Default",0,false,1,0,false,566671954973352,[["images/sharpshooter_skeleton_hips-sheet0.png",1158,0,0,150,62,1,0,0,[],[0.006666670087724924,0.01612900011241436,0.5,0.08064520359039307,0.9866669774055481,0.03225810080766678,0.9733330011367798,0.5,0.9333329796791077,0.8387100100517273,0.5,1,0.1400000005960465,0.6612899899482727,0.05333330109715462,0.5],0]]]],[],false,false,838138608065629,[],null],["t215",6,false,[],0,0,null,[["Default",0,false,1,0,false,686025712513323,[["images/sharpshooter_skeleton_lower_legr_000-sheet0.png",2377,0,0,60,102,1,0,0,[],[0.2833330035209656,0.1666669994592667,0.5,0.01960779912769795,0.8500000238418579,0.08823529630899429,1,0.5,0.800000011920929,0.8823530077934265,0.5,1,0.2000000029802322,0.8823530077934265,0.05000000074505806,0.5],0]]]],[],false,false,273068274881719,[],null],["t216",6,false,[],0,0,null,[["Default",0,false,1,0,false,748229820009562,[["images/sharpshooter_skeleton_feetr_000-sheet0.png",645,0,0,50,24,1,0,0,[],[0.119999997317791,0.25,0.5,0.04166670143604279,0.8799999952316284,0.25,0.9599999785423279,0.5,0.9800000190734863,0.9583330154418945,0.5,0.9583330154418945,0.03999999910593033,0.9166669845581055,0.07999999821186066,0.5],0],["images/sharpshooter_skeleton_feetl-sheet0.png",643,0,0,71,28,1,0,0,[],[0.02816900052130222,0.07142859697341919,0.4929580092430115,0.2857140004634857,0.7746480107307434,0.5714290142059326,0.7183099985122681,0.5,0.9859150052070618,0.9642859697341919,0.4929580092430115,1,0.01408450026065111,0.9642859697341919],0]]]],[],false,false,910489576634328,[],null],["t217",6,false,[],0,0,null,[["Default",0,false,1,0,false,160030100401084,[["images/sharpshooter_skeleton_elbowl-sheet0.png",3469,0,0,72,97,1,0,0,[],[0.125,0.09278350323438644,0.5,0.01030930038541555,0.9166669845581055,0.06185569986701012,0.9444440007209778,0.4948450028896332,0.7916669845581055,0.8453609943389893,0.5,0.9278349876403809,0.1944440007209778,0.8556699752807617,0.04166670143604279,0.4948450028896332],0]]]],[],false,false,943663708596938,[],null],["t218",6,false,[],0,0,null,[["Default",0,false,1,0,false,466452671178840,[["images/cannonboy_skeleton_handl-sheet0.png",720,0,0,56,42,1,0,0,[],[0.1785710006952286,0.2380950003862381,0.5,0,0.8214290142059326,0.2380950003862381,0.9464290142059326,0.5,0.982142984867096,0.9761899709701538,0.5,0.9761899709701538,0.1607140004634857,0.7857139706611633,0.0357142984867096,0.5],0]]]],[],false,false,148222155356395,[],null],["t219",6,false,[],0,0,null,[["Default",0,false,1,0,false,811764844533046,[["images/marksmen_skeleton_sword-sheet0.png",6760,0,0,88,450,1,0,0,[],[0.05681819841265678,0.01111110020428896,0.5,0.1044439971446991,0.4886359870433807,0.1000000014901161,0.75,0.5,0.4659090042114258,0.8955559730529785,0.5,0.886667013168335,0.03409089893102646,0.9933329820632935,0.6363639831542969,0.5],0]]]],[],false,false,716633581049166,[],null],["t220",6,false,[],0,0,null,[["Default",0,false,1,0,false,641109467151983,[["images/cannonboy_skeleton_hand_grab-sheet0.png",1254,0,0,55,51,1,0,0,[],[0.03636360168457031,0.03921569883823395,0.9636359810829163,0.03921569883823395,1,0.4901959896087647,0.8727269768714905,0.8627449870109558,0.4909090101718903,0.9607840180397034,0.1818179935216904,0.8039219975471497,0.09090910106897354,0.4901959896087647],0]]]],[],false,false,390320030195522,[],null],["t221",6,false,[],0,0,null,[["Default",0,false,1,0,false,579746351844859,[["images/sharpshooter_skeleton_lower_legl-sheet0.png",3371,0,0,75,110,1,0,0,[],[0.239999994635582,0.1636359989643097,0.4933330118656158,0.009090909734368324,0.8266670107841492,0.1181820034980774,0.8133329749107361,0.5,0.7200000286102295,0.8090909719467163,0.4933330118656158,1,0.1866669952869415,0.8727269768714905,0.01333330012857914,0.5],0]]]],[],false,false,136912156098520,[],null],["t222",6,false,[],0,0,null,[["Default",0,false,1,0,false,386162727049912,[["images/sharpshooter_skeleton_legl-sheet0.png",4283,0,0,73,130,1,0,0,[],[0.1232879981398583,0.06923080235719681,0.4931510090827942,0.007692310027778149,0.8356159925460815,0.09230770170688629,0.9726030230522156,0.5,0.9041100144386292,0.946153998374939,0.4931510090827942,0.8615379929542542,0.3424659967422485,0.8076919913291931,0.2191780060529709,0.5],0]]]],[],false,false,981412721321505,[],null],["t223",6,false,[],0,0,null,[["Default",0,false,1,0,false,839141401164275,[["images/sharpshooter_skeleton_legr-sheet0.png",2647,0,0,75,120,1,0,0,[],[0.1466670036315918,0.09166669845581055,0.4933330118656158,0.008333330042660236,0.8933330178260803,0.06666669994592667,0.8399999737739563,0.5,0.7200000286102295,0.824999988079071,0.4933330118656158,1,0.1333329975605011,0.9166669845581055,0.01333330012857914,0.5],0]]]],[],false,false,734593898706768,[],null],["t224",6,false,[],0,0,null,[["Default",0,false,1,0,false,692999327059872,[["images/sharpshooter_skeleton_lower_legr_000-sheet0.png",2377,0,0,60,102,1,0,0,[],[0.2833330035209656,0.1666669994592667,0.5,0.01960779912769795,0.8500000238418579,0.08823529630899429,1,0.5,0.800000011920929,0.8823530077934265,0.5,1,0.2000000029802322,0.8823530077934265,0.05000000074505806,0.5],0],["images/sharpshooter_skeleton_lower_legl-sheet0.png",3371,0,0,75,110,1,0,0,[],[0.239999994635582,0.1636359989643097,0.4933330118656158,0.009090909734368324,0.8266670107841492,0.1181820034980774,0.8133329749107361,0.5,0.7200000286102295,0.8090909719467163,0.4933330118656158,1,0.1866669952869415,0.8727269768714905,0.01333330012857914,0.5],0]]]],[],false,false,607082599423541,[],null],["t225",6,false,[],0,0,null,[["Default",0,false,1,0,false,600077478699815,[["images/sharpshooter_skeleton_feetr_000-sheet0.png",645,0,0,50,24,1,0,0,[],[0.119999997317791,0.25,0.5,0.04166670143604279,0.8799999952316284,0.25,0.9599999785423279,0.5,0.9800000190734863,0.9583330154418945,0.5,0.9583330154418945,0.03999999910593033,0.9166669845581055,0.07999999821186066,0.5],0],["images/sharpshooter_skeleton_feetl-sheet0.png",643,0,0,71,28,1,0,0,[],[0.02816900052130222,0.07142859697341919,0.4929580092430115,0.2857140004634857,0.7746480107307434,0.5714290142059326,0.7183099985122681,0.5,0.9859150052070618,0.9642859697341919,0.4929580092430115,1,0.01408450026065111,0.9642859697341919],0]]]],[],false,false,432176133263436,[],null],["t226",6,false,[],0,0,null,[["Default",0,false,1,0,false,820239010672760,[["images/sharpshooter_skeleton_quiver-sheet0.png",8605,0,0,76,274,1,0,0,[],[0.07894740253686905,0.02189780026674271,0.5,0.06569340080022812,0.7368419766426086,0.07299269735813141,0.8552629947662354,0.5,0.7236840128898621,0.9233580231666565,0.5,0.9854009747505188,0.2105260044336319,0.9416059851646423,0.05263160169124603,0.5],0]]]],[],false,false,245176607189891,[],null],["t227",6,false,[],0,0,null,[["Default",0,false,1,0,false,255904512952440,[["images/sharpshooter_skeleton_torso-sheet0.png",13734,0,0,178,223,1,0,0,[],[0.1685390025377274,0.1345289945602417,0.5,0.1569509953260422,0.9325839877128601,0.0538116991519928,0.8876399993896484,0.4977580010890961,0.6179770231246948,0.6950669884681702,0.5,1,0.3314610123634338,0.7354260087013245,0.06741569936275482,0.4977580010890961],0]]]],[],false,false,796686124277576,[],null],["t228",6,false,[],0,0,null,[["Default",0,false,1,0,false,167088571957949,[["images/sharpshooter_skeleton_piece_of_cloth_front-sheet0.png",4487,0,0,76,92,1,0,0,[],[0.1184210032224655,0.09782610088586807,0.5,0,0.907895028591156,0.07608699798583984,0.934211015701294,0.5,0.7894740104675293,0.8260869979858398,0.5,0.8586959838867188,0.3815790116786957,0.6847829818725586,0.03947370126843453,0.5],0]]]],[],false,false,636807594427757,[],null],["t229",6,false,[],0,0,null,[["Default",0,false,1,0,false,604395205859922,[["images/sharpshooter_skeleton_belt-sheet0.png",1903,0,0,160,30,1,0,0,[],[0.05624999850988388,0.300000011920929,0.9874999523162842,0.06666669994592667,1,0.5,0.9374999403953552,0.6666669845581055,0.5,0.8999999761581421,0.04374999925494194,0.7666670083999634,0.03125,0.5],0]]]],[],false,false,421651642991520,[],null],["t230",6,false,[],0,0,null,[["Default",0,false,1,0,false,502633840808522,[["images/sharpshooter_skeleton_head-sheet0.png",57217,1,1,212,291,1,0,0,[],[0.2405660003423691,0.175257995724678,0.5,0.07216490060091019,0.7594339847564697,0.175257995724678,0.9905660152435303,0.4982819855213165,0.8679249882698059,0.9037799835205078,0.5,0.9793810248374939,0.2594340145587921,0.8109970092773438,0.004716979805380106,0.4982819855213165],0],["images/sharpshooter_skeleton_head-sheet0.png",57217,215,1,212,291,1,0,0,[],[0.2405660003423691,0.175257995724678,0.5,0.07216490060091019,0.7594339847564697,0.175257995724678,0.9905660152435303,0.4982819855213165,0.8679249882698059,0.9037799835205078,0.5,0.9793810248374939,0.2594340145587921,0.8109970092773438,0.004716979805380106,0.4982819855213165],0]]]],[],false,false,821793061568644,[],null],["t231",6,false,[],0,0,null,[["Default",0,false,1,0,false,209934318978234,[["images/sharpshooter_skeleton_armr-sheet0.png",3240,0,0,57,114,1,0,0,[],[0.2105260044336319,0.105263002216816,0.4912280142307282,0.008771929889917374,0.8596490025520325,0.07017540186643601,0.8947370052337647,0.5,0.807017982006073,0.9035090208053589,0.4912280142307282,1,0.07017540186643601,0.9649119973182678,0.1754390001296997,0.5],0]]]],[],false,false,414976008993198,[],null],["t232",6,false,[],0,0,null,[["Default",0,false,1,0,false,701032445439139,[["images/cannonboy_skeleton_elbowr-sheet0.png",1352,0,0,57,113,1,0,0,[],[0.2456140071153641,0.1238939985632896,0.4912280142307282,0.01769910007715225,0.8947370052337647,0.05309730023145676,0.7719299793243408,0.4955750107765198,0.7719299793243408,0.8849560022354126,0.4912280142307282,0.964601993560791,0.105263002216816,0.9469029903411865,0.035087700933218,0.4955750107765198],0]]]],[],false,false,520221473220801,[],null],["t233",6,false,[],0,0,null,[["Default",0,false,1,0,false,417429020370220,[["images/cannonboy_skeleton_handr-sheet0.png",1571,0,0,82,74,1,0,0,[],[0.1341460049152374,0.1486490070819855,0.5,0.04054050147533417,0.7439020276069641,0.2837840020656586,1,0.5,0.5853660106658936,0.5405409932136536,0.5,0.8108109831809998,0.0853658989071846,0.9054049849510193,0,0.5],0]]]],[],false,false,127075059774571,[],null],["t234",6,false,[],0,0,null,[["Default",0,false,1,0,false,382024453671606,[["images/marksmen_skeleton_bow_string_1-sheet0.png",119,0,0,2,217,1,0,0,[],[0.5,0.004608289804309607,0.5,0,1,0,1,1,0,1,0,0.4976960122585297],0]]]],[],false,false,778264581845858,[],null],["t235",6,false,[],0,0,null,[["Default",0,false,1,0,false,437657228211693,[["images/marksmen_skeleton_bow_string_1-sheet0.png",119,0,0,2,217,1,0,0,[],[0.5,0.004608289804309607,0.5,0,1,0,1,1,0,1,0,0.4976960122585297],0]]]],[],false,false,354206661333680,[],null],["t236",6,false,[],0,0,null,[["Default",0,false,1,0,false,748828028082001,[["images/sharpshooter_skeleton_shoulder_armor-sheet0.png",4058,0,0,99,100,1,0,0,[],[0.3737370073795319,0.3700000047683716,0.4949490129947662,0.3499999940395355,0.6565660238265991,0.3400000035762787,0.9191920161247253,0.5,0.8989899754524231,0.8999999761581421,0.4949490129947662,0.8999999761581421,0.2727270126342773,0.7300000190734863,0.08080810308456421,0.5],0]]]],[],false,false,662093661887800,[],null],["t237",6,false,[],0,0,null,[["Default",0,false,1,0,false,948598652624971,[["images/summoner_skeleton_arml-sheet0.png",3991,0,0,148,253,1,0,0,[],[0.1554049998521805,0.09090910106897354,0.5,0.2292490005493164,0.5472970008850098,0.2648220062255859,0.9932429790496826,0.4980239868164063,0.8918920159339905,0.9367589950561523,0.5,0.810276985168457,0.4121620059013367,0.7588930130004883,0.06756760179996491,0.4980239868164063],0]]]],[],false,false,851113431295273,[],null],["t238",6,false,[],0,0,null,[["Default",0,false,1,0,false,950045006584914,[["images/summoner_skeleton_glow-sheet0.png",16773,0,0,248,248,1,0,0,[],[0.3266130089759827,0.3266130089759827,0.5,0.25,0.6774190068244934,0.3225809931755066,0.7540320158004761,0.5,0.6814519762992859,0.6814519762992859,0.5,0.7540320158004761,0.3225809931755066,0.6774190068244934,0.25,0.5],0]]]],[],false,false,683143447961449,[],null],["t239",6,false,[],0,0,null,[["Default",0,false,1,0,false,196256896284609,[["images/summoner_skeleton_glow-sheet0.png",16773,0,0,248,248,1,0,0,[],[0.3266130089759827,0.3266130089759827,0.5,0.25,0.6774190068244934,0.3225809931755066,0.7540320158004761,0.5,0.6814519762992859,0.6814519762992859,0.5,0.7540320158004761,0.3225809931755066,0.6774190068244934,0.25,0.5],0]]]],[],false,false,487147142866000,[],null],["t240",6,false,[],0,0,null,[["Default",0,false,1,0,false,453001159491657,[["images/summoner_fireball_fireball_1-sheet0.png",235497,1,1,958,315,1,0,0,[],[0.5,0.3904759883880615,0.9029229879379273,0.2952379882335663,0.9415450096130371,0.4984129965305328,0.8935279846191406,0.6761900186538696,0.5,0.4888890087604523,0.3340289890766144,0.4984129965305328],0],["images/summoner_fireball_fireball_1-sheet0.png",235497,1,318,958,315,1,0,0,[],[0.1544889956712723,0.4698410034179688,0.5,0.4476189911365509,0.8997910022735596,0.3047620058059692,0.9363260269165039,0.4984129965305328,0.8924840092658997,0.6730160117149353,0.5,0.4952380061149597,0.146137997508049,0.5555559992790222,0.1492689996957779,0.4984129965305328],0],["images/summoner_fireball_fireball_1-sheet0.png",235497,1,635,958,315,1,0,0,[],[0.5,0.4031749963760376,0.9050099849700928,0.2888889908790588,0.9331939816474915,0.4984129965305328,0.8997910022735596,0.6952379941940308,0.5,0.5555559992790222,0.4916490018367767,0.4984129965305328],0]]]],[],false,false,673076264670132,[],null],["t241",6,false,[],0,0,null,[["Default",0,false,1,0,false,245361824803696,[["images/summoner_skeleton_feetr-sheet0.png",2870,0,0,81,104,1,0,0,[],[0.2345679998397827,0.1826920062303543,0.4938269853591919,0.0192307997494936,0.8765429854393005,0.09615380316972733,0.9506170153617859,0.5,0.8395059704780579,0.875,0.4938269853591919,0.8653849959373474,0.2592589855194092,0.7980769872665405,0.0123456995934248,0.5],0]]]],[],false,false,911021526884683,[],null],["t242",6,false,[],0,0,null,[["Default",0,false,1,0,false,495549657901408,[["images/summoner_skeleton_feetl-sheet0.png",4096,0,0,96,100,1,0,0,[],[0.28125,0.2700000107288361,0.5,0.009999999776482582,0.8645830154418945,0.1299999952316284,0.9895830154418945,0.5,0.8333330154418945,0.8399999737739563,0.5,0.9300000071525574,0.05208329856395721,0.949999988079071,0.1458330005407333,0.5],0]]]],[],false,false,947455214542489,[],null],["t243",6,false,[],0,0,null,[["Default",0,false,1,0,false,129194139052705,[["images/summoner_skeleton_torso-sheet0.png",34471,0,0,274,368,1,0,0,[],[0.1167879998683929,0.08695650100708008,0.5,0.002717389957979322,0.9160580039024353,0.0625,0.9635040163993835,0.5,0.8795620203018189,0.9103260040283203,0.5,0.9891300201416016,0.1167879998683929,0.9130430221557617,0.1459850072860718,0.5],0],["images/summoner_skeleton_torso-sheet1.png",35774,0,0,274,368,1,0,0,[],[0.1167879998683929,0.08695650100708008,0.5,0.002717389957979322,0.9160580039024353,0.0625,0.9635040163993835,0.5,0.8795620203018189,0.9103260040283203,0.5,0.9891300201416016,0.1167879998683929,0.9130430221557617,0.1459850072860718,0.5],0]]]],[],false,false,475033944009149,[],null],["t244",6,false,[],0,0,null,[["Default",0,false,1,0,false,425662836302978,[["images/summoner_skeleton_scarfback-sheet0.png",1320,0,0,261,100,1,0,0,[],[0.03831420093774796,0.1000000014901161,0.4980840086936951,0.009999999776482582,0.8888890147209168,0.2899999916553497,0.9770119786262512,0.5,0.9272029995918274,0.8100000023841858,0.4980840086936951,0.9599999785423279,0.1187739968299866,0.6899999976158142,0.08045980334281921,0.5],0]]]],[],false,false,810663628402404,[],null],["t245",6,false,[],0,0,null,[["Default",0,false,1,0,false,442929792636118,[["images/summoner_skeleton_head-sheet1.png",3473,0,0,231,189,1,0,0,[],[0.1082250028848648,0.1322750002145767,0.4978350102901459,0,0.8787879943847656,0.1481480002403259,0.9740260243415833,0.4973550140857697,0.8658009767532349,0.8359789848327637,0.4978350102901459,0.9523810148239136,0.1212119981646538,0.8518519997596741,0.008658009581267834,0.4973550140857697],0],["images/summoner_skeleton_head-sheet0.png",11709,0,0,239,189,1,0,0,[],[0.1046029999852181,0.1322750002145767,0.4979079961776733,0,0.8702930212020874,0.1640210002660751,0.9414229989051819,0.4973550140857697,0.8577409982681274,0.8201059699058533,0.4979079961776733,1,0.1171550005674362,0.8518519997596741,0.008368199691176415,0.4973550140857697],0]]]],[],false,false,839338265379405,[],null],["t246",6,false,[],0,0,null,[["Default",0,false,1,0,false,216378732429341,[["images/summoner_skeleton_scarffront-sheet0.png",14148,1,172,281,165,1,0,0,[],[0.05338079854846001,0.09090910106897354,0.4982210099697113,0.418181985616684,0.7900360226631165,0.3575760126113892,0.9750890135765076,0.496969997882843,0.8540930151939392,0.7515149712562561,0.4982210099697113,0.9575759768486023,0.2028470039367676,0.6545450091362,0.06761570274829865,0.496969997882843],0],["images/summoner_skeleton_scarffront-sheet0.png",14148,1,1,281,169,1,0,0,[],[0.0604982003569603,0.1005920022726059,0.4982210099697113,0.4378699958324432,0.77224200963974,0.3786979913711548,0.9750890135765076,0.4970409870147705,0.8540930151939392,0.7573959827423096,0.4982210099697113,0.9644969701766968,0.1992879956960678,0.6686390042304993,0.04626329988241196,0.4970409870147705],0]]]],[],false,false,206391990724334,[],null],["t247",6,false,[],0,0,null,[["Default",0,false,1,0,false,967981889326394,[["images/summoner_skeleton_armr-sheet0.png",4604,0,0,129,174,1,0,0,[],[0.1782950013875961,0.1321839988231659,0.4961239993572235,0.005747130140662193,0.8604649901390076,0.1034480035305023,0.9767439961433411,0.5,0.7131779789924622,0.7873560190200806,0.4961239993572235,0.9367820024490356,0.2325579971075058,0.8275859951972961,0.02325580082833767,0.5],0]]]],[],false,false,545789752184595,[],null],["t248",6,false,[],0,0,null,[["Default",0,false,1,0,false,424019082109047,[["images/summoner_skeleton_elbowr-sheet0.png",1649,0,0,70,59,1,0,0,[],[0.08571430295705795,0.1016950011253357,0.5,0.1186439990997315,0.7428569793701172,0.3050850033760071,0.8857139945030212,0.4915249943733215,0.9285709857940674,0.9152539968490601,0.5,0.9322029948234558,0.2428569942712784,0.7118639945983887,0.08571430295705795,0.4915249943733215],0]]]],[],false,false,231091105877888,[],null],["t249",6,false,[],0,0,null,[["Default",0,false,1,0,false,878409912582068,[["images/summoner_skeleton_handr-sheet0.png",2429,0,0,84,70,1,0,0,[],[0.1547619998455048,0.1857140064239502,0.5,0.01428570039570332,0.6428570151329041,0.4285709857940674,1,0.5,0.8214290142059326,0.7857139706611633,0.5,0.9285709857940674,0.07142859697341919,0.9142860174179077,0.07142859697341919,0.5],0]]]],[],false,false,624116883887673,[],null],["t250",6,false,[],0,0,null,[["Default",0,false,1,0,false,633106022069269,[["images/summoner_skeleton_handl-sheet0.png",28156,1,1,255,160,1,0,0,[],[0.3215689957141876,0.5125000476837158,0.4980390071868897,0.331250011920929,0.9333329796791077,0.1062500029802322,0.8156859874725342,0.5,0.764706015586853,0.625,0.4980390071868897,1,0.1490200012922287,0.7625000476837158,0.3333329856395721,0.5],0],["images/summoner_skeleton_handl-sheet0.png",28156,258,1,162,135,1,0,0,[],[0.2839510142803192,0.3407410085201263,0.5,0.1629630029201508,0.8395059704780579,0.1925929933786392,0.8395059704780579,0.4962959885597229,0.7283949851989746,0.6740739941596985,0.5,0.9851850271224976,0.1049380004405975,0.8740739822387695,0.1851850003004074,0.4962959885597229],0]]]],[],false,false,939265327622140,[],null],["t251",6,false,[],0,0,null,[["Default",0,false,1,0,false,641851360001860,[["images/gianthand_skeleton_elbow-sheet0.png",6427,0,0,253,504,1,0,0,[],[0.2727270126342773,0.1369049996137619,0.4980239868164063,0.03373020142316818,0.9169960021972656,0.04166670143604279,0.968379020690918,0.5,0.7588930130004883,0.8789680004119873,0.4980239868164063,0.9861109852790833,0.1067190021276474,0.9464290142059326,0.2490119934082031,0.5],0]]]],[],false,false,297800849658984,[],null],["t252",6,false,[],0,0,null,[["Default",0,false,1,0,false,244993929726912,[["images/gianthand_skeleton_portal-sheet0.png",807,0,0,351,103,1,0,0,[],[0.07122509926557541,0.2427179962396622,0.4985759854316711,0,0.9287750124931335,0.2427179962396622,1,0.4951460063457489,0.9316239953041077,0.7669900059700012,0.4985759854316711,1,0.06837610155344009,0.7669900059700012,0,0.4951460063457489],0]]]],[],false,false,896684022093064,[],null],["t253",6,false,[],0,0,null,[["Default",0,false,1,0,false,224778399141233,[["images/gianthand_skeleton_finger_4_2-sheet0.png",1372,0,0,67,133,1,0,0,[],[0.2388059943914414,0.1203010007739067,0.4925369918346405,0.01503759995102882,0.8059700131416321,0.09774439781904221,0.8358209729194641,0.4962410032749176,0.9253730177879334,0.9624059796333313,0.4925369918346405,1,0.08955220133066177,0.9548869729042053,0.3134329915046692,0.4962410032749176],0]]]],[],false,false,744558292225880,[],null],["t254",6,false,[],0,0,null,[["Default",0,false,1,0,false,944050702560760,[["images/gianthand_skeleton_finger_4_1-sheet0.png",2288,0,0,83,225,1,0,0,[],[0.2771080136299133,0.1022220030426979,0.4939759969711304,0.01777780055999756,0.8795179724693298,0.04444440081715584,0.6987950205802918,0.4977779984474182,0.7590360045433044,0.9111109972000122,0.4939759969711304,0.9822220206260681,0.1204819977283478,0.9555559754371643,0.337348997592926,0.4977779984474182],0]]]],[],false,false,969233523865126,[],null],["t255",6,false,[],0,0,null,[["Default",0,false,1,0,false,798060212356876,[["images/gianthand_skeleton_finger_4_3-sheet0.png",1026,0,0,47,91,1,0,0,[],[0.2340430021286011,0.1208790019154549,0.4893620014190674,0.01098900008946657,0.8936169743537903,0.05494510009884834,0.9361699819564819,0.494504988193512,0.8936169743537903,0.9450550079345703,0.4893620014190674,0.8791210055351257,0.2553189992904663,0.8681319952011108,0.2765960097312927,0.494504988193512],0]]]],[],false,false,955405262540981,[],null],["t256",6,false,[],0,0,null,[["Default",0,false,1,0,false,946786965463319,[["images/gianthand_skeleton_finger_4_4-sheet0.png",941,0,0,49,68,1,0,0,[],[0.1020409986376762,0.07352939993143082,0.4897960126399994,0.1029409989714623,0.5714290142059326,0.3088240027427673,0.9183670282363892,0.9411759972572327,0.4897960126399994,0.8823530077934265,0.1428570002317429,0.8970590233802795,0.2448980063199997,0.5],0]]]],[],false,false,728403961708487,[],null],["t257",6,false,[],0,0,null,[["Default",0,false,1,0,false,815919415262937,[["images/gianthand_skeleton_finger_3_4-sheet0.png",909,0,0,49,68,1,0,0,[],[0.1020409986376762,0.07352939993143082,0.4897960126399994,0.1323529928922653,0.5510200262069702,0.3235290050506592,0.9183670282363892,0.9411759972572327,0.4897960126399994,0.8823530077934265,0.1224490031599999,0.9117649793624878,0.2244900017976761,0.5],0]]]],[],false,false,302068475834306,[],null],["t258",6,false,[],0,0,null,[["Default",0,false,1,0,false,336613187870069,[["images/gianthand_skeleton_finger_3_3-sheet0.png",1154,0,0,66,106,1,0,0,[],[0.04545449838042259,0.02830190025269985,0.5,0.07547169923782349,0.6818180084228516,0.1981129944324493,0.7727270126342773,0.5,0.9393939971923828,0.9622640013694763,0.5,1,0.3333329856395721,0.7924529910087585,0.3939389884471893,0.5],0]]]],[],false,false,911401948000790,[],null],["t259",6,false,[],0,0,null,[["Default",0,false,1,0,false,520012812901640,[["images/gianthand_skeleton_finger_3_2-sheet0.png",1752,0,0,70,180,1,0,0,[],[0.08571430295705795,0.03333330154418945,0.5,0.05555560067296028,0.7428569793701172,0.1000000014901161,0.9142860174179077,0.9666669964790344,0.5,0.9833329916000366,0.1428570002317429,0.9444440007209778,0.3714289963245392,0.5],0]]]],[],false,false,334337590745289,[],null],["t260",6,false,[],0,0,null,[["Default",0,false,1,0,false,995770901014703,[["images/gianthand_skeleton_finger_3_1-sheet0.png",2073,0,0,71,242,1,0,0,[],[0.1971829980611801,0.05785119906067848,0.4929580092430115,0.004132229834794998,0.9014080166816711,0.02892559953033924,0.7464789748191834,0.5,0.7746480107307434,0.9338840246200562,0.4929580092430115,0.9917359948158264,0.1267610043287277,0.9628099799156189,0.4084509909152985,0.5],0]]]],[],false,false,832634318380141,[],null],["t261",6,false,[],0,0,null,[["Default",0,false,1,0,false,963816813071019,[["images/gianthand_skeleton_finger_2_3-sheet0.png",1493,0,0,64,102,1,0,0,[],[0.046875,0.02941180020570755,0.5,0.03921569883823395,0.84375,0.09803920239210129,0.78125,0.5,0.921875,0.950980007648468,0.5,1,0.140625,0.9117649793624878,0.1875,0.5],0]]]],[],false,false,852958583440982,[],null],["t262",6,false,[],0,0,null,[["Default",0,false,1,0,false,930752781362864,[["images/gianthand_skeleton_finger_2_4-sheet0.png",1013,0,0,44,72,1,0,0,[],[0.2272730022668839,0.1388889998197556,0.5,0.01388890016824007,0.7727270126342773,0.1388889998197556,0.75,0.5,0.9090909957885742,0.9444440007209778,0.5,0.9166669845581055,0.2272730022668839,0.8611109852790833,0.2954550087451935,0.5],0]]]],[],false,false,317324540404328,[],null],["t263",6,false,[],0,0,null,[["Default",0,false,1,0,false,292460325547753,[["images/gianthand_skeleton_finger_2_2-sheet0.png",1752,0,0,76,183,1,0,0,[],[0.07894740253686905,0.03278689831495285,0.5,0.01092899963259697,0.7763159871101379,0.09289620071649551,0.9210529923439026,0.967212975025177,0.5,1,0.06578949838876724,0.972678005695343,0.236842006444931,0.4972679913043976],0]]]],[],false,false,724544559336222,[],null],["t264",6,false,[],0,0,null,[["Default",0,false,1,0,false,945407295792447,[["images/gianthand_skeleton_finger_2_1-sheet0.png",2879,0,0,85,290,1,0,0,[],[0.2352939993143082,0.06896550208330154,0.4941180050373077,0,0.8705880045890808,0.03793099895119667,0.8470590114593506,0.5,0.7294120192527771,0.9206900000572205,0.4941180050373077,0.9793099761009216,0.1176469996571541,0.965516984462738,0.4352940022945404,0.5],0]]]],[],false,false,540662853522400,[],null],["t265",6,false,[],0,0,null,[["Default",0,false,1,0,false,114680125098327,[["images/gianthand_skeleton_finger_1_4-sheet0.png",956,0,0,44,72,1,0,0,[],[0.2727270126342773,0.1666669994592667,0.5,0.01388890016824007,0.8181819915771484,0.1111110001802445,0.7727270126342773,0.5,0.9090909957885742,0.9444440007209778,0.5,0.9027779698371887,0.25,0.8472219705581665,0.3181819915771484,0.5],0]]]],[],false,false,677876385896911,[],null],["t266",6,false,[],0,0,null,[["Default",0,false,1,0,false,530615148418516,[["images/gianthand_skeleton_finger_1_3-sheet0.png",1084,0,0,45,86,1,0,0,[],[0.1777780055999756,0.09302330017089844,0.4888890087604523,0,0.8444439768791199,0.08139540255069733,0.9777780175209045,0.5,0.9555559754371643,0.9767439961433411,0.4888890087604523,0.9883720278739929,0.1111110001802445,0.9418600201606751,0.2666670083999634,0.5],0]]]],[],false,false,149770029874401,[],null],["t267",6,false,[],0,0,null,[["Default",0,false,1,0,false,877703452397625,[["images/gianthand_skeleton_finger_1_2-sheet0.png",1869,0,0,68,156,1,0,0,[],[0.2058819979429245,0.08974359929561615,0.5,0.00641026021912694,0.8235290050506592,0.07692310214042664,0.8382350206375122,0.5,0.9117649793624878,0.9615380167961121,0.5,0.9935899972915649,0.08823529630899429,0.9615380167961121,0.2941179871559143,0.5],0]]]],[],false,false,952328482165539,[],null],["t268",6,false,[],0,0,null,[["Default",0,false,1,0,false,724694826966450,[["images/gianthand_skeleton_finger_1_1-sheet0.png",2845,0,0,85,289,1,0,0,[],[0.2352939993143082,0.06920419633388519,0.4941180050373077,0,0.8235290050506592,0.05190309882164002,0.8352940082550049,0.4982700049877167,0.9647060036659241,0.9896190166473389,0.4941180050373077,0.9446370005607605,0.09411759674549103,0.9723179936408997,0.3764710128307343,0.4982700049877167],0]]]],[],false,false,714715862921511,[],null],["t269",6,false,[],0,0,null,[["Default",0,false,1,0,false,449078482743473,[["images/gianthand_skeleton_thumb_2-sheet0.png",1239,0,0,51,98,1,0,0,[],[0.313726007938385,0.1632650047540665,0.4901959896087647,0.01020410005003214,0.784313976764679,0.112245000898838,0.9215689897537231,0.5,0.9019610285758972,0.9489799737930298,0.4901959896087647,0.989795982837677,0.137254998087883,0.9285709857940674,0.2941179871559143,0.5],0]]]],[],false,false,326172161465592,[],null],["t270",6,false,[],0,0,null,[["Default",0,false,1,0,false,289811008055275,[["images/gianthand_skeleton_thumb_1-sheet0.png",1658,0,0,63,139,1,0,0,[],[0.2698409855365753,0.1223020032048225,0.4920629858970642,0.03597119823098183,0.9206349849700928,0.03597119823098183,0.6984130144119263,0.4964030086994171,0.9365079998970032,0.971222996711731,0.4920629858970642,0.9856110215187073,0.1269840002059937,0.9424459934234619,0.2857140004634857,0.4964030086994171],0]]]],[],false,false,493405910385991,[],null],["t271",6,false,[],0,0,null,[["Default",0,false,1,0,false,101687980072608,[["images/gianthand_skeleton_thumb_0-sheet0.png",2023,0,0,66,211,1,0,0,[],[0.1666669994592667,0.05213269963860512,0.5,0.009478669613599777,0.7424240112304688,0.08056870102882385,0.7272729873657227,0.4976300001144409,0.7727270126342773,0.9289100170135498,0.5,1,0.1969700008630753,0.938389003276825,0.1212119981646538,0.4976300001144409],0]]]],[],false,false,228595649577398,[],null],["t272",6,false,[],0,0,null,[["Default",0,false,1,0,false,642519595910823,[["images/gianthand_skeleton_palm-sheet0.png",5059,0,0,334,249,1,0,0,[],[0.1467069983482361,0.1967869997024536,0.5,0.1646589934825897,0.9730539917945862,0.03614459931850433,0.9760479927062988,0.4979920089244843,0.8592810034751892,0.8112450242042542,0.5,1,0.155689001083374,0.7911649942398071,0.002994009992107749,0.4979920089244843],0]]]],[],false,false,827456926601002,[],null],["t273",6,false,[],0,0,null,[["Default",0,false,1,0,false,914247895866942,[["images/gianthand_skeleton_portal_front-sheet0.png",1162,0,0,410,124,1,0,0,[],[0.06829269975423813,0.2258059978485107,0.5,0.2741940021514893,0.9390239715576172,0.2016129940748215,0.9902439713478088,0.5,0.9121950268745422,0.70967698097229,0.5,1,0.09024389833211899,0.7016130089759827,0.0146340997889638,0.5],0]]]],[],false,false,726076677473381,[],null],["t274",6,false,[],0,0,null,[["Default",0,false,1,0,false,956358889946606,[["images/thegrimreaper_skeleton_arml-sheet0.png",2252,0,0,51,120,1,0,0,[],[0.2156859934329987,0.09166669845581055,0.4901959896087647,0.05000000074505806,0.9019610285758972,0.04166670143604279,0.9019610285758972,0.5,0.784313976764679,0.9083330035209656,0.4901959896087647,0.9333329796791077,0.313726007938385,0.8666669726371765,0.09803920239210129,0.5],0]]]],[],false,false,513985488051790,[],null],["t275",6,false,[],0,0,null,[["Default",0,false,1,0,false,561243406206836,[["images/thegrimreaper_skeleton_skulls-sheet0.png",3356,0,0,72,136,1,0,0,[],[0.6666669845581055,0.3529410064220429,0.5,0.4485290050506592,0.9027779698371887,0.05147060006856918,0.7222219705581665,0.5,0.7916669845581055,0.889706015586853,0.5,0.9485290050506592,0.4444440007209778,0.764706015586853,0.05555560067296028,0.5],0]]]],[],false,false,684425278154777,[],null],["t276",6,false,[],0,0,null,[["Default",0,false,1,0,false,283388577443533,[["images/thegrimreaper_skeleton_elbowl-sheet0.png",1680,0,0,37,76,1,0,0,[],[0.0810810998082161,0.03947370126843453,0.4864859879016876,0.06578949838876724,0.7567570209503174,0.1184210032224655,0.7297300100326538,0.5,0.5675680041313171,0.7894740104675293,0.4864859879016876,0.8947370052337647,0.1891890019178391,0.907895028591156],0]]]],[],false,false,167579732710595,[],null],["t277",6,false,[],0,0,null,[["Default",0,false,1,0,false,389081045562263,[["images/thegrimreaper_skeleton_hourglass-sheet0.png",6330,0,0,80,213,1,0,0,[],[0.5,0,0.487500011920929,0.1924879997968674,0.9374999403953552,0.4976530075073242,0.800000011920929,0.9248830080032349,0.5,1,0.2000000029802322,0.9248830080032349,0.1000000014901161,0.4976530075073242],0]]]],[],false,false,621633678094034,[],null],["t278",6,false,[],0,0,null,[["Default",0,false,1,0,false,990658415283984,[["images/thegrimreaper_skeleton_handl-sheet0.png",1201,0,0,47,64,1,0,0,[],[0.2765960097312927,0.203125,0.4893620014190674,0.046875,0.8510640263557434,0.109375,1,0.5,0.6808509826660156,0.765625,0.4893620014190674,0.84375,0.06382980197668076,0.953125,0.08510640263557434,0.5],0]]]],[],false,false,657204857517246,[],null],["t279",6,false,[],0,0,null,[["Default",0,false,1,0,false,875916733700560,[["images/thegrimreaper_skeleton_hips-sheet0.png",31765,1,347,318,333,1,0,0,[],[0.2452829927206039,0.2342340052127838,0.5,0.06906910240650177,0.839622974395752,0.1531530022621155,0.9685530066490173,0.4984979927539825,0.9748430252075195,0.9759759902954102,0.5,0.9969969987869263,0.05031450092792511,0.9519519805908203,0.1509429961442947,0.4984979927539825],0],["images/thegrimreaper_skeleton_hips-sheet0.png",31765,1,1,426,344,1,0,0,[],[0.1220659986138344,0.1511629968881607,0.5,0.1424420028924942,0.6807510256767273,0.395348995923996,0.7676060199737549,0.5,0.9976530075073242,0.9970930218696594,0.5,0.9941859841346741,0.1713619977235794,0.7877910137176514,0.08215960115194321,0.5],0],["images/thegrimreaper_skeleton_hips-sheet0.png",31765,429,1,432,327,1,0,0,[],[0.3958329856395721,0.5229359865188599,0.5,0.07951069623231888,0.8865739703178406,0.1498470008373261,0.9583330154418945,0.4984709918498993,0.9837960004806519,0.9785929918289185,0.5,0.9938840270042419,0.03935189917683601,0.9480119943618774,0.4004629850387573,0.4984709918498993],0],["images/thegrimreaper_skeleton_hips-sheet0.png",31765,429,330,384,327,1,0,0,[],[0.3463540077209473,0.4067279994487763,0.5,0.003058099886402488,0.8697919845581055,0.1529050022363663,0.9869790077209473,0.4984709918498993,0.9817709922790527,0.9785929918289185,0.5,0.9938840270042419,0.046875,0.944953978061676,0.3229170143604279,0.4984709918498993],0]]]],[],false,false,249013520933014,[],null],["t280",6,false,[],0,0,null,[["Default",0,false,1,0,false,303352794514315,[["images/thegrimreaper_skeleton_torso-sheet0.png",10330,0,0,252,241,1,0,0,[],[0.1984129995107651,0.2074690014123917,0.5,0,0.869047999382019,0.1369290053844452,0.8928570151329041,0.4979250133037567,0.7579370141029358,0.7468879818916321,0.5,0.950206995010376,0.08333329856395721,0.91286301612854,0.06349209696054459,0.4979250133037567],0],["images/thegrimreaper_skeleton_torso-sheet1.png",3627,0,0,252,241,1,0,0,[],[0.1984129995107651,0.2074690014123917,0.5,0,0.869047999382019,0.1369290053844452,0.8492059707641602,0.4979250133037567,0.75,0.7385889887809753,0.5,0.950206995010376,0.08333329856395721,0.91286301612854,0.06349209696054459,0.4979250133037567],0]]]],[],false,false,992043900975212,[],null],["t281",6,false,[],0,0,null,[["Default",0,false,1,0,false,274987817864393,[["images/thegrimreaper_skeleton_head-sheet0.png",9471,245,1,225,303,1,0,0,[],[0.1555559933185577,0.1155119985342026,0.4977779984474182,0.003300329903140664,0.8311110138893127,0.1254130005836487,1,0.4983499944210053,0.9333329796791077,0.9504950046539307,0.4977779984474182,0.8679869771003723,0.182221993803978,0.8646860122680664,0.0311111006885767,0.4983499944210053],0],["images/thegrimreaper_skeleton_head-sheet0.png",9471,1,1,242,304,1,0,0,[],[0.1528930068016052,0.1217110008001328,0.5,0.003289469983428717,0.826445996761322,0.138157993555069,0.9876030087471008,0.5,1,1,0.5,0.967104971408844,0.1322309970855713,0.8947370052337647,0.033057801425457,0.5],0]]]],[],false,false,108069488233764,[],null],["t282",6,false,[],0,0,null,[["Default",0,false,1,0,false,200227180017683,[["images/thegrimreaper_skeleton_armr-sheet0.png",1367,0,0,48,120,1,0,0,[],[0.08333329856395721,0.03333330154418945,0.7916669845581055,0.08333329856395721,0.9374999403953552,0.5,0.6874999403953552,0.875,0.5,0.9333329796791077,0.2083330005407333,0.9166669845581055,0.0625,0.5],0]]]],[],false,false,457149878798505,[],null],["t283",6,false,[],0,0,null,[["Default",0,false,1,0,false,747912103016762,[["images/thegrimreaper_skeleton_elbowr-sheet0.png",883,0,0,29,76,1,0,0,[],[0.2758620083332062,0.105263002216816,0.4827589988708496,0.06578949838876724,0.965516984462738,0.01315790042281151,0.965516984462738,0.5,0.8965520262718201,0.9605259895324707,0.4827589988708496,0.9210529923439026,0.4137929975986481,0.842104971408844,0.2068970054388046,0.5],0]]]],[],false,false,240947331293344,[],null],["t284",6,false,[],0,0,null,[["Default",0,false,1,0,false,652386550184171,[["images/nightmarerider_skeleton_weapon-sheet0.png",31358,0,0,419,903,1,0,0,[],[0.8854420185089111,0.4108529984951019,0.4988070130348206,0.8449609875679016,0.9809070229530335,0.008859359659254551,0.9498810172080994,0.4994460046291351,0.9594269990921021,0.9811739921569824,0.4988070130348206,0.9468439817428589,0.2840099930763245,0.8682169914245606,0.8806679844856262,0.4994460046291351],0]]]],[],false,false,996668036713443,[],null],["t285",6,false,[],0,0,null,[["Default",0,false,1,0,false,240304723450191,[["images/thegrimreaper_skeleton_handr-sheet0.png",982,0,0,47,62,1,0,0,[],[0.1702129989862442,0.1290320008993149,0.4893620014190674,0.03225810080766678,0.7234039902687073,0.2096769958734512,0.9574469923973084,0.5,0.8723400235176086,0.9032260179519653,0.4893620014190674,0.8225809931755066,0.319148987531662,0.7580649852752686,0.02127660065889359,0.5],0]]]],[],false,false,772251382269468,[],null],["t286",6,false,[],0,0,null,[["Default",0,false,1,0,false,869418713422324,[["images/king_skeleton_arml-sheet0.png",3574,0,0,111,313,1,0,0,[],[0.2432429939508438,0.08626200258731842,0.4954949915409088,0.02236419916152954,0.9099100232124329,0.03194890171289444,0.9099100232124329,0.498403012752533,0.8648650050163269,0.9520769715309143,0.4954949915409088,0.9840260148048401,0.09009010344743729,0.968051016330719,0.2882879972457886,0.498403012752533],0]]]],[],false,false,454846923231111,[],null],["t287",6,false,[],0,0,null,[["Default",0,false,1,0,false,219215007118550,[["images/king_skeleton_crown-sheet0.png",36112,0,0,410,371,1,0,0,[],[0.5,0.2048519998788834,0.7219510078430176,0.3072780072689056,0.8756099939346314,0.4986520111560822,0.9926829934120178,0.9919139742851257,0.5,0.8706200122833252,0.08048780262470245,0.9110509753227234,0.09024389833211899,0.4986520111560822],0]]]],[],false,false,960868094465013,[],null],["t288",6,false,[],0,0,null,[["Default",0,false,1,0,false,502191267427264,[["images/king_skeleton_elbowl-sheet0.png",2721,0,0,126,268,1,0,0,[],[0.2380950003862381,0.1119399964809418,0.5,0.0149253997951746,0.8888890147209168,0.05223879963159561,0.7619050145149231,0.5,0.7698410153388977,0.8917909860610962,0.5,0.9701489806175232,0.1111110001802445,0.9477609992027283,0.03174600005149841,0.5],0]]]],[],false,false,956375001180426,[],null],["t289",6,false,[],0,0,null,[["Default",0,false,1,0,false,134863511498485,[["images/king_skeleton_handl-sheet0.png",4276,0,0,188,163,1,0,0,[],[0.08510640263557434,0.09815949946641922,0.5,0,0.8936169743537903,0.122698999941349,0.9148939847946167,0.9018409848213196,0.5,0.9754599928855896,0.04787230119109154,0.9447849988937378],0]]]],[],false,false,636676269750621,[],null],["t290",6,false,[],0,0,null,[["Default",0,false,1,0,false,448086033003886,[["images/king_skeleton_weapon-sheet0.png",71820,0,0,328,1146,1,0,0,[],[0.4329270124435425,0.1239089965820313,0.5,0.001745200017467141,0.6097559928894043,0.1116930022835732,0.7347559928894043,0.5,0.5945119857788086,0.8839439749717712,0.5,0.9397910237312317,0.3140240013599396,0.9101219773292542,0.1676830053329468,0.5],0]]]],[],false,false,484679512651276,[],null],["t291",6,false,[],0,0,null,[["Default",0,false,1,0,false,318277986798061,[["images/king_skeleton_hand_grab-sheet0.png",4358,0,0,181,139,1,0,0,[],[0.0939226970076561,0.1223020032048225,0.4972380101680756,0.04316550120711327,0.9502760171890259,0.06474819779396057,1,0.4964030086994171,0.8729280233383179,0.8345320224761963,0.4972380101680756,0.7985609769821167,0.1988949924707413,0.7410069704055786,0.005524859763681889,0.4964030086994171],0]]]],[],false,false,209734033310499,[],null],["t292",6,false,[],0,0,null,[["Default",0,false,1,0,false,371092856070188,[["images/king_skeleton_feetl-sheet0.png",3691,0,0,227,138,1,0,0,[],[0.1674010008573532,0.2753619849681854,0.4977970123291016,0,0.7092509865760803,0.4782609939575195,0.7312780022621155,0.5,0.9515420198440552,0.9202899932861328,0.4977970123291016,0.9420289993286133,0.1541849970817566,0.7463769912719727,0.03083699941635132,0.5],0]]]],[],false,false,549519810618064,[],null],["t293",6,false,[],0,0,null,[["Default",0,false,1,0,false,137950347920193,[["images/king_skeleton_cape-sheet0.png",33013,0,0,615,813,1,0,0,[],[0.1512199938297272,0.1143909990787506,0.4991869926452637,0.02337020076811314,0.8715450167655945,0.09717100113630295,0.9219509959220886,0.4993849992752075,0.8926830291748047,0.918819010257721,0.4991869926452637,0.9581800103187561,0.02601630054414272,0.9803199768066406,0.0585366003215313,0.4993849992752075],0]]]],[],false,false,919199516046659,[],null],["t294",6,false,[],0,0,null,[["Default",0,false,1,0,false,793746265200675,[["images/king_skeleton_legl-sheet0.png",5687,0,0,218,205,1,0,0,[],[0.07339449971914291,0.07804880291223526,0.5,0.03414630144834518,0.7339450120925903,0.282927006483078,0.8853210210800171,0.4975610077381134,0.8990830183029175,0.8926830291748047,0.5,0.9121950268745422,0.2935779988765717,0.6878049969673157,0.07798170298337936,0.4975610077381134],0]]]],[],false,false,218564639104662,[],null],["t295",6,false,[],0,0,null,[["Default",0,false,1,0,false,673050469459832,[["images/king_skeleton_legr-sheet0.png",5111,0,0,165,221,1,0,0,[],[0.2000000029802322,0.1493210047483444,0.496969997882843,0.04524889960885048,0.9090909957885742,0.06787329912185669,0.8969699740409851,0.4977380037307739,0.7333329916000366,0.8009049892425537,0.496969997882843,0.9683259725570679,0.04242419824004173,0.9683259725570679,0.03030299954116345,0.4977380037307739],0],["images/king_skeleton_legl-sheet0.png",5687,0,0,218,205,1,0,0,[],[0.07339449971914291,0.07804880291223526,0.5,0.03414630144834518,0.7339450120925903,0.282927006483078,0.8853210210800171,0.4975610077381134,0.8990830183029175,0.8926830291748047,0.5,0.9121950268745422,0.2935779988765717,0.6878049969673157,0.07798170298337936,0.4975610077381134],0]]]],[],false,false,203150183787128,[],null],["t296",6,false,[],0,0,null,[["Default",0,false,1,0,false,479636953269029,[["images/king_skeleton_lower_legl-sheet0.png",13281,0,0,169,306,1,0,0,[],[0.4497039914131165,0.2483659982681274,0.4970409870147705,0.003267969936132431,0.7692310214042664,0.1274510025978088,0.9112430214881897,0.5,0.8520709872245789,0.918300986289978,0.4970409870147705,0.9934639930725098,0.1597629934549332,0.9117649793624878,0.1834319978952408,0.5],0]]]],[],false,false,942406010255287,[],null],["t297",6,false,[],0,0,null,[["Default",0,false,1,0,false,696276169277324,[["images/king_skeleton_lower_legr-sheet0.png",13743,0,0,180,313,1,0,0,[],[0.2000000029802322,0.1150159984827042,0.5,0.03833869844675064,0.6555560231208801,0.1980829983949661,0.9944440126419067,0.498403012752533,0.8833330273628235,0.932906985282898,0.5,0.9904149770736694,0.1277779936790466,0.9265180230140686,0.05555560067296028,0.498403012752533],0],["images/king_skeleton_lower_legl-sheet0.png",13281,0,0,169,306,1,0,0,[],[0.4497039914131165,0.2483659982681274,0.4970409870147705,0.003267969936132431,0.7692310214042664,0.1274510025978088,0.9112430214881897,0.5,0.8520709872245789,0.918300986289978,0.4970409870147705,0.9934639930725098,0.1597629934549332,0.9117649793624878,0.1834319978952408,0.5],0]]]],[],false,false,293609233785325,[],null],["t298",6,false,[],0,0,null,[["Default",0,false,1,0,false,175454326891822,[["images/king_skeleton_feetr-sheet0.png",2641,0,0,151,84,1,0,0,[],[0.07284770160913467,0.130952000617981,0.4966889917850494,0.01190480031073093,0.9271519780158997,0.130952000617981,1,0.5,0.8940399885177612,0.8095239996910095,0.4966889917850494,1,0.1258279979228973,0.7738100290298462,0,0.5],0],["images/king_skeleton_feetl-sheet0.png",3691,0,0,227,138,1,0,0,[],[0.1674010008573532,0.2753619849681854,0.4977970123291016,0,0.7092509865760803,0.4782609939575195,0.7312780022621155,0.5,0.9515420198440552,0.9202899932861328,0.4977970123291016,0.9420289993286133,0.1541849970817566,0.7463769912719727,0.03083699941635132,0.5],0]]]],[],false,false,818969934940837,[],null],["t299",6,false,[],0,0,null,[["Default",0,false,1,0,false,628403170532734,[["images/king_skeleton_torso-sheet0.png",21556,0,0,457,455,1,0,0,[],[0.1641139984130859,0.1648350059986115,0.4989059865474701,0.2241760045289993,0.9168490171432495,0.08351650089025497,0.9190369844436646,0.4989010095596314,0.582056999206543,0.5802199840545654,0.4989059865474701,1,0.225382998585701,0.7736259698867798,0.01531730033457279,0.4989010095596314],0]]]],[],false,false,226615104262713,[],null],["t300",6,false,[],0,0,null,[["Default",0,false,1,0,false,355297424257912,[["images/king_skeleton_hips-sheet0.png",6799,0,0,401,267,1,0,0,[],[0.03241899982094765,0.0486891008913517,0.4987530112266541,0.303371012210846,0.9351620078086853,0.09737829864025116,0.9127179980278015,0.4981270134449005,0.7880300283432007,0.6816480159759522,0.4987530112266541,0.9176030158996582,0.1920199990272522,0.7116100192070007,0.08229430019855499,0.4981270134449005],0]]]],[],false,false,594963912441342,[],null],["t301",6,false,[],0,0,null,[["Default",0,false,1,0,false,631202927877525,[["images/king_skeleton_piece_of_cloth_front-sheet0.png",5611,0,0,357,372,1,0,0,[],[0.05322130024433136,0.05107529833912849,0.4985989928245544,0.002688169945031405,0.9187679886817932,0.07795699685811997,0.8319330215454102,0.5,0.7310919761657715,0.7419350147247315,0.4985989928245544,0.8091400265693665,0.3361339867115021,0.6774190068244934,0.1512610018253326,0.5],0]]]],[],false,false,444865050947279,[],null],["t302",6,false,[],0,0,null,[["Default",0,false,1,0,false,284123019763934,[["images/king_skeleton_belt-sheet0.png",16862,0,0,426,160,1,0,0,[],[0.05164320021867752,0.1375000029802322,0.9812210202217102,0.05000000074505806,1,0.5,0.8685449957847595,0.6499999761581421,0.5,0.9625000357627869,0.1478870064020157,0.606249988079071,0.00469483993947506,0.5],0]]]],[],false,false,847841262571699,[],null],["t303",6,false,[],0,0,null,[["Default",0,false,1,0,false,203757558427440,[["images/king_skeleton_head-sheet0.png",137956,1,1,457,838,1,0,0,[],[0.2888399958610535,0.1575179994106293,0.4989059865474701,0.1372310072183609,0.9102839827537537,0.04892599955201149,0.9649890065193176,0.5,0.7658640146255493,0.872314989566803,0.4989059865474701,0.9522669911384583,0.393873006105423,0.7852029800415039,0.004376369994133711,0.5],0],["images/king_skeleton_head-sheet0.png",137956,460,1,442,642,1,0,0,[],[0.1266970038414002,0.08722739666700363,0.5,0.003115260042250156,0.8687779903411865,0.0903427004814148,0.9909499883651733,0.5,0.7828050255775452,0.8504670262336731,0.5,0.9205610156059265,0.4072400033473969,0.7196260094642639,0.01131219975650311,0.5],0]]]],[],false,false,705862886302630,[],null],["t304",6,false,[],0,0,null,[["Default",0,false,1,0,false,118538130720084,[["images/king_skeleton_armr-sheet0.png",2506,0,0,123,216,1,0,0,[],[0.2357719987630844,0.1342590004205704,0.4959349930286408,0.03703700006008148,0.8861789703369141,0.06481479853391647,0.7398369908332825,0.5,0.7967479825019836,0.8842589855194092,0.4959349930286408,0.9907410144805908,0.1219509989023209,0.9305559992790222,0.1707320064306259,0.5],0]]]],[],false,false,745997440507247,[],null],["t305",6,false,[],0,0,null,[["Default",0,false,1,0,false,591467204572104,[["images/king_skeleton_elbowr-sheet0.png",6130,0,0,239,304,1,0,0,[],[0.1589960008859634,0.125,0.4979079961776733,0.06907889991998673,0.7615060210227966,0.1875,0.8661090135574341,0.5,0.7322180271148682,0.7894740104675293,0.4979079961776733,0.9638159871101379,0.046025101095438,0.9638159871101379,0.02092050015926361,0.5],0]]]],[],false,false,148458663757149,[],null],["t306",6,false,[],0,0,null,[["Default",0,false,1,0,false,269917244170891,[["images/king_skeleton_handr-sheet0.png",9535,0,0,204,214,1,0,0,[],[0.0784313976764679,0.07476639747619629,0.5,0.004672899842262268,0.8725489974021912,0.1214950010180473,0.9411759972572327,0.5,0.8333330154418945,0.8411210179328919,0.5,0.8785049915313721,0.2401960045099258,0.7710279822349548,0.01960779912769795,0.5],0]]]],[],false,false,890026417694255,[],null],["t307",6,false,[],0,0,null,[["Default",0,false,1,0,false,607848613712707,[["images/king_skeleton_shoulder_armor-sheet0.png",21063,0,0,410,424,1,0,0,[],[0.1097560003399849,0.1061320006847382,0.5,0.2075469940900803,0.6512190103530884,0.3372640013694763,0.9414629936218262,0.5,0.8975610136985779,0.9009429812431335,0.5,0.9622640013694763,0.1463409960269928,0.8584910035133362,0.1731709986925125,0.5],0]]]],[],false,false,487399004570777,[],null],["t308",6,false,[],0,0,null,[["Default",5,false,1,0,false,694615269239623,[["images/background-sheet0.png",1635888,0,0,1380,820,1,0.5,0.5,[],[],1]]]],[],false,false,427989057805605,[],null],["t309",3,false,[],0,0,null,null,[],false,false,159472575910593,[],null,[]],["t310",1,false,[],0,0,null,null,[],false,false,265207144466687,[],null,[0,0,0,1,1,600,600,10000,1]],["t311",5,false,[887143007574593,904794732443401,621277006352296,864349805420231,496529748340521,535643483510744,725851178802749],0,0,null,[["Default",5,false,1,0,false,679178506730849,[["images/basicskeleton-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],3]]]],[],false,false,167718340583195,[],null],["t312",7,false,[],0,0,null,null,[],false,false,864986454927663,[],null],["t313",0,false,[],0,0,null,null,[],true,false,555711635243778,[],null],["t314",7,false,[],0,0,null,null,[],false,false,471579686804770,[],null],["t315",2,false,[],0,0,null,null,[],false,false,111296009645747,[],null,[]],["t316",5,false,[887143007574593,904794732443401,621277006352296,864349805420231,496529748340521,535643483510744,725851178802749],0,0,null,[["Default",5,false,1,0,false,846351657300351,[["images/basicskeleton-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],3]]]],[],false,false,848229182576322,[],null],["t317",5,false,[887143007574593,904794732443401,621277006352296,864349805420231,496529748340521,535643483510744,725851178802749],0,0,null,[["Default",5,false,1,0,false,275462833438884,[["images/basicskeleton-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],3]]]],[],false,false,215686302615744,[],null],["t318",5,false,[887143007574593,904794732443401,621277006352296,864349805420231,496529748340521,535643483510744,725851178802749],0,0,null,[["Default",5,false,1,0,false,269432854870146,[["images/basicskeleton-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],3]]]],[],false,false,281455904285854,[],null],["t319",5,false,[887143007574593,904794732443401,621277006352296,864349805420231,496529748340521,535643483510744,725851178802749],0,0,null,[["Default",5,false,1,0,false,506539894460135,[["images/basicskeleton-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],3]]]],[],false,false,200576164873934,[],null],["t320",5,false,[887143007574593,904794732443401,621277006352296,864349805420231,496529748340521,535643483510744,725851178802749],0,0,null,[["Default",5,false,1,0,false,230907788503432,[["images/basicskeleton-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],3]]]],[],false,false,325281357422203,[],null],["t321",5,false,[887143007574593,904794732443401,621277006352296,864349805420231,496529748340521,535643483510744,725851178802749],0,0,null,[["Default",5,false,1,0,false,320534211710136,[["images/basicskeleton-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],3]]]],[],false,false,174039012885820,[],null],["t322",5,false,[887143007574593,904794732443401,621277006352296,864349805420231,496529748340521,535643483510744,725851178802749],0,0,null,[["Default",5,false,1,0,false,828077301714845,[["images/basicskeleton-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],3]]]],[],false,false,537811054537008,[],null],["t323",5,false,[887143007574593,904794732443401,621277006352296,864349805420231,496529748340521,535643483510744,725851178802749],0,0,null,[["Default",5,false,1,0,false,226483832703234,[["images/basicskeleton-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],3]]]],[],false,false,893143752409801,[],null],["t324",5,false,[887143007574593,904794732443401,621277006352296,864349805420231,496529748340521,535643483510744,725851178802749],0,0,null,[["Default",5,false,1,0,false,719420494995317,[["images/basicskeleton-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],3]]]],[],false,false,199038347455247,[],null],["t325",5,false,[887143007574593,904794732443401,621277006352296,864349805420231,496529748340521,535643483510744,725851178802749],0,0,null,[["Default",5,false,1,0,false,457646106331273,[["images/basicskeleton-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],3]]]],[],false,false,804347327311796,[],null],["t326",5,false,[887143007574593,904794732443401,621277006352296,864349805420231,496529748340521,535643483510744,725851178802749],0,0,null,[["Default",5,false,1,0,false,822957075670712,[["images/basicskeleton-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],3]]]],[],false,false,829694649117350,[],null],["t327",5,false,[887143007574593,904794732443401,621277006352296,864349805420231,496529748340521,535643483510744,725851178802749],0,0,null,[["Default",5,false,1,0,false,947431377471841,[["images/basicskeleton-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],3]]]],[],false,false,648323671553601,[],null],["t328",5,false,[887143007574593,904794732443401,621277006352296,864349805420231,496529748340521,535643483510744,725851178802749],0,0,null,[["Default",5,false,1,0,false,956024439524513,[["images/basicskeleton-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],3]]]],[],false,false,834214286119705,[],null],["t329",5,false,[887143007574593,904794732443401,621277006352296,864349805420231,496529748340521,535643483510744,725851178802749],0,0,null,[["Default",5,false,1,0,false,217425873449820,[["images/basicskeleton-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],3]]]],[],false,false,974933164018690,[],null],["t330",5,false,[887143007574593,904794732443401,621277006352296,864349805420231,496529748340521,535643483510744,725851178802749],0,0,null,[["Default",5,false,1,0,false,838629319102969,[["images/basicskeleton-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],3]]]],[],false,false,588457126704116,[],null],["t331",5,false,[887143007574593,904794732443401,621277006352296,864349805420231,496529748340521,535643483510744,725851178802749],0,0,null,[["Default",5,false,1,0,false,295244480023287,[["images/basicskeleton-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],3]]]],[],false,false,585826848923538,[],null],["t332",7,false,[],0,0,null,null,[],false,false,547258755015223,[],null],["t333",4,false,[],0,1,["images/particles.png",10061,0],null,[],false,false,463496657924992,[["softlight","SoftLight"]],null],["t334",6,true,[],0,0,null,null,[],false,false,666488106601893,[],null],["t335",5,true,[887143007574593,904794732443401,621277006352296,864349805420231,496529748340521,535643483510744,725851178802749],1,0,null,null,[["ScrollTo",8,673584968746809]],false,false,808563605748841,[],null],["t336",6,true,[],0,0,null,null,[],false,false,220874037307179,[],null],["t337",6,true,[],0,0,null,null,[],false,false,607861632954913,[],null],["t338",6,true,[],0,0,null,null,[],false,false,606449637160725,[],null],["t339",6,true,[],0,0,null,null,[],false,false,388019073251371,[],null],["t340",6,true,[],0,0,null,null,[],false,false,911731738231879,[],null],["t341",6,true,[],0,0,null,null,[],false,false,730224720213180,[],null],["t342",6,true,[],0,0,null,null,[],false,false,874393718332869,[],null],["t343",6,true,[],0,0,null,null,[],false,false,922450467516272,[],null],["t344",6,true,[],0,0,null,null,[],false,false,914940585711884,[],null],["t345",6,true,[],0,0,null,null,[],false,false,922927405895493,[],null],["t346",6,true,[],0,0,null,null,[],false,false,255903635018091,[],null],["t347",6,true,[],0,0,null,null,[],false,false,121104641198092,[],null],["t348",6,true,[],0,0,null,null,[],false,false,251548953027570,[],null],["t349",6,true,[],0,0,null,null,[],false,false,213840279455292,[],null],["t350",6,true,[],0,0,null,null,[],false,false,278149064943297,[],null],["t351",6,true,[],0,0,null,null,[],false,false,408720664322700,[],null]],[[334,0,14,2,15,1,10,5,3,16,13,12,6,8,7,9,4,11],[335,316,311,323,324,329,317,318,319,331,320,325,326,321,322,327,328,330],[336,17,31,19,32,18,26,21,29,34,20,35,30,27,22,24,23,25,33,28],[337,46,39,37,43,45,36,41,40,42,48,38,44,47],[338,49,63,69,71,70,50,64,56,59,53,51,65,62,61,66,68,54,57,55,58,67,52,60],[339,78,77,90,74,76,81,91,75,72,86,80,73,89,88,82,84,83,85,79,92,87],[340,93,107,110,113,112,94,108,100,103,97,95,109,106,111,105,98,101,99,102,114,96,104],[341,118,115,138,117,119,139,123,131,126,130,129,121,132,124,133,127,128,122,134,125,135,137,116,136,120],[342,140,155,142,154,141,151,145,143,156,153,148,147,150,146,149,144,152],[343,157,172,159,175,160,173,158,165,168,162,161,174,171,170,163,166,164,167,176,169],[344,177,179,178,182,181,180],[345,183,200,185,198,203,204,186,201,184,194,189,187,202,199,190,192,191,193,197,195,188,196],[346,205,207,206,210,209,208],[347,211,231,213,229,234,235,217,232,212,225,216,220,218,233,230,214,222,223,221,224,215,228,226,236,219,227],[348,240,237,247,248,242,241,238,239,250,249,245,244,246,243],[349,251,268,267,266,265,264,263,261,262,260,259,258,257,254,253,255,256,272,252,273,271,270,269],[350,274,282,276,283,278,285,281,279,277,275,280,284],[351,286,304,302,293,287,288,305,292,298,291,289,306,303,300,294,295,296,297,301,307,299,290]],[["Layout 1",1380,820,false,"Event sheet 1",8873350371196689,[["playground",0,8722530541249526,true,[255,255,255],false,1,1,1,false,false,1,0,0,[[[690,410,0,1380,820,0,0,1,0.5,0.5,0,0,[]],308,0,[],[],[0,"Default",0,1]],[[-1241,-503,0,50,50,0,0,1,0.5,0.5,0,0,[]],311,4,[[0],[0.1],[0.7],[1.7],[690],[600],[7]],[[1]],["basic skeleton.scml","skeleton","default",100,0]],[[-1200,-661,0,50,123,0,-1.473420262336731,1,0,0,0,0,[]],0,5,[],[],[1,"Default",0,1]],[[-1193,-344,0,73,29,0,0,1,0,0,0,0,[]],1,6,[],[],[1,"Default",0,1]],[[-1115,-652,0,57,114,0,-1.44601571559906,1,0,0,0,0,[]],2,7,[],[],[1,"Default",0,1]],[[-1050,-651,0,56,42,0,-1.399289846420288,1,0,0,0,0,[]],3,8,[],[],[1,"Default",0,1]],[[-1051,-946,0,112,351,0,-0.05512606352567673,1,0,0,0,0,[]],4,9,[],[],[1,"Default",0,1]],[[-1009,-692,0,55,51,0,0.1067180633544922,1,0,0,0,0,[]],5,10,[],[],[1,"Default",0,1]],[[-1195,-522,0,52,101,0,-0,1,0,0,0,0,[]],6,11,[],[],[1,"Default",0,1]],[[-1194,-447,0,56,112,0,-0,1,0,0,0,0,[]],7,12,[],[],[1,"Default",0,1]],[[-1327,-509,0,50,101,0,-1.699999963022947e-008,1,0,0,0,0,[]],8,13,[],[],[1,"Default",0,1]],[[-1335,-440,0,56,109,0,-0,1,0,0,0,0,[]],9,14,[],[],[1,"Default",0,1]],[[-1337,-342,0,51,25,0,-1.699999963022947e-008,1,0,0,0,0,[]],10,15,[],[],[1,"Default",0,1]],[[-1332,-717,0,164,202,0,-1.699999963022947e-008,1,0,0,0,0,[]],11,16,[],[],[1,"Default",0,1]],[[-1325,-567,0,198,128,0,-0,1,0,0,0,0,[]],12,17,[],[],[1,"Default",0,1]],[[-1375,-898,0,217,229,0,-0,1,0,0,0,0,[]],13,18,[],[],[1,"Default",0,1]],[[-1305,-717,0,52,123,0,1.509959220886231,1,0,0,0,0,[]],14,19,[],[],[1,"Default",0,1]],[[-1394,-716,0,57,113,0,1.509959220886231,1,0,0,0,0,[]],15,20,[],[],[1,"Default",0,1]],[[-1456,-736,0,82,74,0,1.509959220886231,1,0,0,0,0,[]],16,21,[],[],[1,"Default",0,1]],[[-568,-509,0,50,50,0,0,1,0.5,0.5,0,0,[]],316,3,[[1],[0.1],[0.7],[1.7],[690],[600],[6]],[[1]],["barbarian.scml","","",100,0]],[[-524,-695,0,48,118,0,-0.5571523904800415,1,0,0,0,0,[]],17,26,[],[],[1,"Default",0,1]],[[-568,-509,0,73,29,0,0,1,0,0,0,0,[]],18,27,[],[],[1,"Default",0,1]],[[-479,-622,0,53,110,0,-0.5297479629516602,1,0,0,0,0,[]],19,28,[],[],[1,"Default",0,1]],[[-431,-550,0,55,39,0,-0.2399230003356934,1,0,0,0,0,[]],20,29,[],[],[1,"Default",0,1]],[[-855,-1148,0,263,521,0,0,1,0,0,0,0,[]],21,30,[],[],[1,"Default",0,1]],[[-523,-527,0,55,107,0,-0,1,0,0,0,0,[]],22,31,[],[],[1,"Default",0,1]],[[-524,-444,0,59,118,0,-0,1,0,0,0,0,[]],23,32,[],[],[1,"Default",0,1]],[[-672,-518,0,54,106,0,-1.699999963022947e-008,1,0,0,0,0,[]],24,33,[],[],[1,"Default",0,1]],[[-679,-439,0,59,119,0,-0,1,0,0,0,0,[]],25,34,[],[],[1,"Default",0,1]],[[-678,-340,0,51,25,0,-1.699999963022947e-008,1,0,0,0,0,[]],26,35,[],[],[1,"Default",0,1]],[[-670,-650,0,209,180,0,-0,1,0,0,0,0,[]],27,36,[],[],[1,"Default",0,1]],[[-678,-771,0,231,175,0,-1.699999963022947e-008,1,0,0,0,0,[]],28,37,[],[],[1,"Default",0,1]],[[-748,-932,0,188,135,0,-0.6050354838371277,1,0,0,0,0,[]],29,38,[],[],[1,"Default",0,1]],[[-632,-929,0,229,241,0,-0,1,0,0,0,0,[]],30,39,[],[],[1,"Default",0,1]],[[-664,-755,0,90,157,0,0.5635366439819336,1,0,0,0,0,[]],31,40,[],[],[1,"Default",0,1]],[[-732,-635,0,56,107,0,0.3927268981933594,1,0,0,0,0,[]],32,41,[],[],[1,"Default",0,1]],[[-850,-318,0,327,768,0,-1.643439769744873,1,0,0,0,0,[]],33,42,[],[],[1,"Default",0,1]],[[-377,-561,0,60,57,0,1.266084671020508,1,0,0,0,0,[]],34,43,[],[],[1,"Default",0,1]],[[-781,-540,0,78,71,0,-0.1080580800771713,1,0,0,0,0,[]],35,44,[],[],[1,"Default",0,1]],[[194,-563,0,50,50,0,0,1,0.5,0.5,0,0,[]],317,45,[[2],[0.1],[0.7],[1.7],[690],[600],[6]],[[1]],["headless bomber.scml","","",100,0]],[[240,-582,0,52,101,0,-0,1,0,0,0,0,[]],36,46,[],[],[1,"Default",0,1]],[[194,-563,0,73,29,0,0,1,0,0,0,0,[]],37,47,[],[],[1,"Default",0,1]],[[194,-563,0,67,107,0,0,1,0,0,0,0,[]],38,48,[],[],[1,"Default",0,1]],[[62,-915,0,807,612,0,0,1,0,0,0,0,[]],39,49,[],[],[1,"Default",0,1]],[[242,-507,0,56,112,0,-0,1,0,0,0,0,[]],40,50,[],[],[1,"Default",0,1]],[[108,-569,0,50,101,0,-1.699999963022947e-008,1,0,0,0,0,[]],41,51,[],[],[1,"Default",0,1]],[[100,-500,0,56,109,0,-0,1,0,0,0,0,[]],42,52,[],[],[1,"Default",0,1]],[[99,-402,0,51,25,0,-1.699999963022947e-008,1,0,0,0,0,[]],43,53,[],[],[1,"Default",0,1]],[[155,-757,0,65,180,0,-0,1,0,0,0,0,[]],44,54,[],[],[1,"Default",0,1]],[[99,-627,0,198,128,0,-0,1,0,0,0,0,[]],45,55,[],[],[1,"Default",0,1]],[[6,-793,0,232,344,0,-0.7668461799621582,1,0,0,0,0,[]],46,56,[],[],[1,"Default",0,1]],[[65,-777,0,240,134,0,-1.699999963022947e-008,1,0,0,0,0,[]],47,57,[],[],[1,"Default",0,1]],[[96,-500,0,67,107,0,-0,1,0,0,0,0,[]],48,58,[],[],[1,"Default",0,1]],[[763,-548,0,50,50,0,0,1,0.5,0.5,0,0,[]],318,59,[[3],[0.1],[0.7],[1.7],[690],[600],[6]],[[1]],["heavy warrior.scml","","",100,0]],[[804,-705,0,50,123,0,-1.473420262336731,1,0,0,0,0,[]],49,60,[],[],[1,"Default",0,1]],[[889,-696,0,57,114,0,-1.44601571559906,1,0,0,0,0,[]],50,61,[],[],[1,"Default",0,1]],[[942,-683,0,73,101,0,-1.399289846420288,1,0,0,0,0,[]],51,62,[],[],[1,"Default",0,1]],[[953,-990,0,112,351,0,-0.05512606352567673,1,0,0,0,0,[]],52,63,[],[],[1,"Default",0,1]],[[995,-737,0,55,51,0,0.1067180633544922,1,0,0,0,0,[]],53,64,[],[],[1,"Default",0,1]],[[809,-566,0,52,101,0,-0,1,0,0,0,0,[]],54,65,[],[],[1,"Default",0,1]],[[811,-492,0,56,112,0,-0,1,0,0,0,0,[]],55,66,[],[],[1,"Default",0,1]],[[811,-392,0,73,29,0,-0,1,0,0,0,0,[]],56,67,[],[],[1,"Default",0,1]],[[677,-554,0,50,101,0,-1.699999963022947e-008,1,0,0,0,0,[]],57,68,[],[],[1,"Default",0,1]],[[669,-485,0,56,109,0,-0,1,0,0,0,0,[]],58,69,[],[],[1,"Default",0,1]],[[667,-386,0,51,25,0,-1.699999963022947e-008,1,0,0,0,0,[]],59,70,[],[],[1,"Default",0,1]],[[652,-764,0,204,205,0,-1.699999963022947e-008,1,0,0,0,0,[]],60,71,[],[],[1,"Default",0,1]],[[667,-612,0,198,128,0,-0,1,0,0,0,0,[]],61,72,[],[],[1,"Default",0,1]],[[692,-1032,0,212,315,0,-0,1,0,0,0,0,[]],62,73,[],[],[1,"Default",0,1]],[[698,-760,0,50,115,0,1.509959220886231,1,0,0,0,0,[]],63,74,[],[],[1,"Default",0,1]],[[610,-761,0,57,113,0,1.509959220886231,1,0,0,0,0,[]],64,75,[],[],[1,"Default",0,1]],[[514,-759,0,76,71,0,1.509959220886231,1,0,0,0,0,[]],65,76,[],[],[1,"Default",0,1]],[[807,-577,0,72,89,0,-0,1,0,0,0,0,[]],66,77,[],[],[1,"Default",0,1]],[[724,-567,0,112,120,0,-0,1,0,0,0,0,[]],67,78,[],[],[1,"Default",0,1]],[[630,-569,0,117,86,0,-0,1,0,0,0,0,[]],68,79,[],[],[1,"Default",0,1]],[[666,-625,0,192,76,0,0,1,0,0,0,0,[]],69,80,[],[],[1,"Default",0,1]],[[658,-437,0,67,77,0,-0,1,0,0,0,0,[]],70,81,[],[],[1,"Default",0,1]],[[805,-438,0,67,77,0,-0,1,0,0,0,0,[]],71,82,[],[],[1,"Default",0,1]],[[1432,-548,0,50,50,0,0,1,0.5,0.5,0,0,[]],319,83,[[4],[0.1],[0.7],[1.7],[690],[600],[6]],[[1]],["kamikaze bomber.scml","","",100,0]],[[1432,-548,0,73,29,0,0,1,0,0,0,0,[]],72,84,[],[],[1,"Default",0,1]],[[1432,-548,0,82,74,0,0,1,0,0,0,0,[]],73,85,[],[],[1,"Default",0,1]],[[1327,-872,0,47,186,0,-0,1,0,0,0,0,[]],74,86,[],[],[1,"Default",0,1]],[[1306,-953,0,807,612,0,0,1,0,0,0,0,[]],75,87,[],[],[1,"Default",0,1]],[[1317,-856,0,41,154,0,-0,1,0,0,0,0,[]],76,88,[],[],[1,"Default",0,1]],[[1473,-705,0,50,123,0,-1.473420262336731,1,0,0,0,0,[]],77,89,[],[],[1,"Default",0,1]],[[1556,-698,0,57,114,0,-1.35737931728363,1,0,0,0,0,[]],78,90,[],[],[1,"Default",0,1]],[[1573,-685,0,71,107,0,-1.471741795539856,1,0,0,0,0,[]],79,91,[],[],[1,"Default",0,1]],[[1656,-683,0,82,74,0,-1.255990386009216,1,0,0,0,0,[]],80,92,[],[],[1,"Default",0,1]],[[1290,-1104,0,232,344,0,0,1,0,0,0,0,[]],81,93,[],[],[1,"Default",0,1]],[[1478,-566,0,52,101,0,-0,1,0,0,0,0,[]],82,94,[],[],[1,"Default",0,1]],[[1480,-492,0,56,112,0,-0,1,0,0,0,0,[]],83,95,[],[],[1,"Default",0,1]],[[1346,-554,0,50,101,0,-1.699999963022947e-008,1,0,0,0,0,[]],84,96,[],[],[1,"Default",0,1]],[[1338,-484,0,56,109,0,-0,1,0,0,0,0,[]],85,97,[],[],[1,"Default",0,1]],[[1337,-386,0,51,25,0,-1.699999963022947e-008,1,0,0,0,0,[]],86,98,[],[],[1,"Default",0,1]],[[1342,-761,0,164,202,0,-1.699999963022947e-008,1,0,0,0,0,[]],87,99,[],[],[1,"Default",0,1]],[[1337,-611,0,198,128,0,-0,1,0,0,0,0,[]],88,100,[],[],[1,"Default",0,1]],[[1345,-918,0,230,227,0,-0,1,0,0,0,0,[]],89,101,[],[],[1,"Default",0,1]],[[1368,-761,0,52,123,0,1.509959220886231,1,0,0,0,0,[]],90,102,[],[],[1,"Default",0,1]],[[1273,-764,0,57,113,0,1.328547954559326,1,0,0,0,0,[]],91,103,[],[],[1,"Default",0,1]],[[1270,-768,0,67,107,0,1.280133724212647,1,0,0,0,0,[]],92,104,[],[],[1,"Default",0,1]],[[2236,-504,0,50,50,0,0,1,0.5,0.5,0,0,[]],320,105,[[5],[0.1],[0.7],[1.7],[690],[600],[6]],[[1]],["leight warrior.scml","","",100,0]],[[2277,-661,0,50,123,0,-1.473420262336731,1,0,0,0,0,[]],93,106,[],[],[1,"Default",0,1]],[[2362,-652,0,57,114,0,-1.44601571559906,1,0,0,0,0,[]],94,107,[],[],[1,"Default",0,1]],[[2422,-643,0,73,101,0,-1.399289846420288,1,0,0,0,0,[]],95,108,[],[],[1,"Default",0,1]],[[2426,-946,0,112,351,0,-0.05512606352567673,1,0,0,0,0,[]],96,109,[],[],[1,"Default",0,1]],[[2468,-693,0,55,51,0,0.1067180633544922,1,0,0,0,0,[]],97,110,[],[],[1,"Default",0,1]],[[2282,-522,0,52,101,0,-0,1,0,0,0,0,[]],98,111,[],[],[1,"Default",0,1]],[[2284,-448,0,56,112,0,-0,1,0,0,0,0,[]],99,112,[],[],[1,"Default",0,1]],[[2284,-347,0,73,29,0,-0,1,0,0,0,0,[]],100,113,[],[],[1,"Default",0,1]],[[2150,-510,0,50,101,0,-1.699999963022947e-008,1,0,0,0,0,[]],101,114,[],[],[1,"Default",0,1]],[[2142,-440,0,56,109,0,-0,1,0,0,0,0,[]],102,115,[],[],[1,"Default",0,1]],[[2141,-342,0,51,25,0,-1.699999963022947e-008,1,0,0,0,0,[]],103,116,[],[],[1,"Default",0,1]],[[2125,-717,0,204,202,0,-1.699999963022947e-008,1,0,0,0,0,[]],104,117,[],[],[1,"Default",0,1]],[[2141,-567,0,198,128,0,-0,1,0,0,0,0,[]],105,118,[],[],[1,"Default",0,1]],[[2161,-885,0,217,229,0,-0,1,0,0,0,0,[]],106,119,[],[],[1,"Default",0,1]],[[2172,-717,0,52,123,0,1.509959220886231,1,0,0,0,0,[]],107,120,[],[],[1,"Default",0,1]],[[2083,-717,0,57,113,0,1.509959220886231,1,0,0,0,0,[]],108,121,[],[],[1,"Default",0,1]],[[2024,-732,0,73,101,0,1.509959220886231,1,0,0,0,0,[]],109,122,[],[],[1,"Default",0,1]],[[2147,-577,0,192,198,0,0,1,0,0,0,0,[]],110,123,[],[],[1,"Default",0,1]],[[2149,-956,0,236,293,0,-0,1,0,0,0,0,[]],111,124,[],[],[1,"Default",0,1]],[[2131,-392,0,67,77,0,-0,1,0,0,0,0,[]],112,125,[],[],[1,"Default",0,1]],[[2278,-393,0,67,77,0,-0,1,0,0,0,0,[]],113,126,[],[],[1,"Default",0,1]],[[2062,-926,0,265,259,0,1.398065567016602,1,0,0,0,0,[]],114,127,[],[],[1,"Default",0,1]],[[2192,359,0,50,50,0,0,1,0.5,0.5,0,0,[]],321,128,[[6],[0.1],[0.55],[1.7],[690],[520],[6]],[[1]],["nightmare rider.scml","","",100,0]],[[2208,68,0,104,178,0,-0.02273467555642128,1,0,0,0,0,[]],115,129,[],[],[1,"Default",0,1]],[[2185,241,0,123,219,0,-1.075196743011475,1,0,0,0,0,[]],116,130,[],[],[1,"Default",0,1]],[[2278,62,0,77,47,0,-0.02273467555642128,1,0,0,0,0,[]],117,131,[],[],[1,"Default",0,1]],[[2224,-14,0,84,155,0,-0.02273467555642128,1,0,0,0,0,[]],118,132,[],[],[1,"Default",0,1]],[[2357,9,0,83,70,0,0.7714605331420898,1,0,0,0,0,[]],119,133,[],[],[1,"Default",0,1]],[[2684,494,0,419,903,0,-2.984528064727783,1,0,0,0,0,[]],120,134,[],[],[1,"Default",0,1]],[[1853,558,0,54,157,0,-0.00784190371632576,1,0,0,0,0,[]],121,135,[],[],[1,"Default",0,1]],[[1789,348,0,153,244,0,-0.007841921411454678,1,0,0,0,0,[]],122,136,[],[],[1,"Default",0,1]],[[1859,691,0,87,65,0,-0.00784190371632576,1,0,0,0,0,[]],123,137,[],[],[1,"Default",0,1]],[[2373,571,0,85,130,0,-0.02702954784035683,1,0,0,0,0,[]],124,138,[],[],[1,"Default",0,1]],[[2372,402,0,128,210,0,-0.02702954784035683,1,0,0,0,0,[]],125,139,[],[],[1,"Default",0,1]],[[2403,676,0,101,81,0,-0.02702954784035683,1,0,0,0,0,[]],126,140,[],[],[1,"Default",0,1]],[[1627,314,0,128,286,0,-0.007841921411454678,1,0,0,0,0,[]],127,141,[],[],[1,"Default",0,1]],[[1738,105,0,900,428,0,-0.007841921411454678,1,0,0,0,0,[]],128,142,[],[],[1,"Default",0,1]],[[2494,-63,0,402,337,0,-0.007841921411454678,1,0,0,0,0,[]],129,143,[],[],[1,"Default",0,1]],[[2380,708,0,98,80,0,-0.007841921411454678,1,0,0,0,0,[]],130,144,[],[],[1,"Default",0,1]],[[1764,725,0,86,66,0,-0.05339464917778969,1,0,0,0,0,[]],131,145,[],[],[1,"Default",0,1]],[[1746,594,0,57,157,0,-0.0533946305513382,1,0,0,0,0,[]],132,146,[],[],[1,"Default",0,1]],[[2359,597,0,85,130,0,-0.007841921411454678,1,0,0,0,0,[]],133,147,[],[],[1,"Default",0,1]],[[1761,436,0,115,182,0,0.3240609169006348,1,0,0,0,0,[]],134,148,[],[],[1,"Default",0,1]],[[2384,435,0,128,206,0,-0.007841921411454678,1,0,0,0,0,[]],135,149,[],[],[1,"Default",0,1]],[[2051,-20,0,221,266,0,-0.02273467555642128,1,0,0,0,0,[]],136,150,[],[],[1,"Default",0,1]],[[2084,197,0,127,208,0,-0.0223333016037941,1,0,0,0,0,[]],137,151,[],[],[1,"Default",0,1]],[[2027,-117,0,236,390,0,0.3179173469543457,1,0,0,0,0,[]],138,152,[],[],[1,"Default",0,1]],[[2065,-194,0,300,243,0,-0.02273467555642128,1,0,0,0,0,[]],139,153,[],[],[1,"Default",0,1]],[[2311,1317,0,50,50,0,0,1,0.5,0.5,0,0,[]],322,155,[[7],[0.1],[0.7],[1.7],[690],[600],[7]],[[1]],["peasant.scml","","",100,0]],[[2358.248779296875,1155.710083007813,0,50,123,0,-1.473420262336731,1,0,0,0,0,[]],140,156,[],[],[1,"Default",0,1]],[[2311,1317,0,73,29,0,0,1,0,0,0,0,[]],141,157,[],[],[1,"Default",0,1]],[[2442.766845703125,1175.4775390625,0,62,127,0,-1.44601571559906,1,0,0,0,0,[]],142,158,[],[],[1,"Default",0,1]],[[2510.267333984375,1174.460693359375,0,56,42,0,-1.399289846420288,1,0,0,0,0,[]],143,159,[],[],[1,"Default",0,1]],[[2506.199462890625,822.9718017578125,0,111,418,0,-0.05512606352567673,1,0,0,0,0,[]],144,160,[],[],[1,"Default",0,1]],[[2551.111328125,1132.81201171875,0,55,51,0,0.1067180633544922,1,0,0,0,0,[]],145,161,[],[],[1,"Default",0,1]],[[2358.69140625,1372.978271484375,0,56,112,0,-0,1,0,0,0,0,[]],146,162,[],[],[1,"Default",0,1]],[[2350.5400390625,1297.359008789063,0,69,125,0,-0,1,0,0,0,0,[]],147,163,[],[],[1,"Default",0,1]],[[2234.9072265625,1265.295043945313,0,157,101,0,-0,1,0,0,0,0,[]],148,164,[],[],[1,"Default",0,1]],[[2217.063232421875,1380.281982421875,0,56,109,0,-0,1,0,0,0,0,[]],149,165,[],[],[1,"Default",0,1]],[[2211.48779296875,1307.392578125,0,72,152,0,-1.699999963022947e-008,1,0,0,0,0,[]],150,166,[],[],[1,"Default",0,1]],[[2215.450439453125,1478.669067382813,0,51,25,0,-1.699999963022947e-008,1,0,0,0,0,[]],151,167,[],[],[1,"Default",0,1]],[[2220.752685546875,1089.771850585938,0,196,278,0,-1.699999963022947e-008,1,0,0,0,0,[]],152,168,[],[],[1,"Default",0,1]],[[2230.048583984375,927.806396484375,0,214,221,0,-0,1,0,0,0,0,[]],153,169,[],[],[1,"Default",0,1]],[[2173.5615234375,1110.682983398438,0,57,113,0,1.509959220886231,1,0,0,0,0,[]],154,170,[],[],[1,"Default",0,1]],[[2259.75244140625,1099.663940429688,0,65,132,0,1.509959220886231,1,0,0,0,0,[]],155,171,[],[],[1,"Default",0,1]],[[2077.880859375,1115.287231445313,0,82,74,0,1.509959220886231,1,0,0,0,0,[]],156,172,[],[],[1,"Default",0,1]],[[1454,1320,0,50,50,0,0,1,0.5,0.5,0,0,[]],323,173,[[8],[0.1],[0.7],[1.7],[690],[580],[6]],[[1]],["cannon boy.scml","","",100,0]],[[1495,1163,0,50,123,0,-1.473420262336731,1,0,0,0,0,[]],157,174,[],[],[1,"Default",0,1]],[[1438,906,0,807,612,0,0,1,0,0,0,0,[]],158,175,[],[],[1,"Default",0,1]],[[1323,1253,0,293,298,0,-0,1,0,0,0,0,[]],159,176,[],[],[1,"Default",0,1]],[[1580,1172,0,57,114,0,-1.44601571559906,1,0,0,0,0,[]],160,177,[],[],[1,"Default",0,1]],[[1646,1173,0,56,42,0,-1.399289846420288,1,0,0,0,0,[]],161,178,[],[],[1,"Default",0,1]],[[1686,1131,0,55,51,0,0.1067180633544922,1,0,0,0,0,[]],162,179,[],[],[1,"Default",0,1]],[[1500,1302,0,52,101,0,-0,1,0,0,0,0,[]],163,180,[],[],[1,"Default",0,1]],[[1502,1376,0,56,112,0,-0,1,0,0,0,0,[]],164,181,[],[],[1,"Default",0,1]],[[1502,1476,0,73,29,0,-0,1,0,0,0,0,[]],165,182,[],[],[1,"Default",0,1]],[[1368,1314,0,50,101,0,-1.699999963022947e-008,1,0,0,0,0,[]],166,183,[],[],[1,"Default",0,1]],[[1360,1383,0,56,109,0,-0,1,0,0,0,0,[]],167,184,[],[],[1,"Default",0,1]],[[1358,1482,0,51,25,0,-1.699999963022947e-008,1,0,0,0,0,[]],168,185,[],[],[1,"Default",0,1]],[[1363,1106,0,164,201,0,-1.699999963022947e-008,1,0,0,0,0,[]],169,186,[],[],[1,"Default",0,1]],[[1359,1256,0,198,128,0,-0,1,0,0,0,0,[]],170,187,[],[],[1,"Default",0,1]],[[1385,936,0,201,232,0,-0,1,0,0,0,0,[]],171,188,[],[],[1,"Default",0,1]],[[1390,1107,0,52,123,0,1.509959220886231,1,0,0,0,0,[]],172,189,[],[],[1,"Default",0,1]],[[1301,1107,0,57,113,0,1.509959220886231,1,0,0,0,0,[]],173,190,[],[],[1,"Default",0,1]],[[1239,1087,0,82,74,0,1.509959220886231,1,0,0,0,0,[]],174,191,[],[],[1,"Default",0,1]],[[1285,1093,0,588,288,0,-0.001386996009387076,1,0,0,0,0,[]],175,192,[],[],[1,"Default",0,1]],[[1247,1192,0,432,322,0,-0,1,0,0,0,0,[]],176,193,[],[],[1,"Default",0,1]],[[933,1320,0,50,50,0,0,1,0.5,0.5,0,0,[]],324,194,[[9],[0.1],[0.7],[1.7],[690],[520],[5]],[[1]],["evil mage.scml","","",100,0]],[[1013,1306,0,98,168,0,-0.09005025029182434,1,0,0,0,0,[]],177,195,[],[],[1,"Default",0,1]],[[1079,1293,0,82,50,0,0.08805942535400391,1,0,0,0,0,[]],178,196,[],[],[1,"Default",0,1]],[[1035,1218,0,79,145,0,0.02204179763793945,1,0,0,0,0,[]],179,197,[],[],[1,"Default",0,1]],[[805,1164,0,261,352,0,-1.699999963022947e-008,1,0,0,0,0,[]],180,198,[],[],[1,"Default",0,1]],[[848,1026,0,282,228,0,-0.005274420138448477,1,0,0,0,0,[]],181,199,[],[],[1,"Default",0,1]],[[1169,1244,0,89,75,0,0.9558429718017578,1,0,0,0,0,[]],182,200,[],[],[1,"Default",0,1]],[[509,1368,0,50,50,0,0,1,0.5,0.5,0,0,[]],325,201,[[10],[0.1],[0.7],[1.7],[690],[600],[7]],[[1]],["marksmen.scml","","",100,0]],[[558,1286,0,50,123,0,-1.473420262336731,1,0,0,0,0,[]],183,202,[],[],[1,"Default",0,1]],[[509,1368,0,77,57,0,0,1,0,0,0,0,[]],184,203,[],[],[1,"Default",0,1]],[[509,1368,0,23,195,0,0,1,0,0,0,0,[]],185,204,[],[],[1,"Default",0,1]],[[645,1312,0,75,93,0,-1.44601571559906,1,0,0,0,0,[]],186,205,[],[],[1,"Default",0,1]],[[721,1316,0,69,62,0,-1.567854404449463,1,0,0,0,0,[]],187,206,[],[],[1,"Default",0,1]],[[674,1057,0,88,450,0,-0.02630575746297836,1,0,0,0,0,[]],188,207,[],[],[1,"Default",0,1]],[[728,1252,0,55,51,0,-0.06184732913970947,1,0,0,0,0,[]],189,208,[],[],[1,"Default",0,1]],[[507,1377,0,52,101,0,-0.3687742352485657,1,0,0,0,0,[]],190,209,[],[],[1,"Default",0,1]],[[545,1435,0,58,108,0,0.06847953796386719,1,0,0,0,0,[]],191,210,[],[],[1,"Default",0,1]],[[441,1364,0,50,101,0,0.333554744720459,1,0,0,0,0,[]],192,211,[],[],[1,"Default",0,1]],[[411,1438,0,56,109,0,-0.00547335296869278,1,0,0,0,0,[]],193,212,[],[],[1,"Default",0,1]],[[404,1515,0,56,56,0,-0.00547337019816041,1,0,0,0,0,[]],194,213,[],[],[1,"Default",0,1]],[[350,1124,0,76,244,0,-0.4309728443622589,1,0,0,0,0,[]],195,214,[],[],[1,"Default",0,1]],[[414,1175,0,176,202,0,-1.699999963022947e-008,1,0,0,0,0,[]],196,215,[],[],[1,"Default",0,1]],[[415,1402,0,136,78,0,-0.09081028401851654,1,0,0,0,0,[]],197,216,[],[],[1,"Default",0,1]],[[420,1359,0,163,76,0,-0,1,0,0,0,0,[]],198,217,[],[],[1,"Default",0,1]],[[407,1039,0,254,216,0,-0.1318711936473846,1,0,0,0,0,[]],199,218,[],[],[1,"Default",0,1]],[[425,1204,0,52,123,0,1.318105220794678,1,0,0,0,0,[]],200,219,[],[],[1,"Default",0,1]],[[343,1218,0,57,113,0,1.318105220794678,1,0,0,0,0,[]],201,220,[],[],[1,"Default",0,1]],[[272,1233,0,82,74,0,1.318105220794678,1,0,0,0,0,[]],202,221,[],[],[1,"Default",0,1]],[[687,1070,0,2,217,0,-0.02695182897150517,1,0,0,0,0,[]],203,222,[],[],[1,"Default",0,1]],[[691,1274,0,2,217,0,-0.02695182897150517,1,0,0,0,0,[]],204,223,[],[],[1,"Default",0,1]],[[-60,1359,0,50,50,0,0,1,0.5,0.5,0,0,[]],326,224,[[11],[0.1],[0.7],[1.7],[690],[520],[4]],[[1]],["mysterious mage.scml","","",100,0]],[[20,1344,0,98,168,0,-0.09005025029182434,1,0,0,0,0,[]],205,225,[],[],[1,"Default",0,1]],[[86,1331,0,82,50,0,0.08805942535400391,1,0,0,0,0,[]],206,226,[],[],[1,"Default",0,1]],[[41,1256,0,82,148,0,0.02204179763793945,1,0,0,0,0,[]],207,227,[],[],[1,"Default",0,1]],[[-188,1203,0,261,352,0,-1.699999963022947e-008,1,0,0,0,0,[]],208,228,[],[],[1,"Default",0,1]],[[-145,1064,0,282,228,0,-0.005274420138448477,1,0,0,0,0,[]],209,229,[],[],[1,"Default",0,1]],[[176,1283,0,89,75,0,0.9558429718017578,1,0,0,0,0,[]],210,230,[],[],[1,"Default",0,1]],[[-568,1412,0,50,50,0,0,1,0.5,0.5,0,0,[]],327,231,[[12],[0.1],[0.7],[1.7],[690],[600],[7]],[[1]],["sharp shooter.scml","","",100,0]],[[-504,1310,0,50,123,0,-1.473420262336731,1,0,0,0,0,[]],211,232,[],[],[1,"Default",0,1]],[[-568,1412,0,71,28,0,0,1,0,0,0,0,[]],212,233,[],[],[1,"Default",0,1]],[[-568,1412,0,23,195,0,0,1,0,0,0,0,[]],213,234,[],[],[1,"Default",0,1]],[[-568,1412,0,150,62,0,0,1,0,0,0,0,[]],214,235,[],[],[1,"Default",0,1]],[[-568,1412,0,60,102,0,0,1,0,0,0,0,[]],215,236,[],[],[1,"Default",0,1]],[[-568,1412,0,50,24,0,0,1,0,0,0,0,[]],216,237,[],[],[1,"Default",0,1]],[[-411,1331,0,72,97,0,-1.44601571559906,1,0,0,0,0,[]],217,238,[],[],[1,"Default",0,1]],[[-334,1330,0,56,42,0,-1.567854404449463,1,0,0,0,0,[]],218,239,[],[],[1,"Default",0,1]],[[-382,1077,0,88,450,0,-0.02630575746297836,1,0,0,0,0,[]],219,240,[],[],[1,"Default",0,1]],[[-328,1275,0,55,51,0,-0.06184732913970947,1,0,0,0,0,[]],220,241,[],[],[1,"Default",0,1]],[[-529,1483,0,75,110,0,0.06847953796386719,1,0,0,0,0,[]],221,242,[],[],[1,"Default",0,1]],[[-577,1425,0,73,130,0,-0.3687742352485657,1,0,0,0,0,[]],222,243,[],[],[1,"Default",0,1]],[[-650,1401,0,75,120,0,0.333554744720459,1,0,0,0,0,[]],223,244,[],[],[1,"Default",0,1]],[[-680,1503,0,60,102,0,-0.00547335296869278,1,0,0,0,0,[]],224,245,[],[],[1,"Default",0,1]],[[-683,1579,0,50,24,0,-0.00547337019816041,1,0,0,0,0,[]],225,246,[],[],[1,"Default",0,1]],[[-733,1154,0,76,274,0,-0.4309728443622589,1,0,0,0,0,[]],226,247,[],[],[1,"Default",0,1]],[[-664,1203,0,178,223,0,-1.699999963022947e-008,1,0,0,0,0,[]],227,248,[],[],[1,"Default",0,1]],[[-599,1422,0,76,92,0,-0.09081028401851654,1,0,0,0,0,[]],228,249,[],[],[1,"Default",0,1]],[[-660,1406,0,160,30,0,-0,1,0,0,0,0,[]],229,250,[],[],[1,"Default",0,1]],[[-662,1029,0,212,291,0,-0.1318711936473846,1,0,0,0,0,[]],230,251,[],[],[1,"Default",0,1]],[[-653,1245,0,57,114,0,1.318105220794678,1,0,0,0,0,[]],231,252,[],[],[1,"Default",0,1]],[[-734,1262,0,57,113,0,1.318105220794678,1,0,0,0,0,[]],232,253,[],[],[1,"Default",0,1]],[[-805,1276,0,82,74,0,1.318105220794678,1,0,0,0,0,[]],233,254,[],[],[1,"Default",0,1]],[[-369,1090,0,2,217,0,-0.02695182897150517,1,0,0,0,0,[]],234,255,[],[],[1,"Default",0,1]],[[-365,1294,0,2,217,0,-0.02695182897150517,1,0,0,0,0,[]],235,256,[],[],[1,"Default",0,1]],[[-699,1197,0,99,100,0,0,1,0,0,0,0,[]],236,257,[],[],[1,"Default",0,1]],[[-1212,1330,0,50,50,0,0,1,0.5,0.5,0,0,[]],328,258,[[13],[0.1],[0.7],[1.7],[690],[520],[5]],[[1]],["summoner.scml","","",100,0]],[[-1130.924926757813,1187.053100585938,0,148,253,0,0.1120915412902832,1,0,0,0,0,[]],237,259,[],[],[1,"Default",0,1]],[[-1212,1330,0,248,248,0,0,1,0,0,0,0,[]],238,260,[],[],[1,"Default",0,1]],[[-1212,1330,0,248,248,0,0,1,0,0,0,0,[]],239,261,[],[],[1,"Default",0,1]],[[-1691,1172.5,0,958,315,0,-0,1,0,0,0,0,[]],240,262,[],[],[1,"Default",0,1]],[[-1284.454345703125,1504.764404296875,0,81,104,0,-1.699999963022947e-008,1,0,0,0,0,[]],241,263,[],[],[1,"Default",0,1]],[[-1222.851318359375,1496.759521484375,0,96,100,0,-0,1,0,0,0,0,[]],242,264,[],[],[1,"Default",0,1]],[[-1346.67431640625,1161.257080078125,0,274,368,0,-1.699999963022947e-008,1,0,0,0,0,[]],243,265,[],[],[1,"Default",0,1]],[[-1304.854858398438,1106.075073242188,0,261,100,0,0,1,0,0,0,0,[]],244,266,[],[],[1,"Default",0,1]],[[-1282.0908203125,997.6959228515625,0,231,189,0,-0.005274420138448477,1,0,0,0,0,[]],245,267,[],[],[1,"Default",0,1]],[[-1323.999267578125,1114.4130859375,0,281,165,0,0,1,0,0,0,0,[]],246,268,[],[],[1,"Default",0,1]],[[-1379.709106445313,1190.911376953125,0,129,174,0,0.1071982383728027,1,0,0,0,0,[]],247,269,[],[],[1,"Default",0,1]],[[-1333.024658203125,1285.683715820313,0,70,59,0,-3.048844337463379,1,0,0,0,0,[]],248,270,[],[],[1,"Default",0,1]],[[-1439.71484375,1204.247192382813,0,84,70,0,-0.3930541574954987,1,0,0,0,0,[]],249,271,[],[],[1,"Default",0,1]],[[-1160.273071289063,1199.249389648438,0,255,160,0,0.2904748916625977,1,0,0,0,0,[]],250,272,[],[],[1,"Default",0,1]],[[3055,1383,0,50,50,0,0,1,0.5,0.5,0,0,[]],329,273,[[14],[0.1],[0.6],[1.7],[675],[700],[5]],[[1]],["giant hand.scml","","",100,0]],[[2947,947,0,253,504,0,-0,1,0,0,0,0,[]],251,274,[],[],[1,"Default",0,1]],[[2848,1347,0,351,103,0,-0,1,0,0,0,0,[]],252,275,[],[],[1,"Default",0,1]],[[3223,647,0,67,133,0,-0,1,0,0,0,0,[]],253,276,[],[],[1,"Default",0,1]],[[3202,749,0,83,225,0,-0,1,0,0,0,0,[]],254,277,[],[],[1,"Default",0,1]],[[3231,586,0,47,91,0,-0,1,0,0,0,0,[]],255,278,[],[],[1,"Default",0,1]],[[3238,539,0,49,68,0,0,1,0,0,0,0,[]],256,279,[],[],[1,"Default",0,1]],[[3142,462,0,49,68,0,0,1,0,0,0,0,[]],257,280,[],[],[1,"Default",0,1]],[[3138,515,0,66,106,0,0,1,0,0,0,0,[]],258,281,[],[],[1,"Default",0,1]],[[3151,591,0,70,180,0,0,1,0,0,0,0,[]],259,282,[],[],[1,"Default",0,1]],[[3146,732,0,71,242,0,-0,1,0,0,0,0,[]],260,283,[],[],[1,"Default",0,1]],[[3065,439,0,64,102,0,-0,1,0,0,0,0,[]],261,284,[],[],[1,"Default",0,1]],[[3066,395,0,44,72,0,-0,1,0,0,0,0,[]],262,285,[],[],[1,"Default",0,1]],[[3070,517,0,76,183,0,0,1,0,0,0,0,[]],263,286,[],[],[1,"Default",0,1]],[[3057,656,0,85,290,0,0,1,0,0,0,0,[]],264,287,[],[],[1,"Default",0,1]],[[2992,430,0,44,72,0,-0,1,0,0,0,0,[]],265,288,[],[],[1,"Default",0,1]],[[2981,476,0,45,86,0,-0,1,0,0,0,0,[]],266,289,[],[],[1,"Default",0,1]],[[2966,541,0,68,156,0,-0,1,0,0,0,0,[]],267,290,[],[],[1,"Default",0,1]],[[2955,656,0,85,289,0,-0,1,0,0,0,0,[]],268,291,[],[],[1,"Default",0,1]],[[2759,680,0,51,98,0,-0.5006677508354187,1,0,0,0,0,[]],269,292,[],[],[1,"Default",0,1]],[[2788,739,0,63,139,0,-0.4844779074192047,1,0,0,0,0,[]],270,293,[],[],[1,"Default",0,1]],[[2842,823,0,66,211,0,-0.4031156003475189,1,0,0,0,0,[]],271,294,[],[],[1,"Default",0,1]],[[2933,887,0,334,249,0,-0,1,0,0,0,0,[]],272,295,[],[],[1,"Default",0,1]],[[2845,1369,0,410,124,0,-0,1,0,0,0,0,[]],273,296,[],[],[1,"Default",0,1]],[[-509,593,0,50,50,0,0,1,0.5,0.5,0,0,[]],330,297,[[15],[0.1],[0.6],[1.7],[690],[620],[6]],[[1]],["the grim reaper.scml","","",100,0]],[[-346,340,0,51,120,0,-1.473420262336731,1,0,0,0,0,[]],274,298,[],[],[1,"Default",0,1]],[[-580,440,0,72,136,0,-0,1,0,0,0,0,[]],275,299,[],[],[1,"Default",0,1]],[[-261,338,0,37,76,0,-1.44601571559906,1,0,0,0,0,[]],276,300,[],[],[1,"Default",0,1]],[[-175,354,0,80,213,0,0.05232810974121094,1,0,0,0,0,[]],277,301,[],[],[1,"Default",0,1]],[[-191,365,0,47,64,0,-1.489600777626038,1,0,0,0,0,[]],278,302,[],[],[1,"Default",0,1]],[[-659,438,0,318,333,0,-0,1,0,0,0,0,[]],279,303,[],[],[1,"Default",0,1]],[[-568,254,0,252,241,0,-1.699999963022947e-008,1,0,0,0,0,[]],280,304,[],[],[1,"Default",0,1]],[[-508,31,0,225,303,0,-0,1,0,0,0,0,[]],281,305,[],[],[1,"Default",0,1]],[[-491,269,0,48,120,0,1.509959220886231,1,0,0,0,0,[]],282,306,[],[],[1,"Default",0,1]],[[-574,279,0,29,76,0,1.509959220886231,1,0,0,0,0,[]],283,307,[],[],[1,"Default",0,1]],[[-971,-194,0,419,903,0,0.1856317520141602,1,0,0,0,0,[]],284,308,[],[],[1,"Default",0,1]],[[-641,286,0,47,62,0,1.509959220886231,1,0,0,0,0,[]],285,309,[],[],[1,"Default",0,1]],[[-2026,954,0,50,50,0,0,1,0.5,0.5,0,0,[]],331,310,[[16],[0.1],[0.4],[1.7],[690],[600],[7]],[[1]],["king.scml","","",100,0]],[[-1960,544,0,111,313,0,-1.480592966079712,1,0,0,0,0,[]],286,311,[],[],[1,"Default",0,1]],[[-2026,954,0,410,371,0,0,1,0,0,0,0,[]],287,312,[],[],[1,"Default",0,1]],[[-1711,578,0,126,268,0,-1.480592966079712,1,0,0,0,0,[]],288,313,[],[],[1,"Default",0,1]],[[-1532,619,0,188,163,0,-1.480592966079712,1,0,0,0,0,[]],289,314,[],[],[1,"Default",0,1]],[[-1252,706,0,328,1146,0,-3.139327049255371,1,0,0,0,0,[]],290,315,[],[],[1,"Default",0,1]],[[-1461,634,0,181,139,0,-1.480592966079712,1,0,0,0,0,[]],291,316,[],[],[1,"Default",0,1]],[[-1937,1140,0,227,138,0,-0,1,0,0,0,0,[]],292,317,[],[],[1,"Default",0,1]],[[-2562,379,0,615,813,0,0,1,0,0,0,0,[]],293,318,[],[],[1,"Default",0,1]],[[-2028,870,0,218,205,0,-0,1,0,0,0,0,[]],294,319,[],[],[1,"Default",0,1]],[[-2378,857,0,165,221,0,0.01969432830810547,1,0,0,0,0,[]],295,320,[],[],[1,"Default",0,1]],[[-1935,926,0,169,306,0,-0,1,0,0,0,0,[]],296,321,[],[],[1,"Default",0,1]],[[-2419,946,0,180,313,0,0.01969432830810547,1,0,0,0,0,[]],297,322,[],[],[1,"Default",0,1]],[[-2426,1225,0,151,84,0,0.01969432830810547,1,0,0,0,0,[]],298,323,[],[],[1,"Default",0,1]],[[-2325,413,0,457,455,0,0,1,0,0,0,0,[]],299,324,[],[],[1,"Default",0,1]],[[-2317,777,0,401,267,0,-0,1,0,0,0,0,[]],300,325,[],[],[1,"Default",0,1]],[[-2282,826,0,357,372,0,-0,1,0,0,0,0,[]],301,326,[],[],[1,"Default",0,1]],[[-2332,769,0,426,160,0,-0,1,0,0,0,0,[]],302,327,[],[],[1,"Default",0,1]],[[-2301,-143,0,457,838,0,0,1,0,0,0,0,[]],303,328,[],[],[1,"Default",0,1]],[[-2381,405,0,123,216,0,1.067160606384277,1,0,0,0,0,[]],304,329,[],[],[1,"Default",0,1]],[[-2534,423,0,239,304,0,1.051687717437744,1,0,0,0,0,[]],305,330,[],[],[1,"Default",0,1]],[[-2787,561,0,204,214,0,0.9427280426025391,1,0,0,0,0,[]],306,331,[],[],[1,"Default",0,1]],[[-2541,252,0,410,424,0,0,1,0,0,0,0,[]],307,332,[],[],[1,"Default",0,1]],[[687.9757080078125,804.2898559570313,0,128,1376,0,-1.561738014221191,1,0,0.5,0,1,[[]]],333,333,[],[],[6,180,0,10,32,100,0,1380,820,1,10,10,10,0,0,100,0.1,0,6]]],[]],["hud",1,389429750886168,true,[255,255,255],true,0,0,1,false,false,1,0,0,[[[23,778,0,1335,42,0,0,1,0,0,0,0,[]],312,22,[],[],[" LMB = next animation, RMB = next character, WHEEL=speed, +/- = zoom",0,"bold 20pt Arial","rgb(255,255,153)",1,0,0,0,0]],[[22,7,0,1335,42,0,0,1,0,0,0,0,[]],314,24,[],[],["basicSkeleton: idle",0,"bold 20pt Arial","rgb(255,255,153)",1,0,0,0,0]],[[1151,10,0,215,69,0,0,1,0,0,0,0,[]],332,154,[],[],["0",0,"bold 22pt Arial","rgb(255,255,255)",2,0,0,0,0]]],[]]],[[null,313,23,[],[],[20,10,1]]],[]]],[["ev_initialisations",[[0,null,false,null,714238334872547,[[311,9,null,1,false,false,false,746521927125920,false]],[[311,10,null,897168184327614,false,[[4,0],[1,[2,"skeleton_arm.L"]]]],[311,10,null,735082437783582,false,[[4,1],[1,[2,"skeleton_feet.L"]]]],[311,10,null,616455391537927,false,[[4,2],[1,[2,"skeleton_elbow.L"]]]],[311,10,null,259517423965373,false,[[4,3],[1,[2,"skeleton_hand.L"]]]],[311,10,null,820784942277764,false,[[4,4],[1,[2,"skeleton_sword"]]]],[311,10,null,972750410789574,false,[[4,5],[1,[2,"skeleton_hand_grab"]]]],[311,10,null,357292384549413,false,[[4,6],[1,[2,"skeleton_leg.L"]]]],[311,10,null,479815054958765,false,[[4,7],[1,[2,"skeleton_lower_leg.L"]]]],[311,10,null,435291261265297,false,[[4,8],[1,[2,"skeleton_leg.R"]]]],[311,10,null,829951730555097,false,[[4,9],[1,[2,"skeleton_lower_leg.R"]]]],[311,10,null,817438186927953,false,[[4,10],[1,[2,"skeleton_feet.R"]]]],[311,10,null,121011708549011,false,[[4,11],[1,[2,"skeleton_torso"]]]],[311,10,null,641884591910057,false,[[4,12],[1,[2,"skeleton_hips"]]]],[311,10,null,506006780125387,false,[[4,13],[1,[2,"skeleton_head"]]]],[311,10,null,431034480265918,false,[[4,14],[1,[2,"skeleton_arm.R"]]]],[311,10,null,711908330318676,false,[[4,15],[1,[2,"skeleton_elbow.R"]]]],[311,10,null,289404022643561,false,[[4,16],[1,[2,"skeleton_hand.R"]]]],[311,11,null,963413655445313,false,[[0,[21,311,false,null,1]]]],[311,12,null,587791118018083,false,[[0,[21,311,false,null,2]],[3,0],[3,0]]],[311,13,null,355040330751948,false,[[0,[21,311,false,null,4]],[0,[21,311,false,null,5]]]]]],[0,null,false,null,527034341849067,[[316,9,null,1,false,false,false,736654327585805,false]],[[316,10,null,702210097106520,false,[[4,17],[1,[2,"skeleton_arm.L"]]]],[316,10,null,216475452252911,false,[[4,18],[1,[2,"skeleton_feet.L"]]]],[316,10,null,216075011828298,false,[[4,19],[1,[2,"skeleton_elbow.L"]]]],[316,10,null,932673834736942,false,[[4,20],[1,[2,"skeleton_hand.L"]]]],[316,10,null,192806770502603,false,[[4,21],[1,[2,"skeleton_flag"]]]],[316,10,null,728492754078787,false,[[4,22],[1,[2,"skeleton_leg.L"]]]],[316,10,null,808045543531971,false,[[4,23],[1,[2,"skeleton_lower_leg.L"]]]],[316,10,null,972621391037596,false,[[4,24],[1,[2,"skeleton_leg.R"]]]],[316,10,null,256701020268141,false,[[4,25],[1,[2,"skeleton_lower_leg.R"]]]],[316,10,null,341228149666217,false,[[4,26],[1,[2,"skeleton_feet.R"]]]],[316,10,null,925634823269102,false,[[4,27],[1,[2,"skeleton_hips"]]]],[316,10,null,156629441175808,false,[[4,28],[1,[2,"skeleton_torso"]]]],[316,10,null,848874897045674,false,[[4,29],[1,[2,"skeleton_hair"]]]],[316,10,null,909769647657465,false,[[4,30],[1,[2,"skeleton_head"]]]],[316,10,null,969363898319172,false,[[4,31],[1,[2,"skeleton_arm.R"]]]],[316,10,null,477267849105512,false,[[4,32],[1,[2,"skeleton_elbow.R"]]]],[316,10,null,262234039980721,false,[[4,33],[1,[2,"skeleton_sword"]]]],[316,10,null,842240167186895,false,[[4,34],[1,[2,"skeleton_hand_grab"]]]],[316,10,null,733116235652437,false,[[4,35],[1,[2,"skeleton_hand.R"]]]],[316,11,null,719261815580843,false,[[0,[21,316,false,null,1]]]],[316,12,null,437912616659789,false,[[0,[21,316,false,null,2]],[3,0],[3,0]]],[316,13,null,760265193913547,false,[[0,[21,316,false,null,4]],[0,[21,316,false,null,5]]]]]],[0,null,false,null,335984533366977,[[317,9,null,1,false,false,false,549112310903772,false]],[[317,10,null,553574729798333,false,[[4,36],[1,[2,"skeleton_leg.L"]]]],[317,10,null,679677355023187,false,[[4,37],[1,[2,"skeleton_feet.L"]]]],[317,10,null,590889656509689,false,[[4,38],[1,[2,"skeleton_protector_000"]]]],[317,10,null,547312659783322,false,[[4,39],[1,[2,"skeleton_ex_1"]]]],[317,10,null,626451090241834,false,[[4,40],[1,[2,"skeleton_lower_leg.L"]]]],[317,10,null,520534448017969,false,[[4,41],[1,[2,"skeleton_leg.R"]]]],[317,10,null,279024323529088,false,[[4,42],[1,[2,"skeleton_lower_leg.R"]]]],[317,10,null,716808412115155,false,[[4,43],[1,[2,"skeleton_feet.R"]]]],[317,10,null,281465683690455,false,[[4,44],[1,[2,"skeleton_spine"]]]],[317,10,null,417152504598131,false,[[4,45],[1,[2,"skeleton_hips"]]]],[317,10,null,792040328444484,false,[[4,46],[1,[2,"skeleton_bomb"]]]],[317,10,null,522713450306911,false,[[4,47],[1,[2,"skeleton_torso"]]]],[317,10,null,659777789402799,false,[[4,48],[1,[2,"skeleton_protector"]]]],[317,11,null,223119042200476,false,[[0,[21,317,false,null,1]]]],[317,12,null,324949771345581,false,[[0,[21,317,false,null,2]],[3,0],[3,0]]],[317,13,null,846259491397288,false,[[0,[21,317,false,null,4]],[0,[21,317,false,null,5]]]]]],[0,null,false,null,729357104100059,[[318,9,null,1,false,false,false,861253993049294,false]],[[318,10,null,134906572901270,false,[[4,49],[1,[2,"skeleton_arm.L"]]]],[318,10,null,791820728144832,false,[[4,50],[1,[2,"skeleton_elbow.L"]]]],[318,10,null,957133473522010,false,[[4,51],[1,[2,"skeleton_hand.L"]]]],[318,10,null,296111230139882,false,[[4,52],[1,[2,"skeleton_sword"]]]],[318,10,null,948414971297409,false,[[4,53],[1,[2,"skeleton_hand_grab"]]]],[318,10,null,714654203375843,false,[[4,54],[1,[2,"skeleton_leg.L"]]]],[318,10,null,995197322328163,false,[[4,55],[1,[2,"skeleton_lower_leg.L"]]]],[318,10,null,945161322332729,false,[[4,56],[1,[2,"skeleton_feet.L"]]]],[318,10,null,915035275828432,false,[[4,57],[1,[2,"skeleton_leg.R"]]]],[318,10,null,784947022551071,false,[[4,58],[1,[2,"skeleton_lower_leg.R"]]]],[318,10,null,312783637001698,false,[[4,59],[1,[2,"skeleton_feet.R"]]]],[318,10,null,750980146367048,false,[[4,60],[1,[2,"skeleton_torso"]]]],[318,10,null,151930051469925,false,[[4,61],[1,[2,"skeleton_hips"]]]],[318,10,null,391906546826976,false,[[4,62],[1,[2,"skeleton_head"]]]],[318,10,null,286954347495275,false,[[4,63],[1,[2,"skeleton_arm.R"]]]],[318,10,null,122890351378149,false,[[4,64],[1,[2,"skeleton_elbow.R"]]]],[318,10,null,875426090047942,false,[[4,65],[1,[2,"skeleton_hand.R"]]]],[318,10,null,955811672365238,false,[[4,66],[1,[2,"skeleton_leg_armor.L"]]]],[318,10,null,897190675518914,false,[[4,67],[1,[2,"skeleton_piece_of_cloth"]]]],[318,10,null,562787464609810,false,[[4,68],[1,[2,"skeleton_leg_armor.R"]]]],[318,10,null,912313559256610,false,[[4,69],[1,[2,"skeleton_belt"]]]],[318,10,null,302067610802751,false,[[4,70],[1,[2,"skeleton_boots.R"]]]],[318,10,null,633588209316670,false,[[4,71],[1,[2,"skeleton_boots.L"]]]],[318,11,null,522796867289986,false,[[0,[21,318,false,null,1]]]],[318,12,null,956308904099206,false,[[0,[21,318,false,null,2]],[3,0],[3,0]]],[318,13,null,974234419388883,false,[[0,[21,318,false,null,4]],[0,[21,318,false,null,5]]]]]],[0,null,false,null,678152075020614,[[319,9,null,1,false,false,false,436668159860245,false]],[[319,10,null,806459831485996,false,[[4,72],[1,[2,"skeleton_feet.L"]]]],[319,10,null,491204369632824,false,[[4,73],[1,[2,"skeleton_hand.R"]]]],[319,10,null,777616051112727,false,[[4,74],[1,[2,"skeleton_badge_tail_1"]]]],[319,10,null,217049015946878,false,[[4,75],[1,[2,"skeleton_ex_1"]]]],[319,10,null,651818977683189,false,[[4,76],[1,[2,"skeleton_badge_tail_2"]]]],[319,10,null,320125742664827,false,[[4,77],[1,[2,"skeleton_arm.L"]]]],[319,10,null,759496175328970,false,[[4,78],[1,[2,"skeleton__001"]]]],[319,10,null,656859423053687,false,[[4,79],[1,[2,"skeleton_protector.L"]]]],[319,10,null,932987115379209,false,[[4,80],[1,[2,"skeleton_hand.L"]]]],[319,10,null,430556457941732,false,[[4,81],[1,[2,"skeleton_bomb"]]]],[319,10,null,332658371523648,false,[[4,82],[1,[2,"skeleton_leg.L"]]]],[319,10,null,556679198189419,false,[[4,83],[1,[2,"skeleton_lower_leg.L"]]]],[319,10,null,827076937110965,false,[[4,84],[1,[2,"skeleton_leg.R"]]]],[319,10,null,867082585655330,false,[[4,85],[1,[2,"skeleton_lower_leg.R"]]]],[319,10,null,287597839278510,false,[[4,86],[1,[2,"skeleton_feet.R"]]]],[319,10,null,217438604150062,false,[[4,87],[1,[2,"skeleton_torso"]]]],[319,10,null,980915367815949,false,[[4,88],[1,[2,"skeleton_hips"]]]],[319,10,null,135098903075544,false,[[4,89],[1,[2,"skeleton_head"]]]],[319,10,null,388182140671414,false,[[4,90],[1,[2,"skeleton_arm.R"]]]],[319,10,null,912162817904243,false,[[4,91],[1,[2,"skeleton_elbow.R"]]]],[319,10,null,826846940734845,false,[[4,92],[1,[2,"skeleton_protector.R"]]]],[319,11,null,277047668752307,false,[[0,[21,319,false,null,1]]]],[319,12,null,972914123145271,false,[[0,[21,319,false,null,2]],[3,0],[3,0]]],[319,13,null,428188682569941,false,[[0,[21,319,false,null,4]],[0,[21,319,false,null,5]]]]]],[0,null,false,null,528510458412410,[[320,9,null,1,false,false,false,103358309404036,false]],[[320,10,null,251804106082484,false,[[4,93],[1,[2,"skeleton_arm.L"]]]],[320,10,null,694231819784890,false,[[4,94],[1,[2,"skeleton_elbow.L"]]]],[320,10,null,543311825671620,false,[[4,95],[1,[2,"skeleton_hand.L"]]]],[320,10,null,543702410694298,false,[[4,96],[1,[2,"skeleton_sword"]]]],[320,10,null,414273051776314,false,[[4,97],[1,[2,"skeleton_hand_grab"]]]],[320,10,null,700473691477657,false,[[4,98],[1,[2,"skeleton_leg.L"]]]],[320,10,null,895124050116362,false,[[4,99],[1,[2,"skeleton_lower_leg.L"]]]],[320,10,null,309760060050588,false,[[4,100],[1,[2,"skeleton_feet.L"]]]],[320,10,null,964734156323270,false,[[4,101],[1,[2,"skeleton_leg.R"]]]],[320,10,null,986193198737794,false,[[4,102],[1,[2,"skeleton_lower_leg.R"]]]],[320,10,null,747291804286348,false,[[4,103],[1,[2,"skeleton_feet.R"]]]],[320,10,null,872792828154334,false,[[4,104],[1,[2,"skeleton_torso"]]]],[320,10,null,461530240048611,false,[[4,105],[1,[2,"skeleton_hips"]]]],[320,10,null,886126462171738,false,[[4,106],[1,[2,"skeleton_head"]]]],[320,10,null,259267749047890,false,[[4,107],[1,[2,"skeleton_arm.R"]]]],[320,10,null,439132737092469,false,[[4,108],[1,[2,"skeleton_elbow.R"]]]],[320,10,null,659885888201401,false,[[4,109],[1,[2,"skeleton_hand.R"]]]],[320,10,null,852580835302279,false,[[4,110],[1,[2,"skeleton_belt"]]]],[320,10,null,190047678961802,false,[[4,111],[1,[2,"skeleton_helmet"]]]],[320,10,null,637984516074163,false,[[4,112],[1,[2,"skeleton_boots.R"]]]],[320,10,null,874647268007083,false,[[4,113],[1,[2,"skeleton_boots.L"]]]],[320,10,null,223097262366070,false,[[4,114],[1,[2,"skeleton_shield"]]]],[320,11,null,510530234577767,false,[[0,[21,320,false,null,1]]]],[320,12,null,389858827189864,false,[[0,[21,320,false,null,2]],[3,0],[3,0]]],[320,13,null,468496688948708,false,[[0,[21,320,false,null,4]],[0,[21,320,false,null,5]]]]]],[0,null,false,null,887924767245733,[[321,9,null,1,false,false,false,556588182628828,false]],[[321,10,null,682369266023030,false,[[4,115],[1,[2,"Skeleton_arm.Back"]]]],[321,10,null,578058069448352,false,[[4,116],[1,[2,"Skeleton_rider_leg.L"]]]],[321,10,null,181783532426307,false,[[4,117],[1,[2,"Skeleton_elbow"]]]],[321,10,null,372711281800926,false,[[4,118],[1,[2,"Skeleton_arm"]]]],[321,10,null,912991880924638,false,[[4,119],[1,[2,"Skeleton_hand"]]]],[321,10,null,404705926857191,false,[[4,120],[1,[2,"Skeleton_weapon"]]]],[321,10,null,412365519323477,false,[[4,121],[1,[2,"Skeleton_horse_lowerleg_BL"]]]],[321,10,null,421266724195138,false,[[4,122],[1,[2,"Skeleton_horse_upperleg_BL"]]]],[321,10,null,427741417057921,false,[[4,123],[1,[2,"Skeleton_horse_feet_BL"]]]],[321,10,null,373142660607796,false,[[4,124],[1,[2,"Skeleton_horse_lowerleg_FL"]]]],[321,10,null,929440364735989,false,[[4,125],[1,[2,"Skeleton_horse_upperleg_FL"]]]],[321,10,null,143862617463568,false,[[4,126],[1,[2,"Skeleton_horse_feet_FL"]]]],[321,10,null,965890280399696,false,[[4,127],[1,[2,"Skeleton_horse_tail"]]]],[321,10,null,990001554061076,false,[[4,128],[1,[2,"Skeleton_horse_torso"]]]],[321,10,null,561306037687160,false,[[4,129],[1,[2,"Skeleton_horse_head"]]]],[321,10,null,902335275184259,false,[[4,130],[1,[2,"Skeleton_horse_feet_FR"]]]],[321,10,null,794785250027713,false,[[4,131],[1,[2,"Skeleton_horse_feet_BR"]]]],[321,10,null,251517716337730,false,[[4,132],[1,[2,"Skeleton_horse_lowerleg_BR"]]]],[321,10,null,285312583326160,false,[[4,133],[1,[2,"Skeleton_horse_lowerleg_FR"]]]],[321,10,null,962345648998756,false,[[4,134],[1,[2,"Skeleton_horse_upperleg_BR"]]]],[321,10,null,221107297504674,false,[[4,135],[1,[2,"Skeleton_horse_upperleg_FR"]]]],[321,10,null,805938246490019,false,[[4,136],[1,[2,"Skeleton_torso"]]]],[321,10,null,179875730457596,false,[[4,137],[1,[2,"Skeleton_leg"]]]],[321,10,null,440440669442157,false,[[4,138],[1,[2,"Skeleton_cape"]]]],[321,10,null,615698968295988,false,[[4,139],[1,[2,"Skeleton_head"]]]],[321,11,null,457918867763801,false,[[0,[21,321,false,null,1]]]],[321,12,null,297546894632193,false,[[0,[21,321,false,null,2]],[3,0],[3,0]]],[321,13,null,227511646919747,false,[[0,[21,321,false,null,4]],[0,[21,321,false,null,5]]]]]],[0,null,false,null,537071215274934,[[322,9,null,1,false,false,false,121493071502626,false]],[[322,10,null,638059002024859,false,[[4,140],[1,[2,"skeleton_arm.L"]]]],[322,10,null,693485757782919,false,[[4,141],[1,[2,"skeleton_feet.L"]]]],[322,10,null,622850846175228,false,[[4,142],[1,[2,"skeleton_elbow.L"]]]],[322,10,null,668833901577275,false,[[4,143],[1,[2,"skeleton_hand.L"]]]],[322,10,null,442287374471642,false,[[4,144],[1,[2,"skeleton_sword"]]]],[322,10,null,748069852732299,false,[[4,145],[1,[2,"skeleton_hand_grab"]]]],[322,10,null,598876152632850,false,[[4,146],[1,[2,"skeleton_lower_leg.L"]]]],[322,10,null,706600633954693,false,[[4,147],[1,[2,"skeleton_leg.L"]]]],[322,10,null,131793141113592,false,[[4,148],[1,[2,"skeleton_hips"]]]],[322,10,null,179859973376987,false,[[4,149],[1,[2,"skeleton_lower_leg.R"]]]],[322,10,null,276053775657464,false,[[4,150],[1,[2,"skeleton_leg.R"]]]],[322,10,null,528039872313199,false,[[4,151],[1,[2,"skeleton_feet.R"]]]],[322,10,null,669006075456897,false,[[4,152],[1,[2,"skeleton_torso"]]]],[322,10,null,917918894392858,false,[[4,153],[1,[2,"skeleton_head"]]]],[322,10,null,837712292149247,false,[[4,154],[1,[2,"skeleton_elbow.R"]]]],[322,10,null,279338357257642,false,[[4,155],[1,[2,"skeleton_arm.R"]]]],[322,10,null,294613219477286,false,[[4,156],[1,[2,"skeleton_hand.R"]]]],[322,11,null,243083189304444,false,[[0,[21,322,false,null,1]]]],[322,12,null,107314777895040,false,[[0,[21,322,false,null,2]],[3,0],[3,0]]],[322,13,null,700825536004528,false,[[0,[21,322,false,null,4]],[0,[21,322,false,null,5]]]]]],[0,null,false,null,272485596588526,[[323,9,null,1,false,false,false,851342674597945,false]],[[323,10,null,161224516227557,false,[[4,157],[1,[2,"skeleton_arm.L"]]]],[323,10,null,847704288664013,false,[[4,158],[1,[2,"skeleton_ex_1"]]]],[323,10,null,248600528688458,false,[[4,159],[1,[2,"skeleton_ball"]]]],[323,10,null,568021101065195,false,[[4,160],[1,[2,"skeleton_elbow.L"]]]],[323,10,null,400612133460833,false,[[4,161],[1,[2,"skeleton_hand.L"]]]],[323,10,null,627453504224296,false,[[4,162],[1,[2,"skeleton_hand_grab"]]]],[323,10,null,926141324926222,false,[[4,163],[1,[2,"skeleton_leg.L"]]]],[323,10,null,320419524933164,false,[[4,164],[1,[2,"skeleton_lower_leg.L"]]]],[323,10,null,600567897388355,false,[[4,165],[1,[2,"skeleton_feet.L"]]]],[323,10,null,442791368665036,false,[[4,166],[1,[2,"skeleton_leg.R"]]]],[323,10,null,135612542723780,false,[[4,167],[1,[2,"skeleton_lower_leg.R"]]]],[323,10,null,756945890295817,false,[[4,168],[1,[2,"skeleton_feet.R"]]]],[323,10,null,829425161807080,false,[[4,169],[1,[2,"skeleton_torso"]]]],[323,10,null,570796231279142,false,[[4,170],[1,[2,"skeleton_hips"]]]],[323,10,null,662747029951825,false,[[4,171],[1,[2,"skeleton_head"]]]],[323,10,null,147989662426603,false,[[4,172],[1,[2,"skeleton_arm.R"]]]],[323,10,null,997724902079034,false,[[4,173],[1,[2,"skeleton_elbow.R"]]]],[323,10,null,897643755621173,false,[[4,174],[1,[2,"skeleton_hand.R"]]]],[323,10,null,356745376947153,false,[[4,175],[1,[2,"skeleton_cannon_000"]]]],[323,10,null,494393133737108,false,[[4,176],[1,[2,"skeleton_stationary"]]]],[323,11,null,566405995660474,false,[[0,[21,323,false,null,1]]]],[323,12,null,176886236047753,false,[[0,[21,323,false,null,2]],[3,0],[3,0]]],[323,13,null,188710645440002,false,[[0,[21,323,false,null,4]],[0,[21,323,false,null,5]]]]]],[0,null,false,null,163863548414649,[[324,9,null,1,false,false,false,449005325771021,false]],[[324,10,null,277678620224611,false,[[4,177],[1,[2,"skeleton_arm"]]]],[324,10,null,756966285903931,false,[[4,178],[1,[2,"skeleton_elbow"]]]],[324,10,null,774207495855453,false,[[4,179],[1,[2,"skeleton_arm.L"]]]],[324,10,null,657875288822047,false,[[4,180],[1,[2,"skeleton_torso"]]]],[324,10,null,878473788501604,false,[[4,181],[1,[2,"skeleton_head"]]]],[324,10,null,978818108509027,false,[[4,182],[1,[2,"skeleton_hand.L"]]]],[324,11,null,454224273888037,false,[[0,[21,324,false,null,1]]]],[324,12,null,691624113595477,false,[[0,[21,324,false,null,2]],[3,0],[3,0]]],[324,13,null,377223607046521,false,[[0,[21,324,false,null,4]],[0,[21,324,false,null,5]]]]]],[0,null,false,null,447714360862311,[[325,9,null,1,false,false,false,769211673256895,false]],[[325,10,null,890979407748709,false,[[4,183],[1,[2,"skeleton_arm.L"]]]],[325,10,null,416489582739155,false,[[4,184],[1,[2,"skeleton_feet.L"]]]],[325,10,null,634148902286401,false,[[4,185],[1,[2,"skeleton_arrow"]]]],[325,10,null,739567964065653,false,[[4,186],[1,[2,"skeleton_elbow.L"]]]],[325,10,null,956703097789900,false,[[4,187],[1,[2,"skeleton_hand.L"]]]],[325,10,null,376380280801780,false,[[4,188],[1,[2,"skeleton_sword"]]]],[325,10,null,321987463877796,false,[[4,189],[1,[2,"skeleton_hand_grab"]]]],[325,10,null,537579405818251,false,[[4,190],[1,[2,"skeleton_leg.L"]]]],[325,10,null,714983917633448,false,[[4,191],[1,[2,"skeleton_lower_leg.L"]]]],[325,10,null,114095150714351,false,[[4,192],[1,[2,"skeleton_leg.R"]]]],[325,10,null,503932512653459,false,[[4,193],[1,[2,"skeleton_lower_leg.R"]]]],[325,10,null,370786952529609,false,[[4,194],[1,[2,"skeleton_feet.R"]]]],[325,10,null,590653668673754,false,[[4,195],[1,[2,"skeleton_quiver"]]]],[325,10,null,207450441216046,false,[[4,196],[1,[2,"skeleton_torso"]]]],[325,10,null,248904483194872,false,[[4,197],[1,[2,"skeleton_piece_of_cloth_front"]]]],[325,10,null,852364309818660,false,[[4,198],[1,[2,"skeleton_belt"]]]],[325,10,null,523273794366048,false,[[4,199],[1,[2,"skeleton_head"]]]],[325,10,null,285386272228861,false,[[4,200],[1,[2,"skeleton_arm.R"]]]],[325,10,null,995442101755846,false,[[4,201],[1,[2,"skeleton_elbow.R"]]]],[325,10,null,504720537985603,false,[[4,202],[1,[2,"skeleton_hand.R"]]]],[325,10,null,341916784930142,false,[[4,203],[1,[2,"skeleton_bow_string_1"]]]],[325,10,null,207144353961165,false,[[4,204],[1,[2,"skeleton_bow_string_2"]]]],[325,11,null,945925125649793,false,[[0,[21,325,false,null,1]]]],[325,12,null,185265114252914,false,[[0,[21,325,false,null,2]],[3,0],[3,0]]],[325,13,null,927649633354640,false,[[0,[21,325,false,null,4]],[0,[21,325,false,null,5]]]]]],[0,null,false,null,303262664599654,[[326,9,null,1,false,false,false,691164208695746,false]],[[326,10,null,506109104713119,false,[[4,205],[1,[2,"skeleton_arm"]]]],[326,10,null,708386692433051,false,[[4,206],[1,[2,"skeleton_elbow"]]]],[326,10,null,965826185651131,false,[[4,207],[1,[2,"skeleton_arm.L"]]]],[326,10,null,619362386244574,false,[[4,208],[1,[2,"skeleton_torso"]]]],[326,10,null,458596700092099,false,[[4,209],[1,[2,"skeleton_head"]]]],[326,10,null,214542859075983,false,[[4,210],[1,[2,"skeleton_hand.L"]]]],[326,11,null,908681140507254,false,[[0,[21,326,false,null,1]]]],[326,12,null,874612341477261,false,[[0,[21,326,false,null,2]],[3,0],[3,0]]],[326,13,null,166162597472499,false,[[0,[21,326,false,null,4]],[0,[21,326,false,null,5]]]]]],[0,null,false,null,874463589684137,[[327,9,null,1,false,false,false,980606537357016,false]],[[327,10,null,223716161327511,false,[[4,211],[1,[2,"skeleton_arm.L"]]]],[327,10,null,764967355284773,false,[[4,212],[1,[2,"skeleton_feet.L"]]]],[327,10,null,851567108454800,false,[[4,213],[1,[2,"skeleton_arrow"]]]],[327,10,null,654711808155108,false,[[4,214],[1,[2,"skeleton_hips"]]]],[327,10,null,293050731843684,false,[[4,215],[1,[2,"skeleton_lower_leg.R_000"]]]],[327,10,null,548982964628713,false,[[4,216],[1,[2,"skeleton_feet.R_000"]]]],[327,10,null,898307452975680,false,[[4,217],[1,[2,"skeleton_elbow.L"]]]],[327,10,null,792827810781141,false,[[4,218],[1,[2,"skeleton_hand.L"]]]],[327,10,null,768641701713406,false,[[4,219],[1,[2,"skeleton_sword"]]]],[327,10,null,832154276448001,false,[[4,220],[1,[2,"skeleton_hand_grab"]]]],[327,10,null,160513867309107,false,[[4,221],[1,[2,"skeleton_lower_leg.L"]]]],[327,10,null,903224101234366,false,[[4,222],[1,[2,"skeleton_leg.L"]]]],[327,10,null,203550930749994,false,[[4,223],[1,[2,"skeleton_leg.R"]]]],[327,10,null,599985338666837,false,[[4,224],[1,[2,"skeleton_lower_leg.R"]]]],[327,10,null,316565077281727,false,[[4,225],[1,[2,"skeleton_feet.R"]]]],[327,10,null,491707069815016,false,[[4,226],[1,[2,"skeleton_quiver"]]]],[327,10,null,514140523714197,false,[[4,227],[1,[2,"skeleton_torso"]]]],[327,10,null,252124834833312,false,[[4,228],[1,[2,"skeleton_piece_of_cloth_front"]]]],[327,10,null,695077654693130,false,[[4,229],[1,[2,"skeleton_belt"]]]],[327,10,null,148492049890842,false,[[4,230],[1,[2,"skeleton_head"]]]],[327,10,null,558268905753992,false,[[4,231],[1,[2,"skeleton_arm.R"]]]],[327,10,null,569974026856206,false,[[4,232],[1,[2,"skeleton_elbow.R"]]]],[327,10,null,927479860969444,false,[[4,233],[1,[2,"skeleton_hand.R"]]]],[327,10,null,921170726361100,false,[[4,234],[1,[2,"skeleton_bow_string_1"]]]],[327,10,null,812528784766395,false,[[4,235],[1,[2,"skeleton_bow_string_2"]]]],[327,10,null,250058181178864,false,[[4,236],[1,[2,"skeleton_shoulder_armor"]]]],[327,11,null,662600541623403,false,[[0,[21,327,false,null,1]]]],[327,12,null,552300814887066,false,[[0,[21,327,false,null,2]],[3,0],[3,0]]],[327,13,null,985762745572713,false,[[0,[21,327,false,null,4]],[0,[21,327,false,null,5]]]]]],[0,null,false,null,329846100190232,[[328,9,null,1,false,false,false,469393002835089,false]],[[328,10,null,361984228842312,false,[[4,237],[1,[2,"skeleton_arm.L"]]]],[328,10,null,530479947604262,false,[[4,238],[1,[2,"skeleton_glow"]]]],[328,10,null,124520896910200,false,[[4,239],[1,[2,"skeleton_glow_000"]]]],[328,10,null,358617449716645,false,[[4,240],[1,[2,"fireball_fireball_1"]]]],[328,10,null,787454169514702,false,[[4,241],[1,[2,"skeleton_feet.R"]]]],[328,10,null,321529885808607,false,[[4,242],[1,[2,"skeleton_feet.L"]]]],[328,10,null,742204146014551,false,[[4,243],[1,[2,"skeleton_torso"]]]],[328,10,null,862572019524644,false,[[4,244],[1,[2,"skeleton_scarf.Back"]]]],[328,10,null,915461431108457,false,[[4,245],[1,[2,"skeleton_head"]]]],[328,10,null,458265897344224,false,[[4,246],[1,[2,"skeleton_scarf.Front"]]]],[328,10,null,710922978052446,false,[[4,247],[1,[2,"skeleton_arm.R"]]]],[328,10,null,699301144000162,false,[[4,248],[1,[2,"skeleton_elbow.R"]]]],[328,10,null,978654363750279,false,[[4,249],[1,[2,"skeleton_hand.R"]]]],[328,10,null,618198074546242,false,[[4,250],[1,[2,"skeleton_hand.L"]]]],[328,11,null,869466052596307,false,[[0,[21,328,false,null,1]]]],[328,12,null,575947530665427,false,[[0,[21,328,false,null,2]],[3,0],[3,0]]],[328,13,null,623682043038079,false,[[0,[21,328,false,null,4]],[0,[21,328,false,null,5]]]]]],[0,null,false,null,529846818077509,[[329,9,null,1,false,false,false,581993014073113,false]],[[329,10,null,847379790749240,false,[[4,251],[1,[2,"skeleton_elbow"]]]],[329,10,null,508319898734176,false,[[4,252],[1,[2,"skeleton_portal"]]]],[329,10,null,335086039149975,false,[[4,253],[1,[2,"skeleton_finger_4_2"]]]],[329,10,null,828747153537295,false,[[4,254],[1,[2,"skeleton_finger_4_1"]]]],[329,10,null,320384887249789,false,[[4,255],[1,[2,"skeleton_finger_4_3"]]]],[329,10,null,454679231419250,false,[[4,256],[1,[2,"skeleton_finger_4_4"]]]],[329,10,null,343541747976911,false,[[4,257],[1,[2,"skeleton_finger_3_4"]]]],[329,10,null,215782712824635,false,[[4,258],[1,[2,"skeleton_finger_3_3"]]]],[329,10,null,290205741481945,false,[[4,259],[1,[2,"skeleton_finger_3_2"]]]],[329,10,null,205856924195416,false,[[4,260],[1,[2,"skeleton_finger_3_1"]]]],[329,10,null,939457611864645,false,[[4,261],[1,[2,"skeleton_finger_2_3"]]]],[329,10,null,403881432277958,false,[[4,262],[1,[2,"skeleton_finger_2_4"]]]],[329,10,null,309424535370025,false,[[4,263],[1,[2,"skeleton_finger_2_2"]]]],[329,10,null,254423291191327,false,[[4,264],[1,[2,"skeleton_finger_2_1"]]]],[329,10,null,535148034126354,false,[[4,265],[1,[2,"skeleton_finger_1_4"]]]],[329,10,null,274732894952731,false,[[4,266],[1,[2,"skeleton_finger_1_3"]]]],[329,10,null,784637655444394,false,[[4,267],[1,[2,"skeleton_finger_1_2"]]]],[329,10,null,361780875195219,false,[[4,268],[1,[2,"skeleton_finger_1_1"]]]],[329,10,null,115752490227451,false,[[4,269],[1,[2,"skeleton_thumb_2"]]]],[329,10,null,477111725427646,false,[[4,270],[1,[2,"skeleton_thumb_1"]]]],[329,10,null,737584363963195,false,[[4,271],[1,[2,"skeleton_thumb_0"]]]],[329,10,null,156475494994962,false,[[4,272],[1,[2,"skeleton_palm"]]]],[329,10,null,230694484089119,false,[[4,273],[1,[2,"skeleton_portal_front"]]]],[329,11,null,614841767946384,false,[[0,[21,329,false,null,1]]]],[329,12,null,485566108158516,false,[[0,[21,329,false,null,2]],[3,0],[3,0]]],[329,13,null,510924306869035,false,[[0,[21,329,false,null,4]],[0,[21,329,false,null,5]]]]]],[0,null,false,null,924877936019998,[[330,9,null,1,false,false,false,130859239759595,false]],[[330,10,null,589248797484531,false,[[4,274],[1,[2,"skeleton_arm.L"]]]],[330,10,null,357337274731592,false,[[4,275],[1,[2,"skeleton_skulls"]]]],[330,10,null,879068258071687,false,[[4,276],[1,[2,"skeleton_elbow.L"]]]],[330,10,null,737183758775949,false,[[4,277],[1,[2,"skeleton_hour glass"]]]],[330,10,null,789698258166707,false,[[4,278],[1,[2,"skeleton_hand.L"]]]],[330,10,null,738730705810648,false,[[4,279],[1,[2,"skeleton_hips"]]]],[330,10,null,929661572918482,false,[[4,280],[1,[2,"skeleton_torso"]]]],[330,10,null,541346099461395,false,[[4,281],[1,[2,"skeleton_head"]]]],[330,10,null,402667237102290,false,[[4,282],[1,[2,"skeleton_arm.R"]]]],[330,10,null,955236466501887,false,[[4,283],[1,[2,"skeleton_elbow.R"]]]],[330,10,null,500111803011230,false,[[4,284],[1,[2,"skeleton_weapon"]]]],[330,10,null,848189739850216,false,[[4,285],[1,[2,"skeleton_hand.R"]]]],[330,11,null,654078076193403,false,[[0,[21,330,false,null,1]]]],[330,12,null,126500440603343,false,[[0,[21,330,false,null,2]],[3,0],[3,0]]],[330,13,null,260396960267003,false,[[0,[21,330,false,null,4]],[0,[21,330,false,null,5]]]]]],[0,null,false,null,353200584268510,[[331,9,null,1,false,false,false,840784784647860,false]],[[331,10,null,875669352999892,false,[[4,286],[1,[2,"skeleton_arm.L"]]]],[331,10,null,240976313731778,false,[[4,287],[1,[2,"skeleton_crown"]]]],[331,10,null,384469933728076,false,[[4,288],[1,[2,"skeleton_elbow.L"]]]],[331,10,null,954762154016924,false,[[4,289],[1,[2,"skeleton_hand.L"]]]],[331,10,null,799601854493675,false,[[4,290],[1,[2,"skeleton_weapon"]]]],[331,10,null,301161402176646,false,[[4,291],[1,[2,"skeleton_hand_grab"]]]],[331,10,null,481484856873549,false,[[4,292],[1,[2,"skeleton_feet.L"]]]],[331,10,null,901176151998799,false,[[4,293],[1,[2,"skeleton_cape"]]]],[331,10,null,404192323700594,false,[[4,294],[1,[2,"skeleton_leg.L"]]]],[331,10,null,288692932334192,false,[[4,295],[1,[2,"skeleton_leg.R"]]]],[331,10,null,529184500194859,false,[[4,296],[1,[2,"skeleton_lower_leg.L"]]]],[331,10,null,259915785229335,false,[[4,297],[1,[2,"skeleton_lower_leg.R"]]]],[331,10,null,425448938791586,false,[[4,298],[1,[2,"skeleton_feet.R"]]]],[331,10,null,423770594919267,false,[[4,299],[1,[2,"skeleton_torso"]]]],[331,10,null,309333796412239,false,[[4,300],[1,[2,"skeleton_hips"]]]],[331,10,null,222088367944047,false,[[4,301],[1,[2,"skeleton_piece_of_cloth_front"]]]],[331,10,null,986856619491198,false,[[4,302],[1,[2,"skeleton_belt"]]]],[331,10,null,355150093389547,false,[[4,303],[1,[2,"skeleton_head"]]]],[331,10,null,958730851326320,false,[[4,304],[1,[2,"skeleton_arm.R"]]]],[331,10,null,612938019806344,false,[[4,305],[1,[2,"skeleton_elbow.R"]]]],[331,10,null,970488736546483,false,[[4,306],[1,[2,"skeleton_hand.R"]]]],[331,10,null,239531342093583,false,[[4,307],[1,[2,"skeleton_shoulder_armor"]]]],[331,11,null,618211558670393,false,[[0,[21,331,false,null,1]]]],[331,12,null,477387905246123,false,[[0,[21,331,false,null,2]],[3,0],[3,0]]],[331,13,null,965235187192576,false,[[0,[21,331,false,null,4]],[0,[21,331,false,null,5]]]]]]]],["Event sheet 1",[[1,"gv_anim_speed",0,0.1,false,false,314883743708939,false],[1,"gv_entity_current",0,0,false,false,724344766198352,false],[1,"gv_animation_current",0,0,false,false,401136870317842,false],[1,"gv_zoom",0,1,false,false,567253724141198,false],[2,"ev_constants",false],[2,"ev_initialisations",false],[0,[true,"startup"],false,null,515817275987211,[[-1,14,null,0,false,false,false,515817275987211,false,[[1,[2,"startup"]]]]],[],[[0,null,false,null,989842608479826,[[-1,15,null,1,false,false,false,507274297470827,false]],[[310,16,null,156746321146451,false,[[2,["jungle loop",false]],[3,1],[0,[0,-10]],[1,[2,"ambient"]]]],[313,17,null,515510807406244,false],[313,18,null,110391153651669,false,[[0,[0,0]],[0,[0,0]],[7,[2,"basicSkeleton"]]]],[313,18,null,192024301349577,false,[[0,[0,0]],[0,[0,1]],[7,[2,"idle"]]]],[313,18,null,142197356183979,false,[[0,[0,0]],[0,[0,2]],[7,[2,"attack"]]]],[313,18,null,541857754507048,false,[[0,[0,0]],[0,[0,3]],[7,[2,"death"]]]],[313,18,null,828951633356077,false,[[0,[0,0]],[0,[0,4]],[7,[2,"hurt"]]]],[313,18,null,172268490973956,false,[[0,[0,0]],[0,[0,5]],[7,[2,"run"]]]],[313,18,null,111322177517290,false,[[0,[0,0]],[0,[0,6]],[7,[2,"walk"]]]],[313,18,null,811902914006187,false,[[0,[0,0]],[0,[0,7]],[7,[2,"default"]]]],[313,18,null,340634666431368,false,[[0,[0,1]],[0,[0,0]],[7,[2,"barbarian"]]]],[313,18,null,799248165428772,false,[[0,[0,1]],[0,[0,1]],[7,[2,"idle"]]]],[313,18,null,112816139273130,false,[[0,[0,1]],[0,[0,2]],[7,[2,"attack"]]]],[313,18,null,163979060414265,false,[[0,[0,1]],[0,[0,3]],[7,[2,"death"]]]],[313,18,null,936448997936488,false,[[0,[0,1]],[0,[0,4]],[7,[2,"hurt"]]]],[313,18,null,421602455327516,false,[[0,[0,1]],[0,[0,5]],[7,[2,"run"]]]],[313,18,null,616934779938206,false,[[0,[0,1]],[0,[0,6]],[7,[2,"walk"]]]],[313,18,null,748132340397528,false,[[0,[0,1]],[0,[0,7]],[7,[2,"default"]]]],[313,18,null,779707953933802,false,[[0,[0,2]],[0,[0,0]],[7,[2,"headlessBomber"]]]],[313,18,null,138562570478808,false,[[0,[0,2]],[0,[0,1]],[7,[2,"idle"]]]],[313,18,null,431858088893580,false,[[0,[0,2]],[0,[0,2]],[7,[2,"attack"]]]],[313,18,null,721458265063955,false,[[0,[0,2]],[0,[0,3]],[7,[2,"death"]]]],[313,18,null,644524514749896,false,[[0,[0,2]],[0,[0,4]],[7,[2,"hurt"]]]],[313,18,null,229487126039859,false,[[0,[0,2]],[0,[0,5]],[7,[2,"run"]]]],[313,18,null,350128677073478,false,[[0,[0,2]],[0,[0,6]],[7,[2,"walk"]]]],[313,18,null,648092333015837,false,[[0,[0,2]],[0,[0,7]],[7,[2,"default"]]]],[313,18,null,147838496757907,false,[[0,[0,3]],[0,[0,0]],[7,[2,"heavyWarrior"]]]],[313,18,null,706823816234473,false,[[0,[0,3]],[0,[0,1]],[7,[2,"idle"]]]],[313,18,null,132177007288527,false,[[0,[0,3]],[0,[0,2]],[7,[2,"attack"]]]],[313,18,null,950582520811410,false,[[0,[0,3]],[0,[0,3]],[7,[2,"death"]]]],[313,18,null,576028957380160,false,[[0,[0,3]],[0,[0,4]],[7,[2,"hurt"]]]],[313,18,null,256431010057495,false,[[0,[0,3]],[0,[0,5]],[7,[2,"run"]]]],[313,18,null,697536772597238,false,[[0,[0,3]],[0,[0,6]],[7,[2,"walk"]]]],[313,18,null,392818071321444,false,[[0,[0,3]],[0,[0,7]],[7,[2,"default"]]]],[313,18,null,865788846785183,false,[[0,[0,4]],[0,[0,0]],[7,[2,"kamikazeBomber"]]]],[313,18,null,228521441305581,false,[[0,[0,4]],[0,[0,1]],[7,[2,"idle"]]]],[313,18,null,633509693803299,false,[[0,[0,4]],[0,[0,2]],[7,[2,"bomb attack"]]]],[313,18,null,340092666732126,false,[[0,[0,4]],[0,[0,3]],[7,[2,"death"]]]],[313,18,null,271087453732061,false,[[0,[0,4]],[0,[0,4]],[7,[2,"hurt"]]]],[313,18,null,383490467921053,false,[[0,[0,4]],[0,[0,5]],[7,[2,"run"]]]],[313,18,null,363394177880684,false,[[0,[0,4]],[0,[0,6]],[7,[2,"walk"]]]],[313,18,null,540278394776819,false,[[0,[0,4]],[0,[0,7]],[7,[2,"default"]]]],[313,18,null,534509221270099,false,[[0,[0,5]],[0,[0,0]],[7,[2,"leightWarrior"]]]],[313,18,null,507445904305108,false,[[0,[0,5]],[0,[0,1]],[7,[2,"idle"]]]],[313,18,null,459139304284007,false,[[0,[0,5]],[0,[0,2]],[7,[2,"attack"]]]],[313,18,null,146962157392912,false,[[0,[0,5]],[0,[0,3]],[7,[2,"death"]]]],[313,18,null,308276508461008,false,[[0,[0,5]],[0,[0,4]],[7,[2,"hurt"]]]],[313,18,null,536880897559599,false,[[0,[0,5]],[0,[0,5]],[7,[2,"run"]]]],[313,18,null,248901488094367,false,[[0,[0,5]],[0,[0,6]],[7,[2,"walk"]]]],[313,18,null,509373477084025,false,[[0,[0,5]],[0,[0,7]],[7,[2,"default"]]]],[313,18,null,496126150004810,false,[[0,[0,6]],[0,[0,0]],[7,[2,"nightmareRider"]]]],[313,18,null,442731346502422,false,[[0,[0,6]],[0,[0,1]],[7,[2,"idle"]]]],[313,18,null,630079007098555,false,[[0,[0,6]],[0,[0,2]],[7,[2,"attack"]]]],[313,18,null,564162626313616,false,[[0,[0,6]],[0,[0,3]],[7,[2,"death"]]]],[313,18,null,509088952859432,false,[[0,[0,6]],[0,[0,4]],[7,[2,"hurt"]]]],[313,18,null,299496660634937,false,[[0,[0,6]],[0,[0,5]],[7,[2,"run"]]]],[313,18,null,900486200237338,false,[[0,[0,6]],[0,[0,6]],[7,[2,"default"]]]],[313,18,null,747360180054799,false,[[0,[0,7]],[0,[0,0]],[7,[2,"peasant"]]]],[313,18,null,537275184754168,false,[[0,[0,7]],[0,[0,1]],[7,[2,"idle"]]]],[313,18,null,360538980276555,false,[[0,[0,7]],[0,[0,2]],[7,[2,"attack"]]]],[313,18,null,796195281478783,false,[[0,[0,7]],[0,[0,3]],[7,[2,"death"]]]],[313,18,null,831825184386391,false,[[0,[0,7]],[0,[0,4]],[7,[2,"hurt"]]]],[313,18,null,619783187670122,false,[[0,[0,7]],[0,[0,5]],[7,[2,"run"]]]],[313,18,null,412032822154562,false,[[0,[0,7]],[0,[0,6]],[7,[2,"walk"]]]],[313,18,null,736581724071931,false,[[0,[0,7]],[0,[0,7]],[7,[2,"default"]]]],[313,18,null,735798832966065,false,[[0,[0,8]],[0,[0,0]],[7,[2,"cannonBoy"]]]],[313,18,null,280578665757615,false,[[0,[0,8]],[0,[0,1]],[7,[2,"idle"]]]],[313,18,null,510960699977842,false,[[0,[0,8]],[0,[0,2]],[7,[2,"shoot"]]]],[313,18,null,824861531688142,false,[[0,[0,8]],[0,[0,3]],[7,[2,"death"]]]],[313,18,null,480430575183140,false,[[0,[0,8]],[0,[0,4]],[7,[2,"hit"]]]],[313,18,null,215347024374824,false,[[0,[0,8]],[0,[0,5]],[7,[2,"move"]]]],[313,18,null,309614338371095,false,[[0,[0,8]],[0,[0,6]],[7,[2,"default"]]]],[313,18,null,589763170948400,false,[[0,[0,9]],[0,[0,0]],[7,[2,"evilMage"]]]],[313,18,null,282632479830904,false,[[0,[0,9]],[0,[0,1]],[7,[2,"idle"]]]],[313,18,null,633127825126984,false,[[0,[0,9]],[0,[0,2]],[7,[2,"attack"]]]],[313,18,null,963188477167883,false,[[0,[0,9]],[0,[0,3]],[7,[2,"death"]]]],[313,18,null,786007757772899,false,[[0,[0,9]],[0,[0,4]],[7,[2,"hurt"]]]],[313,18,null,717444566132924,false,[[0,[0,9]],[0,[0,5]],[7,[2,"move"]]]],[313,18,null,557351763913042,false,[[0,[0,10]],[0,[0,0]],[7,[2,"marksmen"]]]],[313,18,null,809995367440024,false,[[0,[0,10]],[0,[0,1]],[7,[2,"idle"]]]],[313,18,null,842814075355407,false,[[0,[0,10]],[0,[0,2]],[7,[2,"attack"]]]],[313,18,null,222963677208857,false,[[0,[0,10]],[0,[0,3]],[7,[2,"death"]]]],[313,18,null,895878755688282,false,[[0,[0,10]],[0,[0,4]],[7,[2,"hurt"]]]],[313,18,null,110119342626507,false,[[0,[0,10]],[0,[0,5]],[7,[2,"run"]]]],[313,18,null,523138071697090,false,[[0,[0,10]],[0,[0,6]],[7,[2,"walk"]]]],[313,18,null,945091956063080,false,[[0,[0,10]],[0,[0,7]],[7,[2,"default"]]]],[313,18,null,947345983107292,false,[[0,[0,11]],[0,[0,0]],[7,[2,"mysteriousMage"]]]],[313,18,null,128890247674810,false,[[0,[0,11]],[0,[0,1]],[7,[2,"idle"]]]],[313,18,null,240141236320200,false,[[0,[0,11]],[0,[0,2]],[7,[2,"attack"]]]],[313,18,null,445332916750379,false,[[0,[0,11]],[0,[0,3]],[7,[2,"death"]]]],[313,18,null,912637452824337,false,[[0,[0,11]],[0,[0,4]],[7,[2,"hurt"]]]],[313,18,null,306585920363454,false,[[0,[0,11]],[0,[0,5]],[7,[2,"move"]]]],[313,18,null,364320968484856,false,[[0,[0,12]],[0,[0,0]],[7,[2,"sharpShooter"]]]],[313,18,null,172121483033051,false,[[0,[0,12]],[0,[0,1]],[7,[2,"idle"]]]],[313,18,null,297561348824097,false,[[0,[0,12]],[0,[0,2]],[7,[2,"attack"]]]],[313,18,null,319005021647028,false,[[0,[0,12]],[0,[0,3]],[7,[2,"death"]]]],[313,18,null,898604712538698,false,[[0,[0,12]],[0,[0,4]],[7,[2,"hurt"]]]],[313,18,null,991499263661039,false,[[0,[0,12]],[0,[0,5]],[7,[2,"run"]]]],[313,18,null,841886403136854,false,[[0,[0,12]],[0,[0,6]],[7,[2,"walk"]]]],[313,18,null,481704464796803,false,[[0,[0,12]],[0,[0,7]],[7,[2,"default"]]]],[313,18,null,309053605439820,false,[[0,[0,13]],[0,[0,0]],[7,[2,"summoner"]]]],[313,18,null,318672748459089,false,[[0,[0,13]],[0,[0,1]],[7,[2,"idle"]]]],[313,18,null,765803514020857,false,[[0,[0,13]],[0,[0,2]],[7,[2,"attack fireball"]]]],[313,18,null,867281762793040,false,[[0,[0,13]],[0,[0,3]],[7,[2,"death"]]]],[313,18,null,331242222687333,false,[[0,[0,13]],[0,[0,4]],[7,[2,"hurt"]]]],[313,18,null,581370478594378,false,[[0,[0,13]],[0,[0,5]],[7,[2,"move"]]]],[313,18,null,835381846941417,false,[[0,[0,14]],[0,[0,0]],[7,[2,"giantHand"]]]],[313,18,null,180424138424302,false,[[0,[0,14]],[0,[0,1]],[7,[2,"idle"]]]],[313,18,null,706964129698092,false,[[0,[0,14]],[0,[0,2]],[7,[2,"appear_attack_disappear"]]]],[313,18,null,638748409080371,false,[[0,[0,14]],[0,[0,3]],[7,[2,"attack"]]]],[313,18,null,959270434703134,false,[[0,[0,14]],[0,[0,4]],[7,[2,"death"]]]],[313,18,null,265497333427355,false,[[0,[0,14]],[0,[0,5]],[7,[2,"hurt"]]]],[313,18,null,614592852356964,false,[[0,[0,15]],[0,[0,0]],[7,[2,"theGrimReaper"]]]],[313,18,null,195820233600275,false,[[0,[0,15]],[0,[0,1]],[7,[2,"idle"]]]],[313,18,null,971126093161735,false,[[0,[0,15]],[0,[0,2]],[7,[2,"attack"]]]],[313,18,null,836017934899819,false,[[0,[0,15]],[0,[0,3]],[7,[2,"attack test"]]]],[313,18,null,467660817982272,false,[[0,[0,15]],[0,[0,4]],[7,[2,"death"]]]],[313,18,null,742073650833131,false,[[0,[0,15]],[0,[0,5]],[7,[2,"hurt"]]]],[313,18,null,400745745384116,false,[[0,[0,15]],[0,[0,6]],[7,[2,"walk"]]]],[313,18,null,408900213752484,false,[[0,[0,16]],[0,[0,0]],[7,[2,"king"]]]],[313,18,null,380932578071410,false,[[0,[0,16]],[0,[0,1]],[7,[2,"idle"]]]],[313,18,null,374551207366961,false,[[0,[0,16]],[0,[0,2]],[7,[2,"attack"]]]],[313,18,null,299812749167411,false,[[0,[0,16]],[0,[0,3]],[7,[2,"death"]]]],[313,18,null,966101261091333,false,[[0,[0,16]],[0,[0,4]],[7,[2,"hurt"]]]],[313,18,null,317286462061939,false,[[0,[0,16]],[0,[0,5]],[7,[2,"run"]]]],[313,18,null,858478366440423,false,[[0,[0,16]],[0,[0,6]],[7,[2,"walk"]]]],[313,18,null,246464574779808,false,[[0,[0,16]],[0,[0,7]],[7,[2,"default"]]]]],[[0,null,false,null,596845452355753,[[-1,19,null,0,true,false,false,147887425215354,false,[[4,335]]]],[[335,20,null,701463435554503,false,[[1,[20,313,21,false,null,[[21,335,false,null,0],[4,[23,"gv_animation_current"],[0,1]]]]],[3,0],[0,[0,0]]]],[335,11,null,700302711125841,false,[[0,[23,"gv_anim_speed"]]]]],[[0,null,false,null,236621986248325,[[335,22,null,0,false,false,false,772797926813427,false,[[10,0],[8,0],[7,[23,"gv_entity_current"]]]]],[[335,23,null,229332871272443,false,[[3,1]]],[335,24,"ScrollTo",455631719864003,false,[[3,1]]]]],[0,null,false,null,540598336601928,[[-1,25,null,0,false,false,false,282081796065851,false]],[[335,23,null,688367906475888,false,[[3,0]]],[335,24,"ScrollTo",800479269786237,false,[[3,0]]]]]]]]]]],[0,[true,"control"],false,null,377276188292587,[[-1,14,null,0,false,false,false,377276188292587,false,[[1,[2,"control"]]]]],[],[[0,null,false,null,528744300172265,[[309,26,null,1,false,false,false,318345050647025,false,[[3,1]]]],[[-1,27,null,963631566410979,false,[[11,"gv_anim_speed"],[7,[19,28,[[4,[23,"gv_anim_speed"],[6,[19,29],[23,"GC_WHEEL_SENSE"]]],[23,"GC_SPEED_MIN"],[23,"GC_SPEED_MAX"]]]]]]],[[0,null,false,null,293226065730256,[[-1,19,null,0,true,false,false,616495335559964,false,[[4,335]]]],[[335,11,null,372175023465979,false,[[0,[23,"gv_anim_speed"]]]]]]]],[0,null,false,null,840273334150097,[[309,26,null,1,false,false,false,698883403954548,false,[[3,0]]]],[[-1,27,null,452055190034946,false,[[11,"gv_anim_speed"],[7,[19,28,[[5,[23,"gv_anim_speed"],[6,[19,29],[23,"GC_WHEEL_SENSE"]]],[23,"GC_SPEED_MIN"],[23,"GC_SPEED_MAX"]]]]]]],[[0,null,false,null,437451987912237,[[-1,19,null,0,true,false,false,939658637262396,false,[[4,335]]]],[[335,11,null,234859243135663,false,[[0,[23,"gv_anim_speed"]]]]]]]],[0,null,false,null,119588349947729,[[309,30,null,1,false,false,false,331396143942253,false,[[3,0],[3,0]]]],[],[[0,null,false,null,321619169382893,[[-1,19,null,0,true,false,false,757456837408770,false,[[4,335]]],[335,22,null,0,false,false,false,879890068238107,false,[[10,0],[8,0],[7,[23,"gv_entity_current"]]]]],[[-1,27,null,525716114386442,false,[[11,"gv_animation_current"],[7,[8,[4,[23,"gv_animation_current"],[0,1]],[21,335,false,null,6]]]]],[335,20,null,513371328140758,false,[[1,[20,313,21,false,null,[[21,335,false,null,0],[4,[23,"gv_animation_current"],[0,1]]]]],[3,0],[0,[0,0]]]],[314,31,null,459563638921953,false,[[7,[10,[10,[20,313,21,false,null,[[21,335,false,null,0],[0,0]]],[2,": "]],[20,313,21,false,null,[[21,335,false,null,0],[4,[23,"gv_animation_current"],[0,1]]]]]]]]]]]],[0,null,false,null,879292115471205,[[309,30,null,1,false,false,false,118377990469204,false,[[3,2],[3,0]]]],[[-1,27,null,215020644454740,false,[[11,"gv_entity_current"],[7,[8,[4,[23,"gv_entity_current"],[0,1]],[23,"GC_ENTITY_MAX"]]]]]],[[0,null,false,null,593428067851850,[[-1,19,null,0,true,false,false,931434419846845,false,[[4,335]]]],[[335,20,null,355680530770908,false,[[1,[20,313,21,false,null,[[21,335,false,null,0],[4,[23,"gv_animation_current"],[0,1]]]]],[3,0],[0,[0,0]]]],[-1,27,null,294868225205884,false,[[11,"gv_animation_current"],[7,[19,32,[[23,"gv_animation_current"],[21,335,false,null,6]]]]]]],[[0,null,false,null,637449623716142,[[335,22,null,0,false,false,false,507271594073270,false,[[10,0],[8,0],[7,[23,"gv_entity_current"]]]]],[[335,23,null,478446058539232,false,[[3,1]]],[335,24,"ScrollTo",170102999797170,false,[[3,1]]],[314,31,null,276143647565698,false,[[7,[10,[10,[20,313,21,false,null,[[21,335,false,null,0],[0,0]]],[2,": "]],[20,313,21,false,null,[[21,335,false,null,0],[4,[23,"gv_animation_current"],[0,1]]]]]]]]]],[0,null,false,null,878635493873259,[[-1,25,null,0,false,false,false,142413701988723,false]],[[335,23,null,573059833176202,false,[[3,0]]],[335,24,"ScrollTo",111900269174644,false,[[3,0]]]]]]]]],[0,null,false,null,186876411705222,[[315,33,null,0,false,false,false,276096557250382,false,[[9,107]]]],[[-1,27,null,374473887007984,false,[[11,"gv_zoom"],[7,[19,28,[[4,[23,"gv_zoom"],[6,[19,29],[23,"GC_ZOOM_SPEED"]]],[0,1],[21,335,false,null,3]]]]]],[-1,34,null,441664827605517,false,[[5,[2,"playground"]],[0,[23,"gv_zoom"]]]]]],[0,null,false,null,359105739854203,[[315,33,null,0,false,false,false,325538882756130,false,[[9,109]]]],[[-1,27,null,237234779801797,false,[[11,"gv_zoom"],[7,[19,28,[[5,[23,"gv_zoom"],[6,[19,29],[23,"GC_ZOOM_SPEED"]]],[0,1],[21,335,false,null,3]]]]]],[-1,34,null,428548386354087,false,[[5,[2,"playground"]],[0,[23,"gv_zoom"]]]]]]]],[0,null,false,null,145809250263060,[],[],[[0,null,false,null,353893997641354,[[-1,19,null,0,true,false,false,490421956457664,false,[[4,335]]],[335,22,null,0,false,false,false,618466918266597,false,[[10,0],[8,0],[7,[23,"gv_entity_current"]]]]],[[332,31,null,430103059602067,false,[[7,[10,[2,"speed*"],[7,[19,35,[[6,[23,"gv_anim_speed"],[0,100]]]],[0,10]]]]]]]]]]]],["ev_constants",[[1,"GC_WHEEL_SENSE",0,0.01,false,true,848993616515285,false],[1,"GC_SPEED_MIN",0,0.01,false,true,867427365896311,false],[1,"GC_SPEED_MAX",0,0.2,false,true,561397245918297,false],[1,"GC_ZOOM_SPEED",0,0.03,false,true,948023272004013,false],[1,"GC_ENTITY_MAX",0,17,false,true,715316856563595,false]]]],[["jungle loop.m4a",151752],["jungle loop.ogg",129161]],"media/",false,1380,820,4,true,true,true,"1.0.0.0",true,false,4,2,334,false,true,1,true,"spriter_browser",0,[[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,311],[17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,316],[36,37,38,39,40,41,42,43,44,45,46,47,48,317],[49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,318],[72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,319],[93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,320],[115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,321],[140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,322],[157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,323],[177,178,179,180,181,182,324],[183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,325],[205,206,207,208,209,210,326],[211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,327],[237,238,239,240,241,242,243,244,245,246,247,248,249,250,328],[251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,329],[274,275,276,277,278,279,280,281,282,283,284,285,330],[286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,331]]]}
|
(self.webpackChunksatabios=self.webpackChunksatabios||[]).push([[589],{1589:function(t,e,n){"use strict";n.r(e),n.d(e,{getCLS:function(){return s},getFCP:function(){return v},getFID:function(){return p},getLCP:function(){return l},getTTFB:function(){return h}});var i=function(t,e){return{name:t,value:void 0===e?-1:e,delta:0,entries:[],id:"v1-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},a=function(t,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){if("first-input"===t&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(t){return t.getEntries().map(e)}));return n.observe({type:t,buffered:!0}),n}}catch(t){}},r=function(t,e){var n=function n(i){"pagehide"!==i.type&&"hidden"!==document.visibilityState||(t(i),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},o=function(t){addEventListener("pageshow",(function(e){e.persisted&&t(e)}),!0)},u="function"==typeof WeakSet?new WeakSet:new Set,c=function(t,e,n){var i;return function(){e.value>=0&&(n||u.has(e)||"hidden"===document.visibilityState)&&(e.delta=e.value-(i||0),(e.delta||void 0===i)&&(i=e.value,t(e)))}},s=function(t,e){var n,u=i("CLS",0),s=function(t){t.hadRecentInput||(u.value+=t.value,u.entries.push(t),n())},f=a("layout-shift",s);f&&(n=c(t,u,e),r((function(){f.takeRecords().map(s),n()})),o((function(){u=i("CLS",0),n=c(t,u,e)})))},f=-1,d=function(){r((function(t){var e=t.timeStamp;f=e}),!0)},m=function(){return f<0&&((f=self.webVitals.firstHiddenTime)===1/0&&d(),o((function(){setTimeout((function(){f="hidden"===document.visibilityState?0:1/0,d()}),0)}))),{get timeStamp(){return f}}},v=function(t,e){var n,r=m(),s=i("FCP"),f=function(t){"first-contentful-paint"===t.name&&(v&&v.disconnect(),t.startTime<r.timeStamp&&(s.value=t.startTime,s.entries.push(t),u.add(s),n()))},d=performance.getEntriesByName("first-contentful-paint")[0],v=d?null:a("paint",f);(d||v)&&(n=c(t,s,e),d&&f(d),o((function(a){s=i("FCP"),n=c(t,s,e),requestAnimationFrame((function(){requestAnimationFrame((function(){s.value=performance.now()-a.timeStamp,u.add(s),n()}))}))})))},p=function(t,e){var n,s=m(),f=i("FID"),d=function(t){t.startTime<s.timeStamp&&(f.value=t.processingStart-t.startTime,f.entries.push(t),u.add(f),n())},v=a("first-input",d);n=c(t,f,e),v&&r((function(){v.takeRecords().map(d),v.disconnect()}),!0),v||window.webVitals.firstInputPolyfill(d),o((function(){f=i("FID"),n=c(t,f,e),window.webVitals.resetFirstInputPolyfill(),window.webVitals.firstInputPolyfill(d)}))},l=function(t,e){var n,s=m(),f=i("LCP"),d=function(t){var e=t.startTime;e<s.timeStamp&&(f.value=e,f.entries.push(t)),n()},v=a("largest-contentful-paint",d);if(v){n=c(t,f,e);var p=function(){u.has(f)||(v.takeRecords().map(d),v.disconnect(),u.add(f),n())};["keydown","click"].forEach((function(t){addEventListener(t,p,{once:!0,capture:!0})})),r(p,!0),o((function(a){f=i("LCP"),n=c(t,f,e),requestAnimationFrame((function(){requestAnimationFrame((function(){f.value=performance.now()-a.timeStamp,u.add(f),n()}))}))}))}},h=function(t){var e,n=i("TTFB");e=function(){try{var e=performance.getEntriesByType("navigation")[0]||function(){var t=performance.timing,e={entryType:"navigation",startTime:0};for(var n in t)"navigationStart"!==n&&"toJSON"!==n&&(e[n]=Math.max(t[n]-t.navigationStart,0));return e}();if(n.value=n.delta=e.responseStart,n.value<0)return;n.entries=[e],t(n)}catch(e){}},"complete"===document.readyState?setTimeout(e,0):addEventListener("pageshow",e)}}}]);
//# sourceMappingURL=589-63c3461962876bc2f223.js.map
|
jQuery(function($) {
Vue.component('editable', {
data: function() {
return {
editing: false,
savedValue: ''
}
},
props: ['value', 'hide-trash'],
template: `
<div class="editable" v-bind:class="{ editing: editing }">
<div
v-if="!editing"
v-on:mousedown="edit"
class="value">{{value}}</div>
<div
v-if="editing"
class="input">
<input
ref="input"
v-bind:value="value"
v-on:input="changed"
v-on:keyup.enter="done"
v-on:keyup.esc="done"
>
<span uk-icon="trash"
v-if="!hideTrash"
v-on:click="trash"></span>
</div>
</div>
`,
methods: {
edit: function(event) {
console.log('edit', this.editing);
var that = this;
this.editing = true;
setTimeout(function() {
that.$refs.input.focus();
}, 100);
},
done: function(event) {
if (this.editing === true && this._props.value !== '') {
this.editing = false;
this.$emit('update:value', this._props.value);
}
},
changed: function(event) {
this.$emit('input', event.target.value);
},
trash: function(event) {
if (this.editing === true) {
this.editing = false;
this.$emit('update:trash');
}
}
}
});
if ($('#items').length > 0) {
var items = new Vue({
el: '#items',
data: {
item: {
title: 'New item...'
},
items: [],
serialized: ''
},
methods: {
create: function(event) {
var that = this;
$.post(window.location.href + '/i', this.item, function() {
that.item.title = 'New item...';
that.sync();
});
},
sync: function() {
var that = this;
$.get(window.location.href + '/i', function(items) {
that.items = items;
});
},
update: function(id, key, value) {
if (value === false) {
this.delete(id);
return;
}
console.log('updating', id, key, value);
var data = {};
data[key] = value;
$.ajax({
url: window.location.href + '/i/' + id,
data,
type: 'put'
});
},
trash: function(id) {
console.log('deleting', id);
var that = this;
$.ajax({
url: window.location.href + '/i/' + id,
type: 'delete',
success: function() {
that.sync();
}
});
},
initNestable: function() {
var that = this;
var $dd = $('#items .dd');
$dd.nestable({
maxDepth: 10,
group: 0
});
$dd.on('change', function() {
console.log('changed');
var serialized = $dd.nestable('serialize');
that.serialized = serialized;
});
$dd.nestable('rebuild', that.serialized);
that.serialized = $dd.nestable('serialize');
}
},
mounted: function() {
var that = this;
this.sync();
this.initNestable();
}
});
}
});
|
import _ from 'lodash';
import bytes from 'bytes';
import Field from '../Field';
import React from 'react';
import ReactDOM from 'react-dom';
import { Button, FormField, FormInput, FormNote } from 'elemental';
const ICON_EXTS = [
'aac', 'ai', 'aiff', 'avi', 'bmp', 'c', 'cpp', 'css', 'dat', 'dmg', 'doc', 'dotx', 'dwg', 'dxf', 'eps', 'exe', 'flv', 'gif', 'h',
'hpp', 'html', 'ics', 'iso', 'java', 'jpg', 'js', 'key', 'less', 'mid', 'mp3', 'mp4', 'mpg', 'odf', 'ods', 'odt', 'otp', 'ots',
'ott', 'pdf', 'php', 'png', 'ppt', 'psd', 'py', 'qt', 'rar', 'rb', 'rtf', 'sass', 'scss', 'sql', 'tga', 'tgz', 'tiff', 'txt',
'wav', 'xls', 'xlsx', 'xml', 'yml', 'zip',
];
var LocalFilesFieldItem = React.createClass({
propTypes: {
deleted: React.PropTypes.bool,
filename: React.PropTypes.string,
isQueued: React.PropTypes.bool,
size: React.PropTypes.number,
toggleDelete: React.PropTypes.func,
},
renderActionButton () {
if (!this.props.shouldRenderActionButton || this.props.isQueued) return null;
var buttonLabel = this.props.deleted ? 'Undo' : 'Remove';
var buttonType = this.props.deleted ? 'link' : 'link-cancel';
return <Button key="action-button" type={buttonType} onClick={this.props.toggleDelete}>{buttonLabel}</Button>;
},
render () {
const { filename } = this.props;
const ext = filename.split('.').pop();
let iconName = '_blank';
if (_.includes(ICON_EXTS, ext)) iconName = ext;
let note;
if (this.props.deleted) {
note = <FormInput key="delete-note" noedit className="field-type-localfiles__note field-type-localfiles__note--delete">save to delete</FormInput>;
} else if (this.props.isQueued) {
note = <FormInput key="upload-note" noedit className="field-type-localfiles__note field-type-localfiles__note--upload">save to upload</FormInput>;
}
return (
<FormField>
<img key="file-type-icon" className="file-icon" src={Keystone.adminPath + '/images/icons/32/' + iconName + '.png'} />
<FormInput key="file-name" noedit className="field-type-localfiles__filename">
{filename}
{this.props.size ? ' (' + bytes(this.props.size) + ')' : null}
</FormInput>
{note}
{this.renderActionButton()}
</FormField>
);
},
});
var tempId = 0;
module.exports = Field.create({
getInitialState () {
var items = [];
var self = this;
_.forEach(this.props.value, function (item) {
self.pushItem(item, items);
});
return { items: items };
},
removeItem (id) {
var thumbs = [];
var self = this;
_.forEach(this.state.items, function (thumb) {
var newProps = Object.assign({}, thumb.props);
if (thumb.props._id === id) {
newProps.deleted = !thumb.props.deleted;
}
self.pushItem(newProps, thumbs);
});
this.setState({ items: thumbs });
},
pushItem (args, thumbs) {
thumbs = thumbs || this.state.items;
args.toggleDelete = this.removeItem.bind(this, args._id);
args.shouldRenderActionButton = this.shouldRenderField();
args.adminPath = Keystone.adminPath;
thumbs.push(<LocalFilesFieldItem key={args._id || tempId++} {...args} />);
},
fileFieldNode () {
return ReactDOM.findDOMNode(this.refs.fileField);
},
renderFileField () {
return <input ref="fileField" type="file" name={this.props.paths.upload} multiple className="field-upload" onChange={this.uploadFile} tabIndex="-1" />;
},
clearFiles () {
this.fileFieldNode().value = '';
this.setState({
items: this.state.items.filter(function (thumb) {
return !thumb.props.isQueued;
}),
});
},
uploadFile (event) {
var self = this;
var files = event.target.files;
_.forEach(files, function (f) {
self.pushItem({ isQueued: true, filename: f.name });
self.forceUpdate();
});
},
changeFiles () {
this.fileFieldNode().click();
},
hasFiles () {
return this.refs.fileField && this.fileFieldNode().value;
},
renderToolbar () {
if (!this.shouldRenderField()) return null;
var clearFilesButton;
if (this.hasFiles()) {
clearFilesButton = <Button type="link-cancel" className="ml-5" onClick={this.clearFiles}>Clear Uploads</Button>;
}
return (
<div className="files-toolbar">
<Button onClick={this.changeFiles}>Upload</Button>
{clearFilesButton}
</div>
);
},
renderPlaceholder () {
return (
<div className="file-field file-upload" onClick={this.changeFiles}>
<div className="file-preview">
<span className="file-thumbnail">
<span className="file-dropzone" />
<div className="ion-picture file-uploading" />
</span>
</div>
<div className="file-details">
<span className="file-message">Click to upload</span>
</div>
</div>
);
},
renderContainer () {
return (
<div className="files-container clearfix">
{this.state.items}
</div>
);
},
renderFieldAction () {
var value = '';
var remove = [];
_.forEach(this.state.items, function (thumb) {
if (thumb && thumb.props.deleted) remove.push(thumb.props._id);
});
if (remove.length) value = 'delete:' + remove.join(',');
return <input ref="action" className="field-action" type="hidden" value={value} name={this.props.paths.action} />;
},
renderUploadsField () {
return <input ref="uploads" className="field-uploads" type="hidden" name={this.props.paths.uploads} />;
},
renderNote: function () {
if (!this.props.note) return null;
return <FormNote note={this.props.note} />;
},
renderUI () {
return (
<FormField label={this.props.label} className="field-type-localfiles" htmlFor={this.props.path}>
{this.renderFieldAction()}
{this.renderUploadsField()}
{this.renderFileField()}
{this.renderContainer()}
{this.renderToolbar()}
{this.renderNote()}
</FormField>
);
},
});
|
var path = require('path');
var fs = require('fs');
module.exports = function (grunt) {
grunt.registerTask('prefix', function () {
var buildDir = path.resolve(__dirname, '..', 'build');
// Check whether build folder exists
if (!fs.existsSync(buildDir)) {
grunt.fail.fatal('Mixins folder does not exist.');
}
// Check whether lesshat.less exists
if (!fs.existsSync(path.resolve(buildDir, 'lesshat.less'))) {
grunt.fail.fatal('Mixin template does not exist.');
}
var mixins = fs.readFileSync(path.resolve(buildDir, 'lesshat.less'), 'utf8');
mixins = mixins.replace(/^\.([a-z0-9-]+\([a-z@., 0-9-]+)/gmi, function (match, sub_1) {
return '.lh-' + sub_1;
});
fs.writeFileSync(path.resolve(buildDir, 'lesshat-prefixed.less'), mixins);
grunt.log.ok('Prefixed version – DONE');
});
};
|
// Copyright 2008 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS-IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
goog.provide("goog.ui.SliderBaseTest")
goog.setTestOnly("goog.ui.SliderBaseTest")
goog.require("goog.a11y.aria")
goog.require("goog.a11y.aria.State")
goog.require("goog.dom")
goog.require("goog.dom.TagName")
goog.require("goog.dom.classlist")
goog.require("goog.events")
goog.require("goog.events.EventType")
goog.require("goog.events.KeyCodes")
goog.require("goog.fx.Animation")
goog.require("goog.math.Coordinate")
goog.require("goog.style")
goog.require("goog.style.bidi")
goog.require("goog.testing.MockClock")
goog.require("goog.testing.MockControl")
goog.require("goog.testing.events")
goog.require("goog.testing.jsunit")
goog.require("goog.testing.mockmatchers")
goog.require("goog.testing.recordFunction")
goog.require("goog.ui.Component")
goog.require("goog.ui.SliderBase")
goog.require("goog.userAgent")
var oneThumbSlider
var oneThumbSliderRtl
var oneChangeEventCount
var twoThumbSlider
var twoThumbSliderRtl
var twoChangeEventCount
var mockClock
var mockAnimation
/**
* A basic class to implement the abstract goog.ui.SliderBase for testing.
* @param {boolean=} testOnlyIsRightToLeft This parameter is necessary to tell
* if the slider is rendered right-to-left when creating thumbs (before
* entering the document). Used only for test purposes.
* @constructor
* @extends {goog.ui.SliderBase}
*/
function OneThumbSlider(testOnlyIsRightToLeft = false) {
this.testOnlyIsRightToLeft_ = testOnlyIsRightToLeft
goog.ui.SliderBase.call(this, undefined /* domHelper */, function(value) {
return value > 5 ? "A big value." : "A small value."
})
}
goog.inherits(OneThumbSlider, goog.ui.SliderBase)
/** @override */
OneThumbSlider.prototype.createThumbs = function() {
var dirSuffix = this.testOnlyIsRightToLeft_ ? "Rtl" : ""
this.valueThumb = this.extentThumb = goog.dom.getElement("thumb" + dirSuffix)
}
/** @override */
OneThumbSlider.prototype.getCssClass = function(orientation) {
return goog.getCssName("test-slider", orientation)
}
/**
* A basic class to implement the abstract goog.ui.SliderBase for testing.
* @param {boolean=} testOnlyIsRightToLeft This parameter is necessary to tell
* if the slider is rendered right-to-left when creating thumbs (before
* entering the document). Used only for test purposes.
* @constructor
* @extends {goog.ui.SliderBase}
*/
function TwoThumbSlider(testOnlyIsRightToLeft = false) {
this.testOnlyIsRightToLeft_ = testOnlyIsRightToLeft
goog.ui.SliderBase.call(this)
}
goog.inherits(TwoThumbSlider, goog.ui.SliderBase)
/** @override */
TwoThumbSlider.prototype.createThumbs = function() {
var dirSuffix = this.testOnlyIsRightToLeft_ ? "Rtl" : ""
this.valueThumb = goog.dom.getElement("valueThumb" + dirSuffix)
this.extentThumb = goog.dom.getElement("extentThumb" + dirSuffix)
this.rangeHighlight = goog.dom.getElement("rangeHighlight" + dirSuffix)
}
/** @override */
TwoThumbSlider.prototype.getCssClass = function(orientation) {
return goog.getCssName("test-slider", orientation)
}
/**
* Basic class that implements the AnimationFactory interface for testing.
* @param {!goog.fx.Animation|!Array<!goog.fx.Animation>} testAnimations The
* test animations to use.
* @constructor
* @implements {goog.ui.SliderBase.AnimationFactory}
*/
function AnimationFactory(testAnimations) {
this.testAnimations = testAnimations
}
/** @override */
AnimationFactory.prototype.createAnimations = function() {
return this.testAnimations
}
function setUp() {
var sandBox = goog.dom.getElement("sandbox")
mockClock = new goog.testing.MockClock(true)
var oneThumbElem = goog.dom.createDom(
goog.dom.TagName.DIV,
{ id: "oneThumbSlider" },
goog.dom.createDom(goog.dom.TagName.SPAN, { id: "thumb" })
)
sandBox.appendChild(oneThumbElem)
oneThumbSlider = new OneThumbSlider()
oneThumbSlider.decorate(oneThumbElem)
oneChangeEventCount = 0
goog.events.listen(
oneThumbSlider,
goog.ui.Component.EventType.CHANGE,
function() {
oneChangeEventCount++
}
)
var twoThumbElem = goog.dom.createDom(
goog.dom.TagName.DIV,
{ id: "twoThumbSlider" },
goog.dom.createDom(goog.dom.TagName.DIV, { id: "rangeHighlight" }),
goog.dom.createDom(goog.dom.TagName.SPAN, { id: "valueThumb" }),
goog.dom.createDom(goog.dom.TagName.SPAN, { id: "extentThumb" })
)
sandBox.appendChild(twoThumbElem)
twoThumbSlider = new TwoThumbSlider()
twoThumbSlider.decorate(twoThumbElem)
twoChangeEventCount = 0
goog.events.listen(
twoThumbSlider,
goog.ui.Component.EventType.CHANGE,
function() {
twoChangeEventCount++
}
)
var sandBoxRtl = goog.dom.createDom(goog.dom.TagName.DIV, {
dir: "rtl",
style: "position:absolute;"
})
sandBox.appendChild(sandBoxRtl)
var oneThumbElemRtl = goog.dom.createDom(
goog.dom.TagName.DIV,
{ id: "oneThumbSliderRtl" },
goog.dom.createDom(goog.dom.TagName.SPAN, { id: "thumbRtl" })
)
sandBoxRtl.appendChild(oneThumbElemRtl)
oneThumbSliderRtl = new OneThumbSlider(true /* testOnlyIsRightToLeft */)
oneThumbSliderRtl.enableFlipForRtl(true)
oneThumbSliderRtl.decorate(oneThumbElemRtl)
goog.events.listen(
oneThumbSliderRtl,
goog.ui.Component.EventType.CHANGE,
function() {
oneChangeEventCount++
}
)
var twoThumbElemRtl = goog.dom.createDom(
goog.dom.TagName.DIV,
{ id: "twoThumbSliderRtl" },
goog.dom.createDom(goog.dom.TagName.DIV, { id: "rangeHighlightRtl" }),
goog.dom.createDom(goog.dom.TagName.SPAN, { id: "valueThumbRtl" }),
goog.dom.createDom(goog.dom.TagName.SPAN, { id: "extentThumbRtl" })
)
sandBoxRtl.appendChild(twoThumbElemRtl)
twoThumbSliderRtl = new TwoThumbSlider(true /* testOnlyIsRightToLeft */)
twoThumbSliderRtl.enableFlipForRtl(true)
twoThumbSliderRtl.decorate(twoThumbElemRtl)
twoChangeEventCount = 0
goog.events.listen(
twoThumbSliderRtl,
goog.ui.Component.EventType.CHANGE,
function() {
twoChangeEventCount++
}
)
}
function tearDown() {
oneThumbSlider.dispose()
twoThumbSlider.dispose()
oneThumbSliderRtl.dispose()
twoThumbSliderRtl.dispose()
mockClock.dispose()
goog.dom.removeChildren(goog.dom.getElement("sandbox"))
}
function testGetAndSetValue() {
oneThumbSlider.setValue(30)
assertEquals(30, oneThumbSlider.getValue())
assertEquals(
"Setting valid value must dispatch only a single change event.",
1,
oneChangeEventCount
)
oneThumbSlider.setValue(30)
assertEquals(30, oneThumbSlider.getValue())
assertEquals(
"Setting to same value must not dispatch change event.",
1,
oneChangeEventCount
)
oneThumbSlider.setValue(-30)
assertEquals(
"Setting invalid value must not change value.",
30,
oneThumbSlider.getValue()
)
assertEquals(
"Setting invalid value must not dispatch change event.",
1,
oneChangeEventCount
)
// Value thumb can't go past extent thumb, so we must move that first to
// allow setting value.
twoThumbSlider.setExtent(70)
twoChangeEventCount = 0
twoThumbSlider.setValue(60)
assertEquals(60, twoThumbSlider.getValue())
assertEquals(
"Setting valid value must dispatch only a single change event.",
1,
twoChangeEventCount
)
twoThumbSlider.setValue(60)
assertEquals(60, twoThumbSlider.getValue())
assertEquals(
"Setting to same value must not dispatch change event.",
1,
twoChangeEventCount
)
twoThumbSlider.setValue(-60)
assertEquals(
"Setting invalid value must not change value.",
60,
twoThumbSlider.getValue()
)
assertEquals(
"Setting invalid value must not dispatch change event.",
1,
twoChangeEventCount
)
}
function testGetAndSetValueRtl() {
var thumbElement = goog.dom.getElement("thumbRtl")
assertEquals(0, goog.style.bidi.getOffsetStart(thumbElement))
assertEquals("", thumbElement.style.left)
assertEquals("0px", thumbElement.style.right)
oneThumbSliderRtl.setValue(30)
assertEquals(30, oneThumbSliderRtl.getValue())
assertEquals(
"Setting valid value must dispatch only a single change event.",
1,
oneChangeEventCount
)
assertEquals("", thumbElement.style.left)
assertEquals("294px", thumbElement.style.right)
oneThumbSliderRtl.setValue(30)
assertEquals(30, oneThumbSliderRtl.getValue())
assertEquals(
"Setting to same value must not dispatch change event.",
1,
oneChangeEventCount
)
oneThumbSliderRtl.setValue(-30)
assertEquals(
"Setting invalid value must not change value.",
30,
oneThumbSliderRtl.getValue()
)
assertEquals(
"Setting invalid value must not dispatch change event.",
1,
oneChangeEventCount
)
// Value thumb can't go past extent thumb, so we must move that first to
// allow setting value.
var valueThumbElement = goog.dom.getElement("valueThumbRtl")
var extentThumbElement = goog.dom.getElement("extentThumbRtl")
assertEquals(0, goog.style.bidi.getOffsetStart(valueThumbElement))
assertEquals(0, goog.style.bidi.getOffsetStart(extentThumbElement))
assertEquals("", valueThumbElement.style.left)
assertEquals("0px", valueThumbElement.style.right)
assertEquals("", extentThumbElement.style.left)
assertEquals("0px", extentThumbElement.style.right)
twoThumbSliderRtl.setExtent(70)
twoChangeEventCount = 0
twoThumbSliderRtl.setValue(60)
assertEquals(60, twoThumbSliderRtl.getValue())
assertEquals(
"Setting valid value must dispatch only a single change event.",
1,
twoChangeEventCount
)
twoThumbSliderRtl.setValue(60)
assertEquals(60, twoThumbSliderRtl.getValue())
assertEquals(
"Setting to same value must not dispatch change event.",
1,
twoChangeEventCount
)
assertEquals("", valueThumbElement.style.left)
assertEquals("600px", valueThumbElement.style.right)
assertEquals("", extentThumbElement.style.left)
assertEquals("700px", extentThumbElement.style.right)
twoThumbSliderRtl.setValue(-60)
assertEquals(
"Setting invalid value must not change value.",
60,
twoThumbSliderRtl.getValue()
)
assertEquals(
"Setting invalid value must not dispatch change event.",
1,
twoChangeEventCount
)
}
function testGetAndSetExtent() {
// Note(user): With a one thumb slider the API only really makes sense if you
// always use setValue since there is no extent.
twoThumbSlider.setExtent(7)
assertEquals(7, twoThumbSlider.getExtent())
assertEquals(
"Setting valid value must dispatch only a single change event.",
1,
twoChangeEventCount
)
twoThumbSlider.setExtent(7)
assertEquals(7, twoThumbSlider.getExtent())
assertEquals(
"Setting to same value must not dispatch change event.",
1,
twoChangeEventCount
)
twoThumbSlider.setExtent(-7)
assertEquals(
"Setting invalid value must not change value.",
7,
twoThumbSlider.getExtent()
)
assertEquals(
"Setting invalid value must not dispatch change event.",
1,
twoChangeEventCount
)
}
function testUpdateValueExtent() {
twoThumbSlider.setValueAndExtent(30, 50)
assertNotNull(twoThumbSlider.getElement())
assertEquals(
"Setting value results in updating aria-valuenow",
"30",
goog.a11y.aria.getState(
twoThumbSlider.getElement(),
goog.a11y.aria.State.VALUENOW
)
)
assertEquals(30, twoThumbSlider.getValue())
assertEquals(50, twoThumbSlider.getExtent())
}
function testValueText() {
oneThumbSlider.setValue(10)
assertEquals(
"Setting value results in correct aria-valuetext",
"A big value.",
goog.a11y.aria.getState(
oneThumbSlider.getElement(),
goog.a11y.aria.State.VALUETEXT
)
)
oneThumbSlider.setValue(2)
assertEquals(
"Updating value results in updated aria-valuetext",
"A small value.",
goog.a11y.aria.getState(
oneThumbSlider.getElement(),
goog.a11y.aria.State.VALUETEXT
)
)
}
function testGetValueText() {
oneThumbSlider.setValue(10)
assertEquals(
"Getting the text value gets the correct description",
"A big value.",
oneThumbSlider.getTextValue()
)
oneThumbSlider.setValue(2)
assertEquals(
"Getting the updated text value gets the correct updated description",
"A small value.",
oneThumbSlider.getTextValue()
)
}
function testRangeListener() {
var slider = new goog.ui.SliderBase()
slider.updateUi_ = slider.updateAriaStates = function() {}
slider.rangeModel.setValue(0)
var f = goog.testing.recordFunction()
goog.events.listen(slider, goog.ui.Component.EventType.CHANGE, f)
slider.rangeModel.setValue(50)
assertEquals(1, f.getCallCount())
slider.exitDocument()
slider.rangeModel.setValue(0)
assertEquals(
"The range model listener should not have been removed so we " +
"should have gotten a second event dispatch",
2,
f.getCallCount()
)
}
/**
* Verifies that rangeHighlight position and size are correct for the given
* startValue and endValue. Assumes slider has default min/max values [0, 100],
* width of 1020px, and thumb widths of 20px, with rangeHighlight drawn from
* the centers of the thumbs.
* @param {number} rangeHighlight The range highlight.
* @param {number} startValue The start value.
* @param {number} endValue The end value.
*/
function assertHighlightedRange(rangeHighlight, startValue, endValue) {
var rangeStr = "[" + startValue + ", " + endValue + "]"
var rangeStart = 10 + 10 * startValue
assertEquals(
"Range highlight for " +
rangeStr +
" should start at " +
rangeStart +
"px.",
rangeStart,
rangeHighlight.offsetLeft
)
var rangeSize = 10 * (endValue - startValue)
assertEquals(
"Range highlight for " +
rangeStr +
" should have size " +
rangeSize +
"px.",
rangeSize,
rangeHighlight.offsetWidth
)
}
function testKeyHandlingTests() {
twoThumbSlider.setValue(0)
twoThumbSlider.setExtent(100)
assertEquals(0, twoThumbSlider.getValue())
assertEquals(100, twoThumbSlider.getExtent())
goog.testing.events.fireKeySequence(
twoThumbSlider.getElement(),
goog.events.KeyCodes.RIGHT
)
assertEquals(1, twoThumbSlider.getValue())
assertEquals(99, twoThumbSlider.getExtent())
goog.testing.events.fireKeySequence(
twoThumbSlider.getElement(),
goog.events.KeyCodes.RIGHT
)
assertEquals(2, twoThumbSlider.getValue())
assertEquals(98, twoThumbSlider.getExtent())
goog.testing.events.fireKeySequence(
twoThumbSlider.getElement(),
goog.events.KeyCodes.LEFT
)
assertEquals(1, twoThumbSlider.getValue())
assertEquals(98, twoThumbSlider.getExtent())
goog.testing.events.fireKeySequence(
twoThumbSlider.getElement(),
goog.events.KeyCodes.LEFT
)
assertEquals(0, twoThumbSlider.getValue())
assertEquals(98, twoThumbSlider.getExtent())
goog.testing.events.fireKeySequence(
twoThumbSlider.getElement(),
goog.events.KeyCodes.RIGHT,
{ shiftKey: true }
)
assertEquals(10, twoThumbSlider.getValue())
assertEquals(90, twoThumbSlider.getExtent())
goog.testing.events.fireKeySequence(
twoThumbSlider.getElement(),
goog.events.KeyCodes.RIGHT,
{ shiftKey: true }
)
assertEquals(20, twoThumbSlider.getValue())
assertEquals(80, twoThumbSlider.getExtent())
goog.testing.events.fireKeySequence(
twoThumbSlider.getElement(),
goog.events.KeyCodes.LEFT,
{ shiftKey: true }
)
assertEquals(10, twoThumbSlider.getValue())
assertEquals(80, twoThumbSlider.getExtent())
goog.testing.events.fireKeySequence(
twoThumbSlider.getElement(),
goog.events.KeyCodes.LEFT,
{ shiftKey: true }
)
assertEquals(0, twoThumbSlider.getValue())
assertEquals(80, twoThumbSlider.getExtent())
}
function testKeyHandlingLargeStepSize() {
twoThumbSlider.setValue(0)
twoThumbSlider.setExtent(100)
twoThumbSlider.setStep(5)
assertEquals(0, twoThumbSlider.getValue())
assertEquals(100, twoThumbSlider.getExtent())
goog.testing.events.fireKeySequence(
twoThumbSlider.getElement(),
goog.events.KeyCodes.RIGHT
)
assertEquals(5, twoThumbSlider.getValue())
assertEquals(95, twoThumbSlider.getExtent())
goog.testing.events.fireKeySequence(
twoThumbSlider.getElement(),
goog.events.KeyCodes.RIGHT
)
assertEquals(10, twoThumbSlider.getValue())
assertEquals(90, twoThumbSlider.getExtent())
goog.testing.events.fireKeySequence(
twoThumbSlider.getElement(),
goog.events.KeyCodes.LEFT
)
assertEquals(5, twoThumbSlider.getValue())
assertEquals(90, twoThumbSlider.getExtent())
goog.testing.events.fireKeySequence(
twoThumbSlider.getElement(),
goog.events.KeyCodes.LEFT
)
assertEquals(0, twoThumbSlider.getValue())
assertEquals(90, twoThumbSlider.getExtent())
}
function testKeyHandlingRtl() {
twoThumbSliderRtl.setValue(0)
twoThumbSliderRtl.setExtent(100)
assertEquals(0, twoThumbSliderRtl.getValue())
assertEquals(100, twoThumbSliderRtl.getExtent())
goog.testing.events.fireKeySequence(
twoThumbSliderRtl.getElement(),
goog.events.KeyCodes.RIGHT
)
assertEquals(0, twoThumbSliderRtl.getValue())
assertEquals(99, twoThumbSliderRtl.getExtent())
goog.testing.events.fireKeySequence(
twoThumbSliderRtl.getElement(),
goog.events.KeyCodes.RIGHT
)
assertEquals(0, twoThumbSliderRtl.getValue())
assertEquals(98, twoThumbSliderRtl.getExtent())
goog.testing.events.fireKeySequence(
twoThumbSliderRtl.getElement(),
goog.events.KeyCodes.LEFT
)
assertEquals(1, twoThumbSliderRtl.getValue())
assertEquals(98, twoThumbSliderRtl.getExtent())
goog.testing.events.fireKeySequence(
twoThumbSliderRtl.getElement(),
goog.events.KeyCodes.LEFT
)
assertEquals(2, twoThumbSliderRtl.getValue())
assertEquals(98, twoThumbSliderRtl.getExtent())
goog.testing.events.fireKeySequence(
twoThumbSliderRtl.getElement(),
goog.events.KeyCodes.RIGHT,
{ shiftKey: true }
)
assertEquals(0, twoThumbSliderRtl.getValue())
assertEquals(90, twoThumbSliderRtl.getExtent())
goog.testing.events.fireKeySequence(
twoThumbSliderRtl.getElement(),
goog.events.KeyCodes.RIGHT,
{ shiftKey: true }
)
assertEquals(0, twoThumbSliderRtl.getValue())
assertEquals(80, twoThumbSliderRtl.getExtent())
goog.testing.events.fireKeySequence(
twoThumbSliderRtl.getElement(),
goog.events.KeyCodes.LEFT,
{ shiftKey: true }
)
assertEquals(10, twoThumbSliderRtl.getValue())
assertEquals(80, twoThumbSliderRtl.getExtent())
goog.testing.events.fireKeySequence(
twoThumbSliderRtl.getElement(),
goog.events.KeyCodes.LEFT,
{ shiftKey: true }
)
assertEquals(20, twoThumbSliderRtl.getValue())
assertEquals(80, twoThumbSliderRtl.getExtent())
}
function testRangeHighlight() {
var rangeHighlight = goog.dom.getElement("rangeHighlight")
// Test [0, 100]
twoThumbSlider.setValue(0)
twoThumbSlider.setExtent(100)
assertHighlightedRange(rangeHighlight, 0, 100)
// Test [25, 75]
twoThumbSlider.setValue(25)
twoThumbSlider.setExtent(50)
assertHighlightedRange(rangeHighlight, 25, 75)
// Test [50, 50]
twoThumbSlider.setValue(50)
twoThumbSlider.setExtent(0)
assertHighlightedRange(rangeHighlight, 50, 50)
}
function testRangeHighlightAnimation() {
var animationDelay = 160 // Delay in ms, is a bit higher than actual delay.
if (goog.userAgent.IE) {
// For some reason, (probably due to how timing works), IE7 and IE8 will not
// stop if we don't wait for it.
animationDelay = 250
}
var rangeHighlight = goog.dom.getElement("rangeHighlight")
twoThumbSlider.setValue(0)
twoThumbSlider.setExtent(100)
// Animate right thumb, final range is [0, 75]
twoThumbSlider.animatedSetValue(75)
assertHighlightedRange(rangeHighlight, 0, 100)
mockClock.tick(animationDelay)
assertHighlightedRange(rangeHighlight, 0, 75)
// Animate left thumb, final range is [25, 75]
twoThumbSlider.animatedSetValue(25)
assertHighlightedRange(rangeHighlight, 0, 75)
mockClock.tick(animationDelay)
assertHighlightedRange(rangeHighlight, 25, 75)
}
/**
* Verifies that no error occurs and that the range highlight is sized correctly
* for a zero-size slider (i.e. doesn't attempt to set a negative size). The
* test tries to resize the slider from its original size to 0, then checks
* that the range highlight's size is correctly set to 0.
*
* The size verification is needed because Webkit/Gecko outright ignore calls
* to set negative sizes on an element, leaving it at its former size. IE
* throws an error in the same situation.
*/
function testRangeHighlightForZeroSizeSlider() {
// Make sure range highlight spans whole slider before zeroing width.
twoThumbSlider.setExtent(100)
twoThumbSlider.getElement().style.width = 0
// The setVisible call is used to force a UI update.
twoThumbSlider.setVisible(true)
assertEquals(
"Range highlight size should be 0 when slider size is 0",
0,
goog.dom.getElement("rangeHighlight").offsetWidth
)
}
function testAnimatedSetValueAnimatesFactoryCreatedAnimations() {
// Create and set the factory.
var ignore = goog.testing.mockmatchers.ignoreArgument
var mockControl = new goog.testing.MockControl()
var mockAnimation1 = mockControl.createLooseMock(goog.fx.Animation)
var mockAnimation2 = mockControl.createLooseMock(goog.fx.Animation)
var testAnimations = [mockAnimation1, mockAnimation2]
oneThumbSlider.setAdditionalAnimations(new AnimationFactory(testAnimations))
// Expect the animations to be played.
mockAnimation1.play(false)
mockAnimation2.play(false)
mockAnimation1.addEventListener(ignore, ignore, ignore)
mockAnimation2.addEventListener(ignore, ignore, ignore)
// Animate and verify.
mockControl.$replayAll()
oneThumbSlider.animatedSetValue(50)
mockControl.$verifyAll()
mockControl.$resetAll()
mockControl.$tearDown()
}
function testMouseWheelEventHandlerEnable() {
// Mouse wheel handling should be enabled by default.
assertTrue(oneThumbSlider.isHandleMouseWheel())
// Test disabling the mouse wheel handler
oneThumbSlider.setHandleMouseWheel(false)
assertFalse(oneThumbSlider.isHandleMouseWheel())
// Test that enabling again works fine.
oneThumbSlider.setHandleMouseWheel(true)
assertTrue(oneThumbSlider.isHandleMouseWheel())
// Test that mouse wheel handling can be disabled before rendering a slider.
var wheelDisabledElem = goog.dom.createDom(
goog.dom.TagName.DIV,
{},
goog.dom.createDom(goog.dom.TagName.SPAN)
)
var wheelDisabledSlider = new OneThumbSlider()
wheelDisabledSlider.setHandleMouseWheel(false)
wheelDisabledSlider.decorate(wheelDisabledElem)
assertFalse(wheelDisabledSlider.isHandleMouseWheel())
}
function testDisabledAndEnabledSlider() {
// Check that a slider is enabled by default
assertTrue(oneThumbSlider.isEnabled())
var listenerCount = oneThumbSlider.getHandler().getListenerCount()
// Disable the slider and check its state
oneThumbSlider.setEnabled(false)
assertFalse(oneThumbSlider.isEnabled())
assertTrue(
goog.dom.classlist.contains(
oneThumbSlider.getElement(),
"goog-slider-disabled"
)
)
assertEquals(0, oneThumbSlider.getHandler().getListenerCount())
// setValue should work unaffected even when the slider is disabled.
oneThumbSlider.setValue(30)
assertEquals(30, oneThumbSlider.getValue())
assertEquals(
"Setting valid value must dispatch a change event " +
"even when slider is disabled.",
1,
oneChangeEventCount
)
// Test the transition from disabled to enabled
oneThumbSlider.setEnabled(true)
assertTrue(oneThumbSlider.isEnabled())
assertFalse(
goog.dom.classlist.contains(
oneThumbSlider.getElement(),
"goog-slider-disabled"
)
)
assertTrue(listenerCount == oneThumbSlider.getHandler().getListenerCount())
}
function testBlockIncrementingWithEnableAndDisabled() {
var doc = goog.dom.getOwnerDocument(oneThumbSlider.getElement())
// Case when slider is not disabled between the mouse down and up events.
goog.testing.events.fireMouseDownEvent(oneThumbSlider.getElement())
assertEquals(
1,
goog.events.getListeners(
oneThumbSlider.getElement(),
goog.events.EventType.MOUSEMOVE,
false
).length
)
assertEquals(
1,
goog.events.getListeners(doc, goog.events.EventType.MOUSEUP, true).length
)
goog.testing.events.fireMouseUpEvent(oneThumbSlider.getElement())
assertEquals(
0,
goog.events.getListeners(
oneThumbSlider.getElement(),
goog.events.EventType.MOUSEMOVE,
false
).length
)
assertEquals(
0,
goog.events.getListeners(doc, goog.events.EventType.MOUSEUP, true).length
)
// Case when the slider is disabled between the mouse down and up events.
goog.testing.events.fireMouseDownEvent(oneThumbSlider.getElement())
assertEquals(
1,
goog.events.getListeners(
oneThumbSlider.getElement(),
goog.events.EventType.MOUSEMOVE,
false
).length
)
assertEquals(
1,
goog.events.getListeners(doc, goog.events.EventType.MOUSEUP, true).length
)
oneThumbSlider.setEnabled(false)
assertEquals(
0,
goog.events.getListeners(
oneThumbSlider.getElement(),
goog.events.EventType.MOUSEMOVE,
false
).length
)
assertEquals(
0,
goog.events.getListeners(doc, goog.events.EventType.MOUSEUP, true).length
)
assertEquals(1, oneThumbSlider.getHandler().getListenerCount())
goog.testing.events.fireMouseUpEvent(oneThumbSlider.getElement())
assertEquals(
0,
goog.events.getListeners(
oneThumbSlider.getElement(),
goog.events.EventType.MOUSEMOVE,
false
).length
)
assertEquals(
0,
goog.events.getListeners(doc, goog.events.EventType.MOUSEUP, true).length
)
}
function testMouseClickWithMoveToPointEnabled() {
var stepSize = 20
oneThumbSlider.setStep(stepSize)
oneThumbSlider.setMoveToPointEnabled(true)
var initialValue = oneThumbSlider.getValue()
// Figure out the number of pixels per step.
var numSteps = Math.round(
(oneThumbSlider.getMaximum() - oneThumbSlider.getMinimum()) / stepSize
)
var size = goog.style.getSize(oneThumbSlider.getElement())
var pixelsPerStep = Math.round(size.width / numSteps)
var coords = goog.style.getClientPosition(oneThumbSlider.getElement())
coords.x += pixelsPerStep / 2
// Case when value is increased
goog.testing.events.fireClickSequence(
oneThumbSlider.getElement(),
/* opt_button */ undefined,
coords
)
assertEquals(oneThumbSlider.getValue(), initialValue + stepSize)
// Case when value is decreased
goog.testing.events.fireClickSequence(
oneThumbSlider.getElement(),
/* opt_button */ undefined,
coords
)
assertEquals(oneThumbSlider.getValue(), initialValue)
// Case when thumb is clicked
goog.testing.events.fireClickSequence(oneThumbSlider.getElement())
assertEquals(oneThumbSlider.getValue(), initialValue)
}
function testNonIntegerStepSize() {
var stepSize = 0.02
oneThumbSlider.setStep(stepSize)
oneThumbSlider.setMinimum(-1)
oneThumbSlider.setMaximum(1)
oneThumbSlider.setValue(0.7)
assertRoughlyEquals(0.7, oneThumbSlider.getValue(), 0.000001)
oneThumbSlider.setValue(0.3)
assertRoughlyEquals(0.3, oneThumbSlider.getValue(), 0.000001)
}
function testSingleThumbSliderHasZeroExtent() {
var stepSize = 0.02
oneThumbSlider.setStep(stepSize)
oneThumbSlider.setMinimum(-1)
oneThumbSlider.setMaximum(1)
oneThumbSlider.setValue(0.7)
assertEquals(0, oneThumbSlider.getExtent())
oneThumbSlider.setValue(0.3)
assertEquals(0, oneThumbSlider.getExtent())
}
/**
* Tests getThumbCoordinateForValue method.
*/
function testThumbCoordinateForValueWithHorizontalSlider() {
// Make sure the y-coordinate stays the same for the horizontal slider.
var originalY = goog.style.getPosition(oneThumbSlider.valueThumb).y
var width =
oneThumbSlider.getElement().clientWidth -
oneThumbSlider.valueThumb.offsetWidth
var range = oneThumbSlider.getMaximum() - oneThumbSlider.getMinimum()
// Verify coordinate for a particular value.
var value = 20
var expectedX = Math.round((value / range) * width)
var expectedCoord = new goog.math.Coordinate(expectedX, originalY)
var coord = oneThumbSlider.getThumbCoordinateForValue(value)
assertObjectEquals(expectedCoord, coord)
// Verify this works regardless of current position.
oneThumbSlider.setValue(value / 2)
coord = oneThumbSlider.getThumbCoordinateForValue(value)
assertObjectEquals(expectedCoord, coord)
}
function testThumbCoordinateForValueWithVerticalSlider() {
// Make sure the x-coordinate stays the same for the vertical slider.
oneThumbSlider.setOrientation(goog.ui.SliderBase.Orientation.VERTICAL)
var originalX = goog.style.getPosition(oneThumbSlider.valueThumb).x
var height =
oneThumbSlider.getElement().clientHeight -
oneThumbSlider.valueThumb.offsetHeight
var range = oneThumbSlider.getMaximum() - oneThumbSlider.getMinimum()
// Verify coordinate for a particular value.
var value = 20
var expectedY = height - Math.round((value / range) * height)
var expectedCoord = new goog.math.Coordinate(originalX, expectedY)
var coord = oneThumbSlider.getThumbCoordinateForValue(value)
assertObjectEquals(expectedCoord, coord)
// Verify this works regardless of current position.
oneThumbSlider.setValue(value / 2)
coord = oneThumbSlider.getThumbCoordinateForValue(value)
assertObjectEquals(expectedCoord, coord)
}
/**
* Tests getValueFromMousePosition method.
*/
function testValueFromMousePosition() {
var value = 30
oneThumbSlider.setValue(value)
var offset = goog.style.getPageOffset(oneThumbSlider.valueThumb)
var size = goog.style.getSize(oneThumbSlider.valueThumb)
offset.x += size.width / 2
offset.y += size.height / 2
var e = null
goog.events.listen(oneThumbSlider, goog.events.EventType.MOUSEMOVE, function(
evt
) {
e = evt
})
goog.testing.events.fireMouseMoveEvent(oneThumbSlider, offset)
assertNotEquals(e, null)
assertRoughlyEquals(
value,
Math.round(oneThumbSlider.getValueFromMousePosition(e)),
1
)
// Verify this works regardless of current position.
oneThumbSlider.setValue(value / 2)
assertRoughlyEquals(
value,
Math.round(oneThumbSlider.getValueFromMousePosition(e)),
1
)
}
/**
* Tests ignoring click event after mousedown event.
*/
function testClickAfterMousedown() {
// Get the center of the thumb at value zero.
oneThumbSlider.setValue(0)
var offset = goog.style.getPageOffset(oneThumbSlider.valueThumb)
var size = goog.style.getSize(oneThumbSlider.valueThumb)
offset.x += size.width / 2
offset.y += size.height / 2
var sliderElement = oneThumbSlider.getElement()
var width = sliderElement.clientWidth - size.width
var range = oneThumbSlider.getMaximum() - oneThumbSlider.getMinimum()
var offsetXAtZero = offset.x
// Temporarily control time.
var theTime = goog.now()
var saveGoogNow = goog.now
goog.now = function() {
return theTime
}
// set coordinate for a particular value.
var valueOne = 10
offset.x = offsetXAtZero + Math.round((valueOne / range) * width)
goog.testing.events.fireMouseDownEvent(sliderElement, null, offset)
assertEquals(valueOne, oneThumbSlider.getValue())
// Verify a click event with another value that follows quickly is ignored.
theTime += oneThumbSlider.MOUSE_DOWN_DELAY_ / 2
var valueTwo = 20
offset.x = offsetXAtZero + Math.round((valueTwo / range) * width)
goog.testing.events.fireClickEvent(sliderElement, null, offset)
assertEquals(valueOne, oneThumbSlider.getValue())
// Verify a click later in time does move the thumb.
theTime += oneThumbSlider.MOUSE_DOWN_DELAY_
goog.testing.events.fireClickEvent(sliderElement, null, offset)
assertEquals(valueTwo, oneThumbSlider.getValue())
goog.now = saveGoogNow
}
/**
* Tests dragging events.
*/
function testDragEvents() {
var offset = goog.style.getPageOffset(oneThumbSlider.valueThumb)
var size = goog.style.getSize(oneThumbSlider.valueThumb)
offset.x += size.width / 2
offset.y += size.height / 2
var event_types = []
var handler = function(evt) {
event_types.push(evt.type)
}
goog.events.listen(
oneThumbSlider,
[
goog.ui.SliderBase.EventType.DRAG_START,
goog.ui.SliderBase.EventType.DRAG_END,
goog.ui.SliderBase.EventType.DRAG_VALUE_START,
goog.ui.SliderBase.EventType.DRAG_VALUE_END,
goog.ui.SliderBase.EventType.DRAG_EXTENT_START,
goog.ui.SliderBase.EventType.DRAG_EXTENT_END,
goog.ui.Component.EventType.CHANGE
],
handler
)
// Since the order of the events between value and extent is not guaranteed
// across browsers, we need to allow for both here and once we have
// them all, make sure that they were different.
function isValueOrExtentDragStart(type) {
return (
type == goog.ui.SliderBase.EventType.DRAG_VALUE_START ||
type == goog.ui.SliderBase.EventType.DRAG_EXTENT_START
)
}
function isValueOrExtentDragEnd(type) {
return (
type == goog.ui.SliderBase.EventType.DRAG_VALUE_END ||
type == goog.ui.SliderBase.EventType.DRAG_EXTENT_END
)
}
// Test that dragging the thumb calls all the correct events.
goog.testing.events.fireMouseDownEvent(oneThumbSlider.valueThumb)
offset.x += 100
goog.testing.events.fireMouseMoveEvent(oneThumbSlider.valueThumb, offset)
goog.testing.events.fireMouseUpEvent(oneThumbSlider.valueThumb)
assertEquals(9, event_types.length)
assertEquals(goog.ui.SliderBase.EventType.DRAG_START, event_types[0])
assertTrue(isValueOrExtentDragStart(event_types[1]))
assertEquals(goog.ui.SliderBase.EventType.DRAG_START, event_types[2])
assertTrue(isValueOrExtentDragStart(event_types[3]))
assertEquals(goog.ui.Component.EventType.CHANGE, event_types[4])
assertEquals(goog.ui.SliderBase.EventType.DRAG_END, event_types[5])
assertTrue(isValueOrExtentDragEnd(event_types[6]))
assertEquals(goog.ui.SliderBase.EventType.DRAG_END, event_types[7])
assertTrue(isValueOrExtentDragEnd(event_types[8]))
assertFalse(event_types[1] == event_types[3])
assertFalse(event_types[6] == event_types[8])
// Test that clicking the thumb without moving the mouse does not cause a
// CHANGE event between DRAG_START/DRAG_END.
event_types = []
goog.testing.events.fireMouseDownEvent(oneThumbSlider.valueThumb)
goog.testing.events.fireMouseUpEvent(oneThumbSlider.valueThumb)
assertEquals(8, event_types.length)
assertEquals(goog.ui.SliderBase.EventType.DRAG_START, event_types[0])
assertTrue(isValueOrExtentDragStart(event_types[1]))
assertEquals(goog.ui.SliderBase.EventType.DRAG_START, event_types[2])
assertTrue(isValueOrExtentDragStart(event_types[3]))
assertEquals(goog.ui.SliderBase.EventType.DRAG_END, event_types[4])
assertTrue(isValueOrExtentDragEnd(event_types[5]))
assertEquals(goog.ui.SliderBase.EventType.DRAG_END, event_types[6])
assertTrue(isValueOrExtentDragEnd(event_types[7]))
assertFalse(event_types[1] == event_types[3])
assertFalse(event_types[5] == event_types[7])
// Early listener removal, do not wait for tearDown, to avoid building up
// arrays of events unnecessarilly in further tests.
goog.events.removeAll(oneThumbSlider)
}
/**
* Tests dragging events updates the value correctly in LTR mode based on the
* amount of space remaining to the right of the thumb.
*/
function testDragEventsUpdatesValue() {
// Get the center of the thumb at minimum value.
oneThumbSlider.setMinimum(100)
oneThumbSlider.setMaximum(300)
oneThumbSlider.setValue(100)
// Need to set to (0, 0) in IE8 due to a browser bug where the
// offsetWidth/height is incorrectly calculated as 0 in test files.
var offset =
goog.userAgent.IE && !goog.userAgent.isVersionOrHigher("9")
? new goog.math.Coordinate()
: goog.style.getPageOffset(oneThumbSlider.valueThumb)
var offsetXAtZero = offset.x
var sliderElement = oneThumbSlider.getElementStrict()
var thumbSize = goog.style.getSize(oneThumbSlider.valueThumb)
var width = sliderElement.clientWidth - thumbSize.width
var range = oneThumbSlider.getMaximum() - oneThumbSlider.getMinimum()
// Test that dragging the thumb calls all the correct events.
goog.testing.events.fireMouseDownEvent(oneThumbSlider.valueThumb)
// Scroll to 30 in the range of 0-200. Given that this is LTR mode, that means
// the value will be 100 + 30 = 130.
offset.x = offsetXAtZero + Math.round((30 / range) * width)
goog.testing.events.fireMouseMoveEvent(oneThumbSlider.valueThumb, offset)
assertEquals(130, oneThumbSlider.getValue())
// Scroll to 70 in the range of 0-200. Given that this is LTR mode, that means
// the value will be 100 + 70 = 170.
offset.x = offsetXAtZero + Math.round((70 / range) * width)
goog.testing.events.fireMouseMoveEvent(oneThumbSlider.valueThumb, offset)
assertEquals(170, oneThumbSlider.getValue())
goog.testing.events.fireMouseUpEvent(oneThumbSlider.valueThumb)
}
/**
* Tests dragging events updates the value correctly in RTL mode based on the
* amount of space remaining to the left of the thumb.
*/
function testDragEventsInRtlModeUpdatesValue() {
// Get the center of the thumb at minimum value.
oneThumbSliderRtl.setMinimum(100)
oneThumbSliderRtl.setMaximum(300)
oneThumbSliderRtl.setValue(100)
var offset = goog.style.getPageOffset(oneThumbSliderRtl.valueThumb)
var offsetXAtZero = offset.x
// Extra half of the thumb width in IE8 due to a browser bug where the thumb
// offsetWidth is incorrectly calculated as 0 in test files.
var thumbSize = goog.style.getSize(oneThumbSliderRtl.valueThumb)
if (goog.userAgent.IE && !goog.userAgent.isVersionOrHigher("9")) {
offsetXAtZero += thumbSize.width / 2
}
var sliderElement = oneThumbSliderRtl.getElementStrict()
var width = sliderElement.clientWidth - thumbSize.width
var range = oneThumbSliderRtl.getMaximum() - oneThumbSliderRtl.getMinimum()
// Test that dragging the thumb calls all the correct events.
goog.testing.events.fireMouseDownEvent(oneThumbSliderRtl.valueThumb)
// Scroll to 30 in the range of 0-200. Given that this is RTL mode, that means
// the value will be 100 - (-30) = 130.
offset.x = offsetXAtZero - Math.round((30 / range) * width)
goog.testing.events.fireMouseMoveEvent(oneThumbSliderRtl.valueThumb, offset)
assertEquals(130, oneThumbSliderRtl.getValue())
// Scroll to 70 in the range of 0-200. Given that this is RTL mode, that means
// the value will be 100 - (-70) = 170.
offset.x = offsetXAtZero - Math.round((70 / range) * width)
goog.testing.events.fireMouseMoveEvent(oneThumbSliderRtl.valueThumb, offset)
assertEquals(170, oneThumbSliderRtl.getValue())
goog.testing.events.fireMouseUpEvent(oneThumbSliderRtl.valueThumb)
}
/**
* Tests animationend event after click.
*/
function testAnimationEndEventAfterClick() {
var offset = goog.style.getPageOffset(oneThumbSlider.valueThumb)
var size = goog.style.getSize(oneThumbSlider.valueThumb)
offset.x += size.width / 2
offset.y += size.height / 2
var event_types = []
var handler = function(evt) {
event_types.push(evt.type)
}
var animationDelay = 160 // Delay in ms, is a bit higher than actual delay.
if (goog.userAgent.IE) {
// For some reason, (probably due to how timing works), IE7 and IE8 will not
// stop if we don't wait for it.
animationDelay = 250
}
oneThumbSlider.setMoveToPointEnabled(true)
goog.events.listen(
oneThumbSlider,
goog.ui.SliderBase.EventType.ANIMATION_END,
handler
)
function isAnimationEndType(type) {
return type == goog.ui.SliderBase.EventType.ANIMATION_END
}
offset.x += 100
goog.testing.events.fireClickSequence(
oneThumbSlider.getElement(),
/* opt_button */ undefined,
offset
)
mockClock.tick(animationDelay)
assertEquals(1, event_types.length)
assertTrue(isAnimationEndType(event_types[0]))
goog.events.removeAll(oneThumbSlider)
}
/**
* Tests that focus will be on the top level element when clicking the slider if
* `focusElementOnSliderDrag` is true.
*/
function testFocusOnSliderAfterClickIfFocusElementOnSliderDragTrue() {
var sliderElement = oneThumbSlider.getElement()
var coords = goog.style.getClientPosition(sliderElement)
goog.testing.events.fireClickSequence(
sliderElement,
/* opt_button */ undefined,
coords
)
var activeElement = oneThumbSlider.getDomHelper().getActiveElement()
assertEquals(sliderElement, activeElement)
}
/**
* Tests that focus will not be on the top level element when clicking the
* slider if `focusElementOnSliderDrag` is false.
*/
function testFocusNotOnSliderAfterClickIfFocusElementOnSliderDragFalse() {
oneThumbSlider.setFocusElementOnSliderDrag(false)
var sliderElement = oneThumbSlider.getElement()
var coords = goog.style.getClientPosition(sliderElement)
goog.testing.events.fireClickSequence(
sliderElement,
/* opt_button */ undefined,
coords
)
var activeElement = oneThumbSlider.getDomHelper().getActiveElement()
assertNotEquals(sliderElement, activeElement)
}
|
/*
* Copyright (C) 2017-2019 Dremio Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Component } from 'react';
import PropTypes from 'prop-types';
import { injectIntl } from 'react-intl';
import { ModalForm, FormBody, modalFormProps } from 'components/Forms';
import General from 'components/Forms/General';
import { connectComplexForm } from 'components/Forms/connectComplexForm';
const SECTIONS = [General];
export class SpaceForm extends Component {
static propTypes = {
onFormSubmit: PropTypes.func.isRequired,
onCancel: PropTypes.func.isRequired,
handleSubmit: PropTypes.func.isRequired,
editing: PropTypes.bool,
fields: PropTypes.object,
dirty: PropTypes.bool,
updateFormDirtyState: PropTypes.func,
values: PropTypes.object,
intl: PropTypes.object.isRequired
};
render() {
const {fields, handleSubmit, onFormSubmit, editing, intl} = this.props;
const description = intl.formatMessage({ id: 'Space.AddSpaceModalDescription' });
return (
<ModalForm {...modalFormProps(this.props)} onSubmit={handleSubmit(onFormSubmit)}>
<FormBody style={{padding: '20px 15px'}}>
<General
showAccelerationSection={false}
fields={fields}
editing={editing}
sectionDescription={description}
/>
</FormBody>
</ModalForm>
);
}
}
export default injectIntl(connectComplexForm({
form: 'space',
fields: ['version']
}, SECTIONS, null, {})(SpaceForm));
|
import Form from '../form';
import dateSerialization from '../../core/utils/date_serialization';
import messageLocalization from '../../localization/message';
import devices from '../../core/devices';
import './ui.scheduler.recurrence_editor';
import './timezones/ui.scheduler.timezone_editor';
import '../text_area';
import '../tag_box';
import '../switch';
const SCREEN_SIZE_OF_SINGLE_COLUMN = 600;
const SchedulerAppointmentForm = {
_appointmentForm: {},
_lockDateShiftFlag: false,
_validateAppointmentFormDate: function(editor, value, previousValue) {
const isCurrentDateCorrect = value === null || !!value;
const isPreviousDateCorrect = previousValue === null || !!previousValue;
if(!isCurrentDateCorrect && isPreviousDateCorrect) {
editor.option('value', previousValue);
}
},
_getAllDayStartDate: function(startDate) {
return new Date(new Date(startDate).setHours(0, 0, 0, 0));
},
_getAllDayEndDate: function(startDate) {
return new Date(new Date(startDate).setDate(startDate.getDate() + 1));
},
_getStartDateWithStartHour: function(startDate, startDayHour) {
return new Date(new Date(startDate).setHours(startDayHour));
},
create: function(componentCreator, $container, isReadOnly, formData) {
this._appointmentForm = componentCreator($container, Form, {
items: this._editors,
readOnly: isReadOnly,
showValidationSummary: true,
scrollingEnabled: true,
colCount: 'auto',
colCountByScreen: {
lg: 2,
xs: 1
},
formData: formData,
showColonAfterLabel: false,
labelLocation: 'top',
screenByWidth: (width) => {
return width < SCREEN_SIZE_OF_SINGLE_COLUMN || devices.current().deviceType !== 'desktop' ? 'xs' : 'lg';
}
});
return this._appointmentForm;
},
_dateBoxValueChanged: function(args, dateExpr, isNeedCorrect) {
this._validateAppointmentFormDate(args.component, args.value, args.previousValue);
const value = dateSerialization.deserializeDate(args.value);
const previousValue = dateSerialization.deserializeDate(args.previousValue);
const dateEditor = this._appointmentForm.getEditor(dateExpr);
const dateValue = dateSerialization.deserializeDate(dateEditor.option('value'));
if(!this._appointmentForm._lockDateShiftFlag && dateValue && value && isNeedCorrect(dateValue, value)) {
const duration = previousValue ? dateValue.getTime() - previousValue.getTime() : 0;
dateEditor.option('value', new Date(value.getTime() + duration));
}
},
_getTimezoneEditor: function(timeZoneExpr, secondTimeZoneExpr, visibleIndex, colSpan, schedulerInst, isMainTimeZone, isShow = false) {
return {
dataField: timeZoneExpr,
editorType: 'dxSchedulerTimezoneEditor',
visibleIndex: visibleIndex,
colSpan: colSpan,
label: {
text: ' ',
},
editorOptions: {
observer: schedulerInst,
onValueChanged: (args) => {
const form = this._appointmentForm;
const secondTimezoneEditor = form.getEditor(secondTimeZoneExpr);
if(isMainTimeZone) {
secondTimezoneEditor.option('value', args.value);
}
}
},
visible: isShow
};
},
_getDateBoxEditor: function(dataExpr, colSpan, firstDayOfWeek, label, callback) {
return {
dataField: dataExpr,
editorType: 'dxDateBox',
colSpan: colSpan,
label: {
text: messageLocalization.format(label)
},
validationRules: [{
type: 'required'
}],
editorOptions: {
width: '100%',
calendarOptions: {
firstDayOfWeek: firstDayOfWeek
},
onValueChanged: callback
}
};
},
_getDateBoxItems: function(dataExprs, schedulerInst, allowEditingTimeZones) {
const colSpan = allowEditingTimeZones ? 2 : 1;
const firstDayOfWeek = schedulerInst.option('firstDayOfWeek');
return [
this._getDateBoxEditor(dataExprs.startDateExpr, colSpan, firstDayOfWeek, 'dxScheduler-editorLabelStartDate',
(args) => {
this._dateBoxValueChanged(args, dataExprs.endDateExpr, (endValue, startValue) => { return endValue < startValue; });
}),
this._getTimezoneEditor(dataExprs.startDateTimeZoneExpr, dataExprs.endDateTimeZoneExpr, 1, colSpan, schedulerInst, true, allowEditingTimeZones),
this._getDateBoxEditor(dataExprs.endDateExpr, colSpan, firstDayOfWeek, 'dxScheduler-editorLabelEndDate',
(args) => {
this._dateBoxValueChanged(args, dataExprs.startDateExpr, (startValue, endValue) => { return endValue < startValue; });
}),
this._getTimezoneEditor(dataExprs.endDateTimeZoneExpr, dataExprs.startDateTimeZoneExpr, 3, colSpan, schedulerInst, false, allowEditingTimeZones)
];
},
_getMainItems: function(dataExprs, schedulerInst, triggerResize, changeSize, allowEditingTimeZones) {
return [
{
dataField: dataExprs.textExpr,
editorType: 'dxTextBox',
colSpan: 2,
label: {
text: messageLocalization.format('dxScheduler-editorLabelTitle')
}
},
{
itemType: 'group',
colSpan: 2,
colCountByScreen: {
lg: 2,
xs: 1
},
items: this._getDateBoxItems(dataExprs, schedulerInst, allowEditingTimeZones),
},
{
itemType: 'group',
colCountByScreen: {
lg: 3,
xs: 3
},
colSpan: 2,
items: [{
dataField: dataExprs.allDayExpr,
cssClass: 'dx-appointment-form-switch',
editorType: 'dxSwitch',
label: {
text: messageLocalization.format('dxScheduler-allDay'),
location: 'right',
},
editorOptions: {
onValueChanged: (args) => {
const value = args.value;
const startDateEditor = this._appointmentForm.getEditor(dataExprs.startDateExpr);
const endDateEditor = this._appointmentForm.getEditor(dataExprs.endDateExpr);
const startDate = dateSerialization.deserializeDate(startDateEditor.option('value'));
if(!this._appointmentForm._lockDateShiftFlag && startDate) {
if(value) {
const allDayStartDate = this._getAllDayStartDate(startDate);
startDateEditor.option('value', allDayStartDate);
endDateEditor.option('value', this._getAllDayEndDate(allDayStartDate));
} else {
const startDateWithStartHour = this._getStartDateWithStartHour(startDate, schedulerInst.option('startDayHour'));
const endDate = schedulerInst._workSpace.calculateEndDate(startDateWithStartHour);
startDateEditor.option('value', startDateWithStartHour);
endDateEditor.option('value', endDate);
}
}
startDateEditor.option('type', value ? 'date' : 'datetime');
endDateEditor.option('type', value ? 'date' : 'datetime');
}
}
}, {
editorType: 'dxSwitch',
dataField: 'repeat',
cssClass: 'dx-appointment-form-switch',
name: 'visibilityChanged',
label: {
text: messageLocalization.format('dxScheduler-editorLabelRecurrence'),
location: 'right',
},
editorOptions: {
onValueChanged: (args) => {
const form = this._appointmentForm;
form.option('items[0].colSpan', args.value ? 1 : 2);
form.getEditor(dataExprs.recurrenceRuleExpr).option('visible', args.value);
changeSize(args.value);
triggerResize();
}
}
}]
},
{
itemType: 'empty',
colSpan: 2
},
{
dataField: dataExprs.descriptionExpr,
editorType: 'dxTextArea',
colSpan: 2,
label: {
text: messageLocalization.format('dxScheduler-editorLabelDescription')
}
},
{
itemType: 'empty',
colSpan: 2
}
];
},
prepareAppointmentFormEditors: function(dataExprs, schedulerInst, triggerResize, changeSize, appointmentData, allowEditingTimeZones) {
const recurrenceEditorVisibility = !!this.getRecurrenceRule(appointmentData, dataExprs);
this._editors = [
{
itemType: 'group',
colCountByScreen: {
lg: 2,
xs: 1
},
colSpan: recurrenceEditorVisibility ? 1 : 2,
items: this._getMainItems(dataExprs, schedulerInst, triggerResize, changeSize, allowEditingTimeZones),
},
{
dataField: dataExprs.recurrenceRuleExpr,
editorType: 'dxRecurrenceEditor',
editorOptions: {
firstDayOfWeek: schedulerInst.option('firstDayOfWeek'),
onInitialized: (e) => {
const form = this._appointmentForm;
if(form.option) {
e.component.option('visible', !!this.getRecurrenceRule(form.option('formData'), dataExprs));
}
}
},
label: {
text: ' ',
visible: false
}
}
];
return this._editors;
},
getRecurrenceRule(data, dataExprs) {
return data[dataExprs.recurrenceRuleExpr];
},
concatResources: function(resources) {
this._editors[0].items = this._editors[0].items.concat(resources);
},
setEditorsType: function(form, startDateExpr, endDateExpr, allDay) {
const startDateFormItem = form.itemOption(startDateExpr);
const endDateFormItem = form.itemOption(endDateExpr);
if(startDateFormItem && endDateFormItem) {
const startDateEditorOptions = startDateFormItem.editorOptions;
const endDateEditorOptions = endDateFormItem.editorOptions;
startDateEditorOptions.type = endDateEditorOptions.type = allDay ? 'date' : 'datetime';
form.itemOption(startDateExpr, 'editorOptions', startDateEditorOptions);
form.itemOption(endDateExpr, 'editorOptions', endDateEditorOptions);
}
},
updateFormData: function(appointmentForm, formData) {
appointmentForm._lockDateShiftFlag = true;
appointmentForm.option('formData', formData);
appointmentForm._lockDateShiftFlag = false;
}
};
module.exports = SchedulerAppointmentForm;
|
describe('Add REP', () => {
it('should create REP', () => {
cy.visit('/rep/cadastro');
cy.get('#typeOrigin').click();
cy.get('ul:first-child>li:first-child').click();
cy.get('#numberOrigin').type('123');
cy.get('#foundation').click();
cy.get('ul:first-child>li:first-child').click();
cy.get('#authority').type('123');
cy.get('#street').type('Rua Jacinto Favoreto');
cy.get('#number').type('123');
cy.get('#complement').type('Apto 123');
cy.get('#district').type('Jardim Lutfalla');
cy.get('#city').type('São Carlos');
cy.get('#state').type('São Paulo');
cy.get('#coordinates').type('lat: -22.0060797; long: -47.8949167');
cy.get('[type="submit"]').click();
cy.get('ul>li').should('not.to.be.empty');
});
});
|
class AppError extends Error {
constructor(statusCode, message, isOperational = true, stack = '') {
super(message);
this.statusCode = statusCode;
this.isOperational = isOperational;
if (stack) {
this.stack = stack;
} else {
Error.captureStackTrace(this, this.constructor);
}
}
}
module.exports = AppError;
|
define([
'../ThirdParty/when',
'./defined',
'./isDataUri',
'./loadBlob',
'./loadImage'
], function(
when,
defined,
isDataUri,
loadBlob,
loadImage) {
'use strict';
var xhrBlobSupported = (function() {
try {
var xhr = new XMLHttpRequest();
xhr.open('GET', '#', true);
xhr.responseType = 'blob';
return xhr.responseType === 'blob';
} catch (e) {
return false;
}
})();
/**
* Asynchronously loads the given image URL by first downloading it as a blob using
* XMLHttpRequest and then loading the image from the buffer via a blob URL.
* This allows access to more information that is not accessible via normal
* Image-based downloading, such as the size of the response. This function
* returns a promise that will resolve to
* an {@link Image} once loaded, or reject if the image failed to load. The
* returned image will have a "blob" property with the Blob itself. If the browser
* does not support an XMLHttpRequests with a responseType of 'blob', or if the
* provided URI is a data URI, this function is equivalent to calling {@link loadImage},
* and the extra blob property will not be present.
*
* @exports loadImageViaBlob
*
* @param {String} url The source URL of the image.
* @param {Request} [request] The request object. Intended for internal use only.
* @returns {Promise.<Image>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
*
*
* @example
* // load a single image asynchronously
* Cesium.loadImageViaBlob('some/image/url.png').then(function(image) {
* var blob = image.blob;
* // use the loaded image or XHR
* }).otherwise(function(error) {
* // an error occurred
* });
*
* // load several images in parallel
* when.all([loadImageViaBlob('image1.png'), loadImageViaBlob('image2.png')]).then(function(images) {
* // images is an array containing all the loaded images
* });
*
* @see {@link http://www.w3.org/TR/cors/|Cross-Origin Resource Sharing}
* @see {@link http://wiki.commonjs.org/wiki/Promises/A|CommonJS Promises/A}
*/
function loadImageViaBlob(url, request) {
if (!xhrBlobSupported || isDataUri(url)) {
return loadImage(url, undefined, request);
}
var blobPromise = loadBlob(url, undefined, request);
if (!defined(blobPromise)) {
return undefined;
}
return blobPromise.then(function(blob) {
if (!defined(blob)) {
return;
}
var blobUrl = window.URL.createObjectURL(blob);
return loadImage(blobUrl, false).then(function(image) {
image.blob = blob;
window.URL.revokeObjectURL(blobUrl);
return image;
}, function(error) {
window.URL.revokeObjectURL(blobUrl);
return when.reject(error);
});
});
}
return loadImageViaBlob;
});
|
/**
* Galleria Flickr Plugin 2012-04-04
* http://galleria.io
*
* Licensed under the MIT license
* https://raw.github.com/aino/galleria/master/LICENSE
*
*/
(function($) {
/*global jQuery, Galleria, window */
Galleria.requires(1.25, 'The Flickr Plugin requires Galleria version 1.2.5 or later.');
// The script path
var PATH = Galleria.utils.getScriptPath();
/**
@class
@constructor
@example var flickr = new Galleria.Flickr();
@author http://aino.se
@requires jQuery
@requires Galleria
@param {String} [api_key] Flickr API key to be used, defaults to the Galleria key
@returns Instance
*/
Galleria.Flickr = function( api_key ) {
this.api_key = api_key || '2a2ce06c15780ebeb0b706650fc890b2';
this.options = {
max: 30, // photos to return
imageSize: 'medium', // photo size ( thumb,small,medium,big,original )
thumbSize: 'thumb', // thumbnail size ( thumb,small,medium,big,original )
sort: 'interestingness-desc', // sort option ( date-posted-asc, date-posted-desc, date-taken-asc, date-taken-desc, interestingness-desc, interestingness-asc, relevance )
description: false, // set this to true to get description as caption
complete: function(){}, // callback to be called inside the Galleria.prototype.load
backlink: false // set this to true if you want to pass a link back to the original image
};
};
Galleria.Flickr.prototype = {
// bring back the constructor reference
constructor: Galleria.Flickr,
/**
Search for anything at Flickr
@param {String} phrase The string to search for
@param {Function} [callback] The callback to be called when the data is ready
@returns Instance
*/
search: function( phrase, callback ) {
return this._find({
text: phrase
}, callback );
},
/**
Search for anything at Flickr by tag
@param {String} tag The tag(s) to search for
@param {Function} [callback] The callback to be called when the data is ready
@returns Instance
*/
tags: function( tag, callback ) {
return this._find({
tags: tag
}, callback);
},
/**
Get a user's public photos
@param {String} username The username as shown in the URL to fetch
@param {Function} [callback] The callback to be called when the data is ready
@returns Instance
*/
user: function( username, callback ) {
return this._call({
method: 'flickr.urls.lookupUser',
url: 'flickr.com/photos/' + username
}, function( data ) {
this._find({
user_id: data.user.id,
method: 'flickr.people.getPublicPhotos'
}, callback);
});
},
/**
Get photos from a photoset by ID
@param {String|Number} photoset_id The photoset id to fetch
@param {Function} [callback] The callback to be called when the data is ready
@returns Instance
*/
set: function( photoset_id, callback ) {
return this._find({
photoset_id: photoset_id,
method: 'flickr.photosets.getPhotos'
}, callback);
},
/**
Get photos from a gallery by ID
@param {String|Number} gallery_id The gallery id to fetch
@param {Function} [callback] The callback to be called when the data is ready
@returns Instance
*/
gallery: function( gallery_id, callback ) {
return this._find({
gallery_id: gallery_id,
method: 'flickr.galleries.getPhotos'
}, callback);
},
/**
Search groups and fetch photos from the first group found
Useful if you know the exact name of a group and want to show the groups photos.
@param {String} group The group name to search for
@param {Function} [callback] The callback to be called when the data is ready
@returns Instance
*/
groupsearch: function( group, callback ) {
return this._call({
text: group,
method: 'flickr.groups.search'
}, function( data ) {
this.group( data.groups.group[0].nsid, callback );
});
},
/**
Get photos from a group by ID
@param {String} group_id The group id to fetch
@param {Function} [callback] The callback to be called when the data is ready
@returns Instance
*/
group: function ( group_id, callback ) {
return this._find({
group_id: group_id,
method: 'flickr.groups.pools.getPhotos'
}, callback );
},
/**
Set flickr options
@param {Object} options The options object to blend
@returns Instance
*/
setOptions: function( options ) {
$.extend(this.options, options);
return this;
},
// call Flickr and raise errors
_call: function( params, callback ) {
var url = 'http://api.flickr.com/services/rest/?';
var scope = this;
params = $.extend({
format : 'json',
jsoncallback : '?',
api_key: this.api_key
}, params );
$.each(params, function( key, value ) {
url += '&' + key + '=' + value;
});
$.getJSON(url, function(data) {
if ( data.stat === 'ok' ) {
callback.call(scope, data);
} else {
Galleria.raise( data.code.toString() + ' ' + data.stat + ': ' + data.message, true );
}
});
return scope;
},
// "hidden" way of getting a big image (~1024) from flickr
_getBig: function( photo ) {
if ( photo.url_l ) {
return photo.url_l;
} else if ( parseInt( photo.width_o, 10 ) > 1280 ) {
return 'http://farm'+photo.farm + '.static.flickr.com/'+photo.server +
'/' + photo.id + '_' + photo.secret + '_b.jpg';
}
return photo.url_o || photo.url_z || photo.url_m;
},
// get image size by option name
_getSize: function( photo, size ) {
var img;
switch(size) {
case 'thumb':
img = photo.url_t;
break;
case 'small':
img = photo.url_s;
break;
case 'big':
img = this._getBig( photo );
break;
case 'original':
img = photo.url_o ? photo.url_o : this._getBig( photo );
break;
default:
img = photo.url_z || photo.url_m;
break;
}
return img;
},
// ask flickr for photos, parse the result and call the callback with the galleria-ready data array
_find: function( params, callback ) {
params = $.extend({
method: 'flickr.photos.search',
extras: 'url_t,url_m,url_o,url_s,url_l,url_z,description',
sort: this.options.sort
}, params );
return this._call( params, function(data) {
var gallery = [],
photos = data.photos ? data.photos.photo : data.photoset.photo,
len = Math.min( this.options.max, photos.length ),
photo,
i;
for ( i=0; i<len; i++ ) {
photo = photos[i];
gallery.push({
thumb: this._getSize( photo, this.options.thumbSize ),
image: this._getSize( photo, this.options.imageSize ),
big: this._getBig( photo ),
title: photos[i].title,
description: this.options.description && photos[i].description ? photos[i].description._content : '',
link: this.options.backlink ? 'http://flickr.com/photos/' + photo.owner + '/' + photo.id : ''
});
}
callback.call( this, gallery );
});
}
};
/**
Galleria modifications
We fake-extend the load prototype to make Flickr integration as simple as possible
*/
// save the old prototype in a local variable
var load = Galleria.prototype.load;
// fake-extend the load prototype using the flickr data
Galleria.prototype.load = function() {
// pass if no data is provided or flickr option not found
if ( arguments.length || typeof this._options.flickr !== 'string' ) {
load.apply( this, Galleria.utils.array( arguments ) );
return;
}
// define some local vars
var self = this,
args = Galleria.utils.array( arguments ),
flickr = this._options.flickr.split(':'),
f,
opts = $.extend({}, self._options.flickrOptions),
loader = typeof opts.loader !== 'undefined' ?
opts.loader : $('<div>').css({
width: 48,
height: 48,
opacity: 0.7,
background:'#000 url('+PATH+'loader.gif) no-repeat 50% 50%'
});
if ( flickr.length ) {
// validate the method
if ( typeof Galleria.Flickr.prototype[ flickr[0] ] !== 'function' ) {
Galleria.raise( flickr[0] + ' method not found in Flickr plugin' );
return load.apply( this, args );
}
// validate the argument
if ( !flickr[1] ) {
Galleria.raise( 'No flickr argument found' );
return load.apply( this, args );
}
// apply the preloader
window.setTimeout(function() {
self.$( 'target' ).append( loader );
},100);
// create the instance
f = new Galleria.Flickr();
// apply Flickr options
if ( typeof self._options.flickrOptions === 'object' ) {
f.setOptions( self._options.flickrOptions );
}
// call the flickr method and trigger the DATA event
f[ flickr[0] ]( flickr[1], function( data ) {
self._data = data;
loader.remove();
self.trigger( Galleria.DATA );
f.options.complete.call(f, data);
});
} else {
// if flickr array not found, pass
load.apply( this, args );
}
};
}( jQuery ) );
|
import { attachComponent, detachComponent } from '../../utils/framework-delegate';
import { BACKDROP, dismiss, eventMethod, present } from '../../utils/overlays';
import { getClassMap } from '../../utils/theme';
import { deepReady } from '../../utils/transition';
import { iosEnterAnimation } from './animations/ios.enter';
import { iosLeaveAnimation } from './animations/ios.leave';
import { mdEnterAnimation } from './animations/md.enter';
import { mdLeaveAnimation } from './animations/md.leave';
export class Modal {
constructor() {
this.presented = false;
this.keyboardClose = true;
this.backdropDismiss = true;
this.showBackdrop = true;
this.animated = true;
}
onDismiss(ev) {
ev.stopPropagation();
ev.preventDefault();
this.dismiss();
}
onBackdropTap() {
this.dismiss(undefined, BACKDROP);
}
lifecycle(modalEvent) {
const el = this.usersElement;
const name = LIFECYCLE_MAP[modalEvent.type];
if (el && name) {
const ev = new CustomEvent(name, {
bubbles: false,
cancelable: false,
detail: modalEvent.detail
});
el.dispatchEvent(ev);
}
}
async present() {
if (this.presented) {
return;
}
const container = this.el.querySelector(`.modal-wrapper`);
if (!container) {
throw new Error('container is undefined');
}
const componentProps = Object.assign({}, this.componentProps, { modal: this.el });
this.usersElement = await attachComponent(this.delegate, container, this.component, ['ion-page'], componentProps);
await deepReady(this.usersElement);
return present(this, 'modalEnter', iosEnterAnimation, mdEnterAnimation);
}
async dismiss(data, role) {
const dismissed = await dismiss(this, data, role, 'modalLeave', iosLeaveAnimation, mdLeaveAnimation);
if (dismissed) {
await detachComponent(this.delegate, this.usersElement);
}
return dismissed;
}
onDidDismiss() {
return eventMethod(this.el, 'ionModalDidDismiss');
}
onWillDismiss() {
return eventMethod(this.el, 'ionModalWillDismiss');
}
hostData() {
return {
'no-router': true,
'aria-modal': 'true',
class: Object.assign({ [`${this.mode}`]: true }, getClassMap(this.cssClass)),
style: {
zIndex: 20000 + this.overlayIndex,
}
};
}
render() {
const dialogClasses = {
[`modal-wrapper`]: true,
[`${this.mode}`]: true,
};
return [
h("ion-backdrop", { visible: this.showBackdrop, tappable: this.backdropDismiss }),
h("div", { role: "dialog", class: dialogClasses })
];
}
static get is() { return "ion-modal"; }
static get encapsulation() { return "scoped"; }
static get properties() { return {
"animated": {
"type": Boolean,
"attr": "animated"
},
"backdropDismiss": {
"type": Boolean,
"attr": "backdrop-dismiss"
},
"component": {
"type": String,
"attr": "component"
},
"componentProps": {
"type": "Any",
"attr": "component-props"
},
"config": {
"context": "config"
},
"cssClass": {
"type": String,
"attr": "css-class"
},
"delegate": {
"type": "Any",
"attr": "delegate"
},
"dismiss": {
"method": true
},
"el": {
"elementRef": true
},
"enterAnimation": {
"type": "Any",
"attr": "enter-animation"
},
"keyboardClose": {
"type": Boolean,
"attr": "keyboard-close"
},
"leaveAnimation": {
"type": "Any",
"attr": "leave-animation"
},
"mode": {
"type": String,
"attr": "mode"
},
"onDidDismiss": {
"method": true
},
"onWillDismiss": {
"method": true
},
"overlayIndex": {
"type": Number,
"attr": "overlay-index"
},
"present": {
"method": true
},
"showBackdrop": {
"type": Boolean,
"attr": "show-backdrop"
}
}; }
static get events() { return [{
"name": "ionModalDidPresent",
"method": "didPresent",
"bubbles": true,
"cancelable": true,
"composed": true
}, {
"name": "ionModalWillPresent",
"method": "willPresent",
"bubbles": true,
"cancelable": true,
"composed": true
}, {
"name": "ionModalWillDismiss",
"method": "willDismiss",
"bubbles": true,
"cancelable": true,
"composed": true
}, {
"name": "ionModalDidDismiss",
"method": "didDismiss",
"bubbles": true,
"cancelable": true,
"composed": true
}]; }
static get listeners() { return [{
"name": "ionDismiss",
"method": "onDismiss"
}, {
"name": "ionBackdropTap",
"method": "onBackdropTap"
}, {
"name": "ionModalDidPresent",
"method": "lifecycle"
}, {
"name": "ionModalWillPresent",
"method": "lifecycle"
}, {
"name": "ionModalWillDismiss",
"method": "lifecycle"
}, {
"name": "ionModalDidDismiss",
"method": "lifecycle"
}]; }
static get style() { return "/**style-placeholder:ion-modal:**/"; }
static get styleMode() { return "/**style-id-placeholder:ion-modal:**/"; }
}
const LIFECYCLE_MAP = {
'ionModalDidPresent': 'ionViewDidEnter',
'ionModalWillPresent': 'ionViewWillEnter',
'ionModalWillDismiss': 'ionViewWillLeave',
'ionModalDidDismiss': 'ionViewDidLeave',
};
|
import * as p from '../../src';
test('many0 and doParse work together', () => {
const parse = p.build(p.many0(p.doParse({
a: p.char('a'),
b: p.char('b'),
}, (result) => {
return {
a: result.a.getResult(),
b: result.b.getResult(),
}
})));
const result = parse('ababab');
expect(result.valid).toBe(true);
expect(result.getResult()).toEqual([ { a: 'a', b: 'b'}, { a: 'a', b: 'b'}, { a: 'a', b: 'b'} ]);
});
test('many0 and doParse work together on empty input', () => {
const parse = p.build(p.many0(p.doParse({
a: p.char('a'),
b: p.char('b'),
}, (result) => {
return {
a: result.a.getResult(),
b: result.b.getResult(),
}
})));
const result = parse('');
expect(result.valid).toBe(true);
expect(result.getResult()).toEqual([]);
});
test('doParse gives back the correct position', () => {
const doParse = p.doParse({
a: p.char('a'),
b: p.char('b'),
}, result => result.a.getResult() + result.b.getResult());
const parse = p.build(p.doParse({
a: p.char('c'),
b: doParse,
c: p.char('c'),
}, result => result.b));
const result = parse('cabc').getResult();
expect(result.valid).toBe(true);
expect(result.start).toBe(1);
expect(result.position).toBe(3);
});
|
exports.menu3 = (id, A187, tampilTanggal, whatsapp, youtube, tampilWaktu, instagram, nomer, aktif) => {
return `
❉──────────❉
*${F007}*
❉──────────❉
📆 *${tampilTanggal}*
📌STATUS BOT AKTIF: *${aktif}*
╔════════════════
║ *MENU3*
╠════════════════
║╭──❉ *18+* ❉──
║│➸ _*!indohot*_
║│➸ _*!cersex*_
║│➸ _*!hentai*_
║│➸ _*!indohot*_
║│➸ _*!nekonime*_
║╰───────────
╠════════════════════
║╭──❉ *OUTRAS* ❉──
║│➸ _*!ttsid*_ <teks>
║│➸ _*!bitly*_ <link>
║│➸ _*!namaninja*_ <nama lu>
║│➸ _*!alay*_ <teks>
║│➸ _igstalk*_ <@_sadboy.g>
║│➸ _*!ocr*_ <foto to text>
║│➸ _*!gay*_
║│➸ _*!checkip*_
║│➸ _*!ping*_
║│➸ _*!hostsearch*_
║│➸ _*!scdl*_
║│➸ _*!map*_ <daerah>
║│➸ _*!cooltext*_ <teks>
║│➸ _*!pesankosong*_
║│➸ _*!say*_ <teks>
║╰───────────
╠════════════════════
║╭──❉ *SPAM* ❉──
║│➸ _*!spamcall*_ <OFF>
║│➸ _*!spamsms*_ <OFF>
║│➸ _*!spamgmail*_ <OFF>
║╰───────────
╠════════════════════
╠════════════════════
║ FUSHIGORO-SP
╚════════════════════`
}
|
/*
* This file is part of the ZombieBox package.
*
* Copyright © 2012-2021, Interfaced
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
const fse = require('fs-extra');
const http = require('http');
const {URL} = require('url');
const kleur = require('kleur');
const espree = require('espree');
const connect = require('connect');
const send = require('send');
const httpProxy = require('http-proxy');
const morgan = require('morgan');
const postcss = require('postcss');
const postcssPresetEnv = require('postcss-preset-env');
const postcssValuesParser = require('postcss-values-parser');
const serveStatic = require('serve-static');
const zbLogServer = require('zb-log-server');
const Application = require('./application');
const PathHelper = require('./path-helper');
const ServerCache = require('./server-cache');
const logger = require('./logger').createChild('Server');
/**
*/
class Server {
/**
* @param {Application} application
*/
constructor(application) {
/**
* @type {Application}
* @protected
*/
this._application = application;
/**
* @type {Function}
* @protected
*/
this._app = connect();
/**
* @type {Object}
* @protected
*/
this._proxyServer = httpProxy.createProxyServer();
/**
* @type {?http.Server}
* @protected
*/
this._httpServer = null;
/**
* @type {?number}
* @protected
*/
this._httpPort = null;
/**
* @type {postcss.Processor}
* @protected
*/
this._postcss;
/**
* @type {ServerCache}
* @protected
*/
this._stylesCache = new ServerCache((content, path) => this._preprocessStyle(content, path));
/**
* @type {ServerCache}
* @protected
*/
this._modulesCache = new ServerCache((content, path) => this._preprocessModule(content, path));
const postcssConfig = this._application.getConfig().postcss;
this._postcss = postcss([
postcssPresetEnv({...postcssConfig.presetEnv}),
...postcssConfig.filePlugins,
postcss.plugin('resolve-imports', () => (root) => {
root.walkAtRules('import', (rule) => {
let node = postcssValuesParser.parse(rule.params).nodes[0];
if (node.type === 'func' && node.name === 'url') {
node = node.nodes[0];
}
if (node.type !== 'quoted') {
return;
}
const importPath = node.value.substring(1, node.value.length - 1);
if (PathHelper.isLocal(importPath)) {
return;
}
const fsPath = this._application.aliasedPathToFsPath(importPath);
const webPath = this.getStyleWebPath(fsPath);
const modifiedValue = rule.params.replace(importPath, webPath);
rule.replaceWith(new postcss.AtRule({name: 'import', params: modifiedValue}));
logger.silly(`Replacing CSS import ${importPath} with ${webPath}`);
});
})
]);
this._app.use(morgan('dev', {skip: (req, res) => res.statusCode < 400}));
this._initEndpointMiddleware();
this._initModulesMiddleware();
this._initStylesMiddleware();
this._initErrorMiddleware();
}
/**
* @param {string|Function} route or middleware
* @param {Function=} middleware
* @return {connect}
*/
use(route, middleware) {
return this._app.use(route, middleware);
}
/**
* @param {string} alias
* @param {string} dir
*/
serveStatic(alias, dir) {
this.use(alias, serveStatic(dir));
}
/**
* @param {string} route
*/
rawProxy(route) {
logger.info(`Proxy enabled at ${kleur.cyan(route + '/?url=...')}`);
this.use(route, (req, res) => {
// see https://github.com/nodejs/node/issues/12682
const address = (new URL(req.url, 'request-target://')).searchParams.get('url');
this._proxyServer.web(req, res, {
target: address
});
});
}
/**
* @param {string} route
* @param {string} address
*/
proxy(route, address) {
logger.info(`Proxying path ${kleur.green(route)} from ${kleur.cyan(address)}`);
this.use(route, (req, res) => {
req.headers.host = (new URL(address)).host;
this._proxyServer.web(req, res, {
target: address
});
});
}
/**
* @param {string} route
*/
logServer(route) {
logger.verbose(`Log server started at ${route}`);
this.use(route, zbLogServer);
}
/**
* @param {number=} port
* @return {Promise<string>}
*/
start(port = Server.DEFAULT_PORT) {
this._httpPort = port;
this._httpServer = http.createServer(this._app);
return new Promise((resolve, reject) => {
this._httpServer.listen(this._httpPort);
this._httpServer.on('error', (e) => {
if (e.code === 'EADDRINUSE') {
e.message = (
`Port ${this._httpPort} is already used by another process. ` +
`Tip: to find this process use command like: \`lsof -i:${this._httpPort}\``
);
}
reject(e);
});
this._httpServer.on('listening', () => {
resolve(this._getAddress());
});
});
}
/**
* @param {string} fsPath
* @return {string}
*/
getModuleWebPath(fsPath) {
return '/modules/' + this._application.fsPathToAliasedPath(fsPath);
}
/**
* @param {string} fsPath
* @return {string}
*/
getStyleWebPath(fsPath) {
return '/styles/' + this._application.fsPathToAliasedPath(fsPath);
}
/**
* @return {string}
* @protected
*/
_getAddress() {
return `http://localhost${this._httpPort === 80 ? '' : ':' + this._httpPort}/`;
}
/**
* @param {http.ServerResponse} res
* @protected
*/
async _respondIndexHTMLPage(res) {
const config = this._application.getConfig();
const platform = this._application.getPlatformByName('pc');
const {importEntryPoints} = config.postcss;
const styles = (importEntryPoints || await this._application.getSortedStyles())
.map((fsPath) => this.getStyleWebPath(fsPath));
const entryPoint = this.getModuleWebPath(this._application.getGeneratedEntryPoint())
.replace(/\.js$/, '');
const modules = [entryPoint];
logger.info(`Rendering application`);
const {backdoor} = config.devServer;
if (backdoor && await fse.pathExists(backdoor)) {
logger.info(`Development backdoor plugged in`);
modules.unshift(this.getModuleWebPath(backdoor));
}
const options = await this._application.collectResourcesFromConfigByPlatform(platform);
options.styles = options.styles.concat(styles);
options.modules = modules;
res.setHeader('Content-Type', 'text/html; charset=UTF-8');
res.end(this._application.getIndexHTMLContent(options));
}
/**
* @protected
*/
_initEndpointMiddleware() {
this._app.use(async (req, res, next) => {
const {pathname} = new URL(req.url, 'request-target://');
switch (pathname) {
case '/':
case '/index.html':
await this._respondIndexHTMLPage(res);
break;
// For backward compatibility
case '/es5':
case '/es5.html':
case '/es6':
case '/es6/':
case '/es6.html':
case '/bundle.html':
logger.warn(`Obsolete entry point: ${pathname}`);
res.writeHead(301, {'Location': '/'});
res.end();
break;
default:
next();
}
});
}
/**
* @param {string} content
* @param {string} fsPath
* @return {string}
* @protected
*/
_preprocessModule(content, fsPath) {
let ast;
try {
ast = espree.parse(content, {
sourceType: 'module',
ecmaVersion: 2019
});
} catch (e) {
logger.error(`Error while resolving module paths in ${kleur.underline(fsPath)}: ${e.toString()}`);
logger.debug(e.stack);
}
if (!ast) {
return content;
}
let patchedContent = content;
for (const node of ast.body.reverse()) {
// Imports can only be at top level as per specification
if (node.type === 'ImportDeclaration') {
const source = node.source;
if (source.type === 'Literal' && !PathHelper.isLocal(source.value)) {
const webPath = '/modules/' + source.value;
const replacement = source.raw.replace(source.value, webPath);
// logger.silly(
// `Replacing import path ${kleur.red(source.value)} ` +
// `with ${kleur.green(webPath)} in ` +
// kleur.underline(fsPath)
// );
patchedContent =
patchedContent.slice(0, source.start) +
replacement +
patchedContent.slice(source.end);
}
}
}
return patchedContent;
}
/**
* @protected
*/
_initModulesMiddleware() {
this._app.use('/modules', (req, res, next) => {
// Serve js modules
const aliasedPath = this._getFilePathFromQuery(req.url);
let fsPath = this._application.aliasedPathToFsPath(aliasedPath);
if (!fsPath) {
next(new Error(`Can't resolve aliased module path ${kleur.bold(aliasedPath)}`));
return;
}
if (!fsPath.endsWith('.js')) {
fsPath += '.js';
}
this._modulesCache.get(fsPath)
.then((content) => {
res.setHeader('Content-Type', 'application/javascript; charset=UTF-8');
res.end(content);
});
});
}
/**
* @param {string} content
* @param {string} fsPath
* @return {string}
* @protected
*/
_preprocessStyle(content, fsPath) {
const pluginNames = this._postcss.plugins.map((plugin) => plugin && plugin.postcssPlugin).join(', ');
logger.silly(`Running ${kleur.cyan(pluginNames)} on ${kleur.underline(fsPath)}`);
return this._postcss.process(content, {from: fsPath})
.then((result) => result.css);
}
/**
* @protected
*/
_initStylesMiddleware() {
/**
* @param {string} str
* @return {number}
*/
function lengthInUtf8Bytes(str) {
// Matches only the 10.. bytes that are non-initial characters in a multi-byte sequence.
const m = encodeURIComponent(str).match(/%[89ABab]/g);
return str.length + (m ? m.length : 0);
}
this._app.use('/styles', (req, res, next) => {
const aliasedPath = this._getFilePathFromQuery(req.url);
const fsPath = this._application.aliasedPathToFsPath(aliasedPath);
if (!fsPath) {
next(new Error(`Can't resolve aliased css file path ${kleur.bold(aliasedPath)}`));
return;
}
if (fsPath.endsWith('.css')) {
try {
res.setHeader('Content-Type', 'text/css; charset=UTF-8');
this._stylesCache.get(fsPath)
.then((styleContent) => {
res.setHeader('Content-Length', lengthInUtf8Bytes(styleContent));
res.end(styleContent);
});
} catch (err) {
next(err);
}
} else {
send(req, fsPath).pipe(res);
}
});
}
/**
* @protected
*/
_initErrorMiddleware() {
this._app.use((error, req, res, next) => {
let message = error.message;
if (req.headers.referer) {
const referer = req.headers.referer.split(this._getAddress()).pop();
if (referer) {
message += `\n\tReferrer: ${kleur.underline(referer)}`;
}
}
logger.error(message);
next();
});
}
/**
* @param {string} url
* @return {string}
* @protected
*/
_getFilePathFromQuery(url) {
return url
.replace(/^\//, '')
.replace(/\?.+$/, '');
}
}
/**
* @const {number}
*/
Server.DEFAULT_PORT = 80;
module.exports = Server;
|
import { TabView } from "./bookmark/TabView.js";
import { TabViewImport } from "./bookmark/TabViewImport.js";
import { TabViewExport } from "./bookmark/TabViewExport.js";
class Application
{
#tabViewImport = new TabView(new TabViewImport());
#tabViewExport = new TabView(new TabViewExport());
init()
{
this.#tabViewImport.observe(document.getElementById("import"));
this.#tabViewExport.observe(document.getElementById("export"));
this.#initDefaultTab();
}
#initDefaultTab()
{
document.getElementById("export-tab").click();
}
}
const application = new Application();
document.addEventListener('DOMContentLoaded', function ()
{
application.init();
});
|
'use strict'
const Bleacon = require('bleacon')
const startedAt = new Date().getTime()
function isBean(beacon) {
return beacon.uuid.match('^a495....c5b14b44b5121370f02d74de$')
}
function pad(str, len) {
while (str.length < len) {
str = '0' + str
}
return str
}
Bleacon.on('discover', (beacon) => {
const elapsed = new Date().getTime() - startedAt
const uuid = beacon.uuid
const major = pad(beacon.major.toString(16), 4)
const minor = pad(beacon.minor.toString(16), 4)
let info = `${elapsed}: ${uuid} | ${major} | ${minor} | ${beacon.rssi} | ${beacon.proximity} | ${beacon.accuracy} | ${beacon.measuredPower}`
if (isBean(beacon)) {
info += ' <-- Bean!'
}
console.log(info)
})
Bleacon.startScanning()
console.log('0: Listening for iBeacons...')
|
// mojo/public/js/ts/bindings/tests/export3.test-mojom.externs.js is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/** @type { !number } */
goog.provide('mojo.tstest.exported.THREE');
goog.provide('mojo.tstest.exported.ExportedStructThree');
mojo.tstest.exported.ExportedStructThree = class {
constructor() {
/** @type { !boolean } */
this.value;
}
};
|
const STATE_ENUM = { HIDDEN: 0, SHOWN: 1 };
class DropdownMenu {
constructor ({
select, dropdown, callback = () => {}, duration = 200
}) {
this.TRIM_LENGTH = 6;
this._select = select;
this._dropdown = dropdown;
this._options = [...this._dropdown.firstElementChild.children];
this._callback = callback;
this._selected = -1;
this._selectedValue = null;
this._state = STATE_ENUM.HIDDEN;
this._as = 0;
this._options.forEach(item => item.textContent = this._trim(item.textContent));
this._select.addEventListener("click", event => {
if (this._state == STATE_ENUM.SHOWN) this.hide(); else
if (this._state == STATE_ENUM.HIDDEN) this.show();
event.stopPropagation();
});
this._options.forEach((item, i) => item.addEventListener("click", () => {
this.select(i);
this.hide();
}));
document.addEventListener("click", event => {
if (this._state == STATE_ENUM.SHOWN) this.hide();
});
this._dropdown.addEventListener("click", event => event.stopPropagation());
}
get selectboxState () {
return this._as + 1;
}
set selectboxState (value) {
this._as = (value - 1) % 6;
}
_trim (word) {
let parts = word.split(" ");
let len = 0;
for (let i = 0; i < parts.length; i++) {
if (len > this.TRIM_LENGTH) {
return parts.slice(0, i).join(" ") + "...";
}
len += parts[i].length;
}
return word;
}
_updSelect (desirable) {
if (this._state == desirable) return;
this._select.querySelector(".to" + this.selectboxState).beginElement();
this.selectboxState++;
}
select (i) {
this._selected = this._options[i];
this._selectedValue = this._select.dataset.selected = this._options[i].dataset.corresp;
this._select.to("&__text").textContent = this._options[i].textContent;
this._callback(this._selectedValue);
}
show () {
this._dropdown.style.display = "block";
requestAnimationFrame(() => this._dropdown.style.opacity = 1);
this._updSelect(STATE_ENUM.SHOWN);
this._state = STATE_ENUM.SHOWN;
}
hide () {
this._dropdown.style.opacity = 0;
setTimeout(() => this._dropdown.style.display = "none", this._duration);
this._updSelect(STATE_ENUM.HIDDEN);
this._state = STATE_ENUM.HIDDEN;
}
}
class ThreeStateCheckbox {
constructor (element) {
this._element = element;
}
setChecked () {
this._element.indeterminate = false;
this._element.checked = true;
}
setIndet () {
this._element.indeterminate = true;
this._element.checked = false;
}
setUnchecked () {
this._element.indeterminate = false;
this._element.checked = false;
}
}
|
/*!
* template-push <https://github.com/jonschlinkert/template-push>
*
* Copyright (c) 2015, Jon Schlinkert.
* Licensed under the MIT License.
*/
'use strict';
/* deps: mocha */
require('should');
var through = require('through2');
var verb = require('verb');
var push = require('./');
var verbPush = push(verb);
describe('template-push', function () {
it('should throw an error when `app` is not an instance of Template:', function () {
(function () {
push();
}).should.throw('template-push expects `app` to be an instance of Template.');
});
it('should throw an error when collection name is not a string:', function () {
(function () {
verbPush();
}).should.throw('template-push expects collection `name` to be a string or object.');
});
verb.create('item', function () {
return {
one: { path: 'one.hbs', content: '1' },
two: { path: 'two.hbs', content: '2' },
three: { path: 'three.hbs', content: '3' },
four: { path: 'four.hbs', content: '4' }
};
});
verb.items();
it('should add items to the stream by collection name', function (done) {
var count = 0;
verbPush('items')
.on('data', function () {
count++;
})
.on('error', done)
.on('end', function () {
count.should.eql(4);
done();
});
});
it('should pass items through when piped to', function (done) {
var count = 0;
var stream = through.obj();
stream
.pipe(verbPush('items'))
.on('data', function () {
count++;
})
.on('error', done)
.on('end', function () {
count.should.eql(6);
done();
});
stream.write({path: 'foo'});
stream.write({path: 'bar'});
stream.end();
});
it('should read items from the stream', function (done) {
var count = 0;
verbPush('items')
.pipe(through.obj(function (file, enc, cb) {
count++;
cb();
}, function (cb) {
count.should.eql(4);
done();
}))
.on('error', done);
});
it('should allow an object to be passed:', function (done) {
var templates = {
foo: {path: 'foo.hbs', content: 'this is foooo.'},
bar: {path: 'bar.hbs', content: 'this is baaar.'}
};
var count = 0;
verbPush(templates)
.pipe(through.obj(function (file, enc, cb) {
count++;
cb();
}, function (cb) {
count.should.eql(2);
done();
}))
.on('error', done);
});
});
|
import _ from "lodash";
import React from "react";
import PropTypes from "prop-types";
import {
Modal,
Button,
Glyphicon,
OverlayTrigger,
Tooltip
} from "react-bootstrap";
import SelectionBasedComponent from "./selection_based_component";
import LocationChooserMap from "./location_chooser_map";
import SavedLocationChooser from "./saved_location_chooser";
import util from "../models/util";
class LocationChooser extends SelectionBasedComponent {
constructor( props, context ) {
super( props, context );
this.close = this.close.bind( this );
this.save = this.save.bind( this );
this.update = this.update.bind( this );
this.multiValued = this.multiValued.bind( this );
this.placeholder = this.placeholder.bind( this );
}
componentDidUpdate( prevProps ) {
if ( this.props.show && !prevProps.show ) {
// focus on the autocomplete search field when the location modal opens
setTimeout( () => $( ".gm-style input" ).focus( ).val( "" ), 200 );
}
}
close( ) {
this.props.updateState( { locationChooser: { show: false } } );
}
save( ) {
const attrs = {
latitude: this.props.lat ? Number( this.props.lat ) : undefined,
longitude: this.props.lat ? Number( this.props.lng ) : undefined,
accuracy: this.props.radius ? Number( this.props.radius ) : undefined,
geoprivacy: this.props.geoprivacy,
center: this.props.center,
bounds: this.props.bounds,
zoom: this.props.zoom,
locality_notes: this.props.notes,
manualPlaceGuess: this.props.manualPlaceGuess
};
if ( !attrs.accuracy ) { attrs.accuracy = undefined; }
if ( this.props.obsCard ) {
if ( this.props.updateSingleObsCard ) {
this.props.updateObsCard( attrs );
} else {
this.props.updateObsCard( this.props.obsCard, attrs );
}
} else {
if ( !attrs.latitude && this.multiValued( "latitude" ) ) { delete attrs.latitude; }
if ( !attrs.longitude && this.multiValued( "longitude" ) ) { delete attrs.longitude; }
if ( !attrs.accuracy && this.multiValued( "accuracy" ) ) { delete attrs.accuracy; }
if ( !attrs.geoprivacy && this.multiValued( "geoprivacy" ) ) { delete attrs.geoprivacy; }
if ( !attrs.locality_notes && this.multiValued( "locality_notes" ) ) {
delete attrs.locality_notes;
}
this.props.updateSelectedObsCards( attrs );
}
this.close( );
}
update( field, e ) {
const updates = { [field]: e.target.value };
if ( field === "lat" || field === "lng" ) {
let lat = updates.lat || this.props.lat;
lat = lat ? Number( lat ) : undefined;
let lng = updates.lng || this.props.lng;
lng = lng ? Number( lng ) : undefined;
if ( lat && Math.abs( lat ) > 90 ) { lat = undefined; }
if ( lng && Math.abs( lng ) > 180 ) { lng = undefined; }
if ( lat && lng ) { this.reverseGeocode( lat, lng ); }
} else if ( field === "notes" ) {
updates.manualPlaceGuess = true;
}
this.props.updateState( { locationChooser: updates } );
}
multiValued( prop ) {
if ( this.props.obsCard ) { return false; }
return this.props.selectedObsCards
&& this.valuesOf( prop, this.props.selectedObsCards ).length > 1;
}
placeholder( prop ) {
return this.multiValued( prop ) ? I18n.t( "multiple" ) : undefined;
}
reverseGeocode( lat, lng ) {
if ( this.props.manualPlaceGuess && this.props.notes ) { return; }
util.reverseGeocode( lat, lng ).then( location => {
if ( location ) {
this.props.updateState( {
locationChooser: {
notes: location,
manualPlaceGuess: false
}
} );
}
} );
}
render() {
let canSave = false;
const latNum = Number( this.props.lat );
const lngNum = Number( this.props.lng );
if (
this.props.lat
&& this.props.lng
&& !_.isNaN( latNum )
&& !_.isNaN( lngNum )
&& _.inRange( latNum, -89.999, 90 )
&& _.inRange( lngNum, -179.999, 180 )
) {
canSave = true;
} else if ( !this.props.lat && !this.props.lng ) {
canSave = true;
}
const glyph = this.props.notes && ( <Glyphicon glyph="map-marker" /> );
const multipleGeoprivacy = this.multiValued( "geoprivacy" ) && (
<option>{ I18n.t( "multiple_select_option" ) }</option> );
return (
<Modal
show={this.props.show}
className="location"
onHide={this.close}
backdrop="static"
>
<Modal.Header closeButton>
<Modal.Title>
{ glyph }
{ this.props.notes || I18n.t( "location" ) }
</Modal.Title>
</Modal.Header>
<Modal.Body>
<LocationChooserMap
{...this.props}
containerElement={<div className="map" />}
mapElement={<div className="map-inner" />}
/>
<div className="form">
<div className="form-group">
<label className="control-label">
<span className="label-text">{ I18n.t( "latitude" ) }</span>
<input
className="form-control"
key="lat"
type="text"
value={this.props.lat || ""}
placeholder={this.placeholder( "latitude" )}
onChange={e => this.update( "lat", e )}
/>
</label>
</div>
<div className="form-group">
<label className="control-label">
<span className="label-text">{ I18n.t( "longitude" ) }</span>
<input
className="form-control"
key="lng"
type="text"
value={this.props.lng || ""}
placeholder={this.placeholder( "longitude" )}
onChange={e => this.update( "lng", e )}
/>
</label>
</div>
<div className="form-group">
<label className="control-label" title={ I18n.t( "accuracy_meters" ) }>
<span className="label-text">{ I18n.t( "acc" ) }</span>
<input
className="form-control"
key="radius"
type="text"
value={this.props.radius || ""}
placeholder={this.placeholder( "accuracy" )}
onChange={e => this.update( "radius", e )}
/>
</label>
</div>
<div className="form-group">
<label className="control-label" title={ I18n.t( "geoprivacy" ) }>
<span className="label-text">{ I18n.t( "geoprivacy" ) }</span>
<select
key="location-chooser-geoprivacy"
type="select"
className="form-control"
onChange={e => this.update( "geoprivacy", e )}
value={this.props.geoprivacy}
>
{ multipleGeoprivacy }
<option value="open">{ I18n.t( "open_" ) }</option>
<option value="obscured">{ I18n.t( "obscured" ) }</option>
<option value="private">{ I18n.t( "private_" ) }</option>
</select>
</label>
</div>
<div className="form-group notes-form-group">
<label className="control-label">
<span className="label-text">{ I18n.t( "locality_notes" ) }</span>
<input
className="notes form-control"
key="notes"
type="text"
value={this.props.notes || ""}
placeholder={this.placeholder( "locality_notes" )}
onChange={e => this.update( "notes", e )}
/>
</label>
</div>
{ this.props.saveLocation && latNum && lngNum && this.props.notes ? (
<div className="form-group save-form-group">
<label className="control-label">
<span className="label-text"> </span>
<OverlayTrigger
placement="top"
trigger={["hover", "focus"]}
delayShow={1000}
overlay={(
<Tooltip id="pin-btn-tooltip">
{ I18n.t( "pinned_locations_desc" ) }
</Tooltip>
)}
container={$( ".location" ).get( 0 )}
>
<button
type="button"
className="btn btn-default"
onClick={() => {
this.props.saveLocation( {
latitude: latNum,
longitude: lngNum,
positional_accuracy: this.props.radius,
geoprivacy: this.props.geoprivacy,
title: this.props.notes
} );
}}
>
<i className="fa fa-thumb-tack" />
{ " " }
{ I18n.t( "pin_verb" ) }
</button>
</OverlayTrigger>
</label>
</div>
) : null }
{ this.props.savedLocations.savedLocations ? (
<SavedLocationChooser
className={this.props.savedLocations.savedLocations.length === 0 ? "hidden" : ""}
locationsTotal={this.props.savedLocations.total}
defaultLocations={this.props.savedLocations.savedLocations}
onChoose={sl => {
this.props.updateState( {
locationChooser: {
lat: sl.latitude,
lng: sl.longitude,
radius: sl.positional_accuracy,
geoprivacy: sl.geoprivacy,
notes: sl.title,
manualPlaceGuess: false,
center: {
lat: sl.latitude,
lng: sl.longitude
},
show: true,
fitCurrentCircle: true
}
} );
}}
removeLocation={sl => this.props.removeSavedLocation( sl )}
/>
) : null }
</div>
</Modal.Body>
<Modal.Footer>
<Button onClick={this.close}>{ I18n.t( "cancel" ) }</Button>
<Button
onClick={this.save}
bsStyle="primary"
disabled={!canSave}
>
{ I18n.t( "update_observations" ) }
</Button>
</Modal.Footer>
</Modal>
);
}
}
LocationChooser.propTypes = {
show: PropTypes.bool,
manualPlaceGuess: PropTypes.bool,
obsCard: PropTypes.object,
obsCards: PropTypes.object,
setState: PropTypes.func,
selectedObsCards: PropTypes.object,
updateState: PropTypes.func,
updateObsCard: PropTypes.func,
updateSelectedObsCards: PropTypes.func,
updateSingleObsCard: PropTypes.bool,
lat: PropTypes.any,
lng: PropTypes.any,
radius: PropTypes.any,
zoom: PropTypes.number,
geoprivacy: PropTypes.string,
center: PropTypes.object,
bounds: PropTypes.object,
notes: PropTypes.string,
saveLocation: PropTypes.func,
savedLocations: PropTypes.object,
removeSavedLocation: PropTypes.func
};
LocationChooser.defaultProps = {
savedLocations: {}
};
export default LocationChooser;
|
'use strict';
define({
setSlow: setSlow,
isSlow: isSlow,
addListener: addListener,
});
var deviceIsSlow = false;
var listeners = [];
function setSlow() {
deviceIsSlow = true;
$('.hide-when-slow').hide();
$('.show-when-slow').show();
for (var i in listeners) {
listeners[i]();
}
}
function isSlow() {
return deviceIsSlow;
}
function addListener(listener) {
listeners.push(listener);
if (deviceIsSlow) {
listener();
}
}
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Custom binding for the Permissions API.
var binding = require('binding').Binding.create('permissions');
var Event = require('event_bindings').Event;
// These custom binding are only necessary because it is not currently
// possible to have a union of types as the type of the items in an array.
// Once that is fixed, this entire file should go away.
// See,
// https://code.google.com/p/chromium/issues/detail?id=162044
// https://code.google.com/p/chromium/issues/detail?id=162042
// TODO(bryeung): delete this file.
binding.registerCustomHook(function(api) {
var apiFunctions = api.apiFunctions;
var permissions = api.compiledApi;
function maybeConvertToObject(str) {
var parts = $String.split(str, '|');
if (parts.length != 2)
return str;
var ret = {};
ret[parts[0]] = JSON.parse(parts[1]);
return ret;
}
function convertObjectPermissionsToStrings() {
if (arguments.length < 1)
return arguments;
var args = arguments[0].permissions;
if (!args)
return arguments;
for (var i = 0; i < args.length; i += 1) {
if (typeof(args[i]) == 'object') {
var a = args[i];
var keys = $Object.keys(a);
if (keys.length != 1) {
throw new Error("Too many keys in object-style permission.");
}
arguments[0].permissions[i] = keys[0] + '|' +
JSON.stringify(a[keys[0]]);
}
}
return arguments;
}
// Convert complex permissions to strings so they validate against the schema
apiFunctions.setUpdateArgumentsPreValidate(
'contains', convertObjectPermissionsToStrings);
apiFunctions.setUpdateArgumentsPreValidate(
'remove', convertObjectPermissionsToStrings);
apiFunctions.setUpdateArgumentsPreValidate(
'request', convertObjectPermissionsToStrings);
// Convert complex permissions back to objects
apiFunctions.setCustomCallback('getAll',
function(name, request, response) {
for (var i = 0; i < response.permissions.length; i += 1) {
response.permissions[i] =
maybeConvertToObject(response.permissions[i]);
}
// Since the schema says Permissions.permissions contains strings and
// not objects, validation will fail after the for-loop above. This
// skips validation and calls the callback directly, then clears it so
// that handleResponse doesn't call it again.
try {
if (request.callback)
$Function.apply(request.callback, request, [response]);
} finally {
delete request.callback;
}
});
// Also convert complex permissions back to objects for events. The
// dispatchToListener call happens after argument validation, which works
// around the problem that Permissions.permissions is supposed to be a list
// of strings.
permissions.onAdded.dispatchToListener = function(callback, args) {
for (var i = 0; i < args[0].permissions.length; i += 1) {
args[0].permissions[i] = maybeConvertToObject(args[0].permissions[i]);
}
$Function.call(Event.prototype.dispatchToListener, this, callback, args);
};
permissions.onRemoved.dispatchToListener =
permissions.onAdded.dispatchToListener;
});
exports.binding = binding.generate();
|
import PropTypes from 'prop-types'
import React, { Component } from 'react'
import Footer from '../common/Footer'
import 'semantic-ui-css/semantic.min.css'
import '../../styles/global.scss'
class DesktopContainer extends Component {
render() {
const { children } = this.props
return (
<div className='hide-on-mobile hide-on-tablet'>
{children}
<Footer />
</div>
)
}
}
DesktopContainer.propTypes = {
children: PropTypes.node,
}
export default DesktopContainer
|
const app = require('./app');
const port = process.env.PORT | 3333;
app.listen(port, () => console.log(`Running at ${port}`))
|
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 - present Instructure, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
export default function generator ({ spacing, borders, colors, forms, shadows, typography }) {
return {
labelColor: colors.textDarkest,
labelFontFamily: typography.fontFamily,
labelFontWeight: typography.fontWeightNormal,
labelLineHeight: typography.lineHeightCondensed,
background: colors.backgroundLightest,
borderColor: colors.borderDarkest,
hoverBorderColor: colors.borderDarkest,
controlSize: '0.1875rem',
focusBorderColor: colors.borderBrand,
focusBorderWidth: borders.widthSmall,
focusBorderStyle: borders.style,
simpleFacadeSmallSize: '1rem',
simpleFacadeMediumSize: '1.25rem',
simpleFacadeLargeSize: '1.75rem',
simpleCheckedInsetSmall: '0.1875rem',
simpleCheckedInsetMedium: '0.25rem',
simpleCheckedInsetLarge: '0.375rem',
simpleFontSizeSmall: typography.fontSizeSmall,
simpleFontSizeMedium: typography.fontSizeMedium,
simpleFontSizeLarge: typography.fontSizeLarge,
simpleFacadeMarginEnd: spacing.xSmall,
toggleBorderRadius: borders.radiusSmall,
toggleBorderWidth: borders.widthLarge,
toggleBackgroundSuccess: colors.backgroundSuccess,
toggleBackgroundOff: colors.backgroundDark,
toggleBackgroundDanger: colors.backgroundDanger,
toggleBackgroundWarning: colors.backgroundWarning,
toggleHandleText: colors.textLightest,
toggleSmallHeight: forms.inputHeightSmall,
toggleMediumHeight: forms.inputHeightMedium,
toggleLargeHeight: forms.inputHeightLarge,
toggleShadow: shadows.depth1,
// toggle font is uppercase, so sizes are smaller below
toggleSmallFontSize: typography.fontSizeXSmall,
toggleMediumFontSize: typography.fontSizeSmall,
toggleLargeFontSize: typography.fontSizeMedium
}
}
generator['canvas-a11y'] = generator['canvas-high-contrast'] = function ({ colors }) {
return {
toggleBackgroundOff: colors.backgroundDarkest
}
}
generator.canvas = function (variables) {
return {
focusBorderColor: variables['ic-brand-primary'],
borderColor: variables['ic-brand-font-color-dark'],
hoverBorderColor: variables['ic-brand-font-color-dark'],
labelColor: variables['ic-brand-font-color-dark']
}
}
|
// Copyright 2019 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Unicode property escapes for `General_Category=Unassigned`
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v12.1.0
esid: sec-static-semantics-unicodematchproperty-p
features: [regexp-unicode-property-escapes]
includes: [regExpUtils.js]
---*/
const matchSymbols = buildString({
loneCodePoints: [
0x00038B,
0x00038D,
0x0003A2,
0x000530,
0x000590,
0x00061D,
0x00070E,
0x00083F,
0x00085F,
0x0008B5,
0x000984,
0x0009A9,
0x0009B1,
0x0009DE,
0x000A04,
0x000A29,
0x000A31,
0x000A34,
0x000A37,
0x000A3D,
0x000A5D,
0x000A84,
0x000A8E,
0x000A92,
0x000AA9,
0x000AB1,
0x000AB4,
0x000AC6,
0x000ACA,
0x000B00,
0x000B04,
0x000B29,
0x000B31,
0x000B34,
0x000B5E,
0x000B84,
0x000B91,
0x000B9B,
0x000B9D,
0x000BC9,
0x000C0D,
0x000C11,
0x000C29,
0x000C45,
0x000C49,
0x000C57,
0x000C8D,
0x000C91,
0x000CA9,
0x000CB4,
0x000CC5,
0x000CC9,
0x000CDF,
0x000CF0,
0x000D04,
0x000D0D,
0x000D11,
0x000D45,
0x000D49,
0x000D84,
0x000DB2,
0x000DBC,
0x000DD5,
0x000DD7,
0x000E83,
0x000E85,
0x000E8B,
0x000EA4,
0x000EA6,
0x000EC5,
0x000EC7,
0x000F48,
0x000F98,
0x000FBD,
0x000FCD,
0x0010C6,
0x001249,
0x001257,
0x001259,
0x001289,
0x0012B1,
0x0012BF,
0x0012C1,
0x0012D7,
0x001311,
0x00170D,
0x00176D,
0x001771,
0x00180F,
0x00191F,
0x001A5F,
0x001DFA,
0x001F58,
0x001F5A,
0x001F5C,
0x001F5E,
0x001FB5,
0x001FC5,
0x001FDC,
0x001FF5,
0x001FFF,
0x002065,
0x00208F,
0x002C2F,
0x002C5F,
0x002D26,
0x002DA7,
0x002DAF,
0x002DB7,
0x002DBF,
0x002DC7,
0x002DCF,
0x002DD7,
0x002DDF,
0x002E9A,
0x003040,
0x003130,
0x00318F,
0x00321F,
0x00A9CE,
0x00A9FF,
0x00AB27,
0x00AB2F,
0x00FB37,
0x00FB3D,
0x00FB3F,
0x00FB42,
0x00FB45,
0x00FE53,
0x00FE67,
0x00FE75,
0x00FF00,
0x00FFE7,
0x01000C,
0x010027,
0x01003B,
0x01003E,
0x01018F,
0x01039E,
0x010809,
0x010836,
0x010856,
0x0108F3,
0x010A04,
0x010A14,
0x010A18,
0x011135,
0x0111E0,
0x011212,
0x011287,
0x011289,
0x01128E,
0x01129E,
0x011304,
0x011329,
0x011331,
0x011334,
0x01133A,
0x01145A,
0x01145C,
0x011C09,
0x011C37,
0x011CA8,
0x011D07,
0x011D0A,
0x011D3B,
0x011D3E,
0x011D66,
0x011D69,
0x011D8F,
0x011D92,
0x01246F,
0x01342F,
0x016A5F,
0x016B5A,
0x016B62,
0x01D455,
0x01D49D,
0x01D4AD,
0x01D4BA,
0x01D4BC,
0x01D4C4,
0x01D506,
0x01D515,
0x01D51D,
0x01D53A,
0x01D53F,
0x01D545,
0x01D551,
0x01DAA0,
0x01E007,
0x01E022,
0x01E025,
0x01EE04,
0x01EE20,
0x01EE23,
0x01EE28,
0x01EE33,
0x01EE38,
0x01EE3A,
0x01EE48,
0x01EE4A,
0x01EE4C,
0x01EE50,
0x01EE53,
0x01EE58,
0x01EE5A,
0x01EE5C,
0x01EE5E,
0x01EE60,
0x01EE63,
0x01EE6B,
0x01EE73,
0x01EE78,
0x01EE7D,
0x01EE7F,
0x01EE8A,
0x01EEA4,
0x01EEAA,
0x01F0C0,
0x01F0D0,
0x01F90C,
0x01F972
],
ranges: [
[0x000378, 0x000379],
[0x000380, 0x000383],
[0x000557, 0x000558],
[0x00058B, 0x00058C],
[0x0005C8, 0x0005CF],
[0x0005EB, 0x0005EE],
[0x0005F5, 0x0005FF],
[0x00074B, 0x00074C],
[0x0007B2, 0x0007BF],
[0x0007FB, 0x0007FC],
[0x00082E, 0x00082F],
[0x00085C, 0x00085D],
[0x00086B, 0x00089F],
[0x0008BE, 0x0008D2],
[0x00098D, 0x00098E],
[0x000991, 0x000992],
[0x0009B3, 0x0009B5],
[0x0009BA, 0x0009BB],
[0x0009C5, 0x0009C6],
[0x0009C9, 0x0009CA],
[0x0009CF, 0x0009D6],
[0x0009D8, 0x0009DB],
[0x0009E4, 0x0009E5],
[0x0009FF, 0x000A00],
[0x000A0B, 0x000A0E],
[0x000A11, 0x000A12],
[0x000A3A, 0x000A3B],
[0x000A43, 0x000A46],
[0x000A49, 0x000A4A],
[0x000A4E, 0x000A50],
[0x000A52, 0x000A58],
[0x000A5F, 0x000A65],
[0x000A77, 0x000A80],
[0x000ABA, 0x000ABB],
[0x000ACE, 0x000ACF],
[0x000AD1, 0x000ADF],
[0x000AE4, 0x000AE5],
[0x000AF2, 0x000AF8],
[0x000B0D, 0x000B0E],
[0x000B11, 0x000B12],
[0x000B3A, 0x000B3B],
[0x000B45, 0x000B46],
[0x000B49, 0x000B4A],
[0x000B4E, 0x000B55],
[0x000B58, 0x000B5B],
[0x000B64, 0x000B65],
[0x000B78, 0x000B81],
[0x000B8B, 0x000B8D],
[0x000B96, 0x000B98],
[0x000BA0, 0x000BA2],
[0x000BA5, 0x000BA7],
[0x000BAB, 0x000BAD],
[0x000BBA, 0x000BBD],
[0x000BC3, 0x000BC5],
[0x000BCE, 0x000BCF],
[0x000BD1, 0x000BD6],
[0x000BD8, 0x000BE5],
[0x000BFB, 0x000BFF],
[0x000C3A, 0x000C3C],
[0x000C4E, 0x000C54],
[0x000C5B, 0x000C5F],
[0x000C64, 0x000C65],
[0x000C70, 0x000C76],
[0x000CBA, 0x000CBB],
[0x000CCE, 0x000CD4],
[0x000CD7, 0x000CDD],
[0x000CE4, 0x000CE5],
[0x000CF3, 0x000CFF],
[0x000D50, 0x000D53],
[0x000D64, 0x000D65],
[0x000D80, 0x000D81],
[0x000D97, 0x000D99],
[0x000DBE, 0x000DBF],
[0x000DC7, 0x000DC9],
[0x000DCB, 0x000DCE],
[0x000DE0, 0x000DE5],
[0x000DF0, 0x000DF1],
[0x000DF5, 0x000E00],
[0x000E3B, 0x000E3E],
[0x000E5C, 0x000E80],
[0x000EBE, 0x000EBF],
[0x000ECE, 0x000ECF],
[0x000EDA, 0x000EDB],
[0x000EE0, 0x000EFF],
[0x000F6D, 0x000F70],
[0x000FDB, 0x000FFF],
[0x0010C8, 0x0010CC],
[0x0010CE, 0x0010CF],
[0x00124E, 0x00124F],
[0x00125E, 0x00125F],
[0x00128E, 0x00128F],
[0x0012B6, 0x0012B7],
[0x0012C6, 0x0012C7],
[0x001316, 0x001317],
[0x00135B, 0x00135C],
[0x00137D, 0x00137F],
[0x00139A, 0x00139F],
[0x0013F6, 0x0013F7],
[0x0013FE, 0x0013FF],
[0x00169D, 0x00169F],
[0x0016F9, 0x0016FF],
[0x001715, 0x00171F],
[0x001737, 0x00173F],
[0x001754, 0x00175F],
[0x001774, 0x00177F],
[0x0017DE, 0x0017DF],
[0x0017EA, 0x0017EF],
[0x0017FA, 0x0017FF],
[0x00181A, 0x00181F],
[0x001879, 0x00187F],
[0x0018AB, 0x0018AF],
[0x0018F6, 0x0018FF],
[0x00192C, 0x00192F],
[0x00193C, 0x00193F],
[0x001941, 0x001943],
[0x00196E, 0x00196F],
[0x001975, 0x00197F],
[0x0019AC, 0x0019AF],
[0x0019CA, 0x0019CF],
[0x0019DB, 0x0019DD],
[0x001A1C, 0x001A1D],
[0x001A7D, 0x001A7E],
[0x001A8A, 0x001A8F],
[0x001A9A, 0x001A9F],
[0x001AAE, 0x001AAF],
[0x001ABF, 0x001AFF],
[0x001B4C, 0x001B4F],
[0x001B7D, 0x001B7F],
[0x001BF4, 0x001BFB],
[0x001C38, 0x001C3A],
[0x001C4A, 0x001C4C],
[0x001C89, 0x001C8F],
[0x001CBB, 0x001CBC],
[0x001CC8, 0x001CCF],
[0x001CFB, 0x001CFF],
[0x001F16, 0x001F17],
[0x001F1E, 0x001F1F],
[0x001F46, 0x001F47],
[0x001F4E, 0x001F4F],
[0x001F7E, 0x001F7F],
[0x001FD4, 0x001FD5],
[0x001FF0, 0x001FF1],
[0x002072, 0x002073],
[0x00209D, 0x00209F],
[0x0020C0, 0x0020CF],
[0x0020F1, 0x0020FF],
[0x00218C, 0x00218F],
[0x002427, 0x00243F],
[0x00244B, 0x00245F],
[0x002B74, 0x002B75],
[0x002B96, 0x002B97],
[0x002CF4, 0x002CF8],
[0x002D28, 0x002D2C],
[0x002D2E, 0x002D2F],
[0x002D68, 0x002D6E],
[0x002D71, 0x002D7E],
[0x002D97, 0x002D9F],
[0x002E50, 0x002E7F],
[0x002EF4, 0x002EFF],
[0x002FD6, 0x002FEF],
[0x002FFC, 0x002FFF],
[0x003097, 0x003098],
[0x003100, 0x003104],
[0x0031BB, 0x0031BF],
[0x0031E4, 0x0031EF],
[0x004DB6, 0x004DBF],
[0x009FF0, 0x009FFF],
[0x00A48D, 0x00A48F],
[0x00A4C7, 0x00A4CF],
[0x00A62C, 0x00A63F],
[0x00A6F8, 0x00A6FF],
[0x00A7C0, 0x00A7C1],
[0x00A7C7, 0x00A7F6],
[0x00A82C, 0x00A82F],
[0x00A83A, 0x00A83F],
[0x00A878, 0x00A87F],
[0x00A8C6, 0x00A8CD],
[0x00A8DA, 0x00A8DF],
[0x00A954, 0x00A95E],
[0x00A97D, 0x00A97F],
[0x00A9DA, 0x00A9DD],
[0x00AA37, 0x00AA3F],
[0x00AA4E, 0x00AA4F],
[0x00AA5A, 0x00AA5B],
[0x00AAC3, 0x00AADA],
[0x00AAF7, 0x00AB00],
[0x00AB07, 0x00AB08],
[0x00AB0F, 0x00AB10],
[0x00AB17, 0x00AB1F],
[0x00AB68, 0x00AB6F],
[0x00ABEE, 0x00ABEF],
[0x00ABFA, 0x00ABFF],
[0x00D7A4, 0x00D7AF],
[0x00D7C7, 0x00D7CA],
[0x00D7FC, 0x00D7FF],
[0x00FA6E, 0x00FA6F],
[0x00FADA, 0x00FAFF],
[0x00FB07, 0x00FB12],
[0x00FB18, 0x00FB1C],
[0x00FBC2, 0x00FBD2],
[0x00FD40, 0x00FD4F],
[0x00FD90, 0x00FD91],
[0x00FDC8, 0x00FDEF],
[0x00FDFE, 0x00FDFF],
[0x00FE1A, 0x00FE1F],
[0x00FE6C, 0x00FE6F],
[0x00FEFD, 0x00FEFE],
[0x00FFBF, 0x00FFC1],
[0x00FFC8, 0x00FFC9],
[0x00FFD0, 0x00FFD1],
[0x00FFD8, 0x00FFD9],
[0x00FFDD, 0x00FFDF],
[0x00FFEF, 0x00FFF8],
[0x00FFFE, 0x00FFFF],
[0x01004E, 0x01004F],
[0x01005E, 0x01007F],
[0x0100FB, 0x0100FF],
[0x010103, 0x010106],
[0x010134, 0x010136],
[0x01019C, 0x01019F],
[0x0101A1, 0x0101CF],
[0x0101FE, 0x01027F],
[0x01029D, 0x01029F],
[0x0102D1, 0x0102DF],
[0x0102FC, 0x0102FF],
[0x010324, 0x01032C],
[0x01034B, 0x01034F],
[0x01037B, 0x01037F],
[0x0103C4, 0x0103C7],
[0x0103D6, 0x0103FF],
[0x01049E, 0x01049F],
[0x0104AA, 0x0104AF],
[0x0104D4, 0x0104D7],
[0x0104FC, 0x0104FF],
[0x010528, 0x01052F],
[0x010564, 0x01056E],
[0x010570, 0x0105FF],
[0x010737, 0x01073F],
[0x010756, 0x01075F],
[0x010768, 0x0107FF],
[0x010806, 0x010807],
[0x010839, 0x01083B],
[0x01083D, 0x01083E],
[0x01089F, 0x0108A6],
[0x0108B0, 0x0108DF],
[0x0108F6, 0x0108FA],
[0x01091C, 0x01091E],
[0x01093A, 0x01093E],
[0x010940, 0x01097F],
[0x0109B8, 0x0109BB],
[0x0109D0, 0x0109D1],
[0x010A07, 0x010A0B],
[0x010A36, 0x010A37],
[0x010A3B, 0x010A3E],
[0x010A49, 0x010A4F],
[0x010A59, 0x010A5F],
[0x010AA0, 0x010ABF],
[0x010AE7, 0x010AEA],
[0x010AF7, 0x010AFF],
[0x010B36, 0x010B38],
[0x010B56, 0x010B57],
[0x010B73, 0x010B77],
[0x010B92, 0x010B98],
[0x010B9D, 0x010BA8],
[0x010BB0, 0x010BFF],
[0x010C49, 0x010C7F],
[0x010CB3, 0x010CBF],
[0x010CF3, 0x010CF9],
[0x010D28, 0x010D2F],
[0x010D3A, 0x010E5F],
[0x010E7F, 0x010EFF],
[0x010F28, 0x010F2F],
[0x010F5A, 0x010FDF],
[0x010FF7, 0x010FFF],
[0x01104E, 0x011051],
[0x011070, 0x01107E],
[0x0110C2, 0x0110CC],
[0x0110CE, 0x0110CF],
[0x0110E9, 0x0110EF],
[0x0110FA, 0x0110FF],
[0x011147, 0x01114F],
[0x011177, 0x01117F],
[0x0111CE, 0x0111CF],
[0x0111F5, 0x0111FF],
[0x01123F, 0x01127F],
[0x0112AA, 0x0112AF],
[0x0112EB, 0x0112EF],
[0x0112FA, 0x0112FF],
[0x01130D, 0x01130E],
[0x011311, 0x011312],
[0x011345, 0x011346],
[0x011349, 0x01134A],
[0x01134E, 0x01134F],
[0x011351, 0x011356],
[0x011358, 0x01135C],
[0x011364, 0x011365],
[0x01136D, 0x01136F],
[0x011375, 0x0113FF],
[0x011460, 0x01147F],
[0x0114C8, 0x0114CF],
[0x0114DA, 0x01157F],
[0x0115B6, 0x0115B7],
[0x0115DE, 0x0115FF],
[0x011645, 0x01164F],
[0x01165A, 0x01165F],
[0x01166D, 0x01167F],
[0x0116B9, 0x0116BF],
[0x0116CA, 0x0116FF],
[0x01171B, 0x01171C],
[0x01172C, 0x01172F],
[0x011740, 0x0117FF],
[0x01183C, 0x01189F],
[0x0118F3, 0x0118FE],
[0x011900, 0x01199F],
[0x0119A8, 0x0119A9],
[0x0119D8, 0x0119D9],
[0x0119E5, 0x0119FF],
[0x011A48, 0x011A4F],
[0x011AA3, 0x011ABF],
[0x011AF9, 0x011BFF],
[0x011C46, 0x011C4F],
[0x011C6D, 0x011C6F],
[0x011C90, 0x011C91],
[0x011CB7, 0x011CFF],
[0x011D37, 0x011D39],
[0x011D48, 0x011D4F],
[0x011D5A, 0x011D5F],
[0x011D99, 0x011D9F],
[0x011DAA, 0x011EDF],
[0x011EF9, 0x011FBF],
[0x011FF2, 0x011FFE],
[0x01239A, 0x0123FF],
[0x012475, 0x01247F],
[0x012544, 0x012FFF],
[0x013439, 0x0143FF],
[0x014647, 0x0167FF],
[0x016A39, 0x016A3F],
[0x016A6A, 0x016A6D],
[0x016A70, 0x016ACF],
[0x016AEE, 0x016AEF],
[0x016AF6, 0x016AFF],
[0x016B46, 0x016B4F],
[0x016B78, 0x016B7C],
[0x016B90, 0x016E3F],
[0x016E9B, 0x016EFF],
[0x016F4B, 0x016F4E],
[0x016F88, 0x016F8E],
[0x016FA0, 0x016FDF],
[0x016FE4, 0x016FFF],
[0x0187F8, 0x0187FF],
[0x018AF3, 0x01AFFF],
[0x01B11F, 0x01B14F],
[0x01B153, 0x01B163],
[0x01B168, 0x01B16F],
[0x01B2FC, 0x01BBFF],
[0x01BC6B, 0x01BC6F],
[0x01BC7D, 0x01BC7F],
[0x01BC89, 0x01BC8F],
[0x01BC9A, 0x01BC9B],
[0x01BCA4, 0x01CFFF],
[0x01D0F6, 0x01D0FF],
[0x01D127, 0x01D128],
[0x01D1E9, 0x01D1FF],
[0x01D246, 0x01D2DF],
[0x01D2F4, 0x01D2FF],
[0x01D357, 0x01D35F],
[0x01D379, 0x01D3FF],
[0x01D4A0, 0x01D4A1],
[0x01D4A3, 0x01D4A4],
[0x01D4A7, 0x01D4A8],
[0x01D50B, 0x01D50C],
[0x01D547, 0x01D549],
[0x01D6A6, 0x01D6A7],
[0x01D7CC, 0x01D7CD],
[0x01DA8C, 0x01DA9A],
[0x01DAB0, 0x01DFFF],
[0x01E019, 0x01E01A],
[0x01E02B, 0x01E0FF],
[0x01E12D, 0x01E12F],
[0x01E13E, 0x01E13F],
[0x01E14A, 0x01E14D],
[0x01E150, 0x01E2BF],
[0x01E2FA, 0x01E2FE],
[0x01E300, 0x01E7FF],
[0x01E8C5, 0x01E8C6],
[0x01E8D7, 0x01E8FF],
[0x01E94C, 0x01E94F],
[0x01E95A, 0x01E95D],
[0x01E960, 0x01EC70],
[0x01ECB5, 0x01ED00],
[0x01ED3E, 0x01EDFF],
[0x01EE25, 0x01EE26],
[0x01EE3C, 0x01EE41],
[0x01EE43, 0x01EE46],
[0x01EE55, 0x01EE56],
[0x01EE65, 0x01EE66],
[0x01EE9C, 0x01EEA0],
[0x01EEBC, 0x01EEEF],
[0x01EEF2, 0x01EFFF],
[0x01F02C, 0x01F02F],
[0x01F094, 0x01F09F],
[0x01F0AF, 0x01F0B0],
[0x01F0F6, 0x01F0FF],
[0x01F10D, 0x01F10F],
[0x01F16D, 0x01F16F],
[0x01F1AD, 0x01F1E5],
[0x01F203, 0x01F20F],
[0x01F23C, 0x01F23F],
[0x01F249, 0x01F24F],
[0x01F252, 0x01F25F],
[0x01F266, 0x01F2FF],
[0x01F6D6, 0x01F6DF],
[0x01F6ED, 0x01F6EF],
[0x01F6FB, 0x01F6FF],
[0x01F774, 0x01F77F],
[0x01F7D9, 0x01F7DF],
[0x01F7EC, 0x01F7FF],
[0x01F80C, 0x01F80F],
[0x01F848, 0x01F84F],
[0x01F85A, 0x01F85F],
[0x01F888, 0x01F88F],
[0x01F8AE, 0x01F8FF],
[0x01F977, 0x01F979],
[0x01F9A3, 0x01F9A4],
[0x01F9AB, 0x01F9AD],
[0x01F9CB, 0x01F9CC],
[0x01FA54, 0x01FA5F],
[0x01FA6E, 0x01FA6F],
[0x01FA74, 0x01FA77],
[0x01FA7B, 0x01FA7F],
[0x01FA83, 0x01FA8F],
[0x01FA96, 0x01FFFF],
[0x02A6D7, 0x02A6FF],
[0x02B735, 0x02B73F],
[0x02B81E, 0x02B81F],
[0x02CEA2, 0x02CEAF],
[0x02EBE1, 0x02F7FF],
[0x02FA1E, 0x0E0000],
[0x0E0002, 0x0E001F],
[0x0E0080, 0x0E00FF],
[0x0E01F0, 0x0EFFFF],
[0x0FFFFE, 0x0FFFFF],
[0x10FFFE, 0x10FFFF]
]
});
testPropertyEscapes(
/^\p{General_Category=Unassigned}+$/u,
matchSymbols,
"\\p{General_Category=Unassigned}"
);
testPropertyEscapes(
/^\p{General_Category=Cn}+$/u,
matchSymbols,
"\\p{General_Category=Cn}"
);
testPropertyEscapes(
/^\p{gc=Unassigned}+$/u,
matchSymbols,
"\\p{gc=Unassigned}"
);
testPropertyEscapes(
/^\p{gc=Cn}+$/u,
matchSymbols,
"\\p{gc=Cn}"
);
testPropertyEscapes(
/^\p{Unassigned}+$/u,
matchSymbols,
"\\p{Unassigned}"
);
testPropertyEscapes(
/^\p{Cn}+$/u,
matchSymbols,
"\\p{Cn}"
);
const nonMatchSymbols = buildString({
loneCodePoints: [
0x00038C,
0x00085E,
0x0009B2,
0x0009D7,
0x000A3C,
0x000A51,
0x000A5E,
0x000AD0,
0x000B9C,
0x000BD0,
0x000BD7,
0x000CDE,
0x000DBD,
0x000DCA,
0x000DD6,
0x000E84,
0x000EA5,
0x000EC6,
0x0010C7,
0x0010CD,
0x001258,
0x0012C0,
0x001940,
0x001F59,
0x001F5B,
0x001F5D,
0x002D27,
0x002D2D,
0x00FB3E,
0x00FEFF,
0x0101A0,
0x01056F,
0x010808,
0x01083C,
0x01093F,
0x0110CD,
0x011288,
0x011350,
0x011357,
0x01145B,
0x0118FF,
0x011D3A,
0x01D4A2,
0x01D4BB,
0x01D546,
0x01E2FF,
0x01EE24,
0x01EE27,
0x01EE39,
0x01EE3B,
0x01EE42,
0x01EE47,
0x01EE49,
0x01EE4B,
0x01EE54,
0x01EE57,
0x01EE59,
0x01EE5B,
0x01EE5D,
0x01EE5F,
0x01EE64,
0x01EE7E,
0x0E0001
],
ranges: [
[0x00DC00, 0x00DFFF],
[0x000000, 0x000377],
[0x00037A, 0x00037F],
[0x000384, 0x00038A],
[0x00038E, 0x0003A1],
[0x0003A3, 0x00052F],
[0x000531, 0x000556],
[0x000559, 0x00058A],
[0x00058D, 0x00058F],
[0x000591, 0x0005C7],
[0x0005D0, 0x0005EA],
[0x0005EF, 0x0005F4],
[0x000600, 0x00061C],
[0x00061E, 0x00070D],
[0x00070F, 0x00074A],
[0x00074D, 0x0007B1],
[0x0007C0, 0x0007FA],
[0x0007FD, 0x00082D],
[0x000830, 0x00083E],
[0x000840, 0x00085B],
[0x000860, 0x00086A],
[0x0008A0, 0x0008B4],
[0x0008B6, 0x0008BD],
[0x0008D3, 0x000983],
[0x000985, 0x00098C],
[0x00098F, 0x000990],
[0x000993, 0x0009A8],
[0x0009AA, 0x0009B0],
[0x0009B6, 0x0009B9],
[0x0009BC, 0x0009C4],
[0x0009C7, 0x0009C8],
[0x0009CB, 0x0009CE],
[0x0009DC, 0x0009DD],
[0x0009DF, 0x0009E3],
[0x0009E6, 0x0009FE],
[0x000A01, 0x000A03],
[0x000A05, 0x000A0A],
[0x000A0F, 0x000A10],
[0x000A13, 0x000A28],
[0x000A2A, 0x000A30],
[0x000A32, 0x000A33],
[0x000A35, 0x000A36],
[0x000A38, 0x000A39],
[0x000A3E, 0x000A42],
[0x000A47, 0x000A48],
[0x000A4B, 0x000A4D],
[0x000A59, 0x000A5C],
[0x000A66, 0x000A76],
[0x000A81, 0x000A83],
[0x000A85, 0x000A8D],
[0x000A8F, 0x000A91],
[0x000A93, 0x000AA8],
[0x000AAA, 0x000AB0],
[0x000AB2, 0x000AB3],
[0x000AB5, 0x000AB9],
[0x000ABC, 0x000AC5],
[0x000AC7, 0x000AC9],
[0x000ACB, 0x000ACD],
[0x000AE0, 0x000AE3],
[0x000AE6, 0x000AF1],
[0x000AF9, 0x000AFF],
[0x000B01, 0x000B03],
[0x000B05, 0x000B0C],
[0x000B0F, 0x000B10],
[0x000B13, 0x000B28],
[0x000B2A, 0x000B30],
[0x000B32, 0x000B33],
[0x000B35, 0x000B39],
[0x000B3C, 0x000B44],
[0x000B47, 0x000B48],
[0x000B4B, 0x000B4D],
[0x000B56, 0x000B57],
[0x000B5C, 0x000B5D],
[0x000B5F, 0x000B63],
[0x000B66, 0x000B77],
[0x000B82, 0x000B83],
[0x000B85, 0x000B8A],
[0x000B8E, 0x000B90],
[0x000B92, 0x000B95],
[0x000B99, 0x000B9A],
[0x000B9E, 0x000B9F],
[0x000BA3, 0x000BA4],
[0x000BA8, 0x000BAA],
[0x000BAE, 0x000BB9],
[0x000BBE, 0x000BC2],
[0x000BC6, 0x000BC8],
[0x000BCA, 0x000BCD],
[0x000BE6, 0x000BFA],
[0x000C00, 0x000C0C],
[0x000C0E, 0x000C10],
[0x000C12, 0x000C28],
[0x000C2A, 0x000C39],
[0x000C3D, 0x000C44],
[0x000C46, 0x000C48],
[0x000C4A, 0x000C4D],
[0x000C55, 0x000C56],
[0x000C58, 0x000C5A],
[0x000C60, 0x000C63],
[0x000C66, 0x000C6F],
[0x000C77, 0x000C8C],
[0x000C8E, 0x000C90],
[0x000C92, 0x000CA8],
[0x000CAA, 0x000CB3],
[0x000CB5, 0x000CB9],
[0x000CBC, 0x000CC4],
[0x000CC6, 0x000CC8],
[0x000CCA, 0x000CCD],
[0x000CD5, 0x000CD6],
[0x000CE0, 0x000CE3],
[0x000CE6, 0x000CEF],
[0x000CF1, 0x000CF2],
[0x000D00, 0x000D03],
[0x000D05, 0x000D0C],
[0x000D0E, 0x000D10],
[0x000D12, 0x000D44],
[0x000D46, 0x000D48],
[0x000D4A, 0x000D4F],
[0x000D54, 0x000D63],
[0x000D66, 0x000D7F],
[0x000D82, 0x000D83],
[0x000D85, 0x000D96],
[0x000D9A, 0x000DB1],
[0x000DB3, 0x000DBB],
[0x000DC0, 0x000DC6],
[0x000DCF, 0x000DD4],
[0x000DD8, 0x000DDF],
[0x000DE6, 0x000DEF],
[0x000DF2, 0x000DF4],
[0x000E01, 0x000E3A],
[0x000E3F, 0x000E5B],
[0x000E81, 0x000E82],
[0x000E86, 0x000E8A],
[0x000E8C, 0x000EA3],
[0x000EA7, 0x000EBD],
[0x000EC0, 0x000EC4],
[0x000EC8, 0x000ECD],
[0x000ED0, 0x000ED9],
[0x000EDC, 0x000EDF],
[0x000F00, 0x000F47],
[0x000F49, 0x000F6C],
[0x000F71, 0x000F97],
[0x000F99, 0x000FBC],
[0x000FBE, 0x000FCC],
[0x000FCE, 0x000FDA],
[0x001000, 0x0010C5],
[0x0010D0, 0x001248],
[0x00124A, 0x00124D],
[0x001250, 0x001256],
[0x00125A, 0x00125D],
[0x001260, 0x001288],
[0x00128A, 0x00128D],
[0x001290, 0x0012B0],
[0x0012B2, 0x0012B5],
[0x0012B8, 0x0012BE],
[0x0012C2, 0x0012C5],
[0x0012C8, 0x0012D6],
[0x0012D8, 0x001310],
[0x001312, 0x001315],
[0x001318, 0x00135A],
[0x00135D, 0x00137C],
[0x001380, 0x001399],
[0x0013A0, 0x0013F5],
[0x0013F8, 0x0013FD],
[0x001400, 0x00169C],
[0x0016A0, 0x0016F8],
[0x001700, 0x00170C],
[0x00170E, 0x001714],
[0x001720, 0x001736],
[0x001740, 0x001753],
[0x001760, 0x00176C],
[0x00176E, 0x001770],
[0x001772, 0x001773],
[0x001780, 0x0017DD],
[0x0017E0, 0x0017E9],
[0x0017F0, 0x0017F9],
[0x001800, 0x00180E],
[0x001810, 0x001819],
[0x001820, 0x001878],
[0x001880, 0x0018AA],
[0x0018B0, 0x0018F5],
[0x001900, 0x00191E],
[0x001920, 0x00192B],
[0x001930, 0x00193B],
[0x001944, 0x00196D],
[0x001970, 0x001974],
[0x001980, 0x0019AB],
[0x0019B0, 0x0019C9],
[0x0019D0, 0x0019DA],
[0x0019DE, 0x001A1B],
[0x001A1E, 0x001A5E],
[0x001A60, 0x001A7C],
[0x001A7F, 0x001A89],
[0x001A90, 0x001A99],
[0x001AA0, 0x001AAD],
[0x001AB0, 0x001ABE],
[0x001B00, 0x001B4B],
[0x001B50, 0x001B7C],
[0x001B80, 0x001BF3],
[0x001BFC, 0x001C37],
[0x001C3B, 0x001C49],
[0x001C4D, 0x001C88],
[0x001C90, 0x001CBA],
[0x001CBD, 0x001CC7],
[0x001CD0, 0x001CFA],
[0x001D00, 0x001DF9],
[0x001DFB, 0x001F15],
[0x001F18, 0x001F1D],
[0x001F20, 0x001F45],
[0x001F48, 0x001F4D],
[0x001F50, 0x001F57],
[0x001F5F, 0x001F7D],
[0x001F80, 0x001FB4],
[0x001FB6, 0x001FC4],
[0x001FC6, 0x001FD3],
[0x001FD6, 0x001FDB],
[0x001FDD, 0x001FEF],
[0x001FF2, 0x001FF4],
[0x001FF6, 0x001FFE],
[0x002000, 0x002064],
[0x002066, 0x002071],
[0x002074, 0x00208E],
[0x002090, 0x00209C],
[0x0020A0, 0x0020BF],
[0x0020D0, 0x0020F0],
[0x002100, 0x00218B],
[0x002190, 0x002426],
[0x002440, 0x00244A],
[0x002460, 0x002B73],
[0x002B76, 0x002B95],
[0x002B98, 0x002C2E],
[0x002C30, 0x002C5E],
[0x002C60, 0x002CF3],
[0x002CF9, 0x002D25],
[0x002D30, 0x002D67],
[0x002D6F, 0x002D70],
[0x002D7F, 0x002D96],
[0x002DA0, 0x002DA6],
[0x002DA8, 0x002DAE],
[0x002DB0, 0x002DB6],
[0x002DB8, 0x002DBE],
[0x002DC0, 0x002DC6],
[0x002DC8, 0x002DCE],
[0x002DD0, 0x002DD6],
[0x002DD8, 0x002DDE],
[0x002DE0, 0x002E4F],
[0x002E80, 0x002E99],
[0x002E9B, 0x002EF3],
[0x002F00, 0x002FD5],
[0x002FF0, 0x002FFB],
[0x003000, 0x00303F],
[0x003041, 0x003096],
[0x003099, 0x0030FF],
[0x003105, 0x00312F],
[0x003131, 0x00318E],
[0x003190, 0x0031BA],
[0x0031C0, 0x0031E3],
[0x0031F0, 0x00321E],
[0x003220, 0x004DB5],
[0x004DC0, 0x009FEF],
[0x00A000, 0x00A48C],
[0x00A490, 0x00A4C6],
[0x00A4D0, 0x00A62B],
[0x00A640, 0x00A6F7],
[0x00A700, 0x00A7BF],
[0x00A7C2, 0x00A7C6],
[0x00A7F7, 0x00A82B],
[0x00A830, 0x00A839],
[0x00A840, 0x00A877],
[0x00A880, 0x00A8C5],
[0x00A8CE, 0x00A8D9],
[0x00A8E0, 0x00A953],
[0x00A95F, 0x00A97C],
[0x00A980, 0x00A9CD],
[0x00A9CF, 0x00A9D9],
[0x00A9DE, 0x00A9FE],
[0x00AA00, 0x00AA36],
[0x00AA40, 0x00AA4D],
[0x00AA50, 0x00AA59],
[0x00AA5C, 0x00AAC2],
[0x00AADB, 0x00AAF6],
[0x00AB01, 0x00AB06],
[0x00AB09, 0x00AB0E],
[0x00AB11, 0x00AB16],
[0x00AB20, 0x00AB26],
[0x00AB28, 0x00AB2E],
[0x00AB30, 0x00AB67],
[0x00AB70, 0x00ABED],
[0x00ABF0, 0x00ABF9],
[0x00AC00, 0x00D7A3],
[0x00D7B0, 0x00D7C6],
[0x00D7CB, 0x00D7FB],
[0x00D800, 0x00DBFF],
[0x00E000, 0x00FA6D],
[0x00FA70, 0x00FAD9],
[0x00FB00, 0x00FB06],
[0x00FB13, 0x00FB17],
[0x00FB1D, 0x00FB36],
[0x00FB38, 0x00FB3C],
[0x00FB40, 0x00FB41],
[0x00FB43, 0x00FB44],
[0x00FB46, 0x00FBC1],
[0x00FBD3, 0x00FD3F],
[0x00FD50, 0x00FD8F],
[0x00FD92, 0x00FDC7],
[0x00FDF0, 0x00FDFD],
[0x00FE00, 0x00FE19],
[0x00FE20, 0x00FE52],
[0x00FE54, 0x00FE66],
[0x00FE68, 0x00FE6B],
[0x00FE70, 0x00FE74],
[0x00FE76, 0x00FEFC],
[0x00FF01, 0x00FFBE],
[0x00FFC2, 0x00FFC7],
[0x00FFCA, 0x00FFCF],
[0x00FFD2, 0x00FFD7],
[0x00FFDA, 0x00FFDC],
[0x00FFE0, 0x00FFE6],
[0x00FFE8, 0x00FFEE],
[0x00FFF9, 0x00FFFD],
[0x010000, 0x01000B],
[0x01000D, 0x010026],
[0x010028, 0x01003A],
[0x01003C, 0x01003D],
[0x01003F, 0x01004D],
[0x010050, 0x01005D],
[0x010080, 0x0100FA],
[0x010100, 0x010102],
[0x010107, 0x010133],
[0x010137, 0x01018E],
[0x010190, 0x01019B],
[0x0101D0, 0x0101FD],
[0x010280, 0x01029C],
[0x0102A0, 0x0102D0],
[0x0102E0, 0x0102FB],
[0x010300, 0x010323],
[0x01032D, 0x01034A],
[0x010350, 0x01037A],
[0x010380, 0x01039D],
[0x01039F, 0x0103C3],
[0x0103C8, 0x0103D5],
[0x010400, 0x01049D],
[0x0104A0, 0x0104A9],
[0x0104B0, 0x0104D3],
[0x0104D8, 0x0104FB],
[0x010500, 0x010527],
[0x010530, 0x010563],
[0x010600, 0x010736],
[0x010740, 0x010755],
[0x010760, 0x010767],
[0x010800, 0x010805],
[0x01080A, 0x010835],
[0x010837, 0x010838],
[0x01083F, 0x010855],
[0x010857, 0x01089E],
[0x0108A7, 0x0108AF],
[0x0108E0, 0x0108F2],
[0x0108F4, 0x0108F5],
[0x0108FB, 0x01091B],
[0x01091F, 0x010939],
[0x010980, 0x0109B7],
[0x0109BC, 0x0109CF],
[0x0109D2, 0x010A03],
[0x010A05, 0x010A06],
[0x010A0C, 0x010A13],
[0x010A15, 0x010A17],
[0x010A19, 0x010A35],
[0x010A38, 0x010A3A],
[0x010A3F, 0x010A48],
[0x010A50, 0x010A58],
[0x010A60, 0x010A9F],
[0x010AC0, 0x010AE6],
[0x010AEB, 0x010AF6],
[0x010B00, 0x010B35],
[0x010B39, 0x010B55],
[0x010B58, 0x010B72],
[0x010B78, 0x010B91],
[0x010B99, 0x010B9C],
[0x010BA9, 0x010BAF],
[0x010C00, 0x010C48],
[0x010C80, 0x010CB2],
[0x010CC0, 0x010CF2],
[0x010CFA, 0x010D27],
[0x010D30, 0x010D39],
[0x010E60, 0x010E7E],
[0x010F00, 0x010F27],
[0x010F30, 0x010F59],
[0x010FE0, 0x010FF6],
[0x011000, 0x01104D],
[0x011052, 0x01106F],
[0x01107F, 0x0110C1],
[0x0110D0, 0x0110E8],
[0x0110F0, 0x0110F9],
[0x011100, 0x011134],
[0x011136, 0x011146],
[0x011150, 0x011176],
[0x011180, 0x0111CD],
[0x0111D0, 0x0111DF],
[0x0111E1, 0x0111F4],
[0x011200, 0x011211],
[0x011213, 0x01123E],
[0x011280, 0x011286],
[0x01128A, 0x01128D],
[0x01128F, 0x01129D],
[0x01129F, 0x0112A9],
[0x0112B0, 0x0112EA],
[0x0112F0, 0x0112F9],
[0x011300, 0x011303],
[0x011305, 0x01130C],
[0x01130F, 0x011310],
[0x011313, 0x011328],
[0x01132A, 0x011330],
[0x011332, 0x011333],
[0x011335, 0x011339],
[0x01133B, 0x011344],
[0x011347, 0x011348],
[0x01134B, 0x01134D],
[0x01135D, 0x011363],
[0x011366, 0x01136C],
[0x011370, 0x011374],
[0x011400, 0x011459],
[0x01145D, 0x01145F],
[0x011480, 0x0114C7],
[0x0114D0, 0x0114D9],
[0x011580, 0x0115B5],
[0x0115B8, 0x0115DD],
[0x011600, 0x011644],
[0x011650, 0x011659],
[0x011660, 0x01166C],
[0x011680, 0x0116B8],
[0x0116C0, 0x0116C9],
[0x011700, 0x01171A],
[0x01171D, 0x01172B],
[0x011730, 0x01173F],
[0x011800, 0x01183B],
[0x0118A0, 0x0118F2],
[0x0119A0, 0x0119A7],
[0x0119AA, 0x0119D7],
[0x0119DA, 0x0119E4],
[0x011A00, 0x011A47],
[0x011A50, 0x011AA2],
[0x011AC0, 0x011AF8],
[0x011C00, 0x011C08],
[0x011C0A, 0x011C36],
[0x011C38, 0x011C45],
[0x011C50, 0x011C6C],
[0x011C70, 0x011C8F],
[0x011C92, 0x011CA7],
[0x011CA9, 0x011CB6],
[0x011D00, 0x011D06],
[0x011D08, 0x011D09],
[0x011D0B, 0x011D36],
[0x011D3C, 0x011D3D],
[0x011D3F, 0x011D47],
[0x011D50, 0x011D59],
[0x011D60, 0x011D65],
[0x011D67, 0x011D68],
[0x011D6A, 0x011D8E],
[0x011D90, 0x011D91],
[0x011D93, 0x011D98],
[0x011DA0, 0x011DA9],
[0x011EE0, 0x011EF8],
[0x011FC0, 0x011FF1],
[0x011FFF, 0x012399],
[0x012400, 0x01246E],
[0x012470, 0x012474],
[0x012480, 0x012543],
[0x013000, 0x01342E],
[0x013430, 0x013438],
[0x014400, 0x014646],
[0x016800, 0x016A38],
[0x016A40, 0x016A5E],
[0x016A60, 0x016A69],
[0x016A6E, 0x016A6F],
[0x016AD0, 0x016AED],
[0x016AF0, 0x016AF5],
[0x016B00, 0x016B45],
[0x016B50, 0x016B59],
[0x016B5B, 0x016B61],
[0x016B63, 0x016B77],
[0x016B7D, 0x016B8F],
[0x016E40, 0x016E9A],
[0x016F00, 0x016F4A],
[0x016F4F, 0x016F87],
[0x016F8F, 0x016F9F],
[0x016FE0, 0x016FE3],
[0x017000, 0x0187F7],
[0x018800, 0x018AF2],
[0x01B000, 0x01B11E],
[0x01B150, 0x01B152],
[0x01B164, 0x01B167],
[0x01B170, 0x01B2FB],
[0x01BC00, 0x01BC6A],
[0x01BC70, 0x01BC7C],
[0x01BC80, 0x01BC88],
[0x01BC90, 0x01BC99],
[0x01BC9C, 0x01BCA3],
[0x01D000, 0x01D0F5],
[0x01D100, 0x01D126],
[0x01D129, 0x01D1E8],
[0x01D200, 0x01D245],
[0x01D2E0, 0x01D2F3],
[0x01D300, 0x01D356],
[0x01D360, 0x01D378],
[0x01D400, 0x01D454],
[0x01D456, 0x01D49C],
[0x01D49E, 0x01D49F],
[0x01D4A5, 0x01D4A6],
[0x01D4A9, 0x01D4AC],
[0x01D4AE, 0x01D4B9],
[0x01D4BD, 0x01D4C3],
[0x01D4C5, 0x01D505],
[0x01D507, 0x01D50A],
[0x01D50D, 0x01D514],
[0x01D516, 0x01D51C],
[0x01D51E, 0x01D539],
[0x01D53B, 0x01D53E],
[0x01D540, 0x01D544],
[0x01D54A, 0x01D550],
[0x01D552, 0x01D6A5],
[0x01D6A8, 0x01D7CB],
[0x01D7CE, 0x01DA8B],
[0x01DA9B, 0x01DA9F],
[0x01DAA1, 0x01DAAF],
[0x01E000, 0x01E006],
[0x01E008, 0x01E018],
[0x01E01B, 0x01E021],
[0x01E023, 0x01E024],
[0x01E026, 0x01E02A],
[0x01E100, 0x01E12C],
[0x01E130, 0x01E13D],
[0x01E140, 0x01E149],
[0x01E14E, 0x01E14F],
[0x01E2C0, 0x01E2F9],
[0x01E800, 0x01E8C4],
[0x01E8C7, 0x01E8D6],
[0x01E900, 0x01E94B],
[0x01E950, 0x01E959],
[0x01E95E, 0x01E95F],
[0x01EC71, 0x01ECB4],
[0x01ED01, 0x01ED3D],
[0x01EE00, 0x01EE03],
[0x01EE05, 0x01EE1F],
[0x01EE21, 0x01EE22],
[0x01EE29, 0x01EE32],
[0x01EE34, 0x01EE37],
[0x01EE4D, 0x01EE4F],
[0x01EE51, 0x01EE52],
[0x01EE61, 0x01EE62],
[0x01EE67, 0x01EE6A],
[0x01EE6C, 0x01EE72],
[0x01EE74, 0x01EE77],
[0x01EE79, 0x01EE7C],
[0x01EE80, 0x01EE89],
[0x01EE8B, 0x01EE9B],
[0x01EEA1, 0x01EEA3],
[0x01EEA5, 0x01EEA9],
[0x01EEAB, 0x01EEBB],
[0x01EEF0, 0x01EEF1],
[0x01F000, 0x01F02B],
[0x01F030, 0x01F093],
[0x01F0A0, 0x01F0AE],
[0x01F0B1, 0x01F0BF],
[0x01F0C1, 0x01F0CF],
[0x01F0D1, 0x01F0F5],
[0x01F100, 0x01F10C],
[0x01F110, 0x01F16C],
[0x01F170, 0x01F1AC],
[0x01F1E6, 0x01F202],
[0x01F210, 0x01F23B],
[0x01F240, 0x01F248],
[0x01F250, 0x01F251],
[0x01F260, 0x01F265],
[0x01F300, 0x01F6D5],
[0x01F6E0, 0x01F6EC],
[0x01F6F0, 0x01F6FA],
[0x01F700, 0x01F773],
[0x01F780, 0x01F7D8],
[0x01F7E0, 0x01F7EB],
[0x01F800, 0x01F80B],
[0x01F810, 0x01F847],
[0x01F850, 0x01F859],
[0x01F860, 0x01F887],
[0x01F890, 0x01F8AD],
[0x01F900, 0x01F90B],
[0x01F90D, 0x01F971],
[0x01F973, 0x01F976],
[0x01F97A, 0x01F9A2],
[0x01F9A5, 0x01F9AA],
[0x01F9AE, 0x01F9CA],
[0x01F9CD, 0x01FA53],
[0x01FA60, 0x01FA6D],
[0x01FA70, 0x01FA73],
[0x01FA78, 0x01FA7A],
[0x01FA80, 0x01FA82],
[0x01FA90, 0x01FA95],
[0x020000, 0x02A6D6],
[0x02A700, 0x02B734],
[0x02B740, 0x02B81D],
[0x02B820, 0x02CEA1],
[0x02CEB0, 0x02EBE0],
[0x02F800, 0x02FA1D],
[0x0E0020, 0x0E007F],
[0x0E0100, 0x0E01EF],
[0x0F0000, 0x0FFFFD],
[0x100000, 0x10FFFD]
]
});
testPropertyEscapes(
/^\P{General_Category=Unassigned}+$/u,
nonMatchSymbols,
"\\P{General_Category=Unassigned}"
);
testPropertyEscapes(
/^\P{General_Category=Cn}+$/u,
nonMatchSymbols,
"\\P{General_Category=Cn}"
);
testPropertyEscapes(
/^\P{gc=Unassigned}+$/u,
nonMatchSymbols,
"\\P{gc=Unassigned}"
);
testPropertyEscapes(
/^\P{gc=Cn}+$/u,
nonMatchSymbols,
"\\P{gc=Cn}"
);
testPropertyEscapes(
/^\P{Unassigned}+$/u,
nonMatchSymbols,
"\\P{Unassigned}"
);
testPropertyEscapes(
/^\P{Cn}+$/u,
nonMatchSymbols,
"\\P{Cn}"
);
|
// Generated by CoffeeScript 2.4.1
(function() {
// Basic omniscient debugger
define(['./base', 'bluebird'], function(Base, Bluebird) {
var ODB, Promise, clearEntries, currentOdb, deleteEntries, dumpTraceValues, flushTraceLog, getCallGraphEntry, getCallGraphInfo, getContextDef, getEntry, getLambdaDef, getLatestEntry, handleTraceValues, messageId, requestPromises, setVerbose, trackDebugging, trackOdb, useDebugging, useOdb, worker;
({useDebugging, trackDebugging, flushTraceLog} = Base);
({Promise} = Bluebird);
messageId = 1;
requestPromises = {};
currentOdb = null;
worker = new Worker('build/odbWorker.js');
worker.onmessage = function(e) {
var err, p;
console.log(`Received response: ${JSON.stringify(e)}`);
if (e.data.msgId && (p = requestPromises[e.data.msgId])) {
requestPromises[e.data.msgId] = null;
if (e.data.error) {
err = new Error();
err.message = e.data.error.message;
err.stack = e.data.error.stack;
return p.reject(err);
} else {
return p.resolve(e.data.return);
}
}
};
useOdb = function(...types) {
var i, len, results, type;
results = [];
for (i = 0, len = types.length; i < len; i++) {
type = types[i];
results.push(useDebugging(100, handleTraceValues, type));
}
return results;
};
trackOdb = function() {
console.log('ODB tracking');
return trackDebugging(100, handleTraceValues);
};
handleTraceValues = function(values) {
return currentOdb.handleTraceValues(values);
};
dumpTraceValues = function() {
return currentOdb.dumpTraceValues();
};
setVerbose = function(state) {
return currentOdb.setVerbose(state);
};
getLatestEntry = function() {
return currentOdb.getLatestEntry();
};
getEntry = function(type, key) {
return currentOdb.getEntry(type, key);
};
getCallGraphInfo = function() {
return currentOdb.getCallGraphInfo();
};
getCallGraphEntry = function(n) {
return currentOdb.getCallGraphEntry(n);
};
getContextDef = function(contextId, defId) {
return currentOdb.getContextDef(contextId, defId);
};
getLambdaDef = function(name) {
return currentOdb.getLambdaDef(name);
};
clearEntries = function() {
return currentOdb.clearEntries();
};
deleteEntries = function() {
return currentOdb.deleteEntries();
};
ODB = class ODB {
constructor(logName) {
this.logName = logName;
}
postRequest(msg) {
var msgId, p;
flushTraceLog();
msg.logName = this.logName;
msgId = msg.msgId = messageId++;
p = new Promise(function(resolve, reject) {
return requestPromises[msgId] = {resolve, reject};
});
worker.postMessage(msg);
return p;
}
postMessage(req, suppressFlush) {
if (!suppressFlush) {
flushTraceLog();
}
req.logName = this.logName;
return worker.postMessage(req);
}
handleTraceValues(values) {
return this.postMessage({
msg: 'queueValues',
values: values
}, true);
}
dumpTraceValues() {
return this.postMessage({
msg: 'dumpValues'
});
}
getLatestEntry() {
return this.postRequest({
msg: 'latestEntry'
});
}
getEntry(type, key) {
return this.postRequest({
type,
key,
msg: 'getEntry'
});
}
getContextDef(contextId, defId) {
return this.postRequest({
id,
msg: 'getContextDef',
context: contextId
});
}
getLambdaDef(name) {
return this.postRequest({
msg: 'getContextDef',
lambdaName: name
});
}
getCallGraphInfo() {
return this.postRequest({
msg: 'getCallGraphInfo'
});
}
getCallGraphEntry(number) {
return this.postRequest({
number,
msg: 'getCallGraphEntry'
});
}
clearEntries() {
return this.postMessage({
msg: 'clearEntries'
});
}
deleteEntries() {
return this.postMessage({
msg: 'deleteEntries'
});
}
setVerbose(state) {
return this.postMessage({
msg: 'setVerbose',
verbose: state
});
}
};
currentOdb = new ODB('testLog');
window.useOdb = useOdb;
return window.ODB = Leisure.ODB = {
dump: dumpTraceValues,
useOdb,
trackOdb,
getEntry,
dumpTraceValues,
getLatestEntry,
getEntry,
getContextDef,
getLambdaDef,
clearEntries,
deleteEntries,
setVerbose,
getCallGraphInfo,
getCallGraphEntry
};
});
}).call(this);
//# sourceMappingURL=odb.js.map
|
import expect from 'expect';
import React from 'react';
import { DocumentRole } from '../../src/components/document/DocumentRole';
import { shallow } from 'enzyme';
describe('role documents component', () => {
const props = {
actions: {
loadDoc: () => Promise.resolve(),
loadRoleDocuments: () => Promise.resolve(),
loadRoleDocumentsPage: () => Promise.resolve(),
},
documents: {},
};
it('renders doc div', () => {
const wrapper = shallow(<DocumentRole {...props} />);
expect(wrapper.find('div').length).toBe(1);
}),
it('renders DocumentHeader component', () => {
const wrapper = shallow(<DocumentRole {...props} />);
expect(wrapper.find('DocumentHeader').length).toBe(1);
});
});
|
'use strict'
var composestats = require('../')
// var composestats = require('connect-composer-stats')
var compose = require('connect-composer')
// get new stats object
var statsGlb = composestats()
var statsMw = composestats()
var statsFn = composestats()
// to globally inject stats use:
compose.options = { stats: statsGlb.from }
// a middleware function
var mw = function (req, res, next) { next() }
var mwF = function (req, res, next) { next() }
var mwG = function (req, res, next) { next() }
// wrap arround
var mwW = statsFn.from(mwF)
var mws = compose(mw, mw, mw, mw)
// inject stats only into composed middlewares
mws.options = { stats: statsMw.from }
var mwsG = compose(mwG, mwG, mwG, mw, mw)
var req = {}; var res = {}
mws(req, res, function () {
console.log('local', statsMw.data)
mwW(req, res, function () {
console.log('fn', statsFn.data)
console.log('global', statsGlb.data) // is empty
mwsG(req, res, function () {
console.log('global', statsGlb.data)
})
})
})
|
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
* File Name : unary_expression.js
* Created at : 2017-08-18
* Updated at : 2017-08-20
* Author : jeefo
* Purpose :
* Description :
_._._._._._._._._._._._._._._._._._._._._.*/
// ignore:start
/* globals */
/* exported */
// ignore:end
var argument_handler = function (_pp, token) {
if (token.argument) {
var pp = _pp.$new(token.argument),
action = pp.actions.invoke(pp, pp.parse(pp.code)[0].expression),
has_action = pp.action(action);
if (has_action) {
return _pp.replace(token.argument, pp.code);
}
}
};
var negation_expression = function (_pp, code) {
var pp = _pp.$new(),
stmt = pp.parse(code)[0],
token = stmt.expression;
switch (token.type) {
case "EqualityExpression" :
switch (token.operator) {
case "==" :
case "===" :
token.operator = "!==";
break;
case "!=" :
case "!==" :
token.operator = "===";
break;
}
return `${ pp.compiler.compile(token.left) } ${ token.operator } ${ pp.compiler.compile(token.right) }`;
}
};
module.exports = {
name : "UnaryExpression",
handler : function (_pp, token) {
var action = argument_handler(_pp, token);
if (action) {
if (token.operator === '!') {
return _pp.replace(token, negation_expression(_pp, action.value));
}
return action;
}
}
};
|
if ("serviceWorker" in navigator) {
window.addEventListener("load", function () {
navigator.serviceWorker.register("service-worker.js").then(
function (registration) {
console.log("ServiceWorker registration successful with scope: ", registration.scope);
}, function (err) {
console.log("ServiceWorker registration failed: ", err);
}
).catch(function (e) {
console.log("Exception: ", e);
});
});
} else {
console.log("ServiceWorker is not supported");
}
|
/**
* TARA-Stat - Mikroteenus TARA statistika kogumiseks ja
* vaatamiseks
*
* Veebirakenduse kogu kood on siinses failis.
*
* Node.js callback-de tõttu
* on peamine töötsükkel asetatud MongoDB-ga ühenduse võtmise
* callback-i sisse. Kõigepealt luuakse ühendus MongoDB-ga. Seejärel
* käivitatakse Express veebirakendus (mis hakkab väljastama
* kasutusstatistikat) ja TLS server (mis hakkab vastu võtma
* logikirjeid).
*
* Dokumentatsioon: https://e-gov.github.io/TARA-Stat/Dokumentatsioon
*
* @author Priit Parmakson, 2018
*/
'use strict';
// -------- 1 Teekide laadimine --------
const tls = require('tls'); // TCP ühenduste teek (TLS-ga)
const ReadWriteLock = require('rwlock'); // Lukuteek
const https = require('https'); // HTTPS (Node.js)
const fs = require('fs'); // Sertide laadimiseks
const path = require('path');
const util = require('util'); // Logimiseks
const express = require('express'); // Veebiraamistik Express
// HTTP päringu parsimisvahend. NB! Ainult application/JSON
const bodyParser = require('body-parser');
// Node.JS utiliidid
const f = require('util').format;
// MongoDB
const MongoClient = require('mongodb').MongoClient;
// Alusta lukuhaldur
var lock = new ReadWriteLock();
// -------- 2 Konf-i laadimine --------
var config = require('/opt/tara-stat/config/config.js');
// -------- 3 Globaalsed muutujad --------
// MongoDB klient. Operatsioon "connection" teeb MongoClient uue
// instantsi, mis omistatakse allolevale muutujale.
var globClient;
// Ühendus MongoDB andmebaasiga "logibaas". Deklareeritud siin,
// et oleks elutukse väljastajas kättesaadav.
var db;
// Andmebaasiga ühendumise URL
// NB! Konto andmebaas - users - on URL-i hardcoded.
const authMechanism = 'DEFAULT';
const MONGODB_URL =
f('mongodb://%s:%s@localhost:27017/users?authMechanism=%s',
config.MONGOUSER,
config.MONGOUSERPWD,
authMechanism);
console.log(MONGODB_URL);
// -------- 4 Väiksemad ettevalmistused --------
// Rakenduse enda logimise sisseseadmine
// Märkus. Silumisel arvestada, et teise või sudo-õigusteta
// kasutaja alt käivitamisel logifaili jätkamine ebaõnnestub
// õiguste puudumise tõttu
var logFile = fs.createWriteStream(config.LOGIFAIL, { flags: 'a' });
// Või 'w' faili uuesti alustamiseks
var logStdout = process.stdout;
console.log = function () {
let utc = new Date().toJSON();
logFile.write('TARA-Stat: ' + utc + ' ' +
util.format.apply(null, arguments) + '\n');
logStdout.write('TARA-Stat: ' + utc + ' ' +
util.format.apply(null, arguments) + '\n');
}
console.error = console.log;
console.log('Käivitun');
// Expressi ettevalmistamine
const app = express();
// Sea juurkaust, millest serveeritakse sirvikusse ressursse
app.use(express.static(__dirname + '/public'));
// Sea rakenduse vaadete (kasutajale esitatavate HTML-mallide) kaust
app.set('views', __dirname + '/views');
// Määra kasutatav mallimootor
app.set('view engine', 'ejs');
// Vajalik seadistus MIME-tüübi application/json parsimiseks
app.use(bodyParser.json());
// -------- 5 Express marsruuteri töötlusreeglid --------
// Kuva esileht
app.get('/', function (req, res) {
res.render('pages/index');
});
// Väljasta edukate autentimiste arv perioodil
app.get('/standard', function (req, res) {
const p = req.query.p; // Periood
var r = (p) ? new RegExp(p) : new RegExp('.*'); // regex
looYhendus()
.then(() => {
if (db !== null) {
db.collection('autentimised').countDocuments(
{
time: { $regex: r },
operation: "SUCCESSFUL_AUTH"
}
)
.then((data) => {
// console.log('/standard: väljastan tulemuse: ' + data.toString());
res.send({ err: null, kirjeid: data });
})
.catch((err) => {
console.log('/standard: ERR-02: Logibaasist lugemine ebaõnnestus: ',
err);
res.send({ err: "ERR-02: Logibaasist lugemine ebaõnnestus" });
});
}
else {
res.send({ err: "ERR-01: Logibaasiga ei saa ühendust" });
}
})
.catch((err) => {
console.log('/standard: ERR-01: Logibaasiga ei saa ühendust ',
err);
res.send({ err: "ERR-01: Logibaasiga ei saa ühendust" });
});
});
// Väljasta kirjete arv
app.get('/kirjeid', (req, res) => {
const p = req.query.p; // Periood
var r = (p) ? new RegExp(p) : new RegExp('.*'); // regex
looYhendus()
.then(() => {
if (db !== null) {
db.collection('autentimised').countDocuments(
{
time: { $regex: r },
// operation: "SUCCESSFUL_AUTH"
})
.then(
(c) => {
// console.log('/kirjeid: Kirjeid kokku: ', c);
res.send({ err: null, kirjeid: c });
})
.catch((err) => {
console.log('/kirjeid: ERR-02: Viga logibaasist lugemisel');
res.send({ err: "ERR-02: Viga logibaasist lugemisel" });
});
}
else {
res.send({ err: "ERR-01: Logibaasiga ei saa ühendust" });
}
})
.catch((err) => {
console.log('/kirjeid: ERR-01: Logibaasiga ei saa ühendust ',
err);
res.send({ err: "ERR-01: Logibaasiga ei saa ühendust" });
});
});
// Väljasta vanima kirje kuupäev
app.get('/alates', (req, res) => {
looYhendus()
.then(() => {
if (db !== null) {
db.collection('autentimised')
.find()
.sort({ time: 1 })
.limit(1)
.toArray()
.then(
(c) => {
const d = c[0].time.substr(0, 10);
// console.log('/alates: Vanim logikirje: ', d);
res.send({ err: null, alates: d });
})
.catch((err) => {
console.log('/alates: ERR-02: Viga logibaasist lugemisel');
res.send({ err: "ERR-02: Viga logibaasist lugemisel" });
});
}
else {
res.send({ err: "ERR-01: Logibaasiga ei saa ühendust" });
}
})
.catch((err) => {
console.log('/alates: ERR-01: Logibaasiga ei saa ühendust ',
err);
res.send({ err: "ERR-01: Logibaasiga ei saa ühendust" });
});
});
// Kustuta kirjed, vastavalt päringumustrile
app.delete('/kustuta', (req, res) => {
// console.log('Alustan kustutamist');
/* Võta päringu query-osast sirvikust saadetud perioodimuster */
const p = req.query.p; // kui parameeter päringus puudub, siis undefined
var r = (p) ? new RegExp(p) : new RegExp('.*'); // regex
looYhendus()
.then(() => {
if (db !== null) {
db.collection('autentimised')
.deleteMany(
{
time: { $regex: r }
})
.then((opTulemus) => {
var k = opTulemus.deletedCount;
// console.log('Kustutasin ' + k + ' kirjet');
res.send({ err: null, kustutati: k });
})
.catch((err) => {
console.log('/kustuta: ERR-06: Kustutamine ebaõnnestus');
res.send({ err: "ERR-06: Kustutamine ebaõnnestus" });
});
}
else {
res.send({ err: "ERR-01: Logibaasiga ei saa ühendust" });
}
})
.catch((err) => {
console.log('/kirjeid: ERR-01: Logibaasiga ei saa ühendust ',
err);
res.send({ err: "ERR-01: Logibaasiga ei saa ühendust" });
});
});
// Väljasta statistika (AJAX päring)
app.get('/stat', (req, res) => {
/**
* Leia autentimiste arv klienditi
* @param r - aja filtri regex
* @param db - andmebaasiühendus
* @param callback - funktsioon, millele edastatakse MongoDB
* aggregation pipeline läbimise tulemusel saadud kirjed
*/
/* Võta päringu query-osast sirvikust saadetud perioodimuster */
const p = req.query.p; // kui parameeter päringus puudub, siis undefined
var r = (p) ? new RegExp(p) : new RegExp('.*'); // regex
looYhendus()
.then(() => {
if (db !== null) {
const collection = db.collection(config.COLLECTION);
collection
.aggregate([
{
$match: {
time: { $regex: r }
}
},
{
$group: {
_id: {
"clientId": "$clientId",
"method": "$method",
"operation": "$operation",
"bank": "$bank"
},
kirjeteArv: { $sum: 1 }
}
},
{
$sort: {
_id: 1
}
}
])
.toArray()
.then((kirjed) => {
// console.log('/stat: Päring baasi täidetud. Leitud kirjeid: ' +
// kirjed.length);
res.send(
{ err: null, kirjed: kirjed });
})
.catch((err) => {
console.log('ERR-02: Viga andmete lugemisel logibaasist');
res.send({ err: 'ERR-02: Viga andmete lugemisel logibaasist' });
});
}
else {
console.log("/stat: ERR-01: Logibaasiga ei saa ühendust");
res.send({ err: "ERR-01: Logibaasiga ei saa ühendust" });
}
})
.catch((err) => {
console.log('/stat: ERR-01: Logibaasiga ei saa ühendust ',
err);
res.send({ err: "ERR-01: Logibaasiga ei saa ühendust" });
});
});
// Vasta elusolekupäringule
app.get('/status', function (req, res) {
// Tee proovisalvestus MongoDB andmebaasi
var lisamiseTulemus;
looYhendus()
.then(() => {
if (db !== null) {
lisamiseTulemus = db.collection(config.HEARTBEATHELPERTABLE)
.insert({
kirjeldus: 'elutukse'
});
if (lisamiseTulemus.writeError) {
console.log("ERR-05: Kirjutamine logibaasi ebaõnnestus");
res.status(500).send('ERR-05: Kirjutamine logibaasi ebaõnnestus')
}
res.status(200).send('OK');
}
else {
console.log("/status: ERR-01: Logibaasiga ei saa ühendust");
res.status(500).send({ err: "ERR-01: Logibaasiga ei saa ühendust" });
}
})
.catch((err) => {
console.log('/status: ERR-01: Logibaasiga ei saa ühendust ',
err);
res.send({ err: "ERR-01: Logibaasiga ei saa ühendust" });
});
});
// -------- 6 Mitmesugused töötlusfunktsioonid --------
/** Kontrollib, kas baasiühendus on olemas ja toimib
* (globaalne muutuja globClient). Kui ei ole, siis üritab
* luua ühenduse. Ühenduse loomisel seatakse ka globaalne
* muutuja db osutama andmebaasile "logibaas".
* looYhendus() on async funktsioon s.t tagastab lubaduse. Lubaduse
* töötlemiseks kasuta .then(() => {}) konstruktsiooni.
*/
async function looYhendus() {
try {
if (globClient && globClient.isConnected()) {
console.log('Ühendus olemas');
return;
}
var klient = await MongoClient.connect(MONGODB_URL,
{ useNewUrlParser: true });
console.log('Ühendus loodud');
globClient = klient;
db = klient.db('logibaas');
}
catch (err) {
console.log('Ühenduse loomine ebaõnnestus', err);
db = null;
globClient = null;
};
}
/**
* Logikirje salvestamine logibaasi (MongoDB)
* @param logikirje {String} saadetud logikirje, JSON-struktuur
*/
function salvestaLogikirje(logikirje) {
// Parsi JSON objektiks
var kirjeObjektina;
try {
kirjeObjektina = JSON.parse(logikirje);
} catch (e) {
console.log('Ei suuda logikirje JSON-it parsida');
return;
}
// Kontrolli nõutavate elementide olemasolu
if (
!kirjeObjektina.time ||
!kirjeObjektina.clientId ||
!kirjeObjektina.method ||
!kirjeObjektina.operation
) {
console.log('ERR-03: Valesti moodustatud logikirje');
}
// Koosta salvestatav kirje
var salvestatavKirje = {
time: kirjeObjektina.time,
clientId: kirjeObjektina.clientId,
method: kirjeObjektina.method,
operation: kirjeObjektina.operation
};
if (kirjeObjektina.error) {
salvestatavKirje.error = kirjeObjektina.error;
}
if (kirjeObjektina.method == 'banklink') {
salvestatavKirje.bank = kirjeObjektina.bank;
}
// console.log('Salvestatav kirje: ' +
// JSON.stringify(salvestatavKirje, null, 2));
// WriteResult objekt
var lisamiseTulemus;
looYhendus();
lisamiseTulemus = db
.collection(config.COLLECTION)
.insertOne(salvestatavKirje);
if (lisamiseTulemus.writeError) {
console.log("ERR-05: Kirjutamine logibaasi ebaõnnestus");
}
else {
// console.log(' Kirje lisatud logibaasi');
}
}
/**
* Eraldab Syslog-kirjest JSON-struktuuri -
* logikirje - ja suunab selle logibaasi salvestamisele
* Eeldab täpset vormingut.
* @param syslogKirje {String} saadetud Syslog-kirje
*/
function tootleSyslogKirje(syslogKirje) {
let osad = syslogKirje.split('{');
if (osad.length > 1) {
let logikirje = '{' + osad[1];
console.log(' ' + logikirje);
salvestaLogikirje(logikirje);
}
else {
console.log('Ei suuda Syslog kirjest JSON-t eraldada');
}
}
/** -------- 7 Defineeri TLS server --------
* Node.js 'tls' mooduliga
*/
// Vii usaldusankrute loetelu sobivale kujule
var caList = [];
for (let anchor of config.TLS_S_CA) {
caList.push(
fs.readFileSync(
path.join(
__dirname,
'..',
'config',
'keys',
anchor),
'utf8'
)
)
console.log('Paigaldatud usaldusankur: ' + anchor);
}
// Valmista TLS Serveri seaded
var TLS_S_options = {
key: fs.readFileSync(
path.join(
__dirname, '..', 'config', 'keys',
config.TLS_S_KEY), 'utf8'
),
cert: fs.readFileSync(
path.join(
__dirname, '..', 'config', 'keys',
config.TLS_S_CERT), 'utf8'
),
ca: caList,
requestCert: true,
rejectUnauthorized: true
};
// Defineeri TLS server
const tcpTlsServer = tls.createServer(
TLS_S_options,
(socket) => {
// console.log('TLS Server: ühendusevõtt aadressilt ' + socket.remoteAddress + ':' + socket.remotePort);
let kliendisert = socket.getPeerCertificate();
// console.log('TLS Server: klient esitas serdi:');
// console.log(JSON.stringify(
// kliendisert,
// ['subject', 'issuer', 'C', 'O', 'CN', 'valid_from', 'valid_to'],
// ' '));
// Kas kliendi autoriseerimine õnnestus?
if (socket.authorized) {
// console.log("TLS Server: autoriseerisin ühenduse.");
}
else {
console.log("TLS Server: ei autoriseerinud ühendust " +
socket.authorizationError)
}
// Defineeri ühenduses toimuvatele sündmustele käsitlejad
/* Andmepuhver.
TCP on madalama taseme protokoll, mis tähendab, et logikirje võib tulla mitmes tükis. Ja ka vastupidi, ühes tükis võib tulla mitu logikirjet. TARA-Stat-is tehakse tüki saamisel lõim. Lõimel kulub tüki töötlemiseks natuke aega. Järgmine tükk võib aga juba sisse tulla, sellele tehakse uus lõim, mis alustab omakorda töötlust. Vaja on tagada, et esimene lõim lõpetab enne töö, kui järgmine alustab. S.t vaja on mutex-it (lukustamist). Javas on mutex-võimalus sisse ehitatud. Node.JS-s aga mitte.
Sündmuse 'data' käsitlejad võivad üksteisele sisse sõita.
Probleemi ei teki, kui iga kirje tuleb ühes tükis (aga
tükis võib olla mitu kirjet).
Lukustamiseks on siin kasutatud teeki rwlock.
*/
var buffered = '';
/**
* Analüüsib andmepuhvrit buffered, eraldab ja suunab
* töötlusele (tootleSyslogKirje) kõik reavahetusega lõppevad osad.
*/
function eraldaKirjedAndmepuhvrist() {
var received = buffered.split('\n');
while (received.length > 1) {
// Syslog kirje eraldatud
let syslogKirje = received[0];
buffered = received.slice(1).join('\n');
received = buffered.split('\n');
tootleSyslogKirje(syslogKirje);
}
}
// Andmete saabumise käsitleja
socket.on('data', function (data) {
// console.log('Saadud: ' + data.length + ' baiti');
// Võta andmepuhvrisse kirjutamise lukk
lock.writeLock(function (release) {
// Lisa saabunud andmed puhvrisse
buffered += data;
// Kui puhveri sisu saab nii pikaks, et see viitab
// ebakorrektsele sisendile, võimalikule ründele -
// reavahetuste puudumisele - siis ignoreeri ja tühjenda
// puhver
if (buffered.length > 10000) {
console.log('Puhvri täitumine (> 1000 märki).' +
' Viitab reavahetuste puudumisele. Ignoreerin saadetud andmeid.');
buffered = '';
}
else {
// Eemalda puhvrist täiskirjed
eraldaKirjedAndmepuhvrist();
}
// Vabasta lukk
release();
});
});
// Ühenduse sulgemise käsitleja
socket.on('close',
() => {
// console.log('TARA-Stat: ühendus suletud');
});
// Ühenduse vea käsitleja
socket.on('error',
(errorMessage) => {
console.log("Viga logikirje vastuvõtmisel (TCP");
console.log(errorMessage);
});
// console.log('Ühendusevõtt aadressilt ' + socket.remoteAddress + ':' + socket.remotePort);
socket.write(`TARA-Stat kuuldel\r\n`);
});
// -------- 8 Defineeri HTTPS server --------
// Valmista ette HTTPS serveri suvandid
var HTTPS_S_options = {
ca: fs.readFileSync(
path.join(__dirname, '..', 'config', 'keys',
config.CA_CERT), 'utf8'),
key: fs.readFileSync(
path.join(__dirname, '..', 'config', 'keys',
config.HTTPS_KEY), 'utf8'),
cert: fs.readFileSync(
path.join(__dirname, '..', 'config', 'keys',
config.HTTPS_CERT), 'utf8'),
requestCert: false,
rejectUnauthorized: false
};
var httpsServer = https.createServer(HTTPS_S_options, app);
// -------- 9 Käivita TLS ning HTTPS serverid --------
// Käivita TLS server
tcpTlsServer.listen(config.TLS_S_PORT, () => {
console.log('TLS server kuuldel pordil: ' + config.TLS_S_PORT);
});
// Käivita HTTPS server
httpsServer.listen(config.HTTPS_S_PORT, () => {
console.log('HTTPS server kuuldel pordil: ' + httpsServer.address().port);
});
// Proovi ühenduda logibaasiga
looYhendus();
|
import React, { useEffect, useState } from 'react';
import TodoForm from './TodoForm';
import TodoList from './TodoList';
import { getAllTodos } from '../services/todo.service';
const Todo = () => {
const [todos, setTodos] = useState([]);
const [isLoading, setIsLoading] = useState(false);
useEffect(() => {
const fetchData = async () => {
setIsLoading(true);
try {
const { data } = await getAllTodos();
setTodos(data);
} catch (error) {
// console.log(error);
} finally {
setIsLoading(false);
}
};
fetchData();
return () => {};
}, []);
const handleAddTodo = (todo) => {
const newTodos = [...todos, todo];
setTodos(newTodos);
};
const handleCompleteTodo = (todo) => {
const newTodos = todos.map((t) =>
t._id === todo._id ? { ...t, completed: !t.completed } : t
);
setTodos(newTodos);
};
const handleRemoveTodo = (todo) => {
const newTodos = todos.filter((t) => t._id !== todo._id);
setTodos(newTodos);
};
const handleUpdateTodo = (todo) => {
const newTodos = todos.map((t) =>
t._id === todo._id ? { ...t, name: todo.name } : t
);
setTodos(newTodos);
};
return (
<div className="todo-container">
<TodoForm onAddTodo={handleAddTodo} />
<TodoList
todos={todos}
isLoading={isLoading}
onCompleteTodo={handleCompleteTodo}
onRemoveTodo={handleRemoveTodo}
onUpdateTodo={handleUpdateTodo}
/>
</div>
);
};
export default Todo;
|
/*!
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
/**
* Renders any kind of widget. If you have a widget and you want to have it rendered, use this directive. It will
* display a name on top and the actual widget below. It can handle any kind of widget, no matter whether it is a
* regular widget or a container.
*
* @param {Object} piwikWidget A widget object as returned by the WidgetMetadata API.
* @param {Object} piwikWidget.middlewareParameters If present, we will request a URL using the given parameters and
* only if this URL returns a JSON `true` the widget will be shown.
* Otherwise the widget won't be shown.
* @param {String} containerId If you do not have a widget object but a containerId we will find the correct widget
* object based on the given containerId. Be aware that we might not find the widget if
* it is for example not available for the current user or period/date.
* @param {Boolean} widgetized true if the widget is widgetized (eg in Dashboard or exported). In this case we will add
* a URL parameter widget=1 to all widgets. Eg sparklines will be then displayed one after
* another (vertically aligned) instead of two next to each other.
*
* Example:
* <div piwik-widget="widget"></div>
* <div piwik-widget containerid="widgetGoalsOverview"></div> // in this case we will find the correct widget automatically
* <div piwik-widget="widget" widetized="true"></div> // disables rating feature, no initial headline
*/
(function () {
angular.module('piwikApp').directive('piwikWidget', piwikWidget);
piwikWidget.$inject = ['piwik', 'piwikApi', 'reportMetadataModel'];
function piwikWidget(piwik, piwikApi, reportMetadataModel){
function findContainerWidget(containerId, scope) {
widgetsHelper.getAvailableWidgets(function (categorizedWidgets) {
angular.forEach(categorizedWidgets, function (widgets) {
angular.forEach(widgets, function (widget) {
if (widget && widget.isContainer && widget.parameters.containerId === containerId) {
widget = angular.copy(widget);
if (scope.widgetized) {
widget.isFirstInPage = '1';
widget.parameters.widget = '1';
angular.forEach(widget.widgets, function (widget) {
widget.parameters.widget = '1';
widget.parameters.containerId = containerId;
});
}
scope.widget = widget;
applyMiddleware(scope);
}
});
});
});
}
function addReportDocumentationIfPossible(widget)
{
if (widget && widget.isReport && !widget.documentation) {
var report = reportMetadataModel.findReport(widget.module, widget.action);
if (report && report.documentation) {
widget.documentation = report.documentation;
}
}
}
function applyMiddleware(scope)
{
if (!scope.widget.middlewareParameters) {
scope.$evalAsync('view.showWidget = true');
} else {
var params = angular.copy(scope.widget.middlewareParameters);
piwikApi.fetch(params).then(function (response) {
var enabled = response ? 'true' : 'false';
scope.$evalAsync('view.showWidget = ' + enabled);
});
}
}
return {
restrict: 'A',
scope: {
widget: '=?piwikWidget',
widgetized: '=?',
containerid: '='
},
templateUrl: 'plugins/CoreHome/angularjs/widget/widget.directive.html?cb=' + piwik.cacheBuster,
compile: function (element, attrs) {
return function (scope, element, attrs, ngModel) {
if (scope.widget) {
addReportDocumentationIfPossible(scope.widget);
applyMiddleware(scope);
} else if (attrs.containerid) {
findContainerWidget(attrs.containerid, scope);
}
$(element).tooltip({
track: true,
content: function() {
var $this = $(this);
if ($this.attr('piwik-field') === '') {
// do not show it for form fields
return '';
}
var title = $(this).attr('title');
return piwikHelper.escape(title.replace(/\n/g, '<br />'));
},
show: {delay: 700, duration: 200},
hide: false
});
scope.$on(
"$destroy",
function () {
try {
$(element).tooltip('destroy');
} catch (e) {}
}
);
}
}
};
}
})();
|
import Vue from 'vue';
import Vuex from 'vuex';
import VuexDynamicModule from '@/plugins/vuex-dynamic-module';
import structure from './structure';
Vue.use(Vuex);
Vue.use(VuexDynamicModule);
const store = new Vuex.Store({
modules: {
structure: structure
}
});
export default store;
|
var express = require('express');
var router = express.Router();
const sqlite3 = require('sqlite3').verbose();
// open the database
let db = new sqlite3.Database('./database/salgozi.sqlite3', sqlite3.OPEN_READWRITE, (err) => {
if(err) {
console.error(err.message);
}
console.log('Connected to the salgozi database!');
});
function selectDatas(sql, params, callback) {
console.log(sql);
db.all(sql, params, (err, rows) => {
if(err) {
callback({isSuccess:false, errmsg:err});
}
else {
callback({isSuccess:true, rows:rows});
}
});
}
function getSqlQuery(sql, searchCond, defaultSortby) {
let sortby = defaultSortby;
if(searchCond && searchCond.sort_column)
sortby = searchCond.sort_column + ' ' + searchCond.sort_by;
let sqlQuery = sql.replace('{SORT_BY_COLUMNS}', sortby);
if(searchCond && searchCond.col_name)
sqlQuery += " and " + searchCond.col_name + " like '%" + searchCond.svalue + "%'";
sqlQuery += " order by " + sortby;
return sqlQuery;
}
function responseSearchResult(req, res, pagePath, result) {
if(req.query.protocol === 'json'){
res.json(result);
}
else {
res.render(pagePath, result);
}
}
function getMaxGameNumber(callback) {
let sql = " select max(gnum) gnum from monthly_game_master ";
db.each(sql, function(err, row) {
callback(row.gnum);
});
}
function isOpenGame(callback) {
let sql = " select max(gnum) gnum from monthly_game_master where status = 'P' ";
db.each(sql, function(err, row) {
callback(row.gnum);
});
}
function addGameMaster(callback) {
let sql = " insert into monthly_game_master (gnum, event_date, event_year) "
+ " values (?, date('now', 'localtime'), strftime('%Y', date('now', 'localtime'))); "
getMaxGameNumber(function(maxGameNumber) {
db.run(sql, [maxGameNumber+1], function(err) {
if(err) {
callback({isSuccess:false, rtnMsg:err.message});
return;
}
console.log('1 row has been inserted with rowid ' + this.lastID);
callback({isSuccess:true, rtnMsg:this.lastID+"회 대회가 생성 되었습니다.!"});
});
});
}
function applyMembersToGame(gnum, memberIds, callback) {
if(memberIds.length < 1) {
callback({isSuccess:false, rtnMsg:"적용할 회원이 없습니다.!"});
console.log(' members is not exists!!!!!!!');
return;
}
let memStr = memberIds.join("', '");
let sql = " insert into monthly_game_personal_score (gnum, mid, bonus, age, female) "
+ " select " + gnum + ", mid, bonus "
+ " ,(strftime('%Y', date('now', 'localtime')) - strftime('%Y', birthday) + 1) age "
+ " ,case when m.gender = 'M' then 0 else 1 end female "
+ " from members m "
+ " where mid in ('" + memStr + "') "
+ " and not exists ( "
+ " select 1 "
+ " from monthly_game_personal_score s "
+ " where s.mid = m.mid "
+ " and s.gnum = " + gnum
+ " ) ";
manupulateDatas(sql, function(result) {
callback(result);
});
}
function addMemberToShootingGroup(gnum, memberIds, callback) {
let memStr = memberIds.join("', '");
let sql = " insert into monthly_game_shooting_group "
+ " select "+gnum+" gnum, mid, 0 group_num, 999 shooting_priarity "
+ " from members m "
+ " where mid in ('" + memStr + "') ";
manupulateDatas(sql, function(result) {
callback(result);
});
}
function applyShootingGroup(gnum, group_count, callback) {
let sql = " insert into monthly_game_shooting_group "
+ " select gnum, mid, (shooting_priarity-1)%"+group_count+"+1 group_num, shooting_priarity "
+ " from ( "
+ " select gnum, m.mid "
+ " ,row_number() over ( order by m.shooting_priority, m.birthday ) shooting_priarity "
+ " from monthly_game_personal_score s, members m "
+ " where gnum = " + gnum
+ " and m.mid = s.mid "
+ ") ";
manupulateDatas(sql, function(result) {
callback(result);
});
}
/* GET home page. */
router.get('/', function(req, res, next) {
res.render('salgozi/index', { title: 'Express' });
});
/* GET members listing. */
router.get('/members', function(req, res, next) {
let sql = " select m.* "
+ ",(strftime('%Y', date('now', 'localtime')) - strftime('%Y', birthday) + 1) age "
+ ",row_number() over ( order by {SORT_BY_COLUMNS} ) rownum"
+ " from members m "
+ " where status = 'Y'"
+ " and not exists ( "
+ " select 1 "
+ " from monthly_game_personal_score s "
+ " where s.mid = m.mid "
+ " and s.gnum = (select gnum from monthly_game_master where status = 'P') "
+ " ) ";
let default_sortby = 'shooting_priority, birthday';
var sqlQuery = getSqlQuery(sql, req.query.params, default_sortby);
selectDatas(sqlQuery, [], function(result) {
responseSearchResult(req, res, 'salgozi/members', result);
});
});
/* GET games listing. */
router.get('/monthly_games', function(req, res, next) {
let sql = " select m.* "
+ " from monthly_game_master m "
+ " where 1 =1 ";
var sqlQuery = getSqlQuery(sql, req.query.params, 'gnum');
selectDatas(sqlQuery, [], function(result) {
responseSearchResult(req, res, 'salgozi/monthly_games', result);
});
});
router.get('/game_score', function(req, res, next) {
getMaxGameNumber(function(maxGameNumber){
res.render('salgozi/game_score_personal', { game_num: maxGameNumber });
});
});
/* GET personal_score listing. */
router.get('/game_personal_score', function(req, res, next) {
let sql = " select * "
+ " from ( "
+ " select s.*, m.name, m.position_name, m.shooting_priority "
+ " ,(strftime('%Y', date('now', 'localtime')) - strftime('%Y', birthday) + 1) age "
+ " ,(s.round1_hits + s.round2_hits + s.round3_hits) real_hits "
+ " ,case when age >= 65 or female = 1 then 1 else 0 end gold_bonus "
+ " ,(s.round1_hits + s.round2_hits + s.round3_hits + s.bonus) total_hits "
+ " from monthly_game_personal_score s, members m "
+ " where s.mid = m.mid "
+ " and gnum = " + req.query.params.gnum
+ " and m.mid not like 'dummy%' "
+ " ) "
+ " where 1 = 1 ";
let sortByCategory = ' total_hits desc';
if(req.query.params.sort_category === 'order_by_real_hits')
sortByCategory = ' real_hits desc';
else if(req.query.params.sort_category === 'order_by_real_hits_bonus')
sortByCategory = ' (real_hits + gold_bonus) desc';
sortByCategory += ', gakgung desc, round1_hits desc, round2_hits desc, round3_hits desc';
var sqlQuery = getSqlQuery(sql, req.query.params, sortByCategory);
selectDatas(sqlQuery, [], function(result) {
responseSearchResult(req, res, 'salgozi/game_score_personal', result);
});
});
/* GET personal_score listing. */
router.get('/game_members', function(req, res, next) {
let sql = " select s.gnum, s.bonus, m.name, m.position_name, m.mid, s.gakgung "
+ " ,row_number() over ( order by {SORT_BY_COLUMNS} ) rownum"
+ " ,(strftime('%Y', date('now', 'localtime')) - strftime('%Y', birthday) + 1) age "
+ " from monthly_game_personal_score s, members m "
+ " where s.mid = m.mid "
+ " and m.mid not like 'dummy%' "
+ " and gnum = " + req.query.params.gnum;
var sqlQuery = getSqlQuery(sql, req.query.params, 'm.shooting_priority, m.birthday');
selectDatas(sqlQuery, [], function(result) {
res.json(result);
});
});
/* GET personal_score listing. */
router.get('/select_datas', function(req, res, next) {
selectDatas(req.query.sql, req.query.params, function(result) {
console.log(result);
res.json(result);
});
});
router.get('/game_shooting', function(req, res, next) {
getMaxGameNumber(function(maxGameNumber){
res.render('salgozi/game_shooting_group', { game_num: maxGameNumber });
});
});
router.get('/game_team_jakdae', function(req, res, next) {
getMaxGameNumber(function(maxGameNumber){
res.render('salgozi/game_team_jakdae', { game_num: maxGameNumber });
});
});
router.get('/game_shooting_group', function(req, res, next) {
req.query.params['shooting_group'] = '';
selectGameShootingGroup(req.query.params, function(result){
res.json(result);
});
});
router.get('/game_shooting_group_by_team', function(req, res, next) {
selectGameShootingGroup(req.query.params, function(result){
res.json(result);
});
});
function selectGameShootingGroup(searchCond, callback) {
console.log(searchCond);
let sql = " select g.gnum, g.mid, m.name, m.position_name, s.age, g.shooting_group, g.shooting_seq, s.gakgung, s.age "
+ " from monthly_game_shooting_group g, members m, monthly_game_personal_score s "
+ " where m.mid = g.mid "
+ " and s.mid = g.mid "
+ " and m.mid not like 'dummy%' "
+ " and s.gnum = g.gnum "
+ " and g.gnum = " + searchCond.gnum;
if(searchCond.shooting_group && searchCond.shooting_group != '')
sql += " and g.shooting_group = " + searchCond.shooting_group;
var sqlQuery = getSqlQuery(sql, searchCond, 'g.shooting_group, g.shooting_seq, s.age');
selectDatas(sqlQuery, [], function(result) {
callback(result);
});
}
function selectTeamJakdaeByNum(searchCond, callback) {
let sql
= " select s.gnum, j.mid, j.team_num, s.gakgung, (round1_hits + round2_hits + round3_hits) score, s.age, j.upt_number, age_class, female, m.name, m.position_name "
+ " from monthly_game_team_jakdae j, monthly_game_personal_score s, members m "
+ " where s.mid = j.mid "
+ " and s.mid = m.mid "
+ " and s.gnum = " + searchCond.gnum
+ " and s.gnum = j.gnum ";
+ " and m.mid not like 'dummy%' "
if(searchCond.team_num && searchCond.team_num != '')
sql += " and j.team_num = " + searchCond.team_num;
else
sql += " and j.team_num is not null ";
var sqlQuery = getSqlQuery(sql, searchCond, 'team_num, j.shooting_priority, age desc');
console.log(sqlQuery);
selectDatas(sqlQuery, [], function(result) {
callback(result);
});
}
router.get('/select_team_jakdae', function(req, res, next) {
selectTeamJakdaeByNum(req.query.params, function(result){
res.json(result);
});
});
router.get('/select_team_jakdae_by_team', function(req, res, next) {
selectTeamJakdaeByNum(req.query.params, function(result){
res.json(result);
});
});
router.get('/select_team_jakdae_summary', function(req, res, next) {
let sql = " select * from team_jakdae_status ";
selectDatas(sql, [], function(result) {
res.json(result);
});
});
function addGame(callback) {
isOpenGame(function(gnum) {
if(gnum > 0) {
callback({isSuccess:false, rtnMsg:"현재 진행 중인 대회(" + gnum + "회)가 존재 합니다.!"});
}
else {
addGameMaster(function(result) {
callback(result);
});
}
});
}
router.get('/add', function(req, res, next) {
if(req.query.categoryId == 'game_members') {
applyMembersToGame(req.query.params.gnum, req.query.params.memberIds, function(result) {
res.json(result);
});
}
else if(req.query.categoryId == 'monthly_games') {
addGame(function(result) {
res.json(result);
});
}
else if(req.query.categoryId == 'game_shooting_group') {
applyShootingGroup(req.query.params.gnum, req.query.params.group_count, function(result) {
res.json(result);
});
}
else if(req.query.categoryId == 'add_member_to_game_shooting_group') {
addMemberToShootingGroup(req.query.params.gnum, req.query.params.memberIds, function(result) {
res.json(result);
});
}
else {
res.json({isSuccess:false, rtnMsg:req.query.categoryId + "는 기정의된 카테고리ID가 아닙니다.!"});
}
});
router.get('/modify', function(req, res, next) {
let sqlQuery = getModifySql(req.query.categoryId, req.query.params);
manupulateDatas(sqlQuery, function(result) {
res.json(result);
});
});
router.get('/delete', function(req, res, next) {
let sqlQuery = getDeleteSql(req.query.categoryId, req.query.params);
manupulateDatas(sqlQuery, function(result) {
res.json(result);
});
});
function manupulateDatas(sqlQuery, callback) {
console.log('--------------------------------------------');
console.log('--------------- manupulateDatas ------------');
console.log('--------------------------------------------');
console.log(sqlQuery);
console.log('--------------------------------------------');
try {
db.run(sqlQuery, [], function(err) {
if(err) {
callback({isSuccess:false, rtnMsg:'데이터 수정시 오류가 발생하였습니다.!\n' + err.message});
}
else {
callback({isSuccess:true, rtnMsg:this.changes + "건이 수정 되었습니다.!"});
}
});
}
catch(err) {
console.log(err);
callback({isSuccess:false, rtnMsg:err.message});
}
}
function getModifySql(categoryId, queryParams) {
var sqlQueryByCategoryId = {
monthly_games:
" update monthly_game_master "
+ " set event_date = '" + queryParams.event_date + "'"
+ " ,status = '" + queryParams.status + "'"
+ " where gnum = '"+queryParams.gnum+"'"
,game_personal_score:
" update monthly_game_personal_score "
+ " set gakgung = " + queryParams.gakgung
+ " ,round1_hits = " + queryParams.round1_hits
+ " ,round2_hits = " + queryParams.round2_hits
+ " ,round3_hits = " + queryParams.round3_hits
+ " ,apply_team_game = " + queryParams.apply_team_game
+ " where gnum = '"+queryParams.gnum+"'"
+ " and mid = '"+queryParams.mid+"' "
,game_members:
" update monthly_game_personal_score "
+ " set bonus = " + queryParams.bonus
+ " ,gakgung = " + queryParams.gakgung
+ " where gnum = '"+queryParams.gnum+"'"
+ " and mid = '"+queryParams.mid+"' "
,select_team_jakdae:
" update monthly_game_team_jakdae "
+ " set team_num = " + queryParams.team_num
+ " where gnum = '"+queryParams.gnum+"'"
+ " and mid = '"+queryParams.mid+"' "
,game_shooting_group:
"update monthly_game_shooting_group "
+ " set shooting_group = " + queryParams.shooting_group
+ " where gnum = '"+queryParams.gnum+"'"
+ " and mid = '"+queryParams.mid+"' "
};
return sqlQueryByCategoryId[categoryId];
}
function getDeleteSql(categoryId, queryParams) {
var sqlQueryByCategoryId = {
monthly_games:
" delete from monthly_game_master "
+ " where gnum = '"+queryParams.gnum+"'"
,game_members:
" delete from monthly_game_personal_score "
+ " where gnum = '"+queryParams.gnum+"'"
+ " and mid = '"+queryParams.mid+"' "
,game_shooting_group:
" delete from monthly_game_shooting_group "
+ " where gnum = '"+queryParams.gnum+"'"
,select_team_jakdae:
" delete from monthly_game_team_jakdae "
+ " where gnum = '"+queryParams.gnum+"' "
,team_jakdae_status:
" delete from team_jakdae_status "
};
return sqlQueryByCategoryId[categoryId];
}
module.exports = router;
|
const base64Decode = require('fast-base64-decode')
const getRandomBase64 = require('./getRandomBase64')
class TypeMismatchError extends Error {}
class QuotaExceededError extends Error {}
let warned = false
function insecureRandomValues (array) {
if (!warned) {
console.warn('Using an insecure random number generator, this should only happen when running in a debugger without support for crypto.getRandomValues')
warned = true
}
for (let i = 0, r; i < array.length; i++) {
if ((i & 0x03) === 0) r = Math.random() * 0x100000000
array[i] = (r >>> ((i & 0x03) << 3)) & 0xff
}
return array
}
/**
* @param {Int8Array|Uint8Array|Int16Array|Uint16Array|Int32Array|Uint32Array|Uint8ClampedArray} array
*/
function getRandomValues (array) {
if (!(array instanceof Int8Array || array instanceof Uint8Array || array instanceof Int16Array || array instanceof Uint16Array || array instanceof Int32Array || array instanceof Uint32Array || array instanceof Uint8ClampedArray)) {
throw new TypeMismatchError('Expected an integer array')
}
if (array.byteLength > 65536) {
throw new QuotaExceededError('Can only request a maximum of 65536 bytes')
}
// Calling getRandomBase64 in debug mode leads to the error
// "Calling synchronous methods on native modules is not supported in Chrome".
// So in that specific case we fall back to just using Math.random.
if (__DEV__) {
if (typeof global.nativeCallSyncHook === 'undefined') {
return insecureRandomValues(array)
}
}
base64Decode(getRandomBase64(array.byteLength), new Uint8Array(array.buffer, array.byteOffset, array.byteLength))
return array
}
if (typeof global.crypto !== 'object') {
global.crypto = {}
}
if (typeof global.crypto.getRandomValues !== 'function') {
global.crypto.getRandomValues = getRandomValues
}
|
function setup() {
console.log("Hello World!")
}
function draw() {
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.