@cardenelabs/dragon 0.41.1 → 0.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -1
- package/dist/cli.cjs +4094 -961
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +4094 -961
- package/dist/cli.js.map +1 -1
- package/dist/export.cjs +3681 -939
- package/dist/export.cjs.map +1 -1
- package/dist/export.d.cts +1 -1
- package/dist/export.d.ts +1 -1
- package/dist/export.js +3681 -939
- package/dist/export.js.map +1 -1
- package/dist/index.cjs +4016 -815
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +159 -3
- package/dist/index.d.ts +159 -3
- package/dist/index.js +4016 -815
- package/dist/index.js.map +1 -1
- package/dist/{ink-B_7OXxtb.d.cts → ink-B8EZL7JV.d.cts} +95 -3
- package/dist/{ink-B_7OXxtb.d.ts → ink-B8EZL7JV.d.ts} +95 -3
- package/dist/node.cjs +2461 -726
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +2461 -726
- package/dist/node.js.map +1 -1
- package/dist/player.global.js +2 -2
- package/package.json +1 -1
- package/src/field-messages.ts +12 -0
- package/src/figure-text.ts +26 -0
- package/src/index.ts +11 -1
- package/src/layout/scene.ts +23 -2
- package/src/layout/time.ts +680 -0
- package/src/look/values.ts +142 -2
- package/src/messages.ts +108 -5
- package/src/parser.ts +427 -6
- package/src/player.ts +48 -10
- package/src/printer.ts +63 -12
- package/src/render/icons.ts +2 -0
- package/src/render/parts.ts +29 -9
- package/src/render/svg.ts +129 -21
- package/src/render/time.ts +291 -0
- package/src/schema.ts +109 -10
- package/src/schemas/diagram.schema.json +224 -12
- package/src/schemas/validate-diagram.js +1 -1
- package/src/timeline.ts +147 -10
- package/src/words.ts +39 -6
|
@@ -5,4 +5,4 @@ function ucs2length(str) {
|
|
|
5
5
|
for (const _ of str) length++;
|
|
6
6
|
return length;
|
|
7
7
|
}
|
|
8
|
-
export const validate = validate10;export default validate10;const schema11 = {"title":"dragon の図の原本","description":"区画、箱、線、運ぶ物、段、中身の帯の 6 部品を共通の骨組みに置き、図の種類だけの物は種類の欄に置く。座標は持たない。箱は枝分かれの図だけが持たなくてよい。","type":"object","additionalProperties":false,"required":["version","kind","title","boxes","steps"],"properties":{"version":{"description":"形式の版","type":"integer","minimum":1},"kind":{"description":"図の種類","enum":["sequence","architecture","state","git"]},"title":{"$ref":"#/definitions/text"},"view":{"description":"見せ方。書かなければ字の大きさで選ぶ。fixed は全体を止めて中だけ動かし、follow は寄って動かし全体図で今どこかを示す","enum":["fixed","follow"]},"regions":{"type":"array","items":{"$ref":"#/definitions/region"}},"boxes":{"type":"array","items":{"$ref":"#/definitions/box"}},"strip":{"$ref":"#/definitions/strip"},"steps":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/step"}},"sequence":{"$ref":"#/definitions/sequence"},"state":{"$ref":"#/definitions/state"},"git":{"$ref":"#/definitions/git"}},"if":{"required":["kind"],"properties":{"kind":{"const":"sequence"}}},"then":{"required":["sequence"],"properties":{"boxes":{"minItems":1},"steps":{"$ref":"#/definitions/plainSteps"},"state":{"$ref":"#/definitions/absent"},"git":{"$ref":"#/definitions/absent"}}},"else":{"properties":{"sequence":{"$ref":"#/definitions/absent"}},"if":{"required":["kind"],"properties":{"kind":{"const":"state"}}},"then":{"properties":{"boxes":{"minItems":1,"items":{"properties":{"id":{"description":"始まりと終わりの印の名前は箱の名札に使えない","not":{"enum":["start","finish"]}}}}},"steps":{"$ref":"#/definitions/plainSteps"},"git":{"$ref":"#/definitions/absent"}}},"else":{"if":{"required":["kind"],"properties":{"kind":{"const":"git"}}},"then":{"required":["git"],"properties":{"state":{"$ref":"#/definitions/absent"},"regions":{"$ref":"#/definitions/absent"}}},"else":{"properties":{"boxes":{"minItems":1},"steps":{"$ref":"#/definitions/plainSteps"},"state":{"$ref":"#/definitions/absent"},"git":{"$ref":"#/definitions/absent"}}}}},"definitions":{"text":{"type":"string","minLength":1},"absent":{"description":"この図の種類では書けない欄","not":{}},"plainSteps":{"description":"枝分かれの図でない図の段。枝分かれの図だけの出来事 (commit と branch) を書けない","items":{"properties":{"events":{"items":{"properties":{"type":{"not":{"enum":["commit","branch"]}}}}}}}},"id":{"type":"string","pattern":"^[^\\s\\[\\]「」=:]+$"},"color":{"enum":["blue","amber","green","violet","rose","slate","coin"]},"region":{"type":"object","additionalProperties":false,"required":["id","name"],"properties":{"id":{"$ref":"#/definitions/id"},"name":{"$ref":"#/definitions/text"},"note":{"$ref":"#/definitions/text"},"color":{"$ref":"#/definitions/color"},"icon":{"$ref":"#/definitions/text"}}},"box":{"type":"object","additionalProperties":false,"required":["id","name"],"properties":{"id":{"$ref":"#/definitions/id"},"name":{"$ref":"#/definitions/text"},"sub":{"$ref":"#/definitions/text"},"color":{"$ref":"#/definitions/color"},"icon":{"$ref":"#/definitions/text"},"region":{"$ref":"#/definitions/id"}}},"strip":{"type":"object","additionalProperties":false,"required":["title","fields"],"properties":{"title":{"$ref":"#/definitions/text"},"fields":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/text"}}}},"step":{"type":"object","additionalProperties":false,"required":["title","body","events"],"properties":{"title":{"$ref":"#/definitions/text"},"body":{"$ref":"#/definitions/text"},"code":{"$ref":"#/definitions/text"},"events":{"type":"array","items":{"$ref":"#/definitions/event"}}}},"event":{"description":"段の中で起きること。起きる順に並べる","type":"object","required":["type"],"discriminator":{"propertyName":"type"},"oneOf":[{"description":"線。運ぶ物を載せて送る側から受ける側へ走る","type":"object","additionalProperties":false,"required":["type","from","to","carry"],"properties":{"type":{"const":"edge"},"from":{"$ref":"#/definitions/id"},"to":{"$ref":"#/definitions/id"},"label":{"$ref":"#/definitions/text"},"carry":{"$ref":"#/definitions/carry"},"labelSide":{"description":"線の名前を置く側 (寄せの指示)","enum":["above","below","left","right"]}}},{"description":"箱の中の処理","type":"object","additionalProperties":false,"required":["type","box","label"],"properties":{"type":{"const":"action"},"box":{"$ref":"#/definitions/id"},"label":{"$ref":"#/definitions/text"}}},{"description":"箱の下の小さな字の書き換え","type":"object","additionalProperties":false,"required":["type","box","text"],"properties":{"type":{"const":"swap"},"box":{"$ref":"#/definitions/id"},"text":{"$ref":"#/definitions/text"}}},{"description":"commit を積む。枝分かれの図だけが書ける。積んだ枝の札と、その枝を指す HEAD が進む。当て直し (copy) は枝の札を動かさず、merge commit (merge) は取り込む枝の先端も親に持つ","type":"object","additionalProperties":false,"required":["type","id","branch"],"properties":{"type":{"const":"commit"},"id":{"$ref":"#/definitions/id"},"branch":{"$ref":"#/definitions/id"},"copy":{"$ref":"#/definitions/id"},"merge":{"$ref":"#/definitions/id"},"hash":{"$ref":"#/definitions/hash"},"note":{"$ref":"#/definitions/text"}}},{"description":"枝を切る。枝分かれの図だけが書ける。枝の札を from の commit へ置き、HEAD をその枝へ移す","type":"object","additionalProperties":false,"required":["type","branch","from"],"properties":{"type":{"const":"branch"},"branch":{"$ref":"#/definitions/id"},"from":{"$ref":"#/definitions/id"}}},{"description":"中身の帯の欄の値と札","type":"object","additionalProperties":false,"required":["type","field"],"anyOf":[{"required":["value"]},{"required":["tag"]}],"properties":{"type":{"const":"strip"},"field":{"$ref":"#/definitions/text"},"value":{"$ref":"#/definitions/text"},"tag":{"$ref":"#/definitions/text"}}}]},"carry":{"description":"線の上を走る物。封筒 (メッセージや要求)、札 (名前のある値)、硬貨 (価値)、無し","type":"object","additionalProperties":false,"required":["kind"],"properties":{"kind":{"enum":["envelope","tag","coin","none"]},"text":{"$ref":"#/definitions/text"}},"if":{"required":["kind"],"properties":{"kind":{"const":"tag"}}},"then":{"required":["text"]},"else":{"not":{"required":["text"]}}},"sequence":{"description":"時系列図の種類の欄。生存線を左から並べる順","type":"object","additionalProperties":false,"required":["lifelines"],"properties":{"lifelines":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/id"}}}},"state":{"description":"状態遷移図の種類の欄。最初の段より前に書いた、移れるが段で通るとは限らない線","type":"object","additionalProperties":false,"required":["paths"],"properties":{"paths":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/path"}}}},"git":{"description":"枝分かれの図の種類の欄。枝を上から帯に並べる順","type":"object","additionalProperties":false,"required":["branches"],"properties":{"branches":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/branch"}}}},"branch":{"description":"枝。帯の左に名札と添え書きを置く","type":"object","additionalProperties":false,"required":["id"],"properties":{"id":{"$ref":"#/definitions/id"},"note":{"$ref":"#/definitions/text"}}},"hash":{"description":"commit の hash。16 進の字で 4 から 40 字","type":"string","pattern":"^[0-9a-f]{4,40}$"},"path":{"description":"移れる道。送る側に始まりの印 start、受ける側に終わりの印 finish を書ける。どの段にも出ない道は点線で描き、運ぶ物を走らせない","type":"object","additionalProperties":false,"required":["from","to"],"properties":{"from":{"$ref":"#/definitions/id"},"to":{"$ref":"#/definitions/id"},"label":{"$ref":"#/definitions/text"}}}}};const schema12 = {"description":"枝分かれの図でない図の段。枝分かれの図だけの出来事 (commit と branch) を書けない","items":{"properties":{"events":{"items":{"properties":{"type":{"not":{"enum":["commit","branch"]}}}}}}}};const schema13 = {"description":"この図の種類では書けない欄","not":{}};const schema23 = {"type":"string","minLength":1};const func2 = Object.prototype.hasOwnProperty;const func3 = ucs2length;const schema24 = {"type":"object","additionalProperties":false,"required":["id","name"],"properties":{"id":{"$ref":"#/definitions/id"},"name":{"$ref":"#/definitions/text"},"note":{"$ref":"#/definitions/text"},"color":{"$ref":"#/definitions/color"},"icon":{"$ref":"#/definitions/text"}}};const schema25 = {"type":"string","pattern":"^[^\\s\\[\\]「」=:]+$"};const schema28 = {"enum":["blue","amber","green","violet","rose","slate","coin"]};const pattern0 = new RegExp("^[^\\s\\[\\]「」=:]+$", "u");function validate11(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.name === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!(((((key0 === "id") || (key0 === "name")) || (key0 === "note")) || (key0 === "color")) || (key0 === "icon"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!pattern0.test(data0)){const err3 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.name !== undefined){let data1 = data.name;if(typeof data1 === "string"){if(func3(data1) < 1){const err5 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.note !== undefined){let data2 = data.note;if(typeof data2 === "string"){if(func3(data2) < 1){const err7 = {instancePath:instancePath+"/note",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/note",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.color !== undefined){let data3 = data.color;if(!(((((((data3 === "blue") || (data3 === "amber")) || (data3 === "green")) || (data3 === "violet")) || (data3 === "rose")) || (data3 === "slate")) || (data3 === "coin"))){const err9 = {instancePath:instancePath+"/color",schemaPath:"#/definitions/color/enum",keyword:"enum",params:{allowedValues: schema28.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.icon !== undefined){let data4 = data.icon;if(typeof data4 === "string"){if(func3(data4) < 1){const err10 = {instancePath:instancePath+"/icon",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}else {const err11 = {instancePath:instancePath+"/icon",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}else {const err12 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}validate11.errors = vErrors;return errors === 0;}const schema30 = {"type":"object","additionalProperties":false,"required":["id","name"],"properties":{"id":{"$ref":"#/definitions/id"},"name":{"$ref":"#/definitions/text"},"sub":{"$ref":"#/definitions/text"},"color":{"$ref":"#/definitions/color"},"icon":{"$ref":"#/definitions/text"},"region":{"$ref":"#/definitions/id"}}};function validate13(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.name === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((((((key0 === "id") || (key0 === "name")) || (key0 === "sub")) || (key0 === "color")) || (key0 === "icon")) || (key0 === "region"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!pattern0.test(data0)){const err3 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.name !== undefined){let data1 = data.name;if(typeof data1 === "string"){if(func3(data1) < 1){const err5 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.sub !== undefined){let data2 = data.sub;if(typeof data2 === "string"){if(func3(data2) < 1){const err7 = {instancePath:instancePath+"/sub",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/sub",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.color !== undefined){let data3 = data.color;if(!(((((((data3 === "blue") || (data3 === "amber")) || (data3 === "green")) || (data3 === "violet")) || (data3 === "rose")) || (data3 === "slate")) || (data3 === "coin"))){const err9 = {instancePath:instancePath+"/color",schemaPath:"#/definitions/color/enum",keyword:"enum",params:{allowedValues: schema28.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.icon !== undefined){let data4 = data.icon;if(typeof data4 === "string"){if(func3(data4) < 1){const err10 = {instancePath:instancePath+"/icon",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}else {const err11 = {instancePath:instancePath+"/icon",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data.region !== undefined){let data5 = data.region;if(typeof data5 === "string"){if(!pattern0.test(data5)){const err12 = {instancePath:instancePath+"/region",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/region",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}else {const err14 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}validate13.errors = vErrors;return errors === 0;}const schema37 = {"type":"object","additionalProperties":false,"required":["title","fields"],"properties":{"title":{"$ref":"#/definitions/text"},"fields":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/text"}}}};function validate15(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.title === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.fields === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "fields"},message:"must have required property '"+"fields"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "title") || (key0 === "fields"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.title !== undefined){let data0 = data.title;if(typeof data0 === "string"){if(func3(data0) < 1){const err3 = {instancePath:instancePath+"/title",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/title",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.fields !== undefined){let data1 = data.fields;if(Array.isArray(data1)){if(data1.length < 1){const err5 = {instancePath:instancePath+"/fields",schemaPath:"#/properties/fields/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];if(typeof data2 === "string"){if(func3(data2) < 1){const err6 = {instancePath:instancePath+"/fields/" + i0,schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}else {const err7 = {instancePath:instancePath+"/fields/" + i0,schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}else {const err8 = {instancePath:instancePath+"/fields",schemaPath:"#/properties/fields/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}}else {const err9 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}validate15.errors = vErrors;return errors === 0;}const schema40 = {"type":"object","additionalProperties":false,"required":["title","body","events"],"properties":{"title":{"$ref":"#/definitions/text"},"body":{"$ref":"#/definitions/text"},"code":{"$ref":"#/definitions/text"},"events":{"type":"array","items":{"$ref":"#/definitions/event"}}}};const schema44 = {"description":"段の中で起きること。起きる順に並べる","type":"object","required":["type"],"discriminator":{"propertyName":"type"},"oneOf":[{"description":"線。運ぶ物を載せて送る側から受ける側へ走る","type":"object","additionalProperties":false,"required":["type","from","to","carry"],"properties":{"type":{"const":"edge"},"from":{"$ref":"#/definitions/id"},"to":{"$ref":"#/definitions/id"},"label":{"$ref":"#/definitions/text"},"carry":{"$ref":"#/definitions/carry"},"labelSide":{"description":"線の名前を置く側 (寄せの指示)","enum":["above","below","left","right"]}}},{"description":"箱の中の処理","type":"object","additionalProperties":false,"required":["type","box","label"],"properties":{"type":{"const":"action"},"box":{"$ref":"#/definitions/id"},"label":{"$ref":"#/definitions/text"}}},{"description":"箱の下の小さな字の書き換え","type":"object","additionalProperties":false,"required":["type","box","text"],"properties":{"type":{"const":"swap"},"box":{"$ref":"#/definitions/id"},"text":{"$ref":"#/definitions/text"}}},{"description":"commit を積む。枝分かれの図だけが書ける。積んだ枝の札と、その枝を指す HEAD が進む。当て直し (copy) は枝の札を動かさず、merge commit (merge) は取り込む枝の先端も親に持つ","type":"object","additionalProperties":false,"required":["type","id","branch"],"properties":{"type":{"const":"commit"},"id":{"$ref":"#/definitions/id"},"branch":{"$ref":"#/definitions/id"},"copy":{"$ref":"#/definitions/id"},"merge":{"$ref":"#/definitions/id"},"hash":{"$ref":"#/definitions/hash"},"note":{"$ref":"#/definitions/text"}}},{"description":"枝を切る。枝分かれの図だけが書ける。枝の札を from の commit へ置き、HEAD をその枝へ移す","type":"object","additionalProperties":false,"required":["type","branch","from"],"properties":{"type":{"const":"branch"},"branch":{"$ref":"#/definitions/id"},"from":{"$ref":"#/definitions/id"}}},{"description":"中身の帯の欄の値と札","type":"object","additionalProperties":false,"required":["type","field"],"anyOf":[{"required":["value"]},{"required":["tag"]}],"properties":{"type":{"const":"strip"},"field":{"$ref":"#/definitions/text"},"value":{"$ref":"#/definitions/text"},"tag":{"$ref":"#/definitions/text"}}}]};const schema58 = {"description":"commit の hash。16 進の字で 4 から 40 字","type":"string","pattern":"^[0-9a-f]{4,40}$"};const pattern11 = new RegExp("^[0-9a-f]{4,40}$", "u");const schema48 = {"description":"線の上を走る物。封筒 (メッセージや要求)、札 (名前のある値)、硬貨 (価値)、無し","type":"object","additionalProperties":false,"required":["kind"],"properties":{"kind":{"enum":["envelope","tag","coin","none"]},"text":{"$ref":"#/definitions/text"}},"if":{"required":["kind"],"properties":{"kind":{"const":"tag"}}},"then":{"required":["text"]},"else":{"not":{"required":["text"]}}};function validate19(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs1 = errors;let valid0 = true;const _errs2 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.kind === undefined) && (missing0 = "kind")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.kind !== undefined){if("tag" !== data.kind){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs2 === errors;errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}let ifClause0;if(_valid0){const _errs4 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.text === undefined){const err2 = {instancePath,schemaPath:"#/then/required",keyword:"required",params:{missingProperty: "text"},message:"must have required property '"+"text"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}var _valid0 = _errs4 === errors;valid0 = _valid0;ifClause0 = "then";}else {const _errs5 = errors;const _errs6 = errors;const _errs7 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.text === undefined) && (missing1 = "text")){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}var valid2 = _errs7 === errors;if(valid2){const err4 = {instancePath,schemaPath:"#/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}else {errors = _errs6;if(vErrors !== null){if(_errs6){vErrors.length = _errs6;}else {vErrors = null;}}}var _valid0 = _errs5 === errors;valid0 = _valid0;ifClause0 = "else";}if(!valid0){const err5 = {instancePath,schemaPath:"#/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.kind === undefined){const err6 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}for(const key0 in data){if(!((key0 === "kind") || (key0 === "text"))){const err7 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.kind !== undefined){let data1 = data.kind;if(!((((data1 === "envelope") || (data1 === "tag")) || (data1 === "coin")) || (data1 === "none"))){const err8 = {instancePath:instancePath+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues: schema48.properties.kind.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.text !== undefined){let data2 = data.text;if(typeof data2 === "string"){if(func3(data2) < 1){const err9 = {instancePath:instancePath+"/text",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/text",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}else {const err11 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}validate19.errors = vErrors;return errors === 0;}function validate18(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const tag0 = data.type;if(typeof tag0 == "string"){if(tag0 === "edge"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err1 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.from === undefined){const err2 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.to === undefined){const err3 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.carry === undefined){const err4 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "carry"},message:"must have required property '"+"carry"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}for(const key0 in data){if(!((((((key0 === "type") || (key0 === "from")) || (key0 === "to")) || (key0 === "label")) || (key0 === "carry")) || (key0 === "labelSide"))){const err5 = {instancePath,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.type !== undefined){if("edge" !== data.type){const err6 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/0/properties/type/const",keyword:"const",params:{allowedValue: "edge"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.from !== undefined){let data1 = data.from;if(typeof data1 === "string"){if(!pattern0.test(data1)){const err7 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.to !== undefined){let data2 = data.to;if(typeof data2 === "string"){if(!pattern0.test(data2)){const err9 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.label !== undefined){let data3 = data.label;if(typeof data3 === "string"){if(func3(data3) < 1){const err11 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data.carry !== undefined){if(!(validate19(data.carry, {instancePath:instancePath+"/carry",parentData:data,parentDataProperty:"carry",rootData}))){vErrors = vErrors === null ? validate19.errors : vErrors.concat(validate19.errors);errors = vErrors.length;}}if(data.labelSide !== undefined){let data5 = data.labelSide;if(!((((data5 === "above") || (data5 === "below")) || (data5 === "left")) || (data5 === "right"))){const err13 = {instancePath:instancePath+"/labelSide",schemaPath:"#/oneOf/0/properties/labelSide/enum",keyword:"enum",params:{allowedValues: schema44.oneOf[0].properties.labelSide.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}else {const err14 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else if(tag0 === "action"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err15 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data.box === undefined){const err16 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "box"},message:"must have required property '"+"box"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data.label === undefined){const err17 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}for(const key1 in data){if(!(((key1 === "type") || (key1 === "box")) || (key1 === "label"))){const err18 = {instancePath,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data.type !== undefined){if("action" !== data.type){const err19 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/1/properties/type/const",keyword:"const",params:{allowedValue: "action"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data.box !== undefined){let data7 = data.box;if(typeof data7 === "string"){if(!pattern0.test(data7)){const err20 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}else {const err21 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data.label !== undefined){let data8 = data.label;if(typeof data8 === "string"){if(func3(data8) < 1){const err22 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}else {const err23 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}}else {const err24 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}else if(tag0 === "swap"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err25 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(data.box === undefined){const err26 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "box"},message:"must have required property '"+"box"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data.text === undefined){const err27 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "text"},message:"must have required property '"+"text"+"'"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}for(const key2 in data){if(!(((key2 === "type") || (key2 === "box")) || (key2 === "text"))){const err28 = {instancePath,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}if(data.type !== undefined){if("swap" !== data.type){const err29 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/2/properties/type/const",keyword:"const",params:{allowedValue: "swap"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data.box !== undefined){let data10 = data.box;if(typeof data10 === "string"){if(!pattern0.test(data10)){const err30 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}else {const err31 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data.text !== undefined){let data11 = data.text;if(typeof data11 === "string"){if(func3(data11) < 1){const err32 = {instancePath:instancePath+"/text",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}else {const err33 = {instancePath:instancePath+"/text",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}else {const err34 = {instancePath,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}else if(tag0 === "commit"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err35 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data.id === undefined){const err36 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if(data.branch === undefined){const err37 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "branch"},message:"must have required property '"+"branch"+"'"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}for(const key3 in data){if(!(((((((key3 === "type") || (key3 === "id")) || (key3 === "branch")) || (key3 === "copy")) || (key3 === "merge")) || (key3 === "hash")) || (key3 === "note"))){const err38 = {instancePath,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}if(data.type !== undefined){if("commit" !== data.type){const err39 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/3/properties/type/const",keyword:"const",params:{allowedValue: "commit"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}if(data.id !== undefined){let data13 = data.id;if(typeof data13 === "string"){if(!pattern0.test(data13)){const err40 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}else {const err41 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}if(data.branch !== undefined){let data14 = data.branch;if(typeof data14 === "string"){if(!pattern0.test(data14)){const err42 = {instancePath:instancePath+"/branch",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}else {const err43 = {instancePath:instancePath+"/branch",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}if(data.copy !== undefined){let data15 = data.copy;if(typeof data15 === "string"){if(!pattern0.test(data15)){const err44 = {instancePath:instancePath+"/copy",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}else {const err45 = {instancePath:instancePath+"/copy",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}if(data.merge !== undefined){let data16 = data.merge;if(typeof data16 === "string"){if(!pattern0.test(data16)){const err46 = {instancePath:instancePath+"/merge",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}else {const err47 = {instancePath:instancePath+"/merge",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}if(data.hash !== undefined){let data17 = data.hash;if(typeof data17 === "string"){if(!pattern11.test(data17)){const err48 = {instancePath:instancePath+"/hash",schemaPath:"#/definitions/hash/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{4,40}$"},message:"must match pattern \""+"^[0-9a-f]{4,40}$"+"\""};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}else {const err49 = {instancePath:instancePath+"/hash",schemaPath:"#/definitions/hash/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}if(data.note !== undefined){let data18 = data.note;if(typeof data18 === "string"){if(func3(data18) < 1){const err50 = {instancePath:instancePath+"/note",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}else {const err51 = {instancePath:instancePath+"/note",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}else {const err52 = {instancePath,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}else if(tag0 === "branch"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err53 = {instancePath,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}if(data.branch === undefined){const err54 = {instancePath,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty: "branch"},message:"must have required property '"+"branch"+"'"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if(data.from === undefined){const err55 = {instancePath,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}for(const key4 in data){if(!(((key4 === "type") || (key4 === "branch")) || (key4 === "from"))){const err56 = {instancePath,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}if(data.type !== undefined){if("branch" !== data.type){const err57 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/4/properties/type/const",keyword:"const",params:{allowedValue: "branch"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}if(data.branch !== undefined){let data20 = data.branch;if(typeof data20 === "string"){if(!pattern0.test(data20)){const err58 = {instancePath:instancePath+"/branch",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}else {const err59 = {instancePath:instancePath+"/branch",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}if(data.from !== undefined){let data21 = data.from;if(typeof data21 === "string"){if(!pattern0.test(data21)){const err60 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}else {const err61 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}}else {const err62 = {instancePath,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}else if(tag0 === "strip"){const _errs71 = errors;let valid27 = false;const _errs72 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.value === undefined){const err63 = {instancePath,schemaPath:"#/oneOf/5/anyOf/0/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}var _valid0 = _errs72 === errors;valid27 = valid27 || _valid0;if(!valid27){const _errs73 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag === undefined){const err64 = {instancePath,schemaPath:"#/oneOf/5/anyOf/1/required",keyword:"required",params:{missingProperty: "tag"},message:"must have required property '"+"tag"+"'"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}var _valid0 = _errs73 === errors;valid27 = valid27 || _valid0;}if(!valid27){const err65 = {instancePath,schemaPath:"#/oneOf/5/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}else {errors = _errs71;if(vErrors !== null){if(_errs71){vErrors.length = _errs71;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err66 = {instancePath,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}if(data.field === undefined){const err67 = {instancePath,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty: "field"},message:"must have required property '"+"field"+"'"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}for(const key5 in data){if(!((((key5 === "type") || (key5 === "field")) || (key5 === "value")) || (key5 === "tag"))){const err68 = {instancePath,schemaPath:"#/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}if(data.type !== undefined){if("strip" !== data.type){const err69 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/5/properties/type/const",keyword:"const",params:{allowedValue: "strip"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}if(data.field !== undefined){let data23 = data.field;if(typeof data23 === "string"){if(func3(data23) < 1){const err70 = {instancePath:instancePath+"/field",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}else {const err71 = {instancePath:instancePath+"/field",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}if(data.value !== undefined){let data24 = data.value;if(typeof data24 === "string"){if(func3(data24) < 1){const err72 = {instancePath:instancePath+"/value",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}else {const err73 = {instancePath:instancePath+"/value",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data.tag !== undefined){let data25 = data.tag;if(typeof data25 === "string"){if(func3(data25) < 1){const err74 = {instancePath:instancePath+"/tag",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}else {const err75 = {instancePath:instancePath+"/tag",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}}else {const err76 = {instancePath,schemaPath:"#/oneOf/5/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}else {const err77 = {instancePath,schemaPath:"#/discriminator",keyword:"discriminator",params:{error: "mapping", tag: "type", tagValue: tag0},message:"value of tag \"type\" must be in oneOf"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}else {const err78 = {instancePath,schemaPath:"#/discriminator",keyword:"discriminator",params:{error: "tag", tag: "type", tagValue: tag0},message:"tag \"type\" must be string"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}else {const err79 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}validate18.errors = vErrors;return errors === 0;}function validate17(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.title === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.body === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "body"},message:"must have required property '"+"body"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.events === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "events"},message:"must have required property '"+"events"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}for(const key0 in data){if(!((((key0 === "title") || (key0 === "body")) || (key0 === "code")) || (key0 === "events"))){const err3 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.title !== undefined){let data0 = data.title;if(typeof data0 === "string"){if(func3(data0) < 1){const err4 = {instancePath:instancePath+"/title",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath:instancePath+"/title",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.body !== undefined){let data1 = data.body;if(typeof data1 === "string"){if(func3(data1) < 1){const err6 = {instancePath:instancePath+"/body",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}else {const err7 = {instancePath:instancePath+"/body",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.code !== undefined){let data2 = data.code;if(typeof data2 === "string"){if(func3(data2) < 1){const err8 = {instancePath:instancePath+"/code",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/code",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.events !== undefined){let data3 = data.events;if(Array.isArray(data3)){const len0 = data3.length;for(let i0=0; i0<len0; i0++){if(!(validate18(data3[i0], {instancePath:instancePath+"/events/" + i0,parentData:data3,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate18.errors : vErrors.concat(validate18.errors);errors = vErrors.length;}}}else {const err10 = {instancePath:instancePath+"/events",schemaPath:"#/properties/events/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}else {const err11 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}validate17.errors = vErrors;return errors === 0;}const schema65 = {"description":"時系列図の種類の欄。生存線を左から並べる順","type":"object","additionalProperties":false,"required":["lifelines"],"properties":{"lifelines":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/id"}}}};function validate23(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.lifelines === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "lifelines"},message:"must have required property '"+"lifelines"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!(key0 === "lifelines")){const err1 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.lifelines !== undefined){let data0 = data.lifelines;if(Array.isArray(data0)){if(data0.length < 1){const err2 = {instancePath:instancePath+"/lifelines",schemaPath:"#/properties/lifelines/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}const len0 = data0.length;for(let i0=0; i0<len0; i0++){let data1 = data0[i0];if(typeof data1 === "string"){if(!pattern0.test(data1)){const err3 = {instancePath:instancePath+"/lifelines/" + i0,schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/lifelines/" + i0,schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {instancePath:instancePath+"/lifelines",schemaPath:"#/properties/lifelines/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}else {const err6 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}validate23.errors = vErrors;return errors === 0;}const schema67 = {"description":"状態遷移図の種類の欄。最初の段より前に書いた、移れるが段で通るとは限らない線","type":"object","additionalProperties":false,"required":["paths"],"properties":{"paths":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/path"}}}};const schema68 = {"description":"移れる道。送る側に始まりの印 start、受ける側に終わりの印 finish を書ける。どの段にも出ない道は点線で描き、運ぶ物を走らせない","type":"object","additionalProperties":false,"required":["from","to"],"properties":{"from":{"$ref":"#/definitions/id"},"to":{"$ref":"#/definitions/id"},"label":{"$ref":"#/definitions/text"}}};function validate26(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.from === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.to === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!(((key0 === "from") || (key0 === "to")) || (key0 === "label"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.from !== undefined){let data0 = data.from;if(typeof data0 === "string"){if(!pattern0.test(data0)){const err3 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.to !== undefined){let data1 = data.to;if(typeof data1 === "string"){if(!pattern0.test(data1)){const err5 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.label !== undefined){let data2 = data.label;if(typeof data2 === "string"){if(func3(data2) < 1){const err7 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}}else {const err9 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}validate26.errors = vErrors;return errors === 0;}function validate25(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.paths === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "paths"},message:"must have required property '"+"paths"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!(key0 === "paths")){const err1 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.paths !== undefined){let data0 = data.paths;if(Array.isArray(data0)){if(data0.length < 1){const err2 = {instancePath:instancePath+"/paths",schemaPath:"#/properties/paths/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}const len0 = data0.length;for(let i0=0; i0<len0; i0++){if(!(validate26(data0[i0], {instancePath:instancePath+"/paths/" + i0,parentData:data0,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate26.errors : vErrors.concat(validate26.errors);errors = vErrors.length;}}}else {const err3 = {instancePath:instancePath+"/paths",schemaPath:"#/properties/paths/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}}else {const err4 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}validate25.errors = vErrors;return errors === 0;}const schema72 = {"description":"枝分かれの図の種類の欄。枝を上から帯に並べる順","type":"object","additionalProperties":false,"required":["branches"],"properties":{"branches":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/branch"}}}};const schema73 = {"description":"枝。帯の左に名札と添え書きを置く","type":"object","additionalProperties":false,"required":["id"],"properties":{"id":{"$ref":"#/definitions/id"},"note":{"$ref":"#/definitions/text"}}};function validate30(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!((key0 === "id") || (key0 === "note"))){const err1 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!pattern0.test(data0)){const err2 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}else {const err3 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.note !== undefined){let data1 = data.note;if(typeof data1 === "string"){if(func3(data1) < 1){const err4 = {instancePath:instancePath+"/note",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath:instancePath+"/note",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}else {const err6 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}validate30.errors = vErrors;return errors === 0;}function validate29(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.branches === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "branches"},message:"must have required property '"+"branches"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!(key0 === "branches")){const err1 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.branches !== undefined){let data0 = data.branches;if(Array.isArray(data0)){if(data0.length < 1){const err2 = {instancePath:instancePath+"/branches",schemaPath:"#/properties/branches/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}const len0 = data0.length;for(let i0=0; i0<len0; i0++){if(!(validate30(data0[i0], {instancePath:instancePath+"/branches/" + i0,parentData:data0,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);errors = vErrors.length;}}}else {const err3 = {instancePath:instancePath+"/branches",schemaPath:"#/properties/branches/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}}else {const err4 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}validate29.errors = vErrors;return errors === 0;}function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs1 = errors;let valid0 = true;const _errs2 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.kind === undefined) && (missing0 = "kind")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.kind !== undefined){if("sequence" !== data.kind){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs2 === errors;errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}let ifClause0;if(_valid0){const _errs4 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.sequence === undefined){const err2 = {instancePath,schemaPath:"#/then/required",keyword:"required",params:{missingProperty: "sequence"},message:"must have required property '"+"sequence"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.boxes !== undefined){let data1 = data.boxes;if(Array.isArray(data1)){if(data1.length < 1){const err3 = {instancePath:instancePath+"/boxes",schemaPath:"#/then/properties/boxes/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}}if(data.steps !== undefined){let data2 = data.steps;if(Array.isArray(data2)){const len0 = data2.length;for(let i0=0; i0<len0; i0++){let data3 = data2[i0];if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.events !== undefined){let data4 = data3.events;if(Array.isArray(data4)){const len1 = data4.length;for(let i1=0; i1<len1; i1++){let data5 = data4[i1];if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.type !== undefined){let data6 = data5.type;const _errs12 = errors;const _errs13 = errors;if(!((data6 === "commit") || (data6 === "branch"))){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var valid10 = _errs13 === errors;if(valid10){const err5 = {instancePath:instancePath+"/steps/" + i0+"/events/" + i1+"/type",schemaPath:"#/definitions/plainSteps/items/properties/events/items/properties/type/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {errors = _errs12;if(vErrors !== null){if(_errs12){vErrors.length = _errs12;}else {vErrors = null;}}}}}}}}}}}}if(data.state !== undefined){const err6 = {instancePath:instancePath+"/state",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.git !== undefined){const err7 = {instancePath:instancePath+"/git",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}var _valid0 = _errs4 === errors;valid0 = _valid0;ifClause0 = "then";}else {const _errs20 = errors;const _errs21 = errors;let valid13 = true;const _errs22 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.kind === undefined) && (missing1 = "kind")){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data.kind !== undefined){if("state" !== data.kind){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}}var _valid1 = _errs22 === errors;errors = _errs21;if(vErrors !== null){if(_errs21){vErrors.length = _errs21;}else {vErrors = null;}}let ifClause1;if(_valid1){const _errs24 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.boxes !== undefined){let data10 = data.boxes;if(Array.isArray(data10)){if(data10.length < 1){const err10 = {instancePath:instancePath+"/boxes",schemaPath:"#/else/then/properties/boxes/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len2 = data10.length;for(let i2=0; i2<len2; i2++){let data11 = data10[i2];if(data11 && typeof data11 == "object" && !Array.isArray(data11)){if(data11.id !== undefined){let data12 = data11.id;const _errs28 = errors;const _errs29 = errors;if(!((data12 === "start") || (data12 === "finish"))){const err11 = {};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid19 = _errs29 === errors;if(valid19){const err12 = {instancePath:instancePath+"/boxes/" + i2+"/id",schemaPath:"#/else/then/properties/boxes/items/properties/id/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}else {errors = _errs28;if(vErrors !== null){if(_errs28){vErrors.length = _errs28;}else {vErrors = null;}}}}}}}}if(data.steps !== undefined){let data13 = data.steps;if(Array.isArray(data13)){const len3 = data13.length;for(let i3=0; i3<len3; i3++){let data14 = data13[i3];if(data14 && typeof data14 == "object" && !Array.isArray(data14)){if(data14.events !== undefined){let data15 = data14.events;if(Array.isArray(data15)){const len4 = data15.length;for(let i4=0; i4<len4; i4++){let data16 = data15[i4];if(data16 && typeof data16 == "object" && !Array.isArray(data16)){if(data16.type !== undefined){let data17 = data16.type;const _errs36 = errors;const _errs37 = errors;if(!((data17 === "commit") || (data17 === "branch"))){const err13 = {};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var valid27 = _errs37 === errors;if(valid27){const err14 = {instancePath:instancePath+"/steps/" + i3+"/events/" + i4+"/type",schemaPath:"#/definitions/plainSteps/items/properties/events/items/properties/type/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}else {errors = _errs36;if(vErrors !== null){if(_errs36){vErrors.length = _errs36;}else {vErrors = null;}}}}}}}}}}}}if(data.git !== undefined){const err15 = {instancePath:instancePath+"/git",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var _valid1 = _errs24 === errors;valid13 = _valid1;ifClause1 = "then";}else {const _errs41 = errors;const _errs42 = errors;let valid29 = true;const _errs43 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((data.kind === undefined) && (missing2 = "kind")){const err16 = {};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {if(data.kind !== undefined){if("git" !== data.kind){const err17 = {};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}}var _valid2 = _errs43 === errors;errors = _errs42;if(vErrors !== null){if(_errs42){vErrors.length = _errs42;}else {vErrors = null;}}let ifClause2;if(_valid2){const _errs45 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.git === undefined){const err18 = {instancePath,schemaPath:"#/else/else/then/required",keyword:"required",params:{missingProperty: "git"},message:"must have required property '"+"git"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data.state !== undefined){const err19 = {instancePath:instancePath+"/state",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data.regions !== undefined){const err20 = {instancePath:instancePath+"/regions",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}var _valid2 = _errs45 === errors;valid29 = _valid2;ifClause2 = "then";}else {const _errs52 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.boxes !== undefined){let data22 = data.boxes;if(Array.isArray(data22)){if(data22.length < 1){const err21 = {instancePath:instancePath+"/boxes",schemaPath:"#/else/else/else/properties/boxes/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}if(data.steps !== undefined){let data23 = data.steps;if(Array.isArray(data23)){const len5 = data23.length;for(let i5=0; i5<len5; i5++){let data24 = data23[i5];if(data24 && typeof data24 == "object" && !Array.isArray(data24)){if(data24.events !== undefined){let data25 = data24.events;if(Array.isArray(data25)){const len6 = data25.length;for(let i6=0; i6<len6; i6++){let data26 = data25[i6];if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if(data26.type !== undefined){let data27 = data26.type;const _errs60 = errors;const _errs61 = errors;if(!((data27 === "commit") || (data27 === "branch"))){const err22 = {};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid42 = _errs61 === errors;if(valid42){const err23 = {instancePath:instancePath+"/steps/" + i5+"/events/" + i6+"/type",schemaPath:"#/definitions/plainSteps/items/properties/events/items/properties/type/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}else {errors = _errs60;if(vErrors !== null){if(_errs60){vErrors.length = _errs60;}else {vErrors = null;}}}}}}}}}}}}if(data.state !== undefined){const err24 = {instancePath:instancePath+"/state",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if(data.git !== undefined){const err25 = {instancePath:instancePath+"/git",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}var _valid2 = _errs52 === errors;valid29 = _valid2;ifClause2 = "else";}if(!valid29){const err26 = {instancePath,schemaPath:"#/else/else/if",keyword:"if",params:{failingKeyword: ifClause2},message:"must match \""+ifClause2+"\" schema"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var _valid1 = _errs41 === errors;valid13 = _valid1;ifClause1 = "else";}if(!valid13){const err27 = {instancePath,schemaPath:"#/else/if",keyword:"if",params:{failingKeyword: ifClause1},message:"must match \""+ifClause1+"\" schema"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.sequence !== undefined){const err28 = {instancePath:instancePath+"/sequence",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}var _valid0 = _errs20 === errors;valid0 = _valid0;ifClause0 = "else";}if(!valid0){const err29 = {instancePath,schemaPath:"#/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.version === undefined){const err30 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "version"},message:"must have required property '"+"version"+"'"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if(data.kind === undefined){const err31 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(data.title === undefined){const err32 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if(data.boxes === undefined){const err33 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "boxes"},message:"must have required property '"+"boxes"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data.steps === undefined){const err34 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "steps"},message:"must have required property '"+"steps"+"'"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}for(const key0 in data){if(!(func2.call(schema11.properties, key0))){const err35 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}if(data.version !== undefined){let data31 = data.version;if(!(((typeof data31 == "number") && (!(data31 % 1) && !isNaN(data31))) && (isFinite(data31)))){const err36 = {instancePath:instancePath+"/version",schemaPath:"#/properties/version/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if((typeof data31 == "number") && (isFinite(data31))){if(data31 < 1 || isNaN(data31)){const err37 = {instancePath:instancePath+"/version",schemaPath:"#/properties/version/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}if(data.kind !== undefined){let data32 = data.kind;if(!((((data32 === "sequence") || (data32 === "architecture")) || (data32 === "state")) || (data32 === "git"))){const err38 = {instancePath:instancePath+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues: schema11.properties.kind.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}if(data.title !== undefined){let data33 = data.title;if(typeof data33 === "string"){if(func3(data33) < 1){const err39 = {instancePath:instancePath+"/title",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}else {const err40 = {instancePath:instancePath+"/title",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}if(data.view !== undefined){let data34 = data.view;if(!((data34 === "fixed") || (data34 === "follow"))){const err41 = {instancePath:instancePath+"/view",schemaPath:"#/properties/view/enum",keyword:"enum",params:{allowedValues: schema11.properties.view.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}if(data.regions !== undefined){let data35 = data.regions;if(Array.isArray(data35)){const len7 = data35.length;for(let i7=0; i7<len7; i7++){if(!(validate11(data35[i7], {instancePath:instancePath+"/regions/" + i7,parentData:data35,parentDataProperty:i7,rootData}))){vErrors = vErrors === null ? validate11.errors : vErrors.concat(validate11.errors);errors = vErrors.length;}}}else {const err42 = {instancePath:instancePath+"/regions",schemaPath:"#/properties/regions/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data.boxes !== undefined){let data37 = data.boxes;if(Array.isArray(data37)){const len8 = data37.length;for(let i8=0; i8<len8; i8++){if(!(validate13(data37[i8], {instancePath:instancePath+"/boxes/" + i8,parentData:data37,parentDataProperty:i8,rootData}))){vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);errors = vErrors.length;}}}else {const err43 = {instancePath:instancePath+"/boxes",schemaPath:"#/properties/boxes/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}if(data.strip !== undefined){if(!(validate15(data.strip, {instancePath:instancePath+"/strip",parentData:data,parentDataProperty:"strip",rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}}if(data.steps !== undefined){let data40 = data.steps;if(Array.isArray(data40)){if(data40.length < 1){const err44 = {instancePath:instancePath+"/steps",schemaPath:"#/properties/steps/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}const len9 = data40.length;for(let i9=0; i9<len9; i9++){if(!(validate17(data40[i9], {instancePath:instancePath+"/steps/" + i9,parentData:data40,parentDataProperty:i9,rootData}))){vErrors = vErrors === null ? validate17.errors : vErrors.concat(validate17.errors);errors = vErrors.length;}}}else {const err45 = {instancePath:instancePath+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}if(data.sequence !== undefined){if(!(validate23(data.sequence, {instancePath:instancePath+"/sequence",parentData:data,parentDataProperty:"sequence",rootData}))){vErrors = vErrors === null ? validate23.errors : vErrors.concat(validate23.errors);errors = vErrors.length;}}if(data.state !== undefined){if(!(validate25(data.state, {instancePath:instancePath+"/state",parentData:data,parentDataProperty:"state",rootData}))){vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);errors = vErrors.length;}}if(data.git !== undefined){if(!(validate29(data.git, {instancePath:instancePath+"/git",parentData:data,parentDataProperty:"git",rootData}))){vErrors = vErrors === null ? validate29.errors : vErrors.concat(validate29.errors);errors = vErrors.length;}}}else {const err46 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}validate10.errors = vErrors;return errors === 0;}
|
|
8
|
+
export const validate = validate10;export default validate10;const schema11 = {"title":"dragon の図の原本","description":"区画、箱、線、運ぶ物、段、中身の帯の 6 部品を共通の骨組みに置き、図の種類だけの物は種類の欄に置く。座標は持たない。箱は枝分かれの図と時間軸の図だけが持たなくてよい。","type":"object","additionalProperties":false,"required":["version","kind","title","boxes","steps"],"properties":{"version":{"description":"形式の版","type":"integer","minimum":1},"kind":{"description":"図の種類","enum":["sequence","architecture","state","git","time"]},"title":{"$ref":"#/definitions/text"},"view":{"description":"見せ方。書かなければ字の大きさで選ぶ。fixed は全体を止めて中だけ動かし、follow は寄って動かし全体図で今どこかを示す","enum":["fixed","follow"]},"regions":{"type":"array","items":{"$ref":"#/definitions/region"}},"boxes":{"type":"array","items":{"$ref":"#/definitions/box"}},"strip":{"$ref":"#/definitions/strip"},"steps":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/step"}},"sequence":{"$ref":"#/definitions/sequence"},"state":{"$ref":"#/definitions/state"},"git":{"$ref":"#/definitions/git"},"time":{"$ref":"#/definitions/time"}},"if":{"required":["kind"],"properties":{"kind":{"const":"sequence"}}},"then":{"required":["sequence"],"properties":{"boxes":{"minItems":1},"steps":{"$ref":"#/definitions/plainSteps"},"strip":{"$ref":"#/definitions/plainStrip"},"state":{"$ref":"#/definitions/absent"},"git":{"$ref":"#/definitions/absent"},"time":{"$ref":"#/definitions/absent"}}},"else":{"properties":{"sequence":{"$ref":"#/definitions/absent"}},"if":{"required":["kind"],"properties":{"kind":{"const":"state"}}},"then":{"properties":{"boxes":{"minItems":1,"items":{"properties":{"id":{"description":"始まりと終わりの印の名前は箱の名札に使えない","not":{"enum":["start","finish"]}}}}},"steps":{"$ref":"#/definitions/plainSteps"},"strip":{"$ref":"#/definitions/plainStrip"},"git":{"$ref":"#/definitions/absent"},"time":{"$ref":"#/definitions/absent"}}},"else":{"if":{"required":["kind"],"properties":{"kind":{"const":"git"}}},"then":{"required":["git"],"properties":{"steps":{"$ref":"#/definitions/gitSteps"},"strip":{"$ref":"#/definitions/plainStrip"},"state":{"$ref":"#/definitions/absent"},"regions":{"$ref":"#/definitions/absent"},"time":{"$ref":"#/definitions/absent"}}},"else":{"if":{"required":["kind"],"properties":{"kind":{"const":"time"}}},"then":{"required":["time"],"properties":{"steps":{"$ref":"#/definitions/timeSteps"},"state":{"$ref":"#/definitions/absent"},"git":{"$ref":"#/definitions/absent"},"regions":{"$ref":"#/definitions/absent"}}},"else":{"properties":{"boxes":{"minItems":1},"steps":{"$ref":"#/definitions/plainSteps"},"strip":{"$ref":"#/definitions/plainStrip"},"state":{"$ref":"#/definitions/absent"},"git":{"$ref":"#/definitions/absent"},"time":{"$ref":"#/definitions/absent"}}}}}},"definitions":{"text":{"type":"string","minLength":1},"absent":{"description":"この図の種類では書けない欄","not":{}},"plainSteps":{"description":"枝分かれの図でも時間軸の図でもない図の段。枝分かれの図だけの出来事 (commit と branch) と、時間軸の図だけの出来事 (now と mark と span) と欄 (at と into と color) を書けない","items":{"properties":{"events":{"items":{"not":{"$ref":"#/definitions/timeEvent"},"properties":{"type":{"not":{"enum":["commit","branch"]}},"at":{"$ref":"#/definitions/absent"},"into":{"$ref":"#/definitions/absent"},"color":{"$ref":"#/definitions/absent"}}}}}}},"gitSteps":{"description":"枝分かれの図の段。時間軸の図だけの出来事 (now と mark と span) と欄 (at と into と color) を書けない","items":{"properties":{"events":{"items":{"not":{"$ref":"#/definitions/timeEvent"},"properties":{"at":{"$ref":"#/definitions/absent"},"into":{"$ref":"#/definitions/absent"},"color":{"$ref":"#/definitions/absent"}}}}}}},"timeSteps":{"description":"時間軸の図の段。枝分かれの図だけの出来事 (commit と branch) を書けない","items":{"properties":{"events":{"items":{"properties":{"type":{"not":{"enum":["commit","branch"]}}}}}}}},"timeEvent":{"description":"時間軸の図だけが書ける出来事","required":["type"],"properties":{"type":{"enum":["now","mark","span"]}}},"plainStrip":{"description":"時間軸の図でない図の中身の帯。物差しを書けない","properties":{"meters":{"$ref":"#/definitions/absent"}}},"id":{"type":"string","pattern":"^[^\\s\\[\\]「」=:]+$"},"color":{"enum":["blue","amber","green","violet","rose","slate","coin"]},"region":{"type":"object","additionalProperties":false,"required":["id","name"],"properties":{"id":{"$ref":"#/definitions/id"},"name":{"$ref":"#/definitions/text"},"note":{"$ref":"#/definitions/text"},"color":{"$ref":"#/definitions/color"},"icon":{"$ref":"#/definitions/text"}}},"box":{"type":"object","additionalProperties":false,"required":["id","name"],"properties":{"id":{"$ref":"#/definitions/id"},"name":{"$ref":"#/definitions/text"},"sub":{"$ref":"#/definitions/text"},"color":{"$ref":"#/definitions/color"},"icon":{"$ref":"#/definitions/text"},"region":{"$ref":"#/definitions/id"},"link":{"description":"飛び先。描いた図ではこの箱がここへの link になる","$ref":"#/definitions/url"}}},"strip":{"type":"object","additionalProperties":false,"required":["title","fields"],"properties":{"title":{"$ref":"#/definitions/text"},"fields":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/text"}},"meters":{"description":"物差しにする欄。時間軸の図だけが書ける","type":"array","minItems":1,"items":{"$ref":"#/definitions/meter"}}}},"meter":{"description":"物差しの欄。line の割合の所に線を引き、set の値まで針と一緒に満ちる","type":"object","additionalProperties":false,"required":["field","line"],"properties":{"field":{"$ref":"#/definitions/text"},"line":{"$ref":"#/definitions/ratio"}}},"ratio":{"description":"割合。分数 (2/3) か百分率 (97%)","type":"string","pattern":"^([0-9]+/[0-9]+|[0-9]+(\\.[0-9]+)?%)$"},"step":{"type":"object","additionalProperties":false,"required":["title","body","events"],"properties":{"title":{"$ref":"#/definitions/text"},"body":{"$ref":"#/definitions/text"},"code":{"$ref":"#/definitions/text"},"sources":{"description":"段の出典。読み上げの段の一覧に、名前を URL への link にして書いた順に出す","type":"array","minItems":1,"items":{"$ref":"#/definitions/source"}},"events":{"type":"array","items":{"$ref":"#/definitions/event"}}}},"source":{"type":"object","additionalProperties":false,"required":["name","url"],"properties":{"name":{"$ref":"#/definitions/text"},"url":{"$ref":"#/definitions/url"}}},"url":{"description":"頁を移る形。/ で始まる path か、http:// か https:// で始まる URL","type":"string","pattern":"^(/|https?://)"},"event":{"description":"段の中で起きること。起きる順に並べる","type":"object","required":["type"],"discriminator":{"propertyName":"type"},"oneOf":[{"description":"線。運ぶ物を載せて送る側から受ける側へ走る","type":"object","additionalProperties":false,"required":["type","from","to","carry"],"properties":{"type":{"const":"edge"},"from":{"$ref":"#/definitions/id"},"to":{"$ref":"#/definitions/id"},"label":{"$ref":"#/definitions/text"},"carry":{"$ref":"#/definitions/carry"},"labelSide":{"description":"線の名前を置く側 (寄せの指示)","enum":["above","below","left","right"]},"at":{"description":"時間軸の図の拡大の帯で、線を引く列の目盛り","$ref":"#/definitions/unit"},"into":{"description":"時間軸の図の拡大の帯で、受ける箱を選ぶ列の目盛り。書かなければ at の列","$ref":"#/definitions/unit"}}},{"description":"箱の中の処理","type":"object","additionalProperties":false,"required":["type","box","label"],"properties":{"type":{"const":"action"},"box":{"$ref":"#/definitions/id"},"label":{"$ref":"#/definitions/text"}}},{"description":"箱の下の小さな字の書き換え","type":"object","additionalProperties":false,"required":["type","box","text"],"properties":{"type":{"const":"swap"},"box":{"$ref":"#/definitions/id"},"text":{"$ref":"#/definitions/text"},"color":{"description":"時間軸の図の節目の丸の色","$ref":"#/definitions/color"}}},{"description":"commit を積む。枝分かれの図だけが書ける。積んだ枝の札と、その枝を指す HEAD が進む。当て直し (copy) は枝の札を動かさず、merge commit (merge) は取り込む枝の先端も親に持つ","type":"object","additionalProperties":false,"required":["type","id","branch"],"properties":{"type":{"const":"commit"},"id":{"$ref":"#/definitions/id"},"branch":{"$ref":"#/definitions/id"},"copy":{"$ref":"#/definitions/id"},"merge":{"$ref":"#/definitions/id"},"hash":{"$ref":"#/definitions/hash"},"note":{"$ref":"#/definitions/text"}}},{"description":"枝を切る。枝分かれの図だけが書ける。枝の札を from の commit へ置き、HEAD をその枝へ移す","type":"object","additionalProperties":false,"required":["type","branch","from"],"properties":{"type":{"const":"branch"},"branch":{"$ref":"#/definitions/id"},"from":{"$ref":"#/definitions/id"}}},{"description":"時間軸の図の今の時刻の針を、to の目盛りの終わりまで進める","type":"object","additionalProperties":false,"required":["type","to"],"properties":{"type":{"const":"now"},"to":{"$ref":"#/definitions/unit"}}},{"description":"時間軸の図の印の列 row の、from から to の目盛りの印の色を変える","type":"object","additionalProperties":false,"required":["type","row","from","to","color"],"properties":{"type":{"const":"mark"},"row":{"$ref":"#/definitions/id"},"from":{"$ref":"#/definitions/unit"},"to":{"$ref":"#/definitions/unit"},"color":{"$ref":"#/definitions/color"}}},{"description":"時間軸の図の from から to の目盛りに、括弧と字を出す。shape が box なら印の列を囲み、字を縁の札にする","type":"object","additionalProperties":false,"required":["type","from","to","text"],"properties":{"type":{"const":"span"},"from":{"$ref":"#/definitions/unit"},"to":{"$ref":"#/definitions/unit"},"text":{"$ref":"#/definitions/text"},"shape":{"enum":["box"]},"color":{"$ref":"#/definitions/color"}}},{"description":"中身の帯の欄の値と札","type":"object","additionalProperties":false,"required":["type","field"],"anyOf":[{"required":["value"]},{"required":["tag"]}],"properties":{"type":{"const":"strip"},"field":{"$ref":"#/definitions/text"},"value":{"$ref":"#/definitions/text"},"tag":{"$ref":"#/definitions/text"}}}]},"carry":{"description":"線の上を走る物。封筒 (メッセージや要求)、札 (名前のある値)、硬貨 (価値)、無し","type":"object","additionalProperties":false,"required":["kind"],"properties":{"kind":{"enum":["envelope","tag","coin","none"]},"text":{"$ref":"#/definitions/text"}},"if":{"required":["kind"],"properties":{"kind":{"const":"tag"}}},"then":{"required":["text"]},"else":{"not":{"required":["text"]}}},"sequence":{"description":"時系列図の種類の欄。生存線を左から並べる順","type":"object","additionalProperties":false,"required":["lifelines"],"properties":{"lifelines":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/id"}}}},"state":{"description":"状態遷移図の種類の欄。最初の段より前に書いた、移れるが段で通るとは限らない線","type":"object","additionalProperties":false,"required":["paths"],"properties":{"paths":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/path"}}}},"git":{"description":"枝分かれの図の種類の欄。枝を上から帯に並べる順","type":"object","additionalProperties":false,"required":["branches"],"properties":{"branches":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/branch"}}}},"branch":{"description":"枝。帯の左に名札と添え書きを置く","type":"object","additionalProperties":false,"required":["id"],"properties":{"id":{"$ref":"#/definitions/id"},"note":{"$ref":"#/definitions/text"}}},"hash":{"description":"commit の hash。16 進の字で 4 から 40 字","type":"string","pattern":"^[0-9a-f]{4,40}$"},"time":{"description":"時間軸の図の種類の欄。目盛り、区切り、印の列、節目、拡大の範囲","type":"object","additionalProperties":false,"required":["scale","rows"],"properties":{"scale":{"$ref":"#/definitions/scale"},"period":{"$ref":"#/definitions/period"},"rows":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/row"}},"points":{"type":"array","items":{"$ref":"#/definitions/point"}},"zoom":{"$ref":"#/definitions/zoom"}}},"scale":{"description":"目盛り。unit の名前の目盛りを length の長さで count 個並べ、最初の目盛りの番号を from にする","type":"object","additionalProperties":false,"required":["unit","length","count"],"properties":{"unit":{"$ref":"#/definitions/text"},"length":{"$ref":"#/definitions/duration"},"count":{"type":"integer","minimum":1},"from":{"type":"integer","minimum":0}}},"duration":{"description":"長さ。数と単位 (ms、s、min、h、d) の組","type":"string","pattern":"^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$"},"unit":{"description":"目盛りの位置。0 から数える","type":"integer","minimum":0},"period":{"description":"区切り。目盛り length 個ごとに name の区切りを置き、最初の区切りの番号を from にする","type":"object","additionalProperties":false,"required":["name","length"],"properties":{"name":{"$ref":"#/definitions/text"},"length":{"type":"integer","minimum":1},"from":{"type":"integer","minimum":0}}},"row":{"description":"印の列。目盛りごとに印を 1 つ置き、empty の目盛りは空きの印にする","type":"object","additionalProperties":false,"required":["id","name"],"properties":{"id":{"$ref":"#/definitions/id"},"name":{"$ref":"#/definitions/text"},"color":{"$ref":"#/definitions/color"},"empty":{"type":"array","items":{"$ref":"#/definitions/unit"}}}},"point":{"description":"節目。at の目盛りの印の下に旗の丸と名札を置く","type":"object","additionalProperties":false,"required":["id","at"],"properties":{"id":{"$ref":"#/definitions/id"},"at":{"$ref":"#/definitions/unit"}}},"zoom":{"description":"拡大の範囲。from から to の目盛りごとに拡大の帯に列を作る","type":"object","additionalProperties":false,"required":["from","to"],"properties":{"from":{"$ref":"#/definitions/unit"},"to":{"$ref":"#/definitions/unit"}}},"path":{"description":"移れる道。送る側に始まりの印 start、受ける側に終わりの印 finish を書ける。どの段にも出ない道は点線で描き、運ぶ物を走らせない","type":"object","additionalProperties":false,"required":["from","to"],"properties":{"from":{"$ref":"#/definitions/id"},"to":{"$ref":"#/definitions/id"},"label":{"$ref":"#/definitions/text"}}}}};const schema14 = {"description":"この図の種類では書けない欄","not":{}};const schema32 = {"description":"時間軸の図の段。枝分かれの図だけの出来事 (commit と branch) を書けない","items":{"properties":{"events":{"items":{"properties":{"type":{"not":{"enum":["commit","branch"]}}}}}}}};const schema40 = {"type":"string","minLength":1};const schema12 = {"description":"枝分かれの図でも時間軸の図でもない図の段。枝分かれの図だけの出来事 (commit と branch) と、時間軸の図だけの出来事 (now と mark と span) と欄 (at と into と color) を書けない","items":{"properties":{"events":{"items":{"not":{"$ref":"#/definitions/timeEvent"},"properties":{"type":{"not":{"enum":["commit","branch"]}},"at":{"$ref":"#/definitions/absent"},"into":{"$ref":"#/definitions/absent"},"color":{"$ref":"#/definitions/absent"}}}}}}};const schema13 = {"description":"時間軸の図だけが書ける出来事","required":["type"],"properties":{"type":{"enum":["now","mark","span"]}}};function validate11(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.events !== undefined){let data1 = data0.events;if(Array.isArray(data1)){const len1 = data1.length;for(let i1=0; i1<len1; i1++){let data2 = data1[i1];const _errs3 = errors;const _errs4 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing0;if((data2.type === undefined) && (missing0 = "type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data2.type !== undefined){let data3 = data2.type;if(!(((data3 === "now") || (data3 === "mark")) || (data3 === "span"))){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var valid5 = _errs4 === errors;if(valid5){const err2 = {instancePath:instancePath+"/" + i0+"/events/" + i1,schemaPath:"#/items/properties/events/items/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.type !== undefined){let data4 = data2.type;const _errs8 = errors;const _errs9 = errors;if(!((data4 === "commit") || (data4 === "branch"))){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid9 = _errs9 === errors;if(valid9){const err4 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/type",schemaPath:"#/items/properties/events/items/properties/type/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}}if(data2.at !== undefined){const err5 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/at",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data2.into !== undefined){const err6 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/into",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data2.color !== undefined){const err7 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/color",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}}}}}}validate11.errors = vErrors;return errors === 0;}const schema17 = {"description":"時間軸の図でない図の中身の帯。物差しを書けない","properties":{"meters":{"$ref":"#/definitions/absent"}}};function validate13(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.meters !== undefined){const err0 = {instancePath:instancePath+"/meters",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}validate13.errors = vErrors;return errors === 0;}const schema24 = {"description":"枝分かれの図の段。時間軸の図だけの出来事 (now と mark と span) と欄 (at と into と color) を書けない","items":{"properties":{"events":{"items":{"not":{"$ref":"#/definitions/timeEvent"},"properties":{"at":{"$ref":"#/definitions/absent"},"into":{"$ref":"#/definitions/absent"},"color":{"$ref":"#/definitions/absent"}}}}}}};function validate17(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.events !== undefined){let data1 = data0.events;if(Array.isArray(data1)){const len1 = data1.length;for(let i1=0; i1<len1; i1++){let data2 = data1[i1];const _errs3 = errors;const _errs4 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing0;if((data2.type === undefined) && (missing0 = "type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data2.type !== undefined){let data3 = data2.type;if(!(((data3 === "now") || (data3 === "mark")) || (data3 === "span"))){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var valid5 = _errs4 === errors;if(valid5){const err2 = {instancePath:instancePath+"/" + i0+"/events/" + i1,schemaPath:"#/items/properties/events/items/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.at !== undefined){const err3 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/at",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data2.into !== undefined){const err4 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/into",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data2.color !== undefined){const err5 = {instancePath:instancePath+"/" + i0+"/events/" + i1+"/color",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}}}}}}validate17.errors = vErrors;return errors === 0;}const schema41 = {"type":"object","additionalProperties":false,"required":["id","name"],"properties":{"id":{"$ref":"#/definitions/id"},"name":{"$ref":"#/definitions/text"},"note":{"$ref":"#/definitions/text"},"color":{"$ref":"#/definitions/color"},"icon":{"$ref":"#/definitions/text"}}};const schema42 = {"type":"string","pattern":"^[^\\s\\[\\]「」=:]+$"};const schema45 = {"enum":["blue","amber","green","violet","rose","slate","coin"]};const pattern0 = new RegExp("^[^\\s\\[\\]「」=:]+$", "u");const func3 = ucs2length;function validate22(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.name === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!(((((key0 === "id") || (key0 === "name")) || (key0 === "note")) || (key0 === "color")) || (key0 === "icon"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!pattern0.test(data0)){const err3 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.name !== undefined){let data1 = data.name;if(typeof data1 === "string"){if(func3(data1) < 1){const err5 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.note !== undefined){let data2 = data.note;if(typeof data2 === "string"){if(func3(data2) < 1){const err7 = {instancePath:instancePath+"/note",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/note",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.color !== undefined){let data3 = data.color;if(!(((((((data3 === "blue") || (data3 === "amber")) || (data3 === "green")) || (data3 === "violet")) || (data3 === "rose")) || (data3 === "slate")) || (data3 === "coin"))){const err9 = {instancePath:instancePath+"/color",schemaPath:"#/definitions/color/enum",keyword:"enum",params:{allowedValues: schema45.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.icon !== undefined){let data4 = data.icon;if(typeof data4 === "string"){if(func3(data4) < 1){const err10 = {instancePath:instancePath+"/icon",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}else {const err11 = {instancePath:instancePath+"/icon",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}else {const err12 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}validate22.errors = vErrors;return errors === 0;}const schema47 = {"type":"object","additionalProperties":false,"required":["id","name"],"properties":{"id":{"$ref":"#/definitions/id"},"name":{"$ref":"#/definitions/text"},"sub":{"$ref":"#/definitions/text"},"color":{"$ref":"#/definitions/color"},"icon":{"$ref":"#/definitions/text"},"region":{"$ref":"#/definitions/id"},"link":{"description":"飛び先。描いた図ではこの箱がここへの link になる","$ref":"#/definitions/url"}}};const schema54 = {"description":"頁を移る形。/ で始まる path か、http:// か https:// で始まる URL","type":"string","pattern":"^(/|https?://)"};const pattern3 = new RegExp("^(/|https?://)", "u");function validate24(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.name === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!(((((((key0 === "id") || (key0 === "name")) || (key0 === "sub")) || (key0 === "color")) || (key0 === "icon")) || (key0 === "region")) || (key0 === "link"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!pattern0.test(data0)){const err3 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.name !== undefined){let data1 = data.name;if(typeof data1 === "string"){if(func3(data1) < 1){const err5 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.sub !== undefined){let data2 = data.sub;if(typeof data2 === "string"){if(func3(data2) < 1){const err7 = {instancePath:instancePath+"/sub",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/sub",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.color !== undefined){let data3 = data.color;if(!(((((((data3 === "blue") || (data3 === "amber")) || (data3 === "green")) || (data3 === "violet")) || (data3 === "rose")) || (data3 === "slate")) || (data3 === "coin"))){const err9 = {instancePath:instancePath+"/color",schemaPath:"#/definitions/color/enum",keyword:"enum",params:{allowedValues: schema45.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.icon !== undefined){let data4 = data.icon;if(typeof data4 === "string"){if(func3(data4) < 1){const err10 = {instancePath:instancePath+"/icon",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}else {const err11 = {instancePath:instancePath+"/icon",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data.region !== undefined){let data5 = data.region;if(typeof data5 === "string"){if(!pattern0.test(data5)){const err12 = {instancePath:instancePath+"/region",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/region",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data.link !== undefined){let data6 = data.link;if(typeof data6 === "string"){if(!pattern3.test(data6)){const err14 = {instancePath:instancePath+"/link",schemaPath:"#/definitions/url/pattern",keyword:"pattern",params:{pattern: "^(/|https?://)"},message:"must match pattern \""+"^(/|https?://)"+"\""};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/link",schemaPath:"#/definitions/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}validate24.errors = vErrors;return errors === 0;}const schema55 = {"type":"object","additionalProperties":false,"required":["title","fields"],"properties":{"title":{"$ref":"#/definitions/text"},"fields":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/text"}},"meters":{"description":"物差しにする欄。時間軸の図だけが書ける","type":"array","minItems":1,"items":{"$ref":"#/definitions/meter"}}}};const schema58 = {"description":"物差しの欄。line の割合の所に線を引き、set の値まで針と一緒に満ちる","type":"object","additionalProperties":false,"required":["field","line"],"properties":{"field":{"$ref":"#/definitions/text"},"line":{"$ref":"#/definitions/ratio"}}};const schema60 = {"description":"割合。分数 (2/3) か百分率 (97%)","type":"string","pattern":"^([0-9]+/[0-9]+|[0-9]+(\\.[0-9]+)?%)$"};const pattern4 = new RegExp("^([0-9]+/[0-9]+|[0-9]+(\\.[0-9]+)?%)$", "u");function validate27(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.field === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "field"},message:"must have required property '"+"field"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.line === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "line"},message:"must have required property '"+"line"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "field") || (key0 === "line"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.field !== undefined){let data0 = data.field;if(typeof data0 === "string"){if(func3(data0) < 1){const err3 = {instancePath:instancePath+"/field",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/field",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.line !== undefined){let data1 = data.line;if(typeof data1 === "string"){if(!pattern4.test(data1)){const err5 = {instancePath:instancePath+"/line",schemaPath:"#/definitions/ratio/pattern",keyword:"pattern",params:{pattern: "^([0-9]+/[0-9]+|[0-9]+(\\.[0-9]+)?%)$"},message:"must match pattern \""+"^([0-9]+/[0-9]+|[0-9]+(\\.[0-9]+)?%)$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/line",schemaPath:"#/definitions/ratio/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}else {const err7 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}validate27.errors = vErrors;return errors === 0;}function validate26(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.title === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.fields === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "fields"},message:"must have required property '"+"fields"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!(((key0 === "title") || (key0 === "fields")) || (key0 === "meters"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.title !== undefined){let data0 = data.title;if(typeof data0 === "string"){if(func3(data0) < 1){const err3 = {instancePath:instancePath+"/title",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/title",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.fields !== undefined){let data1 = data.fields;if(Array.isArray(data1)){if(data1.length < 1){const err5 = {instancePath:instancePath+"/fields",schemaPath:"#/properties/fields/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];if(typeof data2 === "string"){if(func3(data2) < 1){const err6 = {instancePath:instancePath+"/fields/" + i0,schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}else {const err7 = {instancePath:instancePath+"/fields/" + i0,schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}else {const err8 = {instancePath:instancePath+"/fields",schemaPath:"#/properties/fields/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.meters !== undefined){let data3 = data.meters;if(Array.isArray(data3)){if(data3.length < 1){const err9 = {instancePath:instancePath+"/meters",schemaPath:"#/properties/meters/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}const len1 = data3.length;for(let i1=0; i1<len1; i1++){if(!(validate27(data3[i1], {instancePath:instancePath+"/meters/" + i1,parentData:data3,parentDataProperty:i1,rootData}))){vErrors = vErrors === null ? validate27.errors : vErrors.concat(validate27.errors);errors = vErrors.length;}}}else {const err10 = {instancePath:instancePath+"/meters",schemaPath:"#/properties/meters/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}else {const err11 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}validate26.errors = vErrors;return errors === 0;}const schema61 = {"type":"object","additionalProperties":false,"required":["title","body","events"],"properties":{"title":{"$ref":"#/definitions/text"},"body":{"$ref":"#/definitions/text"},"code":{"$ref":"#/definitions/text"},"sources":{"description":"段の出典。読み上げの段の一覧に、名前を URL への link にして書いた順に出す","type":"array","minItems":1,"items":{"$ref":"#/definitions/source"}},"events":{"type":"array","items":{"$ref":"#/definitions/event"}}}};const schema65 = {"type":"object","additionalProperties":false,"required":["name","url"],"properties":{"name":{"$ref":"#/definitions/text"},"url":{"$ref":"#/definitions/url"}}};function validate31(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.url === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "name") || (key0 === "url"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.name !== undefined){let data0 = data.name;if(typeof data0 === "string"){if(func3(data0) < 1){const err3 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.url !== undefined){let data1 = data.url;if(typeof data1 === "string"){if(!pattern3.test(data1)){const err5 = {instancePath:instancePath+"/url",schemaPath:"#/definitions/url/pattern",keyword:"pattern",params:{pattern: "^(/|https?://)"},message:"must match pattern \""+"^(/|https?://)"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/url",schemaPath:"#/definitions/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}else {const err7 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}validate31.errors = vErrors;return errors === 0;}const schema68 = {"description":"段の中で起きること。起きる順に並べる","type":"object","required":["type"],"discriminator":{"propertyName":"type"},"oneOf":[{"description":"線。運ぶ物を載せて送る側から受ける側へ走る","type":"object","additionalProperties":false,"required":["type","from","to","carry"],"properties":{"type":{"const":"edge"},"from":{"$ref":"#/definitions/id"},"to":{"$ref":"#/definitions/id"},"label":{"$ref":"#/definitions/text"},"carry":{"$ref":"#/definitions/carry"},"labelSide":{"description":"線の名前を置く側 (寄せの指示)","enum":["above","below","left","right"]},"at":{"description":"時間軸の図の拡大の帯で、線を引く列の目盛り","$ref":"#/definitions/unit"},"into":{"description":"時間軸の図の拡大の帯で、受ける箱を選ぶ列の目盛り。書かなければ at の列","$ref":"#/definitions/unit"}}},{"description":"箱の中の処理","type":"object","additionalProperties":false,"required":["type","box","label"],"properties":{"type":{"const":"action"},"box":{"$ref":"#/definitions/id"},"label":{"$ref":"#/definitions/text"}}},{"description":"箱の下の小さな字の書き換え","type":"object","additionalProperties":false,"required":["type","box","text"],"properties":{"type":{"const":"swap"},"box":{"$ref":"#/definitions/id"},"text":{"$ref":"#/definitions/text"},"color":{"description":"時間軸の図の節目の丸の色","$ref":"#/definitions/color"}}},{"description":"commit を積む。枝分かれの図だけが書ける。積んだ枝の札と、その枝を指す HEAD が進む。当て直し (copy) は枝の札を動かさず、merge commit (merge) は取り込む枝の先端も親に持つ","type":"object","additionalProperties":false,"required":["type","id","branch"],"properties":{"type":{"const":"commit"},"id":{"$ref":"#/definitions/id"},"branch":{"$ref":"#/definitions/id"},"copy":{"$ref":"#/definitions/id"},"merge":{"$ref":"#/definitions/id"},"hash":{"$ref":"#/definitions/hash"},"note":{"$ref":"#/definitions/text"}}},{"description":"枝を切る。枝分かれの図だけが書ける。枝の札を from の commit へ置き、HEAD をその枝へ移す","type":"object","additionalProperties":false,"required":["type","branch","from"],"properties":{"type":{"const":"branch"},"branch":{"$ref":"#/definitions/id"},"from":{"$ref":"#/definitions/id"}}},{"description":"時間軸の図の今の時刻の針を、to の目盛りの終わりまで進める","type":"object","additionalProperties":false,"required":["type","to"],"properties":{"type":{"const":"now"},"to":{"$ref":"#/definitions/unit"}}},{"description":"時間軸の図の印の列 row の、from から to の目盛りの印の色を変える","type":"object","additionalProperties":false,"required":["type","row","from","to","color"],"properties":{"type":{"const":"mark"},"row":{"$ref":"#/definitions/id"},"from":{"$ref":"#/definitions/unit"},"to":{"$ref":"#/definitions/unit"},"color":{"$ref":"#/definitions/color"}}},{"description":"時間軸の図の from から to の目盛りに、括弧と字を出す。shape が box なら印の列を囲み、字を縁の札にする","type":"object","additionalProperties":false,"required":["type","from","to","text"],"properties":{"type":{"const":"span"},"from":{"$ref":"#/definitions/unit"},"to":{"$ref":"#/definitions/unit"},"text":{"$ref":"#/definitions/text"},"shape":{"enum":["box"]},"color":{"$ref":"#/definitions/color"}}},{"description":"中身の帯の欄の値と札","type":"object","additionalProperties":false,"required":["type","field"],"anyOf":[{"required":["value"]},{"required":["tag"]}],"properties":{"type":{"const":"strip"},"field":{"$ref":"#/definitions/text"},"value":{"$ref":"#/definitions/text"},"tag":{"$ref":"#/definitions/text"}}}]};const schema74 = {"description":"目盛りの位置。0 から数える","type":"integer","minimum":0};const schema85 = {"description":"commit の hash。16 進の字で 4 から 40 字","type":"string","pattern":"^[0-9a-f]{4,40}$"};const pattern14 = new RegExp("^[0-9a-f]{4,40}$", "u");const schema72 = {"description":"線の上を走る物。封筒 (メッセージや要求)、札 (名前のある値)、硬貨 (価値)、無し","type":"object","additionalProperties":false,"required":["kind"],"properties":{"kind":{"enum":["envelope","tag","coin","none"]},"text":{"$ref":"#/definitions/text"}},"if":{"required":["kind"],"properties":{"kind":{"const":"tag"}}},"then":{"required":["text"]},"else":{"not":{"required":["text"]}}};function validate34(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs1 = errors;let valid0 = true;const _errs2 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.kind === undefined) && (missing0 = "kind")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.kind !== undefined){if("tag" !== data.kind){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs2 === errors;errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}let ifClause0;if(_valid0){const _errs4 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.text === undefined){const err2 = {instancePath,schemaPath:"#/then/required",keyword:"required",params:{missingProperty: "text"},message:"must have required property '"+"text"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}var _valid0 = _errs4 === errors;valid0 = _valid0;ifClause0 = "then";}else {const _errs5 = errors;const _errs6 = errors;const _errs7 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.text === undefined) && (missing1 = "text")){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}var valid2 = _errs7 === errors;if(valid2){const err4 = {instancePath,schemaPath:"#/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}else {errors = _errs6;if(vErrors !== null){if(_errs6){vErrors.length = _errs6;}else {vErrors = null;}}}var _valid0 = _errs5 === errors;valid0 = _valid0;ifClause0 = "else";}if(!valid0){const err5 = {instancePath,schemaPath:"#/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.kind === undefined){const err6 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}for(const key0 in data){if(!((key0 === "kind") || (key0 === "text"))){const err7 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.kind !== undefined){let data1 = data.kind;if(!((((data1 === "envelope") || (data1 === "tag")) || (data1 === "coin")) || (data1 === "none"))){const err8 = {instancePath:instancePath+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues: schema72.properties.kind.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.text !== undefined){let data2 = data.text;if(typeof data2 === "string"){if(func3(data2) < 1){const err9 = {instancePath:instancePath+"/text",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/text",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}else {const err11 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}validate34.errors = vErrors;return errors === 0;}function validate33(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const tag0 = data.type;if(typeof tag0 == "string"){if(tag0 === "edge"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err1 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.from === undefined){const err2 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.to === undefined){const err3 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.carry === undefined){const err4 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "carry"},message:"must have required property '"+"carry"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}for(const key0 in data){if(!((((((((key0 === "type") || (key0 === "from")) || (key0 === "to")) || (key0 === "label")) || (key0 === "carry")) || (key0 === "labelSide")) || (key0 === "at")) || (key0 === "into"))){const err5 = {instancePath,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.type !== undefined){if("edge" !== data.type){const err6 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/0/properties/type/const",keyword:"const",params:{allowedValue: "edge"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.from !== undefined){let data1 = data.from;if(typeof data1 === "string"){if(!pattern0.test(data1)){const err7 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.to !== undefined){let data2 = data.to;if(typeof data2 === "string"){if(!pattern0.test(data2)){const err9 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.label !== undefined){let data3 = data.label;if(typeof data3 === "string"){if(func3(data3) < 1){const err11 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data.carry !== undefined){if(!(validate34(data.carry, {instancePath:instancePath+"/carry",parentData:data,parentDataProperty:"carry",rootData}))){vErrors = vErrors === null ? validate34.errors : vErrors.concat(validate34.errors);errors = vErrors.length;}}if(data.labelSide !== undefined){let data5 = data.labelSide;if(!((((data5 === "above") || (data5 === "below")) || (data5 === "left")) || (data5 === "right"))){const err13 = {instancePath:instancePath+"/labelSide",schemaPath:"#/oneOf/0/properties/labelSide/enum",keyword:"enum",params:{allowedValues: schema68.oneOf[0].properties.labelSide.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data.at !== undefined){let data6 = data.at;if(!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))){const err14 = {instancePath:instancePath+"/at",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if((typeof data6 == "number") && (isFinite(data6))){if(data6 < 0 || isNaN(data6)){const err15 = {instancePath:instancePath+"/at",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}if(data.into !== undefined){let data7 = data.into;if(!(((typeof data7 == "number") && (!(data7 % 1) && !isNaN(data7))) && (isFinite(data7)))){const err16 = {instancePath:instancePath+"/into",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if((typeof data7 == "number") && (isFinite(data7))){if(data7 < 0 || isNaN(data7)){const err17 = {instancePath:instancePath+"/into",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}}else {const err18 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}else if(tag0 === "action"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err19 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data.box === undefined){const err20 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "box"},message:"must have required property '"+"box"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data.label === undefined){const err21 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}for(const key1 in data){if(!(((key1 === "type") || (key1 === "box")) || (key1 === "label"))){const err22 = {instancePath,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data.type !== undefined){if("action" !== data.type){const err23 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/1/properties/type/const",keyword:"const",params:{allowedValue: "action"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data.box !== undefined){let data9 = data.box;if(typeof data9 === "string"){if(!pattern0.test(data9)){const err24 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}else {const err25 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data.label !== undefined){let data10 = data.label;if(typeof data10 === "string"){if(func3(data10) < 1){const err26 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}else {const err27 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}else {const err28 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}else if(tag0 === "swap"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err29 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(data.box === undefined){const err30 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "box"},message:"must have required property '"+"box"+"'"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if(data.text === undefined){const err31 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "text"},message:"must have required property '"+"text"+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}for(const key2 in data){if(!((((key2 === "type") || (key2 === "box")) || (key2 === "text")) || (key2 === "color"))){const err32 = {instancePath,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}if(data.type !== undefined){if("swap" !== data.type){const err33 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/2/properties/type/const",keyword:"const",params:{allowedValue: "swap"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data.box !== undefined){let data12 = data.box;if(typeof data12 === "string"){if(!pattern0.test(data12)){const err34 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}else {const err35 = {instancePath:instancePath+"/box",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}if(data.text !== undefined){let data13 = data.text;if(typeof data13 === "string"){if(func3(data13) < 1){const err36 = {instancePath:instancePath+"/text",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}else {const err37 = {instancePath:instancePath+"/text",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}if(data.color !== undefined){let data14 = data.color;if(!(((((((data14 === "blue") || (data14 === "amber")) || (data14 === "green")) || (data14 === "violet")) || (data14 === "rose")) || (data14 === "slate")) || (data14 === "coin"))){const err38 = {instancePath:instancePath+"/color",schemaPath:"#/definitions/color/enum",keyword:"enum",params:{allowedValues: schema45.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}else {const err39 = {instancePath,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}else if(tag0 === "commit"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err40 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(data.id === undefined){const err41 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(data.branch === undefined){const err42 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "branch"},message:"must have required property '"+"branch"+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}for(const key3 in data){if(!(((((((key3 === "type") || (key3 === "id")) || (key3 === "branch")) || (key3 === "copy")) || (key3 === "merge")) || (key3 === "hash")) || (key3 === "note"))){const err43 = {instancePath,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}if(data.type !== undefined){if("commit" !== data.type){const err44 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/3/properties/type/const",keyword:"const",params:{allowedValue: "commit"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data.id !== undefined){let data16 = data.id;if(typeof data16 === "string"){if(!pattern0.test(data16)){const err45 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}else {const err46 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}if(data.branch !== undefined){let data17 = data.branch;if(typeof data17 === "string"){if(!pattern0.test(data17)){const err47 = {instancePath:instancePath+"/branch",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}else {const err48 = {instancePath:instancePath+"/branch",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}if(data.copy !== undefined){let data18 = data.copy;if(typeof data18 === "string"){if(!pattern0.test(data18)){const err49 = {instancePath:instancePath+"/copy",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}else {const err50 = {instancePath:instancePath+"/copy",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data.merge !== undefined){let data19 = data.merge;if(typeof data19 === "string"){if(!pattern0.test(data19)){const err51 = {instancePath:instancePath+"/merge",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}else {const err52 = {instancePath:instancePath+"/merge",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}if(data.hash !== undefined){let data20 = data.hash;if(typeof data20 === "string"){if(!pattern14.test(data20)){const err53 = {instancePath:instancePath+"/hash",schemaPath:"#/definitions/hash/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{4,40}$"},message:"must match pattern \""+"^[0-9a-f]{4,40}$"+"\""};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}else {const err54 = {instancePath:instancePath+"/hash",schemaPath:"#/definitions/hash/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}if(data.note !== undefined){let data21 = data.note;if(typeof data21 === "string"){if(func3(data21) < 1){const err55 = {instancePath:instancePath+"/note",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}else {const err56 = {instancePath:instancePath+"/note",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}}else {const err57 = {instancePath,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}else if(tag0 === "branch"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err58 = {instancePath,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(data.branch === undefined){const err59 = {instancePath,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty: "branch"},message:"must have required property '"+"branch"+"'"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if(data.from === undefined){const err60 = {instancePath,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}for(const key4 in data){if(!(((key4 === "type") || (key4 === "branch")) || (key4 === "from"))){const err61 = {instancePath,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}if(data.type !== undefined){if("branch" !== data.type){const err62 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/4/properties/type/const",keyword:"const",params:{allowedValue: "branch"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}if(data.branch !== undefined){let data23 = data.branch;if(typeof data23 === "string"){if(!pattern0.test(data23)){const err63 = {instancePath:instancePath+"/branch",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}else {const err64 = {instancePath:instancePath+"/branch",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}if(data.from !== undefined){let data24 = data.from;if(typeof data24 === "string"){if(!pattern0.test(data24)){const err65 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}else {const err66 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}}else {const err67 = {instancePath,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}else if(tag0 === "now"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err68 = {instancePath,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(data.to === undefined){const err69 = {instancePath,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}for(const key5 in data){if(!((key5 === "type") || (key5 === "to"))){const err70 = {instancePath,schemaPath:"#/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data.type !== undefined){if("now" !== data.type){const err71 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/5/properties/type/const",keyword:"const",params:{allowedValue: "now"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}if(data.to !== undefined){let data26 = data.to;if(!(((typeof data26 == "number") && (!(data26 % 1) && !isNaN(data26))) && (isFinite(data26)))){const err72 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if((typeof data26 == "number") && (isFinite(data26))){if(data26 < 0 || isNaN(data26)){const err73 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}}}else {const err74 = {instancePath,schemaPath:"#/oneOf/5/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}else if(tag0 === "mark"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err75 = {instancePath,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(data.row === undefined){const err76 = {instancePath,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty: "row"},message:"must have required property '"+"row"+"'"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if(data.from === undefined){const err77 = {instancePath,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}if(data.to === undefined){const err78 = {instancePath,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}if(data.color === undefined){const err79 = {instancePath,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty: "color"},message:"must have required property '"+"color"+"'"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}for(const key6 in data){if(!(((((key6 === "type") || (key6 === "row")) || (key6 === "from")) || (key6 === "to")) || (key6 === "color"))){const err80 = {instancePath,schemaPath:"#/oneOf/6/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}if(data.type !== undefined){if("mark" !== data.type){const err81 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/6/properties/type/const",keyword:"const",params:{allowedValue: "mark"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}if(data.row !== undefined){let data28 = data.row;if(typeof data28 === "string"){if(!pattern0.test(data28)){const err82 = {instancePath:instancePath+"/row",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}else {const err83 = {instancePath:instancePath+"/row",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}if(data.from !== undefined){let data29 = data.from;if(!(((typeof data29 == "number") && (!(data29 % 1) && !isNaN(data29))) && (isFinite(data29)))){const err84 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}if((typeof data29 == "number") && (isFinite(data29))){if(data29 < 0 || isNaN(data29)){const err85 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}if(data.to !== undefined){let data30 = data.to;if(!(((typeof data30 == "number") && (!(data30 % 1) && !isNaN(data30))) && (isFinite(data30)))){const err86 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}if((typeof data30 == "number") && (isFinite(data30))){if(data30 < 0 || isNaN(data30)){const err87 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}}if(data.color !== undefined){let data31 = data.color;if(!(((((((data31 === "blue") || (data31 === "amber")) || (data31 === "green")) || (data31 === "violet")) || (data31 === "rose")) || (data31 === "slate")) || (data31 === "coin"))){const err88 = {instancePath:instancePath+"/color",schemaPath:"#/definitions/color/enum",keyword:"enum",params:{allowedValues: schema45.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}}else {const err89 = {instancePath,schemaPath:"#/oneOf/6/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}else if(tag0 === "span"){if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err90 = {instancePath,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}if(data.from === undefined){const err91 = {instancePath,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if(data.to === undefined){const err92 = {instancePath,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if(data.text === undefined){const err93 = {instancePath,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty: "text"},message:"must have required property '"+"text"+"'"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}for(const key7 in data){if(!((((((key7 === "type") || (key7 === "from")) || (key7 === "to")) || (key7 === "text")) || (key7 === "shape")) || (key7 === "color"))){const err94 = {instancePath,schemaPath:"#/oneOf/7/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}if(data.type !== undefined){if("span" !== data.type){const err95 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/7/properties/type/const",keyword:"const",params:{allowedValue: "span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}if(data.from !== undefined){let data33 = data.from;if(!(((typeof data33 == "number") && (!(data33 % 1) && !isNaN(data33))) && (isFinite(data33)))){const err96 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if((typeof data33 == "number") && (isFinite(data33))){if(data33 < 0 || isNaN(data33)){const err97 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}}if(data.to !== undefined){let data34 = data.to;if(!(((typeof data34 == "number") && (!(data34 % 1) && !isNaN(data34))) && (isFinite(data34)))){const err98 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if((typeof data34 == "number") && (isFinite(data34))){if(data34 < 0 || isNaN(data34)){const err99 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}}if(data.text !== undefined){let data35 = data.text;if(typeof data35 === "string"){if(func3(data35) < 1){const err100 = {instancePath:instancePath+"/text",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}else {const err101 = {instancePath:instancePath+"/text",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}}if(data.shape !== undefined){if(!(data.shape === "box")){const err102 = {instancePath:instancePath+"/shape",schemaPath:"#/oneOf/7/properties/shape/enum",keyword:"enum",params:{allowedValues: schema68.oneOf[7].properties.shape.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}if(data.color !== undefined){let data37 = data.color;if(!(((((((data37 === "blue") || (data37 === "amber")) || (data37 === "green")) || (data37 === "violet")) || (data37 === "rose")) || (data37 === "slate")) || (data37 === "coin"))){const err103 = {instancePath:instancePath+"/color",schemaPath:"#/definitions/color/enum",keyword:"enum",params:{allowedValues: schema45.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}}else {const err104 = {instancePath,schemaPath:"#/oneOf/7/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}else if(tag0 === "strip"){const _errs117 = errors;let valid45 = false;const _errs118 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.value === undefined){const err105 = {instancePath,schemaPath:"#/oneOf/8/anyOf/0/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}}var _valid0 = _errs118 === errors;valid45 = valid45 || _valid0;if(!valid45){const _errs119 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag === undefined){const err106 = {instancePath,schemaPath:"#/oneOf/8/anyOf/1/required",keyword:"required",params:{missingProperty: "tag"},message:"must have required property '"+"tag"+"'"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}var _valid0 = _errs119 === errors;valid45 = valid45 || _valid0;}if(!valid45){const err107 = {instancePath,schemaPath:"#/oneOf/8/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}else {errors = _errs117;if(vErrors !== null){if(_errs117){vErrors.length = _errs117;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.type === undefined){const err108 = {instancePath,schemaPath:"#/oneOf/8/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}if(data.field === undefined){const err109 = {instancePath,schemaPath:"#/oneOf/8/required",keyword:"required",params:{missingProperty: "field"},message:"must have required property '"+"field"+"'"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}for(const key8 in data){if(!((((key8 === "type") || (key8 === "field")) || (key8 === "value")) || (key8 === "tag"))){const err110 = {instancePath,schemaPath:"#/oneOf/8/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}if(data.type !== undefined){if("strip" !== data.type){const err111 = {instancePath:instancePath+"/type",schemaPath:"#/oneOf/8/properties/type/const",keyword:"const",params:{allowedValue: "strip"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}if(data.field !== undefined){let data39 = data.field;if(typeof data39 === "string"){if(func3(data39) < 1){const err112 = {instancePath:instancePath+"/field",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}else {const err113 = {instancePath:instancePath+"/field",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}if(data.value !== undefined){let data40 = data.value;if(typeof data40 === "string"){if(func3(data40) < 1){const err114 = {instancePath:instancePath+"/value",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}else {const err115 = {instancePath:instancePath+"/value",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}if(data.tag !== undefined){let data41 = data.tag;if(typeof data41 === "string"){if(func3(data41) < 1){const err116 = {instancePath:instancePath+"/tag",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}else {const err117 = {instancePath:instancePath+"/tag",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}}else {const err118 = {instancePath,schemaPath:"#/oneOf/8/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}else {const err119 = {instancePath,schemaPath:"#/discriminator",keyword:"discriminator",params:{error: "mapping", tag: "type", tagValue: tag0},message:"value of tag \"type\" must be in oneOf"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}else {const err120 = {instancePath,schemaPath:"#/discriminator",keyword:"discriminator",params:{error: "tag", tag: "type", tagValue: tag0},message:"tag \"type\" must be string"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}else {const err121 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}validate33.errors = vErrors;return errors === 0;}function validate30(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.title === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.body === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "body"},message:"must have required property '"+"body"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.events === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "events"},message:"must have required property '"+"events"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}for(const key0 in data){if(!(((((key0 === "title") || (key0 === "body")) || (key0 === "code")) || (key0 === "sources")) || (key0 === "events"))){const err3 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.title !== undefined){let data0 = data.title;if(typeof data0 === "string"){if(func3(data0) < 1){const err4 = {instancePath:instancePath+"/title",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath:instancePath+"/title",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.body !== undefined){let data1 = data.body;if(typeof data1 === "string"){if(func3(data1) < 1){const err6 = {instancePath:instancePath+"/body",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}else {const err7 = {instancePath:instancePath+"/body",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.code !== undefined){let data2 = data.code;if(typeof data2 === "string"){if(func3(data2) < 1){const err8 = {instancePath:instancePath+"/code",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/code",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.sources !== undefined){let data3 = data.sources;if(Array.isArray(data3)){if(data3.length < 1){const err10 = {instancePath:instancePath+"/sources",schemaPath:"#/properties/sources/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len0 = data3.length;for(let i0=0; i0<len0; i0++){if(!(validate31(data3[i0], {instancePath:instancePath+"/sources/" + i0,parentData:data3,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate31.errors : vErrors.concat(validate31.errors);errors = vErrors.length;}}}else {const err11 = {instancePath:instancePath+"/sources",schemaPath:"#/properties/sources/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data.events !== undefined){let data5 = data.events;if(Array.isArray(data5)){const len1 = data5.length;for(let i1=0; i1<len1; i1++){if(!(validate33(data5[i1], {instancePath:instancePath+"/events/" + i1,parentData:data5,parentDataProperty:i1,rootData}))){vErrors = vErrors === null ? validate33.errors : vErrors.concat(validate33.errors);errors = vErrors.length;}}}else {const err12 = {instancePath:instancePath+"/events",schemaPath:"#/properties/events/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}validate30.errors = vErrors;return errors === 0;}const schema101 = {"description":"時系列図の種類の欄。生存線を左から並べる順","type":"object","additionalProperties":false,"required":["lifelines"],"properties":{"lifelines":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/id"}}}};function validate38(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.lifelines === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "lifelines"},message:"must have required property '"+"lifelines"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!(key0 === "lifelines")){const err1 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.lifelines !== undefined){let data0 = data.lifelines;if(Array.isArray(data0)){if(data0.length < 1){const err2 = {instancePath:instancePath+"/lifelines",schemaPath:"#/properties/lifelines/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}const len0 = data0.length;for(let i0=0; i0<len0; i0++){let data1 = data0[i0];if(typeof data1 === "string"){if(!pattern0.test(data1)){const err3 = {instancePath:instancePath+"/lifelines/" + i0,schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/lifelines/" + i0,schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {instancePath:instancePath+"/lifelines",schemaPath:"#/properties/lifelines/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}else {const err6 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}validate38.errors = vErrors;return errors === 0;}const schema103 = {"description":"状態遷移図の種類の欄。最初の段より前に書いた、移れるが段で通るとは限らない線","type":"object","additionalProperties":false,"required":["paths"],"properties":{"paths":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/path"}}}};const schema104 = {"description":"移れる道。送る側に始まりの印 start、受ける側に終わりの印 finish を書ける。どの段にも出ない道は点線で描き、運ぶ物を走らせない","type":"object","additionalProperties":false,"required":["from","to"],"properties":{"from":{"$ref":"#/definitions/id"},"to":{"$ref":"#/definitions/id"},"label":{"$ref":"#/definitions/text"}}};function validate41(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.from === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.to === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!(((key0 === "from") || (key0 === "to")) || (key0 === "label"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.from !== undefined){let data0 = data.from;if(typeof data0 === "string"){if(!pattern0.test(data0)){const err3 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.to !== undefined){let data1 = data.to;if(typeof data1 === "string"){if(!pattern0.test(data1)){const err5 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.label !== undefined){let data2 = data.label;if(typeof data2 === "string"){if(func3(data2) < 1){const err7 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}}else {const err9 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}validate41.errors = vErrors;return errors === 0;}function validate40(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.paths === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "paths"},message:"must have required property '"+"paths"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!(key0 === "paths")){const err1 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.paths !== undefined){let data0 = data.paths;if(Array.isArray(data0)){if(data0.length < 1){const err2 = {instancePath:instancePath+"/paths",schemaPath:"#/properties/paths/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}const len0 = data0.length;for(let i0=0; i0<len0; i0++){if(!(validate41(data0[i0], {instancePath:instancePath+"/paths/" + i0,parentData:data0,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate41.errors : vErrors.concat(validate41.errors);errors = vErrors.length;}}}else {const err3 = {instancePath:instancePath+"/paths",schemaPath:"#/properties/paths/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}}else {const err4 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}validate40.errors = vErrors;return errors === 0;}const schema108 = {"description":"枝分かれの図の種類の欄。枝を上から帯に並べる順","type":"object","additionalProperties":false,"required":["branches"],"properties":{"branches":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/branch"}}}};const schema109 = {"description":"枝。帯の左に名札と添え書きを置く","type":"object","additionalProperties":false,"required":["id"],"properties":{"id":{"$ref":"#/definitions/id"},"note":{"$ref":"#/definitions/text"}}};function validate45(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!((key0 === "id") || (key0 === "note"))){const err1 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!pattern0.test(data0)){const err2 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}else {const err3 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.note !== undefined){let data1 = data.note;if(typeof data1 === "string"){if(func3(data1) < 1){const err4 = {instancePath:instancePath+"/note",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath:instancePath+"/note",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}else {const err6 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}validate45.errors = vErrors;return errors === 0;}function validate44(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.branches === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "branches"},message:"must have required property '"+"branches"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!(key0 === "branches")){const err1 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.branches !== undefined){let data0 = data.branches;if(Array.isArray(data0)){if(data0.length < 1){const err2 = {instancePath:instancePath+"/branches",schemaPath:"#/properties/branches/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}const len0 = data0.length;for(let i0=0; i0<len0; i0++){if(!(validate45(data0[i0], {instancePath:instancePath+"/branches/" + i0,parentData:data0,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate45.errors : vErrors.concat(validate45.errors);errors = vErrors.length;}}}else {const err3 = {instancePath:instancePath+"/branches",schemaPath:"#/properties/branches/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}}else {const err4 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}validate44.errors = vErrors;return errors === 0;}const schema112 = {"description":"時間軸の図の種類の欄。目盛り、区切り、印の列、節目、拡大の範囲","type":"object","additionalProperties":false,"required":["scale","rows"],"properties":{"scale":{"$ref":"#/definitions/scale"},"period":{"$ref":"#/definitions/period"},"rows":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/row"}},"points":{"type":"array","items":{"$ref":"#/definitions/point"}},"zoom":{"$ref":"#/definitions/zoom"}}};const schema113 = {"description":"目盛り。unit の名前の目盛りを length の長さで count 個並べ、最初の目盛りの番号を from にする","type":"object","additionalProperties":false,"required":["unit","length","count"],"properties":{"unit":{"$ref":"#/definitions/text"},"length":{"$ref":"#/definitions/duration"},"count":{"type":"integer","minimum":1},"from":{"type":"integer","minimum":0}}};const schema115 = {"description":"長さ。数と単位 (ms、s、min、h、d) の組","type":"string","pattern":"^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$"};const pattern22 = new RegExp("^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$", "u");function validate49(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.unit === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "unit"},message:"must have required property '"+"unit"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.length === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "length"},message:"must have required property '"+"length"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.count === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "count"},message:"must have required property '"+"count"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}for(const key0 in data){if(!((((key0 === "unit") || (key0 === "length")) || (key0 === "count")) || (key0 === "from"))){const err3 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.unit !== undefined){let data0 = data.unit;if(typeof data0 === "string"){if(func3(data0) < 1){const err4 = {instancePath:instancePath+"/unit",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath:instancePath+"/unit",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.length !== undefined){let data1 = data.length;if(typeof data1 === "string"){if(!pattern22.test(data1)){const err6 = {instancePath:instancePath+"/length",schemaPath:"#/definitions/duration/pattern",keyword:"pattern",params:{pattern: "^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$"},message:"must match pattern \""+"^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$"+"\""};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}else {const err7 = {instancePath:instancePath+"/length",schemaPath:"#/definitions/duration/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.count !== undefined){let data2 = data.count;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err8 = {instancePath:instancePath+"/count",schemaPath:"#/properties/count/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if((typeof data2 == "number") && (isFinite(data2))){if(data2 < 1 || isNaN(data2)){const err9 = {instancePath:instancePath+"/count",schemaPath:"#/properties/count/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}if(data.from !== undefined){let data3 = data.from;if(!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))){const err10 = {instancePath:instancePath+"/from",schemaPath:"#/properties/from/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 0 || isNaN(data3)){const err11 = {instancePath:instancePath+"/from",schemaPath:"#/properties/from/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}}else {const err12 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}validate49.errors = vErrors;return errors === 0;}const schema116 = {"description":"区切り。目盛り length 個ごとに name の区切りを置き、最初の区切りの番号を from にする","type":"object","additionalProperties":false,"required":["name","length"],"properties":{"name":{"$ref":"#/definitions/text"},"length":{"type":"integer","minimum":1},"from":{"type":"integer","minimum":0}}};function validate51(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.length === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "length"},message:"must have required property '"+"length"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!(((key0 === "name") || (key0 === "length")) || (key0 === "from"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.name !== undefined){let data0 = data.name;if(typeof data0 === "string"){if(func3(data0) < 1){const err3 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.length !== undefined){let data1 = data.length;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){const err5 = {instancePath:instancePath+"/length",schemaPath:"#/properties/length/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if((typeof data1 == "number") && (isFinite(data1))){if(data1 < 1 || isNaN(data1)){const err6 = {instancePath:instancePath+"/length",schemaPath:"#/properties/length/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}if(data.from !== undefined){let data2 = data.from;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err7 = {instancePath:instancePath+"/from",schemaPath:"#/properties/from/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if((typeof data2 == "number") && (isFinite(data2))){if(data2 < 0 || isNaN(data2)){const err8 = {instancePath:instancePath+"/from",schemaPath:"#/properties/from/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}}}else {const err9 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}validate51.errors = vErrors;return errors === 0;}const schema118 = {"description":"印の列。目盛りごとに印を 1 つ置き、empty の目盛りは空きの印にする","type":"object","additionalProperties":false,"required":["id","name"],"properties":{"id":{"$ref":"#/definitions/id"},"name":{"$ref":"#/definitions/text"},"color":{"$ref":"#/definitions/color"},"empty":{"type":"array","items":{"$ref":"#/definitions/unit"}}}};function validate53(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.name === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((((key0 === "id") || (key0 === "name")) || (key0 === "color")) || (key0 === "empty"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!pattern0.test(data0)){const err3 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.name !== undefined){let data1 = data.name;if(typeof data1 === "string"){if(func3(data1) < 1){const err5 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/name",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.color !== undefined){let data2 = data.color;if(!(((((((data2 === "blue") || (data2 === "amber")) || (data2 === "green")) || (data2 === "violet")) || (data2 === "rose")) || (data2 === "slate")) || (data2 === "coin"))){const err7 = {instancePath:instancePath+"/color",schemaPath:"#/definitions/color/enum",keyword:"enum",params:{allowedValues: schema45.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.empty !== undefined){let data3 = data.empty;if(Array.isArray(data3)){const len0 = data3.length;for(let i0=0; i0<len0; i0++){let data4 = data3[i0];if(!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))){const err8 = {instancePath:instancePath+"/empty/" + i0,schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if((typeof data4 == "number") && (isFinite(data4))){if(data4 < 0 || isNaN(data4)){const err9 = {instancePath:instancePath+"/empty/" + i0,schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}}else {const err10 = {instancePath:instancePath+"/empty",schemaPath:"#/properties/empty/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}else {const err11 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}validate53.errors = vErrors;return errors === 0;}const schema123 = {"description":"節目。at の目盛りの印の下に旗の丸と名札を置く","type":"object","additionalProperties":false,"required":["id","at"],"properties":{"id":{"$ref":"#/definitions/id"},"at":{"$ref":"#/definitions/unit"}}};function validate55(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.at === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "at"},message:"must have required property '"+"at"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "id") || (key0 === "at"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!pattern0.test(data0)){const err3 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/pattern",keyword:"pattern",params:{pattern: "^[^\\s\\[\\]「」=:]+$"},message:"must match pattern \""+"^[^\\s\\[\\]「」=:]+$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/id",schemaPath:"#/definitions/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.at !== undefined){let data1 = data.at;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){const err5 = {instancePath:instancePath+"/at",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if((typeof data1 == "number") && (isFinite(data1))){if(data1 < 0 || isNaN(data1)){const err6 = {instancePath:instancePath+"/at",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}}else {const err7 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}validate55.errors = vErrors;return errors === 0;}const schema126 = {"description":"拡大の範囲。from から to の目盛りごとに拡大の帯に列を作る","type":"object","additionalProperties":false,"required":["from","to"],"properties":{"from":{"$ref":"#/definitions/unit"},"to":{"$ref":"#/definitions/unit"}}};function validate57(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.from === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.to === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "from") || (key0 === "to"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.from !== undefined){let data0 = data.from;if(!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))){const err3 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if((typeof data0 == "number") && (isFinite(data0))){if(data0 < 0 || isNaN(data0)){const err4 = {instancePath:instancePath+"/from",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}if(data.to !== undefined){let data1 = data.to;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){const err5 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/unit/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if((typeof data1 == "number") && (isFinite(data1))){if(data1 < 0 || isNaN(data1)){const err6 = {instancePath:instancePath+"/to",schemaPath:"#/definitions/unit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}}else {const err7 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}validate57.errors = vErrors;return errors === 0;}function validate48(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.scale === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "scale"},message:"must have required property '"+"scale"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.rows === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "rows"},message:"must have required property '"+"rows"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!(((((key0 === "scale") || (key0 === "period")) || (key0 === "rows")) || (key0 === "points")) || (key0 === "zoom"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.scale !== undefined){if(!(validate49(data.scale, {instancePath:instancePath+"/scale",parentData:data,parentDataProperty:"scale",rootData}))){vErrors = vErrors === null ? validate49.errors : vErrors.concat(validate49.errors);errors = vErrors.length;}}if(data.period !== undefined){if(!(validate51(data.period, {instancePath:instancePath+"/period",parentData:data,parentDataProperty:"period",rootData}))){vErrors = vErrors === null ? validate51.errors : vErrors.concat(validate51.errors);errors = vErrors.length;}}if(data.rows !== undefined){let data2 = data.rows;if(Array.isArray(data2)){if(data2.length < 1){const err3 = {instancePath:instancePath+"/rows",schemaPath:"#/properties/rows/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}const len0 = data2.length;for(let i0=0; i0<len0; i0++){if(!(validate53(data2[i0], {instancePath:instancePath+"/rows/" + i0,parentData:data2,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate53.errors : vErrors.concat(validate53.errors);errors = vErrors.length;}}}else {const err4 = {instancePath:instancePath+"/rows",schemaPath:"#/properties/rows/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.points !== undefined){let data4 = data.points;if(Array.isArray(data4)){const len1 = data4.length;for(let i1=0; i1<len1; i1++){if(!(validate55(data4[i1], {instancePath:instancePath+"/points/" + i1,parentData:data4,parentDataProperty:i1,rootData}))){vErrors = vErrors === null ? validate55.errors : vErrors.concat(validate55.errors);errors = vErrors.length;}}}else {const err5 = {instancePath:instancePath+"/points",schemaPath:"#/properties/points/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.zoom !== undefined){if(!(validate57(data.zoom, {instancePath:instancePath+"/zoom",parentData:data,parentDataProperty:"zoom",rootData}))){vErrors = vErrors === null ? validate57.errors : vErrors.concat(validate57.errors);errors = vErrors.length;}}}else {const err6 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}validate48.errors = vErrors;return errors === 0;}const func2 = Object.prototype.hasOwnProperty;function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs1 = errors;let valid0 = true;const _errs2 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.kind === undefined) && (missing0 = "kind")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.kind !== undefined){if("sequence" !== data.kind){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs2 === errors;errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}let ifClause0;if(_valid0){const _errs4 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.sequence === undefined){const err2 = {instancePath,schemaPath:"#/then/required",keyword:"required",params:{missingProperty: "sequence"},message:"must have required property '"+"sequence"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.boxes !== undefined){let data1 = data.boxes;if(Array.isArray(data1)){if(data1.length < 1){const err3 = {instancePath:instancePath+"/boxes",schemaPath:"#/then/properties/boxes/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}}if(data.steps !== undefined){if(!(validate11(data.steps, {instancePath:instancePath+"/steps",parentData:data,parentDataProperty:"steps",rootData}))){vErrors = vErrors === null ? validate11.errors : vErrors.concat(validate11.errors);errors = vErrors.length;}}if(data.strip !== undefined){if(!(validate13(data.strip, {instancePath:instancePath+"/strip",parentData:data,parentDataProperty:"strip",rootData}))){vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);errors = vErrors.length;}}if(data.state !== undefined){const err4 = {instancePath:instancePath+"/state",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.git !== undefined){const err5 = {instancePath:instancePath+"/git",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data.time !== undefined){const err6 = {instancePath:instancePath+"/time",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}var _valid0 = _errs4 === errors;valid0 = _valid0;ifClause0 = "then";}else {const _errs17 = errors;const _errs18 = errors;let valid6 = true;const _errs19 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.kind === undefined) && (missing1 = "kind")){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data.kind !== undefined){if("state" !== data.kind){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}}}var _valid1 = _errs19 === errors;errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}let ifClause1;if(_valid1){const _errs21 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.boxes !== undefined){let data8 = data.boxes;if(Array.isArray(data8)){if(data8.length < 1){const err9 = {instancePath:instancePath+"/boxes",schemaPath:"#/else/then/properties/boxes/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}const len0 = data8.length;for(let i0=0; i0<len0; i0++){let data9 = data8[i0];if(data9 && typeof data9 == "object" && !Array.isArray(data9)){if(data9.id !== undefined){let data10 = data9.id;const _errs25 = errors;const _errs26 = errors;if(!((data10 === "start") || (data10 === "finish"))){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid12 = _errs26 === errors;if(valid12){const err11 = {instancePath:instancePath+"/boxes/" + i0+"/id",schemaPath:"#/else/then/properties/boxes/items/properties/id/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {errors = _errs25;if(vErrors !== null){if(_errs25){vErrors.length = _errs25;}else {vErrors = null;}}}}}}}}if(data.steps !== undefined){if(!(validate11(data.steps, {instancePath:instancePath+"/steps",parentData:data,parentDataProperty:"steps",rootData}))){vErrors = vErrors === null ? validate11.errors : vErrors.concat(validate11.errors);errors = vErrors.length;}}if(data.strip !== undefined){if(!(validate13(data.strip, {instancePath:instancePath+"/strip",parentData:data,parentDataProperty:"strip",rootData}))){vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);errors = vErrors.length;}}if(data.git !== undefined){const err12 = {instancePath:instancePath+"/git",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(data.time !== undefined){const err13 = {instancePath:instancePath+"/time",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}var _valid1 = _errs21 === errors;valid6 = _valid1;ifClause1 = "then";}else {const _errs35 = errors;const _errs36 = errors;let valid15 = true;const _errs37 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((data.kind === undefined) && (missing2 = "kind")){const err14 = {};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}else {if(data.kind !== undefined){if("git" !== data.kind){const err15 = {};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}}var _valid2 = _errs37 === errors;errors = _errs36;if(vErrors !== null){if(_errs36){vErrors.length = _errs36;}else {vErrors = null;}}let ifClause2;if(_valid2){const _errs39 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.git === undefined){const err16 = {instancePath,schemaPath:"#/else/else/then/required",keyword:"required",params:{missingProperty: "git"},message:"must have required property '"+"git"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data.steps !== undefined){if(!(validate17(data.steps, {instancePath:instancePath+"/steps",parentData:data,parentDataProperty:"steps",rootData}))){vErrors = vErrors === null ? validate17.errors : vErrors.concat(validate17.errors);errors = vErrors.length;}}if(data.strip !== undefined){if(!(validate13(data.strip, {instancePath:instancePath+"/strip",parentData:data,parentDataProperty:"strip",rootData}))){vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);errors = vErrors.length;}}if(data.state !== undefined){const err17 = {instancePath:instancePath+"/state",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(data.regions !== undefined){const err18 = {instancePath:instancePath+"/regions",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data.time !== undefined){const err19 = {instancePath:instancePath+"/time",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}var _valid2 = _errs39 === errors;valid15 = _valid2;ifClause2 = "then";}else {const _errs51 = errors;const _errs52 = errors;let valid21 = true;const _errs53 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((data.kind === undefined) && (missing3 = "kind")){const err20 = {};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {if(data.kind !== undefined){if("time" !== data.kind){const err21 = {};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}}var _valid3 = _errs53 === errors;errors = _errs52;if(vErrors !== null){if(_errs52){vErrors.length = _errs52;}else {vErrors = null;}}let ifClause3;if(_valid3){const _errs55 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.time === undefined){const err22 = {instancePath,schemaPath:"#/else/else/else/then/required",keyword:"required",params:{missingProperty: "time"},message:"must have required property '"+"time"+"'"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(data.steps !== undefined){let data22 = data.steps;if(Array.isArray(data22)){const len1 = data22.length;for(let i1=0; i1<len1; i1++){let data23 = data22[i1];if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.events !== undefined){let data24 = data23.events;if(Array.isArray(data24)){const len2 = data24.length;for(let i2=0; i2<len2; i2++){let data25 = data24[i2];if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.type !== undefined){let data26 = data25.type;const _errs62 = errors;const _errs63 = errors;if(!((data26 === "commit") || (data26 === "branch"))){const err23 = {};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid31 = _errs63 === errors;if(valid31){const err24 = {instancePath:instancePath+"/steps/" + i1+"/events/" + i2+"/type",schemaPath:"#/definitions/timeSteps/items/properties/events/items/properties/type/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}else {errors = _errs62;if(vErrors !== null){if(_errs62){vErrors.length = _errs62;}else {vErrors = null;}}}}}}}}}}}}if(data.state !== undefined){const err25 = {instancePath:instancePath+"/state",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(data.git !== undefined){const err26 = {instancePath:instancePath+"/git",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data.regions !== undefined){const err27 = {instancePath:instancePath+"/regions",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}var _valid3 = _errs55 === errors;valid21 = _valid3;ifClause3 = "then";}else {const _errs73 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.boxes !== undefined){let data30 = data.boxes;if(Array.isArray(data30)){if(data30.length < 1){const err28 = {instancePath:instancePath+"/boxes",schemaPath:"#/else/else/else/else/properties/boxes/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}if(data.steps !== undefined){if(!(validate11(data.steps, {instancePath:instancePath+"/steps",parentData:data,parentDataProperty:"steps",rootData}))){vErrors = vErrors === null ? validate11.errors : vErrors.concat(validate11.errors);errors = vErrors.length;}}if(data.strip !== undefined){if(!(validate13(data.strip, {instancePath:instancePath+"/strip",parentData:data,parentDataProperty:"strip",rootData}))){vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);errors = vErrors.length;}}if(data.state !== undefined){const err29 = {instancePath:instancePath+"/state",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(data.git !== undefined){const err30 = {instancePath:instancePath+"/git",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if(data.time !== undefined){const err31 = {instancePath:instancePath+"/time",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}var _valid3 = _errs73 === errors;valid21 = _valid3;ifClause3 = "else";}if(!valid21){const err32 = {instancePath,schemaPath:"#/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause3},message:"must match \""+ifClause3+"\" schema"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var _valid2 = _errs51 === errors;valid15 = _valid2;ifClause2 = "else";}if(!valid15){const err33 = {instancePath,schemaPath:"#/else/else/if",keyword:"if",params:{failingKeyword: ifClause2},message:"must match \""+ifClause2+"\" schema"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var _valid1 = _errs35 === errors;valid6 = _valid1;ifClause1 = "else";}if(!valid6){const err34 = {instancePath,schemaPath:"#/else/if",keyword:"if",params:{failingKeyword: ifClause1},message:"must match \""+ifClause1+"\" schema"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.sequence !== undefined){const err35 = {instancePath:instancePath+"/sequence",schemaPath:"#/definitions/absent/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}var _valid0 = _errs17 === errors;valid0 = _valid0;ifClause0 = "else";}if(!valid0){const err36 = {instancePath,schemaPath:"#/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.version === undefined){const err37 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "version"},message:"must have required property '"+"version"+"'"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(data.kind === undefined){const err38 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if(data.title === undefined){const err39 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if(data.boxes === undefined){const err40 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "boxes"},message:"must have required property '"+"boxes"+"'"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(data.steps === undefined){const err41 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "steps"},message:"must have required property '"+"steps"+"'"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}for(const key0 in data){if(!(func2.call(schema11.properties, key0))){const err42 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data.version !== undefined){let data37 = data.version;if(!(((typeof data37 == "number") && (!(data37 % 1) && !isNaN(data37))) && (isFinite(data37)))){const err43 = {instancePath:instancePath+"/version",schemaPath:"#/properties/version/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if((typeof data37 == "number") && (isFinite(data37))){if(data37 < 1 || isNaN(data37)){const err44 = {instancePath:instancePath+"/version",schemaPath:"#/properties/version/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}}if(data.kind !== undefined){let data38 = data.kind;if(!(((((data38 === "sequence") || (data38 === "architecture")) || (data38 === "state")) || (data38 === "git")) || (data38 === "time"))){const err45 = {instancePath:instancePath+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues: schema11.properties.kind.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}if(data.title !== undefined){let data39 = data.title;if(typeof data39 === "string"){if(func3(data39) < 1){const err46 = {instancePath:instancePath+"/title",schemaPath:"#/definitions/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}else {const err47 = {instancePath:instancePath+"/title",schemaPath:"#/definitions/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}if(data.view !== undefined){let data40 = data.view;if(!((data40 === "fixed") || (data40 === "follow"))){const err48 = {instancePath:instancePath+"/view",schemaPath:"#/properties/view/enum",keyword:"enum",params:{allowedValues: schema11.properties.view.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}if(data.regions !== undefined){let data41 = data.regions;if(Array.isArray(data41)){const len3 = data41.length;for(let i3=0; i3<len3; i3++){if(!(validate22(data41[i3], {instancePath:instancePath+"/regions/" + i3,parentData:data41,parentDataProperty:i3,rootData}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}}}else {const err49 = {instancePath:instancePath+"/regions",schemaPath:"#/properties/regions/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}if(data.boxes !== undefined){let data43 = data.boxes;if(Array.isArray(data43)){const len4 = data43.length;for(let i4=0; i4<len4; i4++){if(!(validate24(data43[i4], {instancePath:instancePath+"/boxes/" + i4,parentData:data43,parentDataProperty:i4,rootData}))){vErrors = vErrors === null ? validate24.errors : vErrors.concat(validate24.errors);errors = vErrors.length;}}}else {const err50 = {instancePath:instancePath+"/boxes",schemaPath:"#/properties/boxes/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data.strip !== undefined){if(!(validate26(data.strip, {instancePath:instancePath+"/strip",parentData:data,parentDataProperty:"strip",rootData}))){vErrors = vErrors === null ? validate26.errors : vErrors.concat(validate26.errors);errors = vErrors.length;}}if(data.steps !== undefined){let data46 = data.steps;if(Array.isArray(data46)){if(data46.length < 1){const err51 = {instancePath:instancePath+"/steps",schemaPath:"#/properties/steps/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}const len5 = data46.length;for(let i5=0; i5<len5; i5++){if(!(validate30(data46[i5], {instancePath:instancePath+"/steps/" + i5,parentData:data46,parentDataProperty:i5,rootData}))){vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);errors = vErrors.length;}}}else {const err52 = {instancePath:instancePath+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}if(data.sequence !== undefined){if(!(validate38(data.sequence, {instancePath:instancePath+"/sequence",parentData:data,parentDataProperty:"sequence",rootData}))){vErrors = vErrors === null ? validate38.errors : vErrors.concat(validate38.errors);errors = vErrors.length;}}if(data.state !== undefined){if(!(validate40(data.state, {instancePath:instancePath+"/state",parentData:data,parentDataProperty:"state",rootData}))){vErrors = vErrors === null ? validate40.errors : vErrors.concat(validate40.errors);errors = vErrors.length;}}if(data.git !== undefined){if(!(validate44(data.git, {instancePath:instancePath+"/git",parentData:data,parentDataProperty:"git",rootData}))){vErrors = vErrors === null ? validate44.errors : vErrors.concat(validate44.errors);errors = vErrors.length;}}if(data.time !== undefined){if(!(validate48(data.time, {instancePath:instancePath+"/time",parentData:data,parentDataProperty:"time",rootData}))){vErrors = vErrors === null ? validate48.errors : vErrors.concat(validate48.errors);errors = vErrors.length;}}}else {const err53 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}validate10.errors = vErrors;return errors === 0;}
|