diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 57d3d2dafbb1..01bb8f9fa29b 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -608,7 +608,7 @@ jobs:
image-tag: ${{ needs.config.outputs.ci_image_tag }}
isaacsim-base-image: ${{ needs.config.outputs.isaacsim_image_name }}
isaacsim-version: ${{ needs.config.outputs.isaacsim_image_tag }}
- filter-pattern: "isaaclab_assets,isaaclab_contrib,isaaclab_teleop,isaaclab_mimic,isaaclab_experimental"
+ filter-pattern: "isaaclab_assets,isaaclab_contrib,isaaclab_teleop,isaaclab_mimic,isaaclab_experimental,isaaclab_fovi"
warp-cache: restore
ovrtx-shader-cache: restore
test-jobs: "4"
diff --git a/docker/Dockerfile.base b/docker/Dockerfile.base
index 8d7b15aaee64..6722e33489a7 100644
--- a/docker/Dockerfile.base
+++ b/docker/Dockerfile.base
@@ -138,7 +138,7 @@ COPY --parents source/*/pyproject.toml ${ISAACLAB_PATH}/
# The image's package set. Kit ships in the base image, so the teleop stack comes without the
# ``isaacsim`` wheel; ``teleop`` itself is left exactly as tuned.
-ARG IMAGE_EXTRAS="--extra sb3 --extra skrl --extra rl-games --extra rsl-rl --extra viser --extra rerun --extra mimic --extra teleop --extra test --extra tetrahedralization --extra ov"
+ARG IMAGE_EXTRAS="--extra sb3 --extra skrl --extra rl-games --extra rsl-rl --extra viser --extra rerun --extra mimic --extra teleop --extra test --extra tetrahedralization --extra ov --extra fovi"
RUN --mount=type=cache,target=/root/.cache/uv \
cd ${ISAACLAB_PATH} && \
diff --git a/docs/conf.py b/docs/conf.py
index f8116711540b..8c2e045fa3c8 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -48,6 +48,8 @@
sys.path.insert(0, os.path.abspath("../source/isaaclab_ov/isaaclab_ov"))
sys.path.insert(0, os.path.abspath("../source/isaaclab_visualizers"))
sys.path.insert(0, os.path.abspath("../source/isaaclab_visualizers/isaaclab_visualizers"))
+# Only the package root: the package's ``rsl_rl`` subpackage would shadow RSL-RL as a top-level module.
+sys.path.insert(0, os.path.abspath("../source/isaaclab_fovi"))
# -- Project information -----------------------------------------------------
@@ -299,6 +301,7 @@ def _read_pinned_versions() -> dict:
"hydra.core.config_store",
"omegaconf",
"newton",
+ "fovi",
]
# List of zero or more Sphinx-specific warning categories to be squelched (i.e.,
@@ -348,11 +351,13 @@ def _read_pinned_versions() -> dict:
"css/environment-browser.css",
"css/demo-browser.css",
"css/guide-browser.css",
+ "css/foveation-viewer.css",
]
html_js_files = [
"css/environment-browser.js",
"css/demo-browser.js",
"css/guide-browser.js",
+ "css/foveation-viewer.js",
]
html_theme_options = {
diff --git a/docs/source/_static/css/demo-browser.js b/docs/source/_static/css/demo-browser.js
index f351f17c2004..a54b55a4b28f 100644
--- a/docs/source/_static/css/demo-browser.js
+++ b/docs/source/_static/css/demo-browser.js
@@ -57,7 +57,7 @@
if (["rerun", "viser"].includes(fields.visualizer.value)) {
requiredExtras.add(fields.visualizer.value);
}
- const extraOrder = ["isaacsim", "ovphysx", "ovrtx", "tetrahedralization", "teleop", "rerun", "viser"];
+ const extraOrder = ["isaacsim", "ovphysx", "ovrtx", "tetrahedralization", "teleop", "fovi", "rerun", "viser"];
const extras = extraOrder.filter((extra) => requiredExtras.has(extra));
const parts = ["uvx"];
diff --git a/docs/source/_static/css/environment-browser.js b/docs/source/_static/css/environment-browser.js
index 192099aa37f9..3153655ef5ba 100644
--- a/docs/source/_static/css/environment-browser.js
+++ b/docs/source/_static/css/environment-browser.js
@@ -63,6 +63,7 @@
["IsaacContrib-Assemble-Trocar-G129-Dex3", "rlinf", "", "", "", "environments/previews/manipulation/g1_assemble_trocar.jpg"],
["IsaacContrib-AutoMate-Assembly-Direct", "rl_games", "", "", "", "environment-previews/automate_assembly.jpg"],
["IsaacContrib-AutoMate-Disassembly-Direct", "rl_games", "", "", "", "environment-previews/automate_disassembly.jpg"],
+ ["IsaacContrib-Cartpole-Camera-Fovi", "rsl_rl", "isaacsim_physx,newton_kamino,newton_mjwarp,newton_steel,ovphysx", "isaacsim_rtx,newton_optix,newton_warp,ovrtx", "depth,rgb", "", false, {}, {}, "", null, ["||", "||depth", "||rgb", "|isaacsim_rtx|", "|isaacsim_rtx|depth", "|isaacsim_rtx|rgb", "|newton_optix|", "|newton_optix|depth", "|newton_optix|rgb", "|newton_warp|", "|newton_warp|depth", "|newton_warp|rgb", "|ovrtx|", "|ovrtx|depth", "|ovrtx|rgb", "isaacsim_physx||", "isaacsim_physx||depth", "isaacsim_physx||rgb", "isaacsim_physx|isaacsim_rtx|", "isaacsim_physx|isaacsim_rtx|depth", "isaacsim_physx|isaacsim_rtx|rgb", "isaacsim_physx|newton_optix|", "isaacsim_physx|newton_optix|depth", "isaacsim_physx|newton_optix|rgb", "isaacsim_physx|newton_warp|", "isaacsim_physx|newton_warp|depth", "isaacsim_physx|newton_warp|rgb", "newton_kamino||", "newton_kamino||depth", "newton_kamino||rgb", "newton_kamino|isaacsim_rtx|", "newton_kamino|isaacsim_rtx|depth", "newton_kamino|isaacsim_rtx|rgb", "newton_kamino|newton_optix|", "newton_kamino|newton_optix|depth", "newton_kamino|newton_optix|rgb", "newton_kamino|newton_warp|", "newton_kamino|newton_warp|depth", "newton_kamino|newton_warp|rgb", "newton_kamino|ovrtx|", "newton_kamino|ovrtx|depth", "newton_kamino|ovrtx|rgb", "newton_mjwarp||", "newton_mjwarp||depth", "newton_mjwarp||rgb", "newton_mjwarp|isaacsim_rtx|", "newton_mjwarp|isaacsim_rtx|depth", "newton_mjwarp|isaacsim_rtx|rgb", "newton_mjwarp|newton_optix|", "newton_mjwarp|newton_optix|depth", "newton_mjwarp|newton_optix|rgb", "newton_mjwarp|newton_warp|", "newton_mjwarp|newton_warp|depth", "newton_mjwarp|newton_warp|rgb", "newton_mjwarp|ovrtx|", "newton_mjwarp|ovrtx|depth", "newton_mjwarp|ovrtx|rgb", "newton_steel||", "newton_steel||depth", "newton_steel||rgb", "newton_steel|isaacsim_rtx|", "newton_steel|isaacsim_rtx|depth", "newton_steel|isaacsim_rtx|rgb", "newton_steel|newton_optix|", "newton_steel|newton_optix|depth", "newton_steel|newton_optix|rgb", "newton_steel|newton_warp|", "newton_steel|newton_warp|depth", "newton_steel|newton_warp|rgb", "newton_steel|ovrtx|", "newton_steel|ovrtx|depth", "newton_steel|ovrtx|rgb", "ovphysx||", "ovphysx||depth", "ovphysx||rgb", "ovphysx|newton_optix|", "ovphysx|newton_optix|depth", "ovphysx|newton_optix|rgb", "ovphysx|newton_warp|", "ovphysx|newton_warp|depth", "ovphysx|newton_warp|rgb", "ovphysx|ovrtx|", "ovphysx|ovrtx|depth", "ovphysx|ovrtx|rgb"]],
["IsaacContrib-Cartpole-Camera-Showcase-Direct", "skrl", "", "", "box_box,box_discrete,box_multidiscrete,dict_box,dict_discrete,dict_multidiscrete,tuple_box,tuple_discrete,tuple_multidiscrete", "", false, {}, {}, "", null, ["||", "||box_box", "||box_discrete", "||box_multidiscrete", "||dict_box", "||dict_discrete", "||dict_multidiscrete", "||tuple_box", "||tuple_discrete", "||tuple_multidiscrete"]],
["IsaacContrib-Cartpole-Showcase-Direct", "skrl", "isaacsim_physx,newton_kamino,newton_mjwarp,newton_steel,ovphysx", "", "box_box,box_discrete,box_multidiscrete,dict_box,dict_discrete,dict_multidiscrete,discrete_box,discrete_discrete,discrete_multidiscrete,multidiscrete_box,multidiscrete_discrete,multidiscrete_multidiscrete,tuple_box,tuple_discrete,tuple_multidiscrete", "environment-previews/cartpole.jpg", false, {}, {}, "", null, ["||", "||box_box", "||box_discrete", "||box_multidiscrete", "||dict_box", "||dict_discrete", "||dict_multidiscrete", "||discrete_box", "||discrete_discrete", "||discrete_multidiscrete", "||multidiscrete_box", "||multidiscrete_discrete", "||multidiscrete_multidiscrete", "||tuple_box", "||tuple_discrete", "||tuple_multidiscrete", "isaacsim_physx||", "isaacsim_physx||box_box", "isaacsim_physx||box_discrete", "isaacsim_physx||box_multidiscrete", "isaacsim_physx||dict_box", "isaacsim_physx||dict_discrete", "isaacsim_physx||dict_multidiscrete", "isaacsim_physx||discrete_box", "isaacsim_physx||discrete_discrete", "isaacsim_physx||discrete_multidiscrete", "isaacsim_physx||multidiscrete_box", "isaacsim_physx||multidiscrete_discrete", "isaacsim_physx||multidiscrete_multidiscrete", "isaacsim_physx||tuple_box", "isaacsim_physx||tuple_discrete", "isaacsim_physx||tuple_multidiscrete", "newton_kamino||", "newton_kamino||box_box", "newton_kamino||box_discrete", "newton_kamino||box_multidiscrete", "newton_kamino||dict_box", "newton_kamino||dict_discrete", "newton_kamino||dict_multidiscrete", "newton_kamino||discrete_box", "newton_kamino||discrete_discrete", "newton_kamino||discrete_multidiscrete", "newton_kamino||multidiscrete_box", "newton_kamino||multidiscrete_discrete", "newton_kamino||multidiscrete_multidiscrete", "newton_kamino||tuple_box", "newton_kamino||tuple_discrete", "newton_kamino||tuple_multidiscrete", "newton_mjwarp||", "newton_mjwarp||box_box", "newton_mjwarp||box_discrete", "newton_mjwarp||box_multidiscrete", "newton_mjwarp||dict_box", "newton_mjwarp||dict_discrete", "newton_mjwarp||dict_multidiscrete", "newton_mjwarp||discrete_box", "newton_mjwarp||discrete_discrete", "newton_mjwarp||discrete_multidiscrete", "newton_mjwarp||multidiscrete_box", "newton_mjwarp||multidiscrete_discrete", "newton_mjwarp||multidiscrete_multidiscrete", "newton_mjwarp||tuple_box", "newton_mjwarp||tuple_discrete", "newton_mjwarp||tuple_multidiscrete", "newton_steel||", "newton_steel||box_box", "newton_steel||box_discrete", "newton_steel||box_multidiscrete", "newton_steel||dict_box", "newton_steel||dict_discrete", "newton_steel||dict_multidiscrete", "newton_steel||discrete_box", "newton_steel||discrete_discrete", "newton_steel||discrete_multidiscrete", "newton_steel||multidiscrete_box", "newton_steel||multidiscrete_discrete", "newton_steel||multidiscrete_multidiscrete", "newton_steel||tuple_box", "newton_steel||tuple_discrete", "newton_steel||tuple_multidiscrete", "ovphysx||", "ovphysx||box_box", "ovphysx||box_discrete", "ovphysx||box_multidiscrete", "ovphysx||dict_box", "ovphysx||dict_discrete", "ovphysx||dict_multidiscrete", "ovphysx||discrete_box", "ovphysx||discrete_discrete", "ovphysx||discrete_multidiscrete", "ovphysx||multidiscrete_box", "ovphysx||multidiscrete_discrete", "ovphysx||multidiscrete_multidiscrete", "ovphysx||tuple_box", "ovphysx||tuple_discrete", "ovphysx||tuple_multidiscrete"]],
["IsaacContrib-Deploy-GearAssembly-Rizon4s-Grav", "rsl_rl", "", "", "", "environment-previews/rizon4s_gear_assembly.jpg"],
diff --git a/docs/source/_static/css/foveation-pooling-isotropic.json b/docs/source/_static/css/foveation-pooling-isotropic.json
new file mode 100644
index 000000000000..90d14b291e94
--- /dev/null
+++ b/docs/source/_static/css/foveation-pooling-isotropic.json
@@ -0,0 +1 @@
+{"fov":90,"cmfA":2.0,"res":16,"rings":14,"count":243,"mult":{"2":{"rings":28,"count":1026,"defaultK":4,"kMax":8,"geodesic":[0,1,4,2,3,5,6,8,7,18,8,1,19,34,20,2,9,10,8,2,22,21,23,3,11,12,10,3,24,25,23,2,13,14,12,4,27,28,26,5,15,14,16,5,30,29,31,4,17,16,18,6,32,33,31,5,35,55,36,19,56,79,57,34,37,38,36,58,21,20,59,57,39,38,40,22,61,60,23,21,41,40,42,63,24,23,62,64,43,42,44,25,65,66,26,64,46,47,45,69,27,68,28,70,48,49,47,29,71,70,28,72,50,51,49,73,30,31,74,72,52,51,53,32,75,76,31,33,54,53,55,78,33,34,77,79,80,107,81,56,108,109,137,79,82,81,83,110,58,57,111,109,84,83,85,112,59,60,113,111,86,87,85,61,114,115,62,60,88,87,89,63,117,116,62,64,90,89,91,119,65,64,118,120,92,93,91,121,66,67,120,122,94,95,93,68,123,124,122,67,96,95,97,125,70,69,126,124,98,99,97,127,71,72,128,126,100,101,99,73,129,130,74,72,102,101,103,75,132,131,74,76,104,105,103,134,77,76,133,135,106,105,107,136,78,79,135,137,138,170,139,108,171,172,205,109,140,141,139,173,110,174,109,172,142,141,143,175,112,111,176,174,144,145,143,177,113,114,178,176,146,147,145,115,179,180,116,114,148,147,149,117,182,181,118,116,150,151,149,119,184,183,118,120,152,153,151,186,121,120,185,187,154,153,155,188,123,122,187,189,157,158,156,191,125,126,192,190,159,158,160,127,193,194,128,126,161,160,162,129,195,196,128,130,163,162,164,131,198,197,130,132,165,164,166,200,133,132,199,201,167,168,166,202,134,135,201,203,169,168,170,204,136,203,137,205,206,207,242,171,243,244,281,205,208,209,207,245,173,246,172,244,210,209,211,247,175,248,174,246,212,211,213,249,177,250,176,248,214,215,213,251,179,252,178,250,216,217,215,254,180,253,181,255,218,217,219,256,182,255,183,257,220,221,219,258,184,257,185,259,222,223,221,260,186,259,187,261,225,226,224,263,189,264,262,188,227,228,226,265,191,266,190,264,229,230,228,267,193,268,192,266,231,232,230,269,195,270,194,268,233,234,232,271,197,272,196,270,235,234,236,274,198,273,199,275,237,236,238,276,200,275,201,277,239,240,238,278,202,277,203,279,241,242,240,280,204,279,205,281,282,322,283,243,323,364,324,244,284,285,283,325,245,244,326,324,286,287,285,327,247,246,328,326,288,289,287,329,249,248,330,328,290,289,291,331,251,250,332,330,292,293,291,333,253,252,334,332,294,295,293,335,254,255,336,334,296,295,297,256,337,338,257,336,340,339,341,383,299,298,382,384,342,341,343,385,301,300,384,386,344,343,345,387,303,302,388,386,346,347,345,389,304,305,390,388,348,349,347,391,306,307,392,390,309,308,310,269,351,350,268,352,311,310,312,353,271,270,352,354,313,312,314,355,272,273,354,356,315,316,314,357,274,275,356,358,317,318,316,359,276,277,358,360,319,318,320,361,278,279,360,362,321,322,320,363,280,281,362,364,409,410,453,365,454,499,455,366,411,410,412,456,367,457,366,455,413,414,412,458,369,459,368,457,371,370,372,415,329,328,416,414,418,419,417,463,374,464,373,462,420,421,419,465,376,466,375,464,422,421,423,467,378,468,377,466,424,425,423,469,380,470,379,468,426,425,427,471,382,472,381,470,428,429,427,473,384,474,383,472,386,385,387,343,430,431,344,342,388,389,387,345,433,432,344,346,435,434,436,481,390,480,391,482,437,438,436,483,392,482,393,484,439,440,438,485,394,484,395,486,441,440,442,487,396,486,397,488,443,442,444,489,398,488,399,490,445,446,444,491,400,490,401,492,403,404,402,448,359,360,447,449,450,449,451,496,405,495,406,497,452,451,453,498,407,497,408,499,500,545,501,454,546,592,547,499,502,501,503,456,548,549,455,457,504,503,505,458,550,551,457,459,506,507,505,460,552,553,461,459,508,507,509,462,554,555,461,463,510,509,511,464,556,557,463,465,513,514,512,467,559,560,468,466,515,516,514,469,561,562,470,468,517,518,516,471,563,564,470,472,519,518,520,473,565,566,474,472,521,522,520,475,567,568,476,474,523,524,522,477,570,569,478,476,525,524,526,479,572,571,478,480,527,528,526,481,574,573,482,480,529,528,530,483,576,575,484,482,531,532,530,485,578,577,486,484,533,534,532,487,580,579,486,488,536,535,537,490,583,582,489,491,538,539,537,492,585,584,493,491,540,539,541,494,587,586,493,495,542,543,541,496,589,588,495,497,544,543,545,498,591,590,499,497,593,594,640,641,546,642,688,592,595,594,596,643,548,547,642,644,597,596,598,645,550,549,644,646,599,598,600,647,552,551,646,648,601,602,600,649,554,553,650,648,603,602,604,651,556,555,650,652,606,605,607,654,559,558,653,655,608,607,609,656,561,560,657,655,610,611,609,658,563,562,657,659,612,611,613,660,565,564,661,659,614,615,613,662,567,566,663,661,616,615,617,664,569,568,663,665,618,617,619,666,570,571,667,665,620,619,621,668,572,573,669,667,622,623,621,670,574,575,671,669,624,623,625,672,576,577,671,673,626,627,625,674,578,579,675,673,628,629,627,676,580,581,677,675,631,630,632,679,583,584,678,680,633,632,634,681,585,586,680,682,635,636,634,683,587,588,684,682,637,638,636,685,589,590,686,684,639,640,638,687,591,592,688,686,689,690,736,737,641,785,738,642,691,690,692,643,739,740,642,644,693,694,692,645,741,742,644,646,695,694,696,647,743,744,646,648,697,698,696,649,745,746,650,648,699,698,700,651,747,748,650,652,702,701,703,654,750,751,653,655,704,703,705,656,752,753,655,657,706,707,705,658,754,755,659,657,708,707,709,660,756,757,659,661,710,711,709,662,758,759,663,661,712,711,713,664,760,761,663,665,714,715,713,666,763,762,667,665,716,715,717,668,765,764,669,667,718,719,717,670,767,766,671,669,720,719,721,672,769,768,671,673,722,723,721,674,771,770,675,673,724,725,723,676,773,772,677,675,727,726,728,679,776,775,678,680,729,728,730,681,778,777,680,682,731,732,730,683,780,779,684,682,733,734,732,685,782,781,686,684,735,736,734,687,784,783,688,686,786,834,787,835,737,785,738,836,788,789,787,739,837,836,740,738,790,791,789,741,839,838,740,742,792,793,791,743,841,840,744,742,795,796,794,746,844,843,745,747,797,796,798,748,846,845,749,747,799,800,798,750,848,847,749,751,801,802,800,752,850,849,753,751,803,802,804,754,852,851,753,755,805,804,806,756,854,853,755,757,807,806,808,758,856,855,757,759,809,810,808,760,858,857,761,759,812,813,811,763,860,861,764,762,814,813,815,765,862,863,764,766,816,817,815,767,864,865,766,768,818,819,817,769,866,867,770,768,820,819,821,771,868,869,770,772,822,823,821,773,870,871,774,772,824,823,825,775,872,873,774,776,826,827,825,777,874,875,778,776,829,830,828,780,877,878,781,779,831,830,832,782,879,880,781,783,833,834,832,784,881,882,785,783,883,884,930,931,835,932,978,836,885,884,886,933,837,932,934,836,887,886,888,935,839,934,936,838,889,888,890,937,841,936,938,840,891,890,892,939,843,940,938,844,893,892,894,941,845,940,942,844,896,895,897,944,848,943,945,847,898,897,899,946,850,945,947,849,900,901,899,948,852,949,947,853,902,901,903,950,854,949,951,853,904,905,903,952,856,953,951,857,906,905,907,954,858,953,955,857,908,909,907,956,860,957,955,861,910,909,911,958,862,957,959,861,912,913,911,960,864,961,959,865,914,913,915,962,866,963,961,865,916,917,915,964,868,965,963,869,918,919,917,966,870,967,965,871,921,920,922,969,873,968,970,872,923,922,924,971,875,970,972,874,925,926,924,973,877,974,972,878,927,928,926,975,879,976,974,880,929,930,928,977,881,978,976,882,979,-1,1025,980,-1,931,-1,932,981,-1,980,982,933,-1,934,932,983,-1,984,982,935,-1,936,-1,985,-1,984,986,937,-1,-1,938,987,-1,988,986,939,-1,940,-1,989,-1,990,988,941,-1,942,-1,991,-1,990,992,943,-1,944,-1,993,-1,992,994,945,-1,946,-1,995,-1,994,996,-1,947,948,-1,997,-1,996,998,949,-1,950,-1,999,-1,1000,998,951,-1,952,-1,1001,-1,1000,1002,-1,953,954,-1,1004,-1,1005,1003,957,956,-1,-1,1006,-1,1007,1005,-1,959,958,-1,1008,-1,1009,1007,-1,961,960,-1,1010,-1,1011,1009,963,962,-1,-1,1012,-1,1011,1013,965,-1,964,-1,1014,-1,1015,1013,-1,967,966,-1,1016,-1,1017,1015,969,-1,968,-1,1018,-1,1017,1019,971,-1,970,-1,1020,-1,1021,1019,973,-1,972,974,1022,-1,1023,1021,975,-1,-1,974,1024,-1,1023,1025,977,-1,-1,976],"visual":[0,3,4,1,5,2,6,8,7,18,8,19,1,20,34,2,9,8,10,2,22,21,23,3,11,12,10,3,24,25,23,4,13,12,14,27,4,28,26,3,15,14,16,5,30,29,31,6,17,16,18,6,32,33,31,5,35,56,55,36,19,79,57,34,37,38,58,59,36,21,20,57,39,40,61,22,38,60,23,62,41,42,63,24,64,40,23,62,43,44,66,65,25,26,42,45,45,46,68,27,67,69,44,47,48,47,70,71,29,28,49,46,50,49,73,30,72,51,31,74,52,51,75,32,53,76,31,74,54,53,78,77,55,33,34,79,80,108,107,81,56,137,109,79,82,110,81,83,111,58,57,109,84,112,83,85,113,59,60,111,86,114,115,87,85,61,62,60,88,117,116,87,89,63,62,64,90,119,91,89,118,65,64,120,92,121,93,91,120,66,67,122,94,123,95,93,68,122,124,67,96,125,97,95,126,70,69,124,98,127,99,97,128,71,72,126,100,129,130,99,101,73,74,72,102,132,131,101,103,75,74,76,104,134,105,103,133,77,76,135,106,136,107,105,135,78,79,137,138,171,170,139,108,205,172,137,140,173,141,139,174,110,172,109,142,175,143,176,141,112,111,174,144,178,145,177,143,114,113,179,146,180,147,179,145,115,116,181,148,182,149,181,117,183,147,118,150,151,184,185,119,183,149,120,152,153,186,187,121,151,122,185,154,155,188,189,123,153,156,124,157,156,191,190,125,158,124,192,159,158,193,192,127,194,160,126,161,195,160,196,129,194,162,128,163,197,162,198,164,130,131,196,165,199,164,200,166,132,133,198,167,202,166,201,168,134,135,203,169,204,168,170,203,136,205,137,206,243,242,207,244,281,171,205,208,245,209,246,207,173,244,172,210,247,248,211,209,175,246,174,212,249,250,213,211,177,176,251,214,252,215,251,213,179,178,253,216,254,217,253,181,215,255,180,218,256,219,257,255,183,217,182,220,258,221,259,185,257,184,219,222,223,260,261,187,186,221,259,224,225,262,263,188,189,226,223,227,226,265,264,190,191,228,266,229,267,228,266,192,268,193,230,231,269,230,270,268,194,232,195,233,271,232,272,196,234,270,197,235,273,234,274,236,198,199,272,237,275,276,236,238,200,201,274,239,278,277,238,240,202,279,203,241,280,240,279,242,204,281,205,282,323,322,283,364,324,243,244,284,325,285,326,283,324,245,244,286,327,287,328,285,326,247,246,288,329,330,289,287,249,328,248,290,331,332,291,289,251,330,250,292,333,334,293,291,253,252,332,294,336,295,335,293,255,254,337,296,338,297,337,295,257,339,256,340,298,299,339,341,259,297,258,342,300,301,341,343,261,260,299,344,303,302,343,345,263,262,301,346,305,304,347,345,264,265,306,348,307,306,349,347,266,308,267,309,350,308,351,310,268,349,269,311,352,310,353,312,270,271,351,313,354,355,312,314,272,273,353,315,357,356,314,316,274,358,275,317,359,358,316,318,276,360,277,319,361,318,360,320,362,278,279,321,363,320,362,322,364,280,281,409,365,366,408,410,453,323,454,411,367,412,368,366,410,325,456,369,413,414,370,368,412,327,458,371,415,416,372,370,329,414,417,373,418,417,374,331,372,419,463,420,375,376,419,421,333,374,377,422,378,377,421,423,335,379,376,424,380,379,425,423,381,337,469,426,382,381,427,425,383,339,472,384,428,429,383,385,427,341,474,386,430,431,385,387,343,429,476,388,433,432,389,387,345,434,478,390,435,434,391,389,436,347,480,437,392,393,436,438,391,349,482,439,394,395,440,438,393,351,485,441,396,397,442,440,353,395,398,443,399,398,444,442,355,400,397,401,445,446,400,357,402,444,491,403,448,447,402,404,359,449,446,405,450,449,404,406,451,361,496,452,407,451,406,408,453,363,498,500,454,545,501,455,499,409,546,502,456,503,457,501,455,411,548,504,458,505,459,503,457,413,550,506,460,507,461,459,505,415,552,508,462,509,463,461,507,417,555,510,511,464,465,419,463,557,509,513,512,467,466,421,468,559,514,515,469,514,468,470,516,423,561,517,471,516,470,472,518,563,425,519,473,518,472,520,474,427,565,521,475,520,474,522,476,429,567,523,477,522,524,476,478,432,431,525,479,526,480,524,478,434,572,527,481,528,482,526,480,436,574,529,483,530,484,482,528,576,438,531,485,532,486,484,530,440,578,533,534,487,488,442,486,580,532,536,535,490,489,444,491,582,537,538,492,537,491,493,539,446,584,540,494,539,493,495,541,448,587,542,496,541,495,543,497,450,589,544,498,543,497,545,499,452,591,593,546,640,594,592,547,641,500,595,548,596,549,594,547,643,502,597,550,598,551,596,549,645,504,599,552,600,553,551,598,647,506,601,554,602,555,553,600,649,508,603,604,556,557,555,602,651,510,606,605,558,559,557,654,653,607,608,607,560,561,559,609,656,514,610,562,609,563,611,658,561,516,612,564,611,565,613,660,563,518,614,566,567,613,615,662,520,565,616,568,569,615,617,664,522,567,618,571,570,619,617,666,524,572,620,573,572,621,619,668,526,574,622,575,623,574,621,670,576,528,624,577,625,576,623,672,578,530,626,627,579,578,580,625,674,532,628,629,581,580,582,676,677,627,631,630,583,582,584,632,679,536,633,585,632,584,586,634,681,538,635,587,634,586,588,636,683,540,637,589,636,588,638,590,685,542,639,591,638,590,640,592,687,544,689,641,690,736,688,642,737,593,691,643,692,690,644,642,739,595,693,645,694,646,692,741,644,742,695,647,696,648,694,743,646,744,697,698,649,650,696,746,745,648,699,700,651,652,748,747,698,650,702,701,654,653,750,703,749,700,704,703,656,655,752,705,657,608,706,705,658,657,754,707,659,610,708,660,707,659,709,756,661,757,710,662,709,661,711,663,758,759,712,664,711,713,663,665,760,761,714,666,715,713,667,665,763,762,716,668,717,669,715,667,765,764,718,670,719,671,717,767,669,766,720,721,672,673,769,719,671,624,722,723,674,675,771,721,673,626,724,725,676,677,773,723,774,726,727,726,679,678,775,776,728,680,729,728,681,680,730,777,778,682,731,683,730,682,732,780,684,779,733,685,732,684,734,782,686,781,735,687,734,736,686,688,784,639,786,737,834,787,835,785,738,689,788,739,789,740,787,837,738,838,790,791,741,742,839,789,740,840,792,793,743,744,841,791,842,742,795,794,746,745,843,844,796,793,797,796,748,747,845,846,798,749,799,798,750,749,800,848,847,751,801,752,800,802,751,850,753,849,803,754,804,802,755,852,753,851,805,756,806,757,804,854,755,853,807,808,758,759,856,806,757,855,809,810,760,761,858,808,759,811,812,811,763,762,860,813,764,810,814,813,765,764,862,815,766,863,816,767,815,766,817,864,768,865,818,769,817,819,768,866,770,867,820,771,821,819,772,868,770,869,822,823,773,774,821,870,871,772,824,825,775,776,873,872,823,774,826,827,777,778,875,874,825,828,829,828,780,779,877,830,876,781,831,830,782,781,879,832,783,878,833,784,832,783,834,881,785,880,883,835,930,884,931,882,836,932,885,837,886,933,884,838,836,934,887,888,839,935,840,886,838,936,889,890,841,842,937,888,938,840,891,892,843,844,939,940,890,842,893,894,845,846,941,942,892,895,896,895,848,847,944,943,897,894,898,897,850,849,946,945,899,851,900,899,852,851,948,901,947,853,902,901,854,853,950,903,949,855,904,856,903,952,905,855,857,951,906,858,905,907,954,857,859,953,908,860,909,907,956,861,859,957,910,862,911,958,909,863,861,959,912,913,864,865,960,911,961,863,914,915,866,867,962,913,963,865,916,917,868,869,964,965,915,867,918,919,870,871,966,967,917,920,921,920,873,872,969,968,922,919,923,922,875,874,971,970,924,876,925,924,877,876,973,926,972,878,927,926,879,975,878,928,880,974,929,881,928,977,930,880,882,976,979,931,-1,-1,1025,980,-1,978,981,933,-1,982,-1,980,934,932,983,935,-1,984,982,-1,936,934,985,-1,986,937,938,984,-1,-1,987,988,939,-1,-1,940,986,938,989,990,-1,941,942,-1,988,-1,991,992,-1,944,943,-1,990,-1,993,994,946,-1,-1,945,992,947,995,996,-1,948,947,-1,-1,994,997,998,950,-1,-1,949,996,951,999,1000,952,-1,-1,951,953,998,1001,1002,954,-1,-1,953,955,-1,1004,1003,956,-1,-1,957,955,1005,1006,1005,958,-1,-1,959,957,-1,1008,1007,-1,960,961,-1,-1,1009,1010,1009,962,-1,-1,963,1011,961,1012,1011,-1,964,965,-1,1013,-1,1014,1013,-1,966,967,-1,1015,-1,1016,1015,-1,969,968,-1,1017,-1,1018,1017,-1,971,970,1019,-1,-1,1020,1019,973,-1,-1,972,1021,974,1022,975,-1,1021,1023,-1,974,976,1024,977,-1,1023,1025,-1,976,978]},"3":{"rings":42,"count":2340,"defaultK":10,"kMax":18,"geodesic":[0,6,3,4,2,7,1,5,14,9,19,12,16,17,11,10,18,15,20,21,36,8,37,38,58,19,9,22,35,39,57,1,59,60,85,7,23,24,22,41,10,40,42,11,9,39,21,25,64,2,43,63,65,3,26,27,25,45,12,44,13,46,11,43,24,28,69,68,3,4,47,14,28,27,29,47,14,48,13,46,49,15,30,26,72,4,71,12,73,5,31,30,32,51,16,52,15,50,17,53,33,29,76,77,6,5,49,14,34,35,33,55,18,56,54,17,19,57,36,32,81,7,53,82,80,6,86,116,87,59,117,150,118,60,85,115,88,37,151,119,149,188,152,84,89,90,88,120,62,61,121,119,63,122,91,87,60,39,155,154,40,156,92,93,91,64,124,123,65,63,125,122,90,94,41,158,159,66,42,157,95,96,94,127,67,126,66,128,68,97,93,162,125,43,44,65,163,161,98,97,99,130,69,70,131,129,68,71,96,100,132,166,46,45,165,128,102,103,101,73,135,134,72,74,136,133,104,100,171,48,170,49,71,172,105,104,106,138,76,75,137,139,77,74,103,107,136,174,50,51,175,140,108,109,107,141,78,142,79,140,77,106,110,178,143,53,52,80,177,179,111,112,110,81,144,145,80,82,143,146,113,109,55,182,181,79,54,183,114,115,113,148,83,84,147,149,82,146,112,116,85,57,185,186,56,184,189,229,190,151,230,231,273,188,152,228,191,117,274,232,272,320,275,150,192,191,193,233,154,234,153,232,155,235,194,190,277,278,119,120,152,231,195,194,196,236,157,237,156,235,158,238,155,197,193,122,281,280,282,121,198,197,199,240,159,239,160,241,158,238,161,196,200,284,124,125,285,283,201,200,202,243,162,242,163,244,161,199,203,127,288,241,287,164,126,245,204,205,203,246,165,247,164,245,166,206,202,291,129,248,130,292,163,244,249,250,248,294,207,295,206,293,208,296,251,247,205,343,167,342,168,344,252,251,253,297,298,209,210,296,299,208,211,250,254,170,346,345,347,169,255,256,254,301,212,300,213,302,211,299,257,253,214,349,173,350,172,348,215,214,216,258,175,257,176,259,174,213,217,304,139,256,138,303,177,260,218,217,219,261,178,262,177,260,179,220,216,141,307,263,308,176,142,259,221,222,220,264,181,265,180,263,182,266,179,223,219,311,144,143,310,312,224,225,223,268,183,267,184,269,182,266,185,226,222,146,314,315,313,147,227,228,226,271,186,270,187,272,185,269,229,225,318,317,149,148,188,273,371,372,422,321,423,476,424,370,322,421,373,274,477,425,475,478,532,369,374,375,373,426,324,427,323,425,325,376,372,480,277,428,481,276,322,424,377,378,376,429,327,430,326,428,328,379,375,431,325,279,483,484,280,427,381,382,380,433,331,434,330,432,332,435,329,379,383,283,488,487,284,282,384,383,385,436,437,333,334,435,438,332,335,382,386,491,286,285,490,492,387,388,386,440,336,439,337,441,335,438,338,385,389,494,288,289,495,493,391,392,390,444,340,443,341,445,339,393,389,442,292,342,499,498,293,291,394,395,393,447,343,446,344,448,342,396,392,295,502,445,501,345,294,449,397,396,398,346,450,449,451,345,347,395,399,505,297,298,448,452,504,506,400,401,399,453,349,454,348,452,350,402,398,300,508,455,509,347,301,451,404,405,403,457,353,458,352,456,354,459,406,402,304,351,513,512,303,305,407,408,406,460,356,461,355,459,357,462,354,409,405,516,307,306,515,517,410,409,411,463,464,358,359,462,465,357,360,408,412,519,309,310,518,520,413,412,414,467,361,466,362,468,360,465,363,411,415,312,522,523,311,313,417,416,418,471,365,470,366,472,364,415,419,469,367,316,527,526,315,473,420,419,421,474,368,473,369,475,367,422,418,530,318,472,529,319,370,476,533,534,590,477,591,650,592,532,478,535,589,423,651,593,649,652,712,476,536,535,537,594,480,595,479,593,481,538,534,654,426,596,655,425,478,592,539,538,540,597,483,598,482,596,484,537,541,599,657,429,481,658,428,595,543,542,544,601,487,602,486,600,488,603,485,541,545,662,432,661,433,663,546,547,545,604,490,605,489,603,491,606,488,544,548,665,435,664,436,666,549,550,548,608,492,607,493,609,491,606,494,551,547,668,438,669,437,667,552,551,553,611,495,610,496,612,494,609,497,550,554,671,441,672,440,670,556,555,557,615,499,614,500,616,498,554,558,613,676,444,501,675,445,617,559,560,558,618,502,617,503,619,501,561,557,679,447,616,678,448,504,620,562,561,563,505,621,620,622,504,506,560,564,450,682,619,623,681,683,449,565,564,566,624,508,625,507,623,509,563,567,685,453,626,686,452,506,622,568,569,567,627,511,628,510,626,512,570,566,629,688,456,509,689,455,625,572,573,571,631,515,632,514,630,516,633,513,574,570,693,459,692,460,694,575,576,574,634,518,635,517,633,519,636,516,577,573,696,462,695,463,697,578,579,577,638,520,637,521,639,519,636,522,580,576,699,465,700,464,698,581,582,580,641,523,640,524,642,522,639,525,583,579,702,468,703,467,701,585,584,586,645,527,644,528,646,526,587,583,643,707,471,529,706,472,647,588,587,589,648,530,647,531,649,529,586,590,710,474,646,709,475,532,650,713,714,775,651,776,839,777,712,652,774,715,591,840,838,778,841,905,711,716,715,717,779,654,780,653,778,655,718,714,843,594,844,781,593,652,777,719,718,720,782,657,783,656,781,658,717,721,846,597,847,596,784,655,780,722,721,723,785,660,786,659,784,661,724,720,849,600,850,599,787,658,783,726,727,725,789,664,790,663,788,665,724,728,854,791,603,662,853,604,787,729,728,730,792,667,793,666,791,668,731,727,794,665,857,606,856,607,858,732,731,733,795,670,796,669,794,671,797,668,730,734,860,609,859,610,861,735,736,734,798,673,799,672,797,674,800,671,737,733,863,612,864,611,862,738,739,737,801,676,802,675,800,677,803,674,736,740,866,615,867,614,865,741,740,742,804,679,805,678,803,680,806,677,743,739,869,618,870,617,868,744,743,745,807,682,808,681,806,683,809,680,742,746,872,621,873,620,871,748,749,747,812,685,811,686,813,684,810,687,746,750,877,624,876,625,878,751,750,752,815,688,814,689,816,687,813,690,753,749,880,627,879,628,881,754,753,755,818,691,817,692,819,690,816,693,752,756,883,630,882,631,884,757,758,756,821,694,820,695,822,693,819,696,759,755,886,633,887,632,885,760,761,759,824,697,823,698,825,696,758,762,822,699,889,636,890,635,888,763,762,764,827,700,826,701,828,699,765,761,892,825,639,702,893,638,829,767,766,768,831,704,830,705,832,703,765,769,897,642,896,643,829,706,833,770,771,769,834,707,833,708,835,706,772,768,900,645,899,646,832,709,836,773,772,774,837,710,836,711,838,709,775,771,903,648,902,835,649,712,839,906,907,972,840,973,974,1040,841,905,971,908,776,1041,1039,975,1042,1109,904,909,910,908,976,843,977,842,975,844,911,907,1044,779,978,778,1045,841,974,912,911,913,979,846,980,845,978,847,910,914,1047,782,981,781,844,1048,977,916,917,915,983,850,984,849,982,851,914,918,1051,786,985,785,848,1052,981,919,920,918,986,853,987,852,985,854,921,917,1054,988,788,851,789,1055,984,922,923,921,989,856,990,855,988,857,924,920,991,854,791,1057,1058,792,790,925,924,926,992,859,993,858,991,860,994,927,923,857,794,1061,1060,795,793,928,927,929,995,862,996,861,994,863,997,860,926,930,797,1064,1063,798,796,932,931,933,999,866,1000,865,998,867,1001,864,930,934,801,1068,1067,800,802,935,936,934,1002,869,1003,868,1001,870,1004,867,937,933,1071,804,803,1070,1072,938,937,939,1005,872,1006,871,1004,873,1007,870,936,940,1074,807,806,1073,1075,941,940,942,1009,874,1008,875,1010,873,1007,876,939,943,1077,809,810,1078,1076,944,943,945,1012,877,1011,878,1013,876,1010,879,942,946,1080,812,813,1081,1079,947,946,948,1015,880,1014,881,1016,879,1013,882,945,949,815,1083,1084,816,814,951,952,950,1019,884,1018,885,1020,883,1017,886,953,949,819,1087,1088,818,820,954,955,953,1022,887,1021,888,1023,886,1020,952,956,889,822,1090,1091,821,823,957,956,958,1025,890,1024,891,1026,889,955,959,1023,892,825,1094,1093,824,826,960,959,961,1028,893,1027,894,1029,892,958,962,1097,1026,828,895,827,1096,1030,963,962,964,1031,896,1030,897,1032,895,961,965,1100,830,1029,831,898,1099,1033,967,966,968,1035,900,1034,901,1036,899,969,965,1104,834,1033,835,902,1103,1037,970,969,971,1038,903,1037,904,1039,902,968,972,1107,837,1036,838,1106,905,1040,1110,1179,1111,1180,1041,1249,1181,1042,1109,1178,1112,973,1250,1248,1182,1251,1320,1043,1113,1112,1114,1183,1044,1043,1182,1184,1045,1111,1115,1253,976,1042,975,1254,1181,1185,1116,1115,1117,1186,1047,1046,1185,1187,1048,1114,1118,1256,979,1045,978,1257,1184,1188,1120,1121,1119,1190,1051,1050,1191,1189,1052,1122,1118,1260,983,1049,982,1261,1192,1188,1123,1122,1124,1193,1054,1053,1192,1194,1055,1125,1121,1263,986,1052,985,1264,1195,1191,1126,1125,1127,1196,1057,1056,1195,1197,1058,1128,1124,1266,1055,989,988,1267,1194,1198,1129,1130,1128,1199,1060,1059,1200,1198,1061,1131,1127,1058,1269,991,992,1270,1201,1197,1132,1133,1131,1202,1063,1062,1203,1201,1064,1061,1130,1134,1272,994,995,1273,1204,1200,1135,1134,1136,1205,1066,1065,1206,1204,1067,1064,1137,1133,997,1275,1276,998,1207,1203,1139,1138,1140,1209,1070,1069,1208,1210,1071,1068,1137,1141,1001,1279,1280,1002,1207,1211,1142,1143,1141,1212,1073,1072,1213,1211,1074,1071,1144,1140,1004,1282,1283,1005,1214,1210,1145,1146,1144,1215,1076,1075,1216,1214,1077,1074,1147,1143,1007,1286,1285,1217,1213,1008,1148,1147,1149,1218,1078,1079,1217,1219,1077,1080,1150,1146,1010,1289,1288,1009,1216,1220,1151,1152,1150,1221,1081,1082,1222,1220,1080,1083,1153,1149,1013,1292,1291,1012,1223,1219,1155,1154,1156,1225,1085,1086,1224,1226,1084,1087,1153,1157,1017,1296,1295,1016,1223,1227,1158,1159,1157,1228,1088,1089,1227,1229,1087,1090,1160,1156,1299,1020,1019,1298,1230,1226,1161,1160,1162,1231,1091,1092,1230,1232,1090,1159,1163,1093,1302,1023,1022,1301,1229,1233,1164,1163,1165,1234,1094,1095,1233,1235,1093,1162,1166,1305,1096,1025,1026,1304,1232,1236,1167,1168,1166,1237,1097,1098,1238,1236,1096,1169,1165,1308,1028,1099,1029,1307,1239,1235,1170,1171,1169,1240,1100,1101,1241,1239,1099,1168,1172,1311,1031,1102,1032,1310,1242,1238,1174,1173,1175,1244,1104,1105,1245,1243,1103,1172,1176,1315,1035,1106,1036,1314,1246,1242,1177,1176,1178,1247,1107,1108,1246,1248,1106,1175,1179,1318,1038,1109,1039,1317,1245,1249,1321,1322,1392,1393,1250,1394,1464,1251,1320,1323,1391,1465,1180,1395,1463,1466,1537,1252,1324,1325,1323,1396,1253,1252,1397,1395,1254,1326,1322,1468,1183,1251,1182,1469,1398,1394,1327,1328,1326,1399,1256,1255,1400,1398,1257,1329,1325,1471,1186,1254,1185,1472,1401,1397,1330,1329,1331,1402,1259,1258,1401,1403,1260,1328,1332,1474,1189,1257,1188,1475,1404,1400,1334,1333,1335,1406,1263,1262,1405,1407,1264,1336,1332,1478,1193,1261,1192,1479,1408,1404,1337,1336,1338,1409,1266,1265,1410,1408,1267,1339,1335,1481,1264,1196,1195,1482,1407,1411,1340,1339,1341,1412,1269,1268,1413,1411,1270,1338,1342,1267,1484,1198,1199,1485,1410,1414,1343,1344,1342,1415,1272,1271,1414,1416,1273,1270,1341,1345,1487,1201,1202,1488,1413,1417,1346,1347,1345,1418,1275,1274,1419,1417,1276,1273,1348,1344,1204,1490,1491,1205,1420,1416,1349,1350,1348,1421,1278,1277,1422,1420,1279,1276,1347,1351,1207,1493,1494,1208,1419,1423,1352,1351,1353,1424,1281,1280,1423,1425,1282,1279,1354,1350,1210,1496,1497,1211,1426,1422,1355,1356,1354,1427,1284,1283,1428,1426,1285,1282,1353,1357,1213,1499,1500,1214,1429,1425,1359,1360,1358,1431,1287,1288,1432,1430,1286,1289,1361,1357,1217,1504,1503,1216,1433,1429,1362,1363,1361,1434,1290,1291,1435,1433,1289,1292,1364,1360,1220,1507,1506,1219,1436,1432,1365,1364,1366,1437,1293,1294,1436,1438,1292,1295,1367,1363,1223,1510,1509,1222,1439,1435,1368,1367,1369,1440,1296,1297,1439,1441,1295,1298,1366,1370,1226,1513,1512,1225,1438,1442,1371,1370,1372,1443,1299,1300,1442,1444,1298,1301,1373,1369,1516,1229,1228,1515,1445,1441,1374,1375,1373,1446,1302,1303,1447,1445,1301,1376,1372,1304,1519,1232,1231,1518,1444,1448,1377,1378,1376,1449,1305,1306,1450,1448,1304,1379,1375,1522,1307,1234,1235,1521,1451,1447,1380,1379,1381,1452,1308,1309,1451,1453,1307,1378,1382,1525,1237,1310,1238,1524,1450,1454,1384,1383,1385,1456,1312,1313,1455,1457,1311,1382,1386,1529,1241,1314,1242,1528,1454,1458,1387,1386,1388,1459,1315,1316,1460,1458,1314,1389,1385,1532,1244,1317,1245,1531,1461,1457,1390,1391,1389,1462,1318,1319,1463,1461,1317,1392,1388,1535,1247,1320,1248,1534,1464,1460,1611,1612,1683,1684,1538,1757,1685,1539,1610,1613,1682,1758,1465,1686,1756,1540,1609,1831,1614,1613,1615,1541,1687,1688,1540,1542,1686,1612,1616,1468,1761,1689,1762,1539,1543,1467,1617,1618,1616,1544,1690,1691,1545,1543,1689,1619,1615,1471,1764,1692,1765,1542,1546,1472,1621,1620,1622,1548,1694,1695,1547,1549,1693,1619,1623,1475,1768,1696,1769,1546,1550,1474,1624,1623,1625,1551,1697,1698,1550,1552,1696,1626,1622,1478,1771,1699,1772,1549,1553,1477,1627,1628,1626,1554,1700,1701,1553,1555,1699,1629,1625,1481,1774,1702,1775,1556,1552,1482,1630,1631,1629,1557,1703,1704,1556,1558,1702,1705,1628,1632,1484,1777,1778,1555,1559,1485,1633,1632,1634,1560,1706,1707,1559,1561,1705,1708,1631,1635,1487,1780,1781,1558,1562,1486,1636,1637,1635,1563,1709,1710,1564,1562,1708,1711,1638,1634,1490,1783,1784,1565,1561,1491,1640,1641,1639,1567,1713,1714,1568,1566,1712,1715,1642,1638,1494,1787,1788,1565,1569,1495,1643,1644,1642,1570,1716,1717,1571,1569,1715,1718,1645,1641,1497,1790,1791,1572,1568,1498,1646,1645,1647,1573,1719,1720,1572,1574,1718,1721,1644,1648,1500,1793,1794,1571,1575,1501,1649,1650,1648,1576,1723,1722,1575,1577,1724,1721,1651,1647,1503,1797,1796,1578,1574,1502,1652,1653,1651,1579,1726,1725,1580,1578,1727,1724,1654,1650,1506,1800,1799,1581,1577,1507,1655,1654,1656,1582,1729,1728,1583,1581,1730,1727,1657,1653,1509,1803,1802,1584,1580,1510,1659,1658,1660,1586,1733,1732,1585,1587,1734,1731,1657,1661,1513,1807,1806,1584,1588,1512,1662,1663,1661,1589,1736,1735,1588,1590,1737,1734,1660,1664,1516,1810,1809,1591,1587,1517,1665,1666,1664,1592,1739,1738,1593,1591,1740,1737,1663,1667,1519,1813,1812,1594,1590,1520,1668,1667,1669,1595,1742,1741,1594,1596,1743,1666,1670,1522,1816,1740,1815,1593,1597,1521,1671,1672,1670,1598,1745,1744,1599,1597,1746,1669,1673,1525,1819,1743,1818,1596,1600,1524,1674,1673,1675,1601,1748,1747,1602,1600,1749,1676,1672,1528,1822,1746,1821,1603,1599,1527,1678,1679,1677,1605,1752,1751,1606,1604,1753,1676,1680,1532,1826,1750,1825,1607,1603,1533,1681,1680,1682,1608,1755,1754,1609,1607,1756,1683,1679,1535,1829,1753,1828,1606,1610,1534,1832,1905,1833,1906,1758,1831,1759,1907,1978,1834,1904,1979,1684,1760,1830,1757,1685,1980,1835,1836,1834,1761,1909,1908,1762,1760,1910,1833,1837,1687,1982,1907,1759,1763,1981,1688,1838,1837,1839,1764,1912,1911,1765,1763,1913,1836,1840,1690,1985,1910,1984,1766,1762,1691,1842,1841,1843,1768,1916,1915,1767,1769,1917,1844,1840,1694,1989,1914,1988,1770,1766,1695,1845,1844,1846,1771,1919,1918,1770,1772,1920,1843,1847,1697,1992,1917,1991,1769,1773,1696,1848,1849,1847,1774,1922,1921,1773,1775,1923,1850,1846,1700,1995,1920,1994,1776,1772,1701,1851,1852,1850,1777,1925,1924,1778,1776,1926,1853,1849,1703,1923,1998,1997,1779,1775,1704,1855,1854,1856,1781,1929,1928,1780,1782,1930,1927,1853,1857,1707,2002,2001,1779,1783,1708,1858,1857,1859,1784,1932,1931,1783,1785,1933,1930,1856,1860,1710,2005,2004,1782,1786,1709,1861,1860,1862,1787,1935,1934,1786,1788,1936,1933,1859,1863,1713,2008,2007,1785,1789,1712,1864,1865,1863,1790,1938,1937,1789,1791,1939,1936,1866,1862,1716,2011,2010,1792,1788,1717,1867,1868,1866,1793,1941,1940,1794,1792,1942,1939,1865,1869,1719,2014,2013,1795,1791,1720,1871,1870,1872,1797,1944,1945,1796,1798,1943,1946,1869,1873,1723,2017,2018,1795,1799,1722,1874,1875,1873,1800,1947,1948,1801,1799,1946,1949,1876,1872,1726,2020,2021,1802,1798,1727,1877,1876,1878,1803,1950,1951,1802,1804,1949,1952,1875,1879,1729,2023,2024,1801,1805,1728,1880,1879,1881,1806,1953,1954,1805,1807,1952,1955,1878,1882,1732,2026,2027,1804,1808,1731,1883,1884,1882,1809,1956,1957,1810,1808,1955,1958,1885,1881,1735,2029,2030,1811,1807,1736,1887,1888,1886,1813,1960,1961,1814,1812,1959,1889,1885,1739,1962,2033,2034,1815,1811,1740,1890,1891,1889,1816,1963,1964,1815,1817,1962,1888,1892,1742,2036,1965,2037,1814,1818,1741,1893,1894,1892,1819,1966,1967,1820,1818,1965,1895,1891,1745,2039,1968,2040,1821,1817,1746,1896,1895,1897,1822,1969,1970,1821,1823,1968,1894,1898,1748,2042,1971,2043,1820,1824,1747,1900,1901,1899,1826,1973,1974,1825,1827,1972,1898,1902,1752,2046,1975,2047,1824,1828,1753,1903,1904,1902,1829,1976,1977,1830,1828,1975,1905,1901,1755,2049,1978,1831,1827,2050,1756,2052,2053,2124,1979,2125,1980,2051,2126,2196,2054,2123,2197,1906,1981,2050,1907,1978,2198,2055,2056,2054,1982,2128,2127,1983,1981,2129,2057,2053,1909,2200,2126,2199,1984,1980,1908,2058,2059,2057,1985,2131,2130,1986,1984,2132,2060,2056,1912,2203,2129,2202,1987,1983,1911,2062,2061,2063,1989,2135,2134,1988,1990,2136,2060,2064,1916,2207,2133,2206,1987,1991,1917,2065,2064,2066,1992,2138,2137,1991,1993,2139,2067,2063,1919,2210,2136,2209,1994,1990,1918,2068,2069,2067,1995,2141,2140,1994,1996,2142,2070,2066,1922,2213,2139,2212,1997,1993,1921,2071,2072,2070,1998,2144,2143,1999,1997,2145,2069,2073,1925,2142,2216,2215,1996,2000,1926,2074,2073,2075,2001,2147,2146,2002,2000,2148,2145,2072,2076,1928,2219,2218,1999,2003,1927,2077,2078,2076,2004,2150,2149,2005,2003,2151,2148,2079,2075,1931,2222,2221,2006,2002,1932,2081,2082,2080,2008,2154,2153,2009,2007,2155,2152,2079,2083,1935,2226,2225,2006,2010,1936,2084,2085,2083,2011,2157,2156,2012,2010,2158,2155,2086,2082,1938,2229,2228,2013,2009,1939,2087,2086,2088,2014,2160,2159,2013,2015,2161,2158,2085,2089,1941,2232,2231,2012,2016,1940,2090,2089,2091,2017,2162,2163,2016,2018,2161,2164,2092,2088,1944,2234,2235,2019,2015,1945,2093,2094,2092,2020,2165,2166,2021,2019,2164,2167,2095,2091,1947,2237,2238,2022,2018,1946,2096,2095,2097,2023,2168,2169,2022,2024,2167,2170,2098,2094,1950,2240,2241,2021,2025,1949,2100,2099,2101,2027,2172,2173,2026,2028,2171,2174,2098,2102,1954,2244,2245,2025,2029,1953,2103,2102,2104,2030,2175,2176,2029,2031,2174,2177,2101,2105,1957,2247,2248,2032,2028,1956,2106,2107,2105,2033,2178,2179,2034,2032,2177,2108,2104,1960,2180,2250,2251,2035,2031,1959,2109,2108,2110,2036,2181,2182,2035,2037,2180,2107,2111,1963,2253,2183,2254,2034,2038,1962,2112,2113,2111,2039,2184,2185,2040,2038,2183,2114,2110,1966,2256,2186,2257,2041,2037,1967,2115,2116,2114,2042,2187,2188,2043,2041,2186,2113,2117,1969,2259,2189,2260,2040,2044,1968,2119,2118,2120,2046,2191,2192,2045,2047,2190,2117,2121,1973,2263,2193,2264,2048,2044,1972,2122,2121,2123,2049,2194,2195,2048,2050,2193,2120,2124,1976,2266,2196,2267,2047,2051,1975,2269,-1,-1,2339,2270,2197,-1,-1,2198,2268,-1,-1,-1,2271,2338,-1,2125,-1,2272,2273,2271,-1,2200,-1,2201,2199,-1,-1,-1,-1,2270,2274,2128,2202,-1,2129,2275,-1,2276,2274,2203,-1,2204,-1,2202,-1,-1,-1,2277,2273,2131,-1,-1,2205,2278,-1,2279,2277,2206,-1,2207,-1,2205,-1,-1,-1,2280,2276,2134,2208,-1,-1,2281,-1,2282,2280,2209,-1,2210,-1,2208,-1,-1,-1,2283,2279,2137,2211,-1,2138,2284,-1,2283,2285,2212,-1,2213,-1,2211,-1,-1,-1,2282,2286,2140,2214,-1,-1,2288,-1,2289,2287,2216,-1,2217,-1,2215,-1,-1,-1,2218,2290,2286,2144,-1,2145,2291,-1,2290,2292,2219,-1,2220,-1,2218,-1,-1,-1,2221,2289,2293,2147,-1,-1,2294,2293,2295,-1,-1,2222,2223,-1,-1,2221,-1,-1,2224,2296,2292,2150,2151,-1,2297,-1,2298,2296,2225,2226,-1,-1,2224,-1,2227,-1,-1,2299,2295,-1,-1,2153,2300,2301,2299,-1,-1,2228,2229,-1,-1,2227,2230,-1,-1,2302,2298,2156,2157,-1,2303,-1,2304,2302,2231,2232,-1,-1,2230,-1,2233,-1,-1,2305,2301,-1,-1,2159,2306,-1,2307,2305,2235,-1,2234,-1,-1,2236,2233,-1,-1,2308,2304,2163,2162,-1,2309,-1,2308,2310,2238,-1,2237,-1,2239,-1,-1,2236,-1,2307,2311,2166,2165,-1,2312,-1,2311,2313,2241,2240,-1,-1,2242,-1,-1,2239,-1,2310,2314,2169,-1,-1,2315,2314,2316,-1,2244,-1,2243,-1,-1,2245,-1,-1,2242,2317,2313,2172,2171,-1,2318,-1,2317,2319,2247,2246,-1,-1,2248,-1,-1,2245,-1,-1,2316,2320,-1,2175,2321,2320,2322,-1,2250,-1,2249,-1,2251,-1,-1,-1,2248,2319,2323,2178,2177,-1,2325,-1,2326,2324,2254,-1,2253,-1,2255,-1,-1,-1,-1,2327,2323,-1,2182,2252,2328,2329,2327,-1,2257,-1,2256,2258,-1,-1,-1,-1,2330,2326,2185,2255,2184,-1,2331,-1,2332,2330,2260,-1,2259,-1,2261,-1,-1,-1,2333,2329,2188,-1,-1,2258,2334,-1,2335,2333,2263,-1,2262,2264,-1,-1,-1,-1,2336,2332,2191,-1,2261,2190,2337,-1,2338,2336,2266,-1,2265,-1,2267,-1,-1,-1,2339,2335,2194,-1,-1,2264],"visual":[0,5,4,3,1,7,6,2,16,8,17,9,10,15,11,18,14,12,20,37,36,21,8,38,58,19,9,22,35,59,1,39,57,60,85,7,23,22,41,40,10,24,42,9,11,39,21,2,64,63,25,3,43,65,26,25,44,45,12,27,43,13,11,24,46,68,3,69,67,4,42,28,29,28,48,14,49,47,30,27,15,13,50,46,72,73,4,5,74,71,31,32,52,51,16,30,53,15,17,33,50,77,6,78,76,5,54,29,34,35,55,56,18,33,54,17,19,57,36,7,81,82,32,6,53,83,86,117,116,87,150,118,59,85,60,151,115,88,188,152,119,149,37,84,89,120,121,90,88,62,61,119,122,63,155,91,154,87,60,39,156,40,92,124,93,123,91,64,125,65,94,159,63,158,122,66,41,90,42,160,95,127,96,128,67,94,126,68,66,97,162,163,129,44,43,161,93,69,98,99,131,130,70,97,69,132,100,129,71,166,167,46,165,68,45,96,101,102,134,133,135,73,72,100,103,170,74,71,169,171,136,132,48,49,105,104,137,138,75,106,76,136,103,139,74,174,173,50,175,77,51,107,108,141,107,140,78,109,142,77,79,106,178,177,139,52,53,179,110,76,111,144,110,145,112,81,143,80,109,181,82,182,146,79,55,113,54,180,114,148,147,113,115,83,84,149,146,82,185,112,186,116,85,57,184,56,189,230,229,190,273,231,151,274,152,188,320,275,228,191,232,272,117,187,192,233,234,191,193,232,154,153,277,278,155,235,190,194,276,152,231,119,195,236,237,194,196,235,156,157,281,280,238,193,155,158,282,197,122,234,198,239,240,197,199,159,238,160,284,241,158,196,285,283,200,124,161,125,201,243,242,200,202,162,244,161,241,287,288,199,163,286,127,289,160,203,204,246,203,245,247,205,165,164,291,202,244,290,166,292,163,129,248,206,249,207,206,248,250,167,208,168,205,294,295,166,247,293,169,251,132,131,252,209,210,253,251,170,208,211,171,169,297,298,250,254,296,299,134,168,255,212,213,256,254,173,211,172,214,301,300,174,257,302,171,253,136,137,215,258,216,259,257,214,175,176,304,217,260,305,174,303,177,139,256,213,218,261,262,219,217,178,260,179,263,308,307,220,177,309,141,306,180,216,221,265,264,222,220,181,266,180,311,263,182,223,310,312,219,144,179,143,224,268,267,225,223,269,184,183,314,315,266,226,185,182,313,222,146,270,227,271,270,228,226,272,186,187,318,317,185,269,229,225,319,188,273,149,371,321,372,422,370,322,423,274,476,424,320,275,373,421,369,323,230,276,374,324,375,325,323,373,426,277,427,276,376,278,326,425,322,428,372,233,377,378,327,328,326,430,280,376,379,429,279,329,281,431,325,428,278,235,381,330,380,331,382,433,329,283,332,282,434,379,432,284,383,281,238,328,384,333,334,383,385,286,437,436,332,335,285,287,386,382,438,435,284,241,387,337,388,336,386,440,338,289,288,335,439,389,441,290,287,385,244,339,391,390,340,339,341,443,392,389,292,291,444,338,442,293,290,342,445,246,394,343,393,342,344,395,447,295,446,294,392,341,448,296,293,345,445,396,397,346,398,396,345,347,450,297,298,449,451,395,399,344,348,296,299,252,400,349,401,350,348,399,453,300,454,301,402,351,452,299,302,347,455,398,403,404,352,353,351,457,405,402,303,304,456,354,458,302,305,350,455,258,407,355,406,356,408,460,354,306,307,357,461,405,459,305,308,409,260,353,410,359,358,409,411,309,463,464,357,360,310,308,412,408,462,465,311,263,413,362,414,361,412,467,363,312,360,313,466,415,468,311,411,314,266,364,416,417,365,364,366,470,315,418,415,471,316,363,314,469,367,472,317,269,420,368,419,367,369,421,474,318,473,319,418,317,366,475,370,472,422,271,533,477,534,590,532,478,591,650,592,423,476,424,535,589,531,479,593,649,536,480,537,481,535,479,594,595,426,538,593,425,427,482,596,478,534,654,539,540,483,484,598,482,597,538,541,429,599,485,430,428,596,481,658,537,543,542,486,487,601,544,485,600,602,432,541,488,433,431,545,484,599,603,546,489,545,490,547,604,605,488,435,491,603,544,434,436,548,606,665,487,549,493,550,492,548,608,607,494,438,491,609,551,437,439,547,606,668,495,552,553,496,495,611,551,497,612,610,441,554,494,440,442,550,498,613,609,556,555,499,498,614,500,615,557,554,444,613,497,443,445,616,501,675,558,559,502,558,501,560,503,618,617,447,557,619,448,446,500,616,504,561,679,562,505,563,561,506,504,621,622,620,450,449,451,560,564,507,503,619,623,565,508,566,509,564,507,624,625,453,567,623,452,454,510,626,506,563,685,568,569,511,512,628,510,627,567,570,456,629,513,455,457,626,509,689,566,572,571,514,515,631,573,513,630,632,459,570,516,458,460,574,512,633,629,575,517,574,518,576,634,635,516,462,519,633,573,461,463,577,636,696,515,578,521,579,520,577,638,637,522,465,519,639,580,464,466,576,636,699,523,581,582,524,523,641,580,525,642,640,468,583,522,467,469,579,526,639,643,585,584,527,526,644,528,645,586,583,471,643,525,470,472,646,529,706,587,588,530,587,529,589,531,648,647,474,586,649,475,473,528,646,532,590,710,713,651,714,775,776,652,712,839,777,591,774,715,592,650,711,653,840,778,716,717,654,779,715,655,653,780,778,594,718,593,595,656,714,781,652,843,719,720,657,658,782,783,718,656,721,597,781,659,784,598,596,717,847,655,722,723,660,661,786,785,721,659,724,600,787,662,784,599,601,850,658,720,726,725,663,664,789,788,727,724,662,790,665,603,602,604,787,853,728,854,729,728,667,666,792,730,791,793,665,668,727,606,607,605,731,857,856,790,732,731,670,669,733,795,796,671,794,668,609,730,610,608,734,797,860,859,735,673,736,734,672,798,799,674,612,797,671,737,800,611,613,733,863,675,738,739,676,675,802,737,801,677,615,740,803,674,800,616,614,736,866,678,741,742,679,805,678,740,680,804,743,806,618,619,617,677,803,681,870,739,745,744,682,808,681,683,746,743,807,809,621,622,620,680,684,873,806,810,748,747,685,811,686,749,684,812,746,810,624,623,625,687,813,683,876,750,751,750,688,689,814,752,815,687,627,749,813,690,816,628,626,753,880,686,754,691,753,755,692,818,817,690,630,819,693,752,816,629,631,756,883,689,757,758,694,695,756,821,820,693,822,696,633,759,632,634,755,819,886,887,760,761,697,698,824,759,823,825,696,699,762,636,637,635,758,890,889,826,763,764,701,700,827,828,762,765,702,826,699,639,638,640,829,893,761,892,767,766,704,703,830,831,768,705,765,642,829,702,832,643,641,896,706,769,770,769,707,706,834,833,771,708,768,645,835,705,832,644,646,772,899,709,773,772,710,837,774,709,711,836,838,648,771,649,647,708,775,835,712,903,906,973,972,907,840,1040,974,841,905,776,971,908,1041,839,777,904,842,1039,909,910,976,843,908,977,844,842,975,911,779,978,845,1044,780,778,907,1045,912,913,846,979,980,847,911,914,845,978,981,782,848,783,1048,1047,781,910,916,915,983,849,850,982,917,914,984,848,851,785,981,1051,786,784,1050,1052,919,918,986,853,852,920,985,987,854,917,851,788,789,1054,984,921,787,1055,922,921,989,923,856,855,990,988,857,791,920,854,924,792,991,1057,1058,790,925,926,859,992,993,924,858,860,991,927,994,794,795,857,1061,923,1060,793,928,929,996,862,995,927,863,861,930,997,797,994,798,1064,864,860,796,926,932,931,999,865,866,998,933,1000,864,930,800,801,867,1067,997,1068,863,799,935,934,1002,868,869,936,1003,1001,867,933,870,803,804,1071,1004,1070,937,802,938,937,1005,939,871,1006,872,1004,870,873,936,1007,806,807,940,1074,1073,805,941,942,1009,940,875,1008,874,1010,876,873,943,1007,810,809,939,1077,1078,811,944,945,1012,878,877,943,1011,1013,879,946,876,813,812,1080,1010,1081,942,814,947,948,1015,881,880,1016,946,1014,882,949,816,815,879,1084,1017,1083,883,817,951,950,1018,884,1019,952,885,883,949,1017,819,1020,818,1087,886,882,820,953,954,953,887,1022,1021,955,888,886,1023,952,1020,822,821,889,1090,956,1091,823,957,958,1025,956,890,891,1024,1026,889,825,959,892,955,824,1023,1094,1093,826,960,961,1028,893,894,959,1029,1027,892,962,895,828,827,1097,1030,958,829,1096,963,964,1031,897,896,1032,962,965,1030,898,895,831,1033,1100,830,832,1101,1099,967,966,900,1035,1034,899,968,965,901,1036,1033,834,898,833,1103,1104,835,969,970,969,1038,903,971,1037,902,904,1039,968,837,1036,901,1107,836,838,972,1106,1110,1180,1111,1179,1041,1249,1181,1042,1109,1250,1178,1112,973,1320,1251,1248,1182,1043,1113,1183,1114,1184,1044,1112,1045,1182,1043,1115,1253,1185,976,1254,1046,1111,977,975,1116,1117,1186,1187,1047,1048,1115,1185,1118,1046,1188,1256,1257,1049,979,980,978,1114,1120,1119,1190,1189,1050,1051,1121,1118,1191,1188,1049,1052,1260,1259,982,983,1261,981,1123,1122,1193,1192,1054,1124,1053,1194,1121,1055,1052,1263,1191,985,1262,986,1264,1125,1126,1196,1125,1127,1057,1195,1056,1197,1058,1124,1266,1055,1128,988,1267,989,1194,1265,1129,1199,1130,1128,1060,1200,1198,1059,1061,1131,1269,1270,1127,992,1058,991,1201,1197,1132,1133,1202,1203,1063,1131,1062,1201,1064,1134,1273,1204,1272,995,994,1061,1130,1065,1135,1136,1205,1206,1066,1134,1067,1137,1065,1204,1207,1276,998,1275,997,1068,1277,1064,1139,1138,1209,1208,1069,1140,1070,1210,1137,1068,1207,1279,1001,1071,1280,1000,1278,1002,1142,1212,1141,1211,1143,1072,1073,1213,1071,1140,1282,1074,1210,1283,1004,1144,1003,1005,1145,1215,1144,1146,1075,1076,1216,1214,1077,1074,1286,1285,1147,1143,1007,1217,1213,1006,1148,1218,1149,1219,1147,1079,1078,1217,1080,1150,1289,1077,1220,1288,1010,1146,1011,1009,1151,1152,1221,1222,1082,1150,1081,1220,1153,1083,1223,1292,1013,1080,1291,1014,1293,1012,1155,1154,1225,1224,1085,1156,1084,1153,1086,1226,1223,1295,1016,1296,1017,1083,1294,1087,1158,1157,1228,1227,1088,1159,1089,1229,1087,1156,1298,1226,1299,1019,1020,1090,1160,1086,1161,1231,1160,1162,1091,1230,1232,1092,1090,1159,1302,1301,1163,1022,1093,1023,1229,1233,1164,1234,1165,1163,1094,1235,1095,1233,1093,1166,1305,1096,1162,1026,1304,1025,1236,1306,1167,1168,1237,1238,1097,1166,1098,1236,1169,1096,1099,1308,1239,1029,1309,1028,1307,1165,1170,1171,1240,1241,1101,1100,1169,1172,1239,1242,1102,1099,1311,1312,1032,1031,1310,1033,1174,1173,1244,1243,1104,1103,1175,1245,1172,1105,1242,1315,1314,1102,1035,1034,1036,1176,1177,1247,1176,1246,1107,1178,1106,1248,1108,1175,1318,1245,1038,1317,1105,1179,1037,1039,1321,1393,1322,1392,1464,1394,1250,1251,1320,1465,1323,1391,1537,1466,1395,1463,1180,1319,1324,1396,1325,1397,1323,1253,1395,1254,1252,1468,1326,1469,1398,1467,1322,1183,1255,1394,1327,1399,1328,1400,1326,1256,1398,1257,1255,1471,1329,1472,1401,1186,1258,1470,1325,1187,1330,1331,1402,1403,1259,1329,1260,1401,1332,1404,1258,1475,1474,1261,1189,1190,1476,1473,1334,1333,1406,1405,1262,1263,1335,1332,1407,1404,1478,1261,1477,1264,1192,1479,1193,1191,1337,1409,1336,1408,1265,1338,1266,1410,1335,1481,1407,1264,1480,1267,1482,1195,1196,1339,1340,1412,1339,1411,1341,1269,1268,1413,1484,1338,1270,1410,1267,1485,1483,1198,1342,1199,1343,1415,1342,1414,1344,1416,1272,1271,1487,1273,1488,1341,1270,1413,1345,1486,1201,1417,1346,1418,1347,1345,1419,1417,1275,1274,1490,1276,1491,1348,1344,1273,1420,1416,1204,1205,1349,1421,1350,1422,1348,1278,1420,1277,1279,1494,1493,1351,1423,1276,1347,1207,1208,1495,1352,1424,1353,1425,1281,1351,1423,1280,1282,1354,1497,1426,1496,1498,1210,1279,1211,1350,1355,1356,1427,1428,1284,1354,1357,1283,1426,1285,1500,1429,1499,1501,1213,1214,1282,1286,1359,1358,1431,1430,1287,1360,1357,1288,1432,1286,1503,1429,1504,1502,1217,1216,1289,1285,1362,1434,1361,1433,1290,1363,1435,1291,1289,1360,1506,1432,1507,1505,1220,1292,1219,1364,1365,1437,1364,1436,1366,1293,1438,1294,1292,1509,1510,1363,1435,1295,1367,1223,1222,1508,1368,1440,1367,1369,1439,1441,1296,1297,1513,1295,1512,1366,1370,1298,1438,1442,1226,1225,1371,1443,1372,1444,1370,1442,1299,1300,1516,1298,1515,1373,1301,1445,1369,1517,1229,1441,1374,1446,1375,1447,1373,1302,1303,1445,1519,1376,1301,1448,1304,1518,1520,1232,1372,1231,1377,1449,1378,1450,1306,1376,1305,1448,1379,1522,1451,1307,1523,1304,1521,1235,1234,1375,1380,1381,1452,1453,1309,1308,1379,1382,1451,1454,1525,1310,1526,1307,1238,1524,1237,1239,1384,1383,1456,1455,1312,1385,1311,1457,1382,1454,1313,1528,1529,1310,1241,1240,1527,1530,1387,1459,1386,1458,1388,1315,1460,1314,1316,1532,1385,1531,1457,1244,1313,1533,1389,1243,1390,1462,1389,1461,1391,1318,1463,1317,1319,1535,1388,1534,1460,1536,1392,1247,1316,1464,1611,1538,1539,1610,1612,1683,1465,1684,1466,1537,1685,1757,1540,1609,1613,1682,1393,1467,1614,1541,1542,1615,1540,1613,1468,1687,1469,1688,1467,1543,1616,1686,1539,1470,1612,1396,1617,1544,1618,1545,1543,1616,1471,1472,1690,1691,1546,1619,1470,1473,1689,1692,1399,1542,1621,1548,1620,1547,1475,1474,1549,1694,1546,1622,1619,1693,1476,1473,1695,1402,1692,1403,1624,1551,1623,1550,1552,1625,1478,1697,1477,1549,1696,1622,1479,1698,1476,1406,1553,1405,1627,1554,1553,1626,1555,1628,1481,1700,1480,1482,1701,1552,1699,1625,1556,1629,1479,1409,1630,1557,1558,1631,1556,1629,1484,1703,1485,1704,1483,1559,1702,1632,1555,1628,1412,1486,1633,1560,1634,1561,1559,1632,1487,1707,1488,1706,1562,1486,1635,1708,1489,1705,1558,1415,1636,1563,1637,1564,1562,1490,1635,1491,1710,1565,1638,1709,1489,1711,1492,1418,1708,1561,1640,1567,1639,1566,1494,1568,1713,1493,1641,1565,1638,1712,1714,1495,1492,1421,1422,1569,1643,1570,1642,1569,1571,1644,1497,1716,1496,1717,1568,1641,1498,1715,1495,1572,1424,1645,1646,1573,1572,1645,1574,1647,1500,1719,1720,1499,1501,1571,1644,1575,1718,1648,1721,1498,1649,1576,1577,1650,1575,1648,1503,1723,1722,1504,1502,1578,1651,1574,1724,1647,1721,1505,1652,1579,1653,1580,1578,1651,1506,1726,1507,1725,1581,1654,1505,1727,1508,1577,1434,1650,1655,1582,1656,1583,1509,1581,1729,1510,1654,1584,1657,1730,1728,1508,1511,1437,1436,1580,1659,1586,1658,1585,1587,1513,1660,1512,1732,1584,1657,1733,1514,1731,1511,1440,1734,1588,1662,1589,1661,1588,1590,1663,1516,1735,1515,1736,1587,1517,1660,1734,1514,1737,1591,1443,1665,1592,1591,1664,1593,1666,1519,1739,1518,1738,1520,1590,1740,1663,1594,1667,1446,1517,1668,1595,1596,1669,1594,1667,1522,1742,1523,1521,1741,1597,1743,1670,1593,1666,1524,1449,1671,1598,1672,1599,1597,1670,1525,1745,1526,1600,1746,1673,1524,1744,1527,1452,1596,1453,1674,1601,1675,1602,1528,1529,1600,1748,1603,1673,1676,1749,1527,1530,1747,1456,1750,1455,1678,1605,1677,1604,1606,1679,1532,1531,1752,1751,1603,1676,1533,1530,1753,1750,1459,1607,1681,1608,1607,1680,1609,1682,1535,1755,1534,1754,1536,1606,1679,1756,1610,1533,1683,1462,1832,1758,1833,1905,1759,1831,1906,1684,1978,1907,1685,1757,1834,1904,1830,1760,1611,1756,1835,1761,1836,1762,1834,1760,1909,1687,1910,1688,1837,1908,1763,1686,1759,1833,1689,1911,1838,1839,1764,1765,1912,1837,1913,1763,1690,1840,1691,1766,1911,1689,1692,1914,1617,1618,1842,1841,1768,1767,1843,1916,1915,1769,1694,1693,1840,1766,1695,1917,1914,1692,1770,1844,1845,1771,1844,1770,1846,1772,1919,1918,1697,1696,1698,1843,1769,1920,1773,1847,1917,1695,1848,1774,1849,1775,1847,1773,1922,1700,1921,1701,1923,1699,1850,1776,1772,1846,1702,1627,1851,1777,1852,1778,1925,1850,1776,1703,1704,1926,1853,1924,1779,1702,1705,1775,1849,1630,1855,1854,1781,1780,1928,1856,1853,1782,1929,1707,1779,1706,1927,1708,1705,1930,1633,2001,1858,1784,1857,1783,1859,1785,1931,1932,1710,1709,1856,1782,1711,1930,1933,1708,1786,1860,1861,1787,1860,1862,1786,1788,1935,1934,1713,1712,1714,1859,1785,1936,1789,1863,1933,1711,1864,1790,1865,1791,1863,1789,1938,1716,1937,1717,1866,1792,1715,1939,1788,1862,1936,1718,1867,1868,1793,1794,1941,1866,1792,1719,1720,1869,1940,1795,1942,1718,1721,1646,1791,1865,1871,1870,1797,1796,1944,1872,1798,1723,1722,1869,1945,1795,1943,1724,1721,1649,1799,1873,1874,1800,1873,1799,1875,1801,1947,1726,1948,1725,1872,1798,1727,1946,1802,1876,1949,1724,1877,1803,1878,1876,1804,1802,1950,1951,1729,1730,1728,1879,1805,1949,1801,1875,1952,1731,1880,1806,1881,1807,1879,1805,1954,1953,1732,1733,1882,1808,1731,1955,1952,1734,1804,1878,1883,1884,1809,1810,1957,1882,1885,1808,1956,1735,1811,1736,1958,1734,1737,1955,1662,2030,1887,1813,1886,1812,1960,1888,1814,1739,1738,1959,1885,1961,1811,1740,1737,1815,1889,1665,1890,1816,1889,1815,1891,1817,1963,1742,1964,1741,1962,1743,1888,1814,1818,1892,1740,1668,1893,1819,1894,1820,1892,1818,1966,1967,1745,1746,1744,1895,1821,1965,1817,1891,1968,1747,1896,1897,1822,1823,1895,1969,1970,1821,1748,1749,1898,1824,1747,1968,1971,1750,1820,1894,1900,1899,1826,1825,1973,1901,1972,1827,1752,1898,1751,1824,1974,1753,1750,1971,1678,1677,1903,1829,1902,1828,1904,1830,1976,1755,1975,1754,1901,1977,1827,1756,1831,1905,1753,1974,2052,1979,2053,2124,2125,1980,2051,2126,2196,1906,1907,1978,2054,2123,2050,1981,2197,2127,2055,1982,2056,1983,2128,2054,1981,2129,1909,2127,1910,2057,1984,1908,2053,2200,1980,2130,2058,2059,1985,1986,2131,2057,2132,1984,1912,2060,1913,2130,1987,1911,2133,1914,2203,2204,2062,2061,1989,1988,2134,2135,2063,2060,1990,1987,1916,1915,2133,2136,1917,1914,2206,2207,2065,2064,1992,1991,2138,2137,2066,1993,1919,2063,1918,1990,2139,2136,1920,1917,2210,2209,2068,1995,2067,1994,2069,2141,2140,1996,1922,1921,2142,2066,1923,1993,2139,2070,1997,2213,2071,1998,2072,2070,2144,1999,1997,2143,1925,2145,1926,1924,2073,2000,2069,1996,2142,2216,2074,2075,2001,2002,2147,2073,2000,2146,2148,1928,1929,2076,2003,1927,2219,2072,1999,1930,2077,2078,2004,2005,2150,2076,2151,2003,2149,2079,1931,1932,2006,1930,1933,2222,2152,2075,2081,2080,2008,2007,2153,2154,2082,2079,2009,1935,2152,2006,1934,1936,1933,2225,2155,2226,2084,2083,2011,2010,2156,2085,2157,2012,1938,2082,1937,2155,2009,1939,2158,2228,2086,1936,2087,2014,2086,2088,2013,2159,2160,2015,1941,1940,2158,1942,2085,2012,2161,2089,2016,2231,2090,2017,2091,2089,2018,2163,2162,2016,1944,1945,2164,1943,2092,2019,2161,2088,2015,2235,2093,2094,2020,2021,2166,2092,2165,2019,1947,2095,1948,2167,2022,1946,2164,2238,2091,1949,2096,2097,2023,2024,2169,2168,2095,2098,2022,1950,2170,2025,1951,1949,1952,2241,2167,2240,2100,2099,2027,2026,2172,2101,2171,2028,2173,2098,1954,1953,2025,1955,1952,2244,2170,2102,2103,2102,2030,2029,2175,2104,2031,2176,2174,1957,1956,2101,2028,1958,2247,2105,2032,1955,2106,2033,2105,2107,2178,2032,2034,2179,1960,2177,1959,1961,2104,2031,2108,2035,2180,2250,2109,2036,2110,2037,2108,2181,2182,2035,1963,1964,2180,2111,1962,2038,2183,2107,2034,2253,2112,2113,2039,2040,2184,2185,2111,2038,1966,2114,1967,2041,2183,2186,1965,1968,2256,2257,2115,2116,2042,2043,2188,2187,2114,2117,2041,2044,1969,1970,2189,2186,1968,1971,2260,2259,2119,2118,2046,2045,2191,2120,2190,2047,1973,2117,1972,2192,2044,1974,2189,1971,2263,2262,2122,2049,2121,2048,2194,2123,2050,2193,1976,2195,1975,2120,2047,1977,2124,2266,2051,2192,2269,2197,-1,-1,2270,2339,-1,2198,2268,-1,2125,-1,-1,2126,2196,-1,2338,2271,2272,2200,2273,-1,-1,2271,2201,2199,-1,-1,2128,-1,-1,2129,2274,2202,2127,2270,2275,2276,-1,2203,2204,2274,-1,-1,2202,2131,-1,2132,2277,2205,-1,-1,-1,2130,2278,2279,2206,-1,-1,2207,2277,-1,2205,-1,2134,2280,2208,2135,-1,-1,2133,-1,2281,2282,-1,2210,2209,-1,-1,2280,2211,2283,2208,2138,2137,-1,-1,-1,-1,-1,2284,2285,-1,2213,-1,2212,2283,-1,2214,2286,2141,-1,-1,2140,2211,-1,2142,-1,2288,2287,-1,2216,2215,-1,-1,2217,2289,2286,2144,-1,2143,-1,2214,-1,2145,-1,2291,2290,2219,-1,-1,2218,2220,2292,-1,2289,2147,-1,-1,-1,2146,2148,2217,-1,2294,2293,2222,-1,-1,2223,2295,2221,-1,2150,2292,-1,-1,-1,2151,2149,2224,-1,2297,2296,2225,-1,-1,2226,2298,2224,-1,2153,-1,2295,-1,2154,-1,2227,2152,-1,2300,2299,-1,2228,-1,2229,2301,-1,2227,2156,-1,-1,2157,2230,2298,-1,2155,2302,2303,-1,2302,2231,2232,2304,-1,-1,2230,2233,2159,-1,2160,-1,-1,2301,2305,-1,2306,-1,2307,2235,2234,2305,-1,-1,2236,2233,2163,-1,2162,-1,-1,2308,2304,2164,2309,2310,-1,2238,2237,2308,-1,-1,2239,2166,-1,2165,2236,2311,-1,-1,-1,2167,2312,2313,2241,-1,-1,2240,2311,2242,-1,-1,2169,2314,-1,-1,2168,2239,2170,-1,2315,2316,2244,-1,-1,2243,-1,2314,2245,2172,2317,-1,2171,2173,-1,-1,-1,2242,2318,2319,2247,-1,-1,2248,2246,2317,-1,2320,-1,2175,-1,-1,2176,2174,2249,2245,2321,2322,-1,2250,2251,-1,-1,2249,2320,2323,2178,-1,2179,2252,-1,-1,-1,-1,2325,2324,2253,-1,-1,2254,2326,2252,2323,-1,-1,2181,2182,2255,-1,-1,2180,-1,2328,2327,-1,2256,2257,-1,-1,2329,2255,2326,2258,2184,2185,-1,-1,-1,-1,-1,2331,2330,2260,-1,-1,2259,2332,-1,2261,-1,2188,2329,2258,2187,-1,-1,2189,-1,2334,2333,-1,2263,2262,2335,-1,-1,2264,2191,-1,2190,2332,2261,-1,-1,2192,-1,2337,2266,2336,-1,-1,2338,2265,2267,-1,2194,-1,-1,-1,2193,2335,2264,2195,2339]},"4":{"rings":56,"count":4187,"defaultK":17,"kMax":32,"geodesic":[0,5,4,1,2,6,3,7,14,9,19,16,12,17,11,10,18,15,13,8,24,34,21,37,31,27,36,22,29,28,30,32,38,60,39,20,61,88,62,21,37,59,40,8,89,87,63,90,120,22,36,19,9,91,119,64,86,41,58,1,121,122,157,92,42,43,41,66,23,65,24,67,22,64,40,44,10,95,94,68,25,96,11,93,9,21,63,97,39,45,69,92,127,2,128,126,46,47,45,71,26,70,27,72,25,69,44,48,100,12,101,28,99,73,13,102,11,68,24,98,43,49,134,74,133,3,29,103,49,50,48,74,29,75,28,73,76,30,51,47,27,104,14,105,13,103,72,106,77,15,31,102,52,46,26,107,139,138,4,12,53,52,54,79,32,80,31,78,33,81,55,51,110,16,109,30,111,77,15,108,17,82,34,112,56,50,145,76,146,6,29,107,57,58,56,84,35,85,34,83,36,86,59,55,18,115,116,82,33,114,17,117,19,37,87,113,60,54,81,118,152,7,151,153,158,198,159,121,199,200,243,157,122,197,160,89,244,201,242,245,291,156,123,120,90,290,246,196,161,241,202,61,292,119,91,293,162,163,161,203,125,204,124,202,126,205,123,164,160,92,249,248,93,250,91,201,247,206,127,122,94,251,165,159,297,64,90,298,166,165,167,208,128,207,129,209,127,206,164,168,95,253,254,130,96,210,252,94,126,255,205,97,163,169,251,302,131,66,67,303,170,169,171,212,132,213,131,211,133,172,168,214,258,98,99,130,259,257,210,134,97,260,100,256,215,173,167,307,69,129,308,209,217,218,216,263,174,175,264,262,173,176,219,215,265,313,136,312,135,314,261,137,311,172,134,315,177,266,214,220,366,102,138,367,179,178,180,222,140,223,139,221,141,181,177,269,105,268,224,106,220,138,142,270,267,104,107,225,182,176,271,319,219,75,318,266,226,225,227,273,183,182,272,274,184,181,224,228,271,323,143,324,144,322,275,142,325,185,145,321,180,270,229,223,377,108,141,376,187,186,188,231,147,230,148,232,146,185,189,229,278,112,111,149,277,279,233,145,113,276,110,280,228,184,190,329,81,150,328,234,191,192,190,235,151,236,150,234,152,237,193,189,115,283,282,149,114,233,284,116,153,281,238,113,194,188,285,334,148,84,83,333,195,194,196,240,154,239,155,241,153,238,156,193,197,118,287,288,117,286,119,242,289,237,152,157,116,285,192,198,339,86,120,338,399,400,456,344,457,517,458,345,398,401,455,292,518,516,459,581,519,293,343,346,397,580,520,342,294,402,454,244,582,515,460,583,403,402,404,461,348,462,347,460,349,405,401,463,522,296,523,346,295,459,521,350,297,524,294,464,406,400,345,247,520,587,586,248,407,406,408,465,352,466,351,464,353,467,350,409,405,527,299,526,300,528,298,463,525,354,468,301,349,529,404,410,591,297,251,250,411,410,412,470,355,469,356,471,354,468,357,409,413,531,303,532,302,530,304,472,533,353,301,467,358,529,408,414,254,596,595,305,416,415,417,475,360,474,361,476,359,414,418,537,307,473,536,308,362,477,538,358,306,535,309,539,472,413,419,258,601,602,305,363,420,421,419,479,364,480,363,478,365,422,418,541,311,481,542,310,362,477,540,312,366,543,309,539,423,417,482,606,313,261,262,605,424,423,425,483,368,484,367,482,369,485,422,426,366,546,314,545,315,547,481,313,544,370,316,486,365,421,427,265,548,610,611,264,428,427,429,487,488,371,372,486,489,370,373,426,430,318,550,549,551,317,319,485,490,369,374,548,552,316,320,425,431,268,615,614,432,431,433,492,375,491,376,493,374,490,430,434,377,554,322,555,321,553,494,323,556,373,320,489,378,429,435,271,552,620,619,272,436,435,437,496,379,495,380,497,378,434,438,559,325,494,558,326,381,498,560,324,377,557,327,561,433,439,493,624,323,275,274,625,440,439,441,500,383,501,382,499,384,438,442,563,329,502,564,328,381,498,562,385,330,565,327,561,503,443,437,278,629,628,331,380,445,446,444,505,388,506,387,504,389,507,386,447,443,569,333,568,334,570,332,503,567,390,335,508,385,571,442,448,282,634,635,331,449,448,450,510,391,509,392,511,390,508,393,447,451,573,337,574,336,572,338,512,575,389,507,335,394,571,446,452,639,339,285,286,453,452,454,514,395,513,396,515,394,451,455,512,578,340,577,397,341,516,579,393,339,576,342,511,450,456,398,289,580,643,644,288,648,649,716,582,717,787,718,647,583,650,715,518,788,719,786,789,860,581,519,646,584,790,859,580,520,651,714,457,861,785,720,862,652,651,653,721,586,585,722,720,587,650,654,792,522,723,584,521,793,719,791,523,588,794,520,790,655,649,724,865,583,461,460,866,657,656,658,726,591,590,727,725,592,589,728,655,659,526,798,797,527,724,525,799,796,528,593,588,729,654,660,465,871,870,800,524,661,660,662,730,594,595,731,729,593,732,596,663,659,530,802,801,531,529,803,728,800,592,733,597,532,528,804,664,658,875,468,469,665,664,666,598,734,735,599,597,733,736,663,667,806,534,600,533,805,807,535,596,732,737,532,804,808,601,662,668,472,879,536,880,670,669,671,603,740,739,604,602,741,738,668,672,811,538,539,812,605,601,810,537,742,540,813,737,667,673,809,885,476,477,884,606,674,673,675,607,744,743,606,608,745,672,676,742,542,816,815,605,543,541,609,746,817,814,544,741,540,677,671,480,889,604,890,818,678,679,677,748,611,610,747,749,612,680,676,609,546,820,746,819,545,750,547,821,613,818,544,608,822,681,675,745,548,894,484,483,683,684,682,753,615,616,754,752,614,617,685,681,825,550,551,755,751,826,824,549,552,613,618,827,823,686,680,488,899,756,750,900,687,688,686,757,619,620,758,756,618,685,689,621,554,829,759,830,555,755,553,828,617,831,556,622,827,684,690,760,552,903,491,492,691,692,690,623,761,762,624,622,760,693,689,763,558,833,834,625,557,559,621,759,832,835,556,764,560,694,688,495,908,626,907,831,695,694,696,627,765,766,626,628,764,767,693,697,838,562,561,837,625,629,839,563,763,560,836,768,692,698,840,912,499,498,913,624,700,699,701,632,771,770,631,633,772,769,698,702,843,566,630,567,844,842,565,634,773,768,568,845,841,629,697,703,503,918,564,917,704,705,703,775,636,635,774,776,637,773,634,706,702,570,847,848,569,571,846,777,849,638,772,633,568,572,845,707,701,922,507,506,708,709,707,779,639,640,778,780,638,641,777,710,706,574,851,852,573,781,575,850,853,572,637,642,776,711,705,510,926,927,849,576,713,714,712,784,644,645,783,785,643,715,711,857,578,782,646,579,856,786,858,577,642,855,580,859,716,710,781,932,647,514,515,931,936,937,1012,861,1013,1014,1091,862,935,938,1011,788,1092,1090,1015,1172,1093,789,860,863,934,1171,1094,790,859,1010,939,717,1173,1016,1089,1254,940,941,939,1017,865,1018,864,1016,866,942,938,1096,792,1019,1097,863,791,1015,1095,867,793,1098,790,1094,943,937,1020,1177,794,721,720,1178,945,946,944,1022,870,1023,869,1021,871,947,943,1024,868,1101,797,1102,796,1020,1100,872,1103,798,795,1025,867,948,942,725,1183,1182,726,1099,949,950,948,1026,874,1027,873,1025,875,1028,872,951,947,1106,800,1105,801,1107,799,1024,876,1104,802,1029,871,952,946,729,1187,1108,798,1186,953,954,952,1030,878,1031,877,1029,879,1032,876,955,951,1110,804,1109,805,1111,803,1028,880,1033,1108,875,806,1112,802,956,950,1191,733,732,957,958,956,1035,881,1034,882,1036,880,1033,883,959,955,1114,808,1115,807,1113,809,1037,879,1032,1116,884,806,1112,810,954,960,1195,736,1196,962,963,961,1040,886,1039,887,1041,885,1038,888,964,960,1119,813,1120,812,1118,814,1042,884,1121,811,1037,889,965,959,741,1201,1117,1200,815,966,965,967,1044,890,1043,891,1045,889,968,964,1042,1124,816,892,1123,817,1046,1125,888,815,1122,818,1041,893,963,969,1205,745,744,1126,1204,970,971,969,1048,894,1047,895,1049,893,972,968,1128,820,1046,1127,896,821,1050,1129,892,819,1126,822,1130,973,967,1045,1209,748,818,897,749,975,976,974,1053,899,1054,1052,898,900,977,973,1133,825,1055,1134,1051,1132,824,897,826,901,1135,1131,823,827,978,972,753,1215,1214,1056,1050,979,978,980,1057,903,1058,902,1056,904,977,981,1137,829,1059,1138,901,828,1055,1136,905,830,1139,827,1135,976,982,1060,1219,757,831,900,756,983,984,982,1061,907,1062,906,1060,908,985,981,1063,1141,833,905,1142,832,1059,1140,909,834,1143,831,1064,904,986,980,1223,760,761,1139,1224,987,986,988,1065,911,1066,910,1064,912,1067,909,985,989,1146,836,1145,837,1147,835,1063,913,1144,838,1068,908,984,990,764,1227,1148,1228,834,992,991,993,1070,916,1071,915,1069,917,1072,914,990,994,1151,841,1150,842,1152,840,1068,918,1073,1149,913,843,1153,839,989,995,1233,769,1232,996,997,995,1075,919,1074,920,1076,918,1073,921,994,998,1155,845,1156,844,1154,846,1077,917,1072,1157,922,843,1153,847,993,999,1237,772,773,1000,1001,999,1079,923,1078,924,1080,922,1077,925,998,1002,1159,849,1160,848,1158,850,1081,921,1161,847,1076,926,1003,997,776,1241,1157,851,1242,1004,1005,1003,1083,927,1082,928,1084,926,1006,1002,1081,929,1164,852,1163,853,1085,1165,925,1162,851,854,1080,930,1007,1001,780,1245,1246,779,1166,1009,1010,1008,1088,932,1087,933,1089,931,1011,1007,1169,857,1086,1168,934,858,1090,1170,930,856,1167,859,1171,1012,1006,1085,1251,855,784,785,1250,1255,1338,1256,1339,1173,1340,1423,1254,1174,1337,1257,1092,1424,1341,1422,1425,1509,1172,1093,1253,1175,1508,1426,1171,1094,1336,1258,1013,1510,1342,1421,1511,1259,1260,1258,1343,1177,1176,1344,1342,1178,1261,1257,1428,1096,1175,1345,1095,1429,1341,1427,1097,1179,1094,1430,1426,1098,1262,1256,1514,1017,1346,1174,1016,1263,1264,1262,1347,1181,1180,1348,1346,1182,1265,1261,1432,1100,1179,1099,1349,1433,1345,1431,1101,1183,1098,1434,1430,1266,1260,1178,1518,1350,1021,1020,1102,1268,1269,1267,1352,1186,1185,1353,1351,1187,1184,1270,1266,1437,1105,1104,1354,1438,1350,1436,1106,1188,1103,1439,1183,1271,1265,1355,1025,1524,1435,1523,1026,1272,1271,1273,1356,1190,1189,1357,1355,1191,1188,1270,1274,1358,1108,1441,1442,1109,1354,1440,1107,1443,1110,1192,1187,1359,1269,1275,1029,1528,1439,1527,1106,1276,1275,1277,1360,1193,1194,1361,1359,1192,1195,1274,1278,1362,1112,1446,1445,1113,1111,1358,1444,1447,1114,1191,1196,1363,1279,1273,1532,1033,1110,1032,1533,1280,1281,1279,1364,1197,1198,1365,1363,1196,1199,1366,1278,1282,1116,1450,1449,1117,1115,1451,1362,1448,1195,1118,1200,1367,1114,1277,1283,1536,1037,1036,1452,1284,1283,1285,1201,1368,1369,1202,1200,1367,1370,1203,1282,1286,1120,1454,1453,1119,1121,1455,1366,1199,1452,1371,1118,1122,1204,1287,1281,1040,1540,1456,1541,1289,1288,1290,1206,1373,1374,1207,1205,1372,1375,1287,1291,1459,1125,1208,1124,1458,1460,1126,1204,1371,1457,1123,1376,1461,1286,1292,1209,1127,1045,1546,1545,1293,1292,1294,1210,1377,1378,1211,1209,1376,1379,1291,1295,1463,1129,1128,1212,1462,1464,1208,1130,1127,1375,1380,1461,1465,1290,1296,1550,1049,1213,1048,1549,1297,1298,1296,1214,1382,1381,1215,1213,1383,1380,1295,1299,1467,1132,1133,1468,1466,1212,1216,1131,1134,1384,1379,1469,1465,1294,1300,1554,1053,1052,1553,1555,1301,1302,1300,1218,1386,1385,1217,1219,1387,1384,1303,1299,1471,1136,1137,1216,1472,1470,1220,1135,1138,1388,1383,1473,1469,1304,1298,1558,1056,1215,1057,1559,1305,1306,1304,1222,1390,1389,1221,1223,1391,1388,1307,1303,1475,1140,1220,1141,1476,1474,1139,1224,1392,1477,1142,1387,1473,1308,1302,1219,1138,1060,1562,1563,1310,1311,1309,1227,1395,1394,1226,1228,1396,1393,1225,1312,1308,1145,1480,1481,1146,1144,1479,1397,1229,1482,1392,1147,1143,1224,1313,1307,1065,1568,1478,1567,1314,1313,1315,1399,1231,1230,1398,1400,1232,1229,1397,1312,1316,1149,1484,1485,1148,1150,1483,1401,1486,1233,1147,1228,1396,1151,1311,1317,1572,1068,1069,1482,1318,1317,1319,1403,1234,1235,1402,1404,1233,1236,1316,1320,1401,1153,1488,1489,1152,1154,1405,1490,1487,1151,1232,1237,1400,1315,1321,1576,1072,1155,1073,1575,1322,1323,1321,1407,1238,1239,1406,1408,1237,1240,1324,1320,1405,1157,1493,1492,1156,1409,1494,1158,1491,1155,1236,1241,1404,1325,1319,1076,1580,1495,1581,1159,1326,1325,1327,1411,1242,1243,1410,1412,1241,1244,1328,1324,1497,1160,1161,1409,1496,1413,1498,1159,1240,1162,1495,1245,1329,1323,1408,1080,1584,1499,1585,1079,1331,1330,1332,1416,1247,1248,1415,1417,1246,1329,1333,1502,1165,1249,1166,1414,1501,1418,1503,1164,1245,1167,1500,1504,1328,1334,1250,1590,1413,1084,1085,1163,1335,1336,1334,1420,1251,1252,1419,1421,1250,1333,1337,1506,1169,1253,1418,1170,1505,1422,1507,1168,1249,1171,1504,1508,1167,1332,1338,1594,1088,1417,1254,1089,1687,1776,1688,1777,1598,1778,1867,1686,1599,1775,1689,1868,1510,1779,1866,1959,1869,1685,1600,1511,1597,1958,1870,1596,1512,1690,1774,1424,1960,1780,1865,2052,1691,1692,1690,1781,1602,1782,1601,1780,1603,1689,1693,1872,1514,1783,1873,1600,1513,1779,1871,1604,1515,1874,1512,1870,1516,1688,1694,1964,1428,1784,1427,1965,1696,1695,1697,1786,1607,1787,1606,1785,1608,1694,1698,1877,1519,1788,1605,1878,1518,1784,1876,1609,1520,1879,1517,1875,1521,1693,1699,1969,1433,1789,1432,1604,1700,1699,1701,1790,1611,1791,1610,1789,1612,1698,1702,1881,1523,1792,1609,1882,1522,1788,1613,1880,1524,1883,1521,1697,1703,1793,1879,1608,1973,1436,1525,1974,1704,1703,1705,1794,1615,1795,1614,1793,1616,1702,1706,1885,1527,1796,1613,1886,1526,1792,1617,1884,1528,1887,1525,1797,1612,1701,1707,1440,1978,1977,1883,1441,1708,1709,1707,1798,1619,1799,1618,1797,1620,1710,1706,1800,1617,1889,1531,1890,1530,1796,1621,1888,1532,1891,1529,1801,1616,1711,1705,1444,1982,1981,1887,1445,1713,1714,1712,1803,1624,1804,1623,1802,1625,1805,1622,1711,1715,1895,1535,1894,1536,1896,1534,1801,1626,1893,1537,1806,1621,1710,1716,1987,1449,1897,1986,1448,1717,1718,1716,1807,1628,1808,1627,1806,1629,1809,1626,1719,1715,1899,1539,1898,1540,1900,1538,1805,1630,1897,1541,1810,1625,1714,1720,1991,1453,1901,1452,1537,1721,1720,1722,1811,1632,1812,1631,1810,1633,1813,1630,1719,1723,1903,1543,1902,1544,1904,1542,1809,1634,1901,1545,1814,1629,1905,1718,1724,1995,1541,1456,1457,1726,1727,1725,1816,1637,1817,1636,1815,1638,1818,1635,1728,1724,1908,1548,1907,1549,1909,1547,1814,1639,1906,1819,1550,1634,1910,1546,1729,1723,1461,2000,2001,1730,1729,1731,1820,1641,1821,1640,1819,1642,1822,1639,1728,1732,1912,1552,1911,1553,1913,1551,1818,1643,1823,1638,1910,1554,1914,1550,1727,1733,1465,2004,2005,1734,1735,1733,1825,1644,1824,1645,1826,1643,1823,1646,1736,1732,1916,1556,1917,1555,1915,1557,1827,1642,1822,1647,1918,1554,1914,1558,1737,1731,1469,2009,2008,1738,1737,1739,1829,1648,1828,1649,1830,1647,1827,1650,1736,1740,1920,1560,1921,1559,1919,1561,1831,1646,1922,1826,1558,1651,1918,1562,1735,1741,1473,2013,2012,1743,1744,1742,1834,1653,1833,1654,1835,1652,1832,1655,1745,1741,1925,1565,1926,1564,1924,1566,1836,1651,1927,1563,1831,1656,1923,1746,1740,2018,1567,1478,1477,1747,1748,1746,1838,1657,1837,1658,1839,1656,1836,1659,1749,1745,1929,1569,1930,1568,1928,1570,1840,1655,1931,1567,1835,1660,1750,1744,2022,1481,1927,1482,1571,1751,1750,1752,1842,1661,1841,1662,1843,1660,1840,1663,1753,1749,1933,1573,1934,1572,1932,1574,1844,1659,1935,1571,1839,1664,1748,1754,2026,1485,1931,2027,1486,1756,1755,1757,1847,1666,1846,1667,1848,1665,1754,1758,1845,1668,1939,1577,1938,1578,1849,1664,1940,1576,1937,1579,1844,1669,1753,1759,1490,2031,2032,1941,1489,1760,1759,1761,1851,1670,1850,1671,1852,1669,1758,1762,1943,1581,1849,1672,1942,1582,1853,1668,1944,1580,1941,1583,1848,1673,1757,1763,1494,2035,2036,1945,1493,1764,1763,1765,1855,1674,1854,1675,1856,1673,1766,1762,1947,1585,1853,1676,1946,1586,1857,1672,1948,1584,1945,1587,1767,1761,1852,1949,1677,2040,1498,1583,2039,1768,1769,1767,1859,1678,1858,1679,1860,1677,1770,1766,1951,1589,1857,1680,1950,1590,1861,1952,1676,1588,1949,1591,1953,1587,1765,1771,2044,1501,1856,1502,1681,1773,1774,1772,1864,1683,1863,1684,1865,1682,1771,1775,1956,1594,1862,1955,1685,1595,1866,1957,1681,1593,1954,1596,1958,1592,1770,1776,2049,1506,1861,1507,2048,2053,2146,2054,2147,1960,2240,2148,2052,1961,2145,2055,1868,2241,2239,2149,2242,2335,2051,1962,1959,1869,2243,2334,1958,1870,2144,2056,1777,2336,2238,2150,2050,2057,2056,2058,2151,1964,1963,2152,2150,1965,2059,2055,2245,1872,1962,1871,2246,2149,2153,2244,1966,1873,1870,2247,2243,1874,2054,2060,2340,1781,1961,1780,2341,2062,2061,2063,2156,1969,1968,2155,2157,1970,2060,2064,2250,1877,1967,1876,2251,2154,2158,2249,1971,1878,1875,2252,2248,1879,2065,2059,2345,1786,1966,1785,2346,2066,2065,2067,2160,1973,1972,2159,2161,1974,2064,2068,2254,1881,1971,1880,2255,2158,2162,2253,1975,1882,1879,2256,2252,2063,2069,2349,1970,1790,1883,1789,2350,2070,2071,2069,2164,1977,1976,2165,2163,1978,2072,2068,2258,1885,1975,1884,2259,2166,2162,2257,1979,1886,1883,2260,2256,2067,2073,1974,2353,1793,1794,2354,1887,2074,2073,2075,2168,1981,1980,2167,2169,1982,2072,2076,2262,1979,1889,1888,2263,2166,2170,2261,1983,1890,1887,2264,1978,2260,2071,2077,1797,2357,2358,1798,2165,2079,2080,2078,2173,1986,1985,2174,2172,1987,2081,2077,1984,2267,1893,1894,2268,2175,2171,2266,1892,1988,1895,2269,1983,2082,2076,1802,2265,2363,2362,1803,2176,2083,2082,2084,2177,1990,1989,2176,2178,1991,1988,2081,2085,2271,1897,1898,2272,2179,2175,2270,1896,1992,1899,2273,1987,2080,2086,1806,2367,2269,2366,1895,2174,2087,2086,2088,2181,1994,1993,2180,2182,1995,1992,2089,2085,1901,2275,2276,1902,2183,2179,1900,2274,1996,2277,1903,1991,2090,2084,1810,2371,1899,2273,2370,1809,2091,2092,2090,2185,1998,1997,2186,2184,1999,1996,2089,2093,1905,2279,2280,1906,2183,2187,1904,2278,2281,2000,1907,1995,1903,2088,2094,2375,1814,2374,1813,2277,2096,2097,2095,2190,2003,2002,2191,2189,2004,2001,2098,2094,1910,2284,2285,1911,2192,2188,1909,2283,2286,2005,2000,1912,1908,2093,2099,2380,1819,1818,2379,2282,2100,2101,2099,2194,2007,2006,2195,2193,2008,2005,2102,2098,1914,2289,2288,2196,2192,1915,1913,2290,2287,2009,2004,1916,1912,2103,2097,2384,1823,1822,2197,2191,2104,2105,2103,2198,2010,2011,2199,2197,2009,2012,2106,2102,1918,2293,2292,1917,2200,2196,1919,2294,2291,2008,2013,1916,1920,2107,2101,2388,1826,1827,2389,2295,2109,2108,2110,2203,2015,2016,2202,2204,2014,2017,2111,2107,1923,2298,2297,1922,2205,2201,1924,2299,2296,2013,1921,2018,1925,2112,2106,2393,1831,2394,1832,2300,2113,2112,2114,2207,2019,2020,2206,2208,2018,2021,2111,2115,1927,2302,2301,1926,2205,2209,1928,2303,2017,2300,1925,2022,2110,2116,1835,2397,1929,2304,2398,1836,2117,2118,2116,2211,2023,2024,2212,2210,2022,2025,2119,2115,2306,1931,1930,2305,2213,2209,2307,1932,2021,1929,2304,2026,2120,2114,1839,2401,2308,2402,1933,2214,2121,2122,2120,2215,2027,2028,2216,2214,2026,2123,2119,2029,2310,1935,1934,2309,2217,2213,2311,1936,2025,1933,2308,2030,2124,2118,1843,2312,2405,2406,1842,2218,2126,2125,2127,2220,2032,2033,2219,2221,2031,2124,2128,2315,2034,1939,1940,2314,2218,2222,2316,2030,1938,1941,2313,2035,2317,2123,2129,1848,2411,2410,1847,2217,2130,2131,2129,2224,2036,2037,2225,2223,2035,2132,2128,2319,1943,2038,1944,2318,2226,2222,2320,2034,1942,1945,2317,2321,2133,2127,2039,2415,1852,1851,2414,1941,2134,2133,2135,2228,2040,2041,2227,2229,2039,2132,2136,2323,1947,2042,1948,2322,2226,2230,2324,2038,1946,1949,2321,2325,2131,2137,2419,2043,1855,1945,1856,2418,2138,2139,2137,2232,2044,2045,2233,2231,2043,2140,2136,2327,1951,2046,1952,2326,2234,2230,2328,2042,1950,1953,2325,2329,1949,2135,2141,2423,1859,2047,1860,2422,2143,2142,2144,2237,2049,2050,2236,2238,2048,2141,2145,2332,1956,2051,1957,2331,2235,2239,2333,2047,1955,1958,2330,2334,1954,2146,2140,2428,1864,2052,1865,2427,2432,2527,2433,2336,2528,2624,2529,2431,2337,2434,2526,2241,2625,2623,2530,2338,2430,2721,2626,2335,2242,2720,2627,2243,2334,2525,2435,2147,2722,2622,2531,2429,2436,2437,2435,2340,2532,2533,2339,2341,2531,2434,2438,2245,2629,2534,2630,2244,2338,2342,2628,2246,2530,2631,2243,2627,2247,2433,2439,2726,2151,2535,2727,2150,2440,2439,2441,2344,2536,2537,2343,2345,2535,2442,2438,2633,2249,2538,2634,2248,2342,2346,2632,2250,2534,2635,2247,2631,2251,2437,2443,2730,2155,2539,2731,2154,2445,2444,2446,2349,2541,2542,2348,2350,2540,2443,2447,2638,2254,2543,2639,2253,2347,2351,2637,2255,2539,2640,2252,2636,2256,2442,2448,2544,2735,2160,2736,2159,2449,2450,2448,2353,2545,2546,2352,2354,2544,2447,2451,2642,2258,2547,2643,2257,2351,2355,2641,2259,2543,2644,2256,2640,2260,2548,2446,2452,2739,2164,2740,2163,2453,2454,2452,2357,2549,2550,2358,2356,2548,2455,2451,2646,2262,2551,2647,2261,2359,2355,2645,2263,2547,2648,2260,2552,2644,2264,2456,2450,2743,2168,2744,2167,2457,2458,2456,2361,2553,2554,2362,2360,2552,2555,2455,2459,2650,2266,2651,2265,2359,2363,2649,2267,2551,2652,2264,2556,2454,2460,2648,2268,2748,2171,2747,2172,2461,2460,2462,2365,2557,2558,2364,2366,2556,2559,2463,2459,2654,2270,2655,2269,2367,2363,2653,2271,2555,2656,2268,2560,2464,2458,2752,2175,2652,2272,2751,2176,2465,2466,2464,2369,2561,2562,2370,2368,2560,2563,2467,2463,2658,2274,2659,2273,2371,2367,2657,2275,2559,2660,2272,2564,2468,2462,2756,2179,2656,2755,2180,2276,2470,2469,2471,2374,2566,2567,2373,2375,2565,2568,2468,2472,2663,2279,2664,2278,2372,2376,2662,2280,2665,2277,2564,2569,2467,2473,2761,2184,2760,2185,2661,2281,2474,2475,2473,2378,2570,2571,2379,2377,2569,2572,2476,2472,2667,2283,2668,2282,2380,2376,2666,2284,2669,2281,2568,2573,2477,2471,2765,2188,2764,2189,2665,2381,2478,2479,2477,2382,2574,2575,2383,2381,2573,2576,2476,2480,2671,2287,2672,2286,2380,2384,2670,2288,2673,2285,2572,2577,2475,2481,2769,2192,2768,2379,2385,2193,2482,2481,2483,2386,2579,2578,2385,2387,2580,2577,2480,2484,2676,2290,2675,2291,2388,2384,2677,2289,2674,2292,2581,2576,2485,2479,2773,2196,2774,2383,2389,2195,2486,2485,2487,2390,2583,2582,2389,2391,2584,2581,2484,2488,2680,2294,2679,2295,2388,2392,2681,2293,2678,2296,2585,2580,2483,2489,2777,2200,2778,2199,2682,2387,2490,2491,2489,2394,2587,2586,2395,2393,2588,2585,2492,2488,2684,2298,2683,2299,2396,2392,2685,2297,2682,2300,2589,2584,2493,2487,2781,2204,2782,2203,2686,2296,2495,2496,2494,2399,2592,2591,2400,2398,2593,2590,2497,2493,2689,2303,2688,2304,2401,2397,2690,2302,2594,2687,2305,2589,2492,2498,2786,2209,2691,2787,2208,2301,2499,2498,2500,2403,2596,2595,2402,2404,2597,2594,2501,2497,2693,2307,2692,2308,2405,2401,2694,2306,2598,2691,2309,2593,2502,2496,2790,2213,2695,2305,2791,2212,2503,2504,2502,2407,2600,2599,2408,2406,2601,2598,2501,2505,2697,2311,2696,2312,2405,2409,2698,2310,2602,2695,2313,2597,2506,2500,2699,2309,2794,2217,2795,2216,2507,2506,2508,2411,2604,2603,2410,2412,2605,2505,2509,2701,2315,2602,2700,2316,2409,2413,2702,2314,2606,2699,2317,2601,2703,2313,2510,2504,2799,2220,2798,2221,2511,2512,2510,2415,2608,2607,2416,2414,2609,2509,2513,2705,2319,2606,2704,2320,2413,2417,2706,2318,2610,2703,2321,2707,2317,2605,2514,2508,2803,2224,2802,2225,2515,2514,2516,2419,2612,2611,2418,2420,2613,2513,2517,2709,2323,2610,2708,2324,2417,2421,2710,2322,2614,2707,2325,2711,2321,2512,2518,2609,2807,2228,2806,2229,2520,2521,2519,2424,2617,2616,2425,2423,2618,2522,2518,2714,2328,2615,2713,2329,2426,2422,2715,2327,2619,2712,2330,2716,2326,2523,2517,2812,2233,2614,2811,2234,2524,2523,2525,2428,2621,2620,2427,2429,2622,2526,2522,2332,2718,2619,2717,2333,2430,2426,2719,2331,2623,2716,2334,2720,2330,2521,2527,2816,2237,2618,2815,2238,2820,2917,2821,2722,2918,2819,2723,3015,2919,2916,2822,2625,3016,2818,2724,3014,2920,3113,3017,2721,2626,3112,3018,2720,2627,2915,2823,3114,2528,2817,2725,3013,2824,2825,2823,2726,2922,2727,2725,2923,2921,2826,2822,3020,2629,2628,2728,2724,2924,2920,3019,3021,2630,2627,3022,3018,2631,2827,2821,3118,2532,2729,2723,3119,2829,2830,2828,2731,2927,2730,2732,2928,2926,2827,2831,3025,2634,2633,2729,2733,2925,2929,3026,3024,2635,2632,3027,3023,2636,2826,2832,3123,2537,3124,2536,2728,2833,2832,2834,2735,2931,2734,2736,2930,2932,2831,2835,3029,2638,2637,2733,2737,2929,2933,3028,3030,2639,2636,3027,3031,2640,2830,2836,3127,2541,3128,2540,2732,2837,2836,2838,2739,2935,2740,2738,2934,2936,2835,2839,3033,2642,2641,2737,2741,2933,2937,3032,3034,2643,2640,3031,3035,2644,2834,2840,3131,2545,3132,2544,2736,2841,2842,2840,2743,2939,2742,2744,2938,2940,2843,2839,3037,2646,2645,2745,2741,2937,2941,3038,3036,2647,2644,3039,3035,2838,2844,2648,3135,2549,3136,2548,2746,2846,2847,2845,2748,2944,2749,2747,2945,2943,2848,2844,3042,2651,2650,2750,2746,2946,2942,3043,3041,2652,2649,3044,3040,2849,2843,3140,2554,2653,3141,2553,2751,2850,2849,2851,2752,2948,2753,2751,2947,2949,2848,2852,3046,2655,2654,2750,2754,2950,2946,3045,3047,2656,2653,3044,3048,2847,2853,3144,2558,2657,3145,2557,2749,2854,2853,2855,2756,2952,2755,2757,2951,2953,2852,2856,3050,2659,2658,2754,2758,2950,2954,3049,3051,2660,2657,3048,3052,2851,2857,3148,2562,3149,2561,2661,2753,2858,2857,2859,2760,2956,2759,2761,2955,2957,2856,2860,3054,2663,2662,2758,2762,2954,2958,3055,3053,2664,2661,3052,3056,2855,2861,3152,2566,3153,2565,2665,2757,2863,2864,2862,2765,2961,2766,2764,2962,2960,2865,2861,3059,2668,2667,2767,2763,2963,2959,3058,3060,2669,2666,3061,3057,2860,2866,3157,2571,3158,2570,2762,2768,2867,2866,2868,2769,2965,2768,2770,2966,2964,2869,2865,3063,2672,2671,2771,2767,2967,2963,3062,3064,2673,2670,3065,3061,2870,2864,3161,2575,3162,2574,2772,2766,2871,2872,2870,2773,2969,2774,2772,2968,2970,2873,2869,3067,2675,2676,2775,2771,2971,2967,3068,3066,2674,2677,3069,3065,2874,2868,3166,2578,3165,2579,2776,2770,2875,2876,2874,2777,2973,2778,2776,2972,2974,2873,2877,3071,2679,2680,2775,2779,2971,2975,3070,3072,2678,2681,3069,3073,2872,2878,3170,2582,3169,2583,2774,2780,2880,2881,2879,2782,2978,2781,2783,2977,2979,2878,2882,3076,2684,2685,2780,2784,2976,2980,3077,3075,2683,2686,3074,3078,2877,2883,3175,2587,3174,2588,2682,2785,2884,2885,2883,2786,2982,2787,2785,2983,2981,2886,2882,3080,2688,2689,2788,2784,2984,2980,3081,3079,2687,2690,3082,3078,2887,2881,3179,2591,3178,2592,2686,2789,2888,2887,2889,2790,2986,2791,2789,2985,2987,2886,2890,3084,2692,2693,2788,2792,2984,2988,3083,3085,2691,2694,3082,3086,2885,2891,3183,2595,2690,3182,2596,2787,2892,2893,2891,2794,2990,2793,2795,2991,2989,2894,2890,3088,2696,2697,2796,2792,2992,2988,3089,3087,2695,2698,3090,3086,2895,2889,3187,2599,2694,3186,2600,2797,2897,2896,2898,2799,2995,2798,2800,2994,2996,2895,2899,3093,2701,2702,2797,2801,2993,2997,3092,3094,2700,2703,3091,3095,2894,2900,2699,3192,2604,3191,2605,2796,2901,2900,2902,2803,2999,2802,2804,2998,3000,2903,2899,3097,2705,2706,2805,2801,3001,2997,3096,3098,2704,2707,3099,3095,2703,2904,2898,3196,2608,3195,2609,2806,2905,2904,2906,3003,2807,2806,2808,3002,3004,2903,2907,3101,2709,2710,2805,2809,3005,3001,3102,3100,2708,2711,3103,3099,2707,2908,2902,3200,2612,3199,2613,2810,2909,2910,2908,2811,3007,2812,2810,3008,3006,2907,2911,3105,2713,2714,2809,2813,3005,3009,3106,3104,2712,2715,3103,3107,2711,2906,2912,3204,2616,3203,2617,2808,2914,2915,2913,3012,2816,2817,2815,3013,3011,2916,2912,3110,2718,2719,2818,2814,3014,3010,3109,3111,2717,2720,3112,3108,2716,2917,2911,3209,2621,2819,2813,3208,3312,3410,3313,3411,3213,3214,3311,3508,3412,3409,3314,3509,3114,3310,3215,3212,3115,3606,3510,3507,3413,3211,3116,3605,3511,3408,3315,3607,3016,3309,3216,3608,3316,3317,3315,3217,3415,3414,3218,3216,3416,3318,3314,3118,3513,3413,3512,3219,3215,3117,3119,3514,3417,3511,3120,3116,3515,3319,3313,3611,3020,3412,3214,3220,3321,3320,3322,3222,3420,3419,3221,3223,3421,3323,3319,3123,3518,3418,3517,3224,3220,3124,3122,3519,3422,3516,3125,3121,3520,3318,3324,3616,3025,3417,3615,3024,3325,3324,3326,3226,3424,3423,3227,3225,3425,3327,3323,3127,3522,3422,3521,3228,3224,3128,3126,3523,3426,3520,3129,3125,3524,3328,3322,3620,3029,3421,3619,3028,3329,3328,3330,3230,3428,3427,3229,3231,3429,3331,3327,3131,3526,3426,3525,3232,3228,3130,3132,3527,3430,3524,3133,3129,3528,3326,3332,3425,3624,3033,3623,3032,3334,3333,3335,3235,3433,3432,3234,3236,3434,3332,3336,3136,3531,3431,3530,3233,3237,3135,3137,3532,3435,3529,3134,3138,3430,3331,3337,3533,3629,3038,3628,3037,3338,3339,3337,3239,3437,3436,3240,3238,3438,3340,3336,3140,3435,3535,3534,3241,3237,3141,3139,3536,3439,3533,3142,3138,3434,3341,3335,3633,3042,3537,3632,3041,3342,3341,3343,3243,3441,3440,3242,3244,3442,3439,3340,3344,3144,3539,3538,3241,3245,3143,3145,3540,3443,3537,3142,3146,3438,3339,3345,3637,3046,3541,3636,3045,3346,3347,3345,3247,3445,3444,3248,3246,3446,3443,3348,3344,3148,3543,3542,3249,3245,3149,3147,3544,3447,3541,3150,3146,3442,3349,3343,3641,3050,3640,3049,3545,3351,3350,3352,3252,3450,3449,3251,3253,3451,3448,3349,3353,3153,3548,3547,3250,3254,3152,3154,3549,3546,3452,3447,3151,3155,3348,3354,3646,3055,3645,3054,3550,3355,3356,3354,3256,3454,3453,3257,3255,3455,3452,3357,3353,3157,3552,3551,3258,3254,3158,3156,3553,3550,3456,3451,3159,3155,3358,3352,3650,3059,3649,3058,3259,3359,3360,3358,3260,3458,3457,3259,3261,3459,3456,3357,3361,3161,3556,3555,3258,3262,3162,3160,3557,3554,3460,3455,3159,3163,3356,3362,3654,3063,3653,3062,3257,3364,3365,3363,3265,3462,3463,3266,3264,3461,3464,3366,3362,3166,3560,3561,3267,3263,3167,3165,3559,3562,3460,3465,3168,3164,3367,3361,3658,3067,3659,3068,3268,3368,3369,3367,3269,3466,3467,3270,3268,3465,3468,3370,3366,3170,3564,3565,3271,3267,3171,3169,3563,3566,3464,3469,3172,3168,3371,3365,3662,3071,3663,3072,3272,3372,3371,3373,3273,3470,3471,3274,3272,3469,3472,3374,3370,3174,3568,3569,3275,3271,3175,3173,3567,3570,3468,3473,3176,3172,3375,3369,3666,3075,3667,3076,3566,3377,3376,3378,3278,3475,3476,3277,3279,3474,3477,3375,3379,3179,3573,3574,3276,3280,3178,3180,3572,3473,3575,3177,3181,3478,3374,3380,3671,3080,3672,3081,3571,3381,3382,3380,3282,3479,3480,3283,3281,3478,3481,3383,3379,3183,3577,3578,3280,3284,3184,3182,3576,3477,3579,3185,3181,3482,3384,3378,3675,3084,3575,3676,3085,3385,3384,3386,3286,3483,3484,3285,3287,3482,3383,3387,3187,3485,3581,3582,3284,3288,3186,3188,3580,3481,3583,3185,3189,3486,3382,3388,3679,3088,3579,3680,3089,3389,3390,3388,3290,3487,3488,3291,3289,3486,3391,3387,3191,3585,3489,3586,3292,3288,3192,3190,3584,3485,3587,3193,3189,3490,3386,3392,3583,3683,3092,3684,3093,3394,3395,3393,3295,3492,3493,3296,3294,3491,3392,3396,3196,3590,3494,3591,3297,3293,3197,3195,3589,3490,3592,3198,3194,3588,3397,3391,3495,3688,3097,3689,3098,3398,3397,3399,3299,3496,3497,3298,3300,3495,3400,3396,3200,3594,3498,3595,3301,3297,3201,3199,3593,3494,3596,3202,3198,3592,3401,3395,3692,3101,3499,3693,3102,3402,3401,3403,3303,3500,3501,3302,3304,3499,3400,3404,3204,3598,3502,3599,3301,3305,3203,3205,3597,3498,3600,3202,3206,3596,3399,3405,3696,3105,3503,3697,3106,3407,3408,3406,3308,3505,3506,3309,3307,3504,3409,3405,3209,3603,3507,3604,3310,3306,3210,3208,3602,3503,3605,3211,3207,3601,3410,3404,3701,3110,3508,3311,3305,3705,3802,3706,3803,3607,3704,3608,3899,3804,3801,3707,3900,3509,3703,3609,3606,3510,3898,3805,3995,3901,3605,3511,3994,3902,3800,3708,3996,3411,3702,3610,3897,3709,3708,3710,3611,3807,3806,3610,3612,3808,3711,3707,3513,3904,3805,3903,3609,3613,3512,3514,3809,3905,3902,3515,3511,3906,3706,3712,3415,4000,3804,3999,3608,3714,3713,3715,3616,3812,3811,3615,3617,3813,3712,3716,3518,3909,3810,3908,3614,3618,3519,3517,3814,3910,3907,3516,3520,3911,3717,3711,3420,4005,3809,4004,3619,3718,3717,3719,3620,3816,3815,3619,3621,3817,3716,3720,3522,3913,3814,3912,3618,3622,3523,3521,3818,3914,3911,3524,3520,3715,3721,3424,4009,3915,3813,4008,3617,3722,3721,3723,3624,3820,3819,3623,3625,3821,3720,3724,3526,3917,3818,3916,3622,3626,3525,3527,3822,3918,3915,3524,3528,3719,3725,3817,3428,4013,4012,3919,3621,3726,3727,3725,3628,3824,3823,3629,3627,3825,3728,3724,3530,3822,3921,3920,3630,3626,3531,3529,3826,3922,3919,3532,3528,3821,3723,3729,3432,4017,4016,3631,3625,3731,3732,3730,3633,3829,3828,3634,3632,3830,3733,3729,3535,3827,3925,3926,3635,3631,3536,3534,3831,3924,3927,3537,3533,3826,3734,3728,3437,4021,4022,3636,3630,3735,3734,3736,3637,3833,3832,3636,3638,3834,3831,3733,3737,3539,3929,3930,3635,3639,3540,3538,3928,3835,3931,3541,3537,3830,3732,3738,3441,4025,4026,3927,3634,3739,3738,3740,3641,3837,3836,3640,3642,3838,3835,3737,3741,3543,3933,3934,3639,3643,3544,3542,3932,3839,3935,3541,3545,3834,3736,3742,3445,4029,3931,4030,3638,3743,3742,3744,3645,3841,3840,3644,3646,3842,3839,3741,3745,3547,3937,3938,3643,3647,3546,3548,3936,3843,3939,3838,3545,3549,3740,3746,3449,3935,4033,4034,3642,3748,3747,3749,3650,3846,3845,3649,3651,3847,3844,3750,3746,3552,3942,3943,3652,3648,3553,3551,3941,3848,3843,3944,3554,3550,3940,3745,3751,3454,4038,4039,3647,3752,3751,3753,3654,3850,3849,3653,3655,3851,3848,3754,3750,3556,3946,3947,3656,3652,3555,3557,3945,3852,3847,3948,3554,3558,3944,3755,3749,3458,4042,3657,3651,3756,3757,3755,3658,3853,3854,3659,3657,3852,3855,3758,3754,3560,3950,3949,3660,3656,3561,3559,3951,3851,3856,3948,3562,3558,3952,3759,3753,3462,4046,3661,3655,3760,3761,3759,3662,3857,3858,3663,3661,3856,3859,3758,3762,3564,3954,3953,3660,3664,3565,3563,3955,3855,3860,3952,3562,3566,3956,3757,3763,3466,4050,4049,3659,3765,3764,3766,3667,3862,3863,3666,3668,3861,3864,3763,3767,3569,3959,3958,3665,3669,3568,3570,3960,3860,3957,3865,3567,3571,3762,3768,3471,3961,4055,4054,3664,3769,3770,3768,3671,3866,3867,3672,3670,3865,3868,3771,3767,3573,3963,3962,3673,3669,3574,3572,3964,3864,3961,3571,3575,3869,3772,3766,3475,4059,3965,4058,3674,3773,3772,3774,3675,3870,3871,3676,3674,3869,3872,3771,3775,3577,3967,3966,3673,3677,3578,3576,3968,3868,3965,3575,3579,3873,3770,3776,3479,4063,4062,3969,3672,3777,3776,3778,3679,3874,3875,3680,3678,3873,3779,3775,3581,3876,3971,3970,3681,3677,3582,3580,3872,3972,3969,3579,3583,3877,3780,3774,3483,4067,4066,3682,3676,3782,3781,3783,3684,3879,3880,3683,3685,3878,3780,3784,3586,3881,3975,3976,3682,3686,3585,3587,3877,3974,3977,3588,3584,3882,3779,3785,3488,4071,4072,3681,3687,3786,3785,3787,3688,3883,3884,3687,3689,3882,3788,3784,3590,3979,3885,3980,3690,3686,3591,3589,3881,3978,3981,3592,3588,3789,3783,3886,3492,4075,4076,3977,3691,3790,3791,3789,3692,3887,3888,3691,3693,3886,3792,3788,3594,3983,3889,3984,3694,3690,3595,3593,3885,3982,3985,3596,3592,3793,3787,3496,4079,3981,3890,4080,3695,3794,3793,3795,3696,3891,3892,3695,3697,3890,3792,3796,3598,3987,3893,3988,3694,3698,3599,3597,3889,3986,3989,3596,3600,3985,3791,3797,3500,4083,3894,4084,3693,3799,3798,3800,3701,3896,3897,3702,3700,3895,3801,3797,3603,3992,3898,3993,3703,3699,3604,3602,3894,3991,3994,3605,3601,3990,3796,3802,3505,4088,3899,4089,3704,4092,-1,4093,4186,3996,-1,-1,4091,3997,-1,-1,-1,-1,4094,4185,3900,-1,3998,4090,3995,3901,-1,-1,-1,-1,-1,-1,3902,3994,-1,4095,4184,4096,4095,4097,4000,-1,-1,4001,3999,-1,-1,-1,-1,4094,4098,3904,4002,3905,-1,3998,3903,-1,-1,-1,-1,-1,3906,-1,3902,-1,-1,4093,4099,4100,-1,4099,4101,4004,-1,-1,4005,4003,-1,-1,4098,4102,3908,-1,-1,-1,4006,3909,3907,4002,-1,-1,-1,-1,3910,-1,-1,-1,3906,4097,4103,4104,4103,4105,-1,4008,-1,4009,4007,-1,-1,-1,-1,4106,4102,3912,4010,3913,-1,-1,3911,-1,4006,-1,-1,3914,-1,-1,3910,-1,-1,4107,4101,4109,-1,4108,4110,4013,-1,4014,-1,4012,-1,-1,-1,4107,4111,3917,4015,-1,3918,-1,3916,-1,4011,-1,3919,-1,-1,-1,-1,3915,4016,-1,4106,4113,-1,4114,4112,4017,-1,4018,-1,4016,-1,-1,-1,4115,4111,3921,4019,-1,-1,3922,3920,4015,-1,-1,-1,3923,-1,-1,-1,-1,4020,3919,4116,4117,4116,4118,-1,4021,-1,4022,-1,4020,-1,-1,-1,4023,4115,4119,3925,3926,-1,-1,-1,3924,4019,-1,3927,-1,-1,-1,4024,-1,-1,4114,4120,4121,-1,4122,4120,4025,4026,-1,-1,4024,-1,-1,4027,4119,4123,-1,3929,-1,-1,3930,3928,-1,4023,-1,3931,-1,-1,-1,-1,4028,-1,4118,4124,4125,4124,4126,-1,-1,4029,4030,-1,-1,4028,-1,-1,4031,4123,4127,3933,3934,-1,-1,-1,-1,3932,4027,3935,-1,-1,4032,-1,-1,-1,4122,4128,4129,-1,4130,4128,4033,4034,-1,-1,4032,-1,4035,-1,-1,4127,4131,-1,-1,3937,3938,3936,-1,-1,3939,4031,-1,4036,-1,-1,-1,-1,4126,4132,4133,4132,4134,-1,-1,4037,4038,-1,-1,4036,4039,-1,-1,4135,4131,3941,3942,-1,-1,-1,-1,3940,3943,4035,-1,4040,-1,-1,-1,-1,4136,4130,4137,-1,4136,4138,4041,4042,-1,-1,4040,4043,-1,-1,4135,4139,-1,-1,3945,3946,-1,3944,-1,3947,-1,4039,4044,-1,-1,-1,-1,-1,4134,4140,4142,-1,4141,4143,4047,4046,-1,-1,4048,-1,4045,-1,-1,4140,4144,3951,3950,-1,-1,-1,3952,3949,-1,4049,-1,4044,-1,-1,-1,-1,4139,4145,4146,-1,4147,4145,4051,-1,4050,-1,4052,-1,4049,-1,-1,4148,4144,3955,3954,-1,-1,-1,3956,-1,3953,4053,-1,-1,4048,-1,-1,-1,4143,4149,4150,-1,4151,4149,4055,4054,-1,-1,4056,-1,-1,4053,-1,4152,4148,3959,3958,-1,-1,3960,-1,3957,4057,-1,-1,-1,4052,-1,-1,-1,4153,4147,4154,4155,4153,-1,4059,-1,4058,-1,4060,-1,-1,4057,-1,4156,4152,3963,3962,-1,-1,-1,3964,-1,4061,3961,-1,-1,-1,4056,-1,-1,4157,4151,4158,-1,4157,4159,4063,4062,-1,-1,4064,-1,-1,4061,4156,4160,-1,3967,-1,-1,3966,3968,-1,4065,-1,3965,-1,-1,-1,-1,4060,-1,4155,4161,4162,4163,4161,-1,4067,-1,4066,-1,4068,-1,-1,-1,4065,4164,4160,3971,3970,-1,-1,-1,3972,-1,4069,3969,-1,-1,-1,-1,4064,-1,4165,4159,4166,-1,4165,4167,4071,4070,-1,-1,4072,-1,-1,-1,4164,4168,3975,4069,-1,-1,3974,3976,4073,-1,-1,3973,-1,-1,-1,-1,-1,4068,3977,4163,4170,4169,4171,4075,-1,-1,4074,4076,-1,-1,-1,-1,4168,4172,3979,4073,3978,-1,-1,3980,-1,4077,-1,3977,-1,-1,-1,-1,3981,4072,-1,4167,4175,-1,4176,4174,4080,-1,4079,-1,4081,-1,-1,-1,4177,4173,3984,4078,-1,-1,3983,3985,4082,-1,-1,-1,-1,3982,-1,-1,3986,-1,4178,4172,4179,-1,4178,4180,4084,-1,4083,-1,4085,-1,-1,-1,4177,4181,3988,-1,4082,-1,3987,3989,4086,-1,-1,-1,-1,3986,-1,3990,-1,-1,4182,4176,4183,-1,4184,4182,4088,-1,4087,4089,-1,-1,-1,-1,4185,4181,3992,-1,4086,3991,-1,4090,3993,-1,-1,-1,-1,-1,3990,3994,-1,-1,4186,4180],"visual":[0,7,4,2,1,3,6,5,9,10,16,15,8,18,19,17,11,12,13,14,31,20,21,22,23,24,25,26,27,28,29,30,38,61,60,39,20,88,62,21,37,89,59,40,63,87,120,90,8,22,36,19,9,91,119,64,86,41,58,1,121,157,122,118,42,66,41,65,43,23,67,24,22,64,40,94,95,10,44,93,68,96,25,21,9,11,63,39,92,2,127,97,45,128,69,126,46,45,70,71,26,47,69,27,25,44,72,100,99,12,101,68,48,98,28,24,13,11,73,43,102,3,133,97,134,67,4,49,50,49,75,29,74,76,48,51,30,28,105,73,77,106,104,14,31,27,52,47,15,13,107,103,78,72,139,140,4,5,108,102,53,54,80,79,32,52,81,33,31,55,78,110,111,16,109,82,51,112,34,30,15,17,77,56,108,6,146,113,145,83,5,50,57,84,58,85,56,35,83,36,34,86,59,116,115,18,55,117,82,114,33,37,17,19,87,60,118,7,152,113,54,151,81,153,158,199,198,159,200,243,121,244,157,122,245,291,201,242,197,160,89,156,123,290,246,120,90,292,293,343,241,202,196,161,91,119,162,204,203,163,161,125,202,205,124,249,248,126,164,250,160,123,92,247,93,201,206,91,251,127,297,298,165,296,94,122,159,64,166,208,167,209,207,165,128,129,254,253,168,127,206,210,255,130,164,252,95,96,94,302,126,169,303,256,97,205,211,131,251,301,170,212,213,171,169,132,211,214,258,133,259,172,131,257,260,168,99,134,98,215,210,130,173,100,308,307,256,97,261,309,306,69,217,174,175,218,216,136,173,135,263,176,264,137,262,219,215,134,102,265,172,101,177,138,103,261,313,312,220,214,314,100,133,72,178,179,222,221,139,140,177,180,220,223,268,267,269,141,138,105,224,219,176,181,266,270,104,106,318,137,142,319,317,103,107,75,226,183,182,227,225,143,184,144,273,181,272,142,274,228,224,145,108,271,185,109,180,141,107,275,323,324,229,223,322,110,146,78,187,231,230,186,188,147,229,232,278,146,277,185,148,279,276,189,111,145,112,228,233,149,184,110,328,329,280,113,275,327,330,81,191,235,190,234,236,192,151,150,282,283,189,152,237,233,281,149,193,284,115,114,116,334,153,188,333,280,113,238,232,148,285,335,195,240,239,194,196,154,241,238,155,287,288,153,193,286,197,156,118,289,117,242,237,119,285,152,339,338,192,340,116,157,198,86,399,344,400,456,398,345,457,292,517,458,293,343,455,401,397,346,516,459,518,244,294,342,581,519,245,291,402,454,347,396,580,520,403,348,404,347,402,349,461,462,296,295,405,460,346,297,463,401,350,294,523,247,522,248,459,298,406,524,246,521,249,464,345,351,407,352,408,351,406,353,466,465,299,300,409,467,350,298,464,354,301,405,527,251,528,250,468,410,526,252,297,349,302,463,529,249,411,412,356,355,470,357,410,413,303,471,469,304,354,302,358,472,409,305,468,532,254,414,531,255,301,533,253,353,530,256,473,306,416,415,360,359,474,361,417,475,414,307,306,358,473,308,476,362,418,305,536,258,413,537,257,309,357,472,535,259,477,538,256,304,420,364,419,363,421,479,365,478,311,310,418,362,480,312,477,309,422,366,541,261,481,540,262,361,417,542,260,313,308,476,539,263,424,368,367,423,425,483,369,484,314,366,315,482,422,313,426,485,316,370,545,481,265,546,264,365,312,421,544,266,547,263,317,427,428,372,371,429,427,487,488,318,373,370,317,319,430,426,486,489,550,268,316,320,374,369,549,551,267,269,490,485,431,425,548,552,432,375,376,433,431,492,374,491,322,377,321,493,434,323,430,490,320,373,555,494,271,554,272,378,324,435,556,270,553,273,319,429,436,379,437,380,435,496,378,497,325,326,438,381,495,324,498,327,434,377,559,275,494,560,274,382,439,558,276,323,328,499,561,273,440,441,383,384,501,382,439,500,442,329,330,385,502,328,499,381,438,331,564,278,443,563,279,327,386,503,565,277,498,562,280,332,445,444,387,388,505,386,446,443,333,504,506,332,389,334,385,503,447,331,507,568,282,442,569,281,335,567,283,390,570,280,502,330,449,391,448,392,450,390,509,510,337,336,447,508,393,338,511,389,335,451,573,285,572,286,507,446,574,284,339,394,334,512,571,287,453,395,452,396,454,394,514,513,340,341,451,515,397,339,512,455,393,342,577,289,578,288,516,338,450,576,290,579,287,511,398,392,648,582,649,716,717,647,583,787,718,518,650,715,581,519,584,646,788,786,719,789,860,520,580,457,517,458,651,714,859,790,645,585,652,653,586,721,587,722,651,585,654,522,720,723,588,521,523,793,584,792,650,794,655,520,524,719,461,791,724,460,462,589,583,459,657,656,590,726,591,658,725,589,727,655,526,592,525,527,724,797,659,798,588,728,796,654,524,528,465,464,593,799,466,723,795,463,661,660,594,662,595,730,731,593,729,530,596,659,732,663,531,529,802,801,592,728,803,528,532,468,597,469,800,658,733,664,467,470,665,666,599,598,735,664,734,736,600,597,667,534,533,535,733,806,663,807,737,805,596,601,532,536,472,668,473,808,471,732,474,804,670,669,603,602,739,740,671,668,604,738,538,601,537,539,741,811,810,672,737,605,812,667,536,540,476,600,477,809,475,742,813,478,674,673,607,675,606,744,743,608,745,542,672,605,742,543,541,676,815,816,609,814,746,544,540,480,817,479,671,604,741,481,677,478,678,679,611,748,677,610,612,749,747,680,546,609,545,547,676,820,750,613,746,819,821,548,544,484,483,681,818,608,485,822,675,482,683,682,615,753,752,616,614,684,681,550,751,754,549,551,617,613,825,824,685,680,548,552,826,823,487,488,750,755,486,489,618,612,687,686,619,757,688,620,618,756,758,685,554,621,553,555,689,829,755,617,759,830,828,556,552,491,492,684,831,622,490,827,690,493,691,692,623,690,624,761,762,622,760,558,693,625,763,557,559,689,834,833,621,835,759,560,556,495,832,496,694,626,764,494,688,497,695,696,627,628,766,765,694,697,626,767,562,629,563,561,764,838,839,693,768,625,837,698,564,560,499,630,498,840,500,763,836,497,700,699,631,632,770,701,771,769,630,633,698,566,565,567,772,843,702,842,768,844,634,629,568,564,503,697,502,841,504,773,501,845,704,705,636,703,635,775,774,637,776,570,634,706,773,702,571,569,847,848,638,777,846,572,568,507,633,506,849,707,772,701,508,505,708,709,640,779,639,707,780,641,778,710,574,638,575,573,781,852,706,851,642,777,853,711,576,572,510,511,637,850,509,782,854,512,713,712,644,784,643,783,714,645,711,578,785,782,642,579,577,856,646,857,715,855,710,580,576,786,514,858,781,515,513,641,647,516,936,1013,937,1012,861,1014,1091,935,862,1092,938,1011,788,1090,1015,1172,1093,789,860,863,934,790,859,1171,1094,717,1010,939,787,718,1173,864,940,941,1017,1018,865,939,866,864,1016,942,1019,1097,1096,792,867,793,938,791,863,1095,1098,1015,943,794,1020,790,721,868,720,722,1178,1177,945,944,1022,869,1021,870,946,1023,943,868,1101,871,1020,796,797,1100,1102,795,1024,947,867,942,798,1099,1103,872,794,725,1019,724,726,1182,949,948,1026,950,1027,874,873,1025,947,875,872,1106,1105,800,1028,951,801,799,1024,1107,1104,876,871,802,946,729,798,1029,728,730,1187,952,953,954,1031,1030,952,878,877,1032,879,1029,955,1110,876,804,951,805,1109,1111,803,880,1033,806,1028,1108,1112,875,956,733,802,732,950,1191,957,958,1035,882,1034,1036,881,956,883,959,1114,1115,808,880,1033,809,1037,807,955,884,1113,1116,960,810,737,736,879,806,1032,1196,738,1038,962,961,1039,1040,886,963,887,885,1038,960,1041,1119,812,813,1118,1120,888,884,964,811,1037,814,959,1042,1117,1121,741,740,810,1200,889,883,966,1044,965,967,890,1043,891,1045,889,964,1042,1124,1123,968,816,817,892,888,815,1046,1122,1125,818,1041,745,963,744,893,969,814,1205,746,970,971,1048,894,969,1049,895,1047,893,972,1128,896,820,1050,821,1129,1127,968,1046,819,822,892,973,1130,1126,897,749,748,1051,818,1209,1210,975,974,1052,1053,898,899,973,976,1051,1054,897,900,1132,1133,825,824,1131,1134,972,977,826,823,1050,1055,896,901,752,753,1214,827,822,1130,979,978,1057,903,980,1056,902,1058,904,977,1137,901,829,1055,828,1136,1138,981,1059,830,827,905,976,1135,1139,900,756,757,1054,831,1219,1218,983,1061,984,982,907,1062,906,1060,908,985,1063,1142,1141,981,833,832,905,909,834,1059,1140,1143,831,1064,760,986,761,904,980,835,1223,759,987,988,1066,1065,911,986,910,912,1067,989,1064,1146,837,836,1145,1147,913,909,985,838,1068,835,990,1063,1144,1148,764,765,839,1228,914,908,992,991,1070,915,1071,1069,916,993,914,990,1150,1151,841,917,1072,840,1068,842,994,913,1149,1152,989,839,768,769,918,843,1073,1232,767,1067,996,995,1074,1075,997,919,920,1073,918,1076,994,1155,921,845,998,844,1154,1156,846,917,1072,843,1077,1153,1157,922,993,772,847,773,999,1237,1000,1001,1079,999,1078,924,923,1080,1002,922,925,1159,1160,849,1077,998,848,850,1081,1161,1158,921,926,847,1003,776,851,1076,777,775,1241,997,1004,1005,1083,928,1084,927,1003,1082,1006,929,1164,926,1085,853,852,1163,1165,854,1081,1002,930,1007,851,1162,1166,925,855,780,1086,781,779,1246,1009,1008,1088,1087,932,1010,931,933,1089,1007,1086,1169,1168,857,930,856,1011,858,934,1167,1170,1090,1006,855,1085,859,784,929,785,783,1250,1251,1255,1339,1338,1256,1340,1423,1173,1174,1254,1424,1425,1509,1257,1337,1341,1422,1092,1175,1253,1172,1093,1508,1426,1510,1171,1094,1258,1336,1511,1597,1013,1342,1259,1343,1260,1344,1258,1177,1342,1178,1176,1428,1261,1429,1345,1427,1257,1096,1179,1341,1097,1175,1095,1430,1262,1346,1514,1515,1098,1426,1094,1017,1180,1256,1263,1264,1347,1348,1181,1262,1182,1265,1346,1349,1433,1180,1432,1183,1434,1100,1431,1101,1261,1099,1179,1266,1350,1345,1519,1102,1518,1098,1435,1184,1021,1520,1268,1352,1267,1351,1185,1353,1269,1186,1266,1437,1184,1350,1436,1438,1187,1104,1354,1105,1270,1103,1265,1435,1183,1439,1523,1106,1349,1188,1524,1102,1025,1522,1272,1356,1271,1357,1355,1273,1189,1190,1441,1270,1442,1188,1191,1440,1354,1358,1274,1108,1109,1107,1443,1187,1269,1110,1439,1192,1528,1527,1106,1029,1353,1359,1276,1360,1361,1277,1275,1359,1194,1193,1446,1445,1362,1192,1195,1274,1278,1112,1444,1447,1113,1358,1111,1191,1196,1114,1532,1363,1279,1273,1533,1531,1110,1033,1280,1365,1364,1281,1279,1198,1197,1366,1363,1450,1282,1449,1199,1196,1451,1278,1116,1117,1448,1115,1362,1367,1200,1118,1283,1452,1195,1536,1537,1037,1114,1036,1284,1369,1285,1368,1202,1370,1283,1201,1286,1454,1203,1367,1455,1453,1200,1120,1121,1371,1282,1119,1287,1456,1204,1122,1452,1541,1366,1199,1540,1542,1041,1040,1289,1373,1288,1374,1372,1206,1290,1205,1287,1458,1207,1459,1375,1371,1204,1457,1124,1125,1460,1291,1208,1286,1123,1126,1545,1546,1456,1203,1376,1370,1544,1045,1293,1377,1292,1378,1294,1210,1376,1209,1211,1463,1291,1462,1379,1464,1295,1128,1208,1129,1375,1212,1461,1127,1130,1290,1380,1550,1549,1465,1049,1207,1048,1296,1297,1382,1381,1296,1298,1214,1383,1380,1215,1213,1467,1466,1468,1295,1299,1132,1133,1212,1216,1384,1379,1131,1134,1465,1469,1554,1294,1300,1553,1555,1052,1053,1301,1386,1302,1385,1300,1218,1387,1219,1217,1471,1303,1472,1384,1470,1299,1137,1220,1136,1388,1216,1473,1138,1135,1304,1383,1558,1559,1469,1056,1221,1057,1298,1305,1390,1306,1391,1389,1222,1304,1223,1307,1476,1221,1475,1392,1388,1224,1477,1141,1140,1474,1303,1220,1308,1142,1139,1563,1562,1478,1225,1393,1387,1564,1060,1310,1394,1309,1395,1226,1393,1311,1227,1308,1480,1225,1396,1479,1481,1228,1145,1144,1392,1312,1146,1307,1478,1224,1143,1482,1567,1397,1229,1568,1566,1064,1065,1314,1399,1398,1313,1315,1230,1231,1397,1400,1484,1312,1485,1229,1232,1483,1316,1149,1148,1486,1150,1396,1401,1228,1147,1311,1482,1233,1572,1571,1068,1151,1069,1318,1403,1402,1317,1319,1404,1234,1235,1488,1489,1401,1233,1236,1316,1320,1153,1490,1487,1152,1405,1154,1232,1237,1151,1576,1400,1315,1321,1577,1575,1155,1072,1322,1407,1323,1408,1406,1321,1239,1238,1493,1324,1492,1240,1237,1494,1409,1405,1320,1157,1156,1158,1491,1241,1325,1155,1495,1236,1580,1581,1159,1076,1410,1404,1326,1411,1327,1412,1243,1410,1325,1242,1328,1497,1244,1413,1498,1496,1241,1161,1409,1160,1324,1162,1329,1499,1245,1495,1585,1159,1414,1240,1584,1163,1080,1586,1331,1330,1416,1415,1247,1332,1246,1329,1417,1414,1501,1248,1502,1245,1500,1165,1503,1164,1333,1166,1249,1328,1418,1413,1589,1163,1590,1167,1499,1244,1084,1588,1335,1420,1334,1419,1336,1251,1421,1250,1252,1506,1333,1505,1418,1507,1337,1169,1249,1422,1168,1253,1170,1504,1332,1417,1594,1593,1167,1508,1171,1088,1248,1338,1687,1598,1688,1776,1599,1686,1777,1510,1867,1778,1597,1511,1689,1775,1685,1600,1424,1512,1596,1779,1866,1868,1425,1509,1959,1869,1684,1601,1690,1774,1508,1426,1691,1602,1692,1603,1690,1601,1781,1514,1782,1515,1693,1604,1513,1780,1783,1600,1516,1689,1428,1429,1872,1512,1873,1427,1694,1605,1779,1871,1430,1874,1784,1517,1696,1695,1606,1607,1786,1697,1605,1518,1785,1608,1694,1519,1787,1517,1520,1784,1432,1698,1604,1433,1609,1877,1693,1431,1876,1516,1788,1878,1521,1434,1783,1875,1700,1611,1610,1699,1701,1612,1790,1523,1522,1791,1789,1609,1698,1524,1521,1702,1613,1436,1792,1788,1437,1881,1882,1435,1608,1525,1880,1697,1520,1438,1703,1883,1704,1615,1705,1614,1616,1703,1794,1527,1795,1526,1706,1528,1793,1613,1617,1702,1796,1525,1440,1441,1886,1885,1529,1439,1792,1442,1707,1612,1887,1884,1618,1524,1708,1619,1709,1620,1618,1799,1707,1531,1798,1710,1530,1532,1621,1800,1617,1797,1529,1444,1706,1445,1533,1890,1711,1889,1443,1801,1891,1622,1446,1796,1616,1528,1713,1623,1712,1624,1714,1803,1622,1535,1625,1536,1711,1802,1804,1534,1715,1537,1621,1449,1448,1805,1801,1533,1894,1626,1895,1710,1450,1447,1893,1896,1538,1363,1717,1628,1627,1718,1716,1629,1807,1539,1808,1540,1626,1806,1538,1719,1715,1541,1809,1630,1453,1452,1899,1898,1625,1537,1454,1805,1451,1900,1542,1714,1720,1810,1721,1632,1722,1631,1633,1720,1812,1811,1544,1543,1723,1630,1813,1545,1542,1634,1810,1719,1457,1456,1903,1458,1904,1724,1902,1814,1546,1541,1629,1455,1635,1809,1726,1636,1725,1637,1635,1816,1727,1548,1724,1547,1815,1817,1638,1549,1634,1546,1461,1728,1818,1814,1460,1907,1723,1908,1462,1550,1639,1906,1459,1545,1909,1633,1730,1640,1641,1729,1731,1820,1639,1552,1821,1642,1551,1553,1728,1819,1732,1822,1550,1638,1465,1554,1912,1464,1466,1643,1911,1818,1913,1727,1463,1823,1467,1549,1734,1645,1644,1735,1733,1825,1646,1556,1824,1643,1557,1555,1736,1826,1732,1823,1558,1647,1469,1554,1916,1470,1468,1642,1917,1827,1915,1737,1471,1822,1467,1559,1738,1649,1739,1648,1650,1829,1737,1560,1740,1561,1830,1828,1647,1559,1651,1562,1473,1736,1831,1827,1474,1921,1741,1920,1472,1558,1646,1922,1475,1563,1919,1652,1743,1653,1742,1654,1652,1744,1833,1834,1564,1565,1741,1655,1832,1563,1566,1651,1835,1745,1477,1478,1925,1476,1924,1740,1926,1831,1562,1567,1656,1479,1650,1836,1747,1657,1658,1748,1746,1656,1838,1569,1837,1568,1659,1839,1570,1749,1745,1567,1836,1655,1481,1482,1929,1930,1660,1571,1480,1840,1483,1928,1566,1750,1744,1835,1751,1662,1752,1661,1750,1842,1663,1573,1660,1572,1753,1843,1841,1574,1749,1571,1664,1485,1486,1844,1840,1575,1934,1659,1933,1754,1484,1487,1935,1932,1570,1400,1756,1666,1755,1665,1667,1846,1757,1577,1847,1754,1578,1576,1664,1845,1668,1848,1579,1490,1758,1489,1575,1938,1753,1939,1491,1844,1937,1663,1488,1849,1669,1580,1760,1670,1759,1671,1669,1761,1851,1581,1850,1582,1758,1580,1852,1672,1668,1762,1849,1583,1494,1493,1942,1943,1579,1495,1853,1492,1757,1673,1941,1944,1667,1584,1764,1674,1675,1765,1763,1673,1855,1585,1586,1856,1854,1676,1766,1584,1587,1762,1672,1498,1857,1853,1497,1947,1946,1499,1677,1583,1948,1767,1588,1496,1761,1945,1768,1769,1679,1678,1859,1767,1680,1590,1860,1677,1770,1589,1858,1591,1588,1861,1502,1766,1681,1501,1676,1951,1771,1503,1952,1592,1857,1950,1587,1500,1862,1953,1773,1683,1772,1682,1774,1684,1864,1594,1863,1593,1771,1681,1595,1865,1862,1685,1592,1775,1506,1505,1956,1596,1955,1507,1770,1680,1866,1957,1504,1954,1861,1591,2053,1960,2054,2146,2147,2052,1961,2148,2240,1868,1869,1959,2145,2055,2051,1962,2241,2239,2149,2335,2242,1870,1958,1777,1778,1867,2144,2056,2050,1963,2334,2243,2057,2058,1964,1965,2151,2056,2152,1963,2059,1872,2150,1873,1966,1871,2153,2055,2245,1962,2246,1874,1781,2149,2244,1870,2060,1782,1780,1967,2247,2154,1783,1875,2062,2061,1968,1969,2156,2155,2063,2060,1967,1970,1876,1877,2157,2154,1875,2250,1878,2249,2064,1966,2059,1971,1785,2251,1786,2158,1874,2248,1784,2153,1879,1787,2066,2065,1973,1972,2067,2160,2159,1974,2161,1881,1880,2064,1971,2068,2158,1882,1879,2254,1975,2253,2255,2162,1789,1790,1970,2063,1883,1788,1878,1791,2252,2157,2070,1977,2071,2069,2164,1976,1978,2165,2163,1885,1884,2072,1975,2068,1886,1979,2166,2258,1883,2259,2162,1794,2257,1793,1887,2073,2260,1795,1974,1792,2067,1980,2074,2075,1981,1982,2168,2169,2073,1980,2076,1889,2167,1888,1983,1890,2170,1979,2263,2072,2262,1887,1798,2077,1891,1797,2166,2264,2261,1799,1984,2171,1796,1978,2079,2078,1985,1986,2173,2172,2080,1984,2077,1893,1987,2174,1894,1892,2171,2267,2081,1983,2266,1895,2268,1802,2076,1891,1988,2175,1801,1803,2170,2265,1800,2269,2083,1990,2082,1989,2084,2177,2176,1991,2178,1988,1897,1898,2081,2085,1896,2271,2175,1899,2272,2179,1992,1806,2270,1987,1805,1895,1807,2080,2273,2086,1900,1804,2087,2088,1994,1993,2086,2181,1995,2182,2180,1901,1902,2089,1992,2085,2183,1900,1996,1903,2276,2275,2179,1810,1811,2277,1809,2274,2090,1991,1899,1904,2184,1812,2091,2092,1998,1999,2185,1997,2186,2090,2093,1906,1905,2184,2187,2000,1996,1907,2280,1904,2089,2279,2094,2281,1814,1815,2183,1908,1813,2188,2001,2278,1903,1995,2096,2095,2002,2003,2190,2097,2189,2001,2094,1910,2191,2004,1909,1911,2188,2098,2284,2000,2285,1908,2283,2192,1818,1819,1912,2093,2005,1817,2286,1820,2187,1907,2100,2007,2006,2101,2099,2194,2195,2193,2005,2008,1914,1913,1915,2098,2102,2289,2288,2192,2196,2009,2004,1916,1912,1822,1823,2287,2290,1824,1821,2097,2103,2191,2104,2105,2011,2010,2198,2103,2199,2012,2106,1918,2197,2009,1919,1917,2200,2102,2293,2013,2292,1920,2294,2196,1827,1826,1916,2107,2008,1828,2291,1825,2201,1921,2109,2108,2015,2014,2203,2016,2202,2110,2107,1922,1923,2204,2201,2013,2017,1921,2297,1924,2111,2298,2106,2296,1831,1830,2205,1920,1832,2200,2012,2299,1925,2018,2113,2112,2019,2020,2114,2207,2018,2206,2208,1927,1926,2111,2021,2115,2205,1928,2017,1925,2301,2302,2209,1835,1834,2300,1836,2303,2110,2022,1929,1924,2204,1833,2117,2023,2118,2024,2116,2211,2212,2022,2210,2025,1931,1930,2119,2115,1932,2306,2213,1929,2305,2209,2021,1839,2307,2026,1840,1933,1838,2120,2304,2114,1928,1841,2121,2122,2028,2027,2215,2216,2120,2029,2123,1935,2026,2214,1934,1936,2217,2310,2119,2030,2311,1933,2309,1843,2124,1937,2025,2213,1844,1842,2218,2312,1845,2308,2126,2125,2032,2031,2220,2219,2127,2033,2124,1939,2221,1940,2030,1938,2218,2034,2314,2128,2315,1941,1847,2123,1937,1848,2222,2313,2316,1846,2029,2217,1849,2035,2130,2036,2129,2131,2224,2037,2035,2223,2225,1943,1944,2128,2038,2132,1942,2034,2222,2319,1945,2318,2226,1851,2320,1852,1941,2127,2317,1850,2039,1853,2133,2033,2134,2135,2040,2041,2133,2228,2229,2039,2227,1947,1948,2136,2042,2132,2230,1946,1949,2323,2038,2324,2322,2226,1856,1855,2043,2137,1945,1857,1950,1854,2325,2231,2138,2139,2045,2044,2232,2233,2137,2140,2046,2043,1952,1951,2231,2234,1953,2327,1950,2328,2136,2047,2141,2042,1860,2326,1859,2230,1954,2329,1861,2235,1949,1858,2143,2142,2049,2048,2237,2144,2236,2050,2141,1956,2238,1955,2047,1957,2235,2145,2332,2051,2331,1954,1864,2239,2333,1958,2140,1863,1865,2046,2330,2234,1862,1953,2432,2528,2527,2433,2336,2529,2624,2337,2431,2241,2434,2526,2625,2242,2335,2338,2430,2623,2530,2626,2721,2334,2243,2147,2720,2627,2240,2148,2435,2525,2429,2339,2436,2437,2532,2340,2435,2533,2341,2339,2531,2438,2245,2629,2342,2534,2246,2434,2630,2244,2338,2628,2530,2247,2631,2151,2243,2439,2152,2343,2150,2535,2627,2726,2440,2441,2536,2344,2537,2345,2439,2442,2343,2535,2538,2346,2249,2250,2633,2634,2248,2438,2342,2632,2251,2635,2443,2534,2347,2539,2155,2247,2156,2154,2731,2730,2445,2444,2541,2349,2348,2540,2446,2443,2542,2350,2347,2539,2253,2254,2638,2637,2252,2639,2255,2447,2442,2543,2351,2346,2636,2159,2538,2160,2251,2158,2256,2735,2449,2448,2545,2353,2352,2544,2450,2546,2354,2447,2351,2258,2257,2642,2543,2641,2451,2643,2547,2259,2256,2355,2446,2350,2163,2640,2164,2644,2260,2162,2255,2542,2453,2452,2549,2357,2454,2550,2356,2548,2358,2451,2262,2646,2261,2355,2455,2551,2647,2359,2645,2263,2547,2260,2167,2168,2648,2450,2264,2354,2644,2166,2552,2456,2457,2458,2553,2361,2456,2554,2362,2360,2552,2266,2459,2555,2650,2455,2265,2651,2363,2359,2267,2649,2551,2264,2652,2172,2171,2268,2556,2460,2364,2454,2173,2358,2461,2462,2365,2558,2557,2460,2366,2364,2559,2463,2556,2270,2367,2655,2654,2269,2271,2459,2363,2656,2653,2268,2560,2555,2272,2464,2176,2175,2368,2177,2752,2174,2465,2466,2562,2369,2370,2561,2464,2563,2467,2368,2371,2274,2560,2659,2275,2658,2273,2463,2660,2564,2367,2468,2276,2657,2372,2272,2180,2179,2559,2181,2661,2756,2470,2469,2566,2374,2373,2565,2567,2471,2468,2375,2372,2278,2663,2279,2564,2277,2662,2568,2664,2472,2467,2376,2280,2371,2184,2276,2661,2183,2665,2185,2563,2760,2474,2473,2570,2378,2377,2571,2475,2569,2379,2472,2282,2376,2667,2283,2572,2668,2476,2281,2666,2568,2380,2284,2471,2669,2188,2375,2187,2280,2189,2573,2665,2765,2478,2477,2574,2382,2479,2575,2381,2383,2573,2576,2476,2286,2287,2671,2480,2672,2380,2384,2285,2288,2670,2572,2673,2192,2577,2475,2191,2193,2379,2284,2481,2289,2482,2483,2579,2386,2481,2578,2387,2385,2580,2577,2484,2291,2290,2676,2480,2675,2388,2384,2292,2289,2677,2581,2674,2196,2576,2485,2197,2195,2389,2293,2479,2288,2486,2487,2583,2390,2391,2582,2485,2584,2389,2488,2295,2392,2680,2294,2581,2679,2484,2296,2681,2585,2388,2293,2489,2678,2200,2393,2201,2297,2199,2580,2682,2777,2490,2491,2587,2394,2395,2588,2586,2489,2492,2393,2396,2299,2684,2298,2589,2300,2685,2585,2683,2488,2493,2392,2297,2397,2204,2301,2686,2205,2682,2203,2590,2782,2495,2494,2591,2399,2398,2592,2496,2590,2493,2400,2397,2303,2593,2688,2302,2689,2304,2497,2687,2589,2401,2492,2301,2690,2396,2305,2208,2209,2594,2207,2686,2786,2499,2498,2403,2595,2596,2500,2402,2404,2594,2497,2597,2307,2401,2692,2693,2308,2306,2501,2405,2691,2694,2309,2593,2598,2305,2496,2212,2213,2400,2211,2790,2214,2503,2502,2600,2407,2504,2599,2406,2408,2601,2311,2501,2598,2697,2505,2312,2696,2405,2409,2310,2698,2602,2313,2695,2216,2217,2309,2597,2500,2404,2506,2215,2410,2507,2508,2604,2411,2506,2603,2412,2605,2410,2509,2315,2701,2316,2413,2505,2602,2700,2409,2702,2314,2606,2317,2221,2220,2699,2510,2313,2414,2703,2222,2601,2504,2511,2512,2608,2415,2416,2609,2510,2607,2414,2513,2417,2319,2320,2705,2610,2706,2509,2704,2606,2318,2321,2413,2514,2418,2225,2707,2224,2703,2317,2226,2322,2611,2515,2516,2612,2419,2420,2613,2514,2517,2611,2418,2421,2614,2324,2323,2709,2710,2325,2708,2322,2513,2518,2610,2417,2422,2711,2229,2615,2228,2326,2230,2321,2807,2520,2519,2617,2424,2616,2423,2521,2518,2425,2618,2615,2422,2328,2327,2714,2713,2329,2522,2426,2715,2326,2712,2517,2619,2421,2614,2233,2330,2232,2234,2811,2812,2524,2523,2621,2428,2525,2620,2427,2429,2622,2522,2332,2718,2426,2619,2331,2526,2717,2333,2430,2719,2623,2330,2716,2237,2334,2521,2236,2425,2238,2618,2720,2816,2820,2918,2821,2917,3015,2919,2722,2819,2723,3016,2916,2822,3113,3017,2625,3014,2920,2724,2818,2626,2721,3112,3018,2720,2627,3114,2528,2915,2823,3212,3115,2624,2824,2922,2825,2923,2726,2823,2727,2921,2725,2826,3020,2924,3021,2728,2629,3019,2630,2822,2628,2920,2724,3022,2631,2827,3118,2925,2729,3018,3119,2532,2627,2533,2829,2828,2927,2926,2731,2730,2830,2827,2928,2925,3025,3024,2732,2729,2633,2634,3026,3023,2831,2826,2632,2635,2929,2924,2733,2728,3123,3122,2536,2537,2631,3027,2833,2931,2832,2930,2834,2735,2932,2734,2736,3029,2831,3028,2929,2733,2638,3030,2637,2835,2933,2737,2639,3027,2636,2830,3127,3031,2928,2732,2541,2540,3126,2640,2837,2935,2838,2836,2936,2739,2934,2740,2738,3033,2839,3034,2835,3032,2937,2642,2933,2741,2641,2737,2643,3035,2640,3031,3131,2644,2840,2545,3132,2834,2544,2742,2841,2842,2939,2940,2743,2840,2744,2938,2843,2742,3037,2941,3038,2745,2646,3036,2647,2839,2645,2937,3039,2741,2844,2648,2942,2746,2644,3136,3135,2549,3035,2550,2846,2845,2944,2943,2748,2747,2847,2844,2945,2942,3042,3041,2749,2746,2650,2651,3043,3040,2848,2649,2843,2946,2750,2652,2941,2745,3140,2553,3139,2554,2648,3044,2850,2948,2849,2947,2851,2752,2949,2751,2753,3046,2848,3045,2946,3047,2750,2655,2852,2654,2950,2754,2656,2653,3044,2847,3144,3048,2945,2749,2558,2557,3145,3143,2854,2952,2855,2853,2953,2756,2951,2757,2755,3050,2856,3051,2954,2852,3049,2659,2758,2658,2950,2754,2660,3052,2657,3048,2857,3148,3149,2562,2661,2561,2955,2759,2858,2859,2956,2957,2760,2857,2761,2955,2860,3054,2759,2958,3055,2762,2663,3053,2662,2664,2856,3056,2954,2758,2861,2959,2661,2763,2665,3153,2566,3152,3052,2565,2863,2862,2961,2960,2765,2764,2864,2962,2861,2959,3059,2766,3058,2763,2667,2668,3060,2865,2666,3057,2963,2860,2767,2669,2958,2762,3157,2665,2570,3158,2571,3061,2867,2965,2866,2964,2868,2769,2966,2768,2770,3063,2865,3062,2963,3064,2869,2671,2767,2672,2967,2771,2670,2673,3061,3065,2864,3161,3162,2574,2575,2962,2766,2669,2871,2969,2872,2970,2870,2773,2968,2774,2772,3067,2873,3068,2971,3066,2869,2676,2775,2675,2967,2771,2677,2674,3069,3065,2874,3166,3165,2579,2578,2972,2776,2678,2875,2876,2973,2974,2777,2778,2874,2972,2877,2975,3071,2776,3072,2779,2680,2679,3070,2873,2681,3073,2971,2878,2775,2678,2976,2780,3170,2682,2583,3169,2582,3069,2880,2879,2978,2977,2782,2881,2781,2979,2878,3076,2783,2976,3075,2780,2684,3077,2685,2683,2882,3074,2980,2784,2877,2975,2686,2779,2682,3174,2587,3175,3078,2588,2884,2982,2883,2885,2981,2786,2983,2785,2787,3080,2882,3079,2980,2886,3081,2688,2784,2689,2984,2788,2687,3078,2690,3082,2881,3179,3178,2591,2686,2592,2979,2783,2888,2986,2889,2987,2887,2790,2985,2791,2789,3084,2890,3085,2988,3083,2792,2692,2886,2693,2984,2788,2691,2694,3086,2891,3183,3082,2989,2793,2595,2596,3182,3184,2892,2893,2990,2991,2794,2795,2891,2894,2989,2992,3088,3089,2793,2796,2697,2696,3087,3090,2890,2698,2895,2988,2792,2695,2993,2797,3187,2600,3188,2599,2699,3086,2897,2896,2995,2994,2799,2898,2798,2996,2895,2800,3093,2993,3092,2797,2701,3094,2700,2899,2702,2997,3091,2801,2894,2699,2992,2796,2703,3191,3192,2604,3095,2603,2901,2999,2900,2902,2998,2803,3000,2802,2804,3097,2899,3096,2903,3098,2997,2705,3001,2801,2706,2805,2704,3095,2707,3099,3196,2703,2898,2608,3195,2904,2609,2800,2905,3003,2906,3004,2904,2807,3002,2808,2806,3101,2907,3102,3005,2809,2709,3100,2710,2903,3001,2805,2708,3103,2711,2908,3200,3099,3006,2810,2612,2613,3201,2707,2909,2910,3007,3008,2811,2812,2908,2911,3006,3009,3105,3106,2810,2813,2714,2713,3104,3107,2907,2912,2715,2712,3005,3010,2809,2814,3204,3205,2617,2616,2716,3103,2914,3012,2913,3011,2816,2915,2815,3013,2817,2912,3110,3010,3109,2814,2718,3111,2717,2916,2719,3014,2818,3108,2716,2911,3209,3009,2813,3112,3208,2621,2720,2620,3312,3213,3311,3214,3410,3313,3114,3411,3212,3115,3412,3508,3215,3310,3314,3409,3016,3211,3116,3113,3017,3509,3507,3413,3606,3510,3112,3018,3216,3309,3408,3315,3316,3217,3317,3218,3216,3315,3118,3415,3119,3416,3219,3318,3117,3414,3120,3020,3215,3417,3314,3021,3019,3513,3116,3514,3220,3319,3413,3022,3512,3121,3018,2922,3321,3222,3320,3221,3223,3123,3322,3122,3420,3419,3220,3319,3124,3121,3421,3418,3025,3024,3224,3323,3219,3518,3517,3026,3318,3125,3023,3120,3422,3519,3417,3516,3325,3226,3324,3225,3227,3326,3127,3424,3126,3423,3128,3224,3425,3323,3228,3327,3029,3125,3422,3028,3129,3030,3522,3521,3426,3027,3523,3223,3322,3229,3031,2931,3329,3230,3330,3231,3229,3328,3131,3428,3132,3429,3232,3130,3427,3331,3133,3228,3327,3033,3034,3032,3430,3129,3526,3426,3527,3233,3525,3332,3035,3031,3134,2935,3334,3333,3235,3234,3136,3135,3432,3236,3335,3233,3332,3433,3137,3431,3134,3037,3434,3038,3237,3232,3336,3530,3331,3036,3531,3138,3039,3133,3430,3529,2939,3035,3338,3239,3337,3238,3240,3339,3140,3437,3436,3139,3141,3237,3336,3438,3241,3435,3340,3138,3042,3041,3142,3535,3534,3043,3040,3236,3335,3439,3536,3137,3533,3434,3342,3243,3343,3244,3242,3341,3144,3441,3145,3440,3143,3245,3442,3344,3241,3340,3146,3046,3045,3439,3142,3047,3539,3538,3443,3044,3246,3540,3345,3048,3147,2948,3346,3247,3347,3248,3445,3148,3246,3345,3149,3249,3348,3446,3444,3147,3150,3050,3245,3051,3447,3344,3049,3543,3250,3349,3443,3146,3544,3542,3151,3052,3048,2952,3351,3252,3350,3251,3253,3352,3153,3449,3152,3450,3250,3349,3154,3448,3151,3254,3451,3054,3353,3055,3155,3547,3053,3548,3249,3056,3348,3447,3546,3150,2956,3549,3355,3256,3356,3257,3255,3354,3157,3454,3453,3158,3156,3258,3357,3254,3455,3353,3452,3059,3159,3058,3155,3552,3060,3551,3057,3456,3259,3553,3358,3253,3550,3352,3359,3260,3360,3261,3259,3358,3161,3458,3162,3262,3361,3457,3459,3160,3163,3063,3258,3357,3062,3456,3064,3556,3159,3263,3460,3362,3555,3557,3061,3164,3065,2965,3364,3265,3363,3264,3266,3365,3166,3462,3165,3263,3362,3463,3461,3167,3164,3067,3267,3366,3068,3464,3066,3560,3168,3262,3460,3361,3561,3559,3069,3163,3065,2969,3368,3269,3367,3268,3270,3369,3170,3466,3467,3169,3171,3267,3366,3271,3465,3370,3468,3071,3168,3072,3172,3564,3070,3565,3073,3464,3266,3563,3365,3272,3566,3371,3372,3273,3373,3274,3272,3371,3174,3471,3175,3470,3275,3374,3173,3472,3176,3271,3469,3076,3370,3075,3172,3569,3077,3568,3276,3074,3375,3473,3570,3177,2978,3567,3377,3278,3376,3277,3475,3179,3279,3378,3178,3276,3375,3474,3476,3180,3177,3080,3280,3079,3473,3379,3081,3573,3275,3374,3477,3181,3572,3574,3176,3078,3082,2982,3381,3282,3380,3281,3283,3382,3183,3479,3182,3480,3184,3280,3478,3379,3284,3383,3181,3084,3085,3481,3185,3083,3577,3578,3477,3086,3279,3576,3378,3082,3180,2986,3385,3286,3386,3287,3285,3384,3187,3483,3484,3188,3186,3288,3387,3482,3284,3485,3383,3189,3088,3089,3185,3581,3582,3087,3090,3289,3388,3481,3580,3190,3583,3486,3389,3390,3290,3291,3191,3192,3488,3289,3388,3292,3391,3487,3190,3489,3193,3093,3486,3092,3288,3293,3387,3586,3392,3094,3585,3189,3091,3194,3490,3587,2995,3095,3394,3295,3393,3294,3296,3395,3196,3492,3195,3491,3293,3197,3493,3392,3194,3297,3396,3097,3096,3098,3490,3198,3590,3494,3589,3292,3591,3391,3095,3099,3193,2999,3398,3299,3399,3300,3298,3397,3200,3496,3201,3497,3199,3301,3495,3400,3297,3396,3101,3202,3498,3102,3198,3100,3594,3595,3494,3103,3593,3302,3401,3296,3099,3003,3402,3303,3403,3304,3302,3204,3401,3205,3500,3501,3305,3404,3203,3206,3499,3502,3105,3106,3301,3400,3306,3598,3599,3104,3405,3202,3107,3207,3498,3597,3503,3600,3407,3308,3406,3307,3309,3408,3209,3505,3208,3504,3306,3405,3210,3506,3207,3110,3310,3503,3409,3109,3111,3603,3211,3602,3305,3404,3507,3108,3604,3206,3112,3012,3705,3607,3706,3802,3803,3704,3608,3509,3899,3804,3606,3510,3801,3707,3703,3609,3900,3898,3805,3411,3605,3511,3995,3901,3508,3412,3702,3610,3800,3708,3413,3507,3709,3611,3710,3612,3807,3708,3610,3808,3513,3514,3806,3711,3613,3512,3809,3904,3707,3515,3609,3905,3415,3416,3903,3805,3511,3414,3712,3614,3417,3906,3516,3810,3714,3713,3616,3615,3811,3812,3715,3712,3617,3614,3518,3517,3810,3813,3519,3516,3908,3909,3420,3419,3716,3618,3711,3613,3907,3421,3418,3809,3520,3515,3910,3814,3718,3620,3717,3619,3719,3816,3621,3815,3522,3521,3716,3817,3618,3523,3814,3720,3622,3913,3520,3912,3424,3423,3524,3425,3818,3914,3911,3617,3715,3422,3813,3519,3722,3624,3723,3721,3625,3820,3623,3819,3526,3821,3527,3525,3724,3626,3720,3622,3917,3818,3916,3428,3528,3524,3822,3429,3427,3918,3915,3627,3725,3430,3621,3426,3726,3727,3628,3629,3824,3725,3627,3825,3530,3823,3728,3531,3630,3529,3921,3532,3724,3826,3626,3432,3920,3822,3433,3922,3528,3431,3729,3631,3434,3533,3919,3430,3731,3730,3633,3632,3828,3829,3732,3634,3729,3535,3534,3631,3827,3536,3830,3533,3925,3437,3733,3436,3635,3926,3924,3728,3630,3826,3438,3537,3435,3532,3831,3927,3735,3637,3734,3636,3736,3833,3832,3638,3539,3538,3733,3635,3540,3834,3831,3737,3639,3929,3537,3930,3441,3440,3541,3928,3442,3634,3732,3835,3830,3439,3931,3536,3739,3641,3740,3738,3642,3837,3640,3836,3543,3838,3544,3542,3741,3643,3737,3639,3835,3933,3934,3545,3445,3541,3446,3444,3839,3932,3935,3644,3742,3447,3443,3638,3743,3744,3645,3646,3841,3742,3644,3840,3547,3842,3745,3548,3647,3546,3549,3938,3937,3741,3839,3643,3449,3843,3450,3746,3648,3448,3545,3939,3936,3451,3550,3351,3748,3747,3650,3649,3845,3749,3846,3651,3746,3552,3551,3844,3648,3553,3550,3847,3942,3941,3750,3652,3454,3453,3843,3745,3943,3647,3455,3554,3452,3549,3940,3848,3752,3654,3751,3653,3753,3849,3655,3850,3556,3555,3848,3750,3557,3652,3851,3754,3656,3946,3554,3458,3945,3947,3457,3558,3459,3847,3651,3749,3456,3852,3944,3460,3756,3658,3757,3659,3755,3854,3657,3853,3560,3561,3855,3758,3559,3660,3852,3754,3656,3950,3562,3462,3951,3949,3463,3558,3461,3856,3661,3759,3464,3851,3952,3460,3760,3761,3662,3663,3858,3759,3857,3661,3762,3564,3565,3859,3664,3563,3566,3856,3954,3955,3758,3660,3466,3467,3860,3763,3953,3665,3465,3562,3468,3567,3956,3855,3765,3764,3667,3666,3862,3766,3668,3863,3569,3861,3763,3568,3665,3570,3567,3958,3959,3767,3864,3669,3471,3860,3470,3762,3664,3472,3571,3957,3960,3469,3566,3372,3769,3671,3768,3770,3670,3866,3672,3867,3573,3865,3572,3574,3767,3669,3771,3673,3868,3963,3962,3571,3475,3575,3474,3476,3864,3964,3961,3668,3766,3473,3477,3674,3773,3675,3774,3676,3772,3870,3871,3674,3577,3578,3775,3677,3576,3869,3872,3771,3673,3967,3579,3966,3479,3480,3575,3968,3478,3678,3776,3868,3873,3481,3965,3580,3777,3778,3679,3680,3875,3874,3776,3678,3779,3581,3582,3681,3876,3580,3873,3583,3971,3483,3775,3484,3677,3970,3972,3780,3682,3877,3482,3579,3485,3584,3872,3969,3782,3781,3684,3683,3879,3783,3685,3878,3586,3880,3780,3585,3682,3587,3975,3584,3784,3877,3686,3488,3976,3881,3487,3974,3588,3489,3779,3681,3486,3583,3977,3490,3786,3688,3785,3787,3687,3883,3689,3884,3590,3882,3589,3591,3784,3686,3788,3690,3979,3885,3980,3492,3588,3592,3881,3491,3493,3978,3981,3685,3783,3490,3691,3494,3790,3692,3791,3693,3789,3887,3691,3888,3594,3595,3792,3886,3694,3593,3889,3788,3690,3983,3596,3984,3496,3497,3592,3495,3885,3982,3985,3695,3793,3498,3890,3597,3794,3795,3696,3697,3892,3891,3793,3796,3695,3698,3598,3599,3893,3890,3597,3600,3988,3987,3500,3501,3792,3694,3797,3699,3989,3499,3502,3894,3596,3601,3986,3889,3799,3701,3798,3700,3896,3800,3702,3895,3603,3602,3897,3797,3699,3604,3894,3992,3801,3601,3703,3991,3505,3504,3993,3898,3605,3506,3796,3698,3503,3990,3600,3893,4092,3996,-1,4093,4186,-1,-1,4091,3997,3900,-1,-1,-1,3995,3901,-1,4094,4185,-1,4090,3998,-1,3803,3902,3994,-1,-1,3899,3804,-1,-1,-1,4096,4097,4000,-1,-1,4095,4001,3999,-1,3904,-1,-1,4098,-1,3905,4002,3903,4094,-1,3998,-1,-1,3906,3807,-1,3808,3902,-1,-1,3806,-1,4003,4100,4101,4004,-1,-1,4005,4099,-1,4003,-1,4102,3908,-1,4006,3909,-1,3907,-1,4098,3910,-1,-1,4002,3811,-1,3812,-1,4007,-1,4103,3906,3810,4104,4105,-1,4009,4008,-1,-1,4103,4106,4010,4007,-1,3913,3912,-1,-1,-1,-1,3914,3911,4102,3816,-1,4011,3815,4006,4107,-1,-1,3817,-1,-1,4109,4108,-1,4013,4012,-1,-1,4110,4107,4014,3917,-1,-1,3916,4011,-1,3918,-1,-1,3915,4015,-1,4111,3820,4106,3819,-1,-1,3821,4010,-1,-1,4113,4112,4017,-1,-1,4016,4114,4018,-1,4111,-1,3921,-1,-1,3920,4015,3922,-1,4019,-1,4115,-1,3919,-1,3824,3923,3825,4110,-1,3823,-1,-1,4117,4116,4021,-1,-1,4118,4022,4020,-1,3925,-1,4115,-1,3926,-1,3924,-1,4023,-1,4019,4119,-1,3927,3828,3923,3829,-1,-1,-1,3827,-1,4114,4121,-1,4025,4120,4122,-1,4026,-1,4024,3929,-1,3930,-1,4119,-1,4027,3928,-1,4123,-1,4023,3931,-1,3833,3832,-1,3927,-1,-1,-1,4028,3834,4125,4126,4029,-1,-1,4124,4030,4028,-1,-1,3933,4031,3934,-1,-1,4127,4123,3932,-1,-1,3935,-1,-1,4027,3837,3836,4032,-1,-1,3838,3931,-1,4129,4130,-1,4034,4033,-1,4128,-1,4035,4032,3938,-1,3937,4131,-1,-1,-1,4127,3939,-1,3936,-1,4036,3841,4031,3840,-1,3842,-1,-1,-1,4132,4133,4134,-1,4038,4037,-1,4132,-1,4039,4135,3942,-1,3941,4036,-1,-1,-1,3943,-1,4131,4040,3940,-1,3845,3846,-1,-1,4136,3844,3944,-1,4035,4137,4138,4042,-1,-1,4041,4043,4136,-1,4139,-1,3946,-1,-1,3945,3947,4040,4044,-1,-1,-1,4135,3944,-1,3849,3850,4140,3948,-1,-1,3848,-1,4142,4141,4046,-1,-1,4047,4045,4143,-1,4140,3950,-1,-1,-1,3951,3949,4048,-1,4044,-1,-1,4144,3952,3854,3853,4139,3948,-1,-1,-1,-1,3855,4146,4145,-1,4050,4051,-1,-1,4147,4049,4144,3954,-1,3955,4052,-1,-1,-1,-1,3953,4148,4048,3956,3858,-1,-1,3857,-1,4143,3859,3952,4053,-1,4150,4149,-1,4054,4055,-1,4151,-1,4053,-1,4056,3958,3959,-1,4148,-1,-1,4152,3957,3960,-1,-1,4052,3862,-1,4057,3863,-1,3861,-1,-1,4147,4154,-1,4153,4059,4155,4058,-1,-1,4060,-1,3963,4057,-1,3962,-1,4152,4156,3964,-1,3961,-1,-1,4061,3866,-1,3867,4056,-1,-1,3865,-1,3965,4158,-1,4063,4159,4157,4062,-1,-1,4064,3967,-1,3966,4160,4061,-1,-1,-1,-1,3968,4156,4065,3965,3870,3871,-1,-1,-1,3969,-1,4060,-1,3869,4162,4163,4067,-1,-1,4161,4066,4068,-1,3971,-1,4164,-1,-1,3970,3972,4065,-1,4069,4160,-1,-1,3969,3875,3973,3874,-1,-1,-1,3876,-1,4165,4166,4167,4071,-1,-1,4072,4165,4070,-1,4168,-1,3975,-1,-1,3976,4073,3974,-1,4069,-1,-1,4164,3977,3879,-1,3973,3878,4169,-1,3880,-1,-1,4170,4171,-1,4075,4076,-1,-1,4169,4172,4074,3979,-1,3980,4077,-1,-1,-1,-1,3978,3981,4073,4168,3883,-1,4173,3884,-1,-1,3882,4078,3977,-1,4175,4174,-1,4079,4080,-1,4176,-1,4173,4078,4081,3983,-1,3984,-1,-1,-1,3982,-1,3985,4177,-1,3887,4077,3888,4082,4172,-1,-1,-1,-1,3886,4179,4178,4084,-1,-1,4083,4180,4085,-1,-1,4177,3988,-1,4082,3987,-1,3989,-1,4181,-1,3986,-1,4086,-1,3892,3891,-1,-1,4081,4176,3990,3893,4183,4182,-1,4088,4184,-1,4087,-1,4089,3992,-1,4181,3991,-1,-1,4086,3993,-1,4185,-1,4090,3990,-1,3896,3895,-1,3994,-1,-1,3897,-1,4085]}}}
diff --git a/docs/source/_static/css/foveation-viewer.css b/docs/source/_static/css/foveation-viewer.css
new file mode 100644
index 000000000000..8d12840598d8
--- /dev/null
+++ b/docs/source/_static/css/foveation-viewer.css
@@ -0,0 +1,206 @@
+/*
+ * Copyright (c) 2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md).
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+/* Interactive sampling-grid and pooling viewers on the Foveated Camera page. */
+
+.fovi-viewer {
+ --fovi-ink: #1f2a37;
+ --fovi-muted: #8a96a8;
+ --fovi-faint: #d7dee8;
+ --fovi-surface: #ffffff;
+ --fovi-panel: #f6f8fb;
+ --fovi-border: #dfe5ec;
+ --fovi-accent: #2458d3;
+ --fovi-camera: #167d72;
+ --fovi-highlight: #d47b00;
+ --fovi-body: #29364b;
+ margin: 1.25rem 0 1.75rem;
+ padding: 1rem;
+ border: 1px solid var(--fovi-border);
+ border-radius: 8px;
+ background: var(--fovi-panel);
+ color: var(--fovi-ink);
+}
+
+html[data-theme="dark"] .fovi-viewer {
+ --fovi-ink: #e3e8ef;
+ --fovi-muted: #7d8899;
+ --fovi-faint: #3a4556;
+ --fovi-surface: #11161d;
+ --fovi-panel: #1a2029;
+ --fovi-border: #343d4b;
+ --fovi-accent: #6d9cff;
+ --fovi-camera: #3cc2ad;
+ --fovi-highlight: #f0a33a;
+ --fovi-body: #5b6f8c;
+}
+
+.fovi-controls {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
+ gap: 0.6rem 1.2rem;
+ align-items: end;
+}
+
+.fovi-control {
+ display: grid;
+ grid-template-columns: 1fr auto;
+ gap: 0.15rem 0.5rem;
+ margin: 0;
+ font-size: 0.85rem;
+}
+
+.fovi-viewer [hidden] {
+ display: none;
+}
+
+.fovi-control-name {
+ grid-column: 1 / -1;
+}
+
+.fovi-control input[type="range"],
+.fovi-control select {
+ width: 100%;
+ min-width: 0;
+ accent-color: var(--fovi-accent);
+}
+
+.fovi-control select {
+ padding: 0.15rem 0.3rem;
+ border: 1px solid var(--fovi-border);
+ border-radius: 4px;
+ background: var(--fovi-surface);
+ color: var(--fovi-ink);
+}
+
+.fovi-control-value {
+ min-width: 3.5rem;
+ font-variant-numeric: tabular-nums;
+ text-align: right;
+}
+
+.fovi-reset {
+ justify-self: start;
+ padding: 0.25rem 0.9rem;
+ border: 1px solid var(--fovi-border);
+ border-radius: 4px;
+ background: var(--fovi-surface);
+ color: var(--fovi-ink);
+ font-size: 0.85rem;
+ cursor: pointer;
+}
+
+.fovi-summary {
+ margin: 0.9rem 0 0.6rem;
+ font-size: 0.9rem;
+}
+
+.fovi-panels {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
+ gap: 1rem;
+}
+
+.fovi-panels-stacked {
+ grid-template-columns: 1fr;
+}
+
+.fovi-panels-three {
+ grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
+}
+
+.fovi-panel {
+ margin: 0;
+ padding: 0.6rem;
+ border: 1px solid var(--fovi-border);
+ border-radius: 6px;
+ background: var(--fovi-surface);
+}
+
+.fovi-panel-control {
+ max-width: 22rem;
+ margin-bottom: 0.4rem;
+}
+
+.fovi-panel figcaption {
+ margin-bottom: 0.4rem;
+ font-weight: 600;
+ font-size: 0.9rem;
+}
+
+.fovi-views {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 0.4rem;
+}
+
+.fovi-canvas {
+ display: block;
+ width: 100%;
+ aspect-ratio: 1;
+ touch-action: none;
+}
+
+.fovi-sphere {
+ cursor: grab;
+}
+
+.fovi-panel-labels {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 0.4rem;
+ color: var(--fovi-muted);
+ font-size: 0.75rem;
+ text-align: center;
+}
+
+.fovi-panel-note {
+ margin: 0.4rem 0 0;
+ font-size: 0.8rem;
+}
+
+.fovi-legend {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 0.3rem 0.5rem;
+ margin: 0.7rem 0 0;
+ font-size: 0.8rem;
+}
+
+.fovi-key {
+ display: inline-block;
+ width: 0.7rem;
+ height: 0.7rem;
+ margin-left: 0.6rem;
+ border-radius: 50%;
+}
+
+.fovi-key:first-child {
+ margin-left: 0;
+}
+
+.fovi-key-accent {
+ background: var(--fovi-accent);
+}
+
+.fovi-key-muted {
+ background: var(--fovi-muted);
+}
+
+.fovi-key-camera {
+ background: var(--fovi-camera);
+}
+
+.fovi-key-highlight {
+ background: var(--fovi-highlight);
+}
+
+.fovi-legend-note {
+ margin-left: auto;
+ color: var(--fovi-muted);
+}
diff --git a/docs/source/_static/css/foveation-viewer.js b/docs/source/_static/css/foveation-viewer.js
new file mode 100644
index 000000000000..1e7bdda1d9b3
--- /dev/null
+++ b/docs/source/_static/css/foveation-viewer.js
@@ -0,0 +1,987 @@
+/*
+ * Copyright (c) 2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md).
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+// Interactive sampling-grid and pooling viewers for the Foveated Camera page.
+// The sampling follows fovi's SamplingCoords with spherical field geometry, as the camera configures it.
+(() => {
+ "use strict";
+
+ const DEG = Math.PI / 180;
+ const TAU = 2 * Math.PI;
+ // fovi's isotropic pooling neighbourhoods for the pooling viewer, beside this script; fetched only when used.
+ const SCRIPT_URL = typeof document !== "undefined" && document.currentScript ? document.currentScript.src : null;
+ const TABLES_URL = SCRIPT_URL ? new URL("foveation-pooling-isotropic.json", SCRIPT_URL).href : null;
+
+ // -- Sampling geometry -------------------------------------------------------------------------------------------
+
+ // Warped Cartesian grid: an N x N lattice in the native plane, mapped radially by the integrated CMF.
+ // Returns samples in canonical order (x index major), each with normalized visual coordinates s = (x, y) / r_max.
+ const warpedGrid = (fov, a, res) => {
+ const half = fov / 2;
+ const growth = 1 + half / a;
+ const samples = [];
+ for (let i = 0; i < res; i++) {
+ for (let j = 0; j < res; j++) {
+ const cx = -1 + (2 * i + 1) / res;
+ const cy = -1 + (2 * j + 1) / res;
+ const rho = Math.hypot(cx, cy);
+ const r = a * (Math.pow(growth, rho) - 1);
+ const theta = Math.atan2(cy, cx);
+ samples.push({i, j, native: [cx, cy], s: [(r / half) * Math.cos(theta), (r / half) * Math.sin(theta)], valid: rho <= 1 + 1e-12});
+ }
+ }
+ return samples;
+ };
+
+ // Isotropic rings: radii even in cortical distance w = log(r + a), angles per ring matched to the radial step.
+ const isotropicRings = (fov, a, res) => {
+ if (res === 1) {
+ return {radius: [0], count: [1]};
+ }
+ const half = fov / 2;
+ const wMin = Math.log(a);
+ const wDelta = (Math.log(half + a) - wMin) / (res - 1);
+ const radius = Array.from({length: res + 1}, (_, k) => Math.exp(wMin + k * wDelta) - a);
+ const count = [1];
+ for (let k = 1; k < res; k++) {
+ const step = (radius[k + 1] - radius[k - 1]) / 2;
+ const tangential = Math.sin(radius[k] * DEG) / DEG; // spherical field geometry
+ count.push(Math.ceil((TAU * tangential) / step));
+ }
+ return {radius: radius.slice(0, res).map((r) => r / half), count};
+ };
+
+ const isotropicCount = (fov, a, res) => isotropicRings(fov, a, res).count.reduce((sum, n) => sum + n, 0);
+
+ // The camera matches an isotropic retina to foveated_res^2 samples (fovi's auto_match_num_coords).
+ const matchedIsotropicRes = (fov, a, target) => {
+ let left = 1;
+ let right = 1000;
+ let best = 1;
+ let bestDiff = Infinity;
+ while (left <= right) {
+ const mid = (left + right) >> 1;
+ const n = isotropicCount(fov, a, mid);
+ const diff = Math.abs(n - target);
+ if (diff < bestDiff) {
+ bestDiff = diff;
+ best = mid;
+ }
+ if (n < target) {
+ left = mid + 1;
+ } else {
+ right = mid - 1;
+ }
+ }
+ while (best > 1 && isotropicCount(fov, a, best) > target) {
+ best -= 1;
+ }
+ return best;
+ };
+
+ const isotropicSamples = (fov, a, rings) => {
+ const {radius, count} = isotropicRings(fov, a, rings);
+ const samples = [];
+ radius.forEach((r, ring) => {
+ for (let k = 0; k < count[ring]; k++) {
+ const angle = (k * TAU) / count[ring];
+ samples.push({ring, s: [r * Math.cos(angle), r * Math.sin(angle)], valid: true});
+ }
+ });
+ return samples;
+ };
+
+ // Unit ray of a normalized visual coordinate, in the image frame: x right, y down, z forward.
+ const ray = (s, fov) => {
+ const e = Math.hypot(s[0], s[1]) * (fov / 2) * DEG;
+ const theta = Math.atan2(s[1], s[0]);
+ return [Math.sin(e) * Math.cos(theta), -Math.sin(e) * Math.sin(theta), Math.cos(e)];
+ };
+
+ // Pan-then-tilt gaze rotation (row-major), as isaaclab_fovi's gaze kernels: positive tilt looks up, pan left.
+ const gazeRotation = (tilt, pan) => {
+ const x = -Math.cos(tilt * DEG) * Math.sin(pan * DEG);
+ const y = -Math.sin(tilt * DEG);
+ const z = Math.cos(tilt * DEG) * Math.cos(pan * DEG);
+ const pitch = Math.atan2(x, z);
+ const roll = Math.atan2(-y, Math.hypot(x, z));
+ const [cp, sp, cr, sr] = [Math.cos(pitch), Math.sin(pitch), Math.cos(roll), Math.sin(roll)];
+ return [[cp, sp * sr, sp * cr], [0, cr, -sr], [-sp, cp * sr, cp * cr]];
+ };
+
+ const rotate = (m, v) => m.map((row) => row[0] * v[0] + row[1] * v[1] + row[2] * v[2]);
+
+ // An ideal square camera whose field of view spans its side; the retina spans the same angle.
+ const SIDE = 1000;
+ const cameraModels = {
+ fisheye: {
+ label: "Equidistant fisheye",
+ fov: {min: 40, max: 240, initial: 180},
+ focal: (fov) => SIDE / 2 / ((fov / 2) * DEG),
+ project(d, f) {
+ const lateral = Math.hypot(d[0], d[1]);
+ const theta = Math.atan2(lateral, d[2]);
+ if (lateral < 1e-12) {
+ return [SIDE / 2, SIDE / 2];
+ }
+ return [SIDE / 2 + (f * theta * d[0]) / lateral, SIDE / 2 + (f * theta * d[1]) / lateral];
+ },
+ unproject(p, f) {
+ const dx = p[0] - SIDE / 2;
+ const dy = p[1] - SIDE / 2;
+ const theta = Math.hypot(dx, dy) / f;
+ const lateral = Math.hypot(dx, dy) || 1;
+ return [(Math.sin(theta) * dx) / lateral, (Math.sin(theta) * dy) / lateral, Math.cos(theta)];
+ },
+ },
+ pinhole: {
+ label: "Pinhole",
+ fov: {min: 20, max: 170, initial: 80},
+ focal: (fov) => SIDE / 2 / Math.tan((fov / 2) * DEG),
+ project(d, f) {
+ if (d[2] <= 1e-9) {
+ return null;
+ }
+ return [SIDE / 2 + (f * d[0]) / d[2], SIDE / 2 + (f * d[1]) / d[2]];
+ },
+ unproject(p, f) {
+ return normalize([(p[0] - SIDE / 2) / f, (p[1] - SIDE / 2) / f, 1]);
+ },
+ },
+ };
+
+ const normalize = (v) => {
+ const n = Math.hypot(v[0], v[1], v[2]);
+ return [v[0] / n, v[1] / n, v[2] / n];
+ };
+
+ const inImage = (p) => p !== null && p[0] >= 0 && p[0] < SIDE && p[1] >= 0 && p[1] < SIDE;
+
+ const imageBorder = (model, f) => {
+ const points = [];
+ const corners = [[0, 0], [SIDE, 0], [SIDE, SIDE], [0, SIDE], [0, 0]];
+ for (let k = 0; k < 4; k++) {
+ for (let t = 0; t < 40; t++) {
+ const [a, b] = [corners[k], corners[k + 1]];
+ points.push(model.unproject([a[0] + ((b[0] - a[0]) * t) / 40, a[1] + ((b[1] - a[1]) * t) / 40], f));
+ }
+ }
+ points.push(points[0]);
+ return points;
+ };
+
+ // Spacing of neighbouring samples [deg] at the fixation and at the edge of the field.
+ const spacing = (style, fov, a, res) => {
+ const half = fov / 2;
+ if (style === "isotropic") {
+ const step = (Math.log(half + a) - Math.log(a)) / Math.max(res - 1, 1);
+ return [a * (Math.exp(step) - 1), (half + a) * (1 - Math.exp(-step))];
+ }
+ const rate = Math.log(1 + half / a) * (2 / res);
+ return [a * rate, (half + a) * rate];
+ };
+
+ // -- Drawing helpers ---------------------------------------------------------------------------------------------
+
+ const palette = (element) => {
+ const style = getComputedStyle(element);
+ const get = (name, fallback) => style.getPropertyValue(name).trim() || fallback;
+ return {
+ ink: get("--fovi-ink", "#1f2a37"),
+ muted: get("--fovi-muted", "#8a96a8"),
+ faint: get("--fovi-faint", "#d7dee8"),
+ surface: get("--fovi-surface", "#ffffff"),
+ accent: get("--fovi-accent", "#2458d3"),
+ camera: get("--fovi-camera", "#167d72"),
+ highlight: get("--fovi-highlight", "#d47b00"),
+ body: get("--fovi-body", "#29364b"),
+ };
+ };
+
+ const fitCanvas = (canvas) => {
+ const box = canvas.getBoundingClientRect();
+ const ratio = Math.min(window.devicePixelRatio || 1, 2);
+ canvas.width = Math.max(1, Math.round(box.width * ratio));
+ canvas.height = Math.max(1, Math.round(box.height * ratio));
+ const ctx = canvas.getContext("2d");
+ ctx.setTransform(ratio, 0, 0, ratio, 0, 0);
+ return {ctx, w: box.width, h: box.height};
+ };
+
+ const polyline = (ctx, points, color, width, dash = []) => {
+ if (points.length < 2) {
+ return;
+ }
+ ctx.beginPath();
+ ctx.setLineDash(dash);
+ ctx.strokeStyle = color;
+ ctx.lineWidth = width;
+ points.forEach((p, k) => (k === 0 ? ctx.moveTo(p[0], p[1]) : ctx.lineTo(p[0], p[1])));
+ ctx.stroke();
+ ctx.setLineDash([]);
+ };
+
+ const dots = (ctx, points, color, radius, alpha = 1) => {
+ ctx.globalAlpha = alpha;
+ ctx.fillStyle = color;
+ ctx.beginPath();
+ for (const p of points) {
+ ctx.moveTo(p[0] + radius, p[1]);
+ ctx.arc(p[0], p[1], radius, 0, TAU);
+ }
+ ctx.fill();
+ ctx.globalAlpha = 1;
+ };
+
+ // Orbiting orthographic view of the viewing sphere; the camera sits at its centre looking along +z.
+ const sphereProjector = (view, w, h) => {
+ const scale = Math.min(w, h) * 0.4;
+ const [cy, sy, cp, sp] = [Math.cos(view.yaw), Math.sin(view.yaw), Math.cos(view.pitch), Math.sin(view.pitch)];
+ return ([x, y, z]) => {
+ const rx = cy * x - sy * z;
+ const rz = sy * x + cy * z;
+ const ry = cp * y - sp * rz;
+ const depth = sp * y + cp * rz;
+ return [w / 2 + rx * scale, h / 2 + ry * scale, depth];
+ };
+ };
+
+ const bindOrbit = (canvas, view, redraw, initial) => {
+ let last = null;
+ canvas.addEventListener("pointerdown", (event) => {
+ last = [event.clientX, event.clientY];
+ canvas.setPointerCapture(event.pointerId);
+ });
+ canvas.addEventListener("pointermove", (event) => {
+ if (!last) {
+ return;
+ }
+ view.yaw += (event.clientX - last[0]) * 0.01;
+ view.pitch = Math.max(-1.5, Math.min(1.5, view.pitch - (event.clientY - last[1]) * 0.01));
+ last = [event.clientX, event.clientY];
+ redraw();
+ });
+ for (const name of ["pointerup", "pointercancel"]) {
+ canvas.addEventListener(name, () => (last = null));
+ }
+ canvas.addEventListener("dblclick", () => {
+ Object.assign(view, initial);
+ redraw();
+ });
+ };
+
+ const drawSphere = (canvas, view, scene, colors) => {
+ const {ctx, w, h} = fitCanvas(canvas);
+ const project = sphereProjector(view, w, h);
+ // The viewer looks from behind the camera, so smaller depths are nearer; nothing is opaque but the camera.
+ const segment = (points, color, width) => polyline(ctx, points.map(project), color, width);
+ const circle = (polar) => Array.from({length: 121}, (_, k) => {
+ const az = (k * TAU) / 120;
+ return [Math.sin(polar) * Math.cos(az), Math.sin(polar) * Math.sin(az), Math.cos(polar)];
+ });
+ for (const polar of [30, 60, 90, 120, 150]) {
+ segment(circle(polar * DEG), colors.faint, polar === 90 ? 1.2 : 0.7);
+ }
+ for (let k = 0; k < 12; k++) {
+ const az = (k * TAU) / 12;
+ segment(Array.from({length: 61}, (_, t) => {
+ const polar = (t * Math.PI) / 60;
+ return [Math.sin(polar) * Math.cos(az), Math.sin(polar) * Math.sin(az), Math.cos(polar)];
+ }), colors.faint, 0.7);
+ }
+ segment(scene.border, colors.camera, 2);
+ const radius = scene.dotRadius;
+ dots(ctx, scene.rays.filter((r) => !r.valid).map((r) => project(r.dir)), colors.muted, radius, 0.5);
+ dots(ctx, scene.rays.filter((r) => r.valid).map((r) => project(r.dir)), colors.accent, radius, 0.7);
+ for (const line of scene.lines) {
+ segment(line, colors.accent, 0.8);
+ }
+ segment(scene.retinaEdge, colors.accent, 1.6);
+ const gaze = project(scene.gaze);
+ dots(ctx, [gaze], colors.surface, 4.5);
+ ctx.beginPath();
+ ctx.arc(gaze[0], gaze[1], 4.5, 0, TAU);
+ ctx.strokeStyle = colors.accent;
+ ctx.lineWidth = 2;
+ ctx.stroke();
+ // Camera housing at the centre.
+ const body = [[-0.09, -0.06, -0.22], [0.09, -0.06, -0.22], [0.09, 0.06, -0.22], [-0.09, 0.06, -0.22],
+ [-0.09, -0.06, -0.06], [0.09, -0.06, -0.06], [0.09, 0.06, -0.06], [-0.09, 0.06, -0.06]];
+ const faces = [[0, 1, 2, 3], [4, 5, 6, 7], [0, 1, 5, 4], [1, 2, 6, 5], [2, 3, 7, 6], [3, 0, 4, 7]]
+ .map((face) => face.map((k) => project(body[k])))
+ .sort((a, b) => b.reduce((s, p) => s + p[2], 0) - a.reduce((s, p) => s + p[2], 0));
+ for (const face of faces) {
+ ctx.beginPath();
+ face.forEach((p, k) => (k === 0 ? ctx.moveTo(p[0], p[1]) : ctx.lineTo(p[0], p[1])));
+ ctx.closePath();
+ ctx.fillStyle = colors.body;
+ ctx.fill();
+ ctx.strokeStyle = colors.faint;
+ ctx.lineWidth = 0.6;
+ ctx.stroke();
+ }
+ };
+
+ // -- Sampling viewer ---------------------------------------------------------------------------------------------
+
+ const control = (label, input, output) => {
+ const wrapper = document.createElement("label");
+ wrapper.className = "fovi-control";
+ const name = document.createElement("span");
+ name.className = "fovi-control-name";
+ name.innerHTML = label;
+ wrapper.append(name, input);
+ if (output) {
+ wrapper.append(output);
+ }
+ return wrapper;
+ };
+
+ const slider = (min, max, step, value) => {
+ const input = document.createElement("input");
+ Object.assign(input, {type: "range", min, max, step, value});
+ return input;
+ };
+
+ const select = (options, value) => {
+ const input = document.createElement("select");
+ for (const [key, text] of options) {
+ input.append(new Option(text, key));
+ }
+ input.value = value;
+ return input;
+ };
+
+ const readout = () => {
+ const output = document.createElement("output");
+ output.className = "fovi-control-value";
+ return output;
+ };
+
+ const formatA = (a) => (a >= 100 ? a.toFixed(0) : a >= 10 ? a.toFixed(1) : a >= 1 ? a.toFixed(2) : a.toFixed(3));
+
+ const initSamplingViewer = (root) => {
+ const defaults = {style: "warped_cartesian_as_grid", logA: Math.log10(0.591), res: 32, tilt: 0, pan: 0};
+ const state = {...defaults};
+ const inputs = {
+ style: select([["warped_cartesian_as_grid", "warped_cartesian_as_grid"], ["isotropic", "isotropic"]], state.style),
+ logA: slider(-2, 3, 0.01, state.logA),
+ res: slider(8, 128, 1, state.res),
+ tilt: slider(-60, 60, 1, state.tilt),
+ pan: slider(-60, 60, 1, state.pan),
+ };
+ const outputs = {logA: readout(), res: readout(), tilt: readout(), pan: readout()};
+ const controls = document.createElement("div");
+ controls.className = "fovi-controls";
+ controls.append(
+ control("foveated_style", inputs.style),
+ control("cmf_a_deg", inputs.logA, outputs.logA),
+ control("foveated_res", inputs.res, outputs.res),
+ control("Gaze tilt", inputs.tilt, outputs.tilt),
+ control("Gaze pan", inputs.pan, outputs.pan),
+ );
+ const reset = document.createElement("button");
+ reset.type = "button";
+ reset.className = "fovi-reset";
+ reset.textContent = "Reset";
+ controls.append(reset);
+ const summary = document.createElement("p");
+ summary.className = "fovi-summary";
+ summary.setAttribute("aria-live", "polite");
+ const panels = document.createElement("div");
+ panels.className = "fovi-panels fovi-panels-stacked";
+ const initialView = {yaw: -0.6, pitch: 0.35};
+ const cameras = Object.entries(cameraModels).map(([key, model]) => {
+ const panel = document.createElement("figure");
+ panel.className = "fovi-panel";
+ const title = document.createElement("figcaption");
+ title.textContent = model.label;
+ const sphere = document.createElement("canvas");
+ sphere.className = "fovi-canvas fovi-sphere";
+ sphere.setAttribute("aria-label", `${model.label}: the retina's rays on the viewing sphere. Drag to rotate; double-click to reset.`);
+ const image = document.createElement("canvas");
+ image.className = "fovi-canvas fovi-image";
+ image.setAttribute("aria-label", `${model.label}: where the retina's samples land in the camera image.`);
+ const labels = document.createElement("div");
+ labels.className = "fovi-panel-labels";
+ labels.innerHTML = "Viewing sphere (drag to rotate)Camera image";
+ const views = document.createElement("div");
+ views.className = "fovi-views";
+ views.append(sphere, image);
+ const note = document.createElement("p");
+ note.className = "fovi-panel-note";
+ // Each camera has its own field of view; the retina spans it.
+ const fovInput = slider(model.fov.min, model.fov.max, 1, model.fov.initial);
+ const fovOutput = readout();
+ const fovControl = control("Field of view", fovInput, fovOutput);
+ fovControl.classList.add("fovi-panel-control");
+ panel.append(title, fovControl, views, labels, note);
+ panels.append(panel);
+ const view = {...initialView};
+ const camera = {key, model, sphere, image, note, view, fov: model.fov.initial, fovInput, fovOutput};
+ fovInput.addEventListener("input", () => {
+ camera.fov = Number(fovInput.value);
+ sync();
+ });
+ return camera;
+ });
+ const legend = document.createElement("p");
+ legend.className = "fovi-legend";
+ legend.innerHTML = 'retinal sample'
+ + 'outside the camera image (masked with mask_to_sensor_fov)'
+ + 'camera image border';
+ root.append(controls, summary, panels, legend);
+
+ const samplesCache = new Map();
+ const samplesFor = (fov) => {
+ const a = Math.pow(10, state.logA);
+ const key = `${state.style}/${a}/${state.res}/${fov}`;
+ if (samplesCache.has(key)) {
+ return samplesCache.get(key);
+ }
+ let samples;
+ let description;
+ let resolution = state.res;
+ if (state.style === "isotropic") {
+ resolution = matchedIsotropicRes(fov, a, state.res * state.res);
+ samples = isotropicSamples(fov, a, resolution);
+ description = `${samples.length.toLocaleString("en-US")} samples on ${resolution} rings, published as (num_envs, ${samples.length}, 1, C)`;
+ } else {
+ samples = warpedGrid(fov, a, state.res);
+ const valid = samples.filter((s) => s.valid).length;
+ description = `${state.res} × ${state.res} grid, ${valid.toLocaleString("en-US")} samples inside the circular field, published as (num_envs, ${state.res}, ${state.res}, C)`;
+ }
+ const [centre, edge] = spacing(state.style, fov, a, resolution);
+ const entry = {samples: samples.filter((s) => s.valid), all: samples, description, centre, edge};
+ samplesCache.set(key, entry);
+ if (samplesCache.size > 4) {
+ samplesCache.delete(samplesCache.keys().next().value); // keep the recent settings of both cameras
+ }
+ return entry;
+ };
+
+ // The retina's rays, outline and warped-grid lattice lines (every few rows and columns) for a field of view.
+ const retinaFor = (fov, rotation) => {
+ const data = samplesFor(fov);
+ const rays = data.samples.map((s) => rotate(rotation, ray(s.s, fov)));
+ const edge = Array.from({length: 181}, (_, k) => rotate(rotation, ray([Math.cos((k * TAU) / 180), Math.sin((k * TAU) / 180)], fov)));
+ const lines = [];
+ if (state.style !== "isotropic") {
+ const every = Math.max(1, Math.round(state.res / 16));
+ const index = new Map(data.all.map((s) => [s.i * state.res + s.j, s]));
+ for (let fixed = Math.floor(every / 2); fixed < state.res; fixed += every) {
+ for (const transpose of [false, true]) {
+ let run = [];
+ for (let moving = 0; moving < state.res; moving++) {
+ const s = index.get(transpose ? moving * state.res + fixed : fixed * state.res + moving);
+ if (s && s.valid) {
+ run.push(rotate(rotation, ray(s.s, fov)));
+ } else if (run.length) {
+ lines.push(run);
+ run = [];
+ }
+ }
+ if (run.length) {
+ lines.push(run);
+ }
+ }
+ }
+ }
+ return {data, rays, edge, lines};
+ };
+
+ const redraw = () => {
+ const colors = palette(root);
+ const rotation = gazeRotation(state.tilt, state.pan);
+ const gaze = rotate(rotation, [0, 0, 1]);
+ summary.textContent = "Each camera's retina spans that camera's field of view; move its slider to compare fields.";
+ for (const camera of cameras) {
+ const {data, rays, edge, lines} = retinaFor(camera.fov, rotation);
+ const count = rays.length;
+ const dotRadius = Math.max(0.6, Math.min(2.4, 70 / Math.sqrt(count)));
+ const f = camera.model.focal(camera.fov);
+ const projected = rays.map((d) => camera.model.project(d, f));
+ const valid = projected.map(inImage);
+ const inside = valid.filter(Boolean).length;
+ drawSphere(camera.sphere, camera.view, {
+ rays: rays.map((dir, k) => ({dir, valid: valid[k]})),
+ border: imageBorder(camera.model, f),
+ lines,
+ retinaEdge: edge,
+ gaze,
+ dotRadius,
+ }, colors);
+ drawImagePlane(camera.image, projected, valid, edge.map((d) => camera.model.project(d, f)), camera.model.project(gaze, f), dotRadius, colors);
+ camera.note.innerHTML = `${data.description}. Sample spacing: ${data.centre.toPrecision(2)}° at the fixation, `
+ + `${data.edge.toPrecision(2)}° at the edge of the ${camera.fov}° field. `
+ + `${inside.toLocaleString("en-US")} of ${count.toLocaleString("en-US")} samples inside the image (${((100 * inside) / count).toFixed(0)}%).`;
+ }
+ };
+
+ const drawImagePlane = (canvas, projected, valid, edge, gaze, radius, colors) => {
+ const {ctx, w, h} = fitCanvas(canvas);
+ const margin = 0.18;
+ const scale = Math.min(w, h) / (SIDE * (1 + 2 * margin));
+ const ox = (w - SIDE * scale) / 2;
+ const oy = (h - SIDE * scale) / 2;
+ const map = (p) => [ox + p[0] * scale, oy + p[1] * scale];
+ ctx.fillStyle = colors.surface;
+ ctx.fillRect(ox, oy, SIDE * scale, SIDE * scale);
+ ctx.strokeStyle = colors.camera;
+ ctx.lineWidth = 2;
+ ctx.strokeRect(ox, oy, SIDE * scale, SIDE * scale);
+ polyline(ctx, [map([SIDE / 2, 0]), map([SIDE / 2, SIDE])], colors.faint, 0.7);
+ polyline(ctx, [map([0, SIDE / 2]), map([SIDE, SIDE / 2])], colors.faint, 0.7);
+ const visible = (p) => p !== null && p[0] > -SIDE && p[0] < 2 * SIDE && p[1] > -SIDE && p[1] < 2 * SIDE;
+ ctx.save();
+ ctx.beginPath();
+ ctx.rect(0, 0, w, h);
+ ctx.clip();
+ dots(ctx, projected.filter((p, k) => !valid[k] && visible(p)).map(map), colors.muted, radius, 0.5);
+ dots(ctx, projected.filter((p, k) => valid[k]).map(map), colors.accent, radius, 0.75);
+ const edgeRuns = [];
+ let run = [];
+ for (const p of edge) {
+ if (visible(p)) {
+ run.push(map(p));
+ } else if (run.length) {
+ edgeRuns.push(run);
+ run = [];
+ }
+ }
+ edgeRuns.push(run);
+ for (const r of edgeRuns) {
+ polyline(ctx, r, colors.accent, 1.4);
+ }
+ if (gaze && visible(gaze)) {
+ const g = map(gaze);
+ ctx.beginPath();
+ ctx.arc(g[0], g[1], 4.5, 0, TAU);
+ ctx.fillStyle = colors.surface;
+ ctx.fill();
+ ctx.strokeStyle = colors.accent;
+ ctx.lineWidth = 2;
+ ctx.stroke();
+ }
+ ctx.restore();
+ };
+
+ const sync = () => {
+ const a = Math.pow(10, state.logA);
+ outputs.logA.textContent = `${formatA(a)}°`;
+ outputs.res.textContent = state.res;
+ for (const camera of cameras) {
+ camera.fovOutput.textContent = `${camera.fov}°`;
+ }
+ outputs.tilt.textContent = `${state.tilt}°`;
+ outputs.pan.textContent = `${state.pan}°`;
+ redraw();
+ };
+ for (const [name, input] of Object.entries(inputs)) {
+ input.addEventListener("input", () => {
+ state[name] = name === "style" ? input.value : Number(input.value);
+ sync();
+ });
+ }
+ reset.addEventListener("click", () => {
+ Object.assign(state, defaults);
+ for (const [name, input] of Object.entries(inputs)) {
+ input.value = state[name];
+ }
+ for (const camera of cameras) {
+ Object.assign(camera.view, initialView);
+ camera.fov = camera.model.fov.initial;
+ camera.fovInput.value = camera.fov;
+ }
+ sync();
+ });
+ for (const camera of cameras) {
+ bindOrbit(camera.sphere, camera.view, redraw, initialView);
+ }
+ new ResizeObserver(() => redraw()).observe(panels);
+ sync();
+ };
+
+ // -- Pooling viewer ----------------------------------------------------------------------------------------------
+
+ // Upright layout of a canonical warped grid (fovi's sampling_as_grid): row = res - 1 - j, column = i.
+ // Pooling windows follow fovi's GridPoolingLayer: stride = resolution multiple, SAME-style padding.
+ const poolingWindow = (lowRes, mult, side, row, col) => {
+ const stride = mult;
+ const before = Math.floor((side - stride) / 2);
+ const cells = [];
+ for (let dr = 0; dr < side; dr++) {
+ for (let dc = 0; dc < side; dc++) {
+ const r = row * stride - before + dr;
+ const c = col * stride - before + dc;
+ if (r >= 0 && r < lowRes * mult && c >= 0 && c < lowRes * mult) {
+ cells.push([r, c]);
+ }
+ }
+ }
+ return cells;
+ };
+
+ const initPoolingViewer = (root) => {
+ const FOV = Number(root.dataset.fov || 90);
+ const A = Number(root.dataset.cmfA || 2);
+ const LOW = Number(root.dataset.res || 16);
+ const defaults = {style: "warped_cartesian_as_grid", mult: 2, side: 2, row: 8, col: 11, k: 4, space: "geodesic", unit: 120};
+ const state = {...defaults};
+ const inputs = {
+ style: select([["warped_cartesian_as_grid", "warped_cartesian_as_grid"], ["isotropic", "isotropic"]], state.style),
+ mult: select([["2", "2"], ["3", "3"], ["4", "4"]], String(state.mult)),
+ side: slider(1, 9, 1, state.side),
+ row: slider(0, LOW - 1, 1, state.row),
+ col: slider(0, LOW - 1, 1, state.col),
+ k: slider(1, 32, 1, state.k),
+ space: select([["geodesic", "geodesic (default)"], ["visual", "visual field (False)"]], state.space),
+ unit: slider(0, 1, 1, state.unit),
+ };
+ const outputs = {side: readout(), row: readout(), col: readout(), k: readout(), unit: readout()};
+ const controls = document.createElement("div");
+ controls.className = "fovi-controls";
+ const gridControls = [
+ control("Window side (pool_k = side²)", inputs.side, outputs.side),
+ control("Pooled sample row", inputs.row, outputs.row),
+ control("Pooled sample column", inputs.col, outputs.col),
+ ];
+ const isotropicControls = [
+ control("pool_k (neighbours)", inputs.k, outputs.k),
+ control("pool_sample_cortex", inputs.space),
+ control("Pooled sample", inputs.unit, outputs.unit),
+ ];
+ controls.append(control("foveated_style", inputs.style), control("pool_res_mult", inputs.mult), ...gridControls, ...isotropicControls);
+ const reset = document.createElement("button");
+ reset.type = "button";
+ reset.className = "fovi-reset";
+ reset.textContent = "Reset";
+ controls.append(reset);
+ const summary = document.createElement("p");
+ summary.className = "fovi-summary";
+ summary.setAttribute("aria-live", "polite");
+ const panels = document.createElement("div");
+ panels.className = "fovi-panels fovi-panels-three";
+ const makePanel = (title, label) => {
+ const panel = document.createElement("figure");
+ panel.className = "fovi-panel";
+ const caption = document.createElement("figcaption");
+ caption.textContent = title;
+ const canvas = document.createElement("canvas");
+ canvas.className = "fovi-canvas fovi-square";
+ canvas.setAttribute("aria-label", label);
+ panel.append(caption, canvas);
+ panels.append(panel);
+ return {panel, canvas};
+ };
+ const nativeView = makePanel("Published grid (click a sample)", "The pooled grid and its photoreceptor grid in the published image layout. Click a pooled sample to select it.");
+ const fieldView = makePanel("Visual field (click a sample)", "Photoreceptor and pooled samples by visual angle. Click a pooled sample to select it.");
+ const zoomView = makePanel("Around the selected sample", "The selected pooled sample's neighbourhood, enlarged.");
+ const legend = document.createElement("p");
+ legend.className = "fovi-legend";
+ legend.innerHTML = 'photoreceptor'
+ + 'pooled into the selected sample'
+ + 'pooled sample'
+ + `Fixed: ${FOV}° field, cmf_a_deg=${A}, foveated_res=${LOW}.`;
+ root.append(controls, summary, panels, legend);
+
+ // fovi's pooling neighbourhoods for the isotropic retina, exported with the camera's own helpers.
+ let isotropicTables = null;
+ if (TABLES_URL) {
+ fetch(TABLES_URL)
+ .then((response) => (response.ok ? response.json() : Promise.reject(new Error(response.statusText))))
+ .then((data) => {
+ if (data.fov !== FOV || data.cmfA !== A || data.res !== LOW) {
+ throw new Error("the exported tables describe another retina");
+ }
+ isotropicTables = data;
+ if (state.style === "isotropic") {
+ sync();
+ }
+ })
+ .catch((error) => {
+ isotropicTables = {error: String(error.message || error)};
+ if (state.style === "isotropic") {
+ sync();
+ }
+ });
+ }
+
+ // Grid retina: samples keyed by their upright (row, column) in the published image.
+ const gridLayout = (res) => {
+ const samples = warpedGrid(FOV, A, res).map((s) => ({...s, row: res - 1 - s.j, col: s.i}));
+ return {samples, at: new Map(samples.map((s) => [`${s.row},${s.col}`, s]))};
+ };
+ const layouts = new Map();
+ const layoutFor = () => {
+ const key = `${state.style}/${state.mult}`;
+ if (layouts.has(key)) {
+ return layouts.get(key);
+ }
+ let layout;
+ if (state.style === "isotropic") {
+ const rings = matchedIsotropicRes(FOV, A, LOW * LOW);
+ const highRings = Math.round(state.mult * rings);
+ layout = {
+ rings,
+ highRings,
+ low: isotropicSamples(FOV, A, rings),
+ high: isotropicSamples(FOV, A, highRings),
+ };
+ } else {
+ layout = {low: gridLayout(LOW), high: gridLayout(LOW * state.mult)};
+ }
+ layouts.set(key, layout);
+ return layout;
+ };
+
+ // The selected pooled sample, the photoreceptors it pools, and a description, for the current style.
+ const selection = (layout) => {
+ if (state.style !== "isotropic") {
+ const unit = layout.low.at.get(`${state.row},${state.col}`);
+ const cells = poolingWindow(LOW, state.mult, state.side, state.row, state.col);
+ const members = cells.map(([r, c]) => layout.high.at.get(`${r},${c}`)).filter((s) => s.valid);
+ const k = state.side * state.side;
+ const text = `pool_k=${k} (window side ${state.side}, stride ${state.mult}); the photoreceptor grid is `
+ + `${LOW * state.mult} × ${LOW * state.mult}`
+ + (k < state.mult * state.mult ? "; a window smaller than the stride skips photoreceptors." : ".");
+ return {unit, members, valid: unit.valid && members.length > 0, text, label: `(${state.row}, ${state.col})`};
+ }
+ const unit = layout.low[state.unit];
+ const table = isotropicTable(layout);
+ if (!table) {
+ return {unit, members: [], valid: false, pending: true, text: "", label: `${state.unit}`};
+ }
+ const members = table.slice(0, state.k).filter((index) => index >= 0).map((index) => layout.high[index]);
+ const text = `pool_k=${state.k} nearest photoreceptors ${state.space === "geodesic" ? "along the cortex" : "in the visual field"}; `
+ + `${layout.high.length.toLocaleString("en-US")} photoreceptors on ${layout.highRings} rings pool into ${layout.low.length} samples on ${layout.rings} rings`
+ + ` (default pool_k ${Math.round(layout.high.length / layout.low.length)}).`;
+ return {unit, members, valid: members.length > 0, text, label: `${state.unit}`};
+ };
+
+ // The selected sample's neighbours, nearest first, from fovi's table for the chosen space.
+ const isotropicTable = (layout) => {
+ const entry = isotropicTables && !isotropicTables.error && isotropicTables.mult[String(state.mult)];
+ if (!entry) {
+ return null;
+ }
+ if (entry.count !== layout.high.length || isotropicTables.count !== layout.low.length) {
+ isotropicTables = {error: "the exported tables do not match this retina"};
+ return null;
+ }
+ return entry[state.space].slice(state.unit * entry.kMax, (state.unit + 1) * entry.kMax);
+ };
+
+ const fieldTransform = (w, h, centre, radius) => {
+ const scale = (Math.min(w, h) / 2 - 8) / radius;
+ return (s) => [w / 2 + (s[0] - centre[0]) * scale, h / 2 - (s[1] - centre[1]) * scale];
+ };
+
+ const redraw = () => {
+ const colors = palette(root);
+ const layout = layoutFor();
+ const isotropic = state.style === "isotropic";
+ const lowSamples = isotropic ? layout.low : layout.low.samples;
+ const highSamples = isotropic ? layout.high : layout.high.samples;
+ const chosen = selection(layout);
+ const members = new Set(chosen.members);
+ const {unit} = chosen;
+ nativeView.panel.hidden = isotropic;
+ // Published-grid view: photoreceptor cells, pooled cell borders, and the window.
+ if (!isotropic) {
+ const highRes = LOW * state.mult;
+ const {ctx, w, h} = fitCanvas(nativeView.canvas);
+ const size = Math.min(w, h) - 8;
+ const ox = (w - size) / 2;
+ const oy = (h - size) / 2;
+ const cell = size / highRes;
+ const windowCells = new Set(poolingWindow(LOW, state.mult, state.side, state.row, state.col).map(([r, c]) => `${r},${c}`));
+ for (const s of highSamples) {
+ const member = windowCells.has(`${s.row},${s.col}`);
+ ctx.fillStyle = member ? colors.highlight : s.valid ? colors.faint : colors.surface;
+ ctx.globalAlpha = member && !s.valid ? 0.35 : 1;
+ ctx.fillRect(ox + s.col * cell + 0.5, oy + s.row * cell + 0.5, Math.max(cell - 1, 0.5), Math.max(cell - 1, 0.5));
+ }
+ ctx.globalAlpha = 1;
+ for (let k = 0; k <= LOW; k++) {
+ polyline(ctx, [[ox + (k * size) / LOW, oy], [ox + (k * size) / LOW, oy + size]], colors.muted, 0.6);
+ polyline(ctx, [[ox, oy + (k * size) / LOW], [ox + size, oy + (k * size) / LOW]], colors.muted, 0.6);
+ }
+ ctx.strokeStyle = colors.accent;
+ ctx.lineWidth = 2.4;
+ ctx.strokeRect(ox + (state.col * size) / LOW, oy + (state.row * size) / LOW, size / LOW, size / LOW);
+ nativeView.canvas.onclick = (event) => {
+ const box = nativeView.canvas.getBoundingClientRect();
+ const col = Math.floor(((event.clientX - box.left - ox) / size) * LOW);
+ const row = Math.floor(((event.clientY - box.top - oy) / size) * LOW);
+ if (row >= 0 && row < LOW && col >= 0 && col < LOW) {
+ choose({row, col});
+ }
+ };
+ }
+ const zoomRegion = () => {
+ const points = chosen.members.map((s) => s.s);
+ points.push(unit.s);
+ const xs = points.map((p) => p[0]);
+ const ys = points.map((p) => p[1]);
+ const centre = [(Math.min(...xs) + Math.max(...xs)) / 2, (Math.min(...ys) + Math.max(...ys)) / 2];
+ const extent = Math.max(Math.max(...xs) - Math.min(...xs), Math.max(...ys) - Math.min(...ys), 0.002);
+ return [centre, extent * 1.1];
+ };
+ // Visual-field views: the whole retina, and the selected sample's neighbourhood.
+ const drawField = (canvas, centre, radius, showZoomBox) => {
+ const {ctx, w, h} = fitCanvas(canvas);
+ const map = fieldTransform(w, h, centre, radius);
+ const scale = (Math.min(w, h) / 2 - 8) / radius;
+ const dotHigh = Math.max(0.7, Math.min(3, scale * 0.004 * Math.sqrt(1024 / highSamples.length) * 6));
+ const highPoints = highSamples.filter((s) => s.valid);
+ dots(ctx, highPoints.filter((s) => !members.has(s)).map((s) => map(s.s)), colors.muted, dotHigh, 0.55);
+ dots(ctx, highPoints.filter((s) => members.has(s)).map((s) => map(s.s)), colors.highlight, dotHigh * 1.4, 1);
+ dots(ctx, lowSamples.filter((s) => s.valid).map((s) => map(s.s)), colors.accent, dotHigh * 1.2, 0.9);
+ const u = map(unit.s);
+ ctx.beginPath();
+ ctx.arc(u[0], u[1], dotHigh * 1.2 + 4, 0, TAU);
+ ctx.strokeStyle = colors.accent;
+ ctx.lineWidth = 2;
+ ctx.stroke();
+ polyline(ctx, Array.from({length: 181}, (_, k) => map([Math.cos((k * TAU) / 180), Math.sin((k * TAU) / 180)])), colors.camera, 1.2);
+ if (showZoomBox) {
+ const [zc, zr] = zoomRegion();
+ const corner = map([zc[0] - zr, zc[1] + zr]);
+ ctx.strokeStyle = colors.ink;
+ ctx.setLineDash([3, 3]);
+ ctx.lineWidth = 1;
+ ctx.strokeRect(corner[0], corner[1], 2 * zr * scale, 2 * zr * scale);
+ ctx.setLineDash([]);
+ }
+ return map;
+ };
+ const map = drawField(fieldView.canvas, [0, 0], 1, true);
+ fieldView.canvas.onclick = (event) => {
+ const box = fieldView.canvas.getBoundingClientRect();
+ const x = event.clientX - box.left;
+ const y = event.clientY - box.top;
+ let best = null;
+ lowSamples.forEach((s, index) => {
+ if (!s.valid) {
+ return;
+ }
+ const p = map(s.s);
+ const d = Math.hypot(p[0] - x, p[1] - y);
+ if (!best || d < best.d) {
+ best = {d, s, index};
+ }
+ });
+ if (best) {
+ choose(isotropic ? {unit: best.index} : {row: best.s.row, col: best.s.col});
+ }
+ };
+ const [zc, zr] = zoomRegion();
+ drawField(zoomView.canvas, zc, zr, false);
+ const ecc = Math.hypot(unit.s[0], unit.s[1]) * (FOV / 2);
+ const span = chosen.members.length
+ ? Math.max(...chosen.members.map((s) => Math.hypot(s.s[0] - unit.s[0], s.s[1] - unit.s[1]))) * (FOV / 2) * 2
+ : 0;
+ if (chosen.pending) {
+ const reason = isotropicTables && isotropicTables.error ? `could not be loaded (${isotropicTables.error})` : "are loading";
+ summary.innerHTML = `fovi's pooling neighbourhoods ${reason}.`;
+ return;
+ }
+ summary.innerHTML = `Pooled sample ${chosen.label} at ${ecc.toFixed(2)}° eccentricity`
+ + (chosen.valid
+ ? ` averages ${chosen.members.length} photoreceptors spanning about ${span.toPrecision(2)}°. `
+ : " lies outside the retina, so the camera publishes zero there. ")
+ + chosen.text;
+ };
+
+ const choose = (selected) => {
+ Object.assign(state, selected);
+ for (const name of Object.keys(selected)) {
+ inputs[name].value = state[name];
+ }
+ sync();
+ };
+
+ const sync = () => {
+ const isotropic = state.style === "isotropic";
+ for (const element of gridControls) {
+ element.hidden = isotropic;
+ }
+ for (const element of isotropicControls) {
+ element.hidden = !isotropic;
+ }
+ if (isotropic) {
+ const layout = layoutFor();
+ inputs.unit.max = layout.low.length - 1;
+ state.unit = Math.min(state.unit, layout.low.length - 1);
+ inputs.unit.value = state.unit;
+ inputs.k.max = 2 * state.mult * state.mult;
+ state.k = Math.min(state.k, Number(inputs.k.max));
+ inputs.k.value = state.k;
+ }
+ outputs.side.textContent = `${state.side} (pool_k=${state.side * state.side})`;
+ outputs.row.textContent = state.row;
+ outputs.col.textContent = state.col;
+ outputs.k.textContent = state.k;
+ outputs.unit.textContent = state.unit;
+ redraw();
+ };
+ inputs.style.addEventListener("input", () => {
+ state.style = inputs.style.value;
+ sync();
+ });
+ inputs.space.addEventListener("input", () => {
+ state.space = inputs.space.value;
+ sync();
+ });
+ inputs.mult.addEventListener("input", () => {
+ // Keep the default neighbourhood when it was in use: pool_res_mult squared photoreceptors.
+ const defaultSide = state.side === state.mult;
+ const defaultK = state.k === state.mult * state.mult;
+ state.mult = Number(inputs.mult.value);
+ if (defaultSide) {
+ state.side = state.mult;
+ inputs.side.value = state.side;
+ }
+ if (defaultK) {
+ state.k = state.mult * state.mult;
+ }
+ sync();
+ });
+ for (const name of ["side", "row", "col", "k", "unit"]) {
+ inputs[name].addEventListener("input", () => {
+ state[name] = Number(inputs[name].value);
+ sync();
+ });
+ }
+ reset.addEventListener("click", () => {
+ Object.assign(state, defaults);
+ for (const [name, input] of Object.entries(inputs)) {
+ input.value = state[name];
+ }
+ sync();
+ });
+ new ResizeObserver(() => redraw()).observe(panels);
+ sync();
+ };
+
+ const initialize = () => {
+ document.querySelectorAll("[data-fovi-sampling-viewer]").forEach(initSamplingViewer);
+ document.querySelectorAll("[data-fovi-pooling-viewer]").forEach(initPoolingViewer);
+ };
+
+ // Exposed for the documentation's geometry checks.
+ window.FoviViewerGeometry = {warpedGrid, isotropicRings, matchedIsotropicRes, isotropicSamples, ray, gazeRotation, poolingWindow};
+
+ if (typeof document !== "undefined") {
+ if (document.readyState === "loading") {
+ document.addEventListener("DOMContentLoaded", initialize);
+ } else {
+ initialize();
+ }
+ }
+})();
diff --git a/docs/source/_static/demos/foveated_camera.jpg b/docs/source/_static/demos/foveated_camera.jpg
new file mode 100644
index 000000000000..de17d18a3a27
Binary files /dev/null and b/docs/source/_static/demos/foveated_camera.jpg differ
diff --git a/docs/source/_static/overview/sensors/foveated_camera_active_gaze.jpg b/docs/source/_static/overview/sensors/foveated_camera_active_gaze.jpg
new file mode 100644
index 000000000000..40d6786c3d16
Binary files /dev/null and b/docs/source/_static/overview/sensors/foveated_camera_active_gaze.jpg differ
diff --git a/docs/source/_static/overview/sensors/foveated_camera_gaze_mask.jpg b/docs/source/_static/overview/sensors/foveated_camera_gaze_mask.jpg
new file mode 100644
index 000000000000..c6f044485b99
Binary files /dev/null and b/docs/source/_static/overview/sensors/foveated_camera_gaze_mask.jpg differ
diff --git a/docs/source/_static/overview/sensors/foveated_camera_gaze_modes.jpg b/docs/source/_static/overview/sensors/foveated_camera_gaze_modes.jpg
new file mode 100644
index 000000000000..6daa6f826c42
Binary files /dev/null and b/docs/source/_static/overview/sensors/foveated_camera_gaze_modes.jpg differ
diff --git a/docs/source/_static/overview/sensors/foveated_camera_overview.jpg b/docs/source/_static/overview/sensors/foveated_camera_overview.jpg
new file mode 100644
index 000000000000..dc1c8b73e869
Binary files /dev/null and b/docs/source/_static/overview/sensors/foveated_camera_overview.jpg differ
diff --git a/docs/source/_static/overview/sensors/foveated_camera_pooling.jpg b/docs/source/_static/overview/sensors/foveated_camera_pooling.jpg
new file mode 100644
index 000000000000..d5c0ac8ef1bd
Binary files /dev/null and b/docs/source/_static/overview/sensors/foveated_camera_pooling.jpg differ
diff --git a/docs/source/_static/overview/sensors/foveated_camera_renderers.jpg b/docs/source/_static/overview/sensors/foveated_camera_renderers.jpg
new file mode 100644
index 000000000000..f4d013389965
Binary files /dev/null and b/docs/source/_static/overview/sensors/foveated_camera_renderers.jpg differ
diff --git a/docs/source/_static/overview/sensors/foveated_camera_strength.jpg b/docs/source/_static/overview/sensors/foveated_camera_strength.jpg
new file mode 100644
index 000000000000..860c36eca940
Binary files /dev/null and b/docs/source/_static/overview/sensors/foveated_camera_strength.jpg differ
diff --git a/docs/source/api/index.rst b/docs/source/api/index.rst
index be21cf33cb07..08d8ba066822 100644
--- a/docs/source/api/index.rst
+++ b/docs/source/api/index.rst
@@ -90,6 +90,20 @@ The following modules are available in the ``isaaclab_contrib`` extension:
rl
sensors
+isaaclab_fovi extension
+-----------------------
+
+The following modules are available in the ``isaaclab_fovi`` extension:
+
+.. currentmodule:: isaaclab_fovi
+
+.. autosummary::
+ :toctree: lab_fovi
+
+ assets
+ mdp
+ sensors
+
isaaclab_tasks extension
------------------------
diff --git a/docs/source/api/lab_fovi/isaaclab_fovi.assets.rst b/docs/source/api/lab_fovi/isaaclab_fovi.assets.rst
new file mode 100644
index 000000000000..f5dc8cda3b04
--- /dev/null
+++ b/docs/source/api/lab_fovi/isaaclab_fovi.assets.rst
@@ -0,0 +1,24 @@
+isaaclab_fovi.assets
+====================
+
+.. automodule:: isaaclab_fovi.assets
+
+ .. rubric:: Data
+
+ .. autosummary::
+
+ PAN_TILT_CFG
+ PAN_TILT_CAMERA_OFFSET
+ PAN_TILT_USD_PATH
+
+Pan-tilt mount
+--------------
+
+.. autodata:: PAN_TILT_CFG
+ :no-value:
+
+.. autodata:: PAN_TILT_CAMERA_OFFSET
+ :no-value:
+
+.. autodata:: PAN_TILT_USD_PATH
+ :no-value:
diff --git a/docs/source/api/lab_fovi/isaaclab_fovi.mdp.rst b/docs/source/api/lab_fovi/isaaclab_fovi.mdp.rst
new file mode 100644
index 000000000000..faf467a167fc
--- /dev/null
+++ b/docs/source/api/lab_fovi/isaaclab_fovi.mdp.rst
@@ -0,0 +1,45 @@
+isaaclab_fovi.mdp
+=================
+
+.. automodule:: isaaclab_fovi.mdp
+
+ .. rubric:: Classes
+
+ .. autosummary::
+
+ GazeAction
+ GazeActionCfg
+ GazeRigCfg
+ gaze_teacher_labels
+
+ .. rubric:: Functions
+
+ .. autosummary::
+
+ gaze_state
+
+Actions
+-------
+
+.. autoclass:: GazeAction
+ :members:
+ :show-inheritance:
+
+.. autoclass:: GazeActionCfg
+ :members:
+ :inherited-members:
+ :show-inheritance:
+ :exclude-members: __init__, class_type
+
+.. autoclass:: GazeRigCfg
+ :members:
+ :show-inheritance:
+ :exclude-members: __init__
+
+Observations
+------------
+
+.. autofunction:: gaze_state
+
+.. autoclass:: gaze_teacher_labels
+ :show-inheritance:
diff --git a/docs/source/api/lab_fovi/isaaclab_fovi.sensors.rst b/docs/source/api/lab_fovi/isaaclab_fovi.sensors.rst
new file mode 100644
index 000000000000..32c513aace16
--- /dev/null
+++ b/docs/source/api/lab_fovi/isaaclab_fovi.sensors.rst
@@ -0,0 +1,41 @@
+isaaclab_fovi.sensors
+=====================
+
+.. automodule:: isaaclab_fovi.sensors
+
+ .. rubric:: Classes
+
+ .. autosummary::
+
+ FoveatedCamera
+ FoveatedCameraCfg
+ FoveatedNewtonCamera
+ FoveatedRTXCamera
+
+
+Foveated Camera
+---------------
+
+.. autoclass:: FoveatedCamera
+ :members:
+ :show-inheritance:
+
+.. autoclass:: FoveatedCameraCfg
+ :members:
+ :inherited-members:
+ :show-inheritance:
+ :exclude-members: __init__, class_type
+
+Renderer Implementations
+------------------------
+
+Constructing :class:`FoveatedCamera` returns one of the following implementations, selected by the renderer in
+:attr:`FoveatedCameraCfg.renderer_cfg`.
+
+.. autoclass:: FoveatedNewtonCamera
+ :members:
+ :show-inheritance:
+
+.. autoclass:: FoveatedRTXCamera
+ :members:
+ :show-inheritance:
diff --git a/docs/source/concepts/sensors/camera.rst b/docs/source/concepts/sensors/camera.rst
index 393acd798965..ae4ac5ac1cbc 100644
--- a/docs/source/concepts/sensors/camera.rst
+++ b/docs/source/concepts/sensors/camera.rst
@@ -13,6 +13,8 @@ configuration can work across supported physics and rendering backends.
Isaac Lab batches camera views from cloned environments into tiled render passes.
Each requested output is returned as one GPU buffer with a separate image per view.
+For a retina-like image that is dense where a movable gaze points, see :doc:`foveated_camera`.
+
For silent black or corrupted RTX camera images when scaling the workload, see
:ref:`known-issues-rtx-buffer-limit`.
diff --git a/docs/source/concepts/sensors/foveated_camera.rst b/docs/source/concepts/sensors/foveated_camera.rst
new file mode 100644
index 000000000000..9cb7ca6bca04
--- /dev/null
+++ b/docs/source/concepts/sensors/foveated_camera.rst
@@ -0,0 +1,366 @@
+.. _concepts_sensors_foveated_camera:
+
+.. currentmodule:: isaaclab_fovi
+
+Foveated Camera
+===============
+
+A :class:`~sensors.FoveatedCamera` samples the scene densely where it looks and sparsely in the periphery, as a
+retina does, instead of on a uniform pixel grid. It is a :class:`~isaaclab.sensors.Camera` whose rays are laid out
+by the `fovi `__ library, and its gaze moves inside the field of view of the
+physical camera it looks through. The camera implements the foveated rendering of
+`FOVI-Dex `__.
+
+.. figure:: ../../_static/overview/sensors/foveated_camera_overview.jpg
+ :target: ../../_static/overview/sensors/foveated_camera_overview.jpg
+ :align: center
+ :figwidth: 100%
+ :alt: The retina's rays on a viewing sphere and the image the camera publishes, at two fixations.
+
+ The demo scene through a foveated camera, fixating two objects. Left of each pair: the viewing sphere seen from
+ behind the camera, textured with the physical camera's 90° pinhole image (green outline). The blue lattice is
+ every 16th row and column of the 128 × 128 retina, and the blue circle its edge; grey lines fall outside the
+ physical camera's image. Right: the image the camera publishes, dense at the fixation and sparse in the
+ periphery.
+
+The camera comes with the ``fovi`` extra:
+
+.. code-block:: bash
+
+ uv sync --extra fovi
+
+The demo moves the gaze from object to object while the viewer shows the retina:
+
+.. code-block:: bash
+
+ uv run --extra fovi isaaclab demo foveated-camera
+
+How the retina samples the scene
+--------------------------------
+
+The retina places its samples by visual angle, with a density that falls off from the fixation as the cortical
+magnification function (CMF) of human vision does. At eccentricity :math:`r` from the fixation, in degrees,
+
+.. math::
+
+ M(r) = \frac{1}{r + a}, \qquad w(r) = \int_0^r M(t)\,dt = \log\left(1 + \frac{r}{a}\right),
+
+where :math:`a` is :attr:`~sensors.FoveatedCameraCfg.cmf_a_deg`, :math:`M` is the cortical distance per degree of
+visual angle, and :math:`w` is the cortical distance from the fixation. Samples spaced evenly in :math:`w` are dense
+near the fixation and sparse far from it.
+
+The default ``foveated_style="warped_cartesian_as_grid"`` lays an :math:`N \times N` lattice over this cortical
+space, with :math:`N` = :attr:`~sensors.FoveatedCameraCfg.foveated_res`. Lattice point
+:math:`\mathbf{c}_{ij} = (\xi_i, \xi_j)`, with :math:`\xi_i = -1 + (2i + 1)/N`, samples at angle
+:math:`\theta = \operatorname{atan2}(c_y, c_x)` around the fixation and eccentricity
+
+.. math::
+
+ r(\rho) = a\left[\left(1 + \frac{r_{\max}}{a}\right)^{\rho} - 1\right], \qquad \rho = \lVert \mathbf{c}_{ij} \rVert_2,
+
+so the lattice's radius is proportional to :math:`w`. :math:`r_{\max}` is half the retina's field of view. Lattice
+points with :math:`\rho > 1` lie outside the circular field and publish zero. The camera casts each sample's ray
+
+.. math::
+
+ \mathbf{d} = (\sin r \cos\theta,\; -\sin r \sin\theta,\; \cos r)^\top
+
+in the camera frame (:math:`x` right, :math:`y` down, :math:`z` forward), turns it by the gaze, and renders it. The
+published image keeps the lattice's layout, so it is an upright :math:`N \times N` image that convolutional networks
+take as is.
+
+The viewer below computes the same grids for two physical cameras, an ideal equidistant fisheye and an ideal pinhole,
+each with its own field of view. Each panel shows the retina's rays on the viewing sphere, and where they land in the
+camera's image. A fisheye keeps image distance proportional to angle, so it reaches 180° and beyond; a pinhole
+stretches the periphery, so wide fields spread its outer samples far apart. Move the gaze to see which samples leave
+the camera's image.
+
+.. raw:: html
+
+
+
+``foveated_style="isotropic"`` instead places rings of samples evenly in :math:`w`, with as many samples around each
+ring as keep neighbours about equally far apart in every direction, as in the
+`fovi `__ model. The camera uses as many rings as keep the sample count at most
+:math:`N^2`, and publishes the samples as a set, of shape ``(num_envs, num_samples, 1, channels)``;
+:attr:`~sensors.FoveatedCameraCfg.isotropic_plotting_type` picks the cortical layout fovi gives them (``"v1like"``,
+``"schwartz"`` or ``"warp"``). Sample sets render directly on Newton and are experimental on the RTX renderers, where
+crowded samples can share a lens-texture texel.
+
+Configure a foveated camera
+---------------------------
+
+Add a :class:`~sensors.FoveatedCameraCfg` to a scene like any camera configuration. The renderer selects how the
+retina is rendered:
+
+.. list-table::
+ :header-rows: 1
+ :widths: 45 55
+
+ * - Renderer configuration
+ - Rendering
+ * - :class:`~isaaclab_newton.renderers.NewtonWarpRendererCfg`
+ - One ray per retinal sample.
+ * - :class:`~isaaclab_physx.renderers.IsaacRtxRendererCfg`,
+ :class:`~isaaclab_ov.renderers.OVRTXRendererCfg`
+ - A lens lookup texture on the camera prim maps the image to the retina's rays.
+
+The camera also accepts the Newton OptiX renderer (``optix`` extra), which receives the same rays as Newton Warp. On
+the RTX renderers, :attr:`~sensors.FoveatedCameraCfg.exit_texture_size` sets the side of the inverse lens texture,
+which maps rays back to samples; the default, four times the grid side and at least 128, separates neighbouring
+samples.
+
+.. figure:: ../../_static/overview/sensors/foveated_camera_renderers.jpg
+ :target: ../../_static/overview/sensors/foveated_camera_renderers.jpg
+ :align: center
+ :figwidth: 80%
+ :alt: The same retina and fixation rendered by Newton Warp, Isaac RTX and OVRTX.
+
+ The demo's first fixation on each renderer. Newton Warp shades one ray per sample; the RTX renderers render
+ through the lens texture with their own anti-aliasing, so their edges are softer.
+
+.. code-block:: python
+
+ import isaaclab.sim as sim_utils
+ from isaaclab_fovi.sensors import FoveatedCameraCfg
+ from isaaclab_newton.renderers import NewtonWarpRendererCfg
+
+ eye = FoveatedCameraCfg(
+ prim_path="{ENV_REGEX_NS}/Eye",
+ data_types=["rgb"],
+ renderer_cfg=NewtonWarpRendererCfg(),
+ spawn=sim_utils.PinholeCameraCfg(),
+ foveated_res=64,
+ )
+
+The camera computes its image size from the retina. With the default grid style it publishes an upright image of
+shape ``(num_envs, foveated_res, foveated_res, channels)`` in :attr:`~isaaclab.sensors.Camera.data`, like any
+camera, and any output the renderer supports.
+
+The physical camera
+~~~~~~~~~~~~~~~~~~~
+
+The retina places its samples by visual angle inside the image of a physical camera, and its rays are cast at those
+angles, so no pinhole image is resampled. Its field of view, :math:`2 r_{\max}`, is the angle the camera's image
+spans across its short side. By default that camera is the one ``spawn`` creates:
+
+* :class:`~isaaclab.sim.PinholeCameraCfg` optics give an ideal pinhole.
+* An OpenCV model in ``spawn.distortion`` gives that calibrated camera. An
+ :class:`~isaaclab.sim.OpenCvFisheyeDistortionCfg` with zero coefficients is an ideal equidistant fisheye.
+
+For any other calibrated camera, or a camera prim without spawn configuration, set
+:attr:`~sensors.FoveatedCameraCfg.camera_model` to the fields of a ``fovi.sensing.projection.CameraModel``:
+
+.. code-block:: python
+
+ camera_model = {
+ "model": "pinhole", # or "fisheye"
+ "image_size": (480, 640), # (height, width)
+ "intrinsics": (550.0, 550.0, 319.5, 239.5), # fx, fy, cx, cy [px]
+ }
+
+The same fields configure fovi's software sampler on images from a real camera: it samples the camera's image at
+the pixels :math:`\Pi(R\,\mathbf{d})` the rendered rays project to, where :math:`\Pi` is the camera's projection
+and :math:`R` the gaze rotation, so a policy sees the same retina in simulation and on hardware.
+
+The projection is set in the configuration. :meth:`~sensors.FoveatedCamera.set_intrinsic_matrices` leaves a
+foveated camera as configured and warns, as cameras with an OpenCV lens model do.
+
+:attr:`~sensors.FoveatedCameraCfg.retinal_window_fraction` shrinks the retina's window to a fraction of the image's
+short side, or of its long side with :attr:`~sensors.FoveatedCameraCfg.retinal_window_reference_side` set to
+``"long"``. For a camera mounted rolled, :attr:`~sensors.FoveatedCameraCfg.image_rotation_deg` turns the rays back
+about the optical axis (180 for an upside-down sensor), so the published image, the sensor mask and the gaze stay
+upright.
+
+Foveation strength
+~~~~~~~~~~~~~~~~~~
+
+:attr:`~sensors.FoveatedCameraCfg.cmf_a_deg` is the CMF constant :math:`a`. Smaller values concentrate more samples
+at the fixation; the default, 0.591, is an estimate from human data. Neighbouring grid samples lie about
+
+.. math::
+
+ \Delta r \approx \frac{2}{N} \log\left(1 + \frac{r_{\max}}{a}\right) (r + a)
+
+apart at eccentricity :math:`r`. For the demo's 128 × 128 retina over a 90° field, that is 0.04° at the fixation
+and 3.1° at the edge, where a uniform 128 × 128 image spaces its pixels 0.7° apart. A value of :math:`a` much larger
+than the field of view samples nearly uniformly, which gives a matched non-foveated baseline with the same
+resolution, field of view and gaze:
+
+.. code-block:: bash
+
+ uv run --extra fovi isaaclab demo foveated-camera env.scene.eye.cmf_a_deg=1000
+
+.. figure:: ../../_static/overview/sensors/foveated_camera_strength.jpg
+ :target: ../../_static/overview/sensors/foveated_camera_strength.jpg
+ :align: center
+ :figwidth: 100%
+ :alt: The physical camera's image and the 128 x 128 retina at four CMF constants.
+
+ The demo scene with the gaze on the optical axis. Left: the physical camera's pinhole image, with the retina's
+ field circled. Right: the published 128 × 128 image at four values of ``cmf_a_deg``.
+
+Move the gaze
+-------------
+
+The gaze turns the retina relative to the physical camera's optical axis:
+
+.. code-block:: python
+
+ # (tilt, pan) [deg] from the optical axis, shape (num_envs, 2): positive tilt looks up, positive pan looks left.
+ camera.set_gaze_angles(angles)
+
+The gaze stays relative to the camera's mount when the mount moves, and
+:meth:`~sensors.FoveatedCamera.get_world_poses` reports the mount without the gaze. Set
+:attr:`~sensors.FoveatedCameraCfg.mask_to_sensor_fov` to zero the samples that fall outside the physical camera's
+image at the current gaze, so that the retina only sees what the camera could. A real camera cannot provide those
+samples, so a policy meant for hardware should train with the mask.
+
+.. figure:: ../../_static/overview/sensors/foveated_camera_gaze_mask.jpg
+ :target: ../../_static/overview/sensors/foveated_camera_gaze_mask.jpg
+ :align: center
+ :figwidth: 80%
+ :alt: The retina in the camera image at a gaze 38 degrees to the left, without and with the sensor mask.
+
+ The gaze 38° left of the optical axis. Left: the retina's lattice in the physical camera's image; its grey part
+ lies outside the image. Middle: without the mask, rays render beyond the camera's view. Right: with the mask, those
+ samples are zero.
+
+Pooling
+-------
+
+A single ray per sample aliases where samples are sparse, in the periphery. With
+:attr:`~sensors.FoveatedCameraCfg.pool_enabled`, the camera renders a denser photoreceptor grid with the same field
+of view and CMF and pools it to the retina, as a retina's ganglion cells pool its photoreceptors.
+``pool_res_mult`` sets how much denser the photoreceptor grid is: an integer for grid styles, and any value for
+sample-set styles, where :math:`\sqrt{2}` doubles the number of samples. ``pool_mode`` sets how it pools: ``avg``,
+``gaussian`` (with ``pool_gauss_sigma``) or ``max``, and for sample-set styles also ``sum``.
+
+.. figure:: ../../_static/overview/sensors/foveated_camera_pooling.jpg
+ :target: ../../_static/overview/sensors/foveated_camera_pooling.jpg
+ :align: center
+ :figwidth: 100%
+ :alt: A 32 x 32 retina without pooling and with 2x and 4x photoreceptor pooling, beside a 128 x 128 retina.
+
+ A 32 × 32 retina in the demo scene. Pooling averages 4 or 16 photoreceptors into each sample, which smooths the
+ edges of the cubes and spheres while the published image keeps its size.
+
+Grid styles pool each sample over a square window of the photoreceptor grid, ``pool_k`` photoreceptors in all (the
+window side squared; by default ``pool_res_mult`` squared), stepping by ``pool_res_mult``. Because the grid follows
+the CMF, a window covers a tiny patch of the visual field at the fixation and a wide one in the periphery.
+Photoreceptors outside the circular field are left out of the average. Sample-set styles such as ``isotropic`` pool
+each sample over its ``pool_k`` nearest photoreceptors instead (by default the ratio of photoreceptors to samples,
+about ``pool_res_mult`` squared), by distance along the cortex (``pool_sample_cortex="geodesic"``, the default),
+straight-line distance on the cortex (``True``, faster to set up), or distance in the visual field (``False``).
+
+The viewer shows which photoreceptors each sample pools, for both styles. Its isotropic neighbourhoods are the ones
+fovi computes for the camera.
+
+.. raw:: html
+
+
+
+Segmentation outputs pool by modal label in their own dtype (``pool_int_mode="modal"``),
+since averaging would mix labels into ones no object has. With the sensor mask, pooling leaves out the
+photoreceptors the physical camera does not see, so a pooled sample at the edge of the camera's image pools only the
+ones it sees, and is zero when it sees none.
+
+Further sampling options are passed to fovi's ``SamplingCoords``, whose
+`documentation `__ describes them: ``fov_type`` and ``radius_norm`` set the
+region the retina covers.
+
+Active gaze
+-----------
+
+:mod:`isaaclab_fovi.mdp` holds the manager terms for a policy that moves the gaze:
+
+* :class:`~mdp.GazeActionCfg`: two actions that move the gaze by up to ``step_size`` field radii per step, within
+ ``gaze_limit`` of the optical axis. Make it the last action term. With the default ``mount="fixed"`` the teacher
+ aims from the camera's orientation when the action is created; ``mount="tracked"`` lets the camera ride a moving
+ body, such as a turning head (Newton and OVRTX).
+* :func:`~mdp.gaze_state`: the gaze and its velocity.
+* :class:`~mdp.gaze_teacher_labels`: a teacher's gaze action toward a point fixed to an asset, and whether that point
+ is a valid target. It is a training label, never a policy input.
+
+The ``IsaacContrib-Cartpole-Camera-Fovi`` task in :mod:`isaaclab_tasks.contrib.active_gaze` puts them together. It is
+the stock Cartpole camera task with the camera foveated (a 32-sample retina), two gaze actions, and a teacher that looks
+at the pole's tip. Its PPO adds a loss that pulls the gaze actions toward the teacher's, and its action head keeps
+the gaze actions' noise fixed:
+
+.. code-block:: bash
+
+ uv run --extra fovi isaaclab train --rl_library rsl_rl --task IsaacContrib-Cartpole-Camera-Fovi
+
+The task is registered when the ``fovi`` extra is installed.
+
+.. figure:: ../../_static/overview/sensors/foveated_camera_active_gaze.jpg
+ :target: ../../_static/overview/sensors/foveated_camera_active_gaze.jpg
+ :align: center
+ :figwidth: 100%
+ :alt: Cartpole frames with the retina following the pole tip, and the policy's 32 x 32 images.
+
+ The Cartpole task with the teacher's labels as the gaze actions. Top: the scene from the task's camera, with the
+ retina's lattice and edge; the gaze follows the pole's tip. Bottom: the 32 × 32 image the policy receives, with
+ the pole large at the fixation. Black samples lie outside the camera's image.
+
+Gaze modes
+~~~~~~~~~~
+
+:attr:`~mdp.GazeActionCfg.mode` sets what the gaze actions turn:
+
+* ``"software"`` (the default): the retina, at once, inside a camera that does not turn.
+* ``"physical"``: the joints of a rig that carries the camera. Each action steps the joints' targets from their
+ last targets; the retina stays on the optical axis, and the fixation follows as the joints reach their targets.
+* ``"hybrid"``: the retina at once, while the rig turns the camera after it. Each step the head steps toward the
+ fixation by at most :attr:`~mdp.GazeRigCfg.max_step_deg` per joint, and the software gaze is aimed back at the
+ fixation it holds in the world, so as the head catches up the retina returns to the optical axis. The policy sees
+ a fast gaze, and the camera ends up pointing where it looks.
+* ``"dual"`` (experimental): four actions that move the rig's joints, as in physical gaze, and then the retina, as
+ in software gaze, independently of each other.
+
+Every mode but software gaze needs a :class:`~mdp.GazeRigCfg`, which names the articulation and the two joints that
+turn the camera left and up, and a tracked mount, so it needs the Newton or OVRTX renderer.
+:data:`~assets.PAN_TILT_CFG` is a two-joint pan-tilt mount for a camera:
+
+.. code-block:: python
+
+ from isaaclab_fovi.assets import PAN_TILT_CAMERA_OFFSET, PAN_TILT_CFG
+ from isaaclab_fovi.mdp import GazeActionCfg, GazeRigCfg
+ from isaaclab_fovi.sensors import FoveatedCameraCfg
+
+ # In the scene: the mount, and a foveated camera on its tilting link.
+ rig = PAN_TILT_CFG.replace(init_state=PAN_TILT_CFG.init_state.replace(pos=(0.0, 0.0, 0.5)))
+ eye = FoveatedCameraCfg(
+ prim_path="{ENV_REGEX_NS}/PanTilt/Geometry/world/pan_link/tilt_link/Eye",
+ offset=PAN_TILT_CAMERA_OFFSET,
+ ...,
+ )
+
+ # In the actions:
+ gaze = GazeActionCfg(asset_name="eye", mode="hybrid", mount="tracked", rig=GazeRigCfg(asset_name="rig"))
+
+With a rig, :func:`~mdp.gaze_state` reports the fixation's offset from the rig's zero pose, the joints' angles plus
+the software gaze, so the observation means the same in every mode. In dual gaze the rig's actions come first and
+the retina's last, so the teacher and the gaze loss of the Cartpole task's PPO steer the retina. Software gaze
+alone can start an episode at a random gaze (``random_reset``); the other modes start from the rig's default joint
+positions with the retina on the optical axis.
+
+.. figure:: ../../_static/overview/sensors/foveated_camera_gaze_modes.jpg
+ :target: ../../_static/overview/sensors/foveated_camera_gaze_modes.jpg
+ :align: center
+ :figwidth: 100%
+ :alt: Pan angles over time for the four gaze modes, with the camera's 64 x 64 images before, during and after.
+
+ Each mode on the pan-tilt mount, simulated with Newton's MJWarp solver at Isaac Lab's 30 Hz policy step. In the
+ shaded steps the policy pans 4.5° left, three times. Below: the 64 × 64 image before, just after, and at the end.
+ In hybrid gaze the fixation jumps at once and stays while the head takes over from the retina. It leads the
+ command by about 1° while the head moves, since the software gaze is aimed back only once per step. In dual gaze
+ the retina turns first and the head later, and their turns add.
+
+Further reading
+---------------
+
+* `FOVI-Dex `__: foveated rendering and active gaze for perceptive reinforcement
+ learning of dexterous manipulation, with interactive demos.
+* `fovi `__: the foveated sampling library, its sampling styles, and foveated vision
+ networks.
diff --git a/docs/source/concepts/sensors/index.rst b/docs/source/concepts/sensors/index.rst
index 609c514ce5ed..75fa8c447df7 100644
--- a/docs/source/concepts/sensors/index.rst
+++ b/docs/source/concepts/sensors/index.rst
@@ -19,6 +19,9 @@ Choose a sensor
* - :doc:`camera`
- Renderer-produced color, depth, normals, motion, and segmentation images
- Vision observations and synthetic data
+ * - :doc:`foveated_camera`
+ - Retina-like images, dense where the gaze points and sparse in the periphery
+ - Active vision; requires the ``fovi`` extra
* - :doc:`ray_caster`
- First collision locations for configurable ray patterns
- Terrain sensing, lidar-style queries, and ray-cast cameras
@@ -69,6 +72,7 @@ Warp array.
:hidden:
camera
+ foveated_camera
ray_caster
contact_sensor
frame_transformer
diff --git a/docs/source/how-to/configure_rendering.rst b/docs/source/how-to/configure_rendering.rst
index 96f38a94498f..a42bd3ea1d6d 100644
--- a/docs/source/how-to/configure_rendering.rst
+++ b/docs/source/how-to/configure_rendering.rst
@@ -130,6 +130,19 @@ that legacy renderer; use Newton Warp or OVRTX for new Newton and kit-less workl
preserve the color output; the ``simple_shading_*`` output remains available but does not receive
the RTX Minimal performance improvement.
+Render a foveated camera
+------------------------
+
+A :doc:`foveated camera ` (``fovi`` extra) renders a retina-like image,
+dense where its gaze points, with the same renderer configurations as a regular camera: Newton Warp casts one ray per
+retinal sample, and OVRTX and Isaac RTX render through a lens lookup texture on the camera prim. Select the renderer
+with ``renderer=`` as for any camera:
+
+.. code-block:: bash
+
+ uv run --extra fovi isaaclab demo foveated-camera renderer=newton_warp
+ uv run --extra fovi --extra ovrtx isaaclab demo foveated-camera renderer=ovrtx
+
Overriding Specific Rendering Settings
--------------------------------------
diff --git a/docs/source/isaaclab/demos.rst b/docs/source/isaaclab/demos.rst
index cc3a864b4f20..e8e7f12644e9 100644
--- a/docs/source/isaaclab/demos.rst
+++ b/docs/source/isaaclab/demos.rst
@@ -133,6 +133,15 @@ No source checkout is required.
alt="Rizon and Sharpa hand scooping coffee beside a filled cup" loading="lazy">
Rizon–Sharpa Coffee
+